/* ==========================================================================
   Autellis — site styles
   Palette: ink + bone, with brass as the single accent.
   Type: Instrument Serif (display), Geist (text), Geist Mono (labels).
   ========================================================================== */

:root {
  /* Size and layout tokens (design step 0; shared names with the dashboard) */
  --fs-label: 14px;      /* Geist Mono uppercase labels, numbers, tags */
  --fs-meta: 14px;       /* captions, notes, field labels, errors, footer meta */
  --fs-ui: 15px;         /* control text: chips, Add buttons, dock, chat bubbles */
  --ls-label: 0.08em;    /* tracking for 14px mono uppercase */
  --tap: 44px;           /* minimum target width and height */
  --nav-offset: 96px;    /* fixed nav height + gap, for anchor scrolling */
  --cal-min-h: 680px;    /* Cal.com slot, desktop */
  --cal-min-h-sm: 560px; /* Cal.com slot, phone */
  --measure: 68ch;       /* reading width for long text */
  /* Shared with the dashboard (Alex approved): keep names and values in sync. */
  --field-line: rgba(241, 238, 231, 0.40);   /* control borders on dark: 3.48:1 on --ink-2 */
  --range-track: rgba(11, 12, 14, 0.45);     /* unfilled slider track on light: 3.06:1 on --bone */
  --ink: #0b0c0e;
  --ink-2: #121316;
  --ink-3: #1a1c20;
  --bone: #f4f1ea;
  --paper: #fbfaf6;

  --on-dark: #f1eee7;
  --on-dark-muted: #a8a49b;
  --on-dark-faint: #8a867e;
  --on-light: #0b0c0e;
  --on-light-muted: #5d5a53;

  --brass: #c4a26c;
  --brass-hi: #ecd3a2;
  --brass-soft: rgba(196, 162, 108, 0.13);
  --brass-line: rgba(196, 162, 108, 0.28);
  --brass-deep: #7d5f30;
  --live: #8fcfa6;
  --danger: #eba392;

  --line-dark: rgba(241, 238, 231, 0.1);
  --line-dark-strong: rgba(241, 238, 231, 0.2);
  --line-light: rgba(11, 12, 14, 0.1);
  --line-light-strong: rgba(11, 12, 14, 0.22);

  /* Brushed-brass gradient for emphasized words on dark */
  --foil: linear-gradient(100deg, #f3dfb4 0%, #caa66d 38%, #a98750 62%, #ead2a0 100%);
  /* Dark card surfaces and their light-catching top edge */
  --card-dark: linear-gradient(180deg, #17181c 0%, #0f1013 100%);
  --card-inset: linear-gradient(180deg, #111215 0%, #0b0c0e 100%);
  --edge: linear-gradient(180deg, rgba(241, 238, 231, 0.3) 0%, rgba(241, 238, 231, 0.07) 32%, rgba(241, 238, 231, 0.12) 100%);

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(96px, 12vw, 176px);
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* P1-0 tokens: alpha steps of --brass / --brass-deep / --on-dark / --ink only */
  --bp-line: rgba(196, 162, 108, 0.36);        /* blueprint hairline on dark */
  --bp-faint: rgba(196, 162, 108, 0.17);
  --bp-text: rgba(196, 162, 108, 0.8); /* 5.6:1 on ink */
  --bp-line-light: rgba(125, 95, 48, 0.30);    /* brass-deep alpha, on light */
  --grid-dark: rgba(241, 238, 231, 0.045);
  --edge-brass: linear-gradient(180deg, rgba(236, 211, 162, 0.6), rgba(196, 162, 108, 0.14) 38%, rgba(196, 162, 108, 0.3));
  --lift-dark: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.55), 0 60px 120px -50px rgba(0, 0, 0, 0.9), 0 30px 70px -40px rgba(196, 162, 108, 0.2);
  --lift-light: inset 0 1px 0 #fff, 0 1px 2px rgba(11, 12, 14, 0.06), 0 34px 64px -40px rgba(11, 12, 14, 0.32);
  --head-gap: clamp(44px, 5.5vw, 80px);        /* heading block -> content, every section */
  /* L-0 light tokens: tints/shades of existing colours or alphas of --ink / --brass-deep (no new hue) */
  --linen: #ece7dc;                                 /* deepest paper: a shade of --bone (H41 S30 L89) */
  --sheet: #fffefb;                                 /* card surface: a tint of --paper toward white */
  --ink-faint: #6b675f;                             /* 3rd text step on light: 4.57:1 on --linen, 5.39 on --paper */
  --ink-line: rgba(11, 12, 14, 0.46);               /* control/UI boundary on light: >=3.11:1 on every paper */
  --bp-ink: rgba(11, 12, 14, 0.5);                  /* drafting line, ink on paper (decorative) */
  --bp-ink-faint: rgba(11, 12, 14, 0.16);           /* framing, hatching, construction lines (decorative) */
  --bp-brass: rgba(125, 95, 48, 0.85);              /* brass highlight on drawings (decorative) */
  --brass-tint: rgba(125, 95, 48, 0.1);             /* brass-deep wash for badges / active rows on light */
  --brass-rule: rgba(125, 95, 48, 0.24);            /* section-boundary hairline on light */
  --foil-deep: linear-gradient(100deg, #6a5028 0%, #7d5f30 38%, #9a7742 64%, #7d5f30 100%); /* emphasis words on light, large text only: worst stop 3.34:1 */
  --edge-light: linear-gradient(180deg, rgba(11, 12, 14, 0.07), rgba(11, 12, 14, 0.13));
  --edge-brass-light: linear-gradient(180deg, rgba(125, 95, 48, 0.6), rgba(125, 95, 48, 0.16) 42%, rgba(125, 95, 48, 0.32));
  --grid-ink: rgba(11, 12, 14, 0.055);
  --shadow-paper: inset 0 1px 0 #fff, 0 1px 2px rgba(11, 12, 14, 0.05), 0 10px 20px -12px rgba(11, 12, 14, 0.10), 0 40px 80px -40px rgba(11, 12, 14, 0.22);
  --shadow-paper-lg: inset 0 1px 0 #fff, 0 0 0 1px rgba(11, 12, 14, 0.04), 0 2px 4px rgba(11, 12, 14, 0.04), 0 24px 48px -24px rgba(11, 12, 14, 0.16), 0 80px 140px -60px rgba(11, 12, 14, 0.30);
  --grid-light: var(--grid-ink);
}

/* ------------------------------- Base ----------------------------------- */

/* Self-hosted fonts: Mona Sans + JetBrains Mono @font-face rules live in css/p2.css (P2). No outside requests. */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-offset);
  scroll-behavior: smooth;
  scrollbar-color: #3a3c42 var(--ink);
  /* Keep focused controls clear of the floating phone button / team dock. */
  scroll-padding-bottom: 96px;
}
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-light);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

/* Focus: --accent is brass-deep on light (5.24:1) and brass on dark. */
:focus-visible { outline: 2px solid var(--accent, var(--brass)); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brass); color: var(--ink); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--on-dark); color: var(--ink);
  padding: 10px 16px; border-radius: 8px; font-size: 14px;
  transition: top 0.2s;
}
.skip:focus { top: 16px; }

/* Reading progress along the top edge */
.progress { position: fixed; inset: 0 0 auto 0; z-index: 70; height: 2px; pointer-events: none; }
.progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--brass-deep), var(--brass-hi));
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
}

/* ------------------------------ Themes ---------------------------------- */

.theme-dark {
  --bg: var(--ink); --fg: var(--on-dark); --muted: var(--on-dark-muted);
  --line: var(--line-dark); --line-strong: var(--line-dark-strong); --accent: var(--brass);
  background: var(--bg); color: var(--fg);
}
.theme-light {
  --bg: var(--bone); --fg: var(--on-light); --muted: var(--on-light-muted);
  --line: var(--line-light); --line-strong: var(--line-light-strong); --accent: var(--brass-deep);
  background: var(--bg); color: var(--fg);
}
.theme-paper {
  --bg: var(--paper); --fg: var(--on-light); --muted: var(--on-light-muted);
  --line: var(--line-light); --line-strong: var(--line-light-strong); --accent: var(--brass-deep);
  background: var(--bg); color: var(--fg);
}

.section { position: relative; padding-block: var(--section); }

/* Fine film grain on the dark sections; softens the gradients. */
.grain { isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.055;
}

/* ---------------------------- Typography -------------------------------- */

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.02;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--accent); }

.h1 { font-size: clamp(3.3rem, 10vw, 9.2rem); line-height: 0.92; letter-spacing: -0.03em; }
.h2 { font-size: clamp(2.4rem, 4.9vw, 4.5rem); line-height: 1.03; letter-spacing: -0.022em; }

/* Brass foil on emphasized words in dark sections */
.theme-dark .display:not(.is-split) em,
.theme-dark .display.is-split .w__i.is-em,
.custom__title em {
  background: var(--foil);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.theme-dark .display:not(.is-split) em,
.custom__title em { padding: 0 0.1em 0.08em 0.02em; margin: 0 -0.1em 0 -0.02em; }

/* Headlines are split into words that rise into place (see main.js) */
.w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: 0.1em 0.14em 0.18em 0.05em; margin: -0.1em -0.14em -0.18em -0.05em;
}
.w__i { display: inline-block; }
.w__i.is-em { padding: 0 0.1em 0.1em 0; margin: 0 -0.1em -0.1em 0; }
.js .is-split .w__i {
  transform: translateY(118%);
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms + var(--i, 0) * 42ms);
}
.js .is-split.is-in .w__i { transform: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }

.lede {
  font-size: clamp(1.05rem, 1.25vw, 1.18rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 54ch;
  text-wrap: pretty;
}

.tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-dark-faint);
  border: 1px solid var(--line-dark); border-radius: 999px;
  padding: 4px 9px; white-space: nowrap;
}

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--line-dark-strong); border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-dark-muted);
}
.pill__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px var(--brass-soft); }

.head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
}
.head .eyebrow { margin-bottom: 24px; }

/* ------------------------------ Buttons --------------------------------- */

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.btn:hover::before { opacity: 1; }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  color: var(--ink);
  background: linear-gradient(180deg, #fbf9f4, #e7e2d6);
  box-shadow: inset 0 1px 0 #fff, 0 1px 1px rgba(0, 0, 0, 0.25), 0 10px 30px -10px rgba(241, 238, 231, 0.28);
}
.btn--primary::before { background: linear-gradient(180deg, #f0d9a9, #c4a26c); }

.btn--dark {
  color: var(--on-dark);
  background: linear-gradient(180deg, #1e2025, #0b0c0e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 30px -14px rgba(11, 12, 14, 0.55);
}
.btn--dark::before { background: linear-gradient(180deg, #30333a, #17181c); }

.btn--ghost { border-color: var(--line-strong); color: var(--fg); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: var(--fg); }

.btn--sm { height: 42px; padding: 0 20px; font-size: 14px; }

/* ------------------------------ Reveal ---------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* LCP: the hero text is painted at full opacity on the first frame; only the
   small rise animates, so the largest text never waits for JavaScript. */
.js .hero__copy [data-reveal] { opacity: 1; }
/* Split headlines animate word by word instead of fading as a block */
.js [data-reveal].is-split { opacity: 1; transform: none; }

/* Cursor-following highlight on cards */
[data-spot] { position: relative; }
.spot {
  position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity 0.5s var(--ease);
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 50%), rgba(236, 211, 162, 0.11), transparent 60%);
}
[data-spot]:hover > .spot { opacity: 1; }

/* ------------------------------- Nav ------------------------------------ */

.nav {
  position: fixed; inset: 14px 0 auto 0; z-index: 50;
  padding-inline: clamp(12px, 3vw, 32px);
  color: var(--on-dark);
  pointer-events: none;
}
.nav__bar {
  pointer-events: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  max-width: calc(var(--container) + 48px); height: 62px; margin-inline: auto; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  transition: max-width 0.6s var(--ease), padding 0.6s var(--ease), background-color 0.4s var(--ease),
    border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
/* Once the page scrolls the bar tightens into a floating capsule */
.nav.is-scrolled .nav__bar {
  max-width: 1040px; padding: 0 10px 0 22px;
  background: rgba(15, 16, 19, 0.9);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-color: rgba(241, 238, 231, 0.13);
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.menu-open .nav .nav__bar {
  background: transparent; border-color: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}

/* Logo: the wordmark from the logo kit (assets/logo). The nav and footer are
   always dark, so both use the light drawing. Kept at 160px wide or more. */
.brand { display: inline-flex; align-items: center; justify-self: start; padding: 6px 0; }
.brand__logo { display: block; height: 16px; width: auto; }
.footer .brand__logo { height: 20px; }

.nav__links { display: flex; gap: clamp(22px, 2.6vw, 36px); font-size: 14.5px; color: var(--on-dark-muted); }
.nav__links a { position: relative; padding: 6px 0; transition: color 0.2s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--on-dark); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta { justify-self: end; }

.nav__toggle { display: none; position: relative; width: 44px; height: 44px; justify-self: end; }
.nav__toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--ink); color: var(--on-dark);
  padding: 112px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  opacity: 0; visibility: hidden;
  /* Hide only after the fade-out. On open, become visible immediately so the
     links are in the tab order on the same turn the menu opens. */
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
  overflow-y: auto;
  /* Keep scrolling inside the open menu from moving the page behind it. */
  overscroll-behavior: contain;
}
.menu.is-open {
  opacity: 1; visibility: visible;
  transition: opacity 0.3s var(--ease), visibility 0s;
}
.menu__link {
  display: block; padding: 14px 0;
  font-family: var(--serif); font-size: clamp(2.1rem, 9vw, 3rem); line-height: 1.15;
  border-bottom: 1px solid var(--line-dark);
}
.menu .btn { align-self: flex-start; }

/* ------------------------------- Hero ----------------------------------- */

.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(132px, 12.5vw, 176px);
  padding-bottom: clamp(56px, 6vw, 88px);
}

.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(241, 238, 231, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(241, 238, 231, 0.055) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.3) 55%, transparent 82%);
  mask-image: radial-gradient(ellipse 62% 58% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.3) 55%, transparent 82%);
}
.hero__bg::after {
  content: ""; position: absolute; left: 50%; top: -600px;
  width: 1500px; height: 1150px; margin-left: -750px;
  background: radial-gradient(closest-side, rgba(196, 162, 108, 0.27), rgba(196, 162, 108, 0.07) 55%, transparent 100%);
  animation: breathe 16s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.78; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero__copy {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 1100px; margin-inline: auto;
}
.hero__title { margin-top: 28px; }
.hero__lede { margin-top: 30px; max-width: 58ch; }
.hero__actions { margin-top: 38px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* Command center (the hero's product view) */

.dash-wrap { position: relative; margin-top: clamp(52px, 6.5vw, 92px); perspective: 2000px; }
.dash-wrap::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -80px;
  width: min(1180px, 100%); height: 440px; transform: translateX(-50%);
  background: radial-gradient(50% 60% at 50% 40%, rgba(196, 162, 108, 0.36), rgba(196, 162, 108, 0.1) 60%, transparent);
  filter: blur(36px); pointer-events: none;
}

.dash, .demo__shell, .ledger, .form-card {
  border: 1px solid transparent;
  background: var(--card-dark) padding-box, var(--edge) border-box;
}
.chat, .cadence, .coach {
  border: 1px solid transparent;
  background: var(--card-inset) padding-box, var(--edge) border-box;
}

.dash {
  max-width: 1180px; margin-inline: auto;
  border-radius: var(--radius-lg); overflow: hidden;
  color: var(--on-dark);
  transform-origin: 50% 0;
  transform: rotateX(var(--tilt, 0deg)) scale(var(--zoom, 1));
  transition: transform 0.35s var(--ease-out);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 90px 140px -60px rgba(0, 0, 0, 0.95), 0 40px 80px -40px rgba(196, 162, 108, 0.22);
}
.dash::after {
  content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(236, 211, 162, 0.95), transparent);
  pointer-events: none;
}

.dash__bar {
  display: flex; align-items: center; gap: 14px;
  height: 52px; padding: 0 18px;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.02);
}
.dash__dots { display: flex; gap: 6px; }
.dash__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(241, 238, 231, 0.14); }
.dash__name {
  margin-right: auto; min-width: 0;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash__live { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--on-dark-muted); white-space: nowrap; }
.ops__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--live);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(143, 207, 166, 0.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(143, 207, 166, 0); }
}

.dash__body { display: grid; grid-template-columns: 232px minmax(0, 1fr) 286px; text-align: left; }
.dash__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-faint); }

.dash__side { padding: 18px 12px; border-right: 1px solid var(--line-dark); }
.dash__side .dash__label { padding: 0 10px 10px; }
.dash__agents li {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 7px 10px; border-radius: 9px;
  font-size: 13px; color: var(--on-dark-muted);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
.dash__ini {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 9.5px; color: var(--on-dark-faint);
  border: 1px solid var(--line-dark);
  transition: color 0.5s var(--ease), background-color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.dash__an { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash__ac { font-family: var(--mono); font-size: 11px; color: var(--on-dark-faint); font-variant-numeric: tabular-nums; }
.dash__agents li.is-active { background: rgba(255, 255, 255, 0.055); color: var(--on-dark); }
.dash__agents li.is-active .dash__ini { color: var(--brass); background: var(--brass-soft); border-color: var(--brass-line); }

.dash__main { min-width: 0; display: flex; flex-direction: column; }
.dash__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 12px; }
.dash__when { font-family: var(--mono); font-size: 11px; color: var(--on-dark-faint); }

.ops__feed {
  height: 404px; overflow: hidden;
  border-top: 1px solid var(--line-dark);
  -webkit-mask-image: linear-gradient(#000 74%, transparent);
  mask-image: linear-gradient(#000 74%, transparent);
}
.ops__item {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px;
  padding: 17px 22px; border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
}
.ops__item.is-new { animation: feedIn 0.8s var(--ease) both; }
@keyframes feedIn {
  from { opacity: 0; max-height: 0; padding-block: 0; border-bottom-color: transparent; }
  to { opacity: 1; max-height: 170px; }
}
.ops__avatar {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--brass);
  background: var(--brass-soft); border: 1px solid var(--brass-line);
}
.ops__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ops__agent { font-size: 13.5px; font-weight: 500; }
.ops__time { font-family: var(--mono); font-size: 11px; color: var(--on-dark-faint); white-space: nowrap; }
.ops__msg { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--on-dark-muted); }

.dash__rail { display: grid; grid-template-rows: auto auto 1fr; border-left: 1px solid var(--line-dark); }
.kpi { padding: 18px 20px; border-bottom: 1px solid var(--line-dark); }
.kpi:last-child { border-bottom: 0; }
.kpi__v {
  display: flex; align-items: baseline; gap: 6px; margin-top: 8px;
  font-family: var(--serif); font-size: 46px; line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.kpi__v small { font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--on-dark-muted); }
.kpi__s { margin-top: 6px; font-size: 12px; color: var(--on-dark-faint); }
.kpi__bars { display: flex; align-items: flex-end; gap: 5px; height: 40px; margin-top: 12px; }
.kpi__bars i { flex: 1; height: var(--h, 50%); border-radius: 3px 3px 0 0; background: rgba(241, 238, 231, 0.16); }
.kpi__bars i:last-child { background: var(--brass); }
.kpi__jobs { display: grid; gap: 12px; margin-top: 12px; }
.kpi__jobs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; font-size: 12.5px; color: var(--on-dark-muted); }
.kpi__jobs b { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--on-dark); }
.kpi__jobs i { position: relative; grid-column: 1 / -1; height: 3px; border-radius: 3px; background: rgba(241, 238, 231, 0.1); overflow: hidden; }
.kpi__jobs i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 50%); border-radius: 3px; background: var(--brass); }

/* Fact strip */

.strip {
  margin-top: clamp(72px, 9vw, 128px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.strip__item { padding: 30px 28px 0 0; }
.strip__item + .strip__item { padding-left: 28px; border-left: 1px solid var(--line); }
.strip__value { display: block; font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1; letter-spacing: -0.01em; }
.strip__label { display: block; margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 26ch; }

/* Roster marquee */

.marquee {
  background: var(--ink); color: var(--on-dark);
  overflow: hidden; padding: clamp(26px, 3.6vw, 44px) 0;
  border-top: 1px solid var(--line-dark);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 80s linear infinite; }
.marquee__track span {
  margin-right: clamp(26px, 3.6vw, 52px);
  font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: 1.1;
  white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(241, 238, 231, 0.5); /* ≥3:1 for large text (was 0.34, 2.79:1) */
}
.marquee__track i {
  flex: none; width: 8px; height: 8px; margin-right: clamp(26px, 3.6vw, 52px);
  background: var(--brass); transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* -------------------------------- Why ----------------------------------- */

.why__title { margin-top: 28px; max-width: 1080px; }
.why__body {
  margin-top: clamp(44px, 5vw, 72px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px);
  max-width: 880px; margin-left: auto;
  font-size: 1.06rem; color: var(--muted);
}

.compare { width: 100%; margin-top: clamp(56px, 7vw, 104px); border-collapse: separate; border-spacing: 0; text-align: left; }
.compare thead th {
  padding: 0 28px 18px;
  font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.compare thead th:first-child { padding-left: 0; }
.compare thead th.is-new { color: var(--accent); }
.compare tbody th, .compare tbody td {
  padding: 26px 28px; border-top: 1px solid var(--line);
  vertical-align: top; font-size: 16.5px; line-height: 1.45;
}
.compare tbody th {
  width: 24%; padding-left: 0;
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  line-height: 1.1; letter-spacing: -0.01em;
}
.compare td.is-old { width: 34%; color: var(--muted); }
.compare td.is-new {
  position: relative; padding-left: 64px;
  background: var(--paper); font-weight: 500;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.compare td.is-new::before {
  content: ""; position: absolute; left: 30px; top: 31px; width: 13px; height: 7px;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.compare tbody tr:first-child td.is-new { border-radius: 16px 16px 0 0; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child td.is-new { border-radius: 0 0 16px 16px; }
.compare__tag { display: none; }

/* -------------------------------- Demo ---------------------------------- */

.demo { overflow: hidden; }
.demo::before {
  content: ""; position: absolute; z-index: -1; width: 1000px; height: 1000px; left: 50%; top: -560px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(196, 162, 108, 0.14), transparent);
  pointer-events: none;
}

.demo__shell {
  margin-top: clamp(48px, 6vw, 80px);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 70px 120px -70px rgba(0, 0, 0, 0.9);
}

.demo__tabs { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.demo__tab {
  position: relative; display: flex; align-items: baseline; gap: 14px;
  padding: 22px clamp(16px, 2.4vw, 32px); text-align: left; color: var(--muted);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.demo__tab + .demo__tab { border-left: 1px solid var(--line); }
.demo__tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.demo__tab-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--on-dark-faint); transition: color 0.25s; }
.demo__tab-name { font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.6rem); line-height: 1.1; letter-spacing: -0.01em; }
.demo__tab:hover { color: var(--fg); }
.demo__tab[aria-selected="true"] { color: var(--fg); background: rgba(255, 255, 255, 0.035); }
.demo__tab[aria-selected="true"] .demo__tab-num { color: var(--brass); }
.demo__tab[aria-selected="true"]::after { transform: scaleX(1); }
.demo__tab:focus-visible { outline-offset: -3px; }

.demo__panel {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(28px, 4vw, 56px);
  min-height: 744px; /* tallest stage, so the shell doesn't jump between tabs */
}
.js .demo__panel { animation: panelIn 0.6s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
html:not(.js) .demo__panel + .demo__panel { border-top: 1px solid var(--line); }

.demo__title { font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1.08; }
.demo__text { margin-top: 20px; color: var(--muted); max-width: 44ch; }
.demo__stage { display: flex; justify-content: center; min-width: 0; }

.ticks { margin-top: 28px; border-top: 1px solid var(--line); max-width: 44ch; }
.ticks li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.6em; width: 14px; height: 1px; background: var(--accent); }

/* Shared card for the three demo stages */
.chat, .cadence, .coach {
  width: 100%; max-width: 470px;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 50px 90px -45px rgba(0, 0, 0, 0.95);
}

/* Conversation */
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-dark); }
.chat__avatar {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.08); color: var(--on-dark);
}
.chat__who { display: flex; flex-direction: column; min-width: 0; margin-right: auto; line-height: 1.3; }
.chat__who strong { font-size: 14px; font-weight: 500; }
.chat__who span { font-size: 12px; color: var(--on-dark-faint); }

.chat__thread {
  display: flex; flex-direction: column; justify-content: flex-start; gap: 8px;
  padding: 18px; min-height: 380px;
}
.msg { display: flex; flex-direction: column; gap: 4px; max-width: 86%; }
.msg p { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.msg time { padding-inline: 4px; font-family: var(--mono); font-size: 10.5px; color: var(--on-dark-faint); }
.msg--stamp { align-self: center; max-width: none; margin-bottom: 4px; }
.msg--in { align-self: flex-start; }
.msg--in p { background: rgba(255, 255, 255, 0.075); border-bottom-left-radius: 5px; }
.msg--out { align-self: flex-end; align-items: flex-end; }
.msg--out p { background: linear-gradient(180deg, #f8f5ee, #e9e4d9); color: var(--ink); border-bottom-right-radius: 5px; }
.msg--event {
  align-self: stretch; max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 8px; padding-top: 16px; border-top: 1px dashed var(--line-dark-strong);
}
.msg--event span {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.02em; color: var(--brass);
  background: var(--brass-soft); border: 1px solid var(--brass-line); border-radius: 999px;
  padding: 4px 9px; white-space: nowrap;
}
.msg--event span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }

.msg.is-hidden { display: none; }
.msg.is-in { animation: msgIn 0.5s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.msg--typing p { display: inline-flex; align-items: center; gap: 4px; padding: 15px 14px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: typing 1s ease-in-out infinite; }
.msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.25; transform: none; } 30% { opacity: 0.9; transform: translateY(-2px); } }

.chat__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; border-top: 1px solid var(--line-dark);
  font-size: 12.5px; color: var(--on-dark-faint);
}
.chat__replay {
  flex: none;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-dark-muted); border: 1px solid var(--line-dark-strong); border-radius: 999px;
  padding: 6px 12px; transition: color 0.2s, border-color 0.2s;
}
.chat__replay:hover { color: var(--on-dark); border-color: var(--on-dark); }
html:not(.js) .chat__replay { display: none; }

/* Follow-up schedule */
.cadence__head, .coach__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line-dark);
}
.cadence__id, .coach__id { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); }

.cadence__list { padding: 26px 20px 6px; }
.cadence__step { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 0 16px; padding-bottom: 24px; }
.js .demo__panel.is-playing .cadence__step { animation: msgIn 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 320ms + 150ms); }
.cadence__day { padding-top: 3px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-faint); white-space: nowrap; }
.cadence__body { position: relative; padding-left: 28px; }
.cadence__body::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid var(--on-dark-muted); background: var(--ink);
}
.cadence__body::after {
  content: ""; position: absolute; left: 4px; top: 21px; bottom: -24px; width: 1px; background: var(--line-dark-strong);
}
.cadence__step:last-child .cadence__body::after { display: none; }
.cadence__body h4 { font-size: 15px; font-weight: 500; }
.cadence__body p { margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--on-dark-muted); }
.cadence__step.is-final .cadence__body::before { background: var(--brass); border-color: var(--brass); box-shadow: 0 0 0 5px var(--brass-soft); }
.cadence__step.is-final h4 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1; color: var(--brass); }
.cadence__step.is-final p { margin-top: 6px; }
.cadence__foot { padding: 14px 20px; border-top: 1px solid var(--line-dark); font-size: 12.5px; color: var(--on-dark-faint); }

/* Door-knocking coach */
.coach__body { padding: 22px 20px 20px; }
.coach__levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.coach__level {
  height: 42px; border: 1px solid var(--line-dark-strong); border-radius: 10px;
  font-family: var(--mono); font-size: 13px; color: var(--on-dark-muted);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.coach__level:hover { border-color: var(--on-dark); color: var(--on-dark); }
.coach__level.is-passed { border-color: rgba(196, 162, 108, 0.5); color: var(--brass); background: var(--brass-soft); }
.coach__level[aria-pressed="true"] { background: var(--brass); border-color: var(--brass); color: var(--ink); }

.coach__scene { margin-top: 24px; }
.coach__scene.is-in { animation: msgIn 0.5s var(--ease) both; }
.coach__name { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); }
.coach__quote {
  margin-top: 12px; min-height: 3.6em;
  font-family: var(--serif); font-size: clamp(1.5rem, 2.1vw, 1.85rem); line-height: 1.2; letter-spacing: -0.01em;
}
.coach__sub { margin-top: 20px; font-size: 12.5px; color: var(--on-dark-faint); }
.coach__skills { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; margin-top: 10px; min-height: 74px; }
.coach__skills li { font-size: 13px; color: var(--on-dark-muted); border: 1px solid var(--line-dark-strong); border-radius: 999px; padding: 6px 12px; }
.coach__next { width: 100%; margin-top: 20px; height: 46px; font-size: 14px; }
html:not(.js) .coach__next { display: none; }

/* ------------------------------- Agents --------------------------------- */

.agents__layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.agents__intro { position: sticky; top: 124px; }
.agents__intro .h2 { margin-top: 24px; }
.agents__intro .lede { margin-top: 24px; }
.agents__intro .btn { margin-top: 36px; }

.group + .group { margin-top: 60px; }
.group__label {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 14px; border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}

/* Accordion (agents + FAQ) */

.acc { position: relative; border-bottom: 1px solid var(--line); }
.acc__head {
  width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) 30px; gap: 0 16px;
  align-items: start; text-align: left; padding: 26px 0;
}
.acc--plain .acc__head { grid-template-columns: minmax(0, 1fr) 30px; }

.acc__num { padding-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--accent); }
.acc__title {
  display: block; font-family: var(--serif); font-size: clamp(1.55rem, 2.2vw, 1.95rem);
  line-height: 1.12; letter-spacing: -0.01em;
  transition: transform 0.4s var(--ease);
}
.acc__head:hover .acc__title { transform: translateX(4px); }
.acc__desc { display: block; margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--muted); max-width: 52ch; }

.acc__icon {
  position: relative; width: 30px; height: 30px; margin-top: 3px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.acc__icon::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
  border-right: 1.25px solid currentColor; border-bottom: 1.25px solid currentColor;
  transform: translate(-50%, -70%) rotate(45deg);
  transition: transform 0.45s var(--ease);
}
.acc__head:hover .acc__icon { border-color: var(--fg); }
.acc.is-open .acc__icon { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.acc.is-open .acc__icon::before { transform: translate(-50%, -30%) rotate(-135deg); }
html:not(.js) .acc__icon { display: none; }

.acc__body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.5s var(--ease); }
.js .acc:not(.is-open) .acc__body { grid-template-rows: 0fr; }
.acc__inner { overflow: hidden; min-height: 0; }
.acc__content { padding: 0 44px 30px 68px; font-size: 15.5px; color: var(--muted); }
.acc--plain .acc__content { padding-left: 0; max-width: 60ch; font-size: 16px; }

.acc__list li { position: relative; padding-left: 24px; line-height: 1.55; color: var(--fg); }
.acc__list li + li { margin-top: 8px; }
.acc__list li::before {
  content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 1px; background: var(--accent);
}

/* "Add to your team" control on each roster row (injected by main.js) */
.agents__roster .acc__head { padding-right: 112px; }
.acc__add {
  position: absolute; top: 25px; right: 0;
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px 0 12px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--fg);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.acc__add::before {
  content: ""; width: 10px; height: 10px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.25px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.25px 100% no-repeat;
}
.acc__add:hover { border-color: var(--fg); }
.acc__add[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.acc__add[aria-pressed="true"]::before {
  height: 6px; background: none;
  border-left: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass);
  transform: translateY(-2px) rotate(-45deg);
}

/* Custom agent banner */

.custom {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 60px;
  --bg: var(--ink); --fg: var(--on-dark); --muted: var(--on-dark-muted); --accent: var(--brass);
  --line: var(--line-dark); --line-strong: var(--line-dark-strong);
  background: var(--card-dark); color: var(--fg);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px;
  box-shadow: 0 40px 80px -50px rgba(11, 12, 14, 0.7);
}
.custom::before {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -260px;
  background: radial-gradient(closest-side, rgba(196, 162, 108, 0.28), transparent);
}
.custom__title { margin-top: 20px; font-size: clamp(1.9rem, 3vw, 2.6rem); max-width: 16ch; }
.custom__text { margin-top: 14px; color: var(--muted); max-width: 40ch; font-size: 16px; }

/* -------------------------------- CRM ----------------------------------- */

.crm { overflow: hidden; }
.crm::before {
  content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; left: -380px; bottom: -520px;
  background: radial-gradient(closest-side, rgba(196, 162, 108, 0.13), transparent);
  pointer-events: none;
}
.crm__grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 7vw, 112px); align-items: center;
}
.crm__copy .h2 { margin-top: 24px; }
.crm__copy .lede { margin-top: 28px; }

.features {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px);
}
.features li { padding: 24px 0; border-top: 1px solid var(--line); }
.features h3 { font-size: 16px; font-weight: 500; letter-spacing: -0.005em; }
.features p { margin-top: 6px; font-size: 15px; color: var(--muted); }

.ledger {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 60px 110px -55px rgba(0, 0, 0, 0.95), 0 30px 70px -40px rgba(196, 162, 108, 0.16);
  padding: clamp(24px, 3vw, 36px);
}
.ledger__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ledger__id { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ledger__title { margin-top: 20px; font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.1; letter-spacing: -0.01em; }
.ledger__sub { margin-top: 6px; font-size: 14px; color: var(--muted); }

.ledger__rows { margin-top: 24px; border-top: 1px solid var(--line); }
.ledger__rows div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.ledger__rows dt { color: var(--muted); }
.ledger__rows dd { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.ledger__bar { display: flex; gap: 3px; height: 8px; margin-top: 26px; }
.ledger__bar span { height: 100%; border-radius: 2px; background: rgba(241, 238, 231, 0.22); transform-origin: left; }
.ledger__bar span:first-child { border-radius: 99px 2px 2px 99px; }
.ledger__bar .is-profit { background: linear-gradient(90deg, var(--brass), var(--brass-hi)); border-radius: 2px 99px 99px 2px; }
.js .ledger .ledger__bar span { transform: scaleX(0); transition: transform 1.1s var(--ease) 0.35s; }
.js .ledger.is-in .ledger__bar span { transform: none; }

.ledger__total { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ledger__total span { display: block; font-size: 13px; color: var(--muted); }
.ledger__total strong {
  display: block; margin-top: 2px;
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 3.4vw, 3.1rem); line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.ledger__total div:last-child strong { color: var(--brass); }
.ledger__note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--on-dark-faint); }

/* ----------------------------- Calculator ------------------------------- */

.calc__card {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--bone); overflow: hidden;
  box-shadow: 0 50px 100px -70px rgba(11, 12, 14, 0.45);
}
.calc__controls { display: grid; gap: clamp(26px, 3vw, 38px); align-content: center; padding: clamp(28px, 4.5vw, 64px); }

.range__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.range label { font-size: 15.5px; color: var(--muted); }
.range output { font-family: var(--serif); font-size: 1.8rem; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }

.range input[type="range"] {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 30px; margin: 8px 0 0; padding: 0;
  background: transparent; cursor: pointer; --p: 50%;
}
.range input[type="range"]::-webkit-slider-runnable-track {
  height: 2px; border-radius: 2px;
  background: linear-gradient(to right, var(--ink) var(--p), var(--line-light-strong) var(--p));
}
.range input[type="range"]::-moz-range-track { height: 2px; border-radius: 2px; background: var(--line-light-strong); }
.range input[type="range"]::-moz-range-progress { height: 2px; border-radius: 2px; background: var(--brass-deep); }
.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; margin-top: -10px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink);
  box-shadow: 0 2px 8px rgba(11, 12, 14, 0.16);
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s;
}
.range input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink);
  box-shadow: 0 2px 8px rgba(11, 12, 14, 0.16);
}
.range input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); }
.range input[type="range"]:active::-webkit-slider-thumb { background: var(--brass); }
.range input[type="range"]:focus-visible { outline: 2px solid var(--accent, var(--brass)); outline-offset: 3px; }
.range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(125, 95, 48, 0.35); }
.range input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px rgba(125, 95, 48, 0.35); }

.calc__result {
  --bg: var(--ink); --fg: var(--on-dark); --muted: var(--on-dark-muted);
  --line: var(--line-dark); --line-strong: var(--line-dark-strong); --accent: var(--brass);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--card-dark); color: var(--fg);
  padding: clamp(28px, 4vw, 56px);
}
.calc__result::before {
  content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; right: -220px; top: -300px;
  background: radial-gradient(closest-side, rgba(196, 162, 108, 0.26), transparent);
}
.calc__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.calc__figure {
  margin-top: 18px;
  font-family: var(--serif); font-size: clamp(3.2rem, 5.6vw, 5.2rem); line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.calc__figure small { display: block; margin-top: 10px; font-family: var(--sans); font-size: 14px; letter-spacing: 0; color: var(--muted); }
.calc__break { margin-top: 30px; border-top: 1px solid var(--line); }
.calc__break div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.calc__break dt { color: var(--muted); }
.calc__break dd { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.calc__note { margin-top: 18px; font-size: 12.5px; line-height: 1.55; color: var(--on-dark-faint); }
.calc__result .btn { margin-top: 28px; align-self: flex-start; }

/* ------------------------------ Process --------------------------------- */

.steps {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
}
.step { padding: 28px 28px 0 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step__num { display: block; font-family: var(--serif); font-size: clamp(2.8rem, 4vw, 3.6rem); line-height: 1; color: var(--accent); }
.step__title { margin-top: clamp(36px, 5vw, 72px); font-size: 1.12rem; font-weight: 500; letter-spacing: -0.01em; }
.step__text { margin-top: 10px; font-size: 15.5px; color: var(--muted); }

/* ------------------------------ Packages -------------------------------- */

.plans {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.plan {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bone); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 2.6vw, 36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.plan:hover { border-color: var(--line-strong); box-shadow: 0 40px 70px -50px rgba(11, 12, 14, 0.4); }
.plan--feature {
  --bg: var(--ink); --fg: var(--on-dark); --muted: var(--on-dark-muted);
  --line: var(--line-dark); --line-strong: var(--line-dark-strong); --accent: var(--brass);
  border: 1px solid transparent;
  background: var(--card-dark) padding-box, var(--edge) border-box;
  color: var(--fg);
  box-shadow: 0 50px 90px -55px rgba(11, 12, 14, 0.75);
}
.plan--feature:hover { border-color: transparent; box-shadow: 0 60px 100px -55px rgba(11, 12, 14, 0.85), 0 30px 70px -45px rgba(196, 162, 108, 0.35); }
.plan__glyph {
  display: grid; grid-template-columns: repeat(6, 10px); gap: 5px;
  height: 25px; align-content: end;
}
.plan__glyph i { width: 10px; height: 10px; border-radius: 2.5px; background: var(--accent); }
.plan__label {
  margin-top: 36px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.plan__title { margin-top: 14px; font-size: clamp(1.9rem, 2.6vw, 2.35rem); line-height: 1.06; }
.plan__text { margin-top: 16px; font-size: 15.5px; color: var(--muted); }
.plan__list { margin-top: auto; padding-top: 32px; }
.plan__list li {
  position: relative; padding: 13px 0 13px 24px; border-top: 1px solid var(--line);
  font-size: 15px; line-height: 1.45;
}
.plan__list li::before { content: ""; position: absolute; left: 0; top: 1.5em; width: 12px; height: 1px; background: var(--accent); }

.plans__foot {
  margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.plans__foot p { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.2; letter-spacing: -0.01em; }

/* -------------------------------- FAQ ----------------------------------- */

.faq__layout {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 112px); align-items: start;
}
.faq__intro .h2 { margin-top: 24px; }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq .acc__title { font-size: clamp(1.35rem, 1.9vw, 1.65rem); }
.faq .acc__head { padding: 24px 0; }

/* -------------------------------- Book ---------------------------------- */

.book { overflow: hidden; }
.book__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.book__bg::before {
  content: ""; position: absolute; width: 1100px; height: 1100px; right: -340px; top: -420px;
  background: radial-gradient(closest-side, rgba(196, 162, 108, 0.18), rgba(196, 162, 108, 0.04) 55%, transparent);
}
.book__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 112px); align-items: start;
}
.book__copy { position: sticky; top: 124px; } /* stays in view beside the longer form */
.book__title { margin-top: 24px; font-size: clamp(2.6rem, 5.2vw, 4.8rem); }
.book__copy .lede { margin-top: 28px; }

.expect { margin-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line); }
.expect li {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-size: 15.5px; color: var(--muted);
}
.expect span { font-family: var(--mono); font-size: 12px; color: var(--brass); padding-top: 3px; }

.form-card {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 60px 110px -55px rgba(0, 0, 0, 0.95), 0 30px 70px -45px rgba(196, 162, 108, 0.14);
  padding: clamp(24px, 3.2vw, 40px);
}
.form, .form-done { position: relative; z-index: 2; }
.form__title { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; letter-spacing: -0.01em; }
.form__sub { margin-top: 8px; font-size: 15px; color: var(--muted); }

.form__grid { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field label, .fieldset legend { font-size: 13px; color: var(--on-dark-muted); }
.field label em, .fieldset legend em { font-style: normal; color: var(--on-dark-faint); }

.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 16px; color: var(--on-dark);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-dark-strong); border-radius: 10px;
  padding: 13px 15px;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23a8a49b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 16px;
}
.field select option { background: var(--ink-2); color: var(--on-dark); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(241, 238, 231, 0.34); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brass); background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(196, 162, 108, 0.14);
}
.field__error { display: none; font-size: 12.5px; color: var(--danger); }
.field.is-invalid input { border-color: var(--danger); }
.field.is-invalid .field__error { display: block; }

/* Selectable chips (interests, best time) */
.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
  border: 1px solid var(--line-dark-strong); border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 13.5px; color: var(--on-dark-muted); user-select: none;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.chip:hover span { border-color: rgba(241, 238, 231, 0.4); color: var(--on-dark); }
.chip input:checked + span { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent, var(--brass)); outline-offset: 2px; }

.form__submit { margin-top: 26px; width: 100%; }
.form__submit[disabled] { opacity: 0.6; pointer-events: none; }
.form__error { margin-top: 14px; font-size: 14px; color: var(--danger); }

.form-done { padding: clamp(16px, 3vw, 40px) 0; outline: none; }
.form-done__mark {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  color: var(--brass); background: var(--brass-soft); border: 1px solid var(--brass-line);
}
.form-done__mark svg { width: 24px; height: 24px; }
.form-done__title { margin-top: 28px; font-size: clamp(2.2rem, 3.4vw, 3rem); }
.form-done p { margin-top: 14px; color: var(--muted); max-width: 42ch; }
.form-done .form-done__summary { color: var(--on-dark); }
.form-done .form-done__preview {
  margin-top: 28px; padding: 12px 14px; max-width: none;
  border: 1px dashed var(--line-dark-strong); border-radius: 10px;
  font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--on-dark-faint);
}

/* ------------------------- Floating shortcuts --------------------------- */

/* Team dock: shown once an agent has been added from the roster */
.dock {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 35;
  display: flex; align-items: center; gap: 14px;
  max-width: calc(100vw - 24px); padding: 8px 8px 8px 10px;
  border-radius: 999px; color: var(--on-dark);
  background: rgba(18, 19, 22, 0.88);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(241, 238, 231, 0.16);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: translate(-50%, 170%); visibility: hidden;
  transition: transform 0.55s var(--ease), visibility 0s 0.55s;
}
.dock.is-visible { transform: translate(-50%, 0); visibility: visible; transition: transform 0.55s var(--ease), visibility 0s; }
.dock__count {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brass); color: var(--ink);
  font-family: var(--mono); font-size: 13px; font-weight: 500;
}
.dock__text { display: flex; flex-direction: column; min-width: 0; max-width: 340px; line-height: 1.3; }
.dock__text strong { font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.dock__text > span { font-size: 12px; color: var(--on-dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__clear { flex: none; padding: 8px 4px; font-size: 12.5px; color: var(--on-dark-muted); transition: color 0.2s; }
.dock__clear:hover { color: var(--on-dark); }
.dock .btn { flex: none; }

/* Phone-only booking shortcut */
.sticky-cta { display: none; }

/* ------------------------------- Footer --------------------------------- */

.footer { border-top: 1px solid var(--line-dark); padding-top: clamp(56px, 6vw, 88px); overflow: hidden; }
.footer__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px 48px; }
.footer__tag { margin-top: 16px; font-size: 15px; color: var(--muted); max-width: 30ch; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 14.5px; color: var(--muted); max-width: 520px; }
.footer__nav a { transition: color 0.2s; }
.footer__nav a:hover { color: var(--on-dark); }

.footer__bottom {
  margin-top: clamp(40px, 5vw, 72px); padding-top: 24px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13.5px; color: var(--on-dark-faint);
}
.footer__bottom a:hover { color: var(--on-dark); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 4px 24px; }
/* The wordmark, large and faded, across the bottom of the page */
.footer__mark {
  display: block; width: 100%; height: auto;
  margin: clamp(40px, 6vw, 88px) 0 clamp(36px, 5vw, 72px);
  user-select: none; pointer-events: none;
}

/* ----------------------------- Responsive ------------------------------- */

@media (max-width: 1100px) {
  .dash__body { grid-template-columns: 200px minmax(0, 1fr) 250px; }
}

@media (max-width: 960px) {
  .dash__body { grid-template-columns: minmax(0, 1fr) 250px; }
  .dash__side { display: none; }

  .crm__grid, .book__grid { grid-template-columns: 1fr; }
  .book__copy { position: static; }
  .ledger { max-width: 560px; }
  .form-card { max-width: 640px; }

  .demo__panel { grid-template-columns: 1fr; min-height: 0; }
  .demo__stage { justify-content: flex-start; }
  .calc__card { grid-template-columns: 1fr; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n + 3) { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-strong); }

  .plans { grid-template-columns: 1fr; }
  .plan { max-width: 640px; }
  .plan__list { margin-top: 0; }
}

@media (max-width: 920px) {
  .nav__bar { grid-template-columns: 1fr auto; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-block; }

  .head { grid-template-columns: 1fr; align-items: start; }
  .agents__layout, .faq__layout { grid-template-columns: 1fr; }
  .agents__intro { position: static; }

  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .strip__item:nth-child(n + 3) { margin-top: 30px; border-top: 1px solid var(--line); }

  .why__body { max-width: none; margin-left: 0; }
}

@media (max-width: 760px) {
  /* Comparison stacks: one block per row, both answers labelled */
  .compare, .compare tbody, .compare tr, .compare tbody th, .compare tbody td { display: block; width: auto; }
  .compare thead { display: none; }
  .compare tbody tr { padding: 26px 0; border-top: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 1px solid var(--line); }
  .compare tbody th, .compare tbody td { padding: 0; border: 0; }
  .compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
  .compare tbody th { width: auto; margin-bottom: 14px; }
  .compare td.is-old { width: auto; font-size: 15.5px; }
  .compare td.is-new, .compare tbody tr:first-child td.is-new, .compare tbody tr:last-child td.is-new {
    margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px;
  }
  .compare td.is-new::before { display: none; }
  .compare__tag {
    display: block; margin-bottom: 4px;
    font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted);
  }
  .compare td.is-new .compare__tag { color: var(--accent); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.11em; gap: 10px; }
  .eyebrow::before { width: 20px; }
  .pill { font-size: 10.5px; letter-spacing: 0.08em; }

  .nav { inset: 10px 0 auto 0; }
  .nav__bar, .nav.is-scrolled .nav__bar { height: 56px; padding: 0 6px 0 18px; }
  .brand__logo { height: 15px; }

  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }

  .dash__bar { height: 46px; padding: 0 14px; gap: 10px; }
  .dash__live, .dash__dots { display: none; }
  .dash__name { font-size: 10px; letter-spacing: 0.06em; }
  .kpi .dash__label { min-height: 2.9em; }
  .dash__body { grid-template-columns: 1fr; }
  .dash__head { padding: 14px 16px 10px; }
  .ops__feed { height: 400px; }
  .ops__item { padding: 15px 16px; }
  .dash__rail { grid-template-columns: 1fr 1fr; grid-template-rows: auto; border-left: 0; border-top: 1px solid var(--line-dark); }
  .kpi { padding: 14px 16px 16px; border-bottom: 0; }
  .kpi + .kpi { border-left: 1px solid var(--line-dark); }
  .kpi--profit, .kpi__bars { display: none; }
  .kpi__v { font-size: 34px; }

  .strip { grid-template-columns: 1fr; }
  .strip__item, .strip__item + .strip__item { padding: 24px 0 0; border-left: 0; margin-top: 24px; border-top: 1px solid var(--line); }
  .strip__item:first-child { margin-top: 0; border-top: 0; }
  .strip__label { max-width: none; }

  .why__body { grid-template-columns: 1fr; }

  .demo__tab { flex-direction: column; gap: 4px; padding: 14px 12px; }
  .demo__tab-name { font-size: 1.05rem; }
  .demo__panel { padding: 24px 16px 20px; }
  .demo__stage { justify-content: center; }
  .chat__thread { padding: 16px 14px; }
  .msg { max-width: 92%; }
  .msg p { font-size: 13.5px; }

  .acc__head { grid-template-columns: 34px minmax(0, 1fr) 30px; gap: 0 10px; padding: 22px 0; }
  .acc__content { padding: 0 0 26px 44px; }
  .acc--plain .acc__content { padding-right: 0; }
  .agents__roster .acc__head { padding-right: 0; }
  .acc__add { position: static; margin: -6px 0 20px 44px; }

  .custom .btn { width: 100%; }
  .features { grid-template-columns: 1fr; }

  .range label { font-size: 14.5px; }
  .range output { font-size: 1.5rem; }
  .calc__result .btn { align-self: stretch; }

  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 24px 0 0; border-left: 0; }
  .step + .step { margin-top: 36px; border-top: 1px solid var(--line-strong); }
  .step:nth-child(n + 3) { margin-top: 36px; padding-top: 24px; }
  .step__title { margin-top: 20px; }

  .plans__foot .btn { width: 100%; }
  .form__grid { grid-template-columns: 1fr; }
  .footer__nav { gap: 12px 24px; }

  .dock {
    left: 12px; right: 12px; max-width: none; gap: 10px;
    transform: translateY(170%);
  }
  .dock.is-visible { transform: none; }
  .dock__text { flex: 1; }
  .dock__clear, .dock__rest { display: none; }

  .sticky-cta {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 30;
    display: flex;
    /* Fill, type and label come from .btn.btn--primary. This only floats it. */
    box-shadow: inset 0 1px 0 #fff, 0 1px 1px rgba(0, 0, 0, 0.25), 0 16px 40px -12px rgba(0, 0, 0, 0.55);
    transform: translateY(160%); visibility: hidden;
    transition: transform 0.5s var(--ease), visibility 0s 0.5s;
  }
  .sticky-cta svg { width: 16px; height: 16px; }
  .sticky-cta.is-visible { transform: none; visibility: visible; transition: transform 0.5s var(--ease), visibility 0s; }
  .has-team .sticky-cta { display: none; }
}

@media (hover: none) {
  .spot { display: none; }
}

/* --------------------------- Reduced motion ----------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* --------------------- P0 small-site shared layouts --------------------- */
.page-first { padding-top: 144px; }
.page__narrow { max-width: 860px; }
.page__title { margin: 18px 0 24px; }
.page__subhead { margin: 38px 0 16px; font-family: var(--mono); font-size: 14px; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; color: var(--brass); }
.page__list { list-style: none; padding: 0; margin: 0; max-width: 56ch; }
.page__list li { padding: 12px 0; border-bottom: 1px solid var(--line-dark); color: var(--on-dark-muted); }
.page__note { margin: 28px 0; color: var(--on-dark-muted); font-size: 15px; line-height: 1.7; }
.page__links { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; list-style: none; }
.page__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.page__back { margin-top: 36px; }
.page__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.book__side { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.scheduler__embed { min-height: 560px; }
.scheduler__status { margin-top: 22px; font-size: 14px; color: var(--on-dark-muted); }
.scheduler__switch { margin-top: 22px; font-size: 14px; }
.scheduler__switch a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
.placeholder { padding: 24px; margin-top: 28px; border: 1px dashed var(--brass); border-radius: 12px; }
@media (max-width: 640px) { .page-first { padding-top: 112px; } }

/* P0 form states */
.field__hint { font-size: 14px; color: var(--on-dark-faint); }
.form__summary { margin-top: 20px; font-size: 14px; color: var(--danger); }
.form__privacy, .form__noscript { margin-top: 16px; font-size: 14px; color: var(--on-dark-faint); }
.form__privacy a { color: var(--on-dark-muted); text-decoration: underline; text-underline-offset: 3px; }
.form__preview { margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--line-dark); border-radius: 10px; font-size: 14px; color: var(--on-dark); }
html:not(.js) form[data-form]:not([action]) .form__submit { display: none; }

/* Pause/play for auto-moving content (WCAG 2.2.2). One shared preference. */
.motion-toggle {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; min-width: 44px; padding: 0 14px 0 12px;
  border: 1px solid rgba(241,238,231,.40); border-radius: 999px;
  background: rgba(255,255,255,0.03);
  font-family: var(--mono); font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-dark-muted); cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.motion-toggle svg { width: 14px; height: 14px; }
.motion-toggle .i-play { display: none; }
.motion-toggle[data-state="paused"] .i-play { display: block; color: var(--brass); }
.motion-toggle[data-state="paused"] .i-pause { display: none; }
.motion-toggle:hover { color: var(--on-dark); border-color: var(--on-dark); background: rgba(255,255,255,0.06); }
.motion-toggle:focus-visible { outline: 2px solid var(--accent, var(--brass)); outline-offset: 3px; border-radius: 999px; }
.dash__bar .motion-toggle { margin-left: auto; }
.dash__bar .tag + .motion-toggle { margin-left: 4px; }
.marquee-wrap { position: relative; }
.marquee__ctl { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 2; padding: 6px; border-radius: 999px; background: var(--ink); box-shadow: 0 0 0 1px var(--line-dark); }
.marquee__ctl .motion-toggle { border-color: transparent; }
html.motion-paused .marquee__track, html.motion-paused .hero * { animation-play-state: paused !important; }
@media (max-width: 640px) { .motion-toggle { padding: 0 12px 0 10px; } }

/* ------------- 14px text floor and 44×44 tap targets (P0 #6) ---------------
   From design/p0/assets/p0-fixes.css and a11y/TYPE-AND-TAPS.md. */
/* ---------- Type floor: mono uppercase labels -> --fs-label ---------- */
.eyebrow,
.tag,
.pill,
.dash__name,
.dash__label,
.dash__when,
.ops__time,
.compare thead th,
.compare__tag,
.demo__tab-num,
.msg time,
.msg--event span,
.chat__replay,
.cadence__id, .coach__id,
.cadence__day,
.coach__name,
.group__label,
.acc__num,
.ledger__id,
.calc__label,
.plan__label,
.expect span,
.form-done .form-done__preview,
.kpi__jobs b,
.dash__ac,
.coach__level,
.dock__count { font-size: var(--fs-label); }

.eyebrow, .tag, .pill, .dash__name, .dash__label, .compare thead th, .compare__tag,
.msg--event span, .chat__replay, .group__label, .calc__label, .plan__label,
.cadence__day, .coach__name { letter-spacing: var(--ls-label); }

/* Avatars with initials: box grows so 14px initials fit */
.dash__ini { font-size: var(--fs-label); width: 30px; height: 30px; }
.dash__agents li { grid-template-columns: 30px minmax(0, 1fr) auto; font-size: var(--fs-label); }
.ops__avatar, .chat__avatar { font-size: var(--fs-label); letter-spacing: 0.02em; }

/* ---------- Type floor: Geist small text -> --fs-meta / --fs-ui ---------- */
.dash__live,
.kpi__v small,
.kpi__s,
.kpi__jobs li,
.chat__who span,
.chat__foot,
.cadence__foot,
.coach__sub,
.coach__skills li,
.ledger__total span,
.ledger__note,
.calc__note,
.field label, .fieldset legend,
.field__error,
.dock__text > span,
.footer__bottom { font-size: var(--fs-label); }

.ops__agent,
.acc__add,
.chip span,
.dock__text strong,
.dock__clear,
.msg p { font-size: var(--fs-ui); }

@media (max-width: 760px) {
  .compare__tag { font-size: var(--fs-label); letter-spacing: var(--ls-label); }
}
@media (max-width: 640px) {
  .eyebrow { font-size: var(--fs-label); letter-spacing: var(--ls-label); }
  /* Pill: 14px mono uppercase is too wide for one line at 375; allow 2 centred lines */
  .pill { font-size: var(--fs-label); letter-spacing: 0.06em; white-space: normal; text-align: left; line-height: 1.35; border-radius: 18px; max-width: 100%; }
  .dash__name { display: none; }           /* decorative; "Sample data" tag + motion toggle take the bar */
  .msg p { font-size: var(--fs-ui); }
}

/* ---------- Tap targets: 44 x 44 minimum ---------- */
.skip { min-height: var(--tap); display: inline-flex; align-items: center; }
.brand { min-height: var(--tap); }                         /* nav + footer logo links (were 27/32px tall) */
.btn--sm { height: var(--tap); }                           /* nav CTA, dock CTA (were 42px) */
.nav__links a { padding: 12px 0; }                         /* desktop nav links (were 35px tall) */
.chat__replay { min-height: var(--tap); padding: 0 16px; display: inline-flex; align-items: center; }   /* was 70x31 */
.acc__add { height: var(--tap); min-width: 88px; padding: 0 18px 0 14px; }                            /* was 71x34 */
.coach__level { height: 48px; }                                                                        /* was 47x42 */
.chip span { height: var(--tap); padding: 0 16px; }                                                    /* was 36px */
.chips { gap: 8px; }
.range input[type="range"] { height: var(--tap); margin-top: 2px; }                                    /* was 30px */
.dock__clear { min-height: var(--tap); min-width: var(--tap); padding: 0 10px; }                       /* was 39x36 */
.footer__nav { gap: 0 28px; }
.footer__nav a, .footer__bottom a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap); } /* were 22-23px */
@media (max-width: 640px) {
  .acc__add { margin: -4px 0 20px 44px; }
  .footer__nav { gap: 0 20px; }
}

/* Control boundaries ≥3:1 (WCAG 1.4.11): --field-line on dark, --range-track on light */
.field input, .field select, .field textarea, .chip span { border-color: var(--field-line); }
.field input:hover, .field select:hover, .field textarea:hover, .chip:hover span { border-color: rgba(241, 238, 231, 0.55); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); }
.range input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--brass-deep) var(--p), var(--range-track) var(--p)); }
.range input[type="range"]::-moz-range-track { background: var(--range-track); }
.motion-toggle { border-color: var(--field-line); }

/* ------------------ Legal drafts (from brand/privacy.html) ------------------ */
.draft-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px var(--gutter); text-align: center;
  background-color: rgba(18, 19, 22, 0.94); border-top: 1px solid var(--brass-line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--on-dark); font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
}
.draft-banner strong { color: var(--brass-hi); font-weight: 500; }
.draft-banner span { display: block; margin-top: 4px; text-transform: none; letter-spacing: 0.02em; color: var(--on-dark-muted); font-family: var(--sans); font-size: 14px; }
.page--legal { padding-bottom: 96px; }
.legal-hero { padding-block: 144px clamp(32px, 4vw, 56px); }
.legal-hero .h2 { margin-top: 20px; }
.legal-hero .lede { margin-top: 20px; }
.legal-meta { margin-top: 24px; font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.legal { padding-block: clamp(32px, 4vw, 56px) var(--section); }
.legal__body { max-width: 72ch; }
.legal__body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.1; letter-spacing: -0.015em; margin: 56px 0 16px; }
.legal__body h3 { font-size: 1.05rem; font-weight: 600; margin: 28px 0 8px; }
.legal__body p, .legal__body li { color: var(--fg); overflow-wrap: anywhere; }
.legal__body p + p { margin-top: 14px; }
.legal__body ul { list-style: disc; padding-left: 1.3em; margin: 12px 0; }
.legal__body ol { list-style: decimal; padding-left: 1.3em; margin: 12px 0; }
.legal__body li + li { margin-top: 6px; }
.legal__body a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.legal__toc { margin: 8px 0 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.legal__toc ol { columns: 2 220px; margin: 0; }
.legal__toc a { display: inline-flex; align-items: center; min-height: 44px; }
.callout { margin: 20px 0; padding: 20px 24px; border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--bone); }
.callout p { font-weight: 500; }
/* Placeholders awaiting Alex: impossible to miss, never under 14px. */
.ph { font-family: var(--mono); font-size: max(14px, 0.86em); background: var(--brass-soft); border: 1px dashed var(--brass-line); border-radius: 4px; padding: 1px 5px; }
@media (max-width: 640px) { .legal-hero { padding-top: 112px; } }

/* About (content/about.md, no founder details) */
.about__block > .h1, .about__block > .h2 { max-width: 20ch; margin: 20px 0 24px; }
.about__block > .lede, .about__block > .page__text { max-width: 68ch; }
.page__text { font-size: 17px; line-height: 1.7; color: var(--muted); margin-top: 20px; }
.about__list { max-width: 68ch; counter-reset: about; }
.about__list li { border-color: var(--line); color: var(--muted); }
.about__after { margin-top: 36px; }
@media (max-width: 640px) { .page__text { font-size: 16px; } }
