/* Keycat waitlist, brand v3 "bold blocks" (docs/brand.md): light mode, flat blocks, one black line. */
:root {
  --ink: #111111;
  --paper: #FFFFFF;
  --smoke: #F2F2F2;
  --ash: #555555;
  --night: #1A1A1D;
  --graphite: #222226;
  --fog: #B5B5BD;
  --line: #E4E4E8;
  --sakura: #FF5C8A;
  --yolk: #FFC93C;
  --cobalt: #2563EB;
  --grape: #6D4AFF;
  --grass: #1D8049;
  --navy: #23235F;
  /* roles (light) */
  --bg: var(--paper);
  --text: var(--ink);
  --muted: var(--ash);
  --tile: var(--smoke);
  --accent: var(--sakura);
  --ok: var(--grass);   /* small green text */
  --link: var(--cobalt);

  --heading: 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, sans-serif;
  --mono: 'Azeret Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}

/* dark: only the neutrals flip (brand §3); the yolk / cobalt / grape / sakura blocks stay */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--ink);
    --text: var(--paper);
    --muted: var(--fog);
    --tile: var(--graphite);
    --line: #2E2E33;
    --ok: #A6D189;
    --link: #9FD0F0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--ink);
  --text: var(--paper);
  --muted: var(--fog);
  --tile: var(--graphite);
  --line: #2E2E33;
  --ok: #A6D189;
  --link: #9FD0F0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 700 16px/1.5 var(--body);
  min-height: 100dvh;
}
img { display: block; }
b, strong { font-weight: 800; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }

.page {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 20px 16px 40px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

h1, h2 { font-family: var(--heading); font-weight: 900; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(32px, 9.2vw, 40px); line-height: 1; margin-bottom: 12px; }
h2 { font-size: 26px; line-height: 1.05; margin-bottom: 14px; }
.eyebrow { margin: 0 0 8px; font: 500 13px/1 var(--mono); color: var(--muted); letter-spacing: 0.02em; text-transform: uppercase; }
.mark { font: 600 13px/1 var(--mono); color: var(--ok); }

/* ---- hero ---- */
.hero { padding-top: 4px; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mascot { width: 84px; height: 84px; }
.wordmark { font: 900 30px/1 var(--heading); letter-spacing: -0.02em; color: var(--text); }
.sub { margin: 0 0 20px; color: var(--muted); font-size: 16px; line-height: 1.45; text-wrap: pretty; }

/* ---- signup form ---- */
.waitlist { margin: 0; }
.label { display: block; margin-bottom: 6px; font: 500 13px/1 var(--mono); color: var(--muted); letter-spacing: 0.02em; }
.row { display: grid; gap: 10px; }

input[type="email"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 2px solid var(--text);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font: 700 16px/1.3 var(--body);
  -webkit-appearance: none; appearance: none;
}
input[type="email"]::placeholder { color: var(--muted); opacity: 1; }
input[type="email"]:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px var(--line); }

/* CTA: the mode's pill (ink on paper), flat; the press is a sakura ring */
.key {
  position: relative;
  width: 100%;
  min-height: 52px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font: 900 17px/1.2 var(--heading);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 90ms ease, box-shadow 90ms ease;
  -webkit-tap-highlight-color: transparent;
}
.key:hover { opacity: 0.92; }
.key:active, .key.is-pressed { transform: scale(0.97); box-shadow: 0 0 0 5px var(--sakura); }
.key:disabled { cursor: progress; }
.key:focus-visible { outline-offset: 4px; }
.key-small { width: auto; min-height: 44px; padding: 10px 18px; font-size: 15px; }

.hp { display: none; }
.status { margin: 10px 0 0; font-size: 14px; color: var(--sakura); font-weight: 800; }
.status:empty { display: none; }

.note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* success state */
.done { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 6px 0 0; }
.mascot-done { width: 96px; height: 96px; }
.done-title { margin: 6px 0 0; font: 900 26px/1.1 var(--heading); letter-spacing: -0.02em; text-wrap: balance; }
.done-title:focus { outline: none; }
.done-sub { margin: 0; }
.done-link { color: var(--link); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; font-weight: 600; }
.share-link { width: 100%; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 14px; background: var(--tile); color: var(--text); font: 500 14px var(--mono); }

/* ---- what Keycat is ---- */
.what { margin-top: 48px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cards li { position: relative; background: var(--tile); border-radius: 24px; padding: 18px 18px 20px; }
.cards li:nth-child(1) { background: var(--yolk); color: var(--ink); }
.cards li:nth-child(1) p { color: var(--ink); }
.cards li:nth-child(2) { background: var(--cobalt); color: var(--paper); }
.cards li:nth-child(2) p { color: var(--paper); }
.cards li:nth-child(3) { background: var(--grape); color: var(--paper); }
.cards li:nth-child(3) p { color: var(--paper); }
.cards h3 { margin: 0 0 6px; font: 900 20px/1.1 var(--heading); letter-spacing: -0.015em; }
.cards p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.45; }
.card-cat { position: absolute; right: 14px; top: -22px; width: 64px; height: 64px; }
.cards li:first-child { padding-right: 84px; }

/* ---- why daily reps work ---- */
.proof { margin-top: 48px; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stats li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.stats li:first-child { border-top: 0; padding-top: 4px; }
.stat-num { font: 900 44px/1 var(--heading); letter-spacing: -0.03em; color: var(--sakura); }
.stat-num small { font-size: 26px; }
.stats p { margin: 2px 0 0; font-size: 15px; line-height: 1.45; color: var(--text); }
.stats p b { color: var(--sakura); }
.stats sup a { color: var(--muted); text-decoration: none; font: 500 11px var(--mono); margin-left: 3px; }
.sources { margin: 12px 0 0; padding-left: 18px; font: 500 12px/1.6 var(--mono); color: var(--muted); }
.sources a { color: var(--muted); text-underline-offset: 3px; }
.sources a:hover { color: var(--text); }

/* ---- why 5 minutes ---- */
.why { margin-top: 44px; }
.points { list-style: none; margin: 0; padding: 4px 18px; background: var(--tile); border-radius: 24px; }
.points li { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; font-weight: 800; font-size: 17px; }
.points li + li { border-top: 1px solid var(--line); }

/* ---- faq ---- */
.faq { margin-top: 44px; }
.faq h2 { font-size: 24px; margin-bottom: 8px; }
.faq dl { margin: 0; }
.faq dt { padding-top: 16px; font-weight: 900; font-size: 17px; }
.faq dd { margin: 4px 0 0; padding-bottom: 16px; color: var(--muted); border-bottom: 1px solid var(--line); }
.faq dd:last-child { border-bottom: 0; }

/* ---- bottom form ---- */
.bottom { margin-top: 44px; padding: 20px 18px 22px; background: var(--tile); border-radius: 28px; }
.bottom h2 { margin-bottom: 12px; }
.bottom input[type="email"] { background: var(--bg); }
.bottom .share-link { background: var(--bg); }

/* ---- footer ---- */
.foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.social { display: flex; flex-wrap: wrap; gap: 8px 20px; font: 500 14px/1 var(--mono); }
.theme { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); font: 800 13px/1 var(--body); cursor: pointer; }
.theme:hover { border-color: var(--text); }
.theme-dot { width: 12px; height: 12px; border-radius: 999px; background: var(--text); box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 4px var(--text); }
.social a { color: var(--text); text-decoration: none; padding: 6px 0; }
.social a:hover { color: var(--sakura); }
.fine { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* ---- wider screens ---- */
@media (min-width: 720px) {
  .page { width: min(100%, 680px); padding-top: 56px; }
  .mascot { width: 120px; height: 120px; }
  .wordmark { font-size: 40px; }
  h1 { font-size: 58px; margin-bottom: 16px; }
  h2 { font-size: 34px; }
  .sub { font-size: 20px; margin-bottom: 26px; }
  .row { grid-template-columns: 1fr auto; align-items: start; }
  .key { width: auto; padding-inline: 26px; }
  .done-title { font-size: 34px; }
  .cards { grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 24px; }
  .cards li:first-child { padding-right: 18px; padding-bottom: 76px; }
  .card-cat { top: auto; bottom: 8px; right: 12px; width: 64px; height: 64px; }
  .stats li { grid-template-columns: 120px 1fr; gap: 18px; }
  .stat-num { font-size: 54px; }
  .stats p { font-size: 16px; }
  .bottom { padding: 28px 28px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .key, .key-small { transition: none; }
}
