/* ===== Round 4 (14 Oct): founder feedback ===== */

/* Rhythm: one section spacing, hairline dividers between content sections */
.sec { padding-block: clamp(5rem, 8vw, 7.5rem); }
.guide, .results, .voices, .fit, .faq { position: relative; }
.guide::before, .results::before, .voices::before, .fit::before, .faq::before { content: ''; position: absolute; top: 0; left: 50%; width: min(calc(100% - 2 * var(--gutter)), calc(var(--wrap) - 2 * var(--gutter))); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent); }
.h2 { font-size: clamp(38px, 4.8vw, 72px); }
.sec-lead { color: rgba(243, 240, 232, 0.7); }

/* Hero: one clear lead form */
.hero-lead-card { margin-top: 2.25rem; padding: 14px; border-radius: 20px; max-width: 980px; }
.hlf-fields { display: grid; gap: 10px; align-items: end; }
@media (min-width: 900px) { .hlf-fields { grid-template-columns: 1.15fr 1fr auto; } }
.hlf-field { display: grid; gap: 6px; }
.hlf-field > span { font-size: 12px; font-weight: 700; color: var(--muted); padding-left: 4px; }
.hlf-field > span em { font-style: normal; color: var(--faint); }
.hlf-field input { height: 56px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(8, 8, 10, 0.55); color: var(--text); font: inherit; font-size: 15px; }
.hlf-field input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(206, 255, 94, 0.16); }
.hlf-field input::placeholder { color: rgba(243, 240, 232, 0.36); }
.hlf-field input[aria-invalid='true'] { border-color: var(--orange); }
.hero-lead-form .btn-lg { height: 56px; }
.hlf-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; padding-left: 4px; font-size: 13px; color: var(--muted); }
.hlf-note i { color: var(--lime); }
.hlf-err { color: #ff9b6b; font-weight: 700; }

/* Problem: a full-bleed world scroll, same aesthetic as the journey */
.manifesto { background: #08080a; }
.mani-burst { display: none; }
.mani-scene { -webkit-mask-image: none; mask-image: none; border-radius: var(--r-card); }
.mani-scene img { aspect-ratio: 16 / 9; }
.mani-text h3 { max-width: 14ch; }
.manifesto.live .mani-stage { display: block; }
.manifesto.live .mani-inner { position: absolute; inset: 0; max-width: none; padding: 0; }
.manifesto.live .mani-list { position: absolute; inset: 0; height: auto; margin: 0; }
.manifesto.live .mani-item { position: absolute; inset: 0; display: block; }
.manifesto.live .mani-scene { position: absolute; inset: 0; border-radius: 0; overflow: hidden; transform: none !important; }
.manifesto.live .mani-scene img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transform: scale(calc(1.1 - var(--lp, 0) * 0.1)); transform-origin: 70% 50%; transition: none; }
.manifesto.live .mani-scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 8, 10, 0.94) 0%, rgba(8, 8, 10, 0.72) 34%, rgba(8, 8, 10, 0.1) 62%), linear-gradient(to bottom, rgba(8, 8, 10, 0.6), transparent 22%, transparent 78%, rgba(8, 8, 10, 0.8)); }
.manifesto.live .mani-text, .manifesto.live .mani-title, .manifesto.live .mani-dots { position: absolute; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); z-index: 2; }
.manifesto.live .mani-title { top: calc(var(--hdr-h) + 2rem); max-width: 30ch; font-size: clamp(18px, 1.5vw, 24px); color: rgba(243, 240, 232, 0.6); }
.manifesto.live .mani-text { top: 50%; transform: translateY(-46%); max-width: min(560px, 40vw); transition: transform 800ms var(--ease); }
.manifesto.live .mani-item.on .mani-text { transform: translateY(-50%); }
.manifesto.live .mani-dots { bottom: 2.5rem; }
.manifesto.live { height: 330vh; }

/* AI: keep every scene inside the stage */
.ai.live .ai-scene { inset: 0 0 5.75rem; }
.ai.live .aiva-media { align-self: center; }
.ai.live .aiva-out { height: min(40dvh, 420px); }
.ai.live .motion-media video { max-height: 46dvh; }
.cap-link { color: var(--lime); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; border-bottom: 1px solid rgba(206, 255, 94, 0.4); }
.cap-link:hover { border-bottom-color: var(--lime); }

/* Results: Plan B video only */
.planb-media .pm-cover { object-position: 50% 30%; }

/* Voices: one row, one card per scroll step */
.voice-pan { margin-top: clamp(2.5rem, 5vw, 3.5rem); overflow: hidden; }
.voice-track { display: flex; gap: 1.5rem; width: max-content; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); will-change: transform; }
.voice-track .vcard { width: min(600px, 82vw); flex: none; }
.voice-track .vcard-lead { width: min(680px, 86vw); }
.voice-dots { display: none; gap: 8px; margin-top: 1.75rem; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.voice-dots i { width: 34px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); transition: background-color 300ms; }
.voice-dots i.on { background: var(--lime); }
.voices.live .voice-dots { display: flex; }
.voices.live .vcard { opacity: 0.45; transition: opacity 500ms var(--ease), transform 500ms var(--ease), border-color 300ms; }
.voices.live .vcard.on { opacity: 1; border-color: rgba(206, 255, 94, 0.35); }
@media (max-width: 767px) { .voice-track { width: auto; flex-direction: column; padding-inline: var(--gutter); } .voice-track .vcard, .voice-track .vcard-lead { width: 100%; } }

/* Contact: the shopping objects gather around the form */
.contact { overflow: hidden; }
.contact-fx { position: absolute; inset: 0; pointer-events: none; }
.cf-glow { position: absolute; inset: 0; background: radial-gradient(38% 50% at 72% 52%, rgba(206, 255, 94, 0.14), transparent 70%), radial-gradient(50% 60% at 78% 45%, rgba(30, 16, 199, 0.45), transparent 72%); }
.cf-mark { position: absolute; right: 6%; top: 50%; width: min(46vw, 760px); transform: translate(0, -50%) rotate(var(--mr, 0deg)); opacity: 0.08; }
.cf-obj { position: absolute; width: clamp(80px, 8vw, 150px); height: auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.5)); will-change: transform; }
.cf1 { left: 52%; top: 14%; } .cf2 { right: 3%; top: 10%; } .cf3 { right: 2%; bottom: 12%; } .cf4 { left: 50%; bottom: 10%; } .cf5 { left: 60%; top: 46%; width: clamp(50px, 5vw, 90px); } .cf6 { right: 30%; top: 4%; }
.contact-grid { min-height: 100dvh; }
@media (max-width: 1023px) { .cf-obj { opacity: 0.35; } .cf1, .cf4, .cf5 { display: none; } }

/* Footer newsletter */
.news { margin-top: 1.75rem; max-width: 380px; }
.news-label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 0.6rem; }
.news-row { display: flex; gap: 8px; }
.news-row input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--text); font: inherit; font-size: 14px; }
.news-row input:focus { outline: none; border-color: var(--lime); }
.news-row input[aria-invalid='true'] { border-color: var(--orange); }
.news-msg { min-height: 1.2em; margin-top: 0.5rem; font-size: 13px; color: var(--muted); }


/* Contact is not pinned; the form sits in normal flow */
.contact.live { height: auto; }
.contact.live .contact-grid { position: relative; top: auto; }

/* Voices: the pinned row sits in the middle of the screen */
.voices.live { padding-block: 0; }
.voices.live > .wrap, .voices.live .voice-pan { position: relative; }
.voices.live { display: flex; flex-direction: column; justify-content: center; min-height: 100dvh; padding-top: calc(var(--hdr-h) + 1rem); }
.voices.live .voice-track { padding-inline: 0; }
.voices.live .voice-dots { justify-content: center; padding-inline: 0; }

/* Hero objects: keep clear of the lead form */
.o1 { left: 70%; top: 74%; width: 13%; } .o5 { left: 50%; top: 64%; width: 9%; }

/* Problem world: islands sit right of the copy, soft edge on the left */
.manifesto.live .mani-scene img { position: absolute; top: 0; left: 7vw; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%); mask-image: linear-gradient(90deg, transparent 0%, #000 22%); }

/* AIVA: explicit heights so the video can never outgrow the stage */
.ai.live .aiva-media { --aiva-h: min(38dvh, 400px); align-self: center; }
.ai.live .aiva-out { height: var(--aiva-h); grid-template-columns: auto auto; grid-template-rows: var(--aiva-h); align-items: start; }
.ai.live .aiva-out video { height: var(--aiva-h); width: calc(var(--aiva-h) * 2 / 3); max-height: none; aspect-ratio: 2 / 3; }
.ai.live .aiva-stills { height: var(--aiva-h); grid-template-rows: repeat(3, calc((var(--aiva-h) - 1.5rem) / 3)); }
.ai.live .aiva-stills img { height: calc((var(--aiva-h) - 1.5rem) / 3); width: calc((var(--aiva-h) - 1.5rem) / 3 * 2 / 3); max-height: none; }
.ai.live .aiva-media figcaption { margin-top: 0.25rem; }
.ai.live .aiva-media { --aiva-h: min(42dvh, 440px); justify-self: center; }

/* AI header: headline on two lines, intro beside it, so every scene keeps room above the rail */
.ai.live .ai-head { display: grid; grid-template-columns: auto minmax(0, 400px); column-gap: clamp(2rem, 5vw, 5rem); align-items: end; justify-content: space-between; }
.ai.live .ai-head .eyebrow { grid-column: 1 / -1; }
.ai.live .ai-head .h2 { max-width: 22ch; }
.ai.live .ai-head .sec-lead { margin: 0 0 0.35rem; }
@media (max-height: 820px) {
  .ai.live .ai-head .h2 { font-size: clamp(28px, 4.6dvh, 44px); }
  .ai.live .ai-scenes { margin-top: 0.75rem; }
  .ai.live .ai-copy h3 { font-size: clamp(24px, 4.4dvh, 36px); }
  .ai.live .ai-copy > p { font-size: 15px; margin-top: 0.5rem; }
  .ai.live .ai-points { margin: 0.6rem 0 0.75rem; gap: 0.3rem; }
  .ai.live .ai-points li { font-size: 13px; }
  .ai.live .aiva-media { --aiva-h: min(36dvh, 400px); }
  .ai.live .motion-media video { max-height: 40dvh; }
}
.ai.live .ai-rail { left: var(--gutter); right: var(--gutter); }

/* Hero: the questions continue inside the same card (no drawer) */
.hero-lead-card.expanded { padding: clamp(1.1rem, 1.8vw, 1.6rem); }
.hero-steps .lf-title { display: none; }
.hero-steps .steps-ind { margin: 0 0 1rem; }
.hero-steps .ms-step legend { font-size: 18px; margin-bottom: 0.9rem; }
.hero-steps .ms-step:not(.on) { display: none; }
.hero-steps .chip span { min-height: 52px; }
.hero-steps .fineprint { margin-top: 0.6rem; }
@media (min-width: 900px) {
  .hero-steps .ms-step[data-step="1"] .chips, .hero-steps .ms-step[data-step="2"] .chips { grid-template-columns: repeat(4, 1fr); }
  .hero-steps .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .hero-steps .chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
}
.hero-steps .ms-step.on { animation: hs-in 420ms var(--ease) both; }
@keyframes hs-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-steps .ms-step.on { animation: none; } }

/* Header: logo left, links centred and evenly spread, CTA right */
@media (min-width: 1024px) {
  .hdr-in { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; }
  .hdr-in .logo { justify-self: start; }
  .hdr-in .nav { justify-self: center; gap: clamp(2.5rem, 3.4vw, 3.5rem); }
  .hdr-in .hdr-cta { justify-self: end; margin-left: 0; }
}

/* Launch: service step, spam trap, opt-in, send errors */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chips-svc { grid-template-columns: 1fr 1fr; }
.chips-svc .chip span { min-height: 52px; }
@media (min-width: 900px) { .hero-steps .chips-svc { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 420px) { .chips-svc { grid-template-columns: 1fr; } }
.optin { display: flex; align-items: flex-start; gap: 10px; margin-top: 1rem; font-size: 14px; color: var(--muted); cursor: pointer; }
.optin input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--lime); flex: none; }
.form-msg { margin-top: 0.9rem; padding: 12px 14px; border-radius: var(--r-input); border: 1px solid rgba(238, 78, 0, 0.5); background: rgba(238, 78, 0, 0.08); color: #ffb08a; font-size: 14px; line-height: 1.45; }
.fineprint a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
[data-submit][disabled] { opacity: 0.7; cursor: progress; }
