/* Somo public landing (getsomo.ai). Builds on tokens.css, which is
   somo-ai-web/src/styles/colors_and_type.css copied in at build time, so the
   Amber Horizon tokens have one source of truth. No raw brand hex here
   except where a token does not exist. */

:root {
  --page-bg: var(--surface);
  --page-fg: var(--navy);
  --page-muted: var(--slate-600);
  --card-bg: var(--white);
  --card-border: var(--slate-200);
  --line: var(--slate-200);
  --line-strong: var(--slate-300);
  --btn-bg: var(--navy);
  --btn-bg-hover: var(--navy-600);
  --btn-fg: var(--white);
  --input-bg: var(--white);
  --input-border: var(--slate-300);
  --hl: var(--amber-200);
  --tag-bg: var(--slate-100);
  --tag-fg: var(--slate-600);
  --ok-fg: var(--success-700);
  --err-fg: var(--danger-700);
  --mark-back: var(--sky);
  --mark-back-opacity: 0.35;
  --mark-mid: var(--navy);
  --how-bg: var(--white);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: var(--navy-900);
    --page-fg: var(--white);
    --page-muted: var(--slate-300);
    --card-bg: var(--navy-700);
    --card-border: var(--navy-500);
    --line: var(--navy-500);
    --line-strong: var(--navy-500);
    --btn-bg: var(--sky-600);
    --btn-bg-hover: var(--sky-700);
    --btn-fg: var(--white);
    --input-bg: var(--navy-800);
    --input-border: var(--navy-500);
    --hl: transparent;
    --tag-bg: var(--navy-600);
    --tag-fg: var(--slate-300);
    --ok-fg: var(--success-200);
    --err-fg: var(--danger-300);
    --mark-back-opacity: 0.55;
    --mark-mid: var(--navy-900);
    --how-bg: var(--navy-800);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--page-bg); color: var(--page-fg); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
  color: var(--page-fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--lh-normal);
}
main { flex: 1; }
em, i, cite { font-style: normal; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.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;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-lg);
  font: inherit;
  font-size: 16px;
  font-weight: var(--weight-bold);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: var(--radius-md); }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--page-bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--page-fg); text-decoration: none; }
.brand:hover { text-decoration: none; }
.mark-back { fill: var(--mark-back); opacity: var(--mark-back-opacity); }
.mark-mid { fill: var(--mark-mid); }
@media (prefers-color-scheme: dark) { .mark-mid { stroke: #2A2A45; stroke-width: 1.5; } }
.wordmark-text, .foot-brand { font-weight: var(--weight-extrabold); font-size: 21px; letter-spacing: -0.02em; line-height: 1; }
.wordmark-ai { color: var(--amber); margin-left: 4px; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { padding: 88px 0 96px; scroll-margin-top: 68px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--card-bg);
  color: var(--page-muted);
  font-size: 13px;
  font-weight: var(--weight-medium);
  line-height: 1;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.hero-title {
  margin: 0 0 16px;
  font-size: clamp(42px, 6.2vw, 68px);
  font-weight: var(--weight-extrabold);
  line-height: 1.03;
  letter-spacing: -0.035em;
  color: var(--page-fg);
}
.hero-sub {
  margin: 0 0 28px;
  font-size: 21px;
  line-height: 1.45;
  font-weight: var(--weight-medium);
  color: var(--page-muted, var(--slate));
  max-width: 30ch;
}
.hl {
  background: linear-gradient(transparent 62%, var(--hl) 62%, var(--hl) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 2px;
}

.points { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 14px; }
.points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: var(--weight-medium);
  color: var(--page-fg);
  line-height: 1.35;
}
.points svg {
  flex: none;
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 50%;
  background: var(--amber);
  fill: none;
  stroke: var(--navy);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Waitlist ────────────────────────────────────────────────── */
.waitlist { max-width: 540px; }
.waitlist-row { display: flex; gap: 10px; }
.waitlist input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-lg);
  background: var(--input-bg);
  color: var(--page-fg);
  font: inherit;
  font-size: 16px;
}
.waitlist input[type="email"]::placeholder { color: var(--slate-400); }
.waitlist input[type="email"][aria-invalid="true"] { border-color: var(--err-fg); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.waitlist-status { min-height: 24px; margin: 10px 0 4px; font-size: 15px; font-weight: var(--weight-medium); color: var(--page-muted); }
.waitlist-status.is-ok { color: var(--ok-fg); }
.waitlist-status.is-err { color: var(--err-fg); }
.waitlist-meta { margin: 0; font-size: 14px; line-height: 1.6; color: var(--page-muted); }
.waitlist-meta strong { color: var(--page-fg); font-weight: var(--weight-bold); }
.meta-sep { display: inline-block; width: 4px; height: 4px; margin: 0 10px 3px; border-radius: 50%; background: var(--slate-400); vertical-align: middle; }

/* ── Hero visual: a lesson slide, a quiz and narration, stacked like the mark ── */
.hero-visual { display: flex; justify-content: center; }
.stack { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1 / 0.96; }
.card {
  position: absolute;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-lg);
}
.card-back {
  inset: 0 18% 34% 0;
  background: var(--sky);
  opacity: 0.22;
  border: 0;
  box-shadow: none;
  transform: rotate(-7deg);
}
.card-mid {
  inset: 3% 2% 40% 12%;
  background: var(--navy);
  border-color: var(--navy-600);
  transform: rotate(-3deg);
  padding: 22px 24px;
}
.card-front {
  inset: 40% 0 0 4%;
  padding: 22px 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-xl);
}
.quiz { display: grid; gap: 9px; width: 78%; margin-left: auto; }
.quiz .tag { justify-self: start; background: var(--navy-600); color: var(--slate-300); }
.q-opt { display: flex; align-items: center; gap: 8px; }
.radio { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--slate-500); flex: none; }
.q-opt.on .radio { border-color: var(--amber); background: var(--amber); }
.card-mid .q-line { background: var(--navy-500); }
.q-line { height: 8px; border-radius: 4px; background: var(--line); }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  background: var(--tag-bg);
  color: var(--tag-fg);
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.02em;
}
.tag-amber { background: var(--amber-100); color: var(--amber-800); }
.slide-top { display: flex; justify-content: space-between; align-items: center; }
.slide-count { font-size: 11px; font-weight: var(--weight-medium); color: var(--page-muted); font-variant-numeric: tabular-nums; }
.slide-title { font-size: 19px; font-weight: var(--weight-extrabold); letter-spacing: -0.02em; line-height: 1.2; color: var(--page-fg); }
.slide-body { display: grid; gap: 10px; }
.s-bullet { display: flex; align-items: center; gap: 10px; }
.s-bullet span { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex: none; }
.cite { display: flex; align-items: center; gap: 8px; }
.cite-num { font-size: 11px; font-weight: var(--weight-bold); color: var(--sky-600); }
@media (prefers-color-scheme: dark) { .cite-num { color: var(--sky-500); } }
.narration {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  background: var(--tag-bg);
}
.play {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  position: relative;
}
.play::after {
  content: "";
  position: absolute;
  left: 11px; top: 8px;
  border-left: 9px solid var(--amber);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 26px; }
.wave i { flex: 1; border-radius: 2px; background: var(--slate-400); }
.wave i:nth-child(-n+8) { background: var(--amber); }
.narration-label { font-size: 12px; font-weight: var(--weight-bold); color: var(--page-muted); white-space: nowrap; }

/* ── How it works ────────────────────────────────────────────── */
.how { background: var(--how-bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; }
.how-inner { max-width: 860px; text-align: center; }
.how-title { margin: 0 0 12px; font-size: 14px; font-weight: var(--weight-bold); letter-spacing: 0.06em; text-transform: uppercase; color: var(--page-muted); }
.how-line { margin: 0 auto 24px; font-size: 22px; line-height: 1.5; font-weight: var(--weight-medium); color: var(--page-fg); letter-spacing: -0.01em; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--page-bg);
  font-size: 14px;
  font-weight: var(--weight-medium);
  color: var(--page-fg);
}

/* ── Footer ──────────────────────────────────────────────────── */
.foot { padding: 28px 0; font-size: 14px; color: var(--page-muted); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-brand { font-size: 17px; color: var(--page-fg); }
.foot a { color: var(--page-fg); font-weight: var(--weight-medium); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.foot a:hover { text-decoration-color: var(--amber); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-visual { order: 2; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero { padding: 40px 0 56px; }
  .points li { font-size: 17px; }
  .waitlist-row { flex-direction: column; }
  .waitlist .btn { width: 100%; }
  .waitlist input[type="email"] { flex: none; width: 100%; }
  .card-back { inset: 0 18% 34% 4%; }
  .how { padding: 48px 0; }
  .how-line { font-size: 18px; }
  .card-front { padding: 16px 18px 14px; gap: 10px; }
  .card-mid { padding: 16px 18px; }
  .slide-title { font-size: 16px; }
  .meta-sep { display: none; }
  .waitlist-meta strong { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Waveform bar heights (no inline styles: the CSP blocks them). */
.wave i:nth-child(1) { height: 30%; }
.wave i:nth-child(2) { height: 60%; }
.wave i:nth-child(3) { height: 85%; }
.wave i:nth-child(4) { height: 45%; }
.wave i:nth-child(5) { height: 70%; }
.wave i:nth-child(6) { height: 95%; }
.wave i:nth-child(7) { height: 55%; }
.wave i:nth-child(8) { height: 35%; }
.wave i:nth-child(9) { height: 75%; }
.wave i:nth-child(10) { height: 50%; }
.wave i:nth-child(11) { height: 90%; }
.wave i:nth-child(12) { height: 40%; }
.wave i:nth-child(13) { height: 65%; }
.wave i:nth-child(14) { height: 30%; }
.wave i:nth-child(15) { height: 80%; }
.wave i:nth-child(16) { height: 45%; }
.wave i:nth-child(17) { height: 60%; }
.wave i:nth-child(18) { height: 35%; }
.wave i:nth-child(19) { height: 70%; }
.wave i:nth-child(20) { height: 25%; }

/* 404 */
.notfound { padding-top: 120px; padding-bottom: 120px; text-align: center; }
.notfound .hero-title { font-size: 40px; }
.notfound p { color: var(--page-muted); margin: 0 0 28px; }

/* Dark mode: a solid amber underline instead of the light highlighter wash,
   which reads muddy on navy. */
@media (prefers-color-scheme: dark) {
  .hl { background: linear-gradient(transparent 88%, var(--amber) 88%, var(--amber) 96%, transparent 96%); }
}
