/* SnakeWave website: landing page, support, privacy. Colors and type come from the app's
   Studio style (Design/DESIGN.md). The private browser game has its own CSS in its folder. */
@font-face {
  font-family: 'Archivo';
  src: url('fonts/Archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
:root {
  --blue: #1A2A9C; --board: #14207A; --edge: #0F1960; --raise: #2236B0;
  --line: rgba(255,255,255,.14); --text: #FFFFFF; --soft: #C5CBF2;
  --gold: #FFC93C; --ink: #14207A; --cream: #F4F1E6; --coral: #FF5B47;
  --gutter: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--blue); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--blue); color: var(--text);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px; font-weight: 440; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.page { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---- header ---- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-stretch: 125%; font-size: 21px; letter-spacing: -0.01em; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.top nav { display: flex; gap: 4px; }
.top nav a { text-decoration: none; color: var(--soft); font-weight: 600; font-size: 16px; padding: 10px 14px; border-radius: 10px; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); background: var(--line); }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(24px, 5vw, 64px) 0 clamp(56px, 8vw, 112px); }
.hero h1 { font-weight: 800; font-stretch: 125%; font-size: clamp(42px, 5.6vw, 82px); line-height: .98; letter-spacing: -0.02em; text-wrap: balance; }
.hero .lede { margin-top: 26px; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; color: var(--soft); max-width: 27em; }
.store { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.store-badge { display: inline-block; border-radius: 9px; }
.store-badge img { display: block; height: 56px; width: auto; }
.store-badge:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.store p { font-size: 16px; color: var(--soft); max-width: 17em; line-height: 1.35; }
.board { position: relative; aspect-ratio: 1; border-radius: clamp(20px, 3vw, 36px); background: var(--board); box-shadow: inset 0 0 0 2px var(--edge), 0 30px 60px -30px rgba(4,8,50,.9); overflow: hidden; }
.board canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---- sections ---- */
.band { padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.band.dark { background: var(--board); border-top: 0; }
.band h2 { font-weight: 800; font-stretch: 125%; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.02; letter-spacing: -0.015em; }
.band .intro { margin-top: 14px; color: var(--soft); max-width: 34em; }

.modes { margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.modes li { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2.6fr) auto; gap: 8px 28px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.modes h3 { font-weight: 800; font-stretch: 125%; font-size: clamp(22px, 2.3vw, 30px); letter-spacing: -0.01em; }
.modes p { color: var(--soft); }
.tag { font-size: 14px; font-weight: 700; padding: 4px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--soft); white-space: nowrap; }
.tag.plus { background: var(--gold); color: var(--ink); box-shadow: none; }

.looks { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); }
.looks figure { margin: 0; }
.looks img { width: 100%; border-radius: clamp(12px, 1.6vw, 22px); box-shadow: 0 0 0 1px var(--line); }
.looks figcaption { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; font-stretch: 112%; }

.notes { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px clamp(28px, 6vw, 88px); }
.notes h3 { font-weight: 700; font-stretch: 112%; font-size: 21px; margin-bottom: 8px; }
.notes p { color: var(--soft); max-width: 31em; }

.price { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 28px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.price > div { padding: clamp(24px, 3.4vw, 44px); }
.price > div + div { background: var(--raise); }
.price h3 { font-weight: 800; font-stretch: 125%; font-size: clamp(26px, 3vw, 40px); line-height: 1; }
.price .cost { margin: 8px 0 20px; color: var(--soft); }
.price li { padding: 9px 0; border-top: 1px solid var(--line); }

/* ---- support and privacy ---- */
.doc { max-width: 700px; padding: clamp(24px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.doc h1 { font-weight: 800; font-stretch: 125%; font-size: clamp(38px, 6vw, 64px); line-height: 1; letter-spacing: -0.02em; margin-bottom: 18px; }
.doc .lede { font-size: 21px; line-height: 1.45; color: var(--soft); }
.doc h2 { font-weight: 800; font-stretch: 125%; font-size: 26px; line-height: 1.1; margin: 56px 0 6px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc h3 { font-weight: 700; font-stretch: 112%; font-size: 19px; margin: 26px 0 6px; }
.doc p { margin-bottom: 14px; color: var(--soft); }
.doc p strong, .doc li strong { color: var(--text); }
.doc ul { margin: 0 0 14px; color: var(--soft); }
.doc ul li { padding-left: 22px; position: relative; margin-bottom: 8px; }
.doc ul li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.doc a { color: var(--gold); text-underline-offset: 3px; }
.doc .dated { font-size: 16px; }
.contact { margin-top: 28px; padding: 22px 24px; border-radius: 20px; background: var(--raise); }
.contact p { margin: 0; color: var(--text); }

/* ---- press kit (press/) ---- */
.doc.kit { max-width: 980px; }
.kit .lede, .kit > p, .kit > ul { max-width: 700px; }
.facts { display: grid; grid-template-columns: minmax(130px, auto) minmax(0, 1fr); margin-top: 18px; border-top: 1px solid var(--line); max-width: 700px; }
.facts dt, .facts dd { padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; padding-right: 20px; }
.facts dd { color: var(--soft); overflow-wrap: anywhere; }
.facts a, .kit-icons a { color: var(--gold); text-underline-offset: 3px; }
.kit-shots { display: grid; gap: 16px; margin: 14px 0 8px; }
.kit-shots.phone { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kit-shots.tablet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kit-shots figure { margin: 0; }
.kit-shots a, .kit-wide a { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.kit-shots a:hover, .kit-wide a:hover, .kit-icons > a:hover { box-shadow: 0 0 0 2px var(--gold); }
.kit-shots img, .kit-wide img { width: 100%; }
.kit-shots figcaption { margin-top: 8px; font-size: 14px; color: var(--soft); line-height: 1.3; }
.kit-wide { margin: 14px 0 8px; }
.kit-icons { display: flex; align-items: center; gap: 24px; margin: 18px 0; }
.kit-icons > a { flex: none; display: block; border-radius: 22%; overflow: hidden; }
.kit-icons img { width: 120px; height: 120px; }
.doc .kit-icons ul { margin: 0; }
.doc .kit-icons ul li { padding-left: 0; }
.doc .kit-icons ul li::before { content: none; }
.kit .contact { max-width: 700px; margin-top: 48px; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 44px; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; color: var(--soft); font-size: 16px; }
.foot a { text-underline-offset: 3px; }
.foot .legal { flex-basis: 100%; font-size: 13px; color: var(--soft); }
.foot .brand { font-size: 17px; color: var(--text); margin-right: auto; }
.foot .brand img { width: 28px; height: 28px; border-radius: 7px; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  .hero { grid-template-columns: 1fr; }
  .modes li { grid-template-columns: 1fr auto; }
  .modes p { grid-column: 1 / -1; grid-row: 2; }
  .looks { grid-template-columns: repeat(5, 62vw); overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(var(--gutter) * -1); padding: 2px var(--gutter) 12px 2px; }
  .looks figure { scroll-snap-align: start; }
  .notes, .price { grid-template-columns: 1fr; }
  .kit-shots.phone { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kit-shots.tablet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
  .facts dd { padding-top: 2px; }
}
@media (max-width: 480px) {
  .brand { font-size: 19px; gap: 9px; }
  .top nav a { padding: 10px 8px; font-size: 15px; }
}
