/* Robin waitlist page. Values from the handover:
   Brain/Robin/Design/handovers/2026-10-11-waitlist/handover.md (in ringaround-marketing). */
:root {
  --page: #16233C;
  --field: #0F1A2E;
  --field-border: #2A3B5C;
  --coral: #F79070;
  --coral-hover: #FFA285;
  --coral-pressed: #E87E5E;
  --on-coral: #16233C;
  --headline: #FFFFFF;
  --subhead: #B4C2DD;
  --muted: #93A6CC;
  --placeholder: #8A9CC0;
  --names: #DCE3F0;
  --frame-border: #33456A;
  --cream: #F8F0DE;
  --ring: 0 0 0 4px rgba(247, 144, 112, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--page); }
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--page);
  color: var(--headline);
  font-family: Figtree, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
input, select, button { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr-only, .hp {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.hp { left: -9999px; }

/* ---------- Shared: screen shell and brand ---------- */
.screen {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 12px; height: 44px; flex: none; }
.wordmark { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }

.face { position: relative; width: 44px; height: 44px; flex: none; border-radius: 99px; background: var(--coral); padding: 2px; }
.face-inner { position: relative; width: 100%; height: 100%; border-radius: 99px; background: var(--cream); overflow: hidden; }
.face-inner img, .face-inner svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.face-phone { transform-origin: 38% 52%; animation: ph_ring 4.6s ease-in-out infinite; }
.face-phone.still { animation: none; }
.face-brow { animation: rb_brow 3.6s ease-in-out infinite; transform-box: fill-box; }
.face-dot { animation: rb_dot 1.5s ease-in-out infinite; }
.face-dot.d2 { animation-delay: 0.22s; }
.face-dot.d3 { animation-delay: 0.44s; }
@keyframes ph_ring { 0%, 60%, 100% { transform: rotate(0deg); } 68% { transform: rotate(-7deg); } 76% { transform: rotate(7deg); } 84% { transform: rotate(-4deg); } 92% { transform: rotate(3deg); } }
@keyframes rb_brow { 0%, 55%, 100% { transform: translateY(0); } 68%, 84% { transform: translateY(-6px); } }
@keyframes rb_dot { 0%, 100% { opacity: 0.2; transform: translateY(2px); } 50% { opacity: 1; transform: translateY(-2px); } }

/* ---------- Fields and buttons ---------- */
input[type="email"], select {
  width: 100%;
  min-width: 0;
  background: var(--field);
  border: 1.5px solid var(--field-border);
  border-radius: 14px;
  color: #FFFFFF;
  font-size: 17px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="email"] { padding: 0 20px; }
input::placeholder { color: var(--placeholder); opacity: 1; }
input[type="email"]:focus, select:focus { border-color: var(--coral); box-shadow: var(--ring); }
.join.is-error input[type="email"] { border-color: var(--coral); }

.join button, .primary {
  border: none;
  border-radius: 14px;
  background: var(--coral);
  color: var(--on-coral);
  font-size: 17px;
  font-weight: 700;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}
.join button:hover, .primary:hover { background: var(--coral-hover); box-shadow: 0 8px 22px -8px rgba(247, 144, 112, 0.6); }
.join button:active, .primary:active { background: var(--coral-pressed); transform: translateY(1px); box-shadow: none; }
.join button:disabled { cursor: progress; background: var(--coral); box-shadow: none; transform: none; opacity: 0.85; }
.join button:focus-visible, .primary:focus-visible, .play:focus-visible, .skip:focus-visible,
.segmented button:focus-visible, .foot a:focus-visible { outline: none; box-shadow: var(--ring); }

/* ---------- Page ---------- */
.page .brand { padding: 40px 96px 0; box-sizing: content-box; }
.hero {
  flex: 1;
  min-height: 0;
  padding: 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
  gap: 64px;
  align-items: center;
}
.copy { display: flex; flex-direction: column; }
.headline {
  font-size: clamp(38px, 4.31vw, 62px);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.subhead {
  margin-top: 24px;
  max-width: 420px;
  font-size: 21px;
  line-height: 1.45;
  color: var(--subhead);
  text-wrap: balance;
}
.join { margin-top: 40px; display: flex; gap: 12px; }
.join input[type="email"] { flex: 1; height: 60px; }
.join button { flex: none; height: 60px; padding: 0 26px; white-space: nowrap; }
.under { margin-top: 12px; font-size: 15px; color: var(--muted); min-height: 1.4em; }

.media { position: relative; }
.glow {
  position: absolute;
  inset: -12% -8%;
  background: radial-gradient(closest-side, rgba(247, 144, 112, 0.14), rgba(247, 144, 112, 0) 100%);
  filter: blur(24px);
  pointer-events: none;
}
.frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: var(--field);
  border: 1px solid var(--frame-border);
  box-shadow: 0 40px 90px -24px rgba(3, 7, 16, 0.75), 0 12px 28px -12px rgba(3, 7, 16, 0.5);
  cursor: pointer;
}
/* Portrait video (9:16): a tall frame centred in the right column, sized to the window height. */
.media[data-shape="portrait"] { justify-self: center; width: min(100%, calc((100vh - 230px) * 9 / 16), 420px); }
.media[data-shape="portrait"] .frame { aspect-ratio: 9 / 16; }
.media[data-shape="portrait"] .glow { inset: -8% -14%; }
/* In the black band under the picture, so the pill never covers Jess's face (Claire, 11 Oct). */
.media[data-shape="portrait"] .play { top: 84%; }
.frame[data-video="missing"] { cursor: default; }
.frame[data-video="missing"] .play { visibility: hidden; }
.poster, .video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--field); }
.video { object-fit: contain; background: #000; }
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 56px;
  padding: 0 24px 0 18px;
  border: none;
  border-radius: 99px;
  background: var(--coral);
  color: var(--on-coral);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(8, 14, 26, 0.45);
  transition: background 0.15s, transform 0.1s;
}
.play svg { width: 20px; height: 20px; flex: none; }
.frame:hover .play, .play:hover { background: var(--coral-hover); }
.play:active { background: var(--coral-pressed); transform: translate(-50%, -50%) scale(0.98); }
.frame.is-playing { cursor: default; }
.frame.is-playing .play, .frame.is-playing .poster { display: none; }

.foot {
  flex: none;
  padding: 0 96px 28px;
  display: flex;
  flex-wrap: wrap;
  column-gap: 28px;
  font-size: 15px;
  color: var(--muted);
}
.foot > a { min-height: 44px; display: flex; align-items: center; color: var(--muted); text-decoration: none; }
.foot > a:hover { color: #FFFFFF; }
.credit { min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; column-gap: 5px; }
.name {
  color: var(--names);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}
a.name:hover { color: var(--coral); }

/* ---------- Confirmation ---------- */
.confirm { padding: 40px 120px 80px; }
.confirm-body { width: 480px; max-width: 100%; margin: auto; padding-top: 48px; display: flex; flex-direction: column; }
.confirm-heading { font-size: 56px; line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; outline: none; }
.confirm-sub { margin-top: 16px; font-size: 18px; line-height: 1.45; color: var(--subhead); }
.fields { margin-top: 40px; display: flex; flex-direction: column; gap: 28px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label, .field-label { font-size: 17px; font-weight: 600; }
.select { position: relative; }
.select select { height: 56px; padding: 0 48px 0 18px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.select select option { background: var(--field); color: #FFFFFF; }
.select svg { position: absolute; right: 16px; top: 16px; width: 24px; height: 24px; pointer-events: none; }
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--field);
  border: 1.5px solid var(--field-border);
  border-radius: 14px;
}
.segmented button {
  height: 46px;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  background: transparent;
  color: var(--subhead);
  transition: background 0.15s, color 0.15s;
}
.segmented button[aria-checked="true"] { background: var(--coral); color: var(--on-coral); }
.note { margin-top: -6px; font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.actions { margin-top: 44px; display: flex; flex-direction: column; gap: 6px; }
.primary { height: 56px; }
.skip { height: 44px; border: none; background: transparent; color: var(--muted); font-size: 16px; font-weight: 600; border-radius: 10px; }
.skip:hover { color: #FFFFFF; }

/* ---------- Short desktop windows: scroll rather than squeeze ---------- */
@media (min-width: 900px) and (max-height: 720px) {
  .hero { padding-top: 48px; padding-bottom: 48px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 899px) {
  .page .brand { padding: 24px 24px 0; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 32px 24px 40px; flex: none; }
  .headline { font-size: 38px; line-height: 1.06; letter-spacing: -0.035em; }
  .subhead { max-width: 320px; font-size: 18px; }
  .join { flex-direction: column; }
  .join input[type="email"], .join button { height: 56px; width: 100%; flex: none; }
  .under { text-align: center; }
  .media { margin-top: 28px; }
  .media[data-shape="portrait"] { width: 100%; }
  .frame { border-radius: 16px; }
  .play { height: 44px; padding: 0 18px 0 14px; font-size: 15px; }
  .play svg { width: 16px; height: 16px; }
  .foot { padding: 0 24px 20px; margin-top: auto; }

  .confirm { padding: 24px 24px 32px; }
  .confirm-body { width: auto; margin: 0; padding-top: 0; flex: 1; }
  .confirm-heading { margin-top: 48px; font-size: 42px; line-height: 1.06; }
  .confirm-sub { margin-top: 12px; font-size: 17px; }
  .fields { margin-top: 32px; gap: 26px; }
  .actions { margin-top: auto; padding-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
