/* Solea waitlist landing page. Plain CSS, no build step. */
:root {
  --ink: #1C1D21;
  --muted: #5B6272;
  --line: #E6E1DA;
  --cream: #F7F3EE;
  --indigo: #5562F0;
  --indigo-dark: #4A56E2;
  --night: #121317;
  --white: #fff;
  --gold: #F2C46D;
  --green: #127650;
  --focus: #AEB4FF;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

/* keyboard focus */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.light :focus-visible { outline-color: var(--indigo); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px;
  background: var(--white); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- top bar ---------- */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; padding: 26px 40px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.ghost {
  font-size: 14.5px; font-weight: 600; padding: 10px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06);
  display: inline-flex; gap: 8px; align-items: center; transition: background .15s, border-color .15s;
}
.ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.45); }
.ghost svg { width: 14px; height: 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; padding-top: 98px;
}
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--night); }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero-media .dim, .final .dim { position: absolute; inset: 0; }
.hero-media .dim {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(18,19,23,.42), rgba(18,19,23,.58) 75%),
    linear-gradient(180deg, rgba(18,19,23,.25), rgba(18,19,23,0) 30%, rgba(18,19,23,0) 70%, rgba(18,19,23,.6));
}
.center {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px 40px;
}
.ask { display: flex; flex-direction: column; align-items: center; width: 100%; }
.mark { width: 92px; height: 92px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.45)); }
h1 { margin: 22px 0 12px; font-size: 68px; line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.sub { max-width: 640px; font-size: 20px; line-height: 1.5; color: #D9DBE3; margin: 0 0 30px; }
h1, .sub, .early { text-shadow: 0 2px 18px rgba(0,0,0,.45); text-wrap: balance; }

/* sign-up form (hero and final section) */
.signup { width: 560px; max-width: 100%; }
.signup .row { display: flex; gap: 10px; }
.signup input[type=email] {
  flex: 1; min-width: 0; height: 58px; border-radius: 16px; border: 1px solid rgba(255,255,255,.5);
  background: var(--white); color: var(--ink); font: 500 17px 'Plus Jakarta Sans', system-ui, sans-serif; padding: 0 20px;
}
.signup input[type=email]::placeholder { color: #8A90A0; }
.signup input[type=email][aria-invalid=true] { border-color: #FF8A8A; box-shadow: 0 0 0 3px rgba(255,120,120,.45); }
.signup input[type=email]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.signup button {
  height: 58px; padding: 0 26px; border-radius: 16px; border: 0; background: var(--indigo); color: var(--white);
  font: 700 17px 'Plus Jakarta Sans', system-ui, sans-serif; box-shadow: 0 10px 30px rgba(85,98,240,.45);
  white-space: nowrap; transition: background .15s, transform .15s;
}
.signup button:hover { background: var(--indigo-dark); }
.signup button:active { transform: translateY(1px); }
.signup button[disabled] { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent {
  display: flex; gap: 10px; align-items: flex-start; justify-content: center; margin-top: 14px; font-size: 13.5px;
  color: #C9CCD6; text-align: left; line-height: 1.45;
}
.consent input {
  appearance: none; -webkit-appearance: none; flex: 0 0 18px; width: 18px; height: 18px; margin: 1px 0 0;
  border-radius: 5px; border: 1.5px solid rgba(255,255,255,.7); background: transparent; cursor: pointer;
  display: inline-grid; place-content: center;
}
.consent input:checked { background: var(--indigo); border-color: var(--indigo); }
.consent input:checked::after {
  content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.consent input[aria-invalid=true] { border-color: #FF8A8A; box-shadow: 0 0 0 3px rgba(255,120,120,.45); }
.consent label { cursor: pointer; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.msg { margin-top: 10px; font-size: 14px; font-weight: 600; color: #FFB4B4; text-align: center; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.msg:empty { display: none; }

.early { margin-top: 18px; font-size: 14.5px; color: var(--gold); font-weight: 600; line-height: 1.45; }

/* trust points */
.trust {
  position: relative; list-style: none; margin: 0; display: flex; justify-content: center; gap: 28px;
  padding: 0 24px 34px; font-size: 14px; color: #D0D3DC; flex-wrap: wrap;
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 17px; height: 17px; flex: none; }

/* "you're on the list" */
.done { display: none; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.done .tick {
  width: 64px; height: 64px; border-radius: 50%; background: var(--green); display: flex; align-items: center;
  justify-content: center; box-shadow: 0 10px 30px rgba(18,118,80,.45);
}
.done h2 { margin: 10px 0 0; font-size: 34px; letter-spacing: -.02em; outline: none; }
.done h2, .done p { text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.done p { margin: 0; color: #D9DBE3; font-size: 17px; max-width: 460px; line-height: 1.5; }
.share { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.share a, .share button {
  text-decoration: none; font-size: 15px; font-weight: 600; padding: 12px 18px; border-radius: 14px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); transition: background .15s;
}
.share a:hover, .share button:hover { background: rgba(255,255,255,.18); }
.is-done .ask, .is-done .skip { display: none; }
.is-done .done { display: flex; }

/* ---------- below the fold ---------- */
.light { background: var(--cream); color: var(--ink); }
.sec { padding: 90px 40px; max-width: 1200px; margin: 0 auto; }
.sec + .sec { padding-top: 0; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--indigo-dark); text-transform: uppercase; }
.sec h2 { font-size: 42px; letter-spacing: -.03em; margin: 8px 0 30px; line-height: 1.1; text-wrap: balance; }

/* trailer card */
.video-card {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(30,36,51,.18); aspect-ratio: 16 / 9; background: #2A2C33;
}
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.video-card::after { content: ""; position: absolute; inset: 0; background: rgba(18,19,23,.25); transition: background .2s; }
.video-card:hover img { transform: scale(1.015); }
.video-card:hover::after { background: rgba(18,19,23,.18); }
.video-card:focus-visible { outline-offset: 4px; border-radius: 22px; }
.play {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 96px; height: 96px;
  border-radius: 50%; background: rgba(255,255,255,.95); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 40px rgba(0,0,0,.35); transition: transform .2s;
}
.play svg { width: 34px; height: 34px; margin-left: 4px; }
.video-card:hover .play { transform: translate(-50%, -50%) scale(1.06); }
.vlabel { position: absolute; z-index: 1; left: 22px; bottom: 18px; color: #fff; font-weight: 700; font-size: 16px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 8px 24px rgba(30,36,51,.06); }
.card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: center top; }
.card .tx { padding: 18px 20px 22px; }
.card h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* questions */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; }
.faq > div { border-top: 1px solid var(--line); padding-top: 16px; }
.faq h3 { font-size: 17px; margin-bottom: 6px; }
.faq p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* final sign-up */
.final { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 110px 24px; }
.final-bg { position: absolute; inset: 0; z-index: -1; background: var(--night) url(assets/final-bg.jpg) center 40% / cover no-repeat; }
.final .dim { background: rgba(18,19,23,.72); }
.final .in { position: relative; display: flex; flex-direction: column; align-items: center; }
.final .mark { width: 64px; height: 64px; margin-bottom: 16px; }
.final h2 { font-size: 44px; letter-spacing: -.03em; margin: 0 0 22px; line-height: 1.1; text-wrap: balance; }
.final .consent { max-width: 560px; }
.final .done h2 { font-size: 30px; margin: 10px 0 0; }

footer {
  background: var(--night); color: #8A90A0; font-size: 13.5px; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; padding: 26px 40px; flex-wrap: wrap;
}
footer nav { display: flex; gap: 18px; }
footer a { text-decoration: none; }
footer a:hover { color: #C9CCD6; text-decoration: underline; }

/* ---------- trailer lightbox ---------- */
.lightbox {
  width: min(1100px, 94vw); max-width: none; padding: 0; border: 0; border-radius: 18px; overflow: visible;
  background: #000; color: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox::backdrop { background: rgba(10,11,14,.82); }
.lightbox video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 18px; background: #000; }
.lightbox .close {
  position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center;
}
.lightbox .close:hover { background: rgba(255,255,255,.2); }
.lightbox .close svg { width: 18px; height: 18px; }

/* ---------- tablet ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: 1 / -1; }
  .cards .card:last-child img { aspect-ratio: 16 / 7; }
}

/* ---------- phones ---------- */
@media (max-width: 640px) {
  .top { padding: 18px 20px; }
  .ghost { padding: 8px 12px; font-size: 13px; }
  .hero { padding-top: 76px; }
  .hero-video { object-position: 47% 40%; }
  .center { padding: 0 24px 28px; }
  .mark { width: 72px; height: 72px; }
  h1 { font-size: 40px; margin: 18px 0 10px; }
  .sub { font-size: 16.5px; margin-bottom: 22px; }
  .signup { width: 100%; }
  .signup .row { flex-direction: column; }
  .signup input[type=email] { flex: none; }
  .trust { flex-direction: column; gap: 10px; align-items: center; padding-bottom: 26px; font-size: 13.5px; }
  .done h2 { font-size: 28px; }
  .sec { padding: 64px 20px; }
  .sec h2 { font-size: 31px; margin-bottom: 24px; }
  .play { width: 72px; height: 72px; }
  .play svg { width: 28px; height: 28px; }
  .vlabel { left: 16px; bottom: 12px; font-size: 14px; }
  .video-card { border-radius: 16px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .cards .card:last-child { grid-column: auto; }
  .cards .card:last-child img { aspect-ratio: 16 / 10; }
  .faq { grid-template-columns: 1fr; gap: 16px; }
  .final { padding: 80px 20px; }
  .final .mark { width: 56px; height: 56px; }
  .final h2 { font-size: 31px; }
  footer { padding: 22px 20px; flex-direction: column; align-items: flex-start; }
  .lightbox { width: 100vw; border-radius: 0; }
  .lightbox video { border-radius: 0; }
  .lightbox .close { right: 12px; }
}
