/* The home page (ENG-264): a light page in the product's look, with dark stages for the demos.
   Needs look.css and demos.css first. The header and the footer are the ones every site page carries. */

:root {
  --stage: #0b0d12;
  --stage-2: #141821;
  --on-stage: #f4f0eb;
  --on-stage-muted: #a8a096;
  --amber: #f59a3c;
  --amber-ink: #1a1206;
  --line-stage: rgb(255 255 255 / 0.1);
  /* the header row (67 px; 73 px where the menu button shows) and the row of steps that sits under it after the opening */
  --bar-h: 67px;
  --trail-h: 44px;
  --top: calc(var(--bar-h) + var(--trail-h));
  /* Geist with the site's metric-matched fallback, so the swap to Geist does not move the page */
  --font-sans: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (max-width: 860px) { :root { --bar-h: 73px; } }
@font-face { font-family: "Geist Fallback"; src: local("Arial"); ascent-override: 95.94%; descent-override: 28.16%; line-gap-override: 0%; size-adjust: 104.76%; }

html { scroll-behavior: smooth; }
body { overflow-x: clip; }
section[id] { scroll-margin-top: calc(var(--top) + 12px); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }


/* ── Buttons ─────────────────────────────────────────────────────────── */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 12px; font-size: 0.9375rem; font-weight: 600; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer; transition: background-color 150ms var(--ease-out-quart), border-color 150ms, transform 150ms var(--ease-out-quart), box-shadow 150ms;
}
.cta:active { transform: scale(0.98); }
.cta--sm { height: 40px; padding: 0 14px; border-radius: 10px; font-size: 0.875rem; }
.cta--brand { background: var(--amber); color: var(--amber-ink); box-shadow: 0 1px 0 rgb(255 255 255 / 0.35) inset, 0 6px 20px rgb(245 154 60 / 0.28); }
.cta--brand:hover { background: #f7a650; }
.cta--ink { background: var(--ink); color: var(--ink-foreground); }
.cta--ink:hover { background: color-mix(in oklch, var(--ink) 88%, transparent); }
.cta--line { background: transparent; color: inherit; border-color: color-mix(in oklch, currentColor 28%, transparent); }
.cta--line:hover { background: color-mix(in oklch, currentColor 7%, transparent); }
.cta--quiet { height: 40px; padding: 0 14px; border-radius: 10px; border-color: var(--input); background: transparent; color: var(--foreground); font-size: 0.875rem; }
.cta--quiet:hover { background: var(--muted); }
.cta--ghost { background: rgb(255 255 255 / 0.08); color: var(--on-stage); border-color: rgb(255 255 255 / 0.14); }
.cta--ghost:hover { background: rgb(255 255 255 / 0.14); }

/* ── Site header and the four steps ──────────────────────────────────── */
/* The header is the site's (.navbar in site-features, site-pricing and site-about.html, and components/marketing/
   header.tsx): the same 1120 px row, 14/24 px padding, 151x26 lockup, 38 px buttons and collapse points (links and
   Sign in fold into the menu at <= 860 px, the button at <= 640 px), in the site's own colours. Change them together.
   Here it is fixed, clear over the dark opening, and carries the four steps in a row under it once the opening has
   scrolled away. */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 10001; background: #0a0a0a; color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.navbar, .footer { --brand: oklch(0.68 0.17 55); --site-fg: #0a0a0a; --site-muted: #5b6270; --site-line: #e7e8ec; }
.navbar { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--site-fg); background: rgb(255 255 255 / 0.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--site-line); transition: background-color 240ms, color 240ms, border-color 240ms; }
.navbar a, .footer a { text-decoration: none; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: 1120px; margin: 0 auto; }
.brand-logo { display: flex; align-items: center; color: var(--site-fg); border-radius: 8px; }
.brand-logo svg { display: block; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; line-height: 1.5; }
.nav-links .nl { color: #4b5563; border-radius: 4px; transition: color 150ms ease; }
.nav-links .nl:hover { color: var(--site-fg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 10px; font-weight: 650; font-size: 15px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: 180ms ease; }
.btn-brand { background: var(--brand); color: #2a1c0c; box-shadow: 0 1px 2px rgb(10 10 10 / 0.05), 0 4px 14px rgb(10 10 10 / 0.06); }
.btn-brand:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--site-fg); border-color: var(--site-line); }
.btn-ghost:hover { background: #f6f7f9; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 10px; border: 1px solid var(--site-line); background: #fff; color: var(--site-fg); cursor: pointer; }
.nav-toggle svg { display: block; }
.nav-toggle .ic-close, .nav-toggle[aria-expanded="true"] .ic-menu { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }
@media (max-width: 860px) {
  .nav-links { gap: 10px; }
  .nav-links .nl, .nav-links .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.is-open { position: absolute; top: 100%; left: 0; right: 0; z-index: 2; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 24px 18px; background: #fff; border-bottom: 1px solid var(--site-line); box-shadow: 0 0 0 100vmax rgb(10 10 10 / 0.28), 0 1px 2px rgb(10 10 10 / 0.05), 0 4px 14px rgb(10 10 10 / 0.06); }
  .nav-links.is-open .nl { display: block; padding: 12px 0; font-size: 16px; color: var(--site-fg); border-bottom: 1px solid var(--site-line); }
  .nav-links.is-open .btn-ghost { display: inline-flex; margin-top: 14px; }
  .nav-links.is-open .btn-brand { display: none; }
}
@media (max-width: 640px) {
  .nav-links:not(.is-open) .btn-brand { display: none; }
  .nav-links.is-open .btn-brand { display: inline-flex; margin-top: 10px; }
}
/* Over the dark opening the bar is clear at the very top, then takes the site's dark glass so the page does not show through it. */
.navbar.is-dark { --ring: var(--on-stage); background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.navbar.is-dark.is-scrolled { background: rgb(11 13 18 / 0.72); border-bottom-color: rgb(255 255 255 / 0.08); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.navbar.is-dark #nav-lockup { color: #fff; }
.navbar.is-dark .nav-links:not(.is-open) .nl { color: #aeb4bf; }
.navbar.is-dark .nav-links:not(.is-open) .nl:hover { color: #fff; }
.navbar.is-dark .nav-links:not(.is-open) .btn-ghost, .navbar.is-dark .nav-toggle { background: transparent; border-color: rgb(255 255 255 / 0.2); color: #fff; }

.trail { position: absolute; left: 0; right: 0; top: 100%; display: flex; align-items: center; justify-content: center; gap: 2px; height: var(--trail-h); color: var(--foreground); background: color-mix(in oklch, var(--background) 94%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 240ms, transform 240ms var(--ease-out-quart), visibility 0s 240ms; }
.navbar.is-trail .trail { opacity: 1; visibility: visible; transform: none; transition: opacity 240ms, transform 240ms var(--ease-out-quart); }
.trail a { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; color: var(--muted-foreground); font-size: 0.8125rem; font-weight: 500; white-space: nowrap; transition: color 200ms, background-color 200ms; }
.trail a:hover { background: var(--muted); color: var(--foreground); }
.trail i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); color: var(--muted-foreground); font-style: normal; font-size: 0.6875rem; font-weight: 650; transition: background-color 200ms, color 200ms; }
.trail a.is-done { color: var(--foreground); }
.trail a.is-done i { background: var(--ink); color: var(--ink-foreground); }
.trail a.is-now { color: var(--foreground); font-weight: 600; }
.trail a.is-now i { background: var(--brand); color: var(--amber-ink); }
@media (max-width: 899px) {
  .trail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0 8px; }
  .trail a { justify-content: center; height: var(--trail-h); padding: 0 4px; border-radius: 0; font-size: 0.75rem; }
  .trail i { display: none; }
  .trail a::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 2px; border-radius: 2px; background: transparent; transition: background-color 200ms; }
  .trail a.is-done::after { background: color-mix(in oklch, var(--foreground) 30%, transparent); }
  .trail a.is-now::after { background: var(--brand); }
}

/* ── Opening ─────────────────────────────────────────────────────────── */
.hero { position: relative; padding: calc(var(--bar-h) + clamp(28px, 6vw, 72px)) 0 clamp(28px, 4vw, 48px); background: radial-gradient(90% 70% at 78% 18%, #1c1a1a 0%, transparent 60%), var(--stage); color: var(--on-stage); overflow: hidden; }
.hero__copy { display: grid; justify-items: center; max-width: 860px; text-align: center; }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
.hero__copy h1 { margin-top: 16px; max-width: 15ch; font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4.125rem); line-height: 1.02; font-weight: 650; letter-spacing: -0.035em; text-wrap: balance; }
.hero__copy h1 .accent { color: var(--amber); }
.hero__ledes { display: grid; max-width: 40em; margin-top: 20px; }
.hero__lede { grid-area: 1 / 1; align-self: center; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.5; color: color-mix(in oklch, var(--on-stage) 74%, transparent); text-wrap: pretty; transition: opacity 280ms; }
.hero[data-mode="human"] [data-for="ai"], .hero[data-mode="ai"] [data-for="human"] { opacity: 0; visibility: hidden; }
.hero__q { margin-top: 24px; font-size: 0.8125rem; font-weight: 600; color: var(--on-stage-muted); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.modes { display: grid; grid-template-columns: 1fr 1fr; margin-top: 8px; padding: 3px; gap: 2px; border-radius: 12px; background: rgb(255 255 255 / 0.08); }
.modes button { height: 40px; min-width: 116px; padding: 0 16px; border: 0; border-radius: 9px; background: none; color: color-mix(in oklch, var(--on-stage) 72%, transparent); font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: background-color 200ms, color 200ms; }
.modes button:hover { color: var(--on-stage); }
.modes button[aria-checked="true"] { background: var(--amber); color: var(--amber-ink); }

/* Evidence rising (d2.js): small report rows lift off the product screen into the dark beside the
   words, or into a band above them on narrow screens. Decoration only: nothing here takes a click,
   is read out, or sits over the text. */
.hero > .wrap { position: relative; z-index: 1; }
.hero.has-band { padding-top: calc(var(--bar-h) + 84px); }
.rise { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.chip { position: absolute; left: 0; top: 0; display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgb(255 255 255 / 0.1); background: linear-gradient(180deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.03)); color: var(--on-stage); text-align: left; opacity: 0; will-change: transform, opacity; }
.chip b { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.chip b .hx-badge { flex: none; font-weight: 500; }
.chip em { font-size: 0.8125rem; line-height: 1.35; color: color-mix(in oklch, var(--on-stage) 78%, transparent); }
.chip[data-depth="1"] { filter: blur(0.6px); }
.chip[data-depth="2"] { filter: blur(1.4px); }
.chip.chip--sm { gap: 2px; padding: 7px 10px; border-radius: 10px; filter: none; }
.chip--sm b { font-size: 0.6875rem; }
.chip--sm em { font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The run: a product window nearly as wide as the page, and the scrub slider under it. */
.run { position: relative; max-width: 1120px; margin: clamp(28px, 4vw, 48px) auto 0; }
/* A faint warm light off the screen's top edge, so the dark above it is not flat. */
.run::before { content: ""; position: absolute; left: -8%; right: -8%; bottom: calc(100% - 40px); height: 260px; z-index: -1; pointer-events: none; background: radial-gradient(50% 100% at 50% 100%, rgb(245 154 60 / 0.16), transparent 72%); }
.run__win { border-radius: 18px; overflow: hidden; background: #0f1117; box-shadow: 0 0 0 1px var(--line-stage), 0 40px 120px rgb(0 0 0 / 0.55), 0 0 140px rgb(245 154 60 / 0.08); }
.run__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: #171a22; border-bottom: 1px solid var(--line-stage); font-size: 0.75rem; color: var(--on-stage-muted); white-space: nowrap; }
.run__dots { display: inline-flex; gap: 6px; }
.run__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / 0.14); }
.run__bar b { font-weight: 600; color: var(--on-stage); }
.run__firm { margin-left: auto; overflow: hidden; text-overflow: ellipsis; }
.run__screen { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
@media (min-width: 640px) { .run__screen { aspect-ratio: 16 / 10; } }
.beat { position: absolute; inset: 0; display: none; }
.run__screen[data-beat="0"] .beat:nth-child(1), .run__screen[data-beat="1"] .beat:nth-child(2), .run__screen[data-beat="2"] .beat:nth-child(3), .run__screen[data-beat="3"] .beat:nth-child(4) { display: block; }
/* A product screen is built at its own width inside .fit__in and scaled from its top left corner to the frame (home.js fit()). */
.fit { position: absolute; inset: 0; }
.fit__in { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.fit--cover .fit__in, .fit--top .fit__in { overflow: hidden; }
.hero[data-mode="human"] .fit[data-for="ai"], .hero[data-mode="ai"] .fit[data-for="human"] { display: none; }
.run__screen .hxd-play { display: none; }
.beat:nth-child(3) { background: var(--stage); }

.scrub { margin-top: 14px; }
.scrub__range { --at: 0%; -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 32px; margin: 0; background: transparent; cursor: grab; }
.scrub__range:active { cursor: grabbing; }
.scrub__range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--amber) var(--at), rgb(255 255 255 / 0.14) var(--at)); }
.scrub__range::-moz-range-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--amber) var(--at), rgb(255 255 255 / 0.14) var(--at)); }
.scrub__range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd9a8, var(--amber) 55%, #d97a1c); box-shadow: 0 0 0 5px rgb(245 154 60 / 0.2), 0 4px 12px rgb(0 0 0 / 0.5); transition: box-shadow 150ms, transform 150ms; }
.scrub__range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd9a8, var(--amber) 55%, #d97a1c); box-shadow: 0 0 0 5px rgb(245 154 60 / 0.2), 0 4px 12px rgb(0 0 0 / 0.5); }
.scrub__range:active::-webkit-slider-thumb { transform: scale(1.12, 0.9); box-shadow: 0 0 0 8px rgb(245 154 60 / 0.22), 0 4px 12px rgb(0 0 0 / 0.5); }
.scrub__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.scrub__steps button { min-height: 40px; padding: 2px 4px; border: 0; background: none; color: var(--on-stage-muted); font-size: 0.8125rem; font-weight: 500; line-height: 1.2; cursor: pointer; transition: color 200ms; }
.scrub__note { margin-top: 6px; text-align: center; font-size: 0.75rem; line-height: 1.4; color: color-mix(in oklch, var(--on-stage-muted) 82%, transparent); }
.scrub__cap { min-height: 2.8em; margin-top: 4px; text-align: center; font-size: 0.875rem; line-height: 1.4; color: var(--on-stage-muted); text-wrap: balance; }
.scrub__steps button.is-done { color: color-mix(in oklch, var(--on-stage) 80%, transparent); }
.scrub__steps button.is-now { color: var(--amber); font-weight: 600; }
@media (max-width: 479px) { .modes { width: 100%; } .scrub__steps button { font-size: 0.75rem; } .run__firm { display: none; } }

/* The demo cursor (d2.js): an arrow on screens with a mouse, a tap ripple on touch and narrow ones. */
.ptr { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M2.5 1.5 18 9.6l-6.6 2.1-2.5 6.6z' fill='%23fff' stroke='%23141414' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E"); position: absolute; z-index: 8; left: 50%; top: 50%; width: 22px; height: 22px; pointer-events: none; opacity: 0; background: var(--arrow) no-repeat; filter: drop-shadow(0 2px 4px rgb(0 0 0 / 0.4)); transition: left 600ms cubic-bezier(0.45, 0, 0.2, 1), top 600ms cubic-bezier(0.45, 0, 0.2, 1), opacity 200ms, transform 120ms; }
.ptr.is-on { opacity: 1; }
.ptr.is-press { transform: scale(0.86); }
.ptr::after, .is-auto > .hxd-ghost::after { content: ""; position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; background: rgb(245 154 60 / 0.3); box-shadow: 0 0 0 1.5px var(--amber); opacity: 0; }
.ptr.is-press::after { animation: tap 240ms ease-out; }
@keyframes tap { from { opacity: 0.9; transform: scale(0.3); } to { opacity: 0; transform: scale(1.5); } }
.host--paste, .mine__card, .yours__card, .chair { position: relative; }
/* The kit's own scripted pointer, drawn the same way while a demo plays itself; where nobody clicks, it is not shown. */
.host--assist > .hxd-ghost, .host--voice > .hxd-ghost { display: none; }
@media (hover: hover) and (min-width: 768px) {
  .is-auto > .hxd-ghost { left: 50%; top: 40%; width: 22px; height: 22px; border-radius: 0; background: var(--arrow) no-repeat; box-shadow: none; filter: drop-shadow(0 2px 4px rgb(0 0 0 / 0.4)); opacity: 1; transform: none; transition: left 380ms cubic-bezier(0.45, 0, 0.2, 1), top 380ms cubic-bezier(0.45, 0, 0.2, 1); }
  .is-auto > .hxd-ghost { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M2.5 1.5 18 9.6l-6.6 2.1-2.5 6.6z' fill='%23fff' stroke='%23141414' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  .is-auto > .hxd-ghost.is-on { transform: none; }
  .is-auto > .hxd-ghost.is-on::after { animation: tap 240ms ease-out 340ms; }
}
@media (hover: none), (max-width: 767px) {
  .ptr { background: none; filter: none; transition: opacity 200ms; }
}

html.js:not(.is-in) .hero__copy > *, html.js:not(.is-in) .run { opacity: 0; transform: translateY(14px); }
.hero__copy > *, .run { transition: opacity 700ms var(--ease-out-quart), transform 900ms var(--ease-out-expo); }
.hero__copy > :nth-child(2) { transition-delay: 60ms; } .hero__copy > :nth-child(3) { transition-delay: 120ms; } .hero__copy > :nth-child(4) { transition-delay: 180ms; }
.run { transition-delay: 200ms; }

/* ── Scenes ──────────────────────────────────────────────────────────── */
.head { display: grid; gap: 18px 56px; padding-block: clamp(64px, 9vw, 128px) clamp(24px, 3vw, 40px); }
.scene--tight .head { padding-top: clamp(56px, 7vw, 96px); }
@media (min-width: 900px) { .head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; } }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-text); }
.kicker b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--amber-ink); font-size: 0.75rem; letter-spacing: 0; }
.head h2 { margin-top: 14px; font-size: clamp(1.75rem, 1.05rem + 2.7vw, 3rem); line-height: 1.06; font-weight: 650; letter-spacing: -0.03em; text-wrap: balance; }
.head__side p { max-width: 36em; font-size: 1.0625rem; line-height: 1.55; color: var(--muted-foreground); text-wrap: pretty; }
.act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.stage { position: relative; width: 100%; margin-inline: auto; padding: 20px 16px 24px; background: radial-gradient(80% 50% at 50% 0%, var(--stage-2), transparent 70%), var(--stage); color: var(--on-stage); }
@media (min-width: 768px) { .stage { width: min(1240px, calc(100% - 48px)); padding: clamp(20px, 2.4vw, 32px); border-radius: 28px; } }
.stage__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 14px; }
.view { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in oklch, currentColor 72%, transparent); }
.view i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.live { min-height: 2.9em; font-size: 0.875rem; line-height: 1.45; color: color-mix(in oklch, currentColor 84%, transparent); text-wrap: pretty; }
.stage__top .live { flex: 1 1 100%; }
@media (min-width: 768px) { .live { min-height: 1.45em; } .stage__top .live { flex: 1 1 20em; text-align: right; } }
/* On a phone the caption stays under the bar while its demo is on screen. */
@media (max-width: 767px) {
  .stage__top { display: contents; }
  .stage__top .view { display: flex; margin-bottom: 4px; }
  .stage .live { position: sticky; top: var(--top); z-index: 6; flex: none; margin: 0 -16px 8px; padding: 8px 16px; background: color-mix(in oklch, var(--stage) 86%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .stage--split > .live { order: -1; margin-bottom: 0; }
}
.stage__fine { margin-top: 16px; max-width: 70ch; font-size: 0.8125rem; line-height: 1.5; color: var(--on-stage-muted); }

/* Room for each demo before it mounts, so nothing below it moves. */
.host--voice { min-height: 515px; }
.host--chat { min-height: 600px; }
.host--assist { min-height: 850px; }
.host--sc { min-height: 860px; }
@media (min-width: 900px) { .host--chat { min-height: 640px; } }
@media (min-width: 960px) { .host--assist { min-height: 624px; } .host--sc { min-height: 470px; } .host--voice { min-height: 620px; } }

/* ── 1 · New job ─────────────────────────────────────────────────
   The product's own New job screens (newjob.js, styled by newjob.css); this is only the frame they sit in. */
.hxa { border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 30px 90px rgb(0 0 0 / 0.5); }
.hxa__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: #171a22; border-bottom: 1px solid var(--line-stage); font-size: 0.75rem; color: var(--on-stage-muted); }
.hxa__dots { display: inline-flex; gap: 6px; }
.hxa__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / 0.14); }
.hxa__bar b { font-weight: 600; color: var(--on-stage); }
.hxa__scroll { height: var(--hxa-h, 640px); overflow: auto; overscroll-behavior: contain; background: var(--background); color: var(--foreground); }
.hxa__scroll:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.hxa-rise { animation: hxa-rise 380ms var(--ease-out-quart) both; }
@keyframes hxa-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hxa-rise { animation: none; } }

/* ── 2 · Invite ──────────────────────────────────────────────────────── */
.stage--split { display: grid; gap: 20px; }
.stage--split .view { margin-bottom: 12px; }
.stage--split > .live { min-height: 2.9em; }
@media (max-width: 899px) {
  .stage--split { gap: 12px; }
  .stage--split .view { margin-bottom: 8px; }
  .mine__card { padding: 0; background: none; box-shadow: none; }
  .mine .mine__job { display: none; }
  .host--chat { min-height: 0; }
  .host--chat .hxd-chat__card { height: clamp(400px, calc(100svh - 372px), 600px); }
}
.mine__card { display: grid; gap: 14px; padding: 16px; border-radius: 14px; background: var(--background); color: var(--foreground); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 24px 70px rgb(0 0 0 / 0.45); }
.mine__job { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mine__copy { height: 32px; }
.mine__copy svg:nth-of-type(2), .mine__copy.is-copied svg:nth-of-type(1) { display: none; }
.mine__copy.is-copied svg:nth-of-type(2) { display: block; color: #16a34a; }
.mine__job > div { min-width: 0; }
.mine__job b { display: block; font-size: 0.875rem; font-weight: 500; }
.mine__job div span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; color: var(--muted-foreground); }
.mine__row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.mine__av { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--muted); color: color-mix(in oklch, var(--foreground) 80%, transparent); font-size: 0.75rem; font-weight: 600; }
.mine__who { flex: 1; min-width: 0; }
.mine__row .hx-badge { flex: none; max-width: 50%; height: auto; min-height: 22px; padding-block: 2px; line-height: 1.35; white-space: normal; }
.mine__who b { display: block; font-size: 0.875rem; font-weight: 600; }
.mine__who span { display: block; font-size: 0.8125rem; color: var(--muted-foreground); }
.mine__steps { display: none; list-style: none; margin: 0; padding: 0 4px; gap: 10px; }
.mine__steps li { position: relative; padding-left: 28px; font-size: 0.8438rem; color: var(--muted-foreground); transition: color 200ms; }
.mine__steps li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px dashed var(--input); transition: background-color 200ms, border-color 200ms; }
.mine__steps li:not(:last-child)::after { content: ""; position: absolute; left: 7.5px; top: 22px; width: 1px; height: 8px; background: var(--border); }
.mine__steps li.is-now { color: var(--foreground); font-weight: 600; }
.mine__steps li.is-now::before { border: 0; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-muted); }
.mine__steps li.is-done { color: var(--foreground); }
.mine__steps li.is-done::before { border: 0; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
@media (min-width: 900px) {
  .stage--split { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(24px, 4vw, 64px); align-items: center; padding-inline: clamp(24px, 5vw, 72px); }
  .mine { max-width: 420px; justify-self: end; width: 100%; }
  .mine__steps { display: grid; }
  .stage--split > .live { grid-column: 1 / -1; min-height: 1.45em; text-align: center; }
}

/* ── 3 · Steer the answer ────────────────────────────────────────────── */
.steer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.steer__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.sound { display: inline-flex; align-items: center; gap: 8px; height: 40px; margin-left: auto; padding: 0 12px; border: 1px solid rgb(255 255 255 / 0.16); border-radius: 99px; background: transparent; color: var(--on-stage-muted); font-size: 0.8125rem; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color 150ms, color 150ms, border-color 150ms; }
.sound:hover { background: rgb(255 255 255 / 0.07); }
.sound[aria-pressed="true"] { border-color: rgb(245 154 60 / 0.5); color: var(--amber); }
.sound[aria-pressed="true"] .sound__off, .sound[aria-pressed="false"] .sound__on { display: none; }
.nexthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-top: 4px; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; }
.roles button { height: 44px; padding: 0 16px; border: 1px solid rgb(255 255 255 / 0.16); border-radius: 99px; background: transparent; color: inherit; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: background-color 150ms, color 150ms, border-color 150ms; }
.roles button:hover { background: rgb(255 255 255 / 0.07); }
.roles button[aria-checked="true"] { border-color: transparent; background: var(--on-stage); color: var(--stage); font-weight: 600; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: rgb(255 255 255 / 0.08); }
.seg button { height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: color-mix(in oklch, var(--on-stage) 70%, transparent); font-size: 0.8438rem; font-weight: 600; cursor: pointer; transition: background-color 150ms, color 150ms; }
.seg button[aria-checked="true"] { background: var(--amber); color: var(--amber-ink); }

.steer__grid { display: grid; gap: 20px; }
.steer__left { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; align-items: start; }
@media (min-width: 640px) { .steer__left { grid-template-columns: 300px minmax(0, 1fr); gap: 20px; } }
@media (min-width: 1000px) {
  .steer__grid { grid-template-columns: 372px minmax(0, 1fr); gap: 40px; }
  .steer__left { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
.padwrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; }
.axis { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-stage-muted); }
.axis em { font-style: normal; }
.axis--y { writing-mode: vertical-rl; transform: rotate(180deg); flex-direction: row-reverse; }
.axis--x { grid-column: 2; }
.pad { --spring: cubic-bezier(0.34, 1.45, 0.64, 1); position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
  background: radial-gradient(120% 120% at 100% 0%, rgb(245 154 60 / 0.2), transparent 60%), #12151c;
  box-shadow: 0 0 0 1px var(--line-stage) inset; }
.pad.is-drag { cursor: grabbing; }
.pad__cells { position: absolute; inset: 0; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); }
.pad__cells button { position: relative; display: grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0; border: 0 solid rgb(255 255 255 / 0.07); border-width: 0 1px 1px 0; border-radius: 0; background: none; cursor: inherit; }
.pad__cells button:nth-child(3n) { border-right-width: 0; }
.pad__cells button:nth-child(n + 7) { border-bottom-width: 0; }
.pad__cells button i { width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / 0.3); transition: opacity 200ms; }
.pad__cells button[aria-checked="true"] i { opacity: 0; }
.pad__cells button:focus-visible { outline: 3px solid color-mix(in oklch, var(--on-stage) 60%, transparent); outline-offset: -7px; border-color: rgb(255 255 255 / 0.07); }
/* Entering a cell: it lights, and a ring runs out from its centre. */
.pad__cells button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1.5px solid var(--amber); opacity: 0; pointer-events: none; }
.pad__cells button.is-hit { animation: cell 560ms var(--ease-out-quart); }
.pad__cells button.is-hit::after { animation: ring 560ms var(--ease-out-quart); }
@keyframes cell { from { background: rgb(245 154 60 / 0.16); } to { background: rgb(245 154 60 / 0); } }
@keyframes ring { from { opacity: 0.7; transform: scale(0.7); } to { opacity: 0; transform: scale(2.7); } }
.pad__dot { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 35% 30%, #ffd9a8, var(--amber) 55%, #d97a1c); box-shadow: 0 0 0 7px rgb(245 154 60 / 0.18), 0 0 54px 18px rgb(245 154 60 / 0.3); transition: left 420ms var(--spring), top 420ms var(--spring), transform 180ms var(--spring), box-shadow 180ms; }
/* Held, the thumb flattens under the finger; let go, it springs to the centre of its cell. */
.pad.is-drag .pad__dot { transition: transform 180ms var(--spring), box-shadow 180ms; transform: scale(1.14, 0.88); box-shadow: 0 0 0 11px rgb(245 154 60 / 0.2), 0 0 64px 22px rgb(245 154 60 / 0.36); }
.pad.is-drift .pad__dot { transition: left 900ms ease-in-out, top 900ms ease-in-out; }
.pad__dot.is-bump { animation: bump 260ms var(--ease-out-quart); }
@keyframes bump { 35% { translate: var(--bx, 0) var(--by, 0); } }
.pad__dot em { position: absolute; left: 50%; top: calc(100% + 12px); translate: -50% 0; padding: 2px 8px; border-radius: 99px; background: rgb(0 0 0 / 0.5); color: var(--on-stage); font-family: var(--font-mono); font-size: 0.625rem; font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; transition: opacity 300ms; }
.steer.is-touched .pad__dot em { opacity: 0; }

.meter { padding: 14px; border-radius: 14px; background: rgb(255 255 255 / 0.04); box-shadow: 0 0 0 1px var(--line-stage) inset; }
.meter__h { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-stage-muted); }
.meter__rows { list-style: none; margin: 10px 0 12px; padding: 0; display: grid; gap: 10px; }
.meter__rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; }
.meter__name { font-size: 0.8438rem; line-height: 1.3; font-weight: 500; }
.meter__pips { display: inline-flex; gap: 3px; }
.meter__pips i { width: 12px; height: 6px; border-radius: 3px; background: rgb(255 255 255 / 0.14); transition: background-color 300ms; }
.meter__rows li.is-pop .meter__pips { animation: pop 420ms cubic-bezier(0.34, 1.45, 0.64, 1); }
@keyframes pop { 30% { transform: scale(1.35); } }
.meter__rows li[data-ev="1"] .meter__pips i:first-child { background: color-mix(in oklch, var(--amber) 60%, transparent); }
.meter__rows li[data-ev="2"] .meter__pips i { background: var(--amber); }
.meter__tag { grid-column: 1 / -1; font-size: 0.75rem; color: var(--on-stage-muted); }
.meter__rows li[data-ev="2"] .meter__tag { color: var(--ok); }
.meter__rows li.is-probe .meter__tag::after { content: " · asked about next"; color: var(--amber); }
.meter__bar { height: 6px; border-radius: 99px; background: rgb(255 255 255 / 0.1); overflow: hidden; }
.meter__bar i { display: block; width: 0; height: 100%; border-radius: 99px; background: linear-gradient(to right, #d97a1c, var(--amber)); transition: width 620ms cubic-bezier(0.3, 1.6, 0.5, 1); }
.meter__sum { margin-top: 8px; font-size: 0.75rem; color: var(--on-stage-muted); }

.steer__talk { display: grid; gap: 14px; align-content: start; min-width: 0; }
.turn { display: grid; gap: 6px; }
.turn__who { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-stage-muted); }
.turn__who b { font-weight: 500; color: var(--amber); }
.turn--q p { font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem); line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
.turn--a p { padding: 14px 16px; border-radius: 14px; background: rgb(255 255 255 / 0.04); box-shadow: 0 0 0 1px var(--line-stage) inset; font-size: clamp(0.9375rem, 0.9rem + 0.3vw, 1.125rem); line-height: 1.6; color: color-mix(in oklch, var(--on-stage) 82%, transparent); }
mark.ev { padding: 0 1px; border-radius: 2px; background: linear-gradient(transparent 58%, rgb(245 154 60 / 0.5) 0); color: #fff; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.swap { transition: opacity 130ms; }
.swap.is-out { opacity: 0; }
.swap.is-wait { opacity: 0.3; }
.next[data-mode="human"] .next__q.is-in, .next__read.is-in { animation: rise 360ms var(--ease-out-quart); }
.next { padding: 16px; border-radius: 16px; border: 1px solid var(--ai-border); background: radial-gradient(120% 100% at 100% 0%, var(--ai-tint), transparent 60%), rgb(255 255 255 / 0.03); }
.next[data-mode="ai"] .next__human, .next[data-mode="human"] .next__ai { display: none; }
.next[data-mode="human"] { background: radial-gradient(120% 100% at 100% 0%, var(--ai-tint), transparent 60%), var(--card); }
.next__head { display: flex; align-items: center; gap: 10px; }
.next__chip { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.01em; color: var(--brand-text); }
.next__spark { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgb(245 154 60 / 0.2); }
.next__read { margin-top: 10px; font-size: 0.8125rem; color: var(--on-stage-muted); }
.next__q { margin-top: 4px; font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem); line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.next__src { margin-top: 10px; font-size: 0.75rem; color: var(--on-stage-muted); }
/* Human-led: Interview Assist's own card, where the read is the orange line and the question sits at 550. */
.next__human .next__read { font-weight: 500; color: var(--brand-text); }
.next__human .next__q { font-weight: 550; letter-spacing: 0; }
.pick { color: var(--amber); }
.pick .w { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.next[data-mode="ai"] .next__q .w { animation: word 280ms both; animation-delay: calc(var(--i) * 45ms); }
@keyframes word { from { opacity: 0; } }
.miniwave { display: inline-flex; align-items: center; gap: 2px; height: 20px; }
.miniwave i { width: 3px; height: 100%; border-radius: 2px; background: linear-gradient(to top, #c96a16, #ffc27a); transform: scaleY(0.25); transition: transform 300ms; }
.miniwave.is-speaking i { animation: eq 520ms ease-in-out infinite alternate; }
.miniwave.is-speaking i:nth-child(2n) { animation-delay: -260ms; } .miniwave.is-speaking i:nth-child(3n) { animation-delay: -120ms; } .miniwave.is-speaking i:nth-child(5) { animation-delay: -390ms; }
/* On a phone the pad, the answer and the next question share one screen. */
@media (max-width: 639px) {
  .stage--steer { padding-top: 14px; }
  .steer { gap: 10px; }
  .steer__top .turn__who { display: none; }
  .steer__top { flex-wrap: nowrap; gap: 8px; }
  .roles { flex: 1; min-width: 0; gap: 5px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .sound { flex: none; width: 40px; padding: 0; justify-content: center; }
  .sound span { display: none; }
  .roles::-webkit-scrollbar { display: none; }
  .roles button { flex: none; height: 40px; padding: 0 9px; font-size: 0.7813rem; white-space: nowrap; }
  .steer__grid { gap: 10px; }
  .steer__left { grid-template-columns: 172px minmax(0, 1fr); gap: 10px; }
  .meter { padding: 10px; }
  .meter__rows { margin: 8px 0 10px; gap: 8px; }
  .meter__name { font-size: 0.75rem; }
  .meter__tag { display: none; }
  .meter__rows li.is-probe .meter__name { color: var(--amber); }
  .meter__sum { font-size: 0.6875rem; }
  .steer__talk { gap: 8px; }
  .turn--q .turn__who { display: none; }
  .turn--q p { font-size: 1rem; }
  .turn--a p { padding: 10px 12px; font-size: 0.8438rem; line-height: 1.5; }
  .nexthead .turn__who { flex: 1 1 8em; }
  .next { padding: 12px; }
  .next__read { margin-top: 6px; font-size: 0.75rem; }
  .next__q { font-size: 0.9688rem; line-height: 1.35; }
  .next__src { margin-top: 6px; }
}
.steer__note { max-width: 78ch; font-size: 0.8125rem; line-height: 1.5; color: var(--on-stage-muted); }

/* ── 4 · The report: the lights come up ──────────────────────────────── */
.scene--report { --dark: 0; margin-top: clamp(64px, 9vw, 128px); background: color-mix(in oklab, var(--stage) calc(var(--dark) * 100%), var(--background)); color: color-mix(in oklab, var(--on-stage) calc(var(--dark) * 100%), var(--foreground)); }
.scene--report .head { padding-top: clamp(56px, 8vw, 104px); }
.scene--report .head__side p { color: inherit; opacity: 0.74; }
.scene--report:not(.is-lit) .kicker { color: var(--amber); }
.desk { display: grid; gap: 28px 32px; padding-bottom: clamp(64px, 9vw, 120px); }
@media (min-width: 1024px) { .desk { grid-template-columns: 360px minmax(0, 1fr); align-items: start; } .yours { position: sticky; top: calc(var(--top) + 20px); } }
.view--ink { margin-bottom: 12px; color: inherit; opacity: 0.74; }
.yours__card { display: grid; gap: 16px; padding: 18px; border-radius: 16px; background: var(--card); color: var(--foreground); box-shadow: 0 0 0 1px var(--border), var(--shadow-pop); }
.yours__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; }
.yours__head b { display: block; font-size: 1rem; font-weight: 600; }
.yours__head span:not(.hx-badge) { font-size: 0.8125rem; color: var(--muted-foreground); }
.yours__musts { display: flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 500; }
.yours__label { display: block; margin: 0 0 8px; font-size: 0.8125rem; font-weight: 600; }
.yours__label span { font-weight: 400; color: var(--muted-foreground); }
.yours__fine { margin-top: 6px; min-height: 1.5em; font-size: 0.75rem; line-height: 1.5; color: var(--muted-foreground); }
.decide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
/* The report's three decision buttons, soft; the one recorded reads as the app's decision chip: a dot and a tint. */
.decide button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 44px; padding: 0 4px; border: 1px solid transparent; border-radius: var(--radius-lg); background: var(--secondary); color: var(--secondary-foreground); font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: background-color 150ms, color 150ms, border-color 150ms; }
.decide button svg { width: 16px; height: 16px; flex: none; }
.decide button:hover { background: color-mix(in oklch, var(--secondary) 80%, transparent); }
.decide button[aria-checked="true"] { --tone: var(--ok); --tint: var(--ok-muted); border-color: var(--tone); background: var(--tint); color: var(--tone); }
.decide button:nth-child(2)[aria-checked="true"] { --tone: var(--warn); --tint: var(--warn-muted); }
.decide button:nth-child(3)[aria-checked="true"] { --tone: var(--risk); --tint: var(--risk-muted); }
.decide button[aria-checked="true"] svg { display: none; }
.decide button[aria-checked="true"]::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.yours__share { width: 100%; height: 44px; font-size: 0.9375rem; }
.yours__card textarea { min-height: 7.6em; font-size: 0.8438rem; line-height: 1.5; background: var(--card); }
.yours__status { display: flex; align-items: flex-start; gap: 8px; min-height: 3.9em; padding: 10px; border-radius: 10px; background: var(--muted); font-size: 0.8125rem; line-height: 1.45; color: var(--muted-foreground); scroll-margin: 96px 0 24px; }
.yours__status .hx-badge { flex: none; }
.yours__status.is-ping { animation: ping 1400ms var(--ease-out-quart); }
@keyframes ping { from { background: var(--brand-muted); box-shadow: 0 0 0 4px color-mix(in oklch, var(--brand) 45%, transparent); } to { box-shadow: 0 0 0 0 transparent; } }
.frame { border-radius: 16px; overflow: hidden; background: var(--background); color: var(--foreground); box-shadow: 0 0 0 1px var(--border), 0 30px 90px rgb(0 0 0 / 0.14); }
.frame__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: var(--frame); border-bottom: 1px solid var(--frame-border); font-size: 0.75rem; color: var(--frame-muted-foreground); }
.frame__bar span { display: inline-flex; gap: 6px; }
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in oklch, var(--foreground) 14%, transparent); }
.frame__bar b { font-weight: 500; }
.frame__body { height: min(760px, 68svh); overflow-y: auto; }
@media (min-width: 1024px) { .frame__body { height: min(760px, 76svh); } }
.frame__body:focus-visible { outline-offset: -3px; }
.frame .hxd-report { border-radius: 0; box-shadow: none; }
.live--ink { margin-top: 12px; color: inherit; opacity: 0.8; }

/* ── 4 · Your client's chair ─────────────────────────────────────────── */
.scene--chair { padding-bottom: clamp(64px, 9vw, 120px); }
.scene--chair .head { padding-top: 0; }
/* The email and the report share one box of a fixed height, so opening the link moves nothing. */
.chair { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; height: calc(min(680px, 66svh) + 48px); }
.mail { display: grid; gap: 14px; justify-items: start; width: min(520px, 100%); margin-inline: auto; padding: 20px; border-radius: 16px; background: var(--card); color: var(--foreground); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 30px 90px rgb(0 0 0 / 0.5); }
.mail[hidden], .frame--chair[hidden] { display: none; }
.mail__head { display: flex; align-items: center; gap: 10px; width: 100%; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.mail__av { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--ink-foreground); font-size: 0.875rem; font-weight: 600; }
.mail__who { min-width: 0; }
.mail__who b { display: block; font-size: 0.875rem; font-weight: 600; }
.mail__who span { display: block; font-size: 0.75rem; color: var(--muted-foreground); }
.mail__subject { font-size: 1.0625rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.mail__body { font-size: 0.9375rem; line-height: 1.55; color: var(--muted-foreground); text-wrap: pretty; }
.mail__fine { font-size: 0.75rem; color: var(--muted-foreground); }
/* The email's button takes the firm's colour, as the client report email does. */
.mail__open { border-radius: 8px; background: oklch(0.45 0.08 230); color: #fff; }
/* On a 320px phone with wide fonts the label wraps rather than pushing the email past the screen. */
.mail__open { max-width: 100%; height: auto; min-height: 48px; padding-block: 12px; white-space: normal; text-align: center; line-height: 1.25; }
.mail__open:hover { background: oklch(0.4 0.08 230); }
.frame--chair { align-self: stretch; display: grid; grid-template-rows: auto minmax(0, 1fr); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 30px 90px rgb(0 0 0 / 0.5); animation: rise 380ms var(--ease-out-quart); }
.frame--chair .frame__bar { height: 48px; white-space: nowrap; }
@media (max-width: 479px) { .frame--chair .frame__bar span { display: none; } }
.frame--chair .frame__body { height: auto; }
.frame__back { margin-left: auto; height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: inherit; font-size: 0.75rem; font-weight: 600; cursor: pointer; }
.frame__back:hover { background: color-mix(in oklch, currentColor 8%, transparent); }

/* ── Close and footer ────────────────────────────────────────────────── */
.end { padding-block: clamp(72px, 11vw, 152px); background: radial-gradient(60% 80% at 50% 100%, var(--brand-muted), transparent 70%), var(--background); text-align: center; border-top: 1px solid var(--border); }
.end__in { display: grid; justify-items: center; }
.end h2 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.75rem); line-height: 1.04; font-weight: 650; letter-spacing: -0.035em; text-wrap: balance; }
.end p { margin-top: 18px; max-width: 34em; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.5; color: var(--muted-foreground); text-wrap: pretty; }
.end .hero__cta { justify-content: center; }

/* ── Site footer: the one every site page carries ────────────────────── */
.footer { border-top: 1px solid var(--site-line); background: #fff; color: var(--site-fg); line-height: 1.5; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 56px 24px 40px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px 32px; }
.footer-tag { margin: 14px 0 0; max-width: 30ch; font-size: 13.5px; line-height: 1.5; color: var(--site-muted); }
.footer-col .footer-h { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; line-height: 1.06; text-transform: uppercase; color: var(--site-fg); }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: var(--site-muted); border-radius: 4px; transition: color 150ms ease; }
.footer-col a:hover, .footer-base a:hover { color: var(--site-fg); }
@media (hover: none) { .footer-col a { display: inline-block; padding: 12px 0; } }
.footer-base { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--site-line); font-size: 13px; color: var(--site-muted); }
.footer-base p { margin: 0; }
.footer-base a { color: var(--site-muted); border-radius: 4px; transition: color 150ms ease; }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

.edge { position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0; box-shadow: inset 0 0 0 4px var(--amber), inset 0 0 60px rgb(245 154 60 / 0.25); }
.edge.is-on { animation: edge 2600ms var(--ease-out-quart); }
@keyframes edge { 0% { opacity: 0; } 12% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }

/* ── The kit's demos on this page ────────────────────────────────────── */
.host--sc .hxd-sc__facts { display: none; }
.host .hxd-play:focus-visible { outline: 3px solid color-mix(in oklch, var(--ring) 60%, transparent); outline-offset: -6px; }
/* Tap targets of at least 40px on touch screens and narrow layouts. */
@media (max-width: 879px), (pointer: coarse) {
  .host .hxd-tab, .host .hxd-sc__tab, .host .hxd-wtab, .host .hxd-vbtn, .host .hxd-topic, .host .hxd-chapter, .host .hxd-slot,
  .host .hx-btn, .host .hx-seg__item, .host .hxd-reply__opt, .host .hx-chip--sm { min-height: 40px; }
  .host .hxd-vbtn--icon, .host .hx-btn--icon { min-width: 40px; }
  .host .hxd-tabs { height: auto; min-height: 44px; }
  .host .hxd-tsbtn, .host .hx-switch, .host .hxd-app__link { position: relative; }
  .host .hxd-tsbtn::after, .host .hx-switch::before, .host .hxd-app__link::after { content: ""; position: absolute; inset: -10px -4px; }
}
/* On a phone the Assist room keeps the video and the suggestion on one screen. */
@media (max-width: 879px) { .host--assist .hxd-controls { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .next[data-mode="ai"] .next__q .w { animation: none; }
  .pad__dot, .pad.is-drag .pad__dot, .pad__cells button i, .meter__bar i, .hero__lede { transition: none; }
  .pad.is-drag .pad__dot { transform: none; }
  .frame--chair { animation: none; }
  .pad__cells button.is-hit, .pad__cells button.is-hit::after, .pad__dot.is-bump, .meter__rows li.is-pop .meter__pips, .next__q.is-in, .next__read.is-in { animation: none !important; }
  html.js:not(.is-in) .hero__copy > *, html.js:not(.is-in) .run { opacity: 1; transform: none; }
}
