﻿/* Math In Tune waitlist. Tokens copied from the app (mathintune-app/app/globals.css); sources in ../README.md */
@font-face { font-family: "EB Garamond"; src: url("/assets/EBGaramond.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/assets/EBGaramond-Italic.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("/assets/InterDisplay.woff2") format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }
:root {
  --bg: #0a0a0b;
  --surface-1: #141416;
  --surface-2: #1c1c1f;
  --surface-3: #26262a;
  --label: #ffffff;
  --label-2: rgba(235, 235, 245, .62);
  --label-3: rgba(235, 235, 245, .45);
  --sep: rgba(84, 84, 88, .55);
  --fill: rgba(120, 120, 128, .24);
  --fill-2: rgba(120, 120, 128, .16);
  --tint: #ffd400;
  --tint-bg: rgba(255, 212, 0, .14);
  --on-tint: #0a0a0b;
  --err: #ff6b61;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, system-ui, sans-serif;
  --font-brand: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-head: "Inter Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --r-sheet: 28px; --r-card: 16px; --r-ctl: 10px; --r-pill: 9999px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--label); font: 400 17px/1.4 var(--font-ui); overflow-x: hidden; }
a { color: var(--label); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--tint); color: var(--on-tint); padding: 10px 14px; border-radius: var(--r-pill); font-weight: 600; }
.skip:focus { top: 12px; }

.top { height: 56px; display: flex; align-items: center; padding: 0 16px; max-width: 1180px; margin: 0 auto; }
.word { font: 500 15px/1 var(--font-brand); letter-spacing: .28em; text-transform: uppercase; color: var(--label-2); }
.word.small { font-size: 13px; }

main { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
/* Mobile order: headline, lead, phone, form. .copy is flattened into the hero grid. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "h1" "lead" "stage" "form"; padding: 8px 0 40px; }
.copy { display: contents; }
h1 { grid-area: h1; font: 700 40px/1.06 var(--font-head); letter-spacing: -.022em; margin: 4px 0 0; }
.lead { grid-area: lead; font: 400 21px/1.35 var(--font-brand); color: var(--label-2); margin: 12px 0 22px; max-width: 28em; }
.formwrap { grid-area: form; }
.stage { grid-area: stage; }

.stage { position: relative; display: grid; place-items: center; height: 340px; margin: 0 0 16px; }
.orbit { position: absolute; width: min(340px, 92vw); height: auto; overflow: visible; }
.orbit .spin { transform-origin: 256px 256px; animation: spin 24s linear infinite; }
.phone {
  position: relative; margin: 0; height: 100%; aspect-ratio: 406 / 720; border-radius: 28px; overflow: hidden; background: #000;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .06), 0 0 0 1px var(--sep), 0 -8px 40px rgba(0, 0, 0, .5);
}
.phone video { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip-toggle { position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--fill); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.clip-toggle span { width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.clip-toggle.is-paused span { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; margin-left: 4px; }

.formwrap { width: 100%; max-width: 480px; }
.wl { margin: 0; }
.lbl { display: block; font-size: 13px; font-weight: 500; color: var(--label-2); margin: 0 0 8px 2px; }
.row { display: flex; flex-direction: column; gap: 10px; }
input[type=email] {
  width: 100%; height: 52px; padding: 0 18px; border: 0; border-radius: var(--r-ctl);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--sep); color: var(--label); font: 400 17px var(--font-ui);
}
input[type=email]::placeholder { color: var(--label-3); }
input[type=email]:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--tint); }
input[aria-invalid=true] { box-shadow: inset 0 0 0 1.5px var(--err); }
.btn { height: 52px; padding: 0 24px; border: 0; border-radius: var(--r-pill); background: var(--tint); color: var(--on-tint); font: 600 17px/1 var(--font-ui); cursor: pointer; transition: transform .18s var(--ease), opacity .18s var(--ease); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn-pro { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 14px; padding: 0 20px; border: 0; border-radius: var(--r-pill); background: var(--fill); color: var(--label); font: 500 15px/1 var(--font-ui); cursor: pointer; transition: background .18s var(--ease); }
.btn-pro:hover { background: var(--surface-3); }
.pro-note { margin: 0 0 14px; padding: 14px 16px; border-radius: var(--r-card); background: var(--tint-bg); color: var(--label-2); font-size: 15px; line-height: 1.45; }
.pro-note strong { display: block; color: var(--tint); font-weight: 600; font-size: 16px; }
.linkish { display: inline; background: none; border: 0; padding: 6px 0 0; margin: 0; color: var(--label); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
.err { margin: 8px 2px 0; color: var(--err); font-size: 15px; }
.err:empty { margin: 0; }
.fine { margin: 10px 2px 0; color: var(--label-3); font-size: 13px; line-height: 1.4; }
.fine a { color: var(--label-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { padding: 20px; border-radius: var(--r-card); background: var(--surface-1); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .06); }
.done:focus { outline: none; }
.done-h { margin: 0; font: 700 26px/1.15 var(--font-head); letter-spacing: -.022em; }
.done-s { margin: 6px 0 0; color: var(--label-2); }

.points ul { list-style: none; margin: 0; padding: 8px 0 48px; display: grid; gap: 12px; }
.points li { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-card); background: var(--surface-1); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .06); }
.points img { width: 88px; height: 88px; border-radius: var(--r-ctl); object-fit: cover; background: #000; }
.points h3 { margin: 0 0 2px; font: 600 19px/1.2 var(--font-head); letter-spacing: -.012em; }
.points p { margin: 0; color: var(--label-2); font-size: 15px; line-height: 1.35; }

.foot { max-width: 1180px; margin: 0 auto; padding: 24px 16px 40px; border-top: .5px solid var(--sep); color: var(--label-3); font-size: 14px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.foot p { margin: 0; overflow-wrap: anywhere; }
.foot a { color: var(--label-2); }

@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 520px) {
  .row { flex-direction: row; }
  .row input { flex: 1; min-width: 0; }
  .btn { flex: none; }
  .btn-pro { width: auto; }
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-areas: "stage h1" "stage lead" "stage form";
    grid-template-rows: auto auto 1fr; column-gap: 64px; align-items: start; padding: 48px 0 88px;
  }
  h1 { font-size: 64px; align-self: end; margin-top: 80px; }
  .lead { font-size: 26px; margin: 18px 0 28px; }
  .stage { height: 640px; margin: 0; }
  .orbit { width: 600px; }
  .phone { border-radius: 40px; }
  .points ul { grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 16px 0 88px; }
  .points li { grid-template-columns: 1fr; align-items: start; padding: 16px; }
  .points img { width: 100%; height: auto; aspect-ratio: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
