/* Cue landing page — direction: "The product performs" (Switzer · Three stones) */

:root {
  --bg: #eeecea;
  --surface: #e4e1dd;
  --ink: #333231;
  --muted: #5e5a56;
  --accent: #5c6b54;
  --accent-ink: #ffffff;
  --field-1: #cdc3b6;
  --field-1-ink: #333231;
  --dark: #262524;
  --dark-2: #302f2d;
  --on-dark: #f1efec;
  --on-dark-muted: #b9b4ae;

  /* Cue's own interface (inside [data-ui] only) */
  --ui-card: #1c1c1b;
  --ui-text: #f5f5f4;
  --ui-blue: #0a84ff;
  --ui-font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.5rem, 7vw, 7rem);

  --margin: clamp(20px, 2.8vw, 40px);
  --gap: 24px;
  --section: clamp(112px, 11vw, 168px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Switzer", system-ui, sans-serif;
  font-weight: 400;
  font-size: var(--step-body);
  line-height: 1.45;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: var(--step-head); max-width: 18ch; }
.lead { font-size: var(--step-lead); line-height: 1.35; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--field-1); color: var(--ink); }
kbd { font: inherit; }

.button {
  display: inline-block;
  background: var(--on-dark);
  color: var(--ink);
  padding: 16px 24px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 160ms;
}
.button:hover { background: #ffffff; transform: translateY(-2px); }
.button:active { transform: translateY(0); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
  background: var(--dark);
  color: var(--on-dark);
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--margin);
}
.wordmark { display: inline-flex; text-decoration: none; }
.wordmark .logo { height: clamp(22px, 1.2rem + 0.5vw, 28px); width: auto; }
.hero-copy { display: grid; gap: 24px; justify-items: start; max-width: 34rem; }
.hero h1 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); font-weight: 500; letter-spacing: -0.03em; }
.hero-sentence { color: var(--on-dark); max-width: 44ch; margin-top: 8px; }
.hero-right {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--dark-2);
  padding: calc(var(--margin) * 2) var(--margin);
}
.top-link { position: absolute; top: var(--margin); right: var(--margin); font-size: 15px; color: var(--on-dark); }

/* The prompter fragment — Cue's real look */
.prompter { width: min(450px, 100%); font-family: var(--ui-font); }
.prompter-window {
  position: relative;
  height: 300px;
  border-radius: 16px;
  background: var(--ui-card);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08); /* taste-skill-ignore: Cue interface (data-ui) */
}
.prompter-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.reading-line {
  position: absolute;
  left: 10px;
  top: 30%;
  width: 4px;
  height: 30px;
  border-radius: 2px;
  background: var(--ui-blue);
}
.prompter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #3b3a38;
  color: var(--ui-text);
  width: max-content;
}
.badge { display: grid; place-items: center; width: 28px; height: 28px; color: #a8a29b; }
.badge svg, .pb svg { width: 16px; height: 16px; }
.pb {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: 0; border-radius: 999px;
  background: transparent; color: inherit;
  font: 600 18px/1 var(--ui-font);
  cursor: pointer;
  transition: background-color 120ms, transform 120ms;
}
.pb:hover { background: rgba(255,255,255,0.12); }
.pb:active { transform: scale(0.92); }
.pb .i-play { display: none; }
.prompter.paused .pb .i-play { display: block; }
.prompter.paused .pb .i-pause { display: none; }
.readout { min-width: 82px; text-align: center; font: 600 13px/1 var(--ui-font); font-variant-numeric: tabular-nums; }
.prompter-note { margin-top: 12px; font-family: "Switzer", system-ui, sans-serif; font-size: 15px; color: var(--on-dark-muted); }

/* ---------- Watch: the walkthrough film ---------- */
.watch { padding: var(--section) var(--margin) calc(var(--section) * 0.75); background: var(--bg); }
.watch-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  align-items: end;
  margin-bottom: 48px;
}
.watch-head h2 { grid-column: 1 / span 6; font-size: var(--step-head); }
.watch-side { grid-column: 8 / span 5; display: grid; gap: 24px; justify-items: start; }
.watch-side p { max-width: 44ch; }
.watch-sound {
  border: 0;
  padding: 16px 24px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 500 var(--step-body) / 1 "Switzer", system-ui, sans-serif;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms;
}
.watch-sound:hover { background: #4f5d48; transform: translateY(-2px); }
.watch-sound:active { transform: translateY(0); }
.watch-film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--dark);
}
.watch-film figcaption { margin-top: 12px; font-size: var(--step-small); }

/* ---------- Heritage ---------- */
.heritage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 48px;
  padding: var(--section) var(--margin);
  background: var(--field-1);
  color: var(--field-1-ink);
}
.heritage-copy { grid-column: 1 / span 5; display: grid; gap: 32px; align-content: start; }
.h-fig figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--ink); }
.h-fig img { width: 100%; object-fit: cover; }
/* The tall 1976 photograph runs the full height of the left column's three parts. */
.h-fig-tall { grid-column: 7 / span 6; grid-row: 1 / span 3; display: flex; flex-direction: column; }
.h-fig-tall img { flex: 1; min-height: 0; height: 100%; }
.h-fig-wide { grid-column: 1 / span 6; grid-row: 2; overflow: hidden; }
.h-fig-wide img { aspect-ratio: 3 / 2; }
.h-fig-cam { grid-column: 1 / span 6; grid-row: 3; }
.h-fig-cam img { aspect-ratio: 16 / 9; }
.drift { animation: drift 24s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translateX(-2%); } }

/* ---------- Showcase: the giant switch ---------- */
.showcase {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  padding: var(--margin);
  background: var(--accent);
  color: var(--accent-ink);
  transition: background-color 500ms var(--ease-out), color 500ms;
}
.showcase[data-state="them"] { background: var(--field-1); color: var(--ink); }
.showcase-copy { position: relative; z-index: 1; display: grid; gap: 24px; max-width: 34rem; padding-top: 32px; }
.showcase h2 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); }
.swap-word { display: inline-block; }
.showcase-sentence { max-width: 40ch; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-weight: 500; }
.proof li { display: inline-flex; align-items: center; gap: 8px; }
.proof svg { width: 16px; height: 16px; }
.mini-prompter {
  margin-top: 24px;
  width: 340px; max-width: 100%;
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--ui-card);
  font: 600 19px/1.4 var(--ui-font);
  color: rgba(245,245,244,0.55);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.mini-line { display: block; }
.mini-line.now { color: var(--ui-text); }
.mini-empty { font-size: var(--step-small); opacity: 0; transition: opacity 400ms 200ms; }
.showcase[data-state="them"] .mini-prompter { opacity: 0; transform: scale(0.96); }
.showcase[data-state="them"] .mini-empty { opacity: 1; }
.giant {
  position: absolute;
  left: 64%;
  top: 44%;
  font-size: clamp(80px, 14vh, 160px);
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 0.4em;
  font-family: var(--ui-font);
}
.giant-label { grid-column: 1 / -1; font-size: 0.55em; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.2em; }
.switch {
  position: relative;
  font-size: inherit; /* buttons do not inherit it, and every size here is in em */
  width: 4.6em; height: 2.6em;
  border: 0; border-radius: 999px;
  background: rgba(0,0,0,0.28);
  cursor: pointer;
  transition: background-color 300ms;
}
.switch-thumb {
  position: absolute; top: 0.2em; left: 0.2em;
  width: 2.2em; height: 2.2em;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0.06em 0.18em rgba(0,0,0,0.3); /* taste-skill-ignore: Cue interface (data-ui) */
  transition: transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.switch[aria-checked="true"] { background: #34c759; }
.switch[aria-checked="true"] .switch-thumb { transform: translateX(2em); }
.switch:focus-visible { outline: 0.06em solid currentColor; outline-offset: 0.08em; }

/* ---------- How it works ---------- */
.how { padding: var(--section) var(--margin); }
.how-col { width: min(560px, 100%); margin-left: calc((100% - 11 * var(--gap)) / 12 * 3 + 3 * var(--gap)); }
.how h2 { font-size: clamp(1.75rem, 2.2vw, 2.25rem); margin-bottom: 56px; }
.step + .step { margin-top: 88px; }
.step-say { font-size: 20px; font-weight: 500; }
.call {
  display: block;
  margin-top: 16px;
  padding: 20px;
  background: var(--surface);
  border-radius: 8px;
}
.call textarea {
  width: 100%;
  border: 0; resize: vertical;
  background: transparent;
  font: inherit; color: var(--ink);
  line-height: 1.5;
}
.call textarea:focus { outline: none; }
.call:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; }
.response { margin: 24px 0 0 56px; font-family: var(--ui-font); }
.timing { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 360px; }
.timing .tile { padding: 14px 16px; border-radius: 10px; background: #ffffff; display: grid; }
.timing b { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.timing .tile span { font-size: 13px; color: var(--muted); }
.t-words { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.slider-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.slider-value { color: var(--muted); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--accent); cursor: pointer; }
.pace-preview .pp-window {
  position: relative; height: 140px; max-width: 420px;
  border-radius: 12px; background: var(--ui-card); overflow: hidden;
}
.pp-text {
  position: absolute; inset: 0 22px auto 26px;
  font: 600 20px/1.45 var(--ui-font); color: var(--ui-text);
  animation: pp-scroll var(--pp-dur, 16s) linear infinite;
}
@keyframes pp-scroll { from { transform: translateY(42px); } to { transform: translateY(-150px); } }
.pace-preview .reading-line { top: 42px; height: 24px; }
.call .keys { display: inline-flex; gap: 6px; }
.call kbd {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: 8px; background: #ffffff; font-family: var(--ui-font); font-weight: 600; font-size: 18px;
}
.call-note { margin-left: 12px; color: var(--muted); }
.step-last .screen-top { width: min(760px, calc(100vw - 2 * var(--margin))); }
.screen-top { border-radius: 10px 10px 0 0; overflow: hidden; background: #1d1d1f; }
.menubar {
  position: relative; display: flex; align-items: center; gap: 18px;
  height: 30px; padding: 0 16px; background: #2a2a2c; color: #f5f5f7; font-size: 13px; font-weight: 600;
}
.mb-apple { width: 12px; height: 14px; border-radius: 40% 40% 50% 50%; background: #f5f5f7; }
.mb-dim { font-weight: 400; }
.mb-right { margin-left: auto; font-weight: 400; }
.notch {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 180px; height: 30px; border-radius: 0 0 14px 14px; background: #000;
  display: grid; place-items: center;
}
.lens { width: 10px; height: 10px; border-radius: 50%; background: #1b2a3a; box-shadow: inset 0 0 0 2px #0e1622; /* taste-skill-ignore: Cue interface (data-ui) */ }
.screen-body { position: relative; height: 300px; background: #ececec; }
.slide { position: absolute; inset: 56px 40px 40px; display: grid; align-content: end; gap: 8px; padding: 32px; background: #ffffff; }
.slide-title { font-size: 32px; font-weight: 700; color: #1d1d1f; letter-spacing: -0.02em; }
.slide-sub { font-size: 15px; color: #5c5c60; }
.under-cam {
  position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  width: 380px; height: 116px; border-radius: 14px; background: var(--ui-card); overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25); /* taste-skill-ignore: Cue interface (data-ui) */
}
.uc-text { position: absolute; inset: 0 18px; display: grid; align-content: start; padding-top: 14px; font: 600 17px/1.4 var(--ui-font); color: rgba(245,245,244,0.5); animation: uc 7s linear infinite; }
.uc-text .now { color: var(--ui-text); }
@keyframes uc { from { transform: translateY(0); } to { transform: translateY(-24px); } }
.under-cam .reading-line { top: 38px; height: 20px; left: 7px; }

/* ---------- Features: panel with margin notes ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  padding: var(--section) var(--margin);
  background: var(--surface);
  position: relative;
}
.features-h { grid-column: 1 / span 4; grid-row: 1; text-align: right; justify-self: end; font-size: clamp(1.75rem, 2.4vw, 2.5rem); max-width: 12ch; margin-bottom: 48px; }
.notes { list-style: none; margin: 0; padding: 0; position: relative; }
.notes-left { grid-column: 1 / span 4; grid-row: 1 / span 2; text-align: right; }
.notes-right { grid-column: 9 / span 4; grid-row: 1 / span 2; }
.note { display: grid; gap: 4px; max-width: 26ch; padding: 4px 0; cursor: default; outline-offset: 6px; }
.notes-left .note { margin-left: auto; }
.note b { font-weight: 500; font-size: 18px; }
.note span { font-size: 15px; color: var(--ink); }
.note.active b { color: var(--accent); }
.panel {
  grid-column: 5 / span 4; grid-row: 1 / span 2;
  justify-self: center;
  width: 380px; max-width: 100%;
  padding: 28px 24px;
  border-radius: 12px;
  background: #f0eeeb;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 14px;
  color: #1d1d1f;
  display: grid; gap: 22px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06); /* taste-skill-ignore: Cue interface (data-ui) */
}
.p-part { display: grid; gap: 8px; padding: 8px; margin: -8px; border-radius: 10px; transition: background-color 200ms, box-shadow 200ms; }
.p-part.lit { background: #ffffff; box-shadow: 0 0 0 2px var(--accent); /* taste-skill-ignore: Cue interface (data-ui) */ }
.p-label { font-weight: 600; color: #5c5c60; font-size: 13px; }
.p-preview { position: relative; padding: 18px 20px 26px 26px; border-radius: 8px; background: #2a2a2a; color: #fff; font: 600 17px/1.35 var(--ui-font); display: grid; }
.p-preview i { position: absolute; left: 9px; top: 20px; width: 3px; height: 20px; border-radius: 2px; background: var(--ui-blue); }
.p-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.p-tiles div { padding: 10px 12px; border-radius: 8px; background: #e5e3df; display: grid; }
.p-tiles b { font: 700 24px/1.1 var(--ui-font); }
.p-tiles span, .p-small, .p-dim { color: #5c5c60; font-size: 13px; }
.p-row { display: flex; justify-content: space-between; align-items: center; }
.p-track { position: relative; height: 4px; border-radius: 2px; background: #d6d3cf; margin: 8px 0 4px; }
.p-track i { position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 1px 3px rgba(0,0,0,0.25); /* taste-skill-ignore: Cue interface (data-ui) */ }
.p-seg { display: inline-flex; padding: 2px; border-radius: 7px; background: #e0ddd9; font-size: 13px; }
.p-seg span { padding: 3px 10px; border-radius: 5px; }
.p-seg .on { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.15); /* taste-skill-ignore: Cue interface (data-ui) */ }
.p-start { display: block; padding: 11px; border-radius: 8px; background: #0062d6; color: #fff; text-align: center; font-weight: 600; font-size: 15px; }
.p-keys { font-size: 12.5px; color: #5c5c60; text-align: center; }
.p-keys kbd { padding: 1px 5px; border-radius: 4px; box-shadow: inset 0 0 0 1px #bdb9b4; color: #3a3a3c; /* taste-skill-ignore: Cue interface (data-ui) */ }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  padding: var(--section) var(--margin);
}
.faq-side { grid-column: 1 / span 4; position: sticky; top: 96px; align-self: start; display: grid; gap: 40px; }
.faq h2 { font-size: clamp(2rem, 4vw, 4rem); }
.faq-fig figcaption { margin-top: 12px; font-size: var(--step-small); }
.faq-fig img { aspect-ratio: 4 / 3; object-fit: cover; }
.faq-list { grid-column: 5 / span 8; display: grid; gap: 8px; align-content: start; }
.faq details { background: var(--surface); border-radius: 8px; transition: background-color 250ms; }
.faq summary {
  position: relative;
  list-style: none;
  min-height: 72px;
  padding: 22px 64px 22px 24px;
  font-size: 20px; font-weight: 500;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 16px; height: 3px; background: currentColor; transform: translateY(-50%);
  transition: transform 250ms var(--ease-out);
}
.faq summary::after { transform: translateY(-50%) rotate(90deg); }
.faq details[open] { background: var(--accent); color: var(--accent-ink); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(0deg); }
.faq summary:hover { background: rgba(0,0,0,0.03); }
.faq details p { padding: 0 24px 24px; font-size: 17px; max-width: 52ch; }

/* ---------- CTA ---------- */
.cta {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  min-height: 90svh;
  padding: var(--margin);
  background: var(--accent);
  color: var(--accent-ink);
}
.cta-copy { grid-column: 1 / span 5; align-self: end; display: grid; gap: 32px; padding-bottom: 16px; }
.cta-line { font-size: var(--step-display); line-height: 0.92; display: grid; max-width: none; }
.cta-sentence { max-width: 40ch; }
.dialog {
  grid-column: 7 / span 5; align-self: center; justify-self: center;
  width: 440px; max-width: 100%;
  padding: 24px;
  border-radius: 12px;
  background: #f6f5f3;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 14px;
  display: grid; gap: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28), 0 0 0 1px rgba(0,0,0,0.08); /* taste-skill-ignore: Cue interface (data-ui) */
}
.d-title { font-weight: 700; font-size: 17px; }
.d-field textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid #c9c6c1; border-radius: 6px; background: #fff;
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: #1d1d1f; resize: vertical;
}
.d-field textarea:focus { outline: 3px solid rgba(10,132,255,0.45); border-color: var(--ui-blue); }
.d-row { display: flex; justify-content: space-between; align-items: center; }
.d-seg { display: inline-flex; padding: 2px; border-radius: 7px; background: #e3e0dc; }
.d-seg button { border: 0; padding: 4px 12px; border-radius: 5px; background: transparent; font: inherit; color: inherit; cursor: pointer; transition: background-color 150ms; }
.d-seg button[aria-checked="true"] { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.15); /* taste-skill-ignore: Cue interface (data-ui) */ }
.d-seg button[aria-selected="true"] { background: #fff; font-weight: 600; }
#install .d-seg { display: flex; }
#install .d-seg button { flex: 1; padding: 6px 12px; }
.d-pane { display: grid; gap: 12px; }
.d-pane[hidden] { display: none; }
.d-step { font-weight: 600; }
.d-code { display: flex; align-items: stretch; border-radius: 8px; background: #1d1d1f; overflow: hidden; }
.d-code pre { flex: 1; margin: 0; padding: 14px 16px; overflow-x: auto; }
.d-code code { font: 13px/1.5 ui-monospace, "SF Mono", Menlo, monospace; color: #f5f5f7; white-space: pre-wrap; overflow-wrap: anywhere; }
.d-copy { border: 0; padding: 0 16px; background: #3a3a3c; color: #fff; font: 600 13px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; cursor: pointer; transition: background-color 150ms; }
.d-copy:hover { background: #4a4a4d; }
.d-copy:active { background: #2c2c2e; }
.d-note { font-size: 13px; color: #3a3a3c; }
.d-note a { color: #0058c2; }
.d-button {
  display: block; padding: 12px; border-radius: 8px;
  background: #0062d6; color: #fff; text-align: center; text-decoration: none; font-weight: 600; font-size: 15px;
  transition: filter 150ms, transform 150ms;
}
.d-button:hover { filter: brightness(1.08); }
.d-button:active { transform: scale(0.98); }
.d-status { min-height: 1.2em; font-size: 13px; color: #4a4a4d; }
.d-help { display: grid; gap: 6px; padding: 14px 16px; border-radius: 8px; background: #ebe9e5; font-size: 13px; line-height: 1.45; color: #2c2c2e; }
.d-help-title { font-weight: 600; font-size: 14px; }
.hero-note { font-size: var(--step-small); color: var(--on-dark); }

/* ---------- Footer: a board of tiles ---------- */
.footer {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  padding: 8px;
  background: var(--bg);
}
.ft { padding: 24px; background: var(--surface); min-height: 220px; }
.ft-statement { grid-column: 1 / span 4; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.ft-big { font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; }
.credits { font-size: var(--step-small); }
.ft-nav { grid-column: 5 / span 3; display: grid; align-content: start; gap: 8px; }
.ft-nav a { text-decoration: none; }
.ft-nav a:hover { text-decoration: underline; }
.ft-req { grid-column: 8 / span 2; display: grid; align-content: start; gap: 4px; }
.ft-ver { grid-column: 10 / span 3; display: flex; flex-direction: column; justify-content: space-between; }
.ft-mid { font-size: 20px; }
.ft-mark {
  grid-column: 1 / span 8; min-height: 320px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
}
.ft-mark .logo { width: min(62%, 640px); height: auto; }
.ft-go {
  grid-column: 9 / span 4; min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-size: 28px; letter-spacing: -0.02em;
}
.ft-go svg { width: 48px; height: 48px; align-self: flex-end; transition: transform 200ms var(--ease-out); }
.ft-go:hover svg { transform: translateY(6px); }

/* ---------- Motion ---------- */
.masked .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.masked .line > span { display: block; transform: translateY(105%); animation: rise 900ms var(--ease-out) 150ms forwards; }
@keyframes rise { to { transform: translateY(0); } }
.reveal-late { opacity: 0; transform: translateY(16px); animation: fadeup 700ms var(--ease-out) 900ms forwards; }
@keyframes fadeup { to { opacity: 1; transform: none; } }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {

  .masked .line > span, .reveal-late { animation: none; transform: none; opacity: 1; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .drift, .pp-text, .uc-text { animation: none; }
  .switch-thumb, .mini-prompter, .showcase { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .how-col { margin-left: auto; margin-right: auto; }
  .features-h { grid-column: 1 / -1; text-align: left; justify-self: start; max-width: none; }
  .notes-left { grid-column: 1 / span 6; grid-row: 3; text-align: left; }
  .notes-right { grid-column: 7 / span 6; grid-row: 3; }
  .notes-left .note { margin-left: 0; }
  .note { margin-top: 24px; }
  .panel { grid-column: 1 / -1; grid-row: 2; }
  .dialog { grid-column: 7 / span 6; }
  .heritage-copy { grid-column: 1 / -1; grid-row: 1; }
  .h-fig-tall { grid-column: 7 / span 6; grid-row: 2 / span 2; }
  .h-fig-wide { grid-row: 2; }
  .h-fig-cam { grid-row: 3; }
  .step-last .screen-top { width: 100%; }
  .giant { left: 50%; top: 52%; font-size: clamp(64px, 9vh, 110px); }
}

/* ---------- Narrow: the hero halves stack ---------- */
@media (max-width: 900px) {
  .watch-head { grid-template-columns: 1fr; row-gap: 24px; margin-bottom: 32px; }
  .watch-head h2, .watch-side { grid-column: 1; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-right { order: -1; min-height: 58svh; padding: 72px var(--margin) 32px; }
  .hero-left { position: static; padding: 40px var(--margin) 48px; gap: 32px; }
  .hero { position: relative; }
  .hero-left .wordmark { position: absolute; top: 20px; left: var(--margin); color: var(--on-dark); }
  .top-link { top: 22px; right: var(--margin); }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  :root { --margin: 20px; --section: 112px; }
  .hero h1 { font-size: 6.4vw; }
  .prompter-window { height: 230px; }

  .heritage { grid-template-columns: 1fr; row-gap: 40px; }
  .heritage-copy, .h-fig-tall, .h-fig-wide, .h-fig-cam { grid-column: 1; grid-row: auto; }

  .showcase { min-height: 86svh; }
  .showcase h2 { font-size: 26px; }
  .showcase-sentence { font-size: 16px; }
  .mini-prompter { width: 100%; }
  .giant { left: 20px; top: auto; bottom: 6svh; font-size: 22vw; }

  .response { margin-left: 0; }
  .step-last .screen-top { width: calc(100vw - 20px); }
  .under-cam { width: 300px; }
  .slide { inset: 132px 16px 16px; padding: 20px; }
  .slide-title { font-size: 24px; }
  .mb-dim { display: none; }

  .features { grid-template-columns: 1fr 1fr; }
  .features-h { font-size: 26px; }
  .notes-left { grid-column: 1; }
  .notes-right { grid-column: 2; }
  .note b { font-size: 16px; }
  .panel { width: 100%; }

  .faq { grid-template-columns: 1fr; }
  .faq-side { position: static; grid-column: 1; margin-bottom: 40px; }
  .faq h2 { font-size: 9vw; }
  .faq-list { grid-column: 1; gap: 6px; }
  .faq summary { font-size: 18px; min-height: 64px; }
  .faq details p { font-size: 16px; padding: 0 20px 20px; }

  .cta { grid-template-columns: 1fr; min-height: 84svh; padding: 40px 16px; gap: 48px; }
  .cta-copy, .dialog { grid-column: 1; }
  .cta-copy { align-self: start; }
  .cta-line { font-size: 13vw; }
  .dialog { width: 100%; align-self: end; }
  .d-button { padding: 15px; }

  .footer { grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
  .ft { padding: 20px; min-height: 0; }
  .ft-mark { grid-column: 1 / -1; order: -2; min-height: 160px; }
  .ft-go { grid-column: 1 / -1; order: -1; min-height: 160px; }
  .ft-nav { grid-column: 1; }
  .ft-req { grid-column: 2; }
  .ft-ver { grid-column: 1 / -1; }
  .ft-statement { grid-column: 1 / -1; }
  .ft-big { font-size: 18px; }
}
