/* Keyboink website. Light, color-blocked, with realistic keycaps. */

:root {
  --bg: #F1F1EF;
  --canvas: #ECECE9;
  --dot: #C8C8C3;
  --card: #FFFFFF;
  --ink: #111111;
  --ink-2: #45453F;
  --ink-3: #6E6E68;
  --line: #EDEDEA;
  --border: #D6D6D1;
  --orange: #FF6B1A;
  --orange-deep: #F05A0A;
  --orange-text: #C2410C;
  --radius: 24px;
  --shadow-card: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 16px 40px rgba(30, 30, 25, 0.08);
  --ease-spring: cubic-bezier(0.3, 1.5, 0.5, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: "Inter", -apple-system, system-ui, sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --font-hand: "Caveat", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.hand { font-family: var(--font-hand); font-weight: 700; }
[hidden] { display: none !important; }

/* ---------- Keycaps ---------- */

.cap {
  --top0: #FFFFFF; --top1: #F2F2EF; --skirt0: #ECECE8; --skirt1: #C6C6BF; --ink: #1B1B1B; --hi: 0.95;
  position: relative;
  display: block;
  flex: none;
  border: 0;
  padding: 0;
  border-radius: 22%;
  background:
    linear-gradient(90deg, rgba(0,0,0,.10), rgba(0,0,0,0) 16%, rgba(0,0,0,0) 84%, rgba(0,0,0,.12)),
    linear-gradient(180deg, var(--skirt0), var(--skirt1));
  box-shadow: 0 1px 0 rgba(0,0,0,.22), 0 4px 8px rgba(0,0,0,.18);
  color: var(--ink);
  transition: transform .07s ease, box-shadow .07s ease;
}
.cap__top {
  position: absolute;
  inset: 4% 7.5% 16% 7.5%;
  border-radius: 18%;
  background: radial-gradient(130% 100% at 50% 30%, var(--top0) 0%, var(--top1) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,var(--hi)), inset 0 -2px 4px rgba(0,0,0,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: inset .07s ease, background .3s ease;
}
.cap.is-down { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.2), 0 1px 2px rgba(0,0,0,.18); }
.cap.is-down .cap__top { inset: 8% 7.5% 10% 7.5%; }
button.cap { cursor: pointer; }

.cap--yellow { --top0: #FFD040; --top1: #FFBC0E; --skirt0: #F2B200; --skirt1: #C08800; --ink: #1B1B1B; }
.cap--blue { --top0: #3D6BE8; --top1: #2853CC; --skirt0: #2449B6; --skirt1: #15307A; --ink: #FFFFFF; --hi: .28; }
.cap--red { --top0: #E84A32; --top1: #CF331D; --skirt0: #C22E19; --skirt1: #861D0E; --ink: #FFFFFF; --hi: .28; }
.cap--gray { --top0: #EEEEEA; --top1: #E0E0DB; --skirt0: #D9D9D3; --skirt1: #AFAFA7; }
.cap--orange { --top0: #FF8A3D; --top1: #FF6B1A; --skirt0: #E25A10; --skirt1: #A33D05; --ink: #111111; --hi: .9; }
.cap--black { --top0: #2C2C2C; --top1: #161616; --skirt0: #141414; --skirt1: #000000; --ink: #FFFFFF; --hi: .2; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 26px;
  border: 0;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease-spring), background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--dark { background: var(--ink); color: #FFFFFF; }
.btn--dark:hover { background: #2A2A2A; }
.btn--light { background: #FFFFFF; color: var(--ink); box-shadow: inset 0 0 0 1px var(--border); }
.btn--small { height: 42px; padding: 0 18px; font-size: 15px; }
.btn s { opacity: .55; font-weight: 500; }
.btn svg { transition: transform .25s var(--ease-spring); }
.btn:hover svg { transform: translateY(2px); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.nav.is-scrolled {
  background: rgba(241, 241, 239, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.nav__inner { height: 76px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo {
  width: 38px; height: 38px; border-radius: 50%; background: var(--ink);
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.brand__logo span { width: 6px; height: 13px; border-radius: 3px; background: #FFFFFF; transition: height .1s ease; }
.brand:hover .brand__logo span { animation: blink .35s ease; }
.brand__name { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.nav__links { flex: 1; display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
.nav__links a { text-decoration: none; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 1px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); }
.sound-toggle {
  height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 20px;
  border: 0; background: #FFFFFF; font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.sound-toggle .waves { transition: opacity .2s ease; }
.sound-toggle[aria-pressed="false"] { background: transparent; box-shadow: inset 0 0 0 1px var(--ink); }
.sound-toggle[aria-pressed="false"] .waves { opacity: 0; }
.sound-toggle[aria-pressed="true"] .mute { opacity: 0; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: 24px 0 72px; text-align: center; overflow-x: clip; }
.hero__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.mascot-stage { position: relative; width: 210px; height: 200px; margin: 26px 0 16px; }
.ring {
  position: absolute; left: 50%; top: 46%; border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 0 1px rgba(17,17,17,var(--a));
  animation: breathe 5s ease-in-out infinite;
}
.ring:nth-child(1) { width: 300px; height: 300px; --a: .08; }
.ring:nth-child(2) { width: 400px; height: 400px; --a: .055; animation-delay: .4s; }
.ring:nth-child(3) { width: 500px; height: 500px; --a: .035; animation-delay: .8s; }
@keyframes breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.025); } }
.ripple {
  position: absolute; left: 50%; top: 46%; width: 300px; height: 300px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255,107,26,.55); pointer-events: none;
  animation: ripple .9s var(--ease-out) forwards;
}
@keyframes ripple { from { transform: translate(-50%, -50%) scale(.55); opacity: .6; } to { transform: translate(-50%, -50%) scale(1.9); opacity: 0; } }

.mascot {
  position: absolute; left: 5px; top: 0; width: 200px; height: 188px; border-radius: 44px;
  animation: float 4.5s ease-in-out infinite;
  transition: transform .08s ease, box-shadow .08s ease;
  box-shadow: 0 4px 0 rgba(0,0,0,.12), 0 34px 60px rgba(30,30,25,.28);
}
.mascot .cap__top { inset: 7px 15px 32px 15px; border-radius: 32px; gap: 24px; }
.mascot.is-down { animation: none; transform: translateY(6px); box-shadow: 0 2px 0 rgba(0,0,0,.12), 0 12px 24px rgba(30,30,25,.2); }
.mascot.is-down .cap__top { inset: 12px 15px 20px 15px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.eye {
  width: 30px; height: 58px; border-radius: 15px; background: linear-gradient(180deg, #2A2A2A, #0A0A0A);
  transition: height .08s ease, transform .12s ease-out;
}
.mascot.is-blinking .eye, .mascot.is-down .eye { height: 6px; }
.mascot__hint {
  position: absolute; left: -150px; top: 28px; font-size: 28px; transform: rotate(-8deg); white-space: nowrap;
  transition: opacity .4s ease, transform .4s ease;
}
.mascot__hint svg { position: absolute; left: 110px; top: 30px; }
.mascot-stage.was-pressed .mascot__hint { opacity: 0; transform: rotate(-8deg) translateY(-6px); }

.pill {
  height: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 16px;
  background: #FFFFFF; font-size: 13px; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 6px var(--orange); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.hero h1 {
  margin: 0; max-width: 760px; font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance;
}
.hero h1 .word { display: inline-block; }
.hero p.lead { margin: 0; max-width: 600px; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); text-wrap: pretty; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero__meta { color: var(--ink-2); }

/* Entrance animation */
.enter { opacity: 0; transform: translateY(18px); animation: enter .8s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 100ms); }
@keyframes enter { to { opacity: 1; transform: none; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Sections ---------- */

section { scroll-margin-top: 84px; }
.section { padding: 56px 0 72px; }
.section h2 {
  margin: 0; font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.02;
}
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.section__head p { margin: 0; max-width: 380px; color: var(--ink-2); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card); }

/* ---------- Demo ---------- */

.demo {
  background-color: var(--canvas);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 20px 20px;
  border-radius: 32px;
  padding: clamp(18px, 3vw, 40px);
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.demo__top { width: 100%; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.demo__top h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; }
.demo__hint { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 19px;
  border: 0; background: #FFFFFF; font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  transition: background .2s ease, color .2s ease, transform .2s var(--ease-spring);
}
.chip:hover { transform: translateY(-2px); }
.chip[aria-checked="true"] { background: var(--ink); color: #FFFFFF; box-shadow: none; }
.swatch { width: 10px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.typebox {
  width: 100%; max-width: 860px; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px;
  border-radius: 30px; background: #FFFFFF; box-shadow: 0 0 0 2px var(--ink), 0 12px 30px rgba(30,30,25,.10);
  transition: box-shadow .2s ease;
}
.typebox:focus-within { box-shadow: 0 0 0 3px var(--orange), 0 12px 30px rgba(30,30,25,.12); }
.typebox input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 18px; color: var(--ink); }
.typebox input::placeholder { color: #8A8A84; }
.typebox__last { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.typebox__last.flash { animation: flash .4s ease; }
@keyframes flash { from { color: var(--orange); } to { color: var(--ink-2); } }

.board {
  --u: min(54px, calc((100vw - 120px) / 15.4));
  max-width: 100%;
  background: linear-gradient(180deg, #FDFDFC 0%, #F3F3F0 60%, #E9E9E5 100%);
  border-radius: calc(var(--u) * .45);
  padding: calc(var(--u) * .22);
  box-shadow: inset 0 1px 0 #FFFFFF, inset 0 -3px 0 rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.08), 0 30px 60px rgba(30,30,25,.18);
}
.board__plate {
  background: linear-gradient(180deg, #C9C9C3, #D6D6D1);
  border-radius: calc(var(--u) * .24);
  padding: calc(var(--u) * .11);
  display: flex; flex-direction: column; gap: calc(var(--u) * .07);
  box-shadow: inset 0 3px 6px rgba(0,0,0,.28), 0 1px 0 rgba(255,255,255,.9);
}
.board__row { display: flex; gap: calc(var(--u) * .07); }
.key { width: calc(var(--w) * var(--u) - var(--u) * .07); height: calc(var(--u) * .93); border-radius: calc(var(--u) * .15); }
.key .cap__top { inset: calc(var(--u) * .04) calc(var(--u) * .07) calc(var(--u) * .15); border-radius: calc(var(--u) * .11); }
.key.is-down .cap__top { inset: calc(var(--u) * .08) calc(var(--u) * .07) calc(var(--u) * .1); }
.key__label { font-size: calc(var(--u) * .28); font-weight: 500; text-transform: uppercase; line-height: 1; }
.key--wide .cap__top { justify-content: flex-start; align-items: flex-end; padding: 0 0 calc(var(--u) * .1) calc(var(--u) * .12); }
.key--wide .key__label { font-size: calc(var(--u) * .17); font-weight: 600; letter-spacing: .03em; }
.key__icon { width: calc(var(--u) * .32); height: calc(var(--u) * .32); fill: currentColor; }
.key.has-sound .key__label { position: absolute; top: calc(var(--u) * .06); left: calc(var(--u) * .1); font-size: calc(var(--u) * .18); font-weight: 600; opacity: .9; }
.key.has-sound .cap__top { justify-content: center; align-items: center; padding: 0; }
.key.repaint { animation: repaint .45s var(--ease-spring); animation-delay: var(--d, 0ms); }
@keyframes repaint { 0% { transform: translateY(0); } 35% { transform: translateY(3px) scale(.96); } 100% { transform: none; } }
.demo__note { font-size: 13px; color: var(--ink-2); text-align: center; max-width: 640px; }

/* ---------- Steps ---------- */

.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid--4 { grid-template-columns: 1fr; } }
.grid--feat { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.step {
  padding: 28px; display: flex; flex-direction: column; gap: 14px; cursor: default;
  transition: transform .35s var(--ease-spring), box-shadow .35s ease;
}
.step:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 26px 50px rgba(30,30,25,.12); }
.step .cap { width: 52px; height: 49px; border-radius: 12px; font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.step .cap__top { border-radius: 9px; }
.step h3, .pack h3 { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.step p, .pack p { margin: 0; color: var(--ink-2); }

/* ---------- Packs ---------- */

.pack { overflow: hidden; display: flex; flex-direction: column; border: 0; padding: 0; text-align: left; cursor: pointer; transition: transform .35s var(--ease-spring), box-shadow .35s ease; }
.pack:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 26px 50px rgba(30,30,25,.12); }
.pack__art {
  height: 130px; display: grid; grid-template-columns: repeat(3, 40px); gap: 8px; align-content: center; justify-content: center;
  background-color: var(--canvas); background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 16px 16px;
}
.pack__art .cap { width: 40px; height: 38px; border-radius: 10px; }
.pack__art .cap__top { border-radius: 7px; }
.pack:hover .pack__art .cap { animation: wave .9s ease-in-out infinite; animation-delay: calc(var(--k) * 70ms); }
@keyframes wave { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(3px); } }
.pack__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.pack__play { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--orange-text); }

/* ---------- Features ---------- */

.feature { padding: 26px; display: flex; gap: 18px; align-items: flex-start; transition: transform .35s var(--ease-spring), box-shadow .35s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 24px 46px rgba(30,30,25,.11); }
.feature .cap { width: 48px; height: 45px; border-radius: 11px; }
.feature .cap__top { border-radius: 8px; }
.feature .cap svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature:hover .cap { transform: translateY(2px); }
.feature:hover .cap .cap__top { inset: 8% 7.5% 10% 7.5%; }
.feature h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.feature p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ---------- Price ---------- */

.price { display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center; }
.price__stage { position: relative; margin-top: 6px; }
.price__note { position: absolute; left: -150px; top: 26px; font-size: 30px; transform: rotate(-8deg); white-space: nowrap; animation: wiggle 2.8s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(-4deg) translateY(-2px); } }
.buykey {
  width: 320px; height: 292px; border-radius: 64px; text-decoration: none; color: var(--ink);
  box-shadow: 0 5px 0 rgba(0,0,0,.15), 0 40px 70px rgba(30,30,25,.3);
  transition: transform .08s ease, box-shadow .08s ease;
}
.buykey:hover { transform: translateY(-3px) rotate(-1deg); }
.buykey .cap__top { inset: 11px 24px 47px 24px; border-radius: 46px; flex-direction: column; gap: 10px; }
.buykey.is-down { transform: translateY(8px); box-shadow: 0 2px 0 rgba(0,0,0,.15), 0 14px 30px rgba(30,30,25,.22); }
.buykey.is-down .cap__top { inset: 18px 24px 30px 24px; }
.buykey__label { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .16em; }
.buykey__price { font-family: var(--font-display); font-size: 56px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.buykey__sub { font-size: 15px; font-weight: 600; }
.buykey__sub s { opacity: .6; }
.includes { margin: 0; padding: 0; list-style: none; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 820px; }
.includes li {
  height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 16px; border-radius: 20px;
  background: #FFFFFF; font-size: 15px; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.includes li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.price__fine { font-size: 14px; color: var(--ink-2); }

/* ---------- FAQ ---------- */

.faq { max-width: 860px; margin: 0 auto; padding: 6px 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 600;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover .faq__plus { background: var(--ink); color: #FFFFFF; }
.faq__plus {
  width: 30px; height: 30px; flex: none; margin-left: auto; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center; transition: transform .3s var(--ease-spring), background .2s ease, color .2s ease;
}
.faq details[open] .faq__plus { transform: rotate(45deg); }
.faq__answer { overflow: hidden; }
.faq__answer p { margin: 0 0 20px; color: var(--ink-2); max-width: 680px; }

/* ---------- Footer ---------- */

.footer { padding: 0 0 32px; }
.footer .card { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 40px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__about { display: flex; flex-direction: column; gap: 16px; max-width: 360px; }
.footer__about p { margin: 0; color: var(--ink-2); }
.footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer__cols nav { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__cols a { text-decoration: none; }
.footer__cols a:hover { color: var(--orange-text); }
.footer__bottom { border-top: 1px solid var(--line); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.wordkeys { display: flex; gap: 8px; flex-wrap: wrap; }
.wordkeys .cap { width: 52px; height: 50px; border-radius: 11px; font-family: var(--font-display); font-size: 20px; font-weight: 700; transition: transform .25s var(--ease-spring), box-shadow .07s ease; }
.wordkeys .cap__top { border-radius: 8px; }
.wordkeys .cap:hover { transform: translateY(-5px) rotate(-3deg); }
.wordkeys .cap.is-down { transform: translateY(3px); }
.copyright { font-size: 13px; color: #8A8A84; }

/* ---------- Confetti ---------- */

.confetti { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 100; will-change: transform, opacity; }

/* ---------- Simple pages (thanks, privacy, terms) ---------- */

.page { max-width: 760px; margin: 0 auto; padding: 32px 24px 80px; }
.page h1 { font-family: var(--font-display); font-size: clamp(36px, 6vw, 60px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; margin: 0 0 16px; }
.page h2 { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.02em; margin: 36px 0 10px; }
.page p, .page li { color: var(--ink-2); }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.steps li { padding: 22px 24px; display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.steps .cap { width: 48px; height: 45px; border-radius: 11px; font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.steps .cap__top { border-radius: 8px; }
.steps h2 { margin: 0 0 4px; font-size: 19px; font-family: var(--font); font-weight: 700; letter-spacing: 0; color: var(--ink); }
.steps p { margin: 0; font-size: 15px; }
.steps__body { flex: 1; min-width: 220px; }
.keybox { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.keybox code { height: 40px; display: flex; align-items: center; padding: 0 14px; border-radius: 10px; background: var(--bg); font-family: var(--font-mono); font-size: 14px; letter-spacing: .04em; color: var(--ink); }
.helpers { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.helpers .card { flex: 1; min-width: 240px; padding: 18px 20px; font-size: 14px; }

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }
  .mascot__hint, .price__note { display: none; }
  .ring:nth-child(3) { display: none; }
}
@media (max-width: 600px) {
  /* Keys stay big enough to tap; the keyboard scrolls sideways instead of shrinking. */
  .board { --u: 34px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .board::-webkit-scrollbar { display: none; }
  .board__plate { width: max-content; }
}
@media (max-width: 520px) {
  .nav__inner { gap: 10px; }
  .brand__name { font-size: 19px; }
  .nav .btn--small { height: 40px; padding: 0 14px; font-size: 14px; }
  .sound-toggle span { display: none; }
  .btn { height: 48px; padding: 0 20px; }
  .buykey { width: 280px; height: 256px; border-radius: 56px; }
  .buykey .cap__top { inset: 10px 21px 41px 21px; border-radius: 40px; }
  .buykey__price { font-size: 48px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .enter { opacity: 1; transform: none; }
}
