/* ─── Minco · playful ─────────────────────────────────────── */
:root {
  --bg: #ece6f7;
  --bg-2: #e1d8f1;
  --card: #ffffff;
  --ink: #141414;
  --ink-2: #5a5a5a;
  --ink-3: #9a9a9a;
  --line: rgba(20, 20, 20, 0.10);

  /* character palette */
  --mint:   #9ce5a3;
  --coral:  #f4856f;
  --butter: #f4d471;
  --lilac:  #c39ee6;
  --sky:    #a3cff5;
  --pink:   #d99292;
  --lemon:  #fff3b0;
  --grass:  #6dc975;

  /* dark "ink" for each palette colour — used for eyes, mouth, stroke.
     each tone is the same hue, much deeper, so features feel native to
     the body colour rather than printed in black. */
  --mint-ink:   #1d4a26;
  --coral-ink:  #6e2412;
  --butter-ink: #6a4b0c;
  --lilac-ink:  #3a1d5a;
  --sky-ink:    #1a3c66;
  --pink-ink:   #542429;
  --lemon-ink:  #6e5c00;
  --grass-ink:  #143d18;
  --transparent-ink: var(--ink);

  --f-display: "Bricolage Grotesque", "Moderustic", -apple-system, "Helvetica Neue", sans-serif;
  --f-body: "Hanken Grotesk", -apple-system, "Helvetica Neue", sans-serif;

  --r-card: 28px;
  --r-tile: 18px;
  --r-pill: 999px;

  --pad: clamp(20px, 3.5vw, 48px);
}

html[lang="ru"] {
  --f-display: "Moderustic", -apple-system, "Helvetica Neue", sans-serif;
}

/* Allow Moderustic headings on Russian locale to render at weight 700-800 to match Bricolage */
html[lang="ru"] h1,
html[lang="ru"] .hero h1,
html[lang="ru"] .sec-title {
  font-weight: 700 !important;
}
html[lang="ru"] h2,
html[lang="ru"] h3,
html[lang="ru"] h4,
html[lang="ru"] .btn-pill,
html[lang="ru"] .brand {
  font-weight: 700 !important;
}


[data-mode="cream"] {
  --bg: #f5efe4;
  --bg-2: #ebe3d2;
}
[data-mode="mint"] {
  --bg: #ddf2e0;
  --bg-2: #c9e8cd;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.minco {
  --shift-fg: #f6f2ff;
  --room-ink: #131316;
  --room-tint: #ddf2e0;
  /* re-resolve inherited text color inside the themed scope — body's
     color is computed outside [data-mode] and would leak light-mode ink */
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  /* Rooms: the page background cross-fades as you move between zones —
     set via data-room (IntersectionObserver in Landing). */
  transition: background-color 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-mode="dark"].minco,
[data-mode="dark"] .minco {
  --room-ink: #0a0a0c;
  --room-tint: #131a14;
}
.minco[data-room="ink"] { background: var(--room-ink); }
.minco[data-room="tint"] { background: var(--room-tint); }

/* anchored sections never hide under the sticky topbar */
section[id] { scroll-margin-top: 90px; }

/* ─── Chip system — one tag language for the whole page ──────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
}
.chip-ghost-dark {
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.display {
  font-family: var(--f-display);
  font-weight: 700;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

/* ─── TOPBAR ─────────────────────────────────────────────── */
.topbar-wrapper {
  /* fixed (not sticky) so it reserves no flow band at the top — the hero's
     background runs all the way up behind the menu, and the color beats
     (mint flood / ink stage) include the menu zone instead of clashing */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  pointer-events: none;
  transition: padding 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  padding-top: 0;
}
.topbar-wrapper.hidden {
  transform: translateY(-100%);
}
.topbar-inner {
  pointer-events: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px var(--pad);
  /* transparent at the top of the page — the hero's color beats (mint
     flood, ink stage) own the menu zone; the minimized pill below keeps
     its own card background once scrolling starts */
  background: transparent;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid transparent;
  border-radius: 0;
}

/* Minimized floating pill style */
.topbar-wrapper.minimized {
  padding-top: 16px;
}
.topbar-wrapper.minimized .topbar-inner {
  max-width: 760px; /* Slightly wider for better balance */
  width: calc(100% - 32px);
  border-radius: 999px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  background: color-mix(in oklab, var(--card) 95%, transparent);
  padding: 14px 36px; /* Taller padding for a premium, spacious look */
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: font-size 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.minimized .brand {
  font-size: 22px;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: var(--card);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  z-index: 1;
  transition: padding 0.4s cubic-bezier(0.25, 1, 0.5, 1), background 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.minimized .nav {
  background: transparent;
  border-color: transparent;
  padding: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding: 0 18px;
  height: 38px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-sizing: border-box;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active {
  color: var(--bg) !important;
  background: none !important;
}

/* Sliding active indicator bubble */
.nav-indicator {
  position: absolute;
  left: 0;
  top: 0;
  background: var(--ink);
  border-radius: var(--r-pill);
  transition: transform 0.38s cubic-bezier(0.25, 1, 0.5, 1), width 0.38s cubic-bezier(0.25, 1, 0.5, 1), height 0.38s cubic-bezier(0.25, 1, 0.5, 1), top 0.38s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

.btn-pill {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px; /* Fixed height for robust alignment */
  padding: 0 4px 0 20px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-pill);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: transform .2s ease, height 0.3s ease, padding 0.3s ease, font-size 0.3s ease;
  border: none;
  box-sizing: border-box;
}
.btn-pill:hover { transform: translateY(-2px) scale(1.02); }
.btn-pill .arr {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: transform .25s ease, width 0.3s ease, height 0.3s ease;
}
.btn-pill:hover .arr { transform: rotate(-45deg); }
.btn-pill.lg {
  height: 64px;
  padding: 0 8px 0 28px;
  font-size: 20px;
}
.btn-pill.lg .arr { width: 48px; height: 48px; }

.btn-light {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-light .arr { background: var(--ink); color: var(--bg); }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  height: 200vh; /* Two screens tall for scroll narrative */
  position: relative;
  margin: 0;
  padding: 0;
}
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}
.hero-stage {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
}
.hero-head-scroll {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  position: absolute;
  left: 50%;
  top: 43%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 0 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.eyebrow {
  position: relative;
  margin: 0 auto 20px;
  width: fit-content;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 13px;
}
.eyebrow .dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-headlines {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0;
  font-variation-settings: "opsz" 96;
  text-align: center;
  width: 100%;
  color: var(--ink);
}

.hero-title.title-2 {
  color: var(--ink);
}
.hero-title.title-2 .accent {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  color: var(--ink);
}
.hero-title .accent {
  font-style: italic;
  font-weight: 600;
  color: var(--coral);
  display: inline-block;
}
.hero-screen-2-details {
  position: relative;
  margin-top: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero p.sub {
  font-size: clamp(17px, 1.7vw, 22px);
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 auto 16px;
  line-height: 1.45;
}
.hero-cta-row {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}
.hero-stage .ch {
  position: absolute;
  z-index: 1;
  pointer-events: auto;
}
.hero-stage .ch svg path,
.hero-stage .ch svg ellipse,
.hero-stage .ch svg circle {
  transition: fill 0.8s cubic-bezier(0.25, 1, 0.5, 1), stroke 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.hero-head-scroll { z-index: 3; }

/* legacy soup styles (kept for any other usage) */
.soup {
  position: relative;
  height: 380px;
  margin: 0 auto;
  max-width: 1200px;
}
.soup .ch {
  position: absolute;
}

/* Floating engine badges */
.engines-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.engine-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
}
.engine-chip .face-mini {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

/* ─── SECTION HEADERS ────────────────────────────────────── */
.section { padding: 80px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 30px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 14ch;
  font-variation-settings: "opsz" 72;
}
.section-head h2 .it { font-style: italic; font-weight: 600; }
.section-head .desc {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 360px;
  line-height: 1.45;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── ENGINE MOOD GRID ───────────────────────────────────── */
.mood-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.mood-card {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--line);
  transition: transform .25s ease;
}
.mood-card:hover { transform: translateY(-4px); }
.mood-card .face-lg {
  width: 100%;
  aspect-ratio: 1.1 / 1;
  border-radius: var(--r-tile);
  display: grid;
  place-items: center;
}
.mood-card .mc-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
}
.mood-card .mc-status {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: -10px;
}
.mood-card .mc-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 500;
}
.mood-card .mc-bar strong {
  font-family: var(--f-display);
  font-size: 28px;
  color: var(--ink);
  font-variation-settings: "opsz" 32;
}

/* ─── CALENDAR ───────────────────────────────────────────── */
.calendar-card {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 36px;
  border: 1px solid var(--line);
}
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.cal-head h3 {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}
.cal-head .month {
  font-size: 14px;
  color: var(--ink-2);
  margin-left: 12px;
  font-weight: 500;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.cal-day-head {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  padding: 4px 6px;
  text-align: center;
}
.cal-cell {
  aspect-ratio: 1;
  border-radius: 14px;
  display: grid;
  place-items: center;
  transition: transform .15s ease;
  cursor: pointer;
  position: relative;
}
.cal-cell:hover { transform: scale(1.08); z-index: 3; }
.cal-cell.empty {
  background: color-mix(in oklab, var(--ink) 6%, transparent);
}
.cal-cell .face-cell { width: 70%; height: 70%; }
.cal-legend {
  display: flex;
  gap: 18px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
}
.cal-legend-item .swatch-sm {
  width: 18px; height: 18px; border-radius: 6px;
}

/* ─── SUMMARY ROW ────────────────────────────────────────── */
.summary-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
}
.summary-card {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 32px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.summary-card.feature {
  background: var(--mint);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
}
.summary-card.feature .feat-face {
  width: 220px;
  height: 220px;
}
.summary-card .sc-eyebrow {
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 12px;
  font-weight: 500;
}
.summary-card h3 {
  font-family: var(--f-display);
  font-size: clamp(54px, 6vw, 88px);
  margin: 0 0 14px;
  letter-spacing: -0.035em;
  font-weight: 700;
  line-height: 0.92;
}
.summary-card .sc-desc {
  color: var(--ink-2);
  font-size: 16px;
  max-width: 32ch;
  margin: 0;
  line-height: 1.45;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.kpi-card {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 24px;
  border: 1px solid var(--line);
}
.kpi-card .lbl {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 12px;
  font-weight: 500;
}
.kpi-card .num {
  font-family: var(--f-display);
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 6px;
}
.kpi-card .sub {
  font-size: 12px;
  color: var(--ink-3);
}

/* ─── QUIZ CARD ──────────────────────────────────────────── */
.quiz-card {
  background: var(--lemon);
  border-radius: var(--r-card);
  padding: 30px 32px;
  border: 1px solid var(--line);
}
.quiz-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-weight: 600;
  font-size: 14px;
}
.quiz-top .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.quiz-q {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  line-height: 1.1;
}
.quiz-actions { display: flex; gap: 10px; }
.quiz-btn {
  flex: 1;
  background: var(--ink);
  color: var(--bg);
  padding: 16px;
  border-radius: var(--r-pill);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  transition: transform .15s ease;
}
.quiz-btn:hover { transform: scale(1.02); }
.quiz-btn.no {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}
.quiz-btn.selected.yes { background: var(--grass); }
.quiz-btn.selected.no { background: var(--coral); color: var(--ink); }

/* ─── METHOD CARDS ───────────────────────────────────────── */
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.method-card {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 26px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s ease;
  min-height: 280px;
}
.method-card:hover { transform: translateY(-4px); }
.method-card .mc-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--r-tile);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.method-card h3 {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.018em;
  line-height: 1;
}
.method-card p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.5;
}
.method-card .mc-tag {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-3);
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-weight: 500;
}
.method-card .mc-tag strong {
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 14px;
}

/* ─── ASK AUDIT (negative-space chat) ────────────────────── */
.ask-section { padding: 96px 0 120px; }

.ask-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 32px;
}
.ask-kicker .dot {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--bg);
  display: grid; place-items: center;
}

.ask-stage {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

/* floating decor faces — gentle idle bob */
.ask-orbit {
  position: absolute;
  z-index: 0;
  pointer-events: auto;
  animation: askFloat 6s ease-in-out infinite;
}
.ask-orbit.a { left: 6%;  top: 8%;  animation-delay: 0s; }
.ask-orbit.b { right: 8%; top: 14%; animation-delay: -1.2s; }
.ask-orbit.c { left: 12%; bottom: 14%; animation-delay: -2.4s; }
.ask-orbit.d { right: 6%; bottom: 10%; animation-delay: -3.6s; }
.ask-orbit.e { left: 22%; top: 38%; animation-delay: -4.8s; opacity: .85; }
.ask-orbit.f { right: 20%; top: 46%; animation-delay: -1.8s; opacity: .85; }
.ask-stage.chat .ask-orbit { opacity: .35; transform: scale(.85); transition: opacity .6s ease, transform .6s ease; }

@keyframes askFloat {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  50%      { transform: translate(0, -14px) rotate(3deg); }
}

/* the headline sits behind the box and softens when chat is active */
.ask-headline {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
  z-index: 0;
  transition: opacity .5s ease, transform .5s ease;
}
.ask-stage.chat .ask-headline { opacity: 0; transform: translateY(-10px); }
.ask-headline h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.025em;
  line-height: 0.96;
  font-size: clamp(48px, 7vw, 96px);
  margin: 0 0 24px;
  color: color-mix(in oklab, var(--ink) 18%, transparent);
}
.ask-headline h2 .it {
  font-style: italic;
  font-weight: 500;
  color: color-mix(in oklab, var(--ink) 38%, transparent);
}
.ask-hint {
  font-size: 14px;
  color: var(--ink-2);
  font-style: italic;
  margin: 0;
  opacity: .9;
}

/* the central box: pill → input → chat panel */
.ask-box {
  position: relative;
  z-index: 2;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 0;
  width: 80px;
  min-height: 80px;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,.04), 0 30px 60px -30px rgba(20, 20, 20, .18);
  transition:
    width   .55s cubic-bezier(.2,.9,.2,1.05),
    height  .5s cubic-bezier(.2,.9,.2,1.05),
    border-radius .45s ease,
    padding .45s ease,
    box-shadow .4s ease,
    transform .4s ease;
  overflow: hidden;
}
.ask-box::after {
  /* soft pulsing halo around the idle orb */
  content: "";
  position: absolute; inset: -6px;
  border-radius: inherit;
  border: 1px dashed color-mix(in oklab, var(--ink) 22%, transparent);
  opacity: .9;
  animation: askHalo 3.4s ease-in-out infinite;
  pointer-events: none;
  transition: opacity .35s ease;
}
.ask-box.open::after, .ask-box.chat::after { opacity: 0; }
@keyframes askHalo {
  0%, 100% { transform: scale(1);    opacity: .35; }
  50%      { transform: scale(1.18); opacity: 0;  }
}
.ask-box:hover { transform: translateY(-2px); }
.ask-box.open { width: min(600px, 92%); padding: 8px; }
.ask-box.chat {
  width: min(680px, 94%);
  min-height: 360px;
  border-radius: 28px;
  padding: 18px;
  align-items: stretch;
  cursor: default;
  box-shadow: 0 2px 0 rgba(0,0,0,.04), 0 50px 90px -40px rgba(20, 20, 20, .25);
}

/* the always-visible orb on the left side of the pill */
.ask-pill-face {
  width: 64px; height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  transition: width .4s ease, height .4s ease, margin .4s ease;
}
.ask-box.open .ask-pill-face { width: 48px; height: 48px; }
.ask-box.chat .ask-pill-face { display: none; }

.ask-orb {
  width: 100%; height: 100%;
}

/* form */
.ask-form {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding: 0;
  gap: 8px;
  height: 48px;
  /* collapsed: form has no visible width so the orb is the only element */
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: width .45s ease, opacity .25s ease, padding .4s ease;
}
.ask-box.open .ask-form { width: auto; flex: 1; opacity: 1; padding: 0 8px 0 14px; }
.ask-prefix {
  font-size: 16px;
  color: var(--ink-3);
  font-weight: 500;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity .4s ease .15s, max-width .45s ease .1s;
}
.ask-box.open .ask-prefix { opacity: 1; max-width: 80px; }
.ask-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  padding: 8px 0;
  width: 0;
  opacity: 0;
  transition: opacity .35s ease .2s, width .45s ease;
}
.ask-box.open .ask-input { width: 100%; opacity: 1; }
.ask-input::placeholder { color: var(--ink-3); }
.ask-go {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.ask-go:disabled { opacity: .25; cursor: not-allowed; }
.ask-go:not(:disabled):hover { transform: scale(1.06); }

/* chat */
.ask-chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.ask-conv-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 6px 8px;
  border-bottom: 1px dashed var(--line);
}
.ask-conv-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.ask-conv-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grass);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--grass) 50%, transparent);
  animation: askLive 1.6s infinite;
}
@keyframes askLive {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--grass) 50%, transparent); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.ask-close {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  display: grid; place-items: center;
  transition: background .2s ease, color .2s ease;
}
.ask-close:hover { background: var(--ink); color: var(--bg); }

.msg {
  display: flex;
  gap: 12px;
  animation: askSlideIn .45s cubic-bezier(.2,.9,.2,1.05) both;
}
.msg.user { justify-content: flex-end; }
.msg.ai { align-items: flex-end; }
.msg.ai .ai-avatar {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 2px;
}
.msg-bub {
  padding: 12px 16px;
  border-radius: 18px 18px 4px 18px;
  font-size: 15px;
  line-height: 1.5;
  max-width: 78%;
}
.msg.user .msg-bub {
  background: var(--ink);
  color: var(--bg);
}
.msg.user strong { color: var(--mint); font-weight: 600; }
.msg.ai .msg-bub {
  background: var(--bg-2);
  color: var(--ink);
  border-radius: 18px 18px 18px 4px;
  min-height: 24px;
  display: flex; align-items: center;
}
.ans {
  white-space: pre-wrap;
  font-family: var(--f-body);
}
.caret {
  display: inline-block;
  width: 7px; height: 1em;
  background: var(--ink);
  margin-left: 2px;
  vertical-align: -2px;
  animation: askBlink 1s steps(2) infinite;
}
@keyframes askBlink { 50% { opacity: 0; } }

.think { display: inline-flex; align-items: center; gap: 5px; padding: 4px 2px; }
.think .td {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-3);
  animation: askThink 1.2s infinite ease-in-out;
}
.think .td:nth-child(2) { animation-delay: .15s; }
.think .td:nth-child(3) { animation-delay: .3s; }
@keyframes askThink {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30%           { transform: translateY(-6px); opacity: 1; }
}

@keyframes askSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ask-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 52px;
  padding-top: 4px;
  animation: askSlideIn .5s ease both;
}
.ask-reset {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .2s ease;
}
.ask-reset:hover { color: var(--ink); }

@media (max-width: 720px) {
  .ask-box { width: 90%; }
  .ask-headline h2 { font-size: 14vw; }
  .ask-orbit.e, .ask-orbit.f { display: none; }
}

/* ─── CASE TEASER ────────────────────────────────────────── */
.case-teaser {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-card);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.case-teaser h2 {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0 0 20px;
}
.case-teaser h2 .it { font-style: italic; }
.case-teaser p {
  font-size: 17px;
  color: rgba(255,255,255,.7);
  margin: 0 0 28px;
  max-width: 50ch;
  line-height: 1.5;
}
.case-teaser .btn-pill { background: var(--bg); color: var(--ink); }
.case-teaser .btn-pill .arr { background: var(--ink); color: var(--bg); }
.case-teaser-art {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.case-teaser-art > * { aspect-ratio: 1; border-radius: var(--r-tile); display: grid; place-items: center; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  padding: 70px var(--pad) 30px;
}
.footer-inner {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 48px;
  border: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.footer-blurb p {
  font-family: var(--f-display);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
  max-width: 22ch;
}
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-list a { color: var(--ink-2); transition: color .15s ease; }
.footer-list a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 24px;
}
.mega-mark {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(80px, 14vw, 200px);
  letter-spacing: -0.05em;
  line-height: 0.85;
  font-variation-settings: "opsz" 96;
  margin: 0;
  flex: 1;
  min-width: 0;
  color: var(--ink);
}
.footer-meta { font-size: 13px; color: var(--ink-3); text-align: right; line-height: 1.7; }

/* ─── Footer mobile: the 4-col grid was never adapted, so columns
   cramped and "LEGAL" clipped off-screen; the mega-mark overlapped the
   copyright; and a tall pad left dead space above the card. ─────────── */
@media (max-width: 768px) {
  /* the closer (Pricing) section's 80px bottom pad + footer top pad left a
     big dead band above the footer card — trim both on mobile */
  #pricing.section { padding-bottom: 20px; }
  .footer { padding: 16px var(--pad) 24px; }
  .footer-inner { padding: 32px 22px; border-radius: 24px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    margin-bottom: 32px;
  }
  .footer-blurb { grid-column: 1 / -1; }
  .footer-blurb p { font-size: 22px; max-width: none; }
  .footer h4 { margin-bottom: 10px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-top: 24px;
  }
  .mega-mark { font-size: clamp(64px, 24vw, 104px); flex: none; }
  .footer-meta { text-align: left; }
}
@media (max-width: 360px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── CASE STUDY PAGE ────────────────────────────────────── */
.case-hero {
  padding: 40px 0 60px;
}
.case-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.case-meta-chip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.case-meta-chip span { color: var(--ink-3); margin-right: 4px; }
.case-title {
  font-family: var(--f-display);
  font-size: clamp(48px, 8vw, 116px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 28px;
  max-width: 18ch;
}
.case-title .it { font-style: italic; font-weight: 600; }
.case-deck {
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 720px;
  margin: 0;
}
.case-deck strong { color: var(--ink); font-weight: 600; }

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.bubble {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 28px;
  border: 1px solid var(--line);
}
.bubble.after { background: var(--mint); }
.bubble.before { background: var(--bg-2); }
.bubble-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
}
.bubble-top .src-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg);
  padding: 4px 12px 4px 4px;
  border-radius: var(--r-pill);
}
.bubble-q {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink-2);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.bubble-a {
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}
.bubble-a .hl {
  background: var(--ink);
  color: var(--bg);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.bubble.before .bubble-a span.gray { color: var(--ink-3); }

.timeline {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 36px;
  border: 1px solid var(--line);
}
.tl-row {
  display: grid;
  grid-template-columns: 100px 220px 1fr 120px;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.tl-row:last-child { border-bottom: 0; padding-bottom: 6px; }
.tl-row:first-child { padding-top: 6px; }
.tl-row .wk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  background: var(--bg-2);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  width: fit-content;
}
.tl-row .phase {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tl-row .phase .ico {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
}
.tl-row .desc { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.tl-row .delta {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--grass);
  text-align: right;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.outcome-card {
  border-radius: var(--r-card);
  padding: 36px 28px;
  border: 1px solid var(--line);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.outcome-card .num {
  font-family: var(--f-display);
  font-size: clamp(64px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-top: auto;
}
.outcome-card .lbl { font-size: 15px; color: var(--ink-2); line-height: 1.45; }

/* ─── responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { display: none; }
  .mood-row { grid-template-columns: repeat(2, 1fr); }
  .summary-grid { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: 1fr; }
  .summary-card.feature { grid-template-columns: 1fr; }
  .summary-card.feature .feat-face { width: 140px; height: 140px; justify-self: end; }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .case-teaser { grid-template-columns: 1fr; padding: 32px; }
  .compare { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .outcomes-grid { grid-template-columns: 1fr; }
}

/* ─── Minco v4 Additions ──────────────────────────────────── */

/* Category Picker */
.category-picker-container {
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.category-picker-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  font-weight: 600;
}
.category-picker {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.category-btn {
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--card);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.category-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px) scale(1.04);
}
.category-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Tooltips */
.tooltip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.08);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: bold;
  cursor: help;
  margin-left: 6px;
  position: relative;
  vertical-align: middle;
}
.tooltip-trigger:hover {
  background: var(--ink);
  color: var(--bg);
}
.tooltip-trigger .tooltip-content {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  background: var(--ink);
  color: var(--bg);
  padding: 12px 16px;
  border-radius: 12px;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: normal;
  line-height: 1.45;
  width: 260px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}
.tooltip-trigger:hover .tooltip-content {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}
.tooltip-trigger .tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--ink) transparent transparent transparent;
}

/* Step 1: AI Widget */
.ai-widget {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ai-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.ai-tab-btn {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s ease;
}
.ai-tab-btn:hover {
  color: var(--ink);
}
.ai-tab-btn.active {
  background: var(--bg-2);
  color: var(--ink);
  border-color: var(--line);
}
.ai-engine-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ai-engine-btn {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
  transition: all 0.2s ease;
  cursor: pointer;
}
.ai-engine-btn.active {
  border-color: var(--ink);
}
.ai-engine-btn[data-engine="ChatGPT"].active { background: var(--mint); color: var(--mint-ink); }
.ai-engine-btn[data-engine="Claude"].active { background: var(--lilac); color: var(--lilac-ink); }
.ai-engine-btn[data-engine="Perplexity"].active { background: var(--coral); color: var(--coral-ink); }
.ai-engine-btn[data-engine="Gemini"].active { background: var(--sky); color: var(--sky-ink); }

.ai-response-box {
  border-radius: var(--r-tile);
  padding: 20px;
  min-height: 120px;
  font-size: 15px;
  line-height: 1.6;
  transition: all 0.3s ease;
}
.ai-response-box[data-engine="ChatGPT"] { background: #f7f7f8; border-left: 4px solid var(--mint); }
.ai-response-box[data-engine="Claude"] { background: #f9f6f0; border-left: 4px solid var(--lilac); }
.ai-response-box[data-engine="Perplexity"] { background: #f4f6f6; border-left: 4px solid var(--coral); }
.ai-response-box[data-engine="Gemini"] { background: #f0f4f9; border-left: 4px solid var(--sky); }

.ai-response-box strong {
  font-weight: 600;
  background: rgba(0,0,0,0.05);
  padding: 2px 4px;
  border-radius: 4px;
}

/* Step 2: Gap Pull Quote Card */
.pullquote-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pullquote-quote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.35;
  color: var(--ink-2);
  margin: 0;
  font-weight: 500;
}
.pullquote-meta {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
}
.pullquote-meta strong {
  color: var(--ink-2);
}

/* Step 3: Before/After Toggles */
.toggle-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.toggle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.toggle-switch-container {
  display: flex;
  background: var(--bg-2);
  padding: 3px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
}
.toggle-switch-btn {
  padding: 6px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.2s ease;
  cursor: pointer;
}
.toggle-switch-btn.active {
  background: var(--ink);
  color: var(--bg);
}
.toggle-response-box {
  border-radius: var(--r-tile);
  padding: 20px;
  min-height: 120px;
  font-size: 15px;
  line-height: 1.6;
  transition: all 0.3s ease;
}
.toggle-response-box.before {
  background: var(--bg-2);
  border-left: 4px solid var(--ink-3);
}
.toggle-response-box.after {
  background: var(--mint);
  border-left: 4px solid var(--grass-ink);
  color: var(--grass-ink);
}
.toggle-response-box.after strong {
  background: var(--ink);
  color: var(--bg);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.toggle-response-box.before strong {
  color: var(--ink-3);
}

/* ─── The Problem (shift) — the dark room ──────────────────────────────
   The section itself is transparent; the page root (.minco[data-room])
   cross-fades to ink as it approaches, so the room change is animated,
   never a hard cut. All text colors here are fixed light-on-ink.        */
.shift-section {
  position: relative;
  color: var(--shift-fg);
}
.shift-pinned { height: 440vh; }
.shift-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad);
}
.shift-beats-stage {
  position: relative;
  width: 100%;
  max-width: 1180px;
  height: 70vh;
}
.shift-kinetic {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
  will-change: transform, opacity;
}
/* index number — quiet ordinal that anchors each beat in the sequence */
.shift-kinetic-no {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.32em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.34);
}
.shift-kinetic-face {
  width: 78px;
  height: 78px;
  transform: scale(0.5) rotate(-8deg);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}
.shift-kinetic-face.on {
  transform: scale(1) rotate(0deg);
  opacity: 1;
}
.shift-beat-text {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  font-size: clamp(34px, 4.8vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--shift-fg);
  max-width: 17ch;
  margin: 0 auto;
}
.shift-beat-text.last { color: var(--coral); max-width: 18ch; }

/* the proof under each beat: big counting number + sourced label */
.shift-kinetic-stat {
  display: flex;
  align-items: center;
  gap: 22px;
  text-align: left;
  max-width: 640px;
  margin-top: 6px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.shift-kinetic-stat-value {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  font-size: clamp(46px, 5.2vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--shift-fg);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.shift-kinetic.mint .shift-kinetic-stat-value { color: var(--mint); }
.shift-kinetic.coral .shift-kinetic-stat-value { color: var(--coral); }
.shift-kinetic-stat-meta { display: flex; flex-direction: column; gap: 8px; }

/* kicker pinned above the stage for the whole sequence */
.shift-pinned-head {
  position: absolute;
  top: clamp(86px, 13vh, 132px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

/* progress ticks — bottom center */
.shift-ticks {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.shift-tick {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.4s ease, width 0.4s ease;
}
.shift-tick.on { background: var(--mint); }

/* shared stat label / source (used by desktop panels + mobile cards) */
.shift-stat-label {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.74);
  margin: 0;
  max-width: 34ch;
}
.shift-stat-source {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

/* ── mobile / reduced-motion: numbered timeline of beat+stat cards ── */
.shift-flow { padding: 96px 0 90px; }
.shift-flow-head { margin-bottom: 40px; }
.shift-items {
  display: flex;
  flex-direction: column;
}
.shift-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 18px;
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.shift-item.in { opacity: 1; transform: translateY(0); }
/* timeline rail: number bullet + connecting line down to the next card */
.shift-item-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.shift-item-no {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--shift-fg);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.5s ease, background 0.5s ease, color 0.5s ease;
}
.shift-item.in .shift-item-no { border-color: var(--mint); }
.shift-item.coral.in .shift-item-no { border-color: var(--coral); }
.shift-item-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.22), rgba(255,255,255,0.04));
}
.shift-item:last-child .shift-item-line { display: none; }
.shift-item-body { padding-bottom: 56px; }
.shift-item:last-child .shift-item-body { padding-bottom: 0; }
.shift-item-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.shift-item-face { width: 46px; height: 46px; flex-shrink: 0; }
.shift-item-beat {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  font-size: clamp(24px, 6.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--shift-fg);
  margin: 0;
}
.shift-item.coral .shift-item-beat { color: var(--coral); }
.shift-item-stat .shift-stat-value {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  font-size: clamp(54px, 16vw, 78px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--shift-fg);
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}
.shift-item.mint .shift-stat-value { color: var(--mint); }
.shift-item.coral .shift-stat-value { color: var(--coral); }
.shift-item-stat .shift-stat-source { margin-top: 10px; }

/* Two-Step Form & Report Preview Grid */
.check-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.two-step-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 32px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: all 0.2s ease;
  color: var(--ink);
}
.form-input:focus {
  border-color: var(--mint);
  background: var(--card);
  box-shadow: 0 0 0 2px var(--mint);
}
.form-select:focus {
  border-color: var(--lilac);
  background: var(--card);
  box-shadow: 0 0 0 2px var(--lilac);
}
.form-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font: inherit;
  font-size: 16px;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='rgba(20,20,20,0.6)' d='M0 0h12L6 8z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  color: var(--ink);
  cursor: pointer;
}
.form-reveal {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-reveal.visible {
  max-height: 400px;
  opacity: 1;
}

/* ─── Free check: one job — get the URL. Negative space is the design. ── */
.free-section { padding: 120px 0 110px; }
.free-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.free-head h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-size: clamp(34px, 4.6vw, 64px);
  margin: 0;
}
.free-head h2 .it { font-style: italic; font-weight: 600; }
.free-sub {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  max-width: 46ch;
}
.free-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.free-points li {
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.free-points li::before {
  content: "✓";
  color: var(--mint-ink);
  background: var(--mint);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 10px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  transform: translateY(2px);
}

/* report glimpse — crisp top, fading "more inside" bottom */
.report-glimpse {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  box-shadow: 0 24px 48px -24px rgba(20, 20, 20, 0.18);
}
.rg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.rg-score {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 40px;
  color: var(--coral-ink);
  letter-spacing: -0.02em;
}
/* Score gauge ring — the report's signature visual, compact (no extra height). */
.rg-score-ring { position: relative; width: 60px; height: 60px; flex: 0 0 auto; }
.rg-score-ring svg { display: block; }
.rg-score-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 21px;
  color: var(--coral-ink);
  letter-spacing: -0.02em;
}
.rg-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}
.rg-comps { display: flex; flex-direction: column; gap: 9px; }
.rg-comp {
  display: grid;
  grid-template-columns: minmax(0, 168px) 1fr;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
}
.rg-comp-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-2);
  overflow: hidden;
  display: block;
}
.rg-bar span { display: block; height: 100%; border-radius: 999px; background: var(--ink); opacity: 0.75; }
.rg-comp.you { color: var(--coral-ink); }
.rg-comp.you .rg-bar span { background: var(--coral); opacity: 1; }
.rg-gap {
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--coral-ink);
  background: color-mix(in srgb, var(--coral) 14%, transparent);
  border-radius: var(--r-tile);
  padding: 12px 14px;
}
.rg-fade {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
}
.rg-fade span {
  height: 10px;
  border-radius: 999px;
  background: var(--bg-2);
}
.rg-fade span:nth-child(2) { width: 86%; }
.rg-fade span:nth-child(3) { width: 64%; }
.rg-foot {
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}
.chip-soft {
  background: var(--bg-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}

/* ─── Pricing: the money moment ─────────────────────────────────────── */
.audit-stage {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  margin-bottom: 96px;
}
.audit-visual {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.audit-pages {
  position: relative;
  height: 380px;
}
.audit-page {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(330px, 82%);
  height: 360px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  box-shadow: 0 24px 48px -28px rgba(20, 20, 20, 0.35);
}
.audit-page.p2 { transform: rotate(-7deg) translateX(-9%); opacity: 0.85; }
.audit-page.p3 { transform: rotate(6deg) translateX(10%); opacity: 0.7; }
.audit-page.p1 {
  transform: rotate(-1deg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}
.ap-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
}
.ap-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.ap-row { display: flex; gap: 16px; align-items: center; }
.ap-score { flex-shrink: 0; }
.ap-score-meta { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.ap-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ap-bars { display: flex; flex-direction: column; gap: 5px; }
.ap-bars span { display: block; height: 7px; border-radius: 999px; background: var(--bg-2); }
.ap-lines { display: flex; flex-direction: column; gap: 6px; }
.ap-lines span { display: block; height: 9px; border-radius: 999px; background: var(--bg-2); width: 100%; }
.ap-plan { display: flex; gap: 8px; }
.ap-step {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--mint-ink);
  display: grid;
  place-items: center;
}
.ap-step.more { background: var(--bg-2); color: var(--ink-2); }

.audit-langs {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  padding: 14px 18px;
}
.audit-langs-chips { display: flex; gap: 6px; flex-shrink: 0; }
.audit-langs p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }

.audit-ba {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  padding: 20px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ba-chip { position: absolute; top: -11px; left: 16px; }
.ba-line {
  font-size: 14.5px;
  line-height: 1.45;
  padding: 10px 14px;
  border-radius: 12px;
}
.ba-line.before {
  color: var(--ink-3);
  background: var(--bg-2);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--coral) 65%, transparent);
  text-decoration-thickness: 1.5px;
}
.ba-line.after {
  color: var(--mint-ink);
  background: color-mix(in srgb, var(--mint) 22%, transparent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ba-face { width: 30px; height: 30px; flex-shrink: 0; margin-left: auto; }

.audit-offer {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 30px 60px -32px rgba(20, 20, 20, 0.25);
}
.audit-offer .kicker { align-self: flex-start; }
.audit-offer h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 6px 0 0;
}
.audit-offer .pricing-desc { margin: 0; }
.audit-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.audit-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 26px;
  position: relative;
}
.audit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--mint-ink);
  background: var(--mint);
  border-radius: 50%;
  width: 17px;
  height: 17px;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.audit-list strong { font-size: 14.5px; font-weight: 700; }
.audit-list span { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.audit-offer-foot {
  border-top: 1px dashed var(--line);
  padding-top: 18px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.audit-offer-foot .price {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-period { font-size: 15px; font-weight: 500; color: var(--ink-2); font-family: var(--f-body); letter-spacing: 0; }
.audit-offer-note { font-size: 12px; text-align: center; margin: 0; color: var(--ink-3); }
.audit-offer-link { text-decoration: underline; cursor: pointer; }

/* ongoing — a month in the life */
.ongoing-stage {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(26px, 3.5vw, 48px);
}
.ongoing-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 36px;
}
.ongoing-title { font-size: clamp(24px, 2.6vw, 36px); margin: 10px 0 0; max-width: 22ch; }
.ongoing-desc { font-size: 15px; margin: 0; }
.ongoing-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  border-top: 1px dashed var(--line);
  padding-top: 28px;
  position: relative;
}
.ongoing-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  padding-right: 18px;
}
.ongoing-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: 2px;
  top: 14px;
  color: var(--ink-3);
  font-size: 15px;
}
.ongoing-step-face { width: 44px; height: 44px; }
.ongoing-step-k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ongoing-step p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.ongoing-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px dashed var(--line);
  margin-top: 28px;
  padding-top: 22px;
}
.ongoing-note { font-size: 13px; color: var(--ink-3); font-weight: 500; }

@media (max-width: 980px) {
  .audit-stage { grid-template-columns: 1fr; gap: 36px; margin-bottom: 64px; }
  .audit-pages { height: 330px; }
  .audit-page { height: 310px; }
  .ongoing-head { grid-template-columns: 1fr; gap: 14px; align-items: start; margin-bottom: 24px; }
  .ongoing-strip { grid-template-columns: 1fr 1fr; gap: 24px; }
  .ongoing-step { padding-right: 0; }
  .ongoing-step:not(:last-child)::after { content: none; }
}
@media (max-width: 560px) {
  .ongoing-strip { grid-template-columns: 1fr; }
  .audit-langs { flex-direction: column; align-items: flex-start; gap: 10px; }
}

.report-pre-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
}
.report-pre-score {
  font-size: 32px;
  color: var(--coral-ink);
}
.report-pre-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.report-pre-title {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.report-pre-content {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.4;
}

/* Scan/Success State */
.success-scan {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  gap: 24px;
}

/* ── Quick "checking…" sequence (replaces the slow terminal scan) ── */
.scan-checks {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 28px;
  min-height: 220px;
}
.scan-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 360px;
}
.scan-check {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink-3);
  opacity: 0.55;
  transition: opacity 0.4s ease, color 0.4s ease;
}
.scan-check.active { opacity: 1; color: var(--ink); }
.scan-check.done { opacity: 1; color: var(--ink-2); }
.scan-check-ico {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  color: var(--mint-ink);
  background: transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.scan-check.done .scan-check-ico { background: var(--mint); border-color: var(--mint); }
.scan-check-spin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid color-mix(in oklab, var(--ink) 18%, transparent);
  border-top-color: var(--ink);
  animation: scanCheckSpin 0.7s linear infinite;
}
.scan-check:not(.active) .scan-check-spin { opacity: 0.4; animation: none; }
@keyframes scanCheckSpin { to { transform: rotate(360deg); } }
.scanner-container {
  position: relative;
  width: 72px;
  height: 72px;
}
.scanner-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--line);
  border-top-color: var(--grass);
  animation: spin 1.2s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Pricing cards side-by-side grid */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Split Pricing Grid */
.pricing-grid-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  margin-bottom: 20px;
  align-items: stretch;
}
.pricing-deliverables {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 48px;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.pricing-deliverables h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(24px, 2.5vw, 36px);
  margin: 12px 0 16px;
  color: var(--ink);
}
.pricing-card.audit-split {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: auto;
  text-align: left;
}
.pricing-card-bottom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px dashed var(--line);
  padding-top: 32px;
  margin-top: 24px;
}
.pricing-card-top h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(24px, 2.5vw, 36px);
  margin: 12px 0 16px;
  color: var(--ink);
}
.pricing-card-bottom .price {
  margin: 0 0 24px 0 !important;
  font-size: 40px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .pricing-grid-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pricing-deliverables, .pricing-card.audit-split {
    padding: 32px;
  }
  .pricing-card-bottom {
    padding-top: 24px;
    margin-top: 16px;
  }
}
.pricing-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
  transition: transform .25s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
}
.pricing-card.tracker {
  background: var(--sky);
  border-color: var(--sky-ink);
}
.pricing-card.audit {
  background: var(--card);
  border-color: var(--line);
}

@media (min-width: 769px) {
  .pricing-card.audit {
    display: grid !important;
    grid-template-columns: 1.15fr 0.85fr !important;
    gap: 48px !important;
    align-items: stretch !important;
    min-height: auto !important;
    padding: 48px !important;
  }
  .pricing-card.audit > div:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px dashed var(--line);
    padding-left: 48px;
  }
  .pricing-card.audit .price {
    margin: 0 0 24px 0 !important;
  }
}
.pricing-card h3 {
  font-family: var(--f-display);
  font-size: clamp(32px, 3.5vw, 48px);
  margin: 0 0 16px;
  font-weight: 700;
  line-height: 1;
}
.pricing-card .price {
  font-family: var(--f-display);
  font-size: 56px;
  font-weight: 800;
  margin: 24px 0;
  line-height: 1;
}
.pricing-card .pricing-desc {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 24px;
}
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.4;
}
.pricing-list li::before {
  content: "→";
  font-weight: bold;
  color: var(--ink);
}

.pricing-card.tracker .pricing-desc,
.pricing-card.tracker .pricing-list li {
  color: var(--sky-ink);
}
.pricing-card.tracker .pricing-list li::before {
  color: var(--sky-ink);
}


/* Pricing Deliverables Grid */
.pricing-deliverables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 640px) {
  .pricing-deliverables-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.pricing-deliverable-card {
  background: color-mix(in oklab, var(--bg) 25%, var(--card));
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  transition: transform 0.22s cubic-bezier(.22, 1, .36, 1), border-color 0.22s ease;
}
.pricing-deliverable-card:hover {
  border-color: var(--mint);
  transform: translateY(-2px);
}
.deliverable-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--mint-ink);
  flex-shrink: 0;
}
.check-icon-svg {
  width: 14px;
  height: 14px;
}
.pricing-deliverable-card strong {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}
.pricing-deliverable-card p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.45;
  margin: 0;
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .check-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card { min-height: auto; }
}

@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ChatGPT-like typing indicator bounce animation */
.chatgpt-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  height: 100%;
}
.dot-bounce {
  width: 4px;
  height: 4px;
  background-color: var(--ink);
  border-radius: 50%;
  animation: chatgptBounce 1.4s infinite ease-in-out both;
}
.dot-bounce:nth-child(1) {
  animation-delay: -0.32s;
}
.dot-bounce:nth-child(2) {
  animation-delay: -0.16s;
}
@keyframes chatgptBounce {
  0%, 80%, 100% { 
    transform: translateY(0);
  } 
  40% { 
    transform: translateY(-3px);
  }
}

/* ─── Dark Mode overrides ─── */
[data-mode="dark"] {
  --bg: #121212;
  --bg-2: #1e1e1e;
  --card: #1c1c1e;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #86868b;
  --line: rgba(255, 255, 255, 0.12);
}

[data-mode="dark"] .eyebrow .dot {
  background: var(--bg-2);
  border-color: var(--line);
}

[data-mode="dark"] .ai-response-box[data-engine="ChatGPT"] { background: #1c1c1e; }
[data-mode="dark"] .ai-response-box[data-engine="Claude"] { background: #1d1b18; }
[data-mode="dark"] .ai-response-box[data-engine="Perplexity"] { background: #181c1c; }
[data-mode="dark"] .ai-response-box[data-engine="Gemini"] { background: #181a1d; }

[data-mode="dark"] .ai-response-box strong {
  background: rgba(255, 255, 255, 0.08);
}

[data-mode="dark"] .msg.user strong {
  color: var(--mint-ink);
}

/* ─── Topbar Actions (Lang Switcher & Theme Toggle) ─── */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Custom Language Dropdown */
.lang-dropdown-container {
  position: relative;
  display: inline-block;
}

.lang-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.lang-dropdown-trigger:hover,
.lang-dropdown-trigger.open {
  background: var(--bg-2);
  border-color: var(--ink-2);
  color: var(--ink);
}

.lang-globe {
  display: flex;
  align-items: center;
  color: inherit;
  opacity: 0.8;
}

.lang-current {
  font-family: var(--f-sans);
  letter-spacing: 0.05em;
}

.lang-chevron {
  display: flex;
  align-items: center;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0.6;
}

.lang-chevron.open {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  min-width: 160px;
  padding: 6px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform-origin: top right;
  animation: langDropdownOpen 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes langDropdownOpen {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lang-dropdown-item {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.lang-dropdown-item:hover {
  background: var(--bg-2);
  color: var(--ink);
}

.lang-dropdown-item.active {
  background: var(--ink);
  color: var(--bg);
}

.lang-code {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.6;
}

.lang-dropdown-item.active .lang-code {
  opacity: 0.9;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--bg-2);
  transform: scale(1.05);
}

/* Minimized State button scales */
.minimized .btn-pill {
  height: 36px;
  padding: 0 4px 0 16px;
  font-size: 13px;
  gap: 6px;
}

.minimized .btn-pill .arr {
  width: 28px;
  height: 28px;
}

/* Hide language switcher and theme toggle when header is minimized */
.minimized .lang-dropdown-container,
.minimized .theme-toggle {
  display: none !important;
}

@media (max-width: 480px) {
  .topbar-inner {
    padding: 12px 16px;
    gap: 10px;
  }
}


/* ── How It Works v3 ─────────────────────────────────────── */
.hiw3 {
  position: relative;
  height: 340vh;
  background: transparent;
  margin-top: -32px;
  z-index: 2;
  --hiw-panel: color-mix(in oklab, var(--ink) 4%, var(--card));
}
/* The pinned frame — stays fixed in view while you scroll the tall section,
   so the diagnostic advances in place. */
.hiw3-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;

  /* Card expanding to full-screen driven by scroll --expand-progress */
  background: var(--card);
  transform: scale(calc(0.94 + 0.06 * var(--expand-progress, 0))) translateY(calc(32px * (1 - var(--expand-progress, 0))));
  border-radius: calc(36px * (1 - var(--expand-progress, 0))) calc(36px * (1 - var(--expand-progress, 0))) 0 0;
  width: calc(100% - 48px * (1 - var(--expand-progress, 0)));
  box-shadow: 0 calc(20px * (1 - var(--expand-progress, 0))) calc(60px * (1 - var(--expand-progress, 0))) rgba(0, 0, 0, calc(0.12 * (1 - var(--expand-progress, 0))));
  
  transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1), 
              border-radius 0.1s cubic-bezier(0.2, 0.8, 0.2, 1), 
              width 0.1s cubic-bezier(0.2, 0.8, 0.2, 1), 
              box-shadow 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hiw3-wrap {
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(20px, 3.5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Top metering strip */
.hiw3-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hiw3-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hiw3-kicker-led {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  transition: background .5s ease;
}
.hiw3-kicker-led::after {
  content: "";
  position: absolute; inset: 5px;
  background: var(--accent-ink);
  border-radius: 50%;
  animation: hiw3LedPulse 1.6s ease-in-out infinite;
}
@keyframes hiw3LedPulse {
  0%, 100% { transform: scale(.7); opacity: .55; }
  50%      { transform: scale(1); opacity: 1; }
}

.hiw3-top-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.hiw3-meta-cell {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 8px 12px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--bg-2) 50%, var(--card));
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hiw3-meta-cell span {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

/* Phase progress — read-only, replaces the old transport bar */
.hiw3-phases {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hiw3-phase {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: var(--card);
  border: 1px solid var(--line);
  width: 134px;
  opacity: 0.5;
  transition: opacity .45s ease, border-color .45s ease, box-shadow .45s ease;
}
.hiw3-phase.past { opacity: 0.78; }
.hiw3-phase.on {
  opacity: 1;
  border-color: color-mix(in oklab, var(--accent) 55%, var(--line));
  box-shadow: 0 6px 18px -12px color-mix(in oklab, var(--accent-ink) 60%, transparent);
}
.hiw3-phase-no {
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  transition: color .45s ease;
}
.hiw3-phase.on .hiw3-phase-no,
.hiw3-phase.past .hiw3-phase-no { color: var(--accent-ink); }
.hiw3-phase-lbl {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hiw3-phase-track {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: color-mix(in oklab, var(--bg-2) 70%, var(--card));
  overflow: hidden;
  min-width: 22px;
}
.hiw3-phase-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent-ink);
}

/* Scroll cue — invites the first scroll, fades once moving */
.hiw3-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--ink-3);
  pointer-events: none;
  transition: opacity .5s ease, transform .5s ease;
  z-index: 3;
}
.hiw3-cue.gone {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
}
.hiw3-cue-txt {
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hiw3-cue-arrow {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--accent-ink);
  animation: hiwCueBob 1.7s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes hiwCueBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

/* Main grid: left text · center stage */
.hiw3-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.55fr;
  gap: 32px;
  align-items: stretch;
  min-height: min(620px, 72vh);
}

/* LEFT — step text + step number */
.hiw3-left {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center content vertically to keep the layout balanced */
  position: relative;
  padding-bottom: 24px;
  height: 100%;
}

.hiw3-textwrap {
  position: relative;
  min-height: 420px; /* Centered container tall enough to house the vertical stack */
}
.hiw3-textblock {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .9, .2, 1.05);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hiw3-textblock.on { opacity: 1; transform: none; pointer-events: auto; }

.hiw3-step-number {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 200px;
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-variation-settings: "opsz" 96;
  color: var(--ink);
  margin-bottom: 16px;
}
.hiw3-txt-kicker {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  /* Removed text-transform: uppercase to keep mixed-case "We check" */
  margin-bottom: 6px;
}
.hiw3-txt-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-variation-settings: "opsz" 96;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin-top: 0; /* Exclude browser default top margin */
  margin-bottom: 12px;
}
.hiw3-txt-body {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
  max-width: 38ch;
}

.hiw3-substeps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.hiw3-substep {
  display: grid;
  grid-template-columns: 14px 30px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color .3s ease;
}
.hiw3-substep.past { color: var(--ink-2); }
.hiw3-substep.on { color: var(--ink); }
.hiw3-substep-led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line);
  transition: background .3s ease, box-shadow .3s ease;
}
.hiw3-substep.past .hiw3-substep-led { background: var(--accent-ink); opacity: .5; }
.hiw3-substep.on .hiw3-substep-led {
  background: var(--accent-ink);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 35%, transparent);
  animation: hiw3LedBlink 1.2s ease-in-out infinite;
}
@keyframes hiw3LedBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .4; }
}
.hiw3-substep-no { font-weight: 700; }
.hiw3-substep-lbl { font-weight: 500; }
.hiw3-substep-bar {
  grid-column: 3 / -1;
  display: block;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
  position: relative;
  margin-left: -40px;
  width: calc(100% + 40px);
}
.hiw3-substep-bar-fill {
  display: block;
  height: 100%;
  background: var(--accent-ink);
  border-radius: 2px;
  transition: width .15s linear;
}

/* CENTER — Stage device */
.hiw3-center {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 60px 80px -60px rgba(20, 20, 20, .25), 0 1px 0 rgba(20, 20, 20, .04);
  position: relative;
  overflow: hidden;
}
.hiw3-center::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, color-mix(in oklab, var(--accent) 18%, transparent) 0%, transparent 50%);
  pointer-events: none;
  transition: background .6s ease;
}
.hiw3-stage {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hiw3-prompt {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: color-mix(in oklab, var(--bg-2) 60%, var(--card));
  border-radius: 14px;
  border: 1px solid var(--line);
}
.hiw3-prompt-lbl {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  font-weight: 700;
  padding: 4px 8px;
  background: var(--bg);
  border-radius: 6px;
}
.hiw3-prompt-txt {
  flex: 1;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
  min-height: 22px;
}
.hiw3-prompt-meta {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

.hiw3-caret {
  display: inline-block;
  width: 7px; height: 1em;
  background: var(--ink);
  margin-left: 2px;
  vertical-align: -2px;
  animation: hiw3Blink 1s steps(2) infinite;
}
@keyframes hiw3Blink { 50% { opacity: 0; } }

.hiw3-engines {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.hiw3-eng-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  background: var(--hiw-panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.hiw3-eng {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  transition: background .22s cubic-bezier(.32, .72, 0, 1),
              border-color .22s cubic-bezier(.32, .72, 0, 1),
              box-shadow .22s cubic-bezier(.32, .72, 0, 1),
              color .2s ease;
  position: relative;
  overflow: visible;
  min-width: 0;
  cursor: pointer;
  color: var(--ink-2);
}
.hiw3-eng-orb {
  width: 22px; height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  display: grid;
  place-items: center;
}
.hiw3-eng-orb-i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.hiw3-eng-name {
  flex: 1;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hiw3-eng-state {
  font-family: ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 2px 4px;
  background: color-mix(in oklab, var(--bg-2) 70%, var(--card));
  border-radius: 4px;
  flex-shrink: 0;
}
.hiw3-eng-state-short {
  display: none;
}
@media (max-width: 1280px) {
  .hiw3-eng-state { display: none; }
  .hiw3-eng-state-short { display: inline-flex; }
}
.hiw3-eng-queued { opacity: 0.5; }
.hiw3-eng-queued .hiw3-eng-state { color: var(--ink-3); }
.hiw3-eng-live .hiw3-eng-state {
  background: var(--accent);
  color: var(--accent-ink);
}
.hiw3-eng-live .hiw3-eng-orb-i { animation: hiw3OrbPulse .8s ease-in-out infinite; }
@keyframes hiw3OrbPulse { 50% { transform: scale(1.8); opacity: 1; } }

.hiw3-eng-done .hiw3-eng-state { color: var(--ink-2); }
.hiw3-eng-primary .hiw3-eng-state { background: var(--accent); color: var(--accent-ink); }

/* Response card */
.hiw3-resp {
  grid-column: 1;
  grid-row: 3;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  min-height: 280px;
}
.hiw3-resp-c1 { background: color-mix(in oklab, var(--coral) 5%, var(--card)); }
.hiw3-resp-c2 { background: color-mix(in oklab, var(--mint) 8%, var(--card)); }
.hiw3-resp-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
@media (max-width: 480px) {
  /* tags never clip off the card edge on small phones */
  .hiw3-resp-bar { flex-wrap: wrap; row-gap: 5px; }
  .hiw3-resp-bar .hiw3-resp-sub { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.hiw3-resp-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.hiw3-resp-name {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--ink);
}
.hiw3-resp-sep { color: var(--ink-3); }
.hiw3-resp-sub { color: var(--ink-2); }
.hiw3-resp-spacer { flex: 1; }
.hiw3-resp-tag {
  font-family: var(--f-body);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--bg-2);
  border-radius: var(--r-pill);
  font-weight: 700;
}
.hiw3-resp-c1 .hiw3-resp-tag { background: var(--coral-ink); color: var(--bg); }
.hiw3-resp-c2 .hiw3-resp-tag { background: var(--mint-ink); color: var(--bg); }

.hiw3-resp-body {
  padding: 14px 18px;
  position: relative;
  flex: 1;
  overflow: hidden;
}
.hiw3-resp-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  min-height: 200px;
}
.hl-weak {
  background: color-mix(in oklab, var(--coral) 40%, transparent);
  color: var(--coral-ink);
  padding: 1px 4px;
  border-radius: 4px;
  text-decoration: underline wavy;
  text-decoration-color: var(--coral-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  animation: hl-pop .35s ease;
}
.hl-strong {
  background: color-mix(in oklab, var(--mint) 55%, transparent);
  color: var(--mint-ink);
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 600;
  animation: hl-pop .35s ease;
}
@keyframes hl-pop {
  from { background-size: 0% 100%; opacity: .4; transform: translateY(2px); }
  to   { background-size: 100% 100%; opacity: 1; transform: none; }
}

/* Scanner line */
.hiw3-scanner {
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--y, 0%) - 12px);
  height: 24px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in oklab, var(--accent) 35%, transparent) 50%,
    transparent 100%);
  pointer-events: none;
  z-index: 2;
}
.hiw3-scanner::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--accent-ink);
  box-shadow: 0 0 10px var(--accent), 0 0 4px var(--accent-ink);
}

/* Side panel — capture / flags / patch */
.hiw3-side {
  grid-column: 2;
  grid-row: 3;
  background: var(--hiw-panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hiw3-side-inner {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}
.hiw3-side-h {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.hiw3-side-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hiw3-side-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  opacity: 0.45;
  transition: all .3s ease;
}
.hiw3-side-row.on { opacity: 1; }
.hiw3-side-dot { width: 10px; height: 10px; border-radius: 50%; }
.hiw3-side-end {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.hiw3-side-row.on .hiw3-side-end { color: var(--mint-ink); }

/* Flags */
.hiw3-side-flags-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hiw3-flag {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px dashed var(--coral-ink);
  border-radius: 10px;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity .4s ease, transform .55s cubic-bezier(.2, .9, .2, 1.05);
}
.hiw3-flag.in { opacity: 1; transform: none; }
.hiw3-flag-no {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 10px;
  color: var(--bg);
  background: var(--coral-ink);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.hiw3-flag-q {
  font-size: 12px;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 4px;
  line-height: 1.35;
}
.hiw3-flag-r {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--coral-ink);
  text-transform: uppercase;
  font-weight: 600;
}
.hiw3-flag-root {
  color: var(--ink-2);
  font-weight: 500;
}

/* Patch */
.hiw3-side-patch-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hiw3-patch {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: center;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--ink-3);
  transition: color .3s ease;
}
.hiw3-patch.on { color: var(--ink); }
.hiw3-patch-box {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--card);
  display: grid;
  place-items: center;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  color: var(--mint-ink);
  transition: all .3s ease;
}
.hiw3-patch.on .hiw3-patch-box {
  background: var(--mint);
  border-color: var(--mint-ink);
}
.hiw3-stamp {
  margin-top: auto;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--mint);
  border-radius: 12px;
  animation: stampDrop .5s cubic-bezier(.2, .9, .2, 1.3);
}
@keyframes stampDrop {
  from { opacity: 0; transform: scale(.85) rotate(-3deg); }
  to   { opacity: 1; transform: none; }
}
.hiw3-stamp-ring {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--mint-ink);
  position: relative;
}
.hiw3-stamp-ring::after {
  content: "";
  position: absolute; left: 6px; top: 12px;
  width: 6px; height: 10px;
  border: solid var(--mint-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.hiw3-stamp-h {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--mint-ink);
}
.hiw3-stamp-s {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint-ink);
  opacity: 0.7;
}

/* RIGHT — activity log */
.hiw3-right {
  display: flex;
  flex-direction: column;
}
.hiw3-log {
  background: #14161a;
  color: #d6d8db;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 480px;
  overflow: hidden;
  position: relative;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", monospace;
  border: 1px solid #21242a;
}
.hiw3-log::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.hiw3-log-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7d818a;
  padding-bottom: 8px;
  border-bottom: 1px solid #21242a;
}
.hiw3-log-led {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.hiw3-log-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: flex-end;
}
.hiw3-log-row {
  display: grid;
  grid-template-columns: 52px 8px 1fr;
  gap: 8px;
  align-items: baseline;
  font-size: 11px;
  line-height: 1.4;
  opacity: 0.45;
  animation: hiw3LogIn .35s ease;
}
.hiw3-log-row.new { opacity: 1; }
.hiw3-log-t { color: #5e6168; }
.hiw3-log-d { width: 6px; height: 6px; border-radius: 50%; align-self: center; }
.hiw3-log-x { color: #d6d8db; word-break: break-word; }
@keyframes hiw3LogIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Transport */
.hiw3-transport {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.hiw3-tx-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  transition: transform .2s ease;
}
.hiw3-tx-btn:hover { transform: scale(1.05); }
.hiw3-tx-btn.ghost {
  background: var(--bg-2);
  color: var(--ink);
}
.hiw3-tx-chapters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.hiw3-ch {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 4px 10px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: all .25s ease;
  opacity: 0.65;
}
.hiw3-ch:hover { opacity: 0.85; }
.hiw3-ch.past { opacity: 0.85; }
.hiw3-ch.active {
  opacity: 1;
  background: color-mix(in oklab, var(--accent) 12%, var(--bg));
  border-color: var(--accent);
}
.hiw3-ch-no {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 12px;
  color: var(--accent-ink);
  letter-spacing: 0;
}
.hiw3-ch.active .hiw3-ch-no { color: var(--accent-ink); }
.hiw3-ch-lbl {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hiw3-ch-bar {
  grid-column: 1 / -1;
  position: relative;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
}
.hiw3-ch-bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--accent-ink);
  transition: width .15s linear;
}
.hiw3-ch-tick {
  position: absolute;
  top: -2px; bottom: -2px;
  width: 2px;
  background: var(--card);
  border-radius: 1px;
  transform: translateX(-1px);
  cursor: pointer;
}

.hiw3-tx-time {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  white-space: nowrap;
}
.hiw3-tx-time-cur { color: var(--ink); font-weight: 600; }
.hiw3-tx-time-sep { margin: 0 4px; color: var(--ink-3); }

@media (max-width: 1280px) {
  .hiw3-grid { grid-template-columns: 1.15fr 1.6fr; gap: 24px; }
  .hiw3-step-number { font-size: 160px; }
}
@media (max-width: 880px) {
  .hiw3 { height: 300vh; }
  .hiw3-grid { grid-template-columns: 1fr; }
  .hiw3-step-number { display: none; }   /* decorative; the phase chips already number the step */
  .hiw3-phase { width: auto; flex: 1; }
  .hiw3-phase-lbl { display: none; }

  /* ── ONE-WINDOW MOBILE FLOW ──────────────────────────────────────────────
     Desktop shows the response + action box side by side. On mobile that stack
     was taller than the pinned viewport and clipped the action box. Instead we
     OVERLAP both panes in the same grid cell and show one at a time, crossfading
     by data-beat (set in how-it-works.jsx) so each step plays as a single flow:
     capture → answer, answer → flags, patches → new answer. Because only one
     pane shows, we keep full engine names + the step description (nothing cut). */
  .hiw3-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 12px; }
  .hiw3-engines { grid-column: 1; grid-row: 1; }
  .hiw3-resp, .hiw3-side { grid-column: 1; grid-row: 2; transition: opacity .45s ease; }
  .hiw3-resp { min-height: 210px; }
  .hiw3-resp-text { min-height: 0; }
  /* animation:none defeats the stage's entrance keyframes, which otherwise pin
     opacity:1 and block the crossfade. */
  .hiw3-stage[data-beat="result"]  .hiw3-side { opacity: 0; pointer-events: none; animation: none; }
  .hiw3-stage[data-beat="process"] .hiw3-resp { opacity: 0; pointer-events: none; animation: none; }

  .hiw3-textblock.on { min-height: 0; }
  .hiw3-txt-title { font-size: 22px; line-height: 1.18; }
}

/* Phones — light trims only (the one-window overlap already creates the room). */
@media (max-width: 600px) {
  .reel-label { font-size: 30px; }
  .hiw3-txt-title { font-size: 20px; }
  .hiw3-resp { min-height: 180px; }
  .hiw3-resp-body { max-height: 150px; }
}

/* Honor reduced motion — no crossfade, just swap. */
@media (max-width: 880px) and (prefers-reduced-motion: reduce) {
  .hiw3-resp, .hiw3-side { transition: none; }
}


/* ── How It Works v3 Extra Styles (3D & picker elements) ─────────────────── */
/* ─── HIW stage — 3D assembly on chapter change ──────────────────────── */
/* Replays whenever .hiw3-stage remounts (keyed by chapter in JSX).
   Each layer flies in from its own Z-depth and rotation, snapping flat —
   reads as the window assembling itself with real volume.              */

.hiw3-center {
  perspective: 1400px;
  perspective-origin: 50% 30%;
}
.hiw3-stage {
  transform-style: preserve-3d;
}
.hiw3-stage > .hiw3-engines,
.hiw3-stage > .hiw3-resp,
.hiw3-stage > .hiw3-side {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

/* Engine block flips up from the floor as one unit */
.hiw3-stage > .hiw3-engines {
  animation: hiwAsmEng .42s cubic-bezier(.32, .72, 0, 1) both;
  transform-origin: 50% 100%;
  animation-delay: 30ms;
}

/* Response card swings in from the left as if hinged on its left edge */
.hiw3-stage > .hiw3-resp {
  animation: hiwAsmResp .5s cubic-bezier(.32, .72, 0, 1) both;
  animation-delay: 180ms;
  transform-origin: 0% 50%;
}

/* Side panel swings in from the right edge */
.hiw3-stage > .hiw3-side {
  animation: hiwAsmSide .5s cubic-bezier(.32, .72, 0, 1) both;
  animation-delay: 220ms;
  transform-origin: 100% 50%;
}

/* Second wave — inner content text lifts into volume.
   No blur on text (it reads cheap); just fade + 4-6px lift on Apple ease. */
.hiw3-stage > .hiw3-engines > .hiw3-eng-head {
  animation: hiwTextRise .3s cubic-bezier(.32, .72, 0, 1) both;
  animation-delay: 150ms;
}
.hiw3-eng-row > .hiw3-eng {
  animation: hiwTextRise .32s cubic-bezier(.32, .72, 0, 1) both;
}
.hiw3-eng-row > .hiw3-eng:nth-child(1) { animation-delay: 200ms; }
.hiw3-eng-row > .hiw3-eng:nth-child(2) { animation-delay: 235ms; }
.hiw3-eng-row > .hiw3-eng:nth-child(3) { animation-delay: 270ms; }
.hiw3-eng-row > .hiw3-eng:nth-child(4) { animation-delay: 305ms; }

.hiw3-stage > .hiw3-resp .hiw3-resp-bar > * {
  animation: hiwTextRise .32s cubic-bezier(.32, .72, 0, 1) both;
  animation-delay: 380ms;
}
.hiw3-stage > .hiw3-resp .hiw3-resp-bar > *:nth-child(2) { animation-delay: 410ms; }
.hiw3-stage > .hiw3-resp .hiw3-resp-bar > *:nth-child(3) { animation-delay: 430ms; }
.hiw3-stage > .hiw3-resp .hiw3-resp-bar > *:nth-child(4) { animation-delay: 450ms; }
.hiw3-stage > .hiw3-resp .hiw3-resp-bar > *:nth-child(6) { animation-delay: 470ms; }

.hiw3-stage > .hiw3-resp .hiw3-resp-text {
  animation: hiwTextRise .36s cubic-bezier(.32, .72, 0, 1) both;
  animation-delay: 480ms;
}

.hiw3-stage > .hiw3-side .hiw3-side-h {
  animation: hiwTextRise .32s cubic-bezier(.32, .72, 0, 1) both;
  animation-delay: 420ms;
}
.hiw3-stage > .hiw3-side .hiw3-side-row,
.hiw3-stage > .hiw3-side .hiw3-flag,
.hiw3-stage > .hiw3-side .hiw3-patch {
  animation: hiwTextRise .3s cubic-bezier(.32, .72, 0, 1) both;
}
.hiw3-stage > .hiw3-side .hiw3-side-row:nth-child(1),
.hiw3-stage > .hiw3-side .hiw3-flag:nth-child(1),
.hiw3-stage > .hiw3-side .hiw3-patch:nth-child(1) { animation-delay: 480ms; }
.hiw3-stage > .hiw3-side .hiw3-side-row:nth-child(2),
.hiw3-stage > .hiw3-side .hiw3-flag:nth-child(2),
.hiw3-stage > .hiw3-side .hiw3-patch:nth-child(2) { animation-delay: 510ms; }
.hiw3-stage > .hiw3-side .hiw3-side-row:nth-child(3),
.hiw3-stage > .hiw3-side .hiw3-flag:nth-child(3),
.hiw3-stage > .hiw3-side .hiw3-patch:nth-child(3) { animation-delay: 540ms; }
.hiw3-stage > .hiw3-side .hiw3-side-row:nth-child(4),
.hiw3-stage > .hiw3-side .hiw3-flag:nth-child(4),
.hiw3-stage > .hiw3-side .hiw3-patch:nth-child(4) { animation-delay: 570ms; }
.hiw3-stage > .hiw3-side .hiw3-side-row:nth-child(5),
.hiw3-stage > .hiw3-side .hiw3-patch:nth-child(5) { animation-delay: 600ms; }

@keyframes hiwAsmPrompt {
  0% {
    opacity: 0;
    transform: translate3d(0, -22px, 180px) rotateX(-42deg);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0);
  }
}

@keyframes hiwAsmEng {
  0% {
    opacity: 0;
    transform: translate3d(0, 20px, -140px) rotateX(46deg);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0);
  }
}

@keyframes hiwAsmResp {
  0% {
    opacity: 0;
    transform: translate3d(-32px, 0, -160px) rotateY(28deg);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(0);
  }
}

@keyframes hiwAsmSide {
  0% {
    opacity: 0;
    transform: translate3d(32px, 0, -160px) rotateY(-28deg);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(0);
  }
}

@keyframes hiwTextRise {
  0% {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hiw3-stage > .hiw3-engines,
  .hiw3-stage > .hiw3-engines > .hiw3-eng-head,
  .hiw3-eng-row > .hiw3-eng,
  .hiw3-stage > .hiw3-resp,
  .hiw3-stage > .hiw3-side,
  .hiw3-stage > .hiw3-resp .hiw3-resp-bar > *,
  .hiw3-stage > .hiw3-resp .hiw3-resp-text,
  .hiw3-stage > .hiw3-side .hiw3-side-h,
  .hiw3-stage > .hiw3-side .hiw3-side-row,
  .hiw3-stage > .hiw3-side .hiw3-flag,
  .hiw3-stage > .hiw3-side .hiw3-patch { animation: none; }
}

/* ─── Zone header (shared by prompt picker + engine picker) ──────────── */

.hiw3-zone-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hiw3-zone-led {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent);
  flex-shrink: 0;
}
.hiw3-zone-led.alt {
  background: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ink) 12%, transparent);
}
.hiw3-zone-k {
  font-family: var(--f-body);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-2);
}
.hiw3-zone-hint {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-ink);
  letter-spacing: 0;
  margin-left: auto;
  opacity: 0.85;
}

/* ─── Prompt picker — a vertical list of selectable queries ──────────── */

.hiw3-presets {
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: relative;
  z-index: 1;
}
.hiw3-presets-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hiw3-preset {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  background: var(--hiw-panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: background .22s cubic-bezier(.32, .72, 0, 1),
              border-color .22s cubic-bezier(.32, .72, 0, 1),
              transform .22s cubic-bezier(.32, .72, 0, 1),
              color .22s cubic-bezier(.32, .72, 0, 1);
  font-family: var(--f-display);
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: -0.01em;
  min-width: 0;
}
.hiw3-preset:hover {
  background: var(--card);
  color: var(--ink);
  border-color: color-mix(in oklab, var(--ink) 16%, var(--line));
  transform: translateX(3px);
}
.hiw3-preset.on {
  background: color-mix(in oklab, var(--accent) 12%, var(--card));
  border-color: var(--accent);
  color: var(--ink);
}
/* search glyph — clearly says "this is a query you run" */
.hiw3-preset-ico {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-3);
  flex-shrink: 0;
  transition: background .22s ease, color .22s ease, border-color .22s ease;
}
.hiw3-preset:hover .hiw3-preset-ico { color: var(--ink-2); }
.hiw3-preset.on .hiw3-preset-ico {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.hiw3-preset-txt {
  flex: 1;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
/* radio indicator on the right — reinforces "pick one" */
.hiw3-preset-radio {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-3);
  flex-shrink: 0;
  position: relative;
  transition: border-color .22s ease;
}
.hiw3-preset:hover .hiw3-preset-radio { border-color: var(--ink-2); }
.hiw3-preset.on .hiw3-preset-radio { border-color: var(--accent); }
.hiw3-preset.on .hiw3-preset-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}

/* ─── Compact tap-to-switch prompt control (replaces the 3-row list) ──── */
.hiw3-ps-dots { display: inline-flex; gap: 5px; margin-left: auto; align-items: center; }
.hiw3-ps-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: color-mix(in oklab, var(--ink) 22%, transparent);
  transition: background .25s ease, transform .25s ease;
}
.hiw3-ps-dot.on { background: var(--accent); transform: scale(1.3); }
.hiw3-prompt-pill {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  background: color-mix(in oklab, var(--accent) 10%, var(--card));
  border: 1px solid var(--accent);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  font-family: var(--f-display);
  font-size: 13.5px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: background .2s ease, transform .12s ease;
}
.hiw3-prompt-pill:hover { background: color-mix(in oklab, var(--accent) 16%, var(--card)); }
.hiw3-prompt-pill:active { transform: scale(0.99); }
.hiw3-prompt-pill .hiw3-preset-ico {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.hiw3-prompt-pill .hiw3-preset-txt { flex: 1; min-width: 0; }
.hiw3-ps-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-left: 11px;
  border-left: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  color: var(--ink-2);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hiw3-ps-switch svg { transition: transform .35s cubic-bezier(.32,.72,0,1); }
.hiw3-prompt-pill:hover .hiw3-ps-switch svg { transform: rotate(-90deg); }
@media (max-width: 600px) {
  .hiw3-ps-switch-txt { display: none; } /* keep just the ↻ icon on phones */
  .hiw3-ps-switch { padding-left: 9px; }
}

/* ─── Engine picker — a segmented tab strip ──────────────────────────── */

.hiw3-eng {
  font-family: inherit;
  text-align: left;
}
.hiw3-eng:hover .hiw3-eng-name { color: var(--ink); }
/* selected tab — raised card on the inset track + accent underline */
.hiw3-eng.sel {
  background: var(--card);
  border-color: color-mix(in oklab, var(--accent) 45%, var(--line));
  box-shadow: 0 5px 12px -8px rgba(20, 20, 20, .3);
  color: var(--ink);
}
.hiw3-eng.sel::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.hiw3-eng:not(.sel):hover {
  background: color-mix(in oklab, var(--card) 65%, transparent);
}
.hiw3-eng-orb {
  width: 18px; height: 18px;
}

@media (max-width: 880px) {
  .hiw3-eng-row { grid-template-columns: repeat(2, 1fr); } /* 2×2 so engine names fit in full */
  .hiw3-zone-hint { display: none; }
}

/* Big section label styling */
.reel-label {
  font-family: var(--f-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.reel-label .it {
  font-style: italic;
  font-weight: 700;
}


/* ════════════════════════════════════════════════════════════════════
   v27 — launch additions: scroll-reveal system, form errors,
   honesty tag, micro-interactions
   ════════════════════════════════════════════════════════════════════ */

/* ─── Scroll reveal (elements tagged by Landing's observer) ─────────── */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .7s cubic-bezier(.22, 1, .36, 1),
    transform .7s cubic-bezier(.22, 1, .36, 1);
  will-change: transform, opacity;
}
.rv.in {
  opacity: 1;
  transform: none;
}

/* ─── Free check — inline error state ───────────────────────────────── */
.form-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--coral-ink);
  background: color-mix(in oklab, var(--coral) 30%, var(--card));
  color: var(--coral-ink);
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 500;
  animation: formErrorIn .35s cubic-bezier(.22, 1, .36, 1);
}
.form-error-dot {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--coral-ink);
  color: var(--card);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
@keyframes formErrorIn {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* ─── How-it-works honesty tag (sample responses) ───────────────────── */
.hiw3-resp-bar .hiw3-resp-tag.hiw3-resp-tag-demo {
  background: transparent;
  border: 1px dashed var(--ink-3);
  color: var(--ink-3);
  cursor: help;
}

/* ─── Micro-interactions ────────────────────────────────────────────── */
.btn-pill { transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s ease; }
.btn-pill:hover { box-shadow: 0 10px 24px -12px color-mix(in oklab, var(--ink) 45%, transparent); }
.btn-pill:active { transform: translateY(0) scale(.97); box-shadow: none; }
.btn-pill:disabled { opacity: .55; transform: none; box-shadow: none; cursor: not-allowed; }

.pricing-card {
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease, border-color .3s ease;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -28px color-mix(in oklab, var(--ink) 35%, transparent);
  border-color: var(--ink-3);
}

.report-preview-container { transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.report-preview-container:hover { transform: translateY(-4px) rotate(-0.4deg); }

.footer-list a { transition: opacity .18s ease, transform .18s ease; display: inline-block; }
.footer-list a:hover { opacity: .65; transform: translateX(2px); }

/* ─── Reduced motion: reveal + micro-interactions become inert ──────── */
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .btn-pill, .pricing-card, .report-preview-container { transition: none; }
  .form-error { animation: none; }
}

/* ════════════════════════════════════════════════════════════════════
   v28 — mobile polish + free-check benefits + section offsets
   ════════════════════════════════════════════════════════════════════ */

/* Anchored sections clear the sticky topbar */
section[id], .section[id] { scroll-margin-top: 92px; }

/* ─── Free check: FREE badge + benefits checklist ────────────────────── */
.free-benefits { margin-top: 24px; }
.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mint);
  color: var(--mint-ink);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.free-badge::before { content: "✓"; font-weight: 800; }
.free-benefit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.free-benefit-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-2);
  font-weight: 500;
}
.free-benefit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--mint-ink);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* (old .shift-beat / .shift-stats-card styles removed — superseded by
   the kinetic Problem room above) */

/* ─── Hero mobile: breathing room, readable picker ───────────────────── */
/* ─── Mobile menu (burger + slide-in panel) ─────────────────────────── */
.topbar-burger {
  display: none; /* desktop: inline nav handles everything */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--card) 92%, transparent);
  cursor: pointer;
  pointer-events: auto;
}
.topbar-burger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
}
.topbar-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar-burger.open span:nth-child(2) { opacity: 0; }
.topbar-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.open { visibility: visible; pointer-events: auto; }
.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--bg) 50%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .35s ease;
}
.mobile-menu.open .mobile-menu-backdrop { opacity: 1; }
.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(82vw, 360px);
  background: var(--card);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 96px 28px 32px;
  box-sizing: border-box;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-link {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: color .15s ease, padding-left .2s ease;
}
.mobile-menu-link:hover, .mobile-menu-link.active { color: var(--accent, var(--ink)); padding-left: 6px; }
.mobile-menu-link.active { color: var(--ink); opacity: .55; }
.mobile-menu-cta {
  margin-top: 24px;
  width: 100%;
  justify-content: center;
  height: 52px !important;
}
.mobile-menu-cta .cta-short { display: none; }
@media (max-width: 480px) {
  .mobile-menu-cta .cta-full { display: none; }
  .mobile-menu-cta .cta-short { display: inline; }
}
.mobile-menu-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
}
.mobile-menu-langs { display: inline-flex; gap: 6px; }
.mobile-menu-lang {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: all .15s ease;
}
.mobile-menu-lang.active { color: var(--ink); background: var(--bg-2); border-color: transparent; }
.mobile-menu-theme {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
@media (max-width: 900px) {
  .topbar-burger { display: flex; }
}
/* the bar CTA carries a full + short label; show the short one on narrow
   phones so it doesn't crowd the logo + burger */
.btn-pill-bar .cta-short { display: none; }
@media (max-width: 400px) {
  .btn-pill-bar .cta-full { display: none; }
  .btn-pill-bar .cta-short { display: inline; }
}

@media (max-width: 768px) {
  /* Mobile topbar adjustments */
  .topbar-wrapper .lang-dropdown-container,
  .topbar-wrapper .theme-toggle {
    display: none !important;
  }
  .topbar-inner {
    padding: 12px 16px !important;
    gap: 12px !important;
  }
  .topbar-actions {
    gap: 8px !important;
  }
  .brand {
    font-size: 22px !important;
  }
  .topbar-wrapper .btn-pill {
    height: 36px !important;
    padding: 0 4px 0 16px !important;
    font-size: 13px !important;
    gap: 6px !important;
  }
  .topbar-wrapper .btn-pill .arr {
    width: 28px !important;
    height: 28px !important;
  }

  .hero.mobile-hero {
    height: auto !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 !important;
    position: relative;
  }
  .hero.mobile-hero .hero-sticky {
    position: relative !important;
    height: auto !important;
    transform: none !important;
    opacity: 1 !important;
    display: block;
    width: 100%;
    overflow: visible !important;
  }
  .hero.mobile-hero .hero-stage {
    height: auto !important;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 110px 20px 80px !important;
    box-sizing: border-box;
  }
  .hero.mobile-hero .hero-head-scroll {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 var(--pad) !important;
    z-index: 3;
  }
  .hero.mobile-hero .eyebrow {
    position: relative !important;
    bottom: auto !important;
    margin: 0 auto 16px !important;
  }
  .hero.mobile-hero .hero-headlines {
    margin-bottom: 16px !important; /* Tightened margin between title and content */
  }
  .hero.mobile-hero .hero-screen-2-details {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    opacity: 1 !important;
    transform: none !important;
    display: flex !important;
  }
  .hero.mobile-hero .hero-scroll-hint {
    display: none !important;
  }
  .hero.mobile-hero .ch {
    position: absolute !important;
    width: 55px !important;
    height: 55px !important;
  }
}
@media (max-width: 640px) {
  .hero-title { font-size: clamp(36px, 10.5vw, 52px); line-height: 1.0; }
  .hero-screen-2-details { gap: 16px; }
  .hero-screen-2-details .sub { font-size: 15.5px; line-height: 1.5; padding: 0 6px; }
  .category-picker-container {
    background: color-mix(in oklab, var(--bg) 72%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 14px 12px 16px;
  }
  .category-picker-label { font-size: 11px; letter-spacing: 0.14em; }
  .ch { opacity: 0.95; }
  .hero-scroll-hint { bottom: 90px !important; }
}

/* ─── How It Works mobile: close the dead gap, keep card in view ─────── */
@media (max-width: 880px) {
  .hiw3 { height: 290vh; margin-top: 0; }
  /* justify-content was inherited as `center`, so the taller-than-viewport
     stack was vertically centred and the "How it works." headline overflowed
     above the clip. Top-align it so the headline is always in view. */
  .hiw3-sticky { align-items: flex-start; justify-content: flex-start; padding-top: 48px; }
  .hiw3-grid { gap: 14px; min-height: 0; }
  .hiw3-center { padding: 12px; gap: 10px; }
  .hiw3-resp-text { font-size: 13.5px; }
  .hiw3-resp-body { max-height: 34vh; overflow: hidden; }
  /* the left text block was overflowing the 100vh card and clipping the
     "How it works." headline — shrink it so the full strip fits in view */
  .hiw3-wrap { gap: 16px; }
  .hiw3-left { justify-content: flex-start; padding-bottom: 0; }
  /* On desktop the chapter text blocks are absolutely stacked (inset:0) inside
     a fixed-height wrap so they can cross-fade. On a phone that fixed height
     can't fit the longest body (esp. FR / EN step 2), so the overflow bled
     over the stage console below it. Let only the active block flow in normal
     height so the wrap sizes to its content — no overlap, any language. */
  .hiw3-textwrap { min-height: 0; }
  .hiw3-textblock { position: relative; inset: auto; opacity: 1; transform: none; pointer-events: auto; justify-content: flex-start; }
  .hiw3-textblock:not(.on) { display: none; }
  .hiw3-step-number { display: none; }
  .hiw3-txt-kicker { font-size: 14px; margin-bottom: 4px; }
  .hiw3-txt-title { font-size: clamp(22px, 6vw, 28px); margin-bottom: 8px; }
  .hiw3-txt-body { font-size: 13.5px; line-height: 1.5; }
}
@media (max-width: 880px) {
  .reel-label { font-size: clamp(28px, 7.5vw, 40px); }
}

/* ─── Scanner Progress Bar & Business Outcome Translator ────────────── */
.scanner-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}
.scanner-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-2);
  border-radius: 99px;
  overflow: visible;
  margin-top: 20px;
  position: relative;
}
.scanner-progress-fill {
  height: 100%;
  background: var(--mint);
  transition: width 0.3s ease-out;
  border-radius: 99px;
}
.scanner-progress-glow {
  position: absolute;
  top: 50%;
  width: 32px;
  height: 32px;
  background: radial-gradient(circle, rgba(156, 229, 163, 0.8) 0%, rgba(156, 229, 163, 0) 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: screen;
  transition: left 0.3s ease-out;
}
.scanner-percentage {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 28px;
  margin-top: 10px;
  color: var(--ink);
}

/* Cinematic Terminal Box */
.scanner-terminal {
  width: 100%;
  height: 150px;
  background: #090b0d;
  border: 1px solid #1c1f24;
  border-radius: 12px;
  margin-top: 18px;
  padding: 12px 16px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", monospace;
  font-size: 11px;
  color: #8c8f96;
  text-align: left;
  position: relative;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Custom Scrollbar for Terminal */
.scanner-terminal::-webkit-scrollbar {
  width: 4px;
}
.scanner-terminal::-webkit-scrollbar-track {
  background: transparent;
}
.scanner-terminal::-webkit-scrollbar-thumb {
  background: #1c1f24;
  border-radius: 2px;
}

.scanner-terminal-line {
  line-height: 1.6;
  margin-bottom: 4px;
  opacity: 0;
  transform: translateY(4px);
  animation: termLineFadeIn 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.scanner-terminal-line.system {
  color: #7d818a;
  font-weight: 600;
}

.scanner-terminal-line.info {
  color: #a3a6ad;
}

.scanner-terminal-line.success {
  color: var(--mint);
}

.scanner-terminal-line.accent {
  color: var(--coral);
}

.scanner-term-prompt {
  color: var(--mint);
  margin-right: 6px;
  user-select: none;
}

.scanner-terminal-cursor {
  display: inline-block;
  width: 6px;
  height: 12px;
  background: var(--mint);
  margin-left: 2px;
  animation: termCursorBlink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes termLineFadeIn {
  to {
    opacity: 0.9;
    transform: none;
  }
}

@keyframes termCursorBlink {
  50% { opacity: 0; }
}
.hiw3-translator-box {
  margin-top: 24px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, var(--card));
  border-radius: 0 16px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.hiw3-translator-badge {
  display: inline-block;
  width: fit-content;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 99px;
}
.hiw3-translator-txt {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  margin: 0;
}

/* ═══ HERO v5 — three cinematic concepts (?hero=a|b|c) ═══════════════ */
.hero5 {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 96px 0 56px;
  transition: background-color 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero5-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(26px, 4vh, 44px);
}
.hero5-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.hero5-h {
  display: grid;
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.03em;
  line-height: 1.03;
  font-size: clamp(30px, 4.2vw, 58px);
  max-width: 21ch;
}
.hero5-h-line {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.hero5-h-line.on { opacity: 1; transform: none; pointer-events: auto; }
.hero5-h-line.two { color: var(--mint-ink); }
.hero5-cta { font-size: 17px; }

/* category chips */
.hero5-cats { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.hero5-cats-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero5-cats-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hero5-cat {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 13.5px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}
.hero5-cat:hover { transform: translateY(-1px); }
.hero5-cat.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.hero5-cats.dark .hero5-cats-label { color: rgba(255, 255, 255, 0.45); }
.hero5-cats.dark .hero5-cat {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f6f2ff;
}
.hero5-cats.dark .hero5-cat.on { background: #f6f2ff; color: #131316; border-color: #f6f2ff; }

/* dev switcher */
.hero5-switcher {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 999;
  display: flex;
  gap: 6px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 8px 6px 12px;
  box-shadow: 0 10px 26px -12px rgba(20, 20, 20, 0.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero5-switcher button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-2);
  background: var(--bg-2);
}
.hero5-switcher button.on { background: var(--ink); color: var(--bg); }

/* ── Concept A — The Conversation ── */
.hero5-a.named { background: var(--room-tint); }
.hero5a-stage {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero5a-q {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero5a-q.in { opacity: 1; transform: none; }
.hero5a-q-face { width: 52px; height: 52px; flex-shrink: 0; order: 2; }
.hero5a-bubble {
  border-radius: 20px;
  padding: 14px 18px;
  font-size: 15.5px;
  line-height: 1.45;
}
.hero5a-bubble.q {
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom-right-radius: 6px;
  font-weight: 600;
  box-shadow: 0 12px 26px -18px rgba(20, 20, 20, 0.3);
}
.hero5a-a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero5a-a.in { opacity: 1; transform: none; }
.hero5a-ai-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hero5a-ai-badge .chatgpt-dots { display: flex; gap: 3px; }
.hero5a-ai-badge .dot-bounce {
  width: 5px; height: 5px; border-radius: 50%; background: var(--bg);
  animation: hero5dots 1.2s infinite ease-in-out;
}
.hero5a-ai-badge .dot-bounce:nth-child(2) { animation-delay: 0.15s; }
.hero5a-ai-badge .dot-bounce:nth-child(3) { animation-delay: 0.3s; }
@keyframes hero5dots { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-3px); } }
.hero5a-bubble.a {
  background: var(--bg-2);
  border-bottom-left-radius: 6px;
  flex: 1;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background-color 0.7s ease;
}
.hero5-a.named .hero5a-bubble.a { background: color-mix(in srgb, var(--mint) 26%, var(--card)); }
.hero5a-typing { display: flex; gap: 5px; }
.hero5a-typing i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3);
  animation: hero5dots 1.1s infinite ease-in-out;
}
.hero5a-typing i:nth-child(2) { animation-delay: 0.14s; }
.hero5a-typing i:nth-child(3) { animation-delay: 0.28s; }
.hero5a-answers { display: flex; flex-direction: column; gap: 12px; }
.hero5a-row {
  display: flex;
  gap: 10px;
  align-items: center;
  opacity: 0.22;
  filter: grayscale(1);
  transition: opacity 0.45s ease, filter 0.45s ease;
}
.hero5a-row.lit { opacity: 1; filter: none; }
.hero5a-row-face { width: 30px; height: 30px; flex-shrink: 0; }
.hero5a-skel {
  height: 12px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0.18;
  display: inline-block;
  flex-shrink: 0;
}
.hero5a-skel.thin { height: 8px; opacity: 0.1; }
.hero5a-row.you {
  opacity: 0;
  transform: translateY(8px);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  filter: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero5a-row.you.in { opacity: 1; transform: none; }
.hero5a-you-q {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-3);
}
.hero5a-you-named {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--mint-ink);
  letter-spacing: -0.01em;
}

/* ── Concept B — The Stage ── */
.hero5-b { background: var(--room-ink); color: #f6f2ff; }
/* topbar legibility on the dark stage (top-of-page bar only — the
   minimized pill carries its own card background) */
.minco[data-hero-dark] .topbar-wrapper:not(.minimized) .brand,
.minco[data-hero-dark] .topbar-wrapper:not(.minimized) .theme-toggle,
.minco[data-hero-dark] .topbar-wrapper:not(.minimized) .lang-dropdown-trigger {
  color: #f6f2ff;
  transition: color 0.6s ease;
}
/* burger lines + border legible over the dark hero stage */
.minco[data-hero-dark] .topbar-wrapper:not(.minimized) .topbar-burger {
  border-color: rgba(246, 242, 255, 0.32);
  background: rgba(246, 242, 255, 0.06);
}
.minco[data-hero-dark] .topbar-wrapper:not(.minimized) .topbar-burger span {
  background: #f6f2ff;
  transition: background 0.6s ease, transform .3s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
}
.hero5-b .hero5-h-line.two { color: var(--mint-ink); }
.hero5-b:not(.flood) .hero5-h-line { color: #f6f2ff; }
/* let the stage lighten before the promise line lands — avoids a beat of
   dark-green-on-dark during the flood crossfade */
.hero5-b.flood .hero5-h-line.two { transition-delay: 0.3s; }
.hero5-b.flood .hero5-h-line:not(.two) { transition-duration: 0.25s; }
.hero5-b.flood { background: var(--room-tint); color: var(--ink); }
.hero5b-stage {
  position: relative;
  width: 100%;
  max-width: 920px;
  height: clamp(190px, 30vh, 260px);
}
.hero5b-spot {
  position: absolute;
  top: -56px;
  transform: translateX(-50%);
  width: 320px;
  height: 360px;
  background: radial-gradient(ellipse 50% 55% at 50% 30%, rgba(255, 243, 176, 0.3), transparent 70%);
  transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
  pointer-events: none;
}
.hero5b-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(18px, 5vw, 64px);
  height: 100%;
  padding-bottom: 8px;
}
.hero5b-actor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  filter: grayscale(0.92) brightness(0.6);
  opacity: 0.45;
  transition: filter 0.6s ease, opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero5b-actor.lit { filter: none; opacity: 1; transform: translateY(-10px); }
.hero5b-actor.back { filter: grayscale(0.3); opacity: 0.6; transform: scale(0.92); }
.hero5b-actor.you { filter: none; opacity: 0.8; }
.hero5b-actor.you.front { opacity: 1; transform: scale(1.24) translateY(-12px); }
.hero5b-face { width: clamp(64px, 9vw, 104px); height: clamp(64px, 9vw, 104px); }
.hero5b-actor .hero5a-skel { background: #fff; opacity: 0.3; transition: opacity 0.4s ease; height: 10px; }
.hero5b-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: var(--r-pill);
  padding: 4px 11px;
  white-space: nowrap;
  transition: all 0.5s ease;
}
.hero5b-tag.named {
  background: var(--mint);
  color: var(--mint-ink);
  border-color: transparent;
  font-weight: 800;
}

/* ── Concept C — The Feed ── */
.hero5-c.named { background: var(--room-tint); }
.hero5c-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero5-copy.left { align-items: flex-start; text-align: left; }
.hero5-copy.left .hero5-cats { align-items: flex-start; margin-top: 10px; }
.hero5-copy.left .hero5-cats-row { justify-content: flex-start; }
.hero5c-feedwrap {
  height: 444px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}
.hero5c-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero5c-card {
  height: 76px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  opacity: 0.5;
  transform: scale(0.97);
  transition: opacity 0.45s ease, transform 0.45s ease, background-color 0.5s ease, border-color 0.5s ease;
}
.hero5c-card.focus {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 16px 32px -20px rgba(20, 20, 20, 0.3);
}
.hero5c-card.you.lit {
  background: color-mix(in srgb, var(--mint) 24%, var(--card));
  border-color: var(--mint);
}
.hero5c-eng { width: 34px; height: 34px; flex-shrink: 0; }
.hero5c-card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hero5c-card-k {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero5c-you-line {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--mint-ink);
  white-space: nowrap;
}
.hero5c-notyou {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px dashed var(--line);
  border-radius: var(--r-pill);
  padding: 3px 9px;
  white-space: nowrap;
}
.hero5c-isyou {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint-ink);
  background: var(--mint);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  white-space: nowrap;
}

/* hero responsive */
@media (max-width: 480px) {
  .hero5b-row { gap: 10px; }
  .hero5b-face { width: 54px; height: 54px; }
  .hero5b-tag { font-size: 9px; padding: 3px 8px; }
  .hero5b-actor .hero5a-skel { max-width: 44px; }
}
@media (max-width: 880px) {
  .hero5 { padding-top: 84px; }
  .hero5c-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero5-copy.left { align-items: center; text-align: center; }
  .hero5-copy.left .hero5-cats { align-items: center; }
  .hero5-copy.left .hero5-cats-row { justify-content: center; }
  .hero5c-feedwrap { height: 300px; }
  .hero5b-stage { height: 200px; }
  .hero5a-bubble.a { min-height: 196px; }
  .hero5a-q-face { width: 44px; height: 44px; }
  .hero5-h { font-size: clamp(28px, 7.6vw, 40px); }
}
