/* playplisp.com landing page. Ported from design/Main.dc.html (inline styles moved to classes).
   Theme tokens only: every colour, font and radius comes from themes.css. */

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-ui); color: var(--text); background: var(--bg); line-height: 1.4; }
.page { overflow-x: clip; min-height: 100vh; }
main { display: block; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; }
img, svg { flex-shrink: 0; }

.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; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--gold); color: var(--gold-ink); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; color: var(--gold-ink); }

/* Visible focus everywhere (NF-5). */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.wrap-inner { max-width: 1200px; margin: 0 auto; }
.stack-14 { display: flex; flex-direction: column; gap: 14px; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.stack-28 { display: flex; flex-direction: column; gap: 28px; }
.stack-32 { display: flex; flex-direction: column; gap: 32px; }
.muted { color: var(--text-muted); }
.soft { color: var(--text-soft); font-size: 15px; line-height: 1.5; }
.small { font-size: 14px; line-height: 1.5; max-width: 820px; }
.display { font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: 36px; line-height: 1.1; }
.display.big { font-size: 40px; }
h3.display { font-size: 22px; }
.tag { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.strong-link { font-weight: 700; font-size: 15px; }

/* Buttons */
.btn { font-family: var(--font-ui); font-weight: 700; border: 0; border-radius: var(--r-md); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; font-size: 16px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 0 var(--accent-shadow); }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 4px 0 var(--gold-shadow); }
.btn-plain { background: var(--btn); color: var(--text); box-shadow: 0 3px 0 var(--shadow); height: 42px; padding: 0 18px; font-size: 15px; }
.btn-plain:hover { background: var(--btn-hover); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; box-shadow: 0 3px 0 var(--accent-shadow); }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* Header */
.site-header { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.logo { text-decoration: none; color: var(--text); font-weight: var(--display-weight); font-size: 26px; letter-spacing: var(--display-tracking); }
.logo:hover { color: var(--text); }
.tick { color: var(--gold); }
.main-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--text); text-decoration: none; padding: 4px 0; }
.main-nav a:hover { color: var(--link-hover); text-decoration: underline; }
.theme-row { display: flex; align-items: center; gap: 2px; }
.theme-word { font-size: 13px; color: var(--text-muted); margin-right: 4px; }
/* Swatches: css/theme-picker.css */

/* Hero */
.hero { padding-top: 24px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; padding-top: 24px; }
.hero-head { display: flex; flex-direction: column; gap: 12px; }
.hero h1 { font-size: 64px; line-height: 1.02; font-weight: var(--display-weight); letter-spacing: var(--display-tracking); }
.sub { font-size: 22px; line-height: 1.4; color: var(--text-muted); }
.card { border-radius: var(--r-lg); box-shadow: 0 6px 0 var(--shadow); }
.lesson { background: var(--surface); padding: 22px 24px 14px; min-height: 236px; display: flex; flex-direction: column; }
.lesson-inner { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.lesson-inner[hidden] { display: none; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.caption { font-size: 18px; line-height: 1.45; min-height: 52px; }
.lesson-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lesson-keys[hidden] { display: none; }
.type-word { font-size: 15px; color: var(--text-muted); }
.caps { display: contents; }
.cap { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: var(--r-sm); background: var(--surface-3); box-shadow: 0 3px 0 var(--shadow); font-family: var(--font-mono); font-weight: 600; font-size: 15px; color: var(--text); }
.btn-go { margin-left: 6px; min-width: 124px; height: auto; background: var(--accent); color: var(--accent-ink); font-size: 17px; padding: 10px 22px; box-shadow: 0 4px 0 var(--accent-shadow); }
.btn-go.is-continue { background: var(--gold); color: var(--gold-ink); box-shadow: 0 4px 0 var(--gold-shadow); }
.free-hint { font-size: 15px; color: var(--text-muted); }
.lesson-nav { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.lnav { font-family: var(--font-ui); font-weight: 700; font-size: 14px; border: 0; background: transparent; padding: 8px 4px; cursor: pointer; white-space: nowrap; color: var(--link); }
.lnav:disabled { cursor: default; color: var(--text-faint); }
.dots { display: flex; align-items: center; gap: 2px; }
.dot { width: 28px; height: 28px; border: 0; padding: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.dot-mark { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); transition: width 180ms, height 180ms, background 180ms; }
.dot.is-done .dot-mark { background: var(--gold-dim); }
.dot.is-current .dot-mark { width: 12px; height: 12px; background: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
.app-name { font-size: 22px; font-weight: var(--display-weight); }
.app-pitch { font-size: 17px; line-height: 1.45; color: var(--text-soft); }
.app-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }

/* Waitlist card (LP-6): always takes its space; fades in after the first success. */
.wl-slot { min-height: 168px; }
.warm { background: var(--warm); }
.wl { padding: 20px 24px; min-height: 168px; visibility: hidden; opacity: 0; transform: translateY(10px) scale(0.94); transform-origin: 50% 0; transition: opacity 240ms ease, transform 420ms cubic-bezier(.2, 1.5, .4, 1), visibility 0s linear 240ms; }
.wl.is-shown { visibility: visible; opacity: 1; transform: none; transition: opacity 240ms ease, transform 420ms cubic-bezier(.2, 1.5, .4, 1), visibility 0s; }
.wl-form { display: flex; flex-direction: column; gap: 12px; }
.wl-title { font-size: 18px; font-weight: 700; }
.warm-text { font-size: 15px; line-height: 1.5; color: var(--warm-text); }
.field-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.field-row.align-end { align-items: flex-end; }
.field-row .input { flex: 1 1 220px; min-width: 0; }
.field { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.warm-label { color: var(--warm-text); }
.input { height: 46px; border-radius: var(--r-sm); border: 2px solid var(--line-strong); background: var(--bg); color: var(--text); padding: 0 14px; font-family: var(--font-ui); font-size: 16px; width: 100%; }
.warm-input { border-color: var(--warm-line); background: var(--warm-input); }
.input::placeholder { color: var(--text-muted); opacity: 1; }
.textarea { height: auto; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.form-note { font-size: 13px; color: var(--text-muted); }
.warm .form-note { color: var(--warm-text); }
.form-error { font-size: 14px; font-weight: 700; color: var(--danger); }
.thanks { display: flex; flex-direction: column; gap: 10px; }
.thanks[hidden] { display: none; }
.thanks-title { font-size: 16px; font-weight: 700; }
[data-turnstile]:empty { display: none; }

/* Simulator */
.hero-device { flex: 0 1 440px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.sim { position: relative; width: 420px; max-width: 100%; background: var(--device); border-radius: var(--r-device); padding: 30px 26px 26px; box-shadow: 0 10px 0 var(--device-shadow), 0 30px 60px color-mix(in srgb, var(--shadow) 45%, transparent); display: flex; flex-direction: column; gap: 18px; container-type: inline-size; }
.sim:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.sim-hole { position: absolute; top: 12px; left: 14px; width: 18px; height: 18px; border-radius: 50%; border: 4px solid var(--device-pad); }
.sim-wheel { position: absolute; top: 120px; right: -10px; width: 14px; height: 74px; border-radius: var(--r-sm); background: repeating-linear-gradient(180deg, var(--bezel) 0 4px, var(--device-sub) 4px 7px); }
.sim-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.sim-name { font-weight: var(--display-weight); font-size: 15px; color: var(--device-text); letter-spacing: 0.5px; }
.sim-tag { font-family: var(--font-mono); font-size: 11px; color: var(--device-sub); }
.bezel { background: var(--bezel); border-radius: var(--r-sm); padding: 10px; }
.lcd { background: var(--lcd); border-radius: var(--r-xs); height: 88px; padding: 8px 12px; display: flex; flex-direction: column; justify-content: space-between; }
.lcd-row { display: flex; justify-content: space-between; align-items: center; min-width: 0; }
.lcdtxt { font-family: var(--font-lcd); color: var(--lcd-ink); font-size: 30px; line-height: 32px; white-space: pre; overflow: hidden; min-height: 32px; }
.lcd-shift { font-family: var(--font-lcd); font-size: 18px; background: var(--lcd-ink); color: var(--lcd); padding: 0 4px; }
.lcd-shift[hidden] { display: none; }
.keypad { display: flex; flex-direction: column; gap: 8px; min-height: 252px; }
.keyrow { display: grid; gap: 8px; grid-auto-rows: 44px; }
.key { border: 0; border-radius: var(--r-sm); color: var(--text); font-family: var(--font-ui); font-weight: 500; font-size: 15px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0; min-height: 40px; min-width: 0; box-shadow: 0 3px 0 var(--device-shadow); transition: transform 60ms; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; }
.shl { font-size: 10px; font-weight: 700; color: var(--gold); line-height: 1; min-height: 10px; white-space: nowrap; }
.k-num { background: var(--key-num); }
.k-op { background: var(--key-op); }
.k-paren { background: var(--key-paren); }
.k-fn { background: var(--key-fn); }
.k-clear { background: var(--key-clear); }
.k-shift { background: var(--key-shift); color: var(--gold); }
.k-shift[aria-pressed="true"] { box-shadow: 0 3px 0 var(--device-shadow), inset 0 0 0 2px var(--gold); }
.k-eq { background: var(--accent); color: var(--accent-ink); }
.key.is-down { background: var(--key-down); box-shadow: 0 1px 0 var(--shadow); transform: translateY(2px); }
.k-eq.is-down { background: var(--link); }
.sim-hint { width: 420px; max-width: 100%; margin-top: -8px; font-size: 13px; line-height: 1.45; color: var(--text-muted); }

@container (max-width: 360px) {
  .lcdtxt { font-size: 24px; line-height: 28px; min-height: 28px; }
  .lcd { height: 76px; }
  .key { font-size: 14px; }
  .shl { font-size: 9px; }
}

/* Cartridge ring (LP-18) */
.ring { --ring-r: 150px; position: relative; width: 420px; max-width: 100%; height: 150px; }
.ring-floor { position: absolute; left: 50%; top: 92px; width: 360px; max-width: 100%; height: 44px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at center, var(--surface-2) 0%, var(--surface) 60%, transparent 72%); }
.cart-slot { position: absolute; left: 50%; top: 12px; width: 64px; margin-left: -32px; transition: transform 520ms cubic-bezier(.3, 1.25, .5, 1), opacity 320ms ease; }
.cart { border: 0; padding: 0; background: transparent; cursor: pointer; display: block; transition: transform 160ms ease; }
.cart:hover { animation: cart-shake 420ms ease; transform: scale(1.14); }
@keyframes cart-shake { 0% { transform: scale(1.14) rotate(0); } 25% { transform: scale(1.14) rotate(-7deg); } 50% { transform: scale(1.14) rotate(6deg); } 75% { transform: scale(1.14) rotate(-3deg); } 100% { transform: scale(1.14) rotate(0); } }
.cart-body { display: block; width: 64px; height: 76px; clip-path: polygon(0 0, 76% 0, 100% 16%, 100% 100%, 0 100%); border-radius: 6px 0 8px 8px; position: relative; box-shadow: inset 0 -6px 0 color-mix(in srgb, var(--shadow) 22%, transparent); }
.cart-grip { position: absolute; left: 8px; right: 14px; top: 6px; height: 5px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--shadow) 25%, transparent) 0 3px, transparent 3px 6px); }
.cart-label { position: absolute; left: 7px; right: 7px; top: 16px; height: 42px; background: var(--cart-label); border-radius: var(--r-xs); display: flex; align-items: center; justify-content: center; }
.ring-caption { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 14px; color: var(--text-muted); }
.ring-name { font-weight: 700; color: var(--text); }

/* More to try strip (LP-7) */
.feat { padding: 8px 0 56px; display: flex; flex-direction: column; gap: 12px; }
.feat-head { width: 100%; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.feat-head h2 { font-size: 22px; font-weight: 700; }
.feat-head .muted { font-size: 14px; }
.feat-wrap { container-type: inline-size; position: relative; }
.feat-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 6px max(32px, calc((100% - 1136px) / 2)) 14px; scroll-padding-inline: max(32px, calc((100% - 1136px) / 2)); -webkit-mask-image: linear-gradient(to right, transparent 0, var(--text) 28px, var(--text) calc(100% - 28px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, var(--text) 28px, var(--text) calc(100% - 28px), transparent 100%); }
.feat-track::-webkit-scrollbar { display: none; }
.feat-track:focus-visible { outline-offset: -3px; }
.feat-card { flex: 0 0 calc((min(100cqw - 64px, 1136px) - 16px) / 1.35); scroll-snap-align: start; background: var(--surface); border-radius: var(--r-lg); padding: 14px; box-shadow: 0 5px 0 var(--shadow); display: flex; flex-direction: column; gap: 12px; color: var(--text); }
@container (min-width: 600px) { .feat-card { flex-basis: calc((min(100cqw - 64px, 1136px) - 32px) / 2.4); } }
@container (min-width: 900px) { .feat-card { flex-basis: calc((min(100cqw - 64px, 1136px) - 48px) / 3.4); } }
@container (min-width: 1180px) { .feat-card { flex-basis: calc((min(100cqw - 64px, 1136px) - 64px) / 4.4); } }
.feat-lcd { background: var(--lcd); border-radius: var(--r-sm); padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; }
.feat-form, .feat-result { font-family: var(--font-lcd); font-size: 20px; color: var(--lcd-ink); white-space: nowrap; overflow: hidden; }
.feat-result { text-align: right; }
.feat-card h3 { font-weight: 700; font-size: 16px; }
.feat-card p { font-size: 14px; color: var(--text-muted); line-height: 1.4; }
.feat-foot { display: flex; justify-content: flex-end; margin-top: auto; }
.bump { position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -30px; border-radius: 50%; border: 0; background: var(--btn); color: var(--text); box-shadow: 0 4px 0 var(--shadow), 0 8px 24px color-mix(in srgb, var(--shadow) 50%, transparent); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bump svg { stroke: var(--text); }
.bump:hover { background: var(--btn-hover); }
.bump[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.bump-prev { left: calc(max(32px, (100% - 1136px) / 2) - 26px); }
.bump-next { right: calc(max(32px, (100% - 1136px) / 2) - 26px); }

/* Sections */
.band { background: var(--bg-alt); padding: 64px 32px; }
.section { padding-top: 64px; padding-bottom: 64px; }
.learn-sec { padding-top: 0; }
.sec-head { display: flex; flex-direction: column; gap: 8px; }
.sec-head .muted { font-size: 17px; }
.grid { display: grid; gap: 20px; }
.grid-280 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid-260 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid-260-fill { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.grid-240 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.grid-340 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.align-start { align-items: start; }
.tile { background: var(--surface-2); border-radius: var(--r-lg); padding: 24px; box-shadow: 0 6px 0 var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.tile h3 { font-size: 20px; font-weight: 700; }
.tile p { font-size: 16px; line-height: 1.5; color: var(--text-soft); }
.tile-link { font-weight: 700; font-size: 15px; margin-top: auto; }

.friends-wrap { padding-top: 64px; }
.card-xl { background: var(--surface); border-radius: var(--r-xl); box-shadow: 0 6px 0 var(--shadow); }
.friends { padding: 32px 32px 24px; display: flex; flex-direction: column; gap: 16px; }
.friends-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.friends-text { display: flex; flex-direction: column; gap: 8px; flex: 1 1 420px; min-width: 0; }
.friends-text p { font-size: 18px; line-height: 1.5; color: var(--text-soft); }
.friends-text p.muted { font-size: 16px; color: var(--text-muted); }
.rally-slot { min-width: 0; }

.app-card { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 6px 0 var(--shadow); display: flex; flex-direction: column; }
.app-art { padding: 18px; display: flex; justify-content: center; }
.app-lcd { background: var(--lcd); border-radius: var(--r-sm); width: 100%; height: 72px; padding: 6px 10px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.app-lcd span { font-family: var(--font-lcd); font-size: 22px; color: var(--lcd-ink); white-space: pre; }
.app-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.app-body h3 { font-size: 19px; font-weight: 700; }
.app-by { font-size: 13px; color: var(--text-muted); }
.app-body p { font-size: 15px; line-height: 1.45; color: var(--text-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chip { font-size: 12px; font-weight: 500; background: var(--line); color: var(--text-soft); border-radius: var(--r-sm); padding: 3px 8px; }
.app-foot { margin-top: auto; padding-top: 10px; }
.soon { display: flex; align-items: center; justify-content: center; height: 42px; border-radius: var(--r-md); border: 2px dashed var(--line-strong); color: var(--text-muted); font-weight: 700; font-size: 15px; }

.learn-card { text-decoration: none; color: var(--text); background: var(--surface); border-radius: var(--r-lg); padding: 22px; box-shadow: 0 6px 0 var(--shadow); display: flex; flex-direction: column; gap: 10px; }
[class^="theme-"] .learn-card, [class*=" theme-"] .learn-card { color: var(--text); }
.learn-card:hover { background: var(--surface-2); }
.learn-kind { align-self: flex-start; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; border-radius: var(--r-sm); padding: 3px 8px; }
.learn-card h3 { font-size: 20px; font-weight: 700; }
.learn-card p { font-size: 15px; line-height: 1.5; color: var(--text-soft); }
.learn-cta { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 14px; color: var(--link); }

.geek-card { background: var(--surface-2); border-radius: var(--r-lg); padding: 24px; box-shadow: 0 6px 0 var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.geek-card h3 { font-size: 20px; font-weight: 700; }
.geek-card p { font-size: 15px; line-height: 1.55; color: var(--text-soft); }
.geek-links { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 6px; }
.geek-links a { font-weight: 700; font-size: 14px; }

.schools { padding: 72px 32px; border-top: 1px solid var(--line); }
.schools-head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.schools-head p { font-size: 18px; line-height: 1.5; color: var(--text-soft); }
.aud-card { background: var(--surface); border-radius: var(--r-lg); padding: 26px; box-shadow: 0 6px 0 var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.aud-card h3 { font-size: 22px; font-weight: var(--display-weight); letter-spacing: var(--display-tracking); }
.aud-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.aud-card li { display: flex; gap: 12px; align-items: flex-start; }
.aud-card li svg { margin-top: 2px; }
.aud-card li div { display: flex; flex-direction: column; gap: 4px; }
.pt-title { font-size: 16px; font-weight: 700; }
.pt-body { font-size: 15px; line-height: 1.5; color: var(--text-soft); }
.form-card { border-radius: var(--r-lg); padding: 26px; box-shadow: 0 6px 0 var(--shadow); display: flex; flex-direction: column; gap: 14px; background: var(--surface); }
.form-card.warm { background: var(--warm); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-grid .input { height: 44px; padding: 0 12px; font-size: 15px; }
.contact-grid .textarea { height: auto; padding: 10px 12px; }
.span-all { grid-column: 1 / -1; }
.send-row { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px; }

.site-footer { border-top: 1px solid var(--line); padding: 32px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--text-muted); }
.footer-brand { font-weight: var(--display-weight); color: var(--text); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }

/* Phones */
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .band, .schools { padding-left: 16px; padding-right: 16px; }
  .site-footer { padding: 24px 16px; }
  /* Phone order follows design/Mobile.dc.html: headline, calculator, lesson, waitlist. */
  .hero { flex-direction: column; align-items: stretch; gap: 24px; }
  .hero-text { display: contents; }
  .hero-head { order: 1; }
  .hero-device { order: 2; flex: none; }
  .lesson { order: 3; }
  .wl-slot { order: 4; }
  .hero h1 { font-size: clamp(34px, 10vw, 64px); }
  .sub { font-size: 18px; }
  .display { font-size: 30px; }
  .display.big { font-size: 32px; }
  .lesson { padding: 18px 16px 12px; }
  .btn-go { margin-left: 0; }
  .sim { width: 100%; padding: 26px 14px 18px; }
  .sim-hint { width: 100%; }
  .ring { --ring-r: 118px; width: 100%; }
  .friends { padding: 24px 16px 18px; }
  .form-card, .aud-card { padding: 20px 16px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .lnav { font-size: 13px; padding: 8px 0; }
  .feat-track { padding-left: 16px; padding-right: 16px; scroll-padding-inline: 16px; }
  .feat-card { flex-basis: calc((100cqw - 32px - 16px) / 1.2); }
  .bump { width: 44px; height: 44px; margin-top: -26px; }
  .bump-prev { left: 4px; }
  .bump-next { right: 4px; }
}
@media (max-width: 380px) {
  .lesson-nav .lnav { font-size: 12px; }
  .dot { width: 24px; }
}

/* Reduced motion: no cartridge shake, no smooth strip, no fly-in. */
@media (prefers-reduced-motion: reduce) {
  .cart:hover { animation: none; }
  .cart, .cart-slot, .dot-mark, .key { transition: none; }
  .feat-track { scroll-behavior: auto; }
  .wl, .wl.is-shown { transform: none; transition: opacity 120ms linear, visibility 0s; }
}
