/* ============================================================
   THEME — "The Savoy, in Sorino's voice"
   Shared design system for index.html and get-started.html.
   Committed green-led editorial luxury. OKLCH, tinted neutrals,
   deep forest green and warm ivory, one restrained ochre accent.
   ============================================================ */
:root {
  /* Deep forest greens (near-black -> mid) */
  --green-950: oklch(0.165 0.024 158);
  --green-900: oklch(0.205 0.030 159);
  --green-850: oklch(0.238 0.033 159);
  --green-800: oklch(0.285 0.035 160);
  --green-700: oklch(0.370 0.038 160);
  --green-600: oklch(0.470 0.040 160);

  /* Warm ivory (text + light on dark) */
  --ivory:      oklch(0.975 0.013 92);
  --ivory-dim:  oklch(0.895 0.013 90);
  --ivory-mute: oklch(0.780 0.013 88);

  /* Cream (light sections) */
  --cream-50:  oklch(0.964 0.013 86);
  --cream-100: oklch(0.948 0.015 84);
  --cream-200: oklch(0.912 0.017 82);
  --cream-300: oklch(0.860 0.019 80);

  /* Espresso inks (text on cream) */
  --ink:       oklch(0.255 0.020 72);
  --ink-body:  oklch(0.340 0.022 70);
  --ink-mute:  oklch(0.470 0.022 68);

  /* One restrained warm accent: earth ochre, never metallic */
  --ochre:      oklch(0.720 0.105 70);
  --ochre-ink:  oklch(0.520 0.100 62);
  --ochre-soft: oklch(0.930 0.040 76);

  /* Semantic */
  --positive:      oklch(0.560 0.070 156);
  --positive-ink:  oklch(0.440 0.060 156);
  --positive-soft: oklch(0.920 0.030 156);
  --positive-dim:  oklch(0.760 0.075 156);
  --danger:        oklch(0.520 0.150 28);

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Spectral", Georgia, "Times New Roman", serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --text-eyebrow: 0.78rem;
  --text-sm:      0.9rem;
  --text-body:    1.075rem;
  --text-lead:    clamp(1.16rem, 1.02rem + 0.6vw, 1.5rem);
  --text-title:   clamp(1.75rem, 1.3rem + 1.7vw, 2.6rem);
  --text-headline:clamp(2.3rem, 1.55rem + 3.1vw, 4rem);
  --text-display: clamp(3rem, 1.7rem + 5.8vw, 6.2rem);

  /* Spacing rhythm (base 8px) */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6.5rem;
  --section-pad: clamp(4.5rem, 3rem + 8vw, 9.5rem);
  --gutter: clamp(1.25rem, 0.5rem + 3.4vw, 3.25rem);
  --maxw: 1200px;

  /* Radii — sharp, editorial */
  --r-xs: 1px;
  --r-sm: 2px;
  --r-md: 3px;

  /* Motion — slower, composed */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-mid: 360ms;
  --dur-slow: 760ms;

  /* Elevation — flat at rest, soft on interaction */
  --lift: 0 24px 50px -30px oklch(0.12 0.02 158 / 0.55);
  --lift-soft: 0 16px 36px -28px oklch(0.12 0.02 158 / 0.45);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--green-950);
  color: var(--ink-body);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.66;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--ochre-soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 3px;
  border-radius: 1px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Eyebrow (mono, the technical voice) ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
}
.eyebrow::before {
  content: "";
  width: 2em; height: 1px;
  background: var(--ochre-ink);
  opacity: 0.8;
}
.mono { font-family: var(--font-mono); }

.lead {
  font-size: var(--text-lead);
  color: var(--ink-mute);
  line-height: 1.55;
  font-weight: 400;
  max-width: 56ch;
}

/* ============================================================
   BUTTONS — flat, rectangular, mono label
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  padding: 1.05em 1.7em;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out-quart),
              box-shadow var(--dur-mid) var(--ease-out-quart),
              background-color var(--dur-mid) var(--ease-out-quart),
              border-color var(--dur-mid) var(--ease-out-quart),
              color var(--dur-mid) var(--ease-out-quart);
}
.btn-primary { background: var(--green-900); color: var(--ivory); }
.btn-primary:hover {
  background: var(--green-950);
  transform: translateY(-2px);
  box-shadow: var(--lift-soft);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--cream-300);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: color-mix(in oklch, var(--ink) 5%, transparent);
  transform: translateY(-2px);
}
.btn-ghost:active { transform: translateY(0); }

.btn .arrow { transition: transform var(--dur-mid) var(--ease-out-expo); }
.btn:hover .arrow { transform: translateX(4px); }

/* Primary / ghost flip on a dark surface */
.dark .btn-primary { background: var(--ivory); color: var(--green-900); }
.dark .btn-primary:hover { background: color-mix(in oklch, var(--ivory) 88%, var(--ochre)); }
.dark .btn-ghost {
  color: var(--ivory);
  border-color: color-mix(in oklch, var(--ivory) 36%, transparent);
}
.dark .btn-ghost:hover {
  border-color: var(--ivory);
  background: color-mix(in oklch, var(--ivory) 8%, transparent);
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-200%);
  top: 0.5rem;
  background: var(--green-950);
  color: var(--ivory);
  padding: 0.7em 1.2em;
  border-radius: var(--r-sm);
  z-index: 200;
  transition: transform var(--dur-mid) var(--ease-out-quart);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.skip:focus { transform: translateX(-50%) translateY(0); }

/* ============================================================
   NAV — dark, editorial, mono links
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color var(--dur-mid) var(--ease-out-quart),
              box-shadow var(--dur-mid) var(--ease-out-quart),
              border-color var(--dur-mid) var(--ease-out-quart);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklch, var(--green-950) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom-color: color-mix(in oklch, var(--green-700) 70%, transparent);
}
/* On a page whose top is not the dark hero, the nav needs a surface from the start */
.nav.solid {
  background: color-mix(in oklch, var(--green-950) 92%, transparent);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom-color: color-mix(in oklch, var(--green-700) 70%, transparent);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--ivory);
}
.brand .mark { height: 34px; width: auto; flex: none; }
.brand .ai {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.62em;
  color: var(--ochre);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  align-self: center;
  transform: translateY(1px);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 0.5rem + 1.7vw, 2.4rem);
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  position: relative;
  padding: 0.4em 0;
  transition: color var(--dur-fast) var(--ease-out-quart);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--ochre);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out-quart);
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ivory); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: inline-flex; align-items: center; gap: var(--space-4); }
.nav-cta .btn { padding: 0.85em 1.3em; }
/* The header Get Started button stays white on every page (the nav always sits on a dark surface). */
.nav .btn-primary { background: var(--ivory); color: var(--green-900); }
.nav .btn-primary:hover { background: color-mix(in oklch, var(--ivory) 88%, var(--ochre)); color: var(--green-900); }
.nav-cta .ghost-link {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color var(--dur-fast) var(--ease-out-quart);
}
.nav-cta .ghost-link:hover { color: var(--ivory); }

.nav-text-links { display: flex; }

/* Mobile menu: hamburger toggle + dropdown panel (shown <= 880px) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid color-mix(in oklch, var(--ivory) 28%, transparent);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out-quart);
}
.nav-toggle:hover { border-color: var(--ivory); }
.nav-toggle-box { position: relative; display: block; width: 18px; height: 12px; }
.nav-toggle-box span {
  position: absolute; left: 0; height: 2px; width: 100%;
  background: var(--ivory); border-radius: 2px;
  transition: transform var(--dur-mid) var(--ease-out-expo),
              opacity var(--dur-fast) var(--ease-out-quart);
}
.nav-toggle-box span:nth-child(1) { top: 0; }
.nav-toggle-box span:nth-child(2) { top: 5px; }
.nav-toggle-box span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-menu { display: none; }

@media (max-width: 880px) {
  .nav-text-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: flex;
    flex-direction: column;
    padding: 0.6rem var(--gutter) 1.4rem;
    background: color-mix(in oklch, var(--green-950) 97%, transparent);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    border-bottom: 1px solid color-mix(in oklch, var(--green-700) 70%, transparent);
    animation: menu-in var(--dur-mid) var(--ease-out-expo) both;
  }
  .nav-menu[hidden] { display: none; }
  .nav-menu a:not(.btn) {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ivory-dim);
    padding: 0.95rem 0.15rem;
    border-bottom: 1px solid color-mix(in oklch, var(--green-700) 45%, transparent);
    transition: color var(--dur-fast) var(--ease-out-quart);
  }
  .nav-menu a:not(.btn):hover { color: var(--ivory); }
  .nav-menu .btn { margin-top: 1rem; justify-content: center; }
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   DARK / LIGHT SECTION CONTEXTS
   ============================================================ */
.dark { background: var(--green-900); color: var(--ivory-dim); }
.dark.sec-ink { background: var(--green-950); }
.sec-cream { background: var(--cream-50); color: var(--ink-body); }

.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--ivory); }
.dark .lead { color: var(--ivory-dim); }
.dark .eyebrow { color: var(--ochre); }
.dark .eyebrow::before { background: var(--ochre); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(3rem, 1rem + 7vw, 6.5rem);
  padding-bottom: var(--section-pad);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(58% 60% at 76% 6%, oklch(0.40 0.05 162 / 0.55), transparent 68%),
    radial-gradient(60% 55% at 12% 0%, oklch(0.33 0.045 160 / 0.50), transparent 70%),
    radial-gradient(80% 50% at 50% 120%, oklch(0.30 0.05 75 / 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
/* Full-bleed background video for the hero */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* warm Western receptionist still: the hero rests on this image */
  background: var(--green-950) url("videos/hero-poster.jpg?v=4") center / cover no-repeat;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* settle the AI clip into the brand: ease its saturation, keep it bright */
  filter: saturate(0.9) brightness(1.02);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  /* lighter veil: just enough on the left to hold the copy, video reads through the rest */
  background:
    linear-gradient(90deg,
      oklch(0.165 0.024 158 / 0.78) 0%,
      oklch(0.172 0.027 158 / 0.55) 40%,
      oklch(0.185 0.030 159 / 0.24) 72%,
      oklch(0.190 0.032 159 / 0.12) 100%),
    linear-gradient(0deg,
      var(--green-950) 0%,
      oklch(0.165 0.024 158 / 0) 24%);
}
@media (max-width: 940px) {
  /* single-column hero: a gentle even veil so the stacked copy stays legible */
  .hero-scrim {
    background:
      linear-gradient(180deg,
        oklch(0.168 0.025 158 / 0.64) 0%,
        oklch(0.175 0.028 158 / 0.5) 55%,
        var(--green-950) 100%);
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 2.75rem; } }
.hero-copy { max-width: 46rem; }
.hero h1 {
  font-size: var(--text-display);
  font-weight: 300;
  margin-top: 1.6rem;
  letter-spacing: -0.015em;
  line-height: 1.02;
}
.hero h1 .warm { color: var(--ochre); font-style: italic; }
.hero .lead { margin-top: 1.7rem; max-width: 42ch; color: var(--ivory-dim); }
.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.hero-note {
  margin-top: 1.9rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--ivory-mute);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--positive-dim);
  box-shadow: 0 0 0 0 oklch(0.760 0.075 156 / 0.5);
  animation: pulse 2.6s var(--ease-out-quart) infinite;
  flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(0.760 0.075 156 / 0.45); }
  70% { box-shadow: 0 0 0 9px oklch(0.760 0.075 156 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.760 0.075 156 / 0); }
}

/* Hero proof points: three scannable, ochre-ticked outcomes */
.hero-proof {
  margin-top: 2.1rem;
  display: grid;
  gap: 0.7rem;
  max-width: 34rem;
}
.hero-proof li {
  position: relative;
  padding-left: 2rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ivory-dim);
}
.hero-proof li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.3rem;
  height: 1.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: oklch(0.62 0.11 70 / 0.16);
  color: var(--ochre);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

/* msg-in: rise-and-fade, used by the get-started success panel */
@keyframes msg-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SECTION SCAFFOLD + CAPABILITIES (type-led, no screens)
   ============================================================ */
section { position: relative; }
.section { padding-block: var(--section-pad); }
.section-head { max-width: 46rem; }
.section-head h2 { font-size: var(--text-headline); font-weight: 300; margin-top: 1.1rem; }
.section-head .lead { margin-top: 1.3rem; }

.cap {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1rem + 4.5vw, 5.5rem);
  align-items: start;
}
@media (max-width: 820px) { .cap { grid-template-columns: 1fr; gap: 1.4rem; } }
.cap-lede h3 { font-size: var(--text-title); font-weight: 300; margin-top: 1rem; }
.cap-body > p { font-size: var(--text-lead); line-height: 1.55; color: var(--ink-body); max-width: 60ch; }
.dark .cap-body > p { color: var(--ivory-dim); }
.cap-points {
  margin-top: 1.9rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 2rem;
}
@media (max-width: 560px) { .cap-points { grid-template-columns: 1fr; } }
.cap-points li {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}
.dark .cap-points li { color: var(--ivory-mute); }
.cap-points li::before { content: "—"; color: var(--ochre-ink); flex: none; }
.dark .cap-points li::before { color: var(--ochre); }
.cap-channels {
  margin-top: 1.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre-ink);
}
.dark .cap-channels { color: var(--ochre); }

/* ============================================================
   SOLUTIONS — what Sorino handles, per channel + the system layer.
   Big solution-first headlines on the dark merge band. 3x2 -> 2 -> 1.
   ============================================================ */
.solutions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 0.4rem + 1.6vw, 1.6rem);
  margin-top: var(--space-7);
}
@media (max-width: 900px) { .solutions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .solutions { grid-template-columns: 1fr; } }
.solution {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.85rem 1.6rem 1.95rem;
  background: color-mix(in oklch, var(--green-950) 45%, transparent);
  border: 1px solid color-mix(in oklch, var(--green-700) 70%, transparent);
  border-top: 3px solid var(--ochre);
  border-radius: var(--r-md);
  transition: transform var(--dur-mid) var(--ease-out-quart),
              box-shadow var(--dur-mid) var(--ease-out-quart),
              border-color var(--dur-mid) var(--ease-out-quart);
}
.solution:hover { transform: translateY(-4px); box-shadow: var(--lift); border-color: var(--ochre); }
.solution-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre);
}
.solution h3 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 1.05rem + 1.5vw, 2.1rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ivory);
}
.solution p {
  margin-top: 0.1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ivory-dim);
}

/* ============================================================
   HOW IT WORKS — numbered steps (dark section)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 0.5rem + 2.4vw, 2.5rem);
  margin-top: var(--space-7);
  padding: 0;
  list-style: none;
  counter-reset: none;
}
@media (max-width: 880px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; max-width: 30rem; } }
.step {
  padding-top: 1.6rem;
  border-top: 1px solid var(--green-700);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ochre);
  display: inline-grid;
  place-items: center;
  width: 2.2rem; height: 2.2rem;
  border: 1px solid var(--ochre);
  border-radius: var(--r-sm);
  margin-bottom: 1.2rem;
}
.step h3 { font-size: var(--text-title); font-weight: 300; margin-top: 0; }
.step p { margin-top: 0.85rem; color: var(--ivory-mute); font-size: 1rem; }
.how-foot {
  margin-top: clamp(2rem, 1rem + 3vw, 3.5rem);
  font-size: 1.1rem;
  color: var(--ivory-dim);
}
.how-foot a {
  color: var(--ochre);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.how-foot a:hover { color: var(--ivory); }

/* ============================================================
   USE CASES (use-cases.html)
   ============================================================ */
.uc-hero { padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.uc-hero-copy { max-width: 60rem; }
.uc-hero h1 { font-size: var(--text-headline); font-weight: 300; margin-top: 1rem; }
.uc-hero .lead { margin-top: 1.3rem; max-width: 60ch; }
.uc-jump { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: 0.55rem 0.6rem; }
.uc-jump a {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  border: 1px solid color-mix(in oklch, var(--ivory) 22%, transparent);
  border-radius: var(--r-sm);
  padding: 0.62em 0.95em;
  transition: color var(--dur-fast) var(--ease-out-quart),
              border-color var(--dur-fast) var(--ease-out-quart);
}
.uc-jump a:hover { color: var(--ivory); border-color: var(--ivory); }

.uc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.uc.reverse .uc-media { order: -1; }
@media (max-width: 860px) {
  .uc { grid-template-columns: 1fr; gap: 2rem; }
  .uc.reverse .uc-media { order: 0; }
}
.uc-lede h2 { font-size: var(--text-title); font-weight: 300; margin-top: 0.8rem; }
.uc-lede > p { margin-top: 1.2rem; color: var(--ink-body); max-width: 46ch; }
.dark .uc-lede > p { color: var(--ivory-dim); }
.uc-tags {
  margin-top: 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre-ink);
}
.dark .uc-tags { color: var(--ochre); }
.uc-points { margin-top: 1.3rem; display: flex; flex-direction: column; gap: 0.7rem; list-style: none; padding: 0; }
.uc-points li { display: flex; gap: 0.75rem; align-items: baseline; color: var(--ink-body); font-size: 1rem; }
.dark .uc-points li { color: var(--ivory-dim); }
.uc-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ochre-ink); flex: none; transform: translateY(0.45em); }
.dark .uc-points li::before { background: var(--ochre); }
.uc-aside { margin-top: 1.4rem; color: var(--ink-mute); font-size: 0.98rem; }
.dark .uc-aside { color: var(--ivory-mute); }
.uc-aside .mono { color: var(--ochre-ink); }
.dark .uc-aside .mono { color: var(--ochre); }

.uc-figure { margin: 0; }
.uc-figure img {
  width: 100%; height: auto; display: block;
  border-radius: var(--r-md);
  border: 1px solid var(--cream-300);
}
.dark .uc-figure img { border-color: color-mix(in oklch, var(--green-700) 70%, transparent); }

.uc-audio {
  margin-top: 1.2rem;
  padding: 1.05rem 1.15rem;
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  border-radius: var(--r-md);
}
.dark .uc-audio {
  background: color-mix(in oklch, var(--green-900) 55%, transparent);
  border-color: color-mix(in oklch, var(--green-700) 70%, transparent);
}
.uc-audio-label {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); margin: 0 0 0.65rem;
}
.dark .uc-audio-label { color: var(--ivory-mute); }
.uc-audio audio { width: 100%; height: 40px; }
.uc-transcript { margin-top: 0.7rem; }
.uc-transcript summary {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute); cursor: pointer; width: fit-content;
}
.dark .uc-transcript summary { color: var(--ivory-mute); }
.uc-transcript summary:hover { color: var(--ochre-ink); }
.dark .uc-transcript summary:hover { color: var(--ochre); }
.uc-transcript p { margin: 0.55rem 0 0; font-size: 0.92rem; line-height: 1.5; color: var(--ink-body); }
.dark .uc-transcript p { color: var(--ivory-dim); }
.uc-transcript b { color: var(--ink); font-weight: 600; }
.dark .uc-transcript b { color: var(--ivory); }

/* ============================================================
   LIVE-DEMO INTERSTITIAL — confirms hand-off to the Lucy AI demo
   ============================================================ */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}
.demo-modal[hidden] { display: none; }
.demo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in oklch, var(--green-950) 78%, transparent);
  backdrop-filter: blur(6px) saturate(1.1);
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
}
.demo-modal-card {
  position: relative;
  z-index: 1;
  width: min(34rem, 100%);
  background: var(--cream-50);
  color: var(--ink-body);
  border: 1px solid var(--cream-300);
  border-radius: var(--r-md);
  padding: clamp(1.75rem, 1rem + 3vw, 2.75rem);
  box-shadow: var(--lift);
  animation: demo-pop var(--dur-mid) var(--ease-out-expo) both;
}
@keyframes demo-pop {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .demo-modal-card { animation: none; } }
.demo-modal-card .eyebrow { color: var(--ochre-ink); }
.demo-modal-card .eyebrow::before { background: var(--ochre-ink); }
.demo-modal-title { font-size: var(--text-title); font-weight: 300; color: var(--ink); margin: 1rem 0 0; }
.demo-modal-desc { margin-top: 1rem; color: var(--ink-body); }
.demo-modal-desc b { color: var(--ink); font-weight: 600; }
.demo-modal-actions { margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: var(--space-3); }
/* keep the card's buttons in their light-surface form even on a .dark <body> */
.demo-modal-card .btn-primary { background: var(--green-900); color: var(--ivory); border-color: var(--green-900); }
.demo-modal-card .btn-primary:hover { background: var(--green-950); }
.demo-modal-card .btn-ghost { color: var(--ink); border-color: var(--cream-300); }
.demo-modal-card .btn-ghost:hover { border-color: var(--ink); background: color-mix(in oklch, var(--ink) 5%, transparent); }

/* ============================================================
   CLOSING CTA BAND
   ============================================================ */
.cta-band { max-width: 60rem; }
.cta-band h2 { font-size: var(--text-headline); font-weight: 300; margin-top: 1rem; }
.cta-band .lead { margin-top: 1.3rem; max-width: 54ch; }
.cta-band-actions { margin-top: 2.3rem; display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* ============================================================
   FORM CARD (a cream card on near-black) — used on get-started
   ============================================================ */
.form-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: start;
  background: var(--cream-50);
  color: var(--ink-body);
  border: 1px solid var(--cream-200);
  border-radius: var(--r-md);
  padding: clamp(1.85rem, 1rem + 3.2vw, 3.5rem);
  box-shadow: var(--lift);
}
@media (max-width: 860px) { .form-card { grid-template-columns: 1fr; gap: 2.5rem; } }
/* The card is cream even though the band is dark: keep the primary button dark-on-cream */
.form-card .btn-primary { background: var(--green-900); color: var(--ivory); }
.form-card .btn-primary:hover { background: var(--green-950); }
.form-copy .eyebrow { color: var(--ochre-ink); }
.form-copy .eyebrow::before { background: var(--ochre-ink); }
.form-copy h1, .form-copy h2 { font-size: var(--text-title); font-weight: 300; margin-top: 1rem; color: var(--ink); }
.form-copy > p { margin-top: 1.2rem; color: var(--ink-body); max-width: 42ch; }
/* Intro paragraph sits inside .intent-block, so give the heading -> body gap explicitly. */
.form-copy h1 + p { margin-top: 1.5rem; color: var(--ink-body); max-width: 42ch; }
/* "First month free" offer badge on the form card: a standout pill, not a list item. */
.free-badge {
  margin-top: 1.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.1rem 0.6rem 0.65rem;
  border-radius: 999px;
  background: var(--ochre-soft);
  border: 1px solid color-mix(in oklch, var(--ochre-ink) 35%, transparent);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ochre-ink);
}
.free-badge-ico {
  display: inline-grid;
  place-items: center;
  width: 1.3rem; height: 1.3rem;
  border-radius: 50%;
  background: var(--ochre-ink);
  color: var(--cream-50);
  font-size: 0.72rem;
  font-weight: 800;
}

.form-field { margin-bottom: 1.2rem; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.form-field label .opt { color: var(--ink-mute); letter-spacing: 0.08em; }
.form-field input, .form-field select {
  width: 100%;
  padding: 0.85rem 0.95rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-body);
  background: var(--cream-100);
  border: 1px solid var(--cream-300);
  border-radius: var(--r-sm);
  transition: border-color var(--dur-fast) var(--ease-out-quart),
              box-shadow var(--dur-fast) var(--ease-out-quart);
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--ochre-ink); box-shadow: 0 0 0 3px var(--ochre-soft); }
.form-field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px oklch(0.520 0.150 28 / 0.14); }
.field-error {
  display: none;
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--danger);
}
.form-field.invalid .field-error { display: block; }
.form-submit { width: 100%; justify-content: center; margin-top: 0.5rem; }
.form-fine {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  text-align: center;
  line-height: 1.6;
}
.form-success { display: none; text-align: center; padding: 1.5rem 1rem; }
.form-success.show { display: block; animation: msg-in var(--dur-slow) var(--ease-out-expo) both; }
.form-success .check {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--positive-soft);
  color: var(--positive-ink);
  display: grid; place-items: center;
  margin: 0 auto 1.2rem;
}
.form-success h2 { font-size: 1.7rem; font-weight: 400; color: var(--ink); }
.form-success p { margin-top: 0.8rem; color: var(--ink-mute); max-width: 36ch; margin-inline: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--green-700); padding-block: var(--space-7); }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-5);
  align-items: flex-start;
}
.footer-brand { max-width: 27rem; }
.footer-brand p { margin-top: 1.1rem; color: var(--ivory-mute); font-size: 0.98rem; }
.footer-cols { display: flex; gap: clamp(2rem, 1rem + 4vw, 5rem); flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre);
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.footer-col a {
  display: block;
  font-size: 0.98rem;
  color: var(--ivory-dim);
  padding: 0.35rem 0;
  width: fit-content;
  transition: color var(--dur-fast) var(--ease-out-quart);
}
.footer-col a:hover { color: var(--ivory); }
.footer-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid color-mix(in oklch, var(--green-700) 70%, transparent);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--ivory-mute);
}
.footer-bottom a { color: var(--ochre); transition: color var(--dur-fast) var(--ease-out-quart); }
.footer-bottom a:hover { color: var(--ivory); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out-quart),
              transform var(--dur-slow) var(--ease-out-quart);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-video { display: none; }
  .pulse { animation: none; }
  .btn:hover, .btn:active, .nav-links a:hover::after { transform: none; }
  .nav .brand .mark path, .nav .brand .mark g { animation: none !important; }
  .brand:hover .mark { transform: none; }
  .eyebrow::before { transform: none !important; }
  .nav-menu { animation: none !important; }
  * { scroll-behavior: auto; }
}

/* ============================================================
   SIGNATURE MOTION
   The brand mark performs a one-time sunrise on load (North Star:
   "The Sunlit Console"): the horizon draws in, the sun blooms up
   from it, the rays follow. Section eyebrow rules then draw in on
   reveal, echoing the nav underline as a recurring note of precision.
   Transform/opacity only; both honour prefers-reduced-motion above.
   ============================================================ */
.js .nav .brand .mark path,
.js .nav .brand .mark g { transform-box: view-box; transform-origin: 16px 21px; }
.js .nav .brand .mark path[d^="M3.5"] { animation: mark-horizon 520ms var(--ease-out-expo) both; }
.js .nav .brand .mark path[d^="M9 21"] { animation: mark-sun 760ms var(--ease-out-expo) 180ms both; }
.js .nav .brand .mark g { animation: mark-rays 640ms var(--ease-out-expo) 460ms both; }
@keyframes mark-horizon {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}
@keyframes mark-sun {
  from { transform: scale(0);   opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
@keyframes mark-rays {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* the brand mark lifts a touch when you reach for home */
.brand .mark { transition: transform var(--dur-mid) var(--ease-out-expo); }
.brand:hover .mark { transform: translateY(-1px); }

/* section eyebrow rule draws in with its reveal */
.js .reveal .eyebrow::before,
.js .eyebrow.reveal::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-slow) var(--ease-out-expo);
  transition-delay: calc(var(--reveal-delay, 0ms) + 160ms);
}
.reveal.in .eyebrow::before,
.eyebrow.reveal.in::before { transform: scaleX(1); }

/* ============================================================
   OFFER STRIP — the soft reassurance line beside the CTAs
   (one month free · no contracts · 50% off your first 3 months)
   ============================================================ */
.offer-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.4rem;
  align-items: center;
  margin-top: 1.6rem;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory-mute);
}
.offer-strip li { display: flex; align-items: center; gap: 0.6rem; }
.offer-strip li::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ochre); flex: none;
}
/* A single-item strip reads as a clean centred line, not a lone bullet. */
.offer-strip li:only-child::before { display: none; }
.cta-band .offer-strip { justify-content: center; }
.sec-cream .offer-strip { color: var(--ink-mute); }
.sec-cream .offer-strip li::before { background: var(--ochre-ink); }

/* ============================================================
   TESTIMONIALS — three production clients (home #proof, sec-cream).
   Cross-sector proof: each card leads with a different capability.
   ============================================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 0.4rem + 1.6vw, 1.6rem);
  margin-top: var(--space-7);
}
@media (max-width: 900px) {
  .testimonials { grid-template-columns: 1fr; max-width: 38rem; margin-inline: auto; }
}
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.85rem 1.6rem 1.7rem;
  background: var(--cream-100);
  border: 1px solid var(--cream-200);
  border-top: 3px solid var(--ochre-ink);
  border-radius: var(--r-md);
  transition: transform var(--dur-mid) var(--ease-out-quart),
              box-shadow var(--dur-mid) var(--ease-out-quart);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--lift-soft); }
.t-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre-ink);
}
.t-quote {
  margin: 0;
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.42;
  color: var(--ink);
}
.t-cite {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--cream-300);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.t-cite b {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ochre-ink);
  font-weight: 600;
}
.t-role {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
/* Carousel controls are a phone-only affordance — hidden on larger screens
   where the cards sit in their normal grid/list. Activated in the phone block. */
.carousel-controls { display: none; }

/* The price line on the pricing card */
.price-lead {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.price-lead b { color: var(--ochre-ink); font-weight: 600; }
.price-sub { display: block; margin-top: 0.35rem; color: var(--ink-mute); letter-spacing: 0.02em; }
.price-sub a { color: var(--ochre-ink); text-decoration: underline; text-underline-offset: 2px; }
.price-sub a:hover { color: var(--ink); }

/* ============================================================
   CONVERSION PASS — hero punch, denser payoff blocks, harder close
   ============================================================ */

/* Hero: bigger plain-English subline, one dominant CTA, bold proof */
.hero .lead {
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem);
  line-height: 1.4;
  color: var(--ivory);
  max-width: 36ch;
  font-weight: 400;
}
.hero-actions .btn-primary {
  padding: 1.2em 2.15em;
  font-size: 0.82rem;
  box-shadow: var(--lift-soft);
}
.hero-actions .btn-ghost {
  padding: 1.2em 1.9em;
  font-size: 0.82rem;
  color: var(--ivory);
  border-color: color-mix(in oklch, var(--ivory) 55%, transparent);
  background: color-mix(in oklch, var(--green-950) 40%, transparent);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.hero-actions .btn-ghost:hover {
  color: var(--ivory);
  border-color: var(--ivory);
  background: color-mix(in oklch, var(--green-950) 58%, transparent);
}
/* tighten the gap between the copy block and the full-width proof strip */
.hero-grid { gap: clamp(1.8rem, 1rem + 1.4vw, 2.7rem); }
/* proof bullets: one centred horizontal line across the whole hero */
.hero-proof {
  margin-top: 0;
  width: 100%;
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.8rem 2.4rem;
}
.hero-proof li {
  position: relative;
  padding-left: 2.2rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ivory);
  line-height: 1.3;
  white-space: nowrap;
}
.hero-proof li::before {
  width: 1.5rem; height: 1.5rem;
  top: 0.12em;
  background: var(--ochre);
  color: var(--green-950);
  font-weight: 800;
  font-size: 0.8rem;
}

/* How it works: defined step cards + a micro-proof strip under the subtitle */
.steps { margin-top: var(--space-6); }
.step {
  padding: 1.5rem 1.4rem 1.6rem;
  background: color-mix(in oklch, var(--green-950) 45%, transparent);
  border: 1px solid color-mix(in oklch, var(--green-700) 70%, transparent);
  border-radius: var(--r-md);
}
.step h3 { font-size: 1.3rem; }
.step p { color: var(--ivory-dim); }
.how-micro {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory-mute);
}
.how-micro li { display: flex; align-items: center; gap: 0.6rem; }
.how-micro li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ochre); flex: none; }

/* Mid-proof: concrete result line under the sample */
.uc-result {
  margin-top: 1.3rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ivory);
}
.uc-result b { color: var(--ochre); font-weight: 600; }

/* Final CTA: reassurance row folded in so the page lands, not drifts */
#get-started .cta-band { max-width: 64rem; }
#get-started .offer-strip { justify-content: flex-start; }
.cta-reassure {
  margin: 2.4rem auto 0;
  max-width: 52rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 2rem;
  padding-top: var(--space-4);
  border-top: 1px solid color-mix(in oklch, var(--green-700) 70%, transparent);
  text-align: left;
}
@media (max-width: 640px) { .cta-reassure { grid-template-columns: 1fr; } }
.cta-reassure li { display: flex; gap: 0.65rem; align-items: baseline; font-size: 0.95rem; color: var(--ivory-dim); }
.cta-reassure li b { color: var(--ivory); font-weight: 600; }
.cta-reassure li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ochre); flex: none; transform: translateY(0.45em); }

/* ============================================================
   KNOWLEDGE BASE — the single shared brain (home, sec-cream)
   Compact cards: small icon banner + one-line copy.
   ============================================================ */
.kb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 0.5rem + 1.4vw, 1.6rem);
  margin-top: var(--space-7);
}
@media (max-width: 900px) { .kb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .kb-grid { grid-template-columns: 1fr; } }
.kb-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem 1.35rem;
  background: var(--cream-100);
  border: 1px solid var(--cream-200);
  border-radius: var(--r-md);
  transition: transform var(--dur-mid) var(--ease-out-quart),
              box-shadow var(--dur-mid) var(--ease-out-quart),
              border-color var(--dur-mid) var(--ease-out-quart);
}
.kb-card:hover { transform: translateY(-3px); box-shadow: var(--lift-soft); border-color: var(--ochre-soft); }
.kb-ico {
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--ochre-soft);
  color: var(--ochre-ink);
}
.kb-ico svg { width: 1.3rem; height: 1.3rem; }
.kb-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--ink); }
.kb-card p { font-size: 0.95rem; line-height: 1.5; color: var(--ink-mute); }
.kb-foot {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--cream-300);
  font-family: var(--font-body);
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--ink-body);
  max-width: 68ch;
}
.kb-foot b { color: var(--ochre-ink); font-weight: 600; }

/* ============================================================
   FOUR CHANNELS — Voice · Chat · Email · Social (home, dark)
   One brain, four ways guests reach it. 4-col band -> 2 -> 1.
   ============================================================ */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 0.5rem + 1.4vw, 1.6rem);
  margin-top: var(--space-7);
}
@media (max-width: 900px) { .channels-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .channels-grid { grid-template-columns: 1fr; } }
.channel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.7rem 1.45rem;
  background: color-mix(in oklch, var(--green-950) 45%, transparent);
  border: 1px solid color-mix(in oklch, var(--green-700) 70%, transparent);
  border-radius: var(--r-md);
  transition: transform var(--dur-mid) var(--ease-out-quart),
              box-shadow var(--dur-mid) var(--ease-out-quart),
              border-color var(--dur-mid) var(--ease-out-quart);
}
.channel:hover { transform: translateY(-3px); box-shadow: var(--lift); border-color: var(--ochre); }
.channel-ico {
  width: 2.7rem; height: 2.7rem;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--ochre);
  color: var(--ochre);
}
.channel-ico svg { width: 1.4rem; height: 1.4rem; }
.channel h3 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 300; color: var(--ivory); }
.channel p { font-size: 0.96rem; line-height: 1.5; color: var(--ivory-mute); }

/* "Why it holds up" trust band — 3-up dark cards (reuses .channel) */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 0.5rem + 1.4vw, 1.6rem);
  margin-top: var(--space-7);
}
@media (max-width: 820px) { .trust-grid { grid-template-columns: 1fr; } }

/* Trust strip closing the channels band — reframed "you're in charge" */
.channels-foot {
  margin-top: clamp(2.25rem, 1rem + 3vw, 3.75rem);
  padding-top: var(--space-5);
  border-top: 1px solid color-mix(in oklch, var(--green-700) 70%, transparent);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: start;
}
@media (max-width: 760px) { .channels-foot { grid-template-columns: 1fr; gap: 1.5rem; } }
.channels-foot-head h3 { font-family: var(--font-display); font-size: var(--text-title); font-weight: 300; color: var(--ivory); margin-top: 0.9rem; }
.channels-foot-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem 1.8rem;
}
@media (max-width: 620px) { .channels-foot-points { grid-template-columns: 1fr; } }
.channels-foot-points li {
  display: flex; gap: 0.7rem; align-items: baseline;
  font-size: 0.95rem; line-height: 1.45; color: var(--ivory-dim);
}
.channels-foot-points li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ochre); flex: none; transform: translateY(0.45em);
}

/* ============================================================
   NAV DROPDOWN — "Use cases" grouped by channel (desktop)
   Opens on hover + keyboard focus; gap-bridged; lifted above hero.
   ============================================================ */
.nav-dd { position: relative; display: inline-flex; align-items: center; }
.nav-dd-trigger { display: inline-flex; align-items: center; gap: 0.45em; }
.dd-caret { font-size: 0.62em; line-height: 1; transition: transform var(--dur-mid) var(--ease-out-quart); }
.nav-dd:hover .dd-caret,
.nav-dd:focus-within .dd-caret,
.nav-dd.open .dd-caret { transform: rotate(180deg); }

.nav-dd-panel {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(4px);
  display: flex;
  gap: 2.4rem;
  padding: 1.5rem 1.7rem;
  background: color-mix(in oklch, var(--green-950) 97%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid color-mix(in oklch, var(--green-700) 70%, transparent);
  border-radius: var(--r-md);
  box-shadow: var(--lift);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-out-quart),
              transform var(--dur-mid) var(--ease-out-quart),
              visibility var(--dur-mid) var(--ease-out-quart);
  z-index: 140;
}
/* transparent bridge so the cursor can cross from trigger into the panel */
.nav-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-dd:hover .nav-dd-panel,
.nav-dd:focus-within .nav-dd-panel,
.nav-dd.open .nav-dd-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(10px);
}
.dd-group { display: flex; flex-direction: column; min-width: 12.5rem; }
.dd-group-title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  padding: 0 0.2rem 0.7rem;
}
.nav-dd-panel a {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ivory-dim);
  padding: 0.5rem 0.2rem;
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease-out-quart);
}
.nav-dd-panel a::after { content: none; }
.nav-dd-panel a:hover { color: var(--ivory); }

/* Mobile: the use-case links render inline inside the toggle menu */
.nav-menu-sub { display: flex; flex-direction: column; padding: 0.2rem 0 0.4rem 0.9rem; }
.nav-menu-sub-title {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  padding: 0.9rem 0 0.3rem;
}
.nav-menu-sub a {
  font-size: 0.78rem !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  color: var(--ivory-mute) !important;
  border-bottom: none !important;
  padding: 0.55rem 0.15rem !important;
}

/* ============================================================
   THEMED AUDIO PLAYER — play/pause + equaliser bar, brand palette
   Replaces native <audio controls> on the use-case sample calls.
   ============================================================ */
.audio-player { display: flex; align-items: center; gap: 0.85rem; }
.audio-player audio { display: none; }
.ap-btn {
  width: 2.7rem; height: 2.7rem; flex: none;
  border-radius: 50%;
  border: 1px solid var(--ochre-ink);
  background: var(--ochre-soft);
  color: var(--ochre-ink);
  display: grid; place-items: center;
  transition: transform var(--dur-fast) var(--ease-out-quart),
              background-color var(--dur-fast) var(--ease-out-quart);
}
.dark .ap-btn { border-color: var(--ochre); background: color-mix(in oklch, var(--ochre) 18%, transparent); color: var(--ochre); }
.ap-btn:hover { transform: scale(1.06); }
.ap-btn svg { width: 1.05rem; height: 1.05rem; }
.ap-btn .ico-pause { display: none; }
.audio-player.playing .ap-btn .ico-play { display: none; }
.audio-player.playing .ap-btn .ico-pause { display: block; }

.ap-wave {
  position: relative;
  flex: 1;
  height: 34px;
  cursor: pointer;
  --wave: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 7px);
}
.ap-bars, .ap-fill {
  position: absolute;
  top: 50%; left: 0;
  height: 62%;
  transform: translateY(-50%);
  -webkit-mask: var(--wave); mask: var(--wave);
}
.ap-bars { right: 0; background: var(--cream-300); }
.dark .ap-bars { background: color-mix(in oklch, var(--ivory) 24%, transparent); }
.ap-fill { width: 0; background: var(--ochre-ink); }
.dark .ap-fill { background: var(--ochre); }
.ap-wave:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; border-radius: 1px; }
.ap-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  flex: none;
  min-width: 3.2em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.dark .ap-time { color: var(--ivory-mute); }
@media (prefers-reduced-motion: reduce) {
  .ap-btn:hover { transform: none; }
  .nav-dd-panel { transition: none; }
}

/* ============================================================
   MUST-FIX PASS — proof centrepiece, card de-duplication,
   heavier payoff cards, trust at the point of action
   ============================================================ */

/* (4) Trust cue at the hero CTA */
.hero-trust {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--ivory-mute);
}
.hero-trust::before {
  content: "";
  width: 1.6rem; height: 1px;
  background: color-mix(in oklch, var(--ochre) 65%, transparent);
  flex: none;
}

/* Supporting hook line beneath the primary CTA — plants the "built around
   your hotel" promise. Unlike .hero-trust it stays visible on phones. */
.cta-hook {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink-mute);
}
.dark .cta-hook { color: var(--ivory-dim); }

/* (2a) How it works: a connected process line, not four loose boxes */
#how .steps { position: relative; }
#how .steps::before {
  content: "";
  position: absolute;
  top: 2.6rem;
  left: 7%; right: 7%;
  height: 1px;
  background: color-mix(in oklch, var(--ochre) 45%, transparent);
  z-index: 0;
}
@media (max-width: 880px) { #how .steps::before { display: none; } }
.step { position: relative; z-index: 1; }
.step-num { background: var(--green-900); }

/* (2b) Knowledge Base: anchor + list, not another even grid */
.kb-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
@media (max-width: 860px) { .kb-layout { grid-template-columns: 1fr; gap: 2.5rem; } }
.kb-anchor { max-width: 34rem; }
.kb-anchor h2 { font-size: var(--text-headline); font-weight: 300; margin-top: 1.1rem; }
.kb-anchor .lead { margin-top: 1.3rem; }
.kb-anchor .kb-foot {
  margin-top: 1.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--cream-300);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-body);
}
.kb-anchor .kb-foot b { color: var(--ochre-ink); }
.kb-list { display: flex; flex-direction: column; }
.kb-row {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.35rem 0.2rem;
  border-top: 1px solid var(--cream-300);
  transition: background-color var(--dur-fast) var(--ease-out-quart);
}
.kb-row:last-child { border-bottom: 1px solid var(--cream-300); }
.kb-row:hover { background: color-mix(in oklch, var(--ochre) 6%, transparent); }
.kb-row .kb-ico { flex: none; margin-top: 0.1rem; }
.kb-row h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; color: var(--ink); }
.kb-row p { margin-top: 0.25rem; font-size: 1rem; line-height: 1.45; color: var(--ink-mute); }

/* (2c) Four channels: a 2x2 of real guest touchpoints with an example each */
.channels-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .channels-grid { grid-template-columns: 1fr; } }
.channel-eg {
  margin-top: 0.7rem;
  padding-top: 0.8rem;
  border-top: 1px solid color-mix(in oklch, var(--green-700) 55%, transparent);
  font-style: italic;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--ivory-mute);
}

/* "Why it holds up" trust cards on the light breather band (home #trust is
   sec-cream). Scoped to #trust so the dark .channel cards in #channels keep
   their dark treatment. */
#trust .channel { background: var(--cream-100); border-color: var(--cream-300); }
#trust .channel:hover { border-color: var(--ochre-ink); box-shadow: var(--lift-soft); }
#trust .channel-ico { border-color: var(--ochre-ink); color: var(--ochre-ink); }
#trust .channel h3 { color: var(--ink); }
#trust .channel p { color: var(--ink-mute); }

/* (1) Real-world proof: the sample call as the centrepiece */
#always-on .uc { align-items: start; }
.callproof {
  margin-top: 1rem;
  padding: clamp(1.1rem, 0.8rem + 1.5vw, 1.6rem);
  background: color-mix(in oklch, var(--green-950) 60%, transparent);
  border: 1px solid color-mix(in oklch, var(--green-700) 70%, transparent);
  border-radius: var(--r-md);
}
.callproof-label {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ochre);
  margin: 0 0 1rem;
}
.audio-player-lg { gap: 1.1rem; }
.audio-player-lg .ap-btn { width: 3.4rem; height: 3.4rem; }
.audio-player-lg .ap-btn svg { width: 1.4rem; height: 1.4rem; }
.audio-player-lg .ap-wave { height: 52px; }
.audio-player-lg .ap-time { font-size: 0.85rem; min-width: 3.6em; }

/* ============================================================
   PHONE (<=640px): a distinct mobile pass over the laptop design.
   Goal — maximise real estate, cut wordiness, keep the impact.
   Everything here is scoped to the media query so the desktop
   layout is untouched.
   ============================================================ */
@media (max-width: 640px) {
  /* Tighter vertical rhythm and a little more usable width */
  :root { --section-pad: 3.25rem; --gutter: 1.15rem; }

  /* Eyebrows: smaller with less tracking so they hold one line */
  .eyebrow { font-size: 0.8rem; letter-spacing: 0.16em; }

  /* Headlines scale down to one impactful block, not a wall of type */
  .section-head h2,
  .uc-lede h2 { font-size: clamp(1.8rem, 1.3rem + 2.4vw, 2.25rem); line-height: 1.12; }

  /* Flavour prose that restates the card/bullets it sits beside */
  .channel-eg,
  .uc-result,
  .hero-trust { display: none; }

  /* Leads read as support text, not a second headline */
  .lead { font-size: 1rem; line-height: 1.5; }

  /* ---- Hero: a clean stacked phone layout ----
     The desktop conversion pass centres the proof points on one nowrap row
     at 1.2rem — on a phone that overflows and reads messy. Re-stack them as a
     left-aligned, wrapping list and bring the headline + subline down to size.
     The hero subline needs the .hero scope to beat the conversion-pass rule. */
  .hero { padding-top: 2.5rem; }
  .hero h1 { font-size: clamp(2.4rem, 1.7rem + 6vw, 3.2rem); margin-top: 1.1rem; }
  .hero .lead {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-top: 1.1rem;
    max-width: none;
  }
  .hero-actions { margin-top: 1.8rem; gap: 0.7rem; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .cta-hook { margin-top: 1.1rem; }

  .hero-proof {
    margin-top: 1.9rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.75rem;
    text-align: left;
  }
  .hero-proof li {
    white-space: normal;
    font-size: 1rem;
    line-height: 1.35;
    padding-left: 1.9rem;
  }
  .hero-proof li::before { width: 1.25rem; height: 1.25rem; top: 0.1em; }

  /* ---- Always-on: strip to header + image + audio only ---- */
  #always-on .uc-lede > p,
  #always-on .uc-points { display: none; }
  #always-on .uc { gap: 1.25rem; }

  /* ---- Horizontal swipe carousels (testimonials + knowledge base) ----
     One-at-a-time cards on a scroll-snap rail, so each section fits one
     screen instead of stacking into a tall column. */
  [data-carousel-track] {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.9rem;
    padding-bottom: 0.25rem;
  }
  [data-carousel-track]::-webkit-scrollbar { display: none; }
  [data-carousel-track] > * {
    flex: 0 0 86%;
    scroll-snap-align: start;
    /* Off-screen cards never trip the scroll-reveal observer, so opt them
       out of the hidden start-state and show them outright. */
    opacity: 1 !important;
    transform: none !important;
  }

  /* Testimonials specifics */
  .testimonials { grid-template-columns: none; max-width: none; margin-top: 2rem; margin-inline: 0; }
  .testimonial:hover { transform: none; box-shadow: none; }
  .testimonials .t-quote { font-size: 1.08rem; line-height: 1.45; }

  /* Knowledge base specifics: turn the hairline list rows into cards.
     min-width:0 lets the carousel scroll inside the grid column instead of
     blowing the column (and the page) out to the rail's full width. */
  .kb-layout { grid-template-columns: minmax(0, 1fr); }
  .kb-carousel { min-width: 0; }
  .kb-list { margin-top: 1.75rem; }
  .kb-row {
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.5rem 1.3rem;
    background: var(--cream-100);
    border: 1px solid var(--cream-200);
    border-top: 3px solid var(--ochre-ink);
    border-radius: var(--r-md);
  }
  .kb-row:last-child { border-bottom: 1px solid var(--cream-200); }
  .kb-row:hover { background: var(--cream-100); }

  /* Shared controls — arrows + dots beneath the rail */
  .carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.4rem;
  }
  .carousel-arrow {
    width: 2.6rem; height: 2.6rem;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--cream-300);
    background: var(--cream-100);
    color: var(--ochre-ink);
    cursor: pointer;
    transition: opacity var(--dur-mid) var(--ease-out-quart),
                border-color var(--dur-mid) var(--ease-out-quart),
                background var(--dur-mid) var(--ease-out-quart);
  }
  .carousel-arrow svg { width: 1.2rem; height: 1.2rem; }
  .carousel-arrow:active { background: var(--cream-200); }
  .carousel-arrow:disabled { opacity: 0.3; cursor: default; }
  .carousel-dots { display: flex; align-items: center; gap: 0.5rem; }
  .carousel-dot {
    width: 7px; height: 7px; padding: 0;
    border-radius: 50%; border: none;
    background: var(--cream-300);
    cursor: pointer;
    transition: background var(--dur-mid) var(--ease-out-quart),
                transform var(--dur-mid) var(--ease-out-quart);
  }
  .carousel-dot.active { background: var(--ochre-ink); transform: scale(1.3); }
}
