/* Swipe Life website
   Tokens mirror the app's SwipeLife/Views/Theme.swift ("Organic" design system, light only).
   Static site, no build step. */

/* ---------- Fonts (SIL Open Font License, texts in assets/fonts/) ---------- */
@font-face { font-family: "Caprasimo"; src: url("fonts/Caprasimo-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/Figtree-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/Figtree-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/Figtree-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/Figtree-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --bg: #F5EAD8;
  --surface: #EBDDC5;
  --text: #201E1D;
  --ink: #2E2B25;
  --accent: #C67139;
  --accent-2: #7A8A5E;
  --divider: rgba(32, 30, 29, 0.16);
  --sweat: #9FB7C9;

  --n100: #F9F4ED; --n200: #EEE7DB; --n300: #DCD3C4; --n400: #C0B6A5; --n500: #A19786;
  --n600: #82796A; --n700: #645C50; --n800: #474238; --n900: #2E2B25;

  --a100: #FFF2EB; --a200: #FFE1D0; --a300: #FFC6A5; --a400: #F6A06B; --a500: #D67F48;
  --a600: #B2622D; --a700: #8C491A; --a800: #643312; --a900: #402310;

  --s100: #F0FAE1; --s200: #E1EECC; --s300: #CCDBB2; --s400: #AEBF92; --s500: #8FA073;
  --s600: #728157; --s700: #56633F; --s800: #3D472B; --s900: #272E1B;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 28px;

  --shadow-sm: 0 1px 3px rgba(46, 43, 37, 0.14);
  --shadow-md: 0 3px 10px rgba(46, 43, 37, 0.16);
  --shadow-lg: 0 12px 32px rgba(46, 43, 37, 0.22);

  --font-display: "Caprasimo", "Georgia", "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1120px;
  --gutter: 20px;
  --nav-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--a700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 0.45em;
  color: var(--text);
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
p { margin: 0 0 1em; }
p.lead { font-size: 1.2rem; color: var(--n700); font-weight: 500; }
strong { font-weight: 600; }
.muted { color: var(--n600); }
.center-text { text-align: center; }
.section-foot { max-width: 560px; margin: 28px auto 0; }
.small { font-size: 0.875rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section.tinted { background: var(--surface); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--a700); margin-bottom: 14px;
}
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Tags and buttons ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em; line-height: 1.5;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.tag.accent { background: var(--a100); color: var(--a800); }
.tag.sage { background: var(--s100); color: var(--s800); }
.tag.neutral { background: var(--n100); color: var(--n800); }
.tag.on-card.accent { background: var(--a200); }
.tag.on-card.sage { background: var(--s200); }
.tag.on-card.neutral { background: var(--n200); }

.btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px; border-radius: 999px;
  font-family: var(--font-display); font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.12s ease, opacity 0.12s ease, background-color 0.15s ease;
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(0.98); opacity: 0.85; }
.btn.primary { background: var(--accent); color: var(--bg); }
.btn.primary:hover { background: var(--a600); color: var(--bg); }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--divider); }
.btn.secondary:hover { background: rgba(32, 30, 29, 0.05); color: var(--text); }
.btn.ghost { background: transparent; color: var(--accent); min-height: 44px; padding: 8px 12px; }
.btn.ghost:hover { background: rgba(198, 113, 57, 0.12); }
.btn.block { width: 100%; }
.btn.small { min-height: 42px; padding: 8px 18px; font-size: 0.9rem; }
.btn[aria-disabled="true"] { cursor: default; }
.btn.primary:focus-visible { outline-color: var(--ink); outline-offset: 3px; }
.btn .icon { width: 18px; height: 18px; flex: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 234, 216, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--divider); }
.nav .container { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.3rem; color: var(--text); text-decoration: none;
}
.brand .mascot { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  color: var(--n800); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 999px;
}
.nav-links a:hover { background: rgba(32, 30, 29, 0.06); color: var(--text); }
.nav-cta { margin-left: auto; }
.nav-links + .nav-cta { margin-left: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--divider); padding: 36px 0 44px; color: var(--n600); font-size: 0.9rem; }
.footer .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer .brand { font-size: 1.1rem; }
.footer nav { display: flex; gap: 18px; }
.footer nav a { color: var(--n700); text-decoration: none; }
.footer nav a:hover { color: var(--accent); }
.footer .credit { flex-basis: 100%; margin: 0; }

/* ---------- Mascot ---------- */
.mascot { display: inline-block; line-height: 0; }
.mascot svg { width: 100%; height: 100%; overflow: visible; }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-copy .tag { margin-bottom: 20px; }
.hero-copy h1 { max-width: 12ch; }
.hero-copy .lead { max-width: 34rem; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-note { color: var(--n600); font-size: 0.9rem; margin: 0; }
.hero-demo { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.demo-caption { color: var(--n600); font-size: 0.85rem; text-align: center; margin: 0; max-width: 34ch; }
.demo-caption kbd {
  font-family: inherit; font-size: 0.8em; padding: 1px 6px; border-radius: 6px;
  background: var(--n100); border: 1px solid var(--divider);
}

/* ---------- Device frame and the in-page game ---------- */
.device {
  position: relative;
  width: 340px; max-width: 100%;
  background: var(--bg);
  border: 9px solid var(--ink);
  border-radius: 46px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
  padding: 46px 14px 20px;
  overflow: hidden;
  touch-action: pan-y;
}
.device::before {
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 24px; border-radius: 999px; background: var(--ink);
}
.device.shake { animation: device-shake 0.55s ease-out; }
.device-flash {
  position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none;
  transition: opacity 0.8s ease-out;
}
.device-flash.on { opacity: 0.45; transition: none; }

.game-header { position: relative; display: flex; align-items: center; justify-content: center; min-height: 54px; margin-bottom: 14px; }
.game-header .back { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--accent); width: 32px; height: 32px; }
.game-header .best { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.game-week { display: flex; align-items: center; gap: 12px; }
.game-week .mascot { width: 54px; height: 54px; }
.game-week .label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.09em; color: var(--n600); text-align: center; line-height: 1.2; }
.game-week .num { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; color: var(--text); }
.game-week.danger .label { color: var(--a700); }
.game-week.danger .num { color: var(--accent); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.stat .dot-slot { height: 10px; position: relative; width: 100%; display: flex; justify-content: center; align-items: center; }
.stat .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--n800); opacity: 0; transition: opacity 0.15s ease, transform 0.15s ease; }
.stat .dot.on { opacity: 1; }
.stat .dot.big { transform: scale(1.66); }
.stat .delta {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap;
  animation: delta-float 0.9s ease-out forwards; pointer-events: none;
}
.stat .delta.up { color: var(--s700); }
.stat .delta.down { color: var(--a700); }
.stat .icon-wrap { position: relative; width: 44px; height: 44px; }
.stat .icon-circle {
  width: 44px; height: 44px; border-radius: 50%; background: var(--surface);
  display: flex; align-items: center; justify-content: center; color: var(--n800);
}
.stat .icon-circle svg { width: 20px; height: 20px; }
.stat .icon-circle.bounce { animation: icon-bounce 0.46s ease-out; }
.stat .ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--accent); opacity: 0; }
.stat.danger .icon-circle { color: var(--accent); }
.stat.danger .ring { animation: ring-pulse 1.1s ease-out infinite; }
.stat .track { width: 100%; height: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.stat .fill { height: 100%; border-radius: 999px; background: var(--accent-2); width: 50%; transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.stat.danger .fill { background: var(--accent); }
.stat .name { font-size: 0.72rem; font-weight: 600; color: var(--n700); line-height: 1.2; }
.stat.danger .name { color: var(--a700); }

.stack { position: relative; height: 330px; margin: 6px 0 0; }
.stack .back-card, .stack .far-card {
  position: absolute; inset: 0; border-radius: var(--r-lg);
}
.stack .far-card { background: var(--surface); transform: scale(0.9) translateY(20px); }
.stack .back-card { background: var(--n100); transform: scale(0.95) translateY(10px); box-shadow: var(--shadow-sm); }
.play-card {
  position: absolute; inset: 0;
  background: var(--a100); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 20px 20px 16px; display: flex; flex-direction: column;
  cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y;
  will-change: transform;
}
.play-card.dragging { cursor: grabbing; }
.play-card.settle { transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1); }
.play-card.fly { transition: transform 0.38s cubic-bezier(0.2, 0.9, 0.25, 1.1), opacity 0.38s ease; opacity: 0.4; }
.play-card.enter { animation: card-enter 0.32s cubic-bezier(0.2, 0.9, 0.25, 1.1); }
.play-card .pills { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; min-height: 44px; }
.play-card .pill {
  font-size: 0.82rem; font-weight: 700; line-height: 1.25; padding: 7px 12px; border-radius: 999px;
  opacity: 0; max-width: 60%;
}
.play-card .pill.left { background: var(--s200); color: var(--s900); }
.play-card .pill.right { background: var(--a200); color: var(--a900); text-align: right; margin-left: auto; }
.play-card .who { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.play-card .avatar {
  width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.3rem;
}
.avatar.accent { background: var(--a300); color: var(--a900); }
.avatar.sage { background: var(--s300); color: var(--s900); }
.avatar.neutral { background: var(--n300); color: var(--n900); }
.play-card .name { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.1; }
.play-card .role { font-size: 0.78rem; font-weight: 500; color: var(--n600); margin-top: 2px; }
.play-card .text { font-size: 1.08rem; font-weight: 500; line-height: 1.4; margin-top: 14px; color: var(--text); }
.play-card .foot {
  margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between;
  font-size: 0.72rem; font-weight: 500; color: var(--n500);
}
.play-card .foot .swipe { display: inline-flex; align-items: center; gap: 4px; }
.play-card .foot svg { width: 11px; height: 11px; }
.stamp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg);
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; text-align: center;
  padding: 10px 18px; border: 4px solid; border-radius: 14px; max-width: 80%;
  animation: stamp-in 0.22s cubic-bezier(0.34, 1.56, 0.64, 1); pointer-events: none;
}
.stamp.left { color: var(--s700); border-color: var(--s700); background: rgba(240, 250, 225, 0.85); transform: translate(-50%, -50%) rotate(8deg); }
.stamp.right { color: var(--a700); border-color: var(--a700); background: rgba(255, 242, 235, 0.9); }

.choices { display: flex; gap: 10px; margin-top: 22px; }
.choices .btn { flex: 1; min-height: 46px; padding: 8px 12px; font-size: 0.85rem; }
.choices .btn svg { width: 14px; height: 14px; flex: none; }
.choices.dim .btn { opacity: 0.35; pointer-events: none; }
.hint { min-height: 38px; margin: 10px 0 0; text-align: center; font-size: 0.8rem; font-weight: 500; color: var(--n600); }

.swipe-hint {
  position: absolute; left: 50%; bottom: 56px; transform: translateX(-50%);
  width: 44px; height: 44px; color: var(--ink); pointer-events: none; z-index: 2;
  animation: hand-slide 1.6s ease-in-out infinite;
}

/* Death / demo-over card inside the device */
.over { display: none; flex-direction: column; gap: 12px; padding-top: 4px; }
.device.is-over .play-area { display: none; }
.device.is-over .over { display: flex; }
.death-card {
  background: var(--a100); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  padding: 18px 18px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.death-card .top { width: 100%; display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; font-weight: 600; color: var(--n500); }
.death-card .mascot { width: 92px; height: 92px; margin: 4px 0 8px; transform: scale(0.3) rotate(-18deg); opacity: 0; }
.death-card .mascot.pop { animation: mascot-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.death-card h3 { font-size: 1.7rem; margin: 0; }
.death-card .killer { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: var(--a700); }
.death-card .killer .icon-circle {
  width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.death-card .killer svg { width: 14px; height: 14px; }
.death-card .story { font-size: 0.88rem; font-weight: 500; line-height: 1.45; color: var(--n700); margin: 2px 0 0; }
.death-card .numbers { display: flex; gap: 28px; justify-content: center; margin-top: 6px; }
.death-card .numbers .label { font-size: 0.7rem; font-weight: 500; color: var(--n600); }
.death-card .numbers .value { font-family: var(--font-display); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.over .actions { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Steps (how it plays) ---------- */
.steps { counter-reset: step; }
.step {
  background: var(--n100); border-radius: var(--r-lg); padding: 26px 24px 24px;
  display: flex; flex-direction: column; gap: 14px; position: relative;
}
.step .art { height: 120px; display: flex; align-items: center; justify-content: center; }
.step .art svg { max-height: 120px; width: auto; }
.step h3 { margin: 0; }
.step h3::before {
  counter-increment: step; content: counter(step) ". ";
  color: var(--accent);
}
.step p { margin: 0; color: var(--n700); font-size: 0.98rem; }

/* ---------- Decks ---------- */
.deck-card {
  border-radius: var(--r-lg); padding: 30px 22px 22px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: var(--shadow-md); position: relative;
}
.deck-card.terracotta { background: var(--a100); }
.deck-card.neutral { background: var(--n100); }
.deck-card.sage { background: var(--s100); }
.deck-card.blush { background: var(--a200); }
.deck-card.stone { background: var(--n200); }
.deck-card.mint { background: var(--s200); }
.deck-card.soon { background: transparent; border: 2px dashed var(--n400); box-shadow: none; }
.deck-card.soon .mascot { opacity: 0.55; }
.deck-card .mascot { width: 116px; height: 116px; margin: 12px 0 18px; }
.deck-card h3 { margin: 0; font-size: 1.45rem; }
.deck-card .tagline { color: var(--n600); font-size: 0.92rem; font-weight: 500; margin: 0; }
.deck-card .bars { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.deck-card .bars span { font-size: 0.72rem; font-weight: 600; color: var(--n700); background: rgba(32, 30, 29, 0.06); padding: 3px 9px; border-radius: 999px; }
.deck-card .status { margin-top: auto; padding-top: 14px; }

/* ---------- Screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 36px); max-width: 880px; margin: 0 auto; align-items: start; }
.phone { margin: 0; text-align: center; }
.phone img { width: 100%; height: auto; border-radius: 34px; border: 6px solid var(--ink); box-shadow: var(--shadow-lg); background: var(--ink); }
.phone figcaption { margin-top: 14px; font-size: 0.92rem; font-weight: 600; color: var(--n700); }
.shots .phone:nth-child(2) { transform: translateY(28px); }
@media (max-width: 700px) {
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 4px 4px 12px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); max-width: none; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .shots::-webkit-scrollbar { display: none; }
  .shots .phone { flex: 0 0 70%; max-width: 280px; scroll-snap-align: center; transform: none !important; }
}

/* ---------- Features ---------- */
.feature { background: var(--n100); border-radius: var(--r-md); padding: 22px 22px 20px; }
.feature .glyph { width: 40px; height: 40px; border-radius: 50%; background: var(--a100); color: var(--a700); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature .glyph svg { width: 20px; height: 20px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--n700); font-size: 0.95rem; }

/* ---------- Download band ---------- */
.band { background: var(--ink); color: var(--bg); border-radius: var(--r-lg); padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.band h2 { color: var(--bg); margin-bottom: 8px; }
.band p { color: var(--n400); margin: 0; }
.band .btn.primary { background: var(--a400); color: var(--ink); }
.band .btn.primary:hover { background: var(--a300); }
.band .btn.secondary { color: var(--bg); border-color: rgba(245, 234, 216, 0.3); }
.band .btn.secondary:hover { background: rgba(245, 234, 216, 0.1); }
.band .actions { display: flex; flex-direction: column; gap: 10px; min-width: 240px; }

/* ---------- Prose pages (privacy, support) ---------- */
.page-head { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 16ch; }
.prose { max-width: 720px; padding-bottom: clamp(56px, 9vw, 104px); }
.prose h2 { font-size: 1.55rem; margin: 2.2em 0 0.5em; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 0.4em; }
.prose p, .prose li { color: var(--n800); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 0 0 1.4em; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--divider); }
.prose th { font-weight: 600; color: var(--n900); background: var(--n100); }
.prose .callout { background: var(--n100); border-left: 4px solid var(--accent); border-radius: var(--r-sm); padding: 14px 18px; margin: 0 0 1.4em; }
.prose .callout p { margin: 0; }
.prose details { border: 1px solid var(--divider); border-radius: var(--r-md); padding: 0 18px; margin-bottom: 10px; background: var(--n100); }
.prose summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--text); }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; font-family: var(--font-display); font-size: 1.3rem; color: var(--accent); flex: none; }
.prose details[open] summary::after { content: "–"; }
.prose details > :not(summary) { margin-top: 0; }
.prose details p:last-child { padding-bottom: 14px; margin-bottom: 0; }
.contact-card { background: var(--a100); border-radius: var(--r-lg); padding: 24px 26px; margin: 0 0 2em; }
.contact-card h2 { margin-top: 0; }
.contact-card p:last-child { margin-bottom: 0; }

/* ---------- 404 ---------- */
.lost { min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; justify-content: center; text-align: center; padding: 48px var(--gutter); }
.lost .mascot { display: block; width: 120px; height: 120px; margin: 0 auto 20px; }
.lost h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.lost .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Motion ---------- */
@keyframes device-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-9px) rotate(-0.6deg); }
  30% { transform: translateX(8px) rotate(0.5deg); }
  45% { transform: translateX(-6px); }
  60% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
  90% { transform: translateX(2px); }
}
@keyframes delta-float {
  0% { opacity: 0; transform: translate(-50%, 6px); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -18px); }
}
@keyframes icon-bounce {
  0% { transform: scale(1); }
  26% { transform: scale(1.16); }
  56% { transform: scale(0.95); }
  100% { transform: scale(1); }
}
@keyframes ring-pulse {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(1.28); opacity: 0; }
}
@keyframes card-enter {
  0% { transform: scale(0.95) translateY(12px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes stamp-in {
  0% { transform: translate(-50%, -50%) scale(1.6) rotate(-8deg); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1) rotate(-8deg); opacity: 1; }
}
@keyframes mascot-pop {
  0% { transform: scale(0.3) rotate(-18deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes hand-slide {
  0% { transform: translateX(-70%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(10%); opacity: 0; }
}
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .device.shake, .stat .icon-circle.bounce, .swipe-hint { animation: none; }
  .play-card.settle, .play-card.fly, .stat .fill { transition-duration: 0.01s; }
  .play-card.enter, .stamp, .death-card .mascot.pop { animation-duration: 0.01s; }
  .death-card .mascot { transform: none; opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-copy h1 { max-width: 14ch; }
  .hero-actions { justify-content: center; }
  .band { grid-template-columns: 1fr; }
  .band .actions { min-width: 0; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .device { width: 100%; border-width: 7px; border-radius: 40px; padding: 40px 12px 16px; }
  .stack { height: 310px; }
  .footer nav { flex-wrap: wrap; }
}
