/* Bookin'Meet — brand styling
   Charcoal ink + a single warm ember accent, airy white space, soft shadows,
   rounded cards. (The --indigo* tokens are the ember accent — name kept to avoid
   churn across templates; they drive primary actions, active nav, highlights.) */

:root {
  /* Palette */
  --ink: #1a1714;
  --indigo: #e2552b;          /* ember — primary actions / active nav */
  --indigo-light: #ff6a3d;    /* bright spark — logo + small accents */
  --indigo-tint: #fceee8;
  --indigo-tint-2: #f6d6c8;
  --gray-body: #6b6760;
  --gray-muted: #9a958c;
  --border: #ece9e3;
  --bg: #faf8f4;
  --card: #ffffff;
  --green: #18a66a;
  --green-tint: #e7f6ef;
  --blue: #2f6fed;
  --blue-tint: #eaf1fe;
  --amber: #d98a00;
  --amber-tint: #fdf4e3;
  --red: #d9483b;
  --red-tint: #fdecea;
  --gray-tint: #f2f2f4;

  --shadow-sm: 0 1px 2px rgba(21, 22, 27, 0.04);
  --shadow-card: 0 4px 24px rgba(21, 22, 27, 0.05);
  --shadow-hover: 0 8px 32px rgba(21, 22, 27, 0.09);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --sidebar-w: 250px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}

a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------- wordmark */
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -0.02em; }
.wordmark__mark { width: 26px; height: 26px; flex-shrink: 0; }
.wordmark__text { font-size: 18px; color: var(--ink); }

/* ================================================================ APP SHELL */
/* Fixed-height app shell: the main column scrolls internally (deterministic —
   doesn't depend on document/body scroll, which can wedge in some setups). */
.app { display: flex; height: 100vh; overflow: hidden; }

/* mobile nav chrome — hidden on desktop, shown in the ≤860px media query */
.mobile-bar { display: none; }
.nav-scrim { display: none; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 24px 18px 20px;
  height: 100%;
  overflow-y: auto;   /* scroll the sidebar itself if nav + footer exceed the viewport */
  display: flex;
  flex-direction: column;
}

.sidebar__logo { padding: 4px 10px 24px; }

.nav-group { margin-bottom: 20px; }
.nav-group__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-muted);
  padding: 0 10px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  color: var(--gray-body);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  transition: background 0.14s, color 0.14s;
}
.nav-item:hover { background: var(--gray-tint); color: var(--ink); }
.nav-item.active { background: var(--indigo-tint); color: var(--ink); font-weight: 600; }
.nav-item.active .nav-item__icon { color: var(--indigo); }
.nav-item__icon { width: 18px; height: 18px; color: var(--gray-muted); flex-shrink: 0; }
.nav-item__label { flex: 1; }
.nav-item__badge {
  background: var(--gray-tint);
  color: var(--gray-body);
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-item.active .nav-item__badge { background: var(--indigo); color: #fff; }

/* sidebar plan/usage card */
.sidebar__foot { margin-top: auto; padding-top: 16px; }
.usage {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
}
/* account + log out, pinned to the bottom of the sidebar */
.side-user { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.side-user__chip { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; padding: 6px; border-radius: 10px; transition: background 0.12s; }
.side-user__chip:hover { background: var(--gray-tint); }
.side-user__id { min-width: 0; }
.side-user__name { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user__email { font-size: 11.5px; color: var(--gray-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user__logout { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border); color: var(--gray-body); transition: all 0.12s; }
.side-user__logout:hover { background: var(--gray-tint); color: var(--ink); }
.usage__row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.usage__plan { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.usage__plan.free { color: var(--gray-body); }
.usage__plan.pro { color: var(--indigo); }
.usage__count { font-size: 12px; color: var(--gray-muted); font-variant-numeric: tabular-nums; }
.usage__track { background: var(--gray-tint); border-radius: 999px; height: 6px; overflow: hidden; }
.usage__fill { height: 100%; border-radius: 999px; background: var(--indigo); }
.usage__cta { display: block; margin-top: 11px; font-size: 12.5px; font-weight: 600; color: var(--indigo); }

/* ---------------------------------------------------------------- main */
.main { flex: 1; min-width: 0; height: 100%; overflow-y: auto; }
.content { max-width: 1180px; padding: 34px 46px 64px; }
.content--wide { max-width: none; }  /* grid views fill the width next to the sidebar */

/* Pro mirror-naming rule rows */
.nrule { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.nrule__lead { font-size: 12.5px; color: var(--gray-muted); font-weight: 600; }
.nrule__sel { padding: 7px 9px; font-size: 13px; width: auto; }
.nrule__label { padding: 7px 9px; font-size: 13px; flex: 1; min-width: 140px; }
.nrule__rm { border: 0; background: none; color: var(--gray-muted); font-size: 14px;
  cursor: pointer; padding: 4px 6px; border-radius: 6px; line-height: 1; }
.nrule__rm:hover { background: var(--red-tint); color: var(--red); }

/* topbar (app) */

.page-head { margin-bottom: 28px; }
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-muted);
  margin-bottom: 12px;
}
.page-title { font-size: 38px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 12px; }
.page-subtitle { font-size: 15.5px; color: var(--gray-body); line-height: 1.6; max-width: 660px; margin: 0; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 999px;
  transition: transform 0.1s, box-shadow 0.14s, background 0.14s, border-color 0.14s;
}
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 4px 14px rgba(91, 91, 214, 0.28); }
.btn-primary:hover { background: var(--indigo-light); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(91, 91, 214, 0.34); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--gray-muted); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 26px; font-size: 15px; }

/* ---------------------------------------------------------------- cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 24px; }
.card--pad-lg { padding: 28px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.card-title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.card-link { font-size: 13px; font-weight: 600; color: var(--indigo); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.section { margin-bottom: 28px; }

/* ---------------------------------------------------------------- KPI stat */
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 22px 22px 20px; }
.stat__label { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--gray-muted); text-transform: uppercase; margin-bottom: 14px; }
.stat__value { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat__sub { font-size: 12.5px; font-weight: 500; color: var(--gray-muted); margin-top: 10px; }

/* ---------------------------------------------------------------- badges */
.badge {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
  padding: 4px 10px; border-radius: 7px; border: 1px solid transparent; white-space: nowrap;
}
.badge-indigo { background: var(--indigo-tint); color: var(--indigo); border-color: var(--indigo-tint-2); }
.badge-green { background: var(--green-tint); color: var(--green); border-color: #c9ecdb; }
.badge-blue { background: var(--blue-tint); color: var(--blue); border-color: #d3e2fc; }
.badge-amber { background: var(--amber-tint); color: var(--amber); border-color: #f4e4bf; }
.badge-red { background: var(--red-tint); color: var(--red); border-color: #f6d3cf; }
.badge-gray { background: var(--gray-tint); color: var(--gray-body); border-color: var(--border); }

.chip { display: inline-flex; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--gray-tint); color: var(--gray-body); margin-right: 4px; }

/* ---------------------------------------------------------------- tables */
.table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gray-muted); padding: 15px 20px;
  border-bottom: 1px solid var(--border); background: #fcfcfd;
}
tbody td { padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.12s; }
tbody tr:hover { background: #fcfcfd; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-strong { font-weight: 600; }
.cell-sub { font-size: 12.5px; color: var(--gray-muted); margin-top: 2px; }
.muted { color: var(--gray-muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

/* ---------------------------------------------------------------- avatar */
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.avatar--lg { width: 56px; height: 56px; font-size: 19px; }
.avatar--indigo { background: var(--indigo); }
.person { display: flex; align-items: center; gap: 12px; }

/* ---------------------------------------------------------------- toggle */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch__slider { position: absolute; inset: 0; background: var(--gray-tint); border: 1px solid var(--border); border-radius: 999px; transition: background 0.15s, border-color 0.15s; }
.switch__slider::before { content: ""; position: absolute; height: 16px; width: 16px; left: 3px; top: 2px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform 0.15s; }
.switch input:checked + .switch__slider { background: var(--indigo); border-color: var(--indigo); }
.switch input:checked + .switch__slider::before { transform: translateX(18px); }

/* provider connect cards */
.provider { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.provider__logo { width: 42px; height: 42px; border-radius: 10px; background: var(--indigo-tint); color: var(--indigo); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.provider__body { flex: 1; min-width: 0; }
.provider__name { font-size: 15px; font-weight: 700; }
.provider__desc { font-size: 13px; color: var(--gray-body); margin-top: 2px; }

/* simple definition rows (settings / sync config) */
.rows { display: flex; flex-direction: column; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.row:last-child { border-bottom: none; }
.row__label { font-size: 14px; font-weight: 600; }
.row__hint { font-size: 12.5px; color: var(--gray-muted); margin-top: 2px; }
.row__value { font-size: 14px; color: var(--gray-body); text-align: right; }

/* notice banner */
.notice { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--radius); font-size: 14px; margin-bottom: 22px; }
.notice-amber { background: var(--amber-tint); border: 1px solid #f4e4bf; color: #8a5d00; }
.notice-indigo { background: var(--indigo-tint); border: 1px solid var(--indigo-tint-2); color: #3b3ba8; }

/* ================================================================ PUBLIC */
.public { min-height: 100vh; display: flex; flex-direction: column; }
.public-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 40px; max-width: 1180px; width: 100%; margin: 0 auto; }
.public-nav { display: flex; align-items: center; gap: 26px; }
.public-nav a { font-size: 14px; font-weight: 500; color: var(--gray-body); }
.public-nav a:hover { color: var(--ink); }
.public-main { flex: 1; }
.public-footer { border-top: 1px solid var(--border); padding: 28px 40px; }
.public-footer__inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--gray-muted); gap: 16px; flex-wrap: wrap; }

/* hero */
.hero { max-width: 880px; margin: 0 auto; padding: 80px 40px 56px; text-align: center; }
.hero__pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--indigo-tint); color: var(--indigo); font-size: 13px; font-weight: 600; margin-bottom: 22px; }
.hero__title { font-size: 58px; font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; margin: 0 0 22px; }
.hero__title .accent { color: var(--indigo); }
.hero__sub { font-size: 19px; color: var(--gray-body); line-height: 1.6; max-width: 620px; margin: 0 auto 32px; }
.hero__cta { display: flex; gap: 12px; justify-content: center; }
.hero__note { margin-top: 16px; font-size: 13px; color: var(--gray-muted); }

.section-wrap { max-width: 1180px; margin: 0 auto; padding: 56px 40px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--indigo); margin-bottom: 12px; }
.section-title { font-size: 36px; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 14px; }
.section-lead { font-size: 16px; color: var(--gray-body); line-height: 1.6; margin: 0; }

/* feature grid */
.feature { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--indigo-tint); color: var(--indigo); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature__title { font-size: 16.5px; font-weight: 700; margin: 0 0 8px; }
.feature__desc { font-size: 14px; color: var(--gray-body); line-height: 1.6; margin: 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step__num { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step__title { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.step__desc { font-size: 14px; color: var(--gray-body); line-height: 1.6; margin: 0; }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 24px; justify-content: center; }
.price-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); padding: 32px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--indigo); box-shadow: 0 10px 40px rgba(91, 91, 214, 0.16); position: relative; }
.price-card__tag { position: absolute; top: -12px; left: 32px; background: var(--indigo); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.price-card__name { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-body); }
.price-card__price { font-size: 46px; font-weight: 900; letter-spacing: -0.03em; margin: 14px 0 2px; }
.price-card__period { font-size: 14px; color: var(--gray-muted); }
.price-card__tagline { font-size: 14.5px; color: var(--gray-body); margin: 14px 0 20px; }
.price-list { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.price-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink); padding: 8px 0; }
.price-list li svg { color: var(--indigo); flex-shrink: 0; margin-top: 2px; }

/* auth */
.auth { max-width: 420px; margin: 0 auto; padding: 56px 24px 72px; }
.auth__card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); padding: 36px; }
.auth__title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; text-align: center; }
.auth__sub { font-size: 14.5px; color: var(--gray-body); text-align: center; margin: 0 0 26px; }
.field { margin-bottom: 16px; }
.field__label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.input {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-family: var(--font); font-size: 14.5px; color: var(--ink);
  outline: none; transition: border-color 0.14s, box-shadow 0.14s; background: var(--card);
}
.input::placeholder { color: var(--gray-muted); }
.input:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-tint); }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); font-family: var(--font); font-size: 14px; font-weight: 600; cursor: pointer; margin-bottom: 10px; transition: border-color 0.14s, background 0.14s; }
.oauth-btn:hover { border-color: var(--gray-muted); background: #fcfcfd; }
.auth__divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--gray-muted); font-size: 12px; }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth__foot { text-align: center; font-size: 14px; color: var(--gray-body); margin-top: 22px; }
.auth__foot a { color: var(--indigo); font-weight: 600; }

/* public booking page */
.booking { max-width: 980px; margin: 0 auto; padding: 40px 24px 72px; }
.booking-grid { display: grid; grid-template-columns: 320px 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); overflow: hidden; }
.booking-info { padding: 32px; border-right: 1px solid var(--border); }
.booking-info__host { font-size: 13px; font-weight: 600; color: var(--gray-muted); margin-bottom: 8px; }
.booking-info__title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 18px; }
.booking-meta { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--gray-body); margin-bottom: 12px; }
.booking-meta svg { color: var(--gray-muted); flex-shrink: 0; }
.booking-slots { padding: 32px; }
.booking-day { margin-bottom: 22px; }
.booking-day__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-muted); margin-bottom: 12px; }
.slot-row { display: flex; flex-wrap: wrap; gap: 10px; }
.slot { border: 1px solid var(--indigo-tint-2); background: var(--card); color: var(--indigo); border-radius: var(--radius-sm); padding: 10px 18px; font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer; transition: background 0.14s, transform 0.1s; }
.slot:hover { background: var(--indigo-tint); transform: translateY(-1px); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  /* --- mobile top bar + slide-in sidebar drawer --- */
  .mobile-bar { display: flex; align-items: center; gap: 12px;
    position: fixed; top: 0; left: 0; right: 0; height: 54px; z-index: 70;
    padding: 0 14px; background: var(--card); border-bottom: 1px solid var(--border); }
  .mobile-bar__burger { display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 9px; color: var(--ink); cursor: pointer; }
  .mobile-bar__burger:hover { background: var(--gray-tint); }
  .mobile-bar__brand { display: inline-flex; align-items: center; gap: 8px;
    font-weight: 800; font-size: 16px; color: var(--ink); }
  .mobile-bar__brand .wordmark__mark { width: 24px; height: 24px; }

  .main { padding-top: 54px; }            /* clear the fixed bar */
  .sidebar {                              /* drawer: off-canvas until toggled */
    display: flex; position: fixed; top: 0; left: 0; bottom: 0;
    width: min(82vw, 300px); z-index: 80;
    transform: translateX(-100%); transition: transform .22s ease;
    box-shadow: 0 10px 40px rgba(20, 20, 40, .18);
  }
  #nav-toggle:checked ~ .app .sidebar { transform: none; }
  #nav-toggle:checked ~ .nav-scrim {
    display: block; position: fixed; inset: 0; z-index: 75;
    background: rgba(20, 20, 40, .42);
  }

  .content { padding: 24px 20px 48px; }
  .content--wide { padding-left: 20px; padding-right: 20px; }
  .grid-2 { grid-template-columns: 1fr; }
  .head-row { flex-direction: column; align-items: flex-start; }
  .hero__title { font-size: 40px; }
  .pricing { grid-template-columns: 1fr; }
  .booking-grid { grid-template-columns: 1fr; }
  .booking-info { border-right: none; border-bottom: 1px solid var(--border); }
  .public-header { padding: 16px 20px; }
  .public-nav { gap: 16px; }

  /* --- wide tables scroll horizontally instead of crushing --- */
  .table-wrap { overflow-x: auto; }
  .table-wrap table { min-width: 640px; }

  /* --- week grid scrolls horizontally so day columns stay legible --- */
  .wkgrid__head { flex-wrap: wrap; gap: 10px; }
  .wk { overflow-x: auto; }
  .wk-heads, .wk-body { min-width: 600px; }
}

/* ===========================================================================
   Sync preview — week time-grid (Option A)
   Existing events render solid in their calendar's colour; mirror blocks a sync
   would add render dashed in the source calendar's colour, tagged with target.
   =========================================================================== */
.wkgrid { margin-top: 18px; }
.wkgrid__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.wkgrid__range { font-weight: 800; font-size: 15px; }
.wkgrid__nav { display: flex; gap: 8px; align-items: center; }
.wkgrid__nav .btn[disabled] { opacity: .4; cursor: not-allowed; }
.wkgrid__legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
                  font-size: 12px; color: var(--gray-body); margin-bottom: 12px; }
.wk-leg { display: inline-flex; align-items: center; gap: 6px; }
.wk-sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; background: var(--gray-tint); }
.wk-sw--solid { background: var(--indigo-tint); border-left: 3px solid var(--indigo); }
.wk-sw--add { background: #fff; border: 1.5px dashed var(--gray-muted); }
.wk-sw--remove { background: var(--red-tint); border: 1.5px dashed var(--red); }

.wk--hidden { display: none; }
.wk-heads, .wk-body { display: grid; grid-template-columns: 54px repeat(7, 1fr); }
.wk-heads { border: 1px solid var(--border); border-bottom: 0; border-radius: 12px 12px 0 0; overflow: hidden; }
.wk-corner { background: #f6f6f9; }
.wk-dayhead { background: #f6f6f9; text-align: center; font-size: 12px; font-weight: 700;
              padding: 8px 0; border-left: 1px solid var(--border); }
.wk-body { border: 1px solid var(--border); border-radius: 0 0 12px 12px; overflow: hidden; }
.wk-gutter { border-right: 1px solid var(--border); }
.wk-hr { height: 48px; font-size: 10.5px; color: var(--gray-muted); text-align: right; padding: 2px 6px 0 0; }
.wk-col { position: relative; height: 672px; border-left: 1px solid var(--border);
          background: repeating-linear-gradient(180deg, transparent, transparent 47px,
                      var(--border) 47px, var(--border) 48px); }
.wk-ev { position: absolute; border-radius: 6px; padding: 3px 6px; overflow: hidden;
         font-size: 11px; line-height: 1.25; min-height: 16px; }
.wk-ev__t { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-ev__s { display: block; font-size: 10px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* an "add" block: neutral dashed box; the from→to is shown by two colour chips */
.wk-ev--add { background: #fff; border: 1.5px dashed #cdced6; color: #4a4b55; }
/* a "remove" block: red dashed, struck through — sync would delete this stale mirror */
.wk-ev--remove { background: var(--red-tint); border: 1.5px dashed #e3a59e; color: var(--red); }
.wk-ev--remove .wk-ev__t { text-decoration: line-through; }
.wk-ev__chips { display: flex; align-items: center; gap: 2px; margin-bottom: 1px; }
.wk-ev__arrow { font-size: 9px; line-height: 1; color: var(--gray-muted); }
.wk-chip { width: 9px; height: 9px; border-radius: 2px; display: inline-block; flex: none; }

/* existing-event fill: tint + coloured left border, per calendar slot */
.wk-ev--exists.cal-0 { background:#eeeefb; border-left:3px solid #5b5bd6; color:#33358f; }
.wk-ev--exists.cal-1 { background:#d6f1ed; border-left:3px solid #0d9488; color:#0a5d56; }
.wk-ev--exists.cal-2 { background:#fdf4e3; border-left:3px solid #d98a00; color:#8a4d04; }
.wk-ev--exists.cal-3 { background:#fce8f0; border-left:3px solid #e0467e; color:#9c2456; }
.wk-ev--exists.cal-4 { background:#eaf1fe; border-left:3px solid #2f6fed; color:#1c4aa6; }
.wk-ev--exists.cal-5 { background:#f1ebfe; border-left:3px solid #8a5cf6; color:#5a32b0; }

/* solid hue for legend swatches + the from→to chips */
.wk-sw.cal-0, .wk-chip.cal-0 { background:#5b5bd6; }
.wk-sw.cal-1, .wk-chip.cal-1 { background:#0d9488; }
.wk-sw.cal-2, .wk-chip.cal-2 { background:#d98a00; }
.wk-sw.cal-3, .wk-chip.cal-3 { background:#e0467e; }
.wk-sw.cal-4, .wk-chip.cal-4 { background:#2f6fed; }
.wk-sw.cal-5, .wk-chip.cal-5 { background:#8a5cf6; }

/* exclude (✕) control on existing-event blocks in the sync preview grid */
.wk-ev__x { position: absolute; top: 0; right: 0; opacity: 0; transition: opacity .1s; }
.wk-ev:hover .wk-ev__x { opacity: 1; }
.wk-ev__x button { border: 0; background: rgba(255,255,255,.85); border-radius: 0 5px 0 5px;
                   font-size: 10px; line-height: 1; cursor: pointer; color: #6b6c77; padding: 2px 4px; }
.wk-ev__x button:hover { color: var(--red); }

/* ---- Week/Month view toggle + month grid (sync preview) ---- */
.viewtoggle { display: inline-flex; gap: 0; border: 1px solid var(--border); border-radius: 999px;
              padding: 3px; margin-bottom: 14px; background: var(--card); }
.seg { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--gray-body);
       padding: 6px 16px; border-radius: 999px; cursor: pointer; }
.seg--on { background: var(--indigo); color: #fff; }

.mgrid__month { margin-bottom: 22px; }
.month { width: 100%; border-collapse: collapse; table-layout: fixed; }
.month th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-muted);
            font-weight: 700; padding: 6px 6px; text-align: left; }
.month td { border: 1px solid var(--border); height: 78px; vertical-align: top; padding: 6px 7px; width: 14.28%; }
.month td.mute { background: #fafafb; }
.month .dn { font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.month td.mute .dn { color: #c4c6ce; }
.m-dots { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 5px; }
.m-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; vertical-align: middle; }
.m-add { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--indigo);
         background: #f5f5fd; border: 1px dashed var(--indigo); border-radius: 6px; padding: 1px 6px; }
.m-remove { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--red);
            background: var(--red-tint); border: 1px dashed var(--red); border-radius: 6px; padding: 1px 6px; margin-top: 3px; }
.m-dot.cal-0 { background: #5b5bd6; } .m-dot.cal-1 { background: #0d9488; } .m-dot.cal-2 { background: #d98a00; }
.m-dot.cal-3 { background: #e0467e; } .m-dot.cal-4 { background: #2f6fed; } .m-dot.cal-5 { background: #8a5cf6; }

/* ===== Booking page (Calendly-style) ===================================== */
.bk { max-width: 980px; margin: 40px auto 64px; padding: 0 20px; }
.bk__card { display: grid; grid-template-columns: 320px 1fr; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.bk__side { padding: 34px 30px; border-right: 1px solid var(--border); }
.bk__host { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.bk__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--indigo); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex: none; }
.bk__logo { max-height: 46px; max-width: 150px; object-fit: contain; flex: none; }
.bk__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-muted); }
.bk__hostname { font-size: 14px; font-weight: 600; color: var(--gray-body); }
.bk__title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; color: var(--ink); }
.bk__meta { list-style: none; padding: 0; margin: 0 0 18px; }
.bk__meta li { display: flex; align-items: center; gap: 10px; color: var(--gray-body); font-size: 14.5px; margin-bottom: 10px; }
.bk__meta svg { color: var(--gray-muted); flex: none; }
.bk__tzpick { display: block; font-size: 12px; font-weight: 600; color: var(--gray-muted);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 20px; }
.bk__tzpick .input { margin-top: 6px; width: 100%; font-size: 13.5px; text-transform: none; letter-spacing: 0; color: var(--ink); }

.bk__main { padding: 30px 32px; min-height: 440px; }
.bk__calhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bk__monthlabel { font-weight: 700; font-size: 15px; color: var(--ink); }
.bk__nav { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border); background: var(--card);
  color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; transition: background .15s; }
.bk__nav:hover:not(:disabled) { background: var(--gray-tint); }
.bk__nav:disabled { color: var(--border); cursor: default; }
.bk__dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.bk__dow span { text-align: center; font-size: 11px; font-weight: 700; color: var(--gray-muted); text-transform: uppercase; }
.bk__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 26px; }
.bk__day { aspect-ratio: 1; border: none; background: transparent; border-radius: 9px; font-size: 14px;
  font-weight: 600; color: var(--gray-muted); cursor: default; }
.bk__day.is-open { background: var(--indigo-tint); color: var(--indigo); cursor: pointer; transition: all .12s; }
.bk__day.is-open:hover { background: var(--indigo-tint-2); }
.bk__day.is-sel { background: var(--indigo); color: #fff; }
.bk__daylabel { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.bk__slotlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.bk__slot { display: flex; align-items: center; justify-content: center; padding: 12px 8px; border: 1px solid var(--indigo-tint-2);
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--indigo); text-decoration: none;
  background: var(--card); transition: all .12s; }
.bk__slot:hover { border-color: var(--indigo); background: var(--indigo-tint); }
.bk__slot.is-conflict { color: var(--gray-muted); border-color: var(--border); position: relative; }
.bk__slot.is-conflict:hover { border-color: var(--amber); background: var(--amber-tint); }
.bk__slot .bk__conflict { display: block; font-size: 10px; font-weight: 600; color: var(--amber); margin-top: 2px; }

/* host landing page: list of bookable meeting types */
.bk__types { display: flex; flex-direction: column; gap: 10px; }
.bk__type { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--ink); transition: border-color .12s, background .12s; }
.bk__type:hover { border-color: var(--indigo); background: var(--indigo-tint); }
.bk__type-name { font-weight: 700; font-size: 15px; }
.bk__type-meta { font-size: 13px; color: var(--gray-muted); margin-top: 2px; }
.bk__type svg { color: var(--indigo); flex: none; }

.bk__empty { text-align: center; padding: 70px 20px; }
.bk__emptyicon { width: 56px; height: 56px; border-radius: 50%; background: var(--indigo-tint); color: var(--indigo);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.bk__empty h2 { font-size: 19px; font-weight: 700; margin: 0 0 6px; }

.bk__viral { margin-top: 18px; border-radius: var(--radius-sm); padding: 14px; font-size: 12.5px; line-height: 1.5; }
.bk__viral--cta { background: var(--gray-tint); color: var(--gray-body); }
.bk__viral--on { background: var(--green-tint); color: #0f6b46; }
.bk__viral a { font-weight: 700; }
.bk__viral .btn { margin-top: 10px; }

.bk__foot { text-align: center; font-size: 12.5px; color: var(--gray-muted); margin-top: 22px; }

@media (max-width: 760px) {
  .bk__card { grid-template-columns: 1fr; }
  .bk__side { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ===== Analytics bar charts (CSS-only) ================================== */
.az-bars { display: flex; align-items: stretch; gap: 10px; height: 180px; padding-top: 8px; }
.az-bar { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.az-bar__track { flex: 1; width: 100%; max-width: 46px; display: flex; align-items: flex-end;
  background: var(--gray-tint); border-radius: 6px; overflow: hidden; }
.az-bar__fill { width: 100%; min-height: 4px; background: var(--indigo); border-radius: 6px 6px 0 0; transition: height .2s; }
.az-bar__fill--alt { background: var(--indigo-light); }
.az-bar__n { font-size: 12px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.az-bar__lbl { font-size: 11px; color: var(--gray-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
