/* iCARLOS teaser site — same style bible as the film (style-bible.md). */
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0C2B40;
  --clinical: #0B6FB8;
  --sky: #11B4EA;
  --paper: #F4F1EC;
  --white: #FFFFFF;
  --amber: #D98A1F;
  --ink-80: rgba(12, 43, 64, .80);   /* 6.9:1 on paper */
  --ink-12: rgba(12, 43, 64, .12);
  --ink-20: rgba(12, 43, 64, .20);
  --display: "Manrope", system-ui, sans-serif;
  --ui: "Inter", system-ui, sans-serif;
  --arrive: cubic-bezier(.16, 1, .3, 1);
  --gutter: 16px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.5 var(--ui); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--clinical); outline-offset: 3px; border-radius: 8px; }

/* ---------------------------------------------------------------- hero (the film's last frame, alive) */
.hero {
  max-width: 1280px; margin: 0 auto; padding: 20px var(--gutter) 40px;
  display: grid; gap: 16px;
  grid-template-areas: "brand" "headline" "teaser" "waitlist";
}
.brand { grid-area: brand; }
.wordmark { margin: 0; font: 800 2rem/1 var(--display); letter-spacing: -.035em; }
.wordmark .i { color: var(--clinical); }
.headline { grid-area: headline; margin: 0; font: 800 clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem)/1.08 var(--display); letter-spacing: -.025em; max-width: 22ch; text-wrap: balance; }

.teaser { grid-area: teaser; margin: 0; }
.frame { position: relative; border-radius: 20px; overflow: hidden; background: var(--paper); box-shadow: 0 24px 60px rgba(12, 43, 64, .16), 0 2px 6px rgba(12, 43, 64, .06); }
.frame video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper); }
.tag { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font: 600 .875rem/1 var(--ui); color: var(--ink-80); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); display: inline-block; flex: none; }

.controls { position: absolute; right: 12px; top: 12px; display: flex; gap: 8px; }
.reduced .controls.idle { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nw { white-space: nowrap; }
.ctl, .play {
  border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(12, 43, 64, .86); color: var(--white); border-radius: 999px;
  transition: transform .2s var(--arrive), background .2s;
}
.ctl { width: 44px; height: 44px; }
.ctl svg { width: 22px; height: 22px; fill: currentColor; }
.ctl:hover, .play:hover { background: var(--ink); transform: scale(1.06); }
#sound .ic-sound, #sound[aria-pressed="true"] .ic-muted { display: none; }
#sound[aria-pressed="true"] .ic-sound { display: block; }
#pause .ic-play, #pause[aria-pressed="true"] .ic-pause { display: none; }
#pause[aria-pressed="true"] .ic-play { display: block; }
.play { position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; background: var(--clinical); box-shadow: 0 14px 34px rgba(12, 43, 64, .25); }
.play svg { width: 40px; height: 40px; fill: currentColor; margin-left: 4px; }

/* ---------------------------------------------------------------- waitlist */
.waitlist { grid-area: waitlist; }
.form-wrap, .thanks { background: var(--white); border-radius: 24px; padding: 24px 20px; box-shadow: 0 18px 50px rgba(12, 43, 64, .10); }
.waitlist h2 { margin: 0; font: 800 1.75rem/1.1 var(--display); letter-spacing: -.02em; }
.lede { margin: 6px 0 18px; color: var(--ink-80); font-weight: 500; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font: 600 .875rem/1.2 var(--ui); }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  border: 1.5px solid var(--ink-20); background: var(--white); font-size: 1rem;
}
.field input:focus, .field select:focus { border-color: var(--clinical); outline: 3px solid rgba(11, 111, 184, .25); outline-offset: 0; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; margin: 6px 0 14px; font-size: .9375rem; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--clinical); }
.err { margin: 0 0 12px; color: var(--ink); background: rgba(217, 138, 31, .16); border-left: 4px solid var(--amber); padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.cta {
  width: 100%; min-height: 54px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--clinical); color: var(--white); font: 700 1.0625rem/1 var(--ui);
  box-shadow: 0 12px 28px rgba(12, 43, 64, .16); transition: transform .25s var(--arrive), opacity .2s;
}
.cta:hover:not(:disabled) { transform: translateY(-1px) scale(1.01); }
.cta:disabled { background: var(--white); color: var(--clinical); box-shadow: inset 0 0 0 2px var(--clinical); cursor: not-allowed; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note { margin: -6px 0 12px; font-size: .8125rem; color: var(--ink-80); }
.hint { margin: 8px 0 0; text-align: center; font-size: .875rem; color: var(--ink-80); }
.cta:not(:disabled) + .hint { visibility: hidden; }
.thanks h2 { margin-bottom: 6px; }
.thanks p { margin: 0; color: var(--ink-80); }

/* ---------------------------------------------------------------- below the fold */
.coming { max-width: 1280px; margin: 0 auto; padding: 32px var(--gutter) 56px; }
.coming h2 { margin: 0 0 18px; font: 800 1.5rem/1.1 var(--display); letter-spacing: -.02em; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.lines li { position: relative; background: var(--white); border-radius: 18px; padding: 18px 18px 18px 20px; font: 600 1.0625rem/1.4 var(--ui); box-shadow: 0 8px 24px rgba(12, 43, 64, .06); }
.step { display: block; font: 700 .8125rem/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--clinical); margin-bottom: 8px; }

.foot { max-width: 1280px; margin: 0 auto; padding: 20px var(--gutter) 40px; border-top: 1px solid var(--ink-12); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--ink-80); font-size: .875rem; }
.foot p { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.foot p.copy { display: block; }

/* entrance: arrive slow (the film's motion vocabulary); skipped for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .brand, .headline, .teaser, .waitlist { animation: rise .8s var(--arrive) both; }
  .headline { animation-delay: .06s; } .teaser { animation-delay: .12s; } .waitlist { animation-delay: .18s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}

/* ---------------------------------------------------------------- phones: the 9:16 cut, kept short enough to show the form */
@media (max-width: 399px) {
  .headline { font-size: 1.625rem; }
}
@media (max-width: 767px) {
  .frame { width: min(100%, calc(46svh * 9 / 16)); margin: 0 auto; }
  .frame video { aspect-ratio: 9 / 16; }
  .tag { display: flex; justify-content: center; }
}

/* ---------------------------------------------------------------- tablet */
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .hero { padding-top: 28px; gap: 20px; }
  .wordmark { font-size: 2.25rem; }
  .form-wrap, .thanks { padding: 28px; }
  #wl-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
  #wl-form .consent, #wl-form .err, #wl-form .cta, #wl-form .note { grid-column: 1 / -1; }
  #wl-form .hint { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- desktop: teaser beside the form, all above the fold */
@media (min-width: 1100px) {
  :root { --gutter: 48px; }
  .hero {
    grid-template-columns: minmax(0, 1fr) 440px; column-gap: 32px; row-gap: 18px; align-items: start;
    grid-template-areas: "brand brand" "headline headline" "teaser waitlist";
  }
  .headline { max-width: 26ch; }
  .lines { grid-template-columns: repeat(3, 1fr); }
  .lines::before { content: ""; position: absolute; left: 6%; right: 6%; top: 28px; height: 3px; background: var(--sky); border-radius: 2px; z-index: 0; }
  .lines li { z-index: 1; }
  #wl-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .waitlist h2 { font-size: 1.6rem; }
  .lede { margin-bottom: 12px; }
  .form-wrap, .thanks { padding: 26px 26px 24px; }
  .field { margin-bottom: 10px; }
  .field input, .field select { min-height: 44px; }
}
