/* Uses brand/tokens.css (copied to assets/tokens.css). No raw hex here except the fixed keyboard illustration. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--lk-paper);
  color: var(--lk-ink);
  font: 400 17px/1.5 var(--lk-font-sans);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--lk-font-serif); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0; }
a { color: var(--lk-accent); }

.eyebrow { font-size: 12px; line-height: 1.3; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lk-ink-muted); margin-bottom: 16px; }
.lede { font-size: 19px; color: var(--lk-ink-muted); max-width: 34rem; margin-top: 24px; }

/* Wordmark */
.wordmark { font-family: var(--lk-font-serif); font-weight: 600; font-size: 22px; color: var(--lk-ink); text-decoration: none; }
.wordmark span { color: var(--lk-accent); }
.wordmark.small { font-size: 17px; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.nav-cta { font-weight: 600; font-size: 15px; text-decoration: none; padding: 8px 16px; border-radius: var(--lk-radius-pill); border: 1px solid var(--lk-line); color: var(--lk-ink); background: var(--lk-paper-raised); }
.nav-cta:hover { border-color: var(--lk-ink-faint); }

/* Hero */
.hero { display: grid; gap: 48px; padding-top: 32px; padding-bottom: 64px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.05fr 0.95fr; gap: 64px; padding-top: 64px; padding-bottom: 96px; } }

.hero-visual { margin: 0; position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: 5% -5% 0; background: radial-gradient(closest-side, var(--lk-accent-wash), transparent); z-index: -1; }
.hero-visual svg { width: 100%; height: auto; display: block; max-width: 460px; margin: 0 auto; }
.page-title { font-family: var(--lk-font-serif); font-weight: 600; font-size: 14px; fill: var(--lk-ink); }
.n.r { fill: var(--lk-hand-right); }
.n.l { fill: var(--lk-hand-left); }
.n.w { fill: var(--lk-wrong); }
/* Notes drop onto the keys, land with a small bounce, then the next phrase starts. */
.notes .n { animation: drop 3.2s cubic-bezier(.45, 0, .8, .6) infinite both; }
.notes .n:nth-child(2) { animation-delay: .15s; }
.notes .n:nth-child(3) { animation-delay: .3s; }
.notes .n:nth-child(4) { animation-delay: .1s; }
.notes .n:nth-child(5) { animation-delay: .45s; }
.notes .n:nth-child(6) { animation-delay: .6s; }
.notes .n:nth-child(7) { animation-delay: .25s; }
@keyframes drop {
  0%   { transform: translateY(-230px); opacity: 0; }
  8%   { opacity: 1; }
  34%  { transform: translateY(0); }
  38%  { transform: translateY(5px); }
  44%  { transform: translateY(0); }
  86%  { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(0); opacity: 0; }
}
.mark { animation: pop 3.2s ease-out infinite both; }
.mark circle, .mark path { transform-box: fill-box; transform-origin: center; }
@keyframes pop { 0%, 34% { opacity: 0; } 40%, 86% { opacity: 1; } 100% { opacity: 0; } }
.mark circle { animation: bump 3.2s cubic-bezier(.3, 1.6, .5, 1) infinite both; }
@keyframes bump { 0%, 36% { transform: scale(0); } 46%, 100% { transform: scale(1); } }
.page { animation: settle 700ms cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes settle { from { opacity: 0; transform: translate(28px, 40px) rotate(-12deg); } }
.hero-copy > * { animation: rise 520ms cubic-bezier(.2, .9, .3, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: 60ms; }
.hero-copy > *:nth-child(3) { animation-delay: 120ms; }
.hero-copy > *:nth-child(4) { animation-delay: 180ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.mark circle { stroke-width: 0; }
.mark path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mark.ok circle { fill: var(--lk-correct); }
.mark.bad circle { fill: var(--lk-wrong); }

/* Form */
.join { margin-top: 32px; display: grid; gap: 12px; max-width: 30rem; }
.field { display: grid; gap: 6px; }
.field span { font-size: 15px; font-weight: 600; }
.field input, .field select {
  font: inherit; color: var(--lk-ink); width: 100%;
  background: var(--lk-paper-raised); border: 1px solid var(--lk-line); border-radius: var(--lk-radius);
  padding: 13px 14px; min-height: 50px; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--lk-ink-muted) 50%), linear-gradient(135deg, var(--lk-ink-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input::placeholder { color: var(--lk-ink-faint); }
.field input:focus, .field select:focus { outline: 2px solid var(--lk-accent); outline-offset: 1px; border-color: transparent; }
.field [aria-invalid="true"] { border-color: var(--lk-ink); }

button, .button {
  font: 600 17px/1 var(--lk-font-sans); cursor: pointer; text-decoration: none; text-align: center;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: var(--lk-radius-pill);
  background: var(--lk-accent); color: var(--lk-accent-ink);
  transition: transform 140ms cubic-bezier(.3, 1.5, .5, 1), filter 140ms ease-out;
}
button:hover, .button:hover { filter: brightness(1.08); }
button:active, .button:active { transform: scale(0.96) translateY(1px); }
.button:hover, button:hover { transform: translateY(-2px); }
button:focus-visible, .button:focus-visible { outline: 2px solid var(--lk-accent); outline-offset: 3px; }
button[disabled] { opacity: 0.6; cursor: progress; }
.join button { margin-top: 4px; }
.form-note { font-size: 14px; color: var(--lk-ink-muted); }
.form-note.error { color: var(--lk-ink); font-weight: 600; }
.form-note.error::before { content: "✕  "; color: var(--lk-wrong); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.joined { margin-top: 32px; padding: 24px; border-radius: var(--lk-radius-lg); background: var(--lk-paper-raised); border: 1px solid var(--lk-line); max-width: 30rem; }
.joined h3 { margin-bottom: 8px; }
.joined h3::before { content: "✓"; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lk-accent); color: var(--lk-accent-ink); font: 600 15px/1 var(--lk-font-sans); margin-right: 10px; vertical-align: 3px; }
.joined p { color: var(--lk-ink-muted); }

/* Steps */
.steps { padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--lk-line); }
.steps ol { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 32px; }
@media (min-width: 820px) { .steps ol { grid-template-columns: repeat(3, 1fr); } }
.steps li { display: grid; gap: 12px; align-content: start; }
.steps p { color: var(--lk-ink-muted); }
.num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--lk-accent-wash); color: var(--lk-accent); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Why */
.why { display: grid; gap: 32px; padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 820px) { .why { grid-template-columns: 1fr 1fr; gap: 64px; } }
.why > div { background: var(--lk-paper-sunk); border-radius: var(--lk-radius-lg); padding: 32px; }
.why h2 { font-size: 26px; margin-bottom: 12px; }
.why p { color: var(--lk-ink-muted); }

/* FAQ */
.faq { padding-top: 64px; padding-bottom: 64px; max-width: 48rem; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--lk-line); padding: 18px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--lk-line); }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lk-ink-muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--lk-ink-muted); max-width: 34rem; }

/* Final */
.final { text-align: center; padding-top: 64px; padding-bottom: 96px; display: grid; gap: 24px; justify-items: center; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--lk-line); font-size: 14px; color: var(--lk-ink-muted); }
.foot a { color: var(--lk-ink-muted); }

/* Prose pages */
.prose { max-width: 40rem; padding-top: 32px; padding-bottom: 96px; }
.prose h1 { font-size: 40px; margin-bottom: 24px; }
.prose h2 { font-size: 22px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--lk-ink-muted); margin-bottom: 12px; }
