/* Reelign — reelign.app
   Theme tokens mirror the iOS app (ReelignColors.swift). */

:root {
  --bg: #040407;
  --surface: #121215;
  --elevated: #1b1b1f;
  --high: #25252a;
  --text: #f6f2ec;
  --secondary: #9a99a0;
  --tertiary: #5d5c62;
  --accent: #fc440c;
  --accent-soft: rgba(252, 68, 12, 0.08);
  --accent-muted: rgba(252, 68, 12, 0.18);
  --success: #5ce8a6;
  --hairline: rgba(255, 255, 255, 0.06);
  --divider: rgba(255, 255, 255, 0.1);
  --radius: 16px;
  --radius-lg: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

h1, h2 { text-wrap: balance; }
.sub, .section-head p { text-wrap: pretty; }
img { display: block; }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 4, 7, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.nav-links { display: none; }

.menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

.menu-btn span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-menu {
  position: absolute;
  top: 60px;
  right: max(16px, calc((100vw - 1080px) / 2 + 24px));
  width: 230px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-menu.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.site-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
}

.site-menu a:hover { background: var(--elevated); }

.site-menu .menu-cta { color: var(--accent); font-weight: 600; }

.site-menu hr {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 8px 6px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 72px 0;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100vw);
  height: 700px;
  background: radial-gradient(closest-side, rgba(252, 68, 12, 0.14), transparent 70%);
  pointer-events: none;
}

.hero-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.22;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 20px;
}

h1 .accent { color: var(--accent); }

.sub {
  font-size: 19px;
  color: var(--secondary);
  max-width: 480px;
  margin: 0 auto 32px;
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}

.store-badge {
  display: inline-block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-radius: 13px;
}

/* Apple's official badge artwork. Height-driven sizing (the SVG's
   intrinsic ratio is ~3:1); never redrawn or restyled per Apple's
   marketing guidelines. */
.badge-img { height: 56px; width: auto; }

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.cta-note {
  font-size: 12.5px;
  color: var(--tertiary);
}

/* ---------- iPhone carousel (3 visible of 6) ---------- */

.carousel-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Fixed stage; items are absolutely centered and moved purely with
   transforms so the rotation compositor-animates. Heights track the
   center phone (920x2000 screen + frame) plus bob headroom. */
.carousel {
  --phone-w: 300px;
  position: relative;
  width: 100%;
  height: calc((var(--phone-w) - 22px) * 2.174 + 42px);
  /* Swipe: horizontal gestures are ours, vertical stays with the page. */
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.carousel.dragging {
  transition: none;
  cursor: grabbing;
}

.carousel img {
  -webkit-user-drag: none;
  pointer-events: none;
}

.pos-left, .pos-right { cursor: pointer; }

/* The big blurred glow is expensive to composite six times over, and
   only the center phone earns it; sides carry a cheap drop, hidden
   phones none. */
.pos-left .phone-shot,
.pos-right .phone-shot {
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

.pos-hidden-left .phone-shot,
.pos-hidden-right .phone-shot { box-shadow: none; }

/* Desktop affordance: hovering a side phone lifts its shadow veil so
   it reads as clickable. */
@media (hover: hover) {
  .pos-left:hover .phone-shot::after,
  .pos-right:hover .phone-shot::after { opacity: 0.2; }
}

.carousel-item {
  position: absolute;
  left: 50%;
  top: 10px;
  width: var(--phone-w);
  will-change: transform, opacity;
  transition:
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.9s ease,
    z-index 0s 0.45s;
}

/* Offscreen: the page scrolls with zero carousel work. */
.carousel.idle .float { animation-play-state: paused; }

.pos-center {
  transform: translateX(-50%);
  z-index: 3;
  opacity: 1;
}

.pos-right {
  transform: translate(calc(-50% + 68%), 14px) scale(0.82) rotate(5deg);
  z-index: 2;
  opacity: 1;
}

.pos-left {
  transform: translate(calc(-50% - 68%), 14px) scale(0.82) rotate(-5deg);
  z-index: 2;
  opacity: 1;
}

.pos-hidden-right {
  transform: translate(calc(-50% + 135%), 24px) scale(0.55);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.pos-hidden-left {
  transform: translate(calc(-50% - 135%), 24px) scale(0.55);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

/* The hover float lives on a nested layer so it composes with (never
   fights) the position transform. Staggered phases keep the three
   visible phones bobbing out of sync, like the reference. */
.float { animation: bob 5.2s ease-in-out infinite; }

.carousel-item:nth-child(2n) .float { animation-delay: -1.7s; }
.carousel-item:nth-child(3n) .float { animation-delay: -3.1s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Device build-up: titanium rim (gradient ring) > black screen bezel
   > screen. Radii step down 58 → 55 → 46 so the rings stay
   concentric, like the hardware. */
.phone-shot {
  position: relative;
  width: 100%;
  padding: 3px;
  border-radius: 58px;
  background: linear-gradient(145deg, #55555b, #1c1c20 28%, #131317 62%, #46464c);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(252, 68, 12, 0.12);
  transition: box-shadow 0.9s ease;
}

/* Depth veil: side phones sit in shadow. Lives on the frame so it
   rides the float, fades with the same easing as the movement. */
.phone-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 58px;
  background: #040407;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.pos-left .phone-shot::after,
.pos-right .phone-shot::after { opacity: 0.45; }

.pos-hidden-left .phone-shot::after,
.pos-hidden-right .phone-shot::after { opacity: 0.8; }

.phone-bezel {
  background: #000;
  border-radius: 55px;
  padding: 9px;
}

.screen {
  width: 100%;
  border-radius: 46px;
  background: #040407;
}

/* Dynamic Island over the screenshot's status bar area. */
.island {
  position: absolute;
  top: 3.4%;
  left: 50%;
  transform: translateX(-50%);
  width: 29%;
  height: 4.1%;
  border-radius: 999px;
  background: #000;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.06);
}

/* Side buttons: raised slivers on the rim. */
.btn {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #3c3c41, #202024);
}

.btn.action { left: -2px; top: 20%; height: 4%; }
.btn.vol-up { left: -2px; top: 27%; height: 6.5%; }
.btn.vol-down { left: -2px; top: 35%; height: 6.5%; }
.btn.power { right: -2px; top: 30%; height: 10.5%; background: linear-gradient(270deg, #3c3c41, #202024); }

@media (prefers-reduced-motion: reduce) {
  .float { animation: none; }
  .carousel-item { transition: none; }
}

/* ---------- Sections ---------- */

section { padding: 84px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

h2 {
  font-size: clamp(28px, 4.5vw, 42px);
  letter-spacing: -0.015em;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--secondary);
  font-size: 17px;
}

/* Feature stories: one claim, one real screenshot, alternating. */

.story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.story + .story { margin-top: 72px; }

/* Mobile reads top-down: heading and copy introduce the visual.
   Desktop's split grid re-orders via grid areas below. */
.story-copy { order: 1; }
.story-media { order: 2; }

.story-media {
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
}

.demo-frame { position: relative; }

/* Rest state after the demo finishes: a quiet scrim + one pill. The
   video holds its last frame underneath, so it reads as "finished",
   not broken. */
.demo-replay {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(4, 3, 7, 0.45);
  border: none;
  border-radius: 32px;
  color: #fff;
  font: 600 15px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  cursor: pointer;
}

/* The class's display:flex would otherwise beat the UA's [hidden]
   rule — without this the button never disappears. */
.demo-replay[hidden] { display: none; }

.demo-replay svg { opacity: 0.9; }

.demo-replay:hover { background: rgba(4, 3, 7, 0.6); }

/* Two stacked slides in the story frame, hero-style crossfade. The
   grid trick (both images in one cell) sizes the box to the taller
   slide with no absolute-position height collapse. */
.mix-slides { display: grid; }

.mix-slides img {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.mix-slides img.in { opacity: 1; }

.story-media img,
.story-media video,
.story-media .skeleton {
  width: 100%;
  border-radius: 32px;
  border: 1px solid var(--divider);
  display: block;
}

/* Skeleton drop-in slots: same footprint as the final screenshot so
   swapping in the asset changes nothing else. */
.skeleton {
  aspect-ratio: 920 / 2000;
  border: 1.5px dashed rgba(255, 255, 255, 0.16);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
}

.skeleton-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary);
}

.skeleton-file {
  font-size: 12.5px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--tertiary);
}

.story-copy h3 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 14px;
  text-wrap: balance;
}

.story-copy > p {
  font-size: 16.5px;
  color: var(--secondary);
  text-wrap: pretty;
}

.story-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--tertiary);
}

.story-tiles {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.tile {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.tile img,
.tile .tile-skeleton {
  width: 100%;
  height: 96px;
  object-fit: cover;
  object-position: left center;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: var(--surface);
}

.tile .tile-skeleton { border-style: dashed; border-color: rgba(255, 255, 255, 0.16); }

.tile figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 12.5px;
  color: var(--tertiary);
}

/* Principles band: one statement, typography only. */

.band { text-align: center; }

.principles {
  font-size: clamp(26px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
}

.principles-sub {
  margin: 18px auto 0;
  max-width: 620px;
  font-size: 17px;
  color: var(--secondary);
  text-wrap: pretty;
}

/* FAQ */

.faq { max-width: 680px; margin: 0 auto; }

details {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  color: var(--tertiary);
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.2s ease;
}

details[open] summary::after { transform: rotate(45deg); }

details p {
  padding: 0 22px 18px;
  color: var(--secondary);
  font-size: 15px;
}

/* Final CTA */

.final {
  text-align: center;
  position: relative;
}

.final .hero-glow { top: -80px; }

.final h2 { margin-bottom: 10px; }

.final p {
  color: var(--secondary);
  font-size: 17px;
  margin-bottom: 32px;
}

/* Footer */

footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: var(--secondary);
  transition: color 0.15s ease;
}

.footer-links a:hover { color: var(--text); }

.footer-note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--tertiary);
  max-width: 560px;
}

/* Legal pages */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal h1 {
  font-size: 34px;
  margin-bottom: 6px;
}

.legal .updated {
  color: var(--tertiary);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 21px;
  margin: 36px 0 12px;
}

.legal p, .legal li {
  color: var(--secondary);
  font-size: 15.5px;
  margin-bottom: 12px;
}

.legal ul { padding-left: 22px; }

.legal strong { color: var(--text); }

.legal a { color: var(--accent); }

/* Reveal animation */

.reveal {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.reveal.in { opacity: 1; }

/* On phones the slide-up reveal is a feature (content animates in as
   you scroll); on desktop the same motion read as a scroll bump, so
   it stays fade-only there. */
@media (max-width: 999px) {
  .reveal {
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .reveal.in { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero { padding: 48px 0; }
  section { padding: 64px 0; }
  .carousel { --phone-w: min(240px, 62vw); }
  .phone-shot { border-radius: 47px; }
  .phone-shot::after { border-radius: 47px; }
  .phone-bezel { border-radius: 44px; padding: 8px; }
  .screen { border-radius: 37px; }
}

/* Desktop: the centered stack reads as a narrow mobile column on wide
   screens, so >=1000px switches to a split hero: copy left, phone fan
   right, both vertically centered. Same HTML as mobile. Hero type and
   phone size scale with the viewport; a second tier at >=1440px keeps
   large monitors filled instead of framing a smaller site. */
@media (min-width: 1000px) {
  /* The desktop design was reviewed and approved through Chrome's
     67% page zoom on localhost (measured from the browser profile,
     2026-08-27) — at 100% it reads oversized. This bakes that
     approved rendering in as the true size. Mobile is untouched. */
  body { zoom: 0.67; }

  .wrap { max-width: 1440px; padding: 0 32px; }

  /* Inline nav with CTA; hamburger is mobile-only. Sized to read from
     a normal desk distance, not a shrunken mobile bar. */
  .menu-btn, .site-menu { display: none; }

  .nav-inner { height: 96px; }
  .brand { font-size: 21px; gap: 12px; }
  .brand img { width: 42px; height: 42px; border-radius: 11px; }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 38px;
  }

  .nav-links a {
    font-size: 16.5px;
    font-weight: 500;
    color: var(--secondary);
    transition: color 0.15s ease;
  }

  .nav-links a:hover { color: var(--text); }

  .nav-links .nav-cta {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    padding: 12px 26px;
    border-radius: 999px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .nav-links .nav-cta:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(252, 68, 12, 0.35);
  }

  .hero { text-align: left; padding: 112px 0 104px; }

  .hero-center {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    grid-template-areas:
      "title phone"
      "sub phone"
      "cta phone";
    align-content: center;
    column-gap: 104px;
  }

  .hero-center h1 {
    grid-area: title;
    font-size: clamp(54px, 5.2vw, 88px);
  }

  .hero-center .sub {
    grid-area: sub;
    margin: 0 0 48px;
    font-size: clamp(20px, 1.4vw, 24px);
    max-width: 580px;
  }

  .hero-center .cta-row {
    grid-area: cta;
    align-items: flex-start;
    margin-bottom: 0;
    gap: 10px;
  }

  .cta-row .badge-img { height: 64px; }
  .cta-note { font-size: 14px; }

  .hero-center .carousel-wrap {
    grid-area: phone;
    align-self: center;
  }

  /* Fan sized to its column with a small intentional bleed into the
     column gap, never into the copy. */
  .carousel { --phone-w: clamp(250px, 21vw, 340px); }

  /* Scoped to the hero: the final CTA reuses .hero-glow and must stay
     centered behind its own content. */
  .hero .hero-glow {
    left: 68%;
    top: -100px;
    width: min(1100px, 60vw);
  }

  /* Desktop breathing room: taller sections, larger headings, bigger
     cards and body type. */
  section { padding: 136px 0; }
  h2 { font-size: 54px; }
  .section-head { max-width: 960px; margin-bottom: 84px; }
  .section-head p { font-size: 20px; }

  .story {
    grid-template-columns: 1fr 1.15fr;
    column-gap: 96px;
  }

  .story-copy, .story-media { order: 0; }

  .story + .story { margin-top: 132px; }

  /* Alternate sides; media stays visual-first on mobile. */
  .story:nth-of-type(odd) .story-media { order: 2; }

  .story-media { max-width: 380px; }
  .story-copy h3 { font-size: 40px; margin-bottom: 18px; }
  .story-copy > p { font-size: 18.5px; }
  .story-note { font-size: 15.5px; margin-top: 16px; }
  .story-tiles { gap: 16px; margin-top: 34px; }
  .tile img, .tile .tile-skeleton { height: 120px; border-radius: 16px; }
  .tile figcaption { font-size: 13.5px; }

  .principles-sub { font-size: 19px; max-width: 680px; }

  .faq { max-width: 940px; }
  details { border-radius: 20px; margin-bottom: 14px; }
  summary { font-size: 19px; padding: 24px 28px; }
  details p { font-size: 17px; padding: 0 28px 24px; }

  .final { padding: 160px 0; }
  .final p { font-size: 20px; margin-bottom: 44px; }
  .final .badge-img { height: 64px; }

  footer { padding: 72px 0 56px; }
  .footer-links { gap: 34px; }
  .footer-links a { font-size: 16px; }
  .footer-note { margin-top: 36px; font-size: 14.5px; max-width: 640px; }
}

/* Large monitors: everything steps up another notch so the page uses
   the width instead of centering a smaller site. */
@media (min-width: 1440px) {
  .nav-inner { height: 104px; }

  .hero-center { column-gap: 128px; }

  section { padding: 152px 0; }
  h2 { font-size: 62px; }
  .section-head { max-width: 1080px; margin-bottom: 96px; }
  .section-head p { font-size: 21px; }

  .story { column-gap: 120px; }
  .story + .story { margin-top: 160px; }
  .story-media { max-width: 420px; }
  .story-copy h3 { font-size: 46px; }
  .story-copy > p { font-size: 20px; }
  .story-note { font-size: 16.5px; }
  .tile img, .tile .tile-skeleton { height: 136px; }
  .tile figcaption { font-size: 14px; }

  .principles-sub { font-size: 20px; }

  .faq { max-width: 1100px; }
  summary { font-size: 21px; padding: 26px 32px; }
  details p { font-size: 18.5px; padding: 0 32px 26px; }

  .final { padding: 180px 0; }
  .final p { font-size: 22px; }
  .final .badge-img, .cta-row .badge-img { height: 68px; }
}


/* ---------- Waitlist modal ---------- */

.waitlist-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.waitlist-overlay[hidden] { display: none; }

.waitlist-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 36px 28px 28px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

.waitlist-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: var(--tertiary);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.waitlist-close:hover { color: var(--text); }

.waitlist-mark {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  margin: 0 auto 16px;
}

.waitlist-card h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.waitlist-copy {
  font-size: 15px;
  color: var(--secondary);
  margin-bottom: 20px;
  text-wrap: pretty;
}

#waitlist-form { display: flex; flex-direction: column; gap: 10px; }

/* Same specificity trap as .demo-replay: an explicit display beats
   the UA's [hidden] rule. Without this the form (still saying
   "Joining") sits above the success checkmark. */
#waitlist-form[hidden] { display: none; }

#waitlist-email {
  width: 100%;
  padding: 13px 16px;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: 12px;
  outline: none;
}

#waitlist-email:focus { border-color: var(--accent); }

#waitlist-email::placeholder { color: var(--tertiary); }

#waitlist-submit {
  width: 100%;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#waitlist-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(252, 68, 12, 0.35);
}

#waitlist-submit:disabled { opacity: 0.7; cursor: default; }

.waitlist-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--tertiary);
}

.waitlist-check {
  width: 52px;
  height: 52px;
  margin: 4px auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}

.waitlist-done { animation: waitlist-in 0.35s ease; }

.waitlist-done[hidden] { display: none; animation: none; }

@keyframes waitlist-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
