/* Autonomous Interviewer page: the stage, the film and the voices.
   Ported from the previous single-page site and re-coloured to the VOXRA tokens.
   Everything else on the page comes from /assets/css/site.css. */

.ai-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.ai-hero .by { color: var(--fg-muted); font-weight: 500; letter-spacing: .08em; }
.ai-facts { padding-bottom: var(--s-2); }
.ai-film-section { padding-top: clamp(2rem, 4vw, 3rem); }
.section-interview { background: var(--white); border-block: 1px solid var(--line); }
.section-voices { border-bottom: 1px solid var(--line); }

/* ---- the film ---- */
.film { position: relative; overflow: hidden; border-radius: var(--r-m); background: var(--white); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(8,8,8,.10); }
.film video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.film-captions { min-height: 76px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 .28em; padding: 16px 170px 16px 32px; border-top: 1px solid var(--line); background: #FBFAF8; text-align: left; font: 700 clamp(.95rem, 1.5vw, 1.2rem)/1.35 var(--font-display); letter-spacing: -.02em; color: var(--black); transition: opacity .2s ease; }
.film-captions span { color: #B9B5AD; transition: color .12s linear; }
.film-captions span.said { color: var(--black); }
.film-captions .sample { display: inline-block; padding: 6px 12px; border-radius: var(--r-s); background: var(--black); color: #fff; font-size: .85em; }
.film.has-sound .film-captions { opacity: .35; }
.film-sound, .sound-btn { position: absolute; right: 16px; bottom: 14px; z-index: 5; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-m); background: rgba(255,255,255,.94); backdrop-filter: blur(8px); color: var(--black); font: 600 var(--fs-300)/1 var(--font-body); cursor: pointer; box-shadow: 0 10px 30px rgba(8,8,8,.12); transition: background .2s ease, color .2s ease, transform .2s ease; }
.film-sound:hover, .sound-btn:hover { background: var(--black); color: #fff; }
.film-sound.is-on, .sound-btn.is-on { background: var(--orange); color: var(--black); border-color: var(--orange); }
.film-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(8,8,8,.06); }
.film-bar i { display: block; height: 100%; width: 0; background: var(--orange); }
.film-note { margin: 14px 0 0; text-align: center; color: var(--fg-muted); font-size: var(--fs-200); }
.sdot { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px var(--orange-tint); flex: 0 0 auto; }
.sound-btn:hover .sdot, .film-sound:hover .sdot { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.sound-btn.is-on .sdot, .film-sound.is-on .sdot { background: var(--black); box-shadow: 0 0 0 3px rgba(8,8,8,.2); animation: blink 1s ease-in-out infinite alternate; }
@keyframes blink { to { opacity: .35; } }

/* ---- the stage (design units: 1280 x 720, scaled to fit) ---- */
.stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-m); background: radial-gradient(900px 520px at 70% 20%, #fff 0, #F3F1EC 70%); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(8,8,8,.10); }
.canvas { position: absolute; top: 0; left: 0; width: 1280px; height: 720px; transform-origin: top left; font-family: var(--font-body); --base: 1280; }
.sound-btn { right: 18px; bottom: 18px; }

.win { position: absolute; left: 86px; top: 92px; width: 700px; border-radius: 10px; background: #fff; border: 1px solid rgba(8,8,8,.12); box-shadow: 0 40px 90px rgba(8,8,8,.14), 0 1px 2px rgba(8,8,8,.06); transform-style: preserve-3d; will-change: transform, opacity; }
.win-bar { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 18px; border-bottom: 1px solid rgba(8,8,8,.08); color: var(--stone); font-size: 13px; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #E4E1DB; }
.win-title { font-weight: 600; color: var(--charcoal); }
.win-q { margin-left: auto; font-variant-numeric: tabular-nums; }
.win-chip { position: absolute; top: -14px; right: 22px; padding: 6px 12px; border-radius: 4px; background: var(--black); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.win-body { padding: 26px 28px 24px; }
.q-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.q-text { margin: 10px 0 18px; font: 600 24px/1.3 var(--font-display); letter-spacing: -.02em; color: var(--black); }
.opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.opts li { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(8,8,8,.12); border-radius: 6px; font-size: 16px; color: var(--charcoal); transition: background .25s ease, border-color .25s ease; }
.opts li span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 4px; background: #F3F1EC; color: var(--stone); font-size: 12px; font-weight: 700; }
.opts li em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: var(--orange-text); opacity: 0; }
.opts li.on { background: var(--orange-tint); border-color: #FFB27A; }
.opts li.on span { background: var(--orange); color: var(--black); }
.opts li.on em { opacity: 1; }
.win-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.code-field { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); }
.code-field b { display: inline-grid; place-items: center; min-width: 64px; height: 34px; padding: 0 10px; border: 1px solid rgba(8,8,8,.2); border-radius: 6px; background: #FBFAF8; color: var(--black); font: 700 15px/1 var(--font-body); letter-spacing: 0; }
.next-btn { display: inline-grid; place-items: center; min-width: 88px; height: 36px; border-radius: 6px; background: var(--black); color: #fff; font-size: 14px; font-weight: 600; transition: transform .15s ease, background .15s ease; }
.next-btn.press { transform: scale(.94); background: var(--orange); color: var(--black); }

.bubble { position: absolute; left: 44px; bottom: 54px; width: 420px; padding: 18px 20px 20px; border-radius: 10px; background: #fff; border: 1px solid rgba(8,8,8,.12); box-shadow: 0 24px 60px rgba(8,8,8,.14); will-change: transform, opacity; }
.bubble-label { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.bubble p { margin: 10px 0 0; min-height: 56px; font: 600 20px/1.35 var(--font-display); letter-spacing: -.015em; color: var(--black); }
.bars { display: inline-flex; align-items: center; gap: 3px; height: 16px; }
.bars b { width: 3px; height: 4px; border-radius: 3px; background: var(--orange); transition: height .12s linear; }

.words { position: absolute; right: 84px; top: 150px; display: grid; gap: 4px; font: 700 54px/1.06 var(--font-display); letter-spacing: -.04em; color: #CFCBC3; }
.words span { transition: color .35s ease; }
.words span.lit { color: var(--black); }
.words span.done { color: var(--stone); }

.chip { position: absolute; right: 84px; top: 362px; display: inline-flex; align-items: center; gap: 12px; max-width: 360px; padding: 12px 16px 12px 12px; border-radius: 8px; background: var(--black); color: #fff; box-shadow: 0 18px 40px rgba(8,8,8,.25); font-size: 15px; font-weight: 500; will-change: transform, opacity; }
.chip-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; background: #2A2D32; flex: 0 0 auto; }
.chip-mark img { width: 18px; }
.chip-text b { color: #FF9A52; font-weight: 700; }
.chip-bars b { background: #FF9A52; }

.endcard { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; background: rgba(247,246,243,.94); backdrop-filter: blur(6px); }
.endcard img { width: 220px; }
.endcard p { margin: 26px 0 0; font: 700 38px/1.15 var(--font-display); letter-spacing: -.03em; max-width: 700px; color: var(--black); }
.endcard span { margin-top: 12px; color: var(--stone); font-size: 18px; }

/* ---- voices ---- */
.voice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.voice { display: grid; gap: 6px; justify-items: start; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--white); text-align: left; font: inherit; color: var(--black); cursor: pointer; transition: border-color .25s ease, transform .25s ease; }
.voice:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.voice.is-playing { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-tint); }
.voice strong { font: 700 1.3rem var(--font-display); letter-spacing: -.02em; }
.voice > span:last-child { color: var(--fg-muted); font-size: var(--fs-300); }
.voice-wave { display: inline-flex; align-items: center; gap: 4px; height: 26px; margin-bottom: 8px; }
.voice-wave b { width: 4px; height: 6px; border-radius: 3px; background: #CFCBC3; transition: background .2s ease; }
.voice.is-playing .voice-wave b { background: var(--orange); animation: vbar .55s ease-in-out infinite alternate; }
.voice.is-playing .voice-wave b:nth-child(2n) { animation-delay: -.2s } .voice.is-playing .voice-wave b:nth-child(3n) { animation-delay: -.35s } .voice.is-playing .voice-wave b:nth-child(5n) { animation-delay: -.1s }
@keyframes vbar { from { height: 5px } to { height: 22px } }
.voice-note { margin: 24px 0 0; max-width: 640px; color: var(--fg-muted); font-size: var(--fs-300); }

/* ---- what changes ---- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-col { padding: 30px; border-radius: var(--r-m); background: var(--white); border: 1px solid var(--line); }
.compare-voxra { background: var(--black); color: #fff; border-color: var(--black); }
.compare-label { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-100); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); }
.compare-voxra .compare-label { color: #FF9A52; }
.compare-label img { width: 20px; }
.compare-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; }
.compare-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid rgba(8,8,8,.08); font-size: 1rem; line-height: 1.5; color: var(--charcoal); }
.compare-voxra .compare-steps li { border-color: rgba(255,255,255,.1); color: #E6E6E3; }
.compare-steps b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 4px; background: var(--offwhite); border: 1px solid var(--line); color: var(--stone); font-size: .78rem; }
.compare-voxra .compare-steps b { background: var(--orange); border-color: var(--orange); color: var(--black); }
.unchanged { list-style: none; margin: 24px 0 0; padding: 22px 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; border-radius: var(--r-m); background: var(--orange-tint); }
.unchanged li { font-size: var(--fs-300); line-height: 1.5; color: #7A3000; }
.unchanged strong { display: block; font-weight: 700; color: var(--black); }

/* ---- careful by design ---- */
.trust-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.trust-list li { display: grid; grid-template-columns: 190px 1fr; gap: 22px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.t-chip { display: inline-flex; align-items: center; justify-self: start; padding: 7px 11px; border-radius: var(--r-s); background: var(--white); border: 1px solid var(--line-strong); color: var(--black); font-size: var(--fs-200); font-weight: 600; white-space: nowrap; }
.trust-list p { margin: 4px 0 0; color: var(--charcoal); }

@media (max-width: 1040px) { .voice-grid { grid-template-columns: 1fr 1fr; } .compare { grid-template-columns: 1fr; } .unchanged { grid-template-columns: 1fr 1fr; } .ai-hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .voice-grid { grid-template-columns: 1fr; }
  .film-captions { min-height: 96px; padding: 12px 16px 50px; font-size: .9rem; text-align: center; }
  .film-sound { right: 10px; bottom: 10px; min-height: 38px; padding: 0 12px 0 10px; font-size: .82rem; }
  .unchanged { grid-template-columns: 1fr; }
  .trust-list li { grid-template-columns: 1fr; gap: 10px; padding: 18px 0; }
}
@media (max-width: 700px) {
  .stage { aspect-ratio: 4 / 5; }
  .canvas { width: 720px; height: 900px; --base: 720; }
  .words { right: auto; left: 36px; top: 34px; display: flex; gap: 14px; font-size: 34px; }
  .win { left: 36px; top: 110px; width: 648px; }
  .chip { right: auto; left: 36px; top: 590px; max-width: 648px; }
  .bubble { left: 36px; bottom: 44px; width: 648px; }
  .bubble p { min-height: 0; font-size: 22px; }
  .endcard img { width: 180px; }
  .endcard p { font-size: 30px; max-width: 560px; }
}
@media (prefers-reduced-motion: reduce) {
  .voice.is-playing .voice-wave b { animation: none; height: 14px; }
  .sound-btn.is-on .sdot, .film-sound.is-on .sdot { animation: none; }
  .opts li, .next-btn, .words span, .voice { transition: none; }
}
