/* Brand tokens: Brand V2 + docs/05-design-system.md (same values as the app). */
:root {
  --midnight: #0e244c;
  --black-blue: #051528;
  --deep-blue: #0d2da0;
  --med-blue: #1f2df5;
  --light-blue: #e1f1ff;
  --sky-blue: #c2ddf2;
  --aqua: #3fe0b5;
  --seaglass: #dcf3ea;
  --gray: #ededef;
  --white: #fcfcfc;
  --verify-fill: #fff4dc;
  --verify-text: #b7791f;
  --error: #c0392b;
  --grad-ai: linear-gradient(135deg, var(--aqua), var(--med-blue));
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--midnight);
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 400; }
h1 strong, h2 strong { font-weight: 700; }
p { margin: 0; }
a { color: var(--med-blue); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(252, 252, 252, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid rgba(194, 221, 242, 0.6);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand img { width: 150px; }
@media (min-width: 720px) { .brand img { width: 168px; } }
.signin {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  font-weight: 500; font-size: 15px; text-decoration: none; color: var(--midnight);
}
.signin:hover { color: var(--med-blue); }

.podcast-banner { background: var(--midnight); color: #fff; font-size: 15px; padding: 10px 0; text-align: center; }

/* Hero */
.hero { padding: 40px 0 56px; background: linear-gradient(180deg, var(--white) 0%, var(--light-blue) 100%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--med-blue);
  background: var(--light-blue); border: 1px solid var(--sky-blue);
  padding: 4px 12px; border-radius: 999px;
}
.hero .eyebrow { background: var(--white); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-ai); }
h1 { margin-top: 20px; font-size: 40px; letter-spacing: -0.02em; }
@media (min-width: 720px) { h1 { font-size: 56px; } }
.lede { margin-top: 20px; font-size: 19px; max-width: 34em; color: rgba(14, 36, 76, 0.8); }
@media (min-width: 720px) { .lede { font-size: 21px; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note {
  margin-top: 24px; max-width: 34em; padding-left: 14px;
  border-left: 3px solid var(--sky-blue);
  font-size: 16px; color: rgba(14, 36, 76, 0.7);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 12px;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--med-blue); color: #fff; }
.btn-primary:hover { background: var(--deep-blue); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-block { width: 100%; }
.btn:focus-visible, .signin:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(31, 45, 245, 0.35); outline-offset: 2px;
}

/* Phone + example card (mirrors the app's card view) */
.phone { margin: 0 auto; width: 100%; max-width: 340px; }
.phone-screen {
  background: var(--white); border: 1px solid var(--sky-blue); border-radius: 28px;
  padding: 20px 18px 8px;
  box-shadow: 0 1px 2px rgba(14, 36, 76, 0.06), 0 24px 48px -12px rgba(14, 36, 76, 0.22);
  font-size: 14px; line-height: 1.45;
}
.phone figcaption { margin-top: 12px; text-align: center; font-size: 13px; color: rgba(14, 36, 76, 0.55); }
.card-head { display: flex; align-items: center; gap: 12px; }
.avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 600;
  color: var(--midnight); background: var(--seaglass);
}
.card-title { font-size: 17px; font-weight: 600; }
.card-meta { font-size: 12px; color: rgba(14, 36, 76, 0.55); }
.chips { display: flex; gap: 6px; margin: 12px 0 4px; }
.chip { font-size: 11px; font-weight: 500; padding: 2px 10px; border-radius: 999px; background: var(--light-blue); color: var(--med-blue); }
.chip-green { background: var(--seaglass); color: #16775c; }
.sec { padding: 12px 0; border-bottom: 1px solid var(--sky-blue); }
.sec-last { border-bottom: 0; }
.sec-title { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--med-blue); margin-bottom: 4px; }
.sec-title svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.line { color: var(--midnight); }
.prefs { margin-top: 10px; font-size: 12px; color: rgba(14, 36, 76, 0.7); }
.ref { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 2px; border-radius: 6px; background: var(--light-blue); color: var(--med-blue); vertical-align: -4px; }
.ref svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cost {
  display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px;
  font-size: 10px; font-weight: 600; background: var(--verify-fill); color: var(--verify-text);
}
.oh { width: 100%; border-collapse: collapse; font-size: 13px; }
.oh th { text-align: left; font-weight: 500; color: rgba(14, 36, 76, 0.55); padding: 2px 0; }
.oh td { padding: 2px 0; }

/* Sections */
/* Anchor jumps (e.g. Request Alpha Access → #join) land below the sticky top bar. */
section { scroll-margin-top: 72px; }
section h2 { font-size: 30px; letter-spacing: -0.015em; }
@media (min-width: 720px) { section h2 { font-size: 38px; } }
.how, .audience, .join { padding: 64px 0; }
@media (min-width: 720px) { .how, .audience, .join { padding: 88px 0; } }

.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: #fff; border: 1px solid var(--sky-blue); border-radius: var(--radius); padding: 24px; }
.step-num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad-ai); color: #fff; font-weight: 700; font-size: 16px;
}
.steps h3, .aud h3 { margin-top: 16px; font-size: 20px; font-weight: 600; }
.steps p, .aud p { margin-top: 8px; color: rgba(14, 36, 76, 0.75); }

.trust { background: var(--midnight); color: #fff; padding: 64px 0; }
@media (min-width: 720px) { .trust { padding: 88px 0; } }
.trust-inner { display: grid; gap: 32px; }
@media (min-width: 900px) { .trust-inner { grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; } }
.trust-lede { margin-top: 16px; font-size: 19px; color: rgba(255, 255, 255, 0.75); }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.trust-list li { padding-left: 20px; border-left: 3px solid var(--aqua); color: rgba(255, 255, 255, 0.85); }
.trust-list b { color: #fff; font-weight: 600; }

.aud-grid { margin-top: 32px; display: grid; gap: 16px; }
@media (min-width: 800px) { .aud-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.aud { border: 1px solid var(--sky-blue); border-radius: var(--radius); padding: 24px; background: #fff; }
.aud h3 { margin-top: 0; }
.aud-accent { background: var(--light-blue); }

/* Join */
.join { background: var(--gray); }
.join-inner { display: grid; gap: 32px; }
@media (min-width: 900px) { .join-inner { grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; } }
.join-copy p { margin-top: 16px; color: rgba(14, 36, 76, 0.8); }
.join-small { font-size: 15px; }
.form, .form-done { background: #fff; border: 1px solid var(--sky-blue); border-radius: var(--radius); padding: 24px; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
.opt { font-weight: 400; color: rgba(14, 36, 76, 0.5); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; font-size: 16px; font-weight: 400; color: var(--midnight);
  background: #fff; border: 1px solid var(--sky-blue); border-radius: 10px;
}
.form textarea { resize: vertical; min-height: 88px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--med-blue); outline: none; }
.form [aria-invalid="true"] { border-color: var(--error); }
.form-error { color: var(--error); font-size: 15px; }
.form-note { font-size: 13px; color: rgba(14, 36, 76, 0.55); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done-title { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.form-done:focus { outline: none; }

/* Footer */
.footer { background: var(--black-blue); color: rgba(255, 255, 255, 0.75); padding: 40px 0; font-size: 15px; }
.footer-inner { display: grid; gap: 12px; }
.footer img { width: 140px; margin-bottom: 8px; }
.footer a { color: #fff; }
.footer-small { font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.footer-links a { color: rgba(255, 255, 255, 0.75); }
.footer-links a:hover { color: #fff; }

/* Privacy policy */
.legal { padding: 48px 0 72px; }
@media (min-width: 720px) { .legal { padding: 72px 0 96px; } }
.legal-inner { max-width: 760px; }
.legal h1 { margin-top: 0; font-size: 36px; }
@media (min-width: 720px) { .legal h1 { font-size: 44px; } }
.legal-meta { margin-top: 8px; font-size: 14px; color: rgba(14, 36, 76, 0.6); }
.legal h2 { margin-top: 40px; font-size: 22px; font-weight: 600; }
.legal h3 { margin-top: 24px; font-size: 17px; font-weight: 600; }
.legal p, .legal li { margin-top: 12px; color: rgba(14, 36, 76, 0.85); }
.legal ul { margin: 0; padding-left: 20px; }
.legal a { overflow-wrap: anywhere; }
