/*
 * FREQ's app page (/freq/). FREQ's own palette and type, as in the game:
 * ground #10150c, acid lime #d6ff3e, violet #c6a0ff, Barlow Condensed for display.
 * The legal pages use the studio's palette instead (legal.css).
 * Fonts are FREQ's own self-hosted copies (SIL OFL, licences beside them).
 */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('/freq/fonts/barlow-condensed-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('/freq/fonts/barlow-condensed-800-latin.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/freq/fonts/dm-sans-latin.woff2') format('woff2'); }

:root {
  --ground: #10150c;
  --ground-2: #161d11;
  --lime: #d6ff3e;
  --violet: #c6a0ff;
  --text: #eef3e2;
  --muted: #a7b39a;
  --line: rgba(214, 255, 62, 0.16);
  --panel: rgba(255, 255, 255, 0.035);
  --display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif-condensed, sans-serif;
  --body: 'DM Sans', ui-sans-serif, system-ui, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ── top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; max-width: 1240px; margin: 0 auto; }
.top a { color: var(--muted); text-decoration: none; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.top a:hover { color: var(--lime); }
.top nav { display: flex; gap: 18px; }

/* ── hero: the landscape cover carries the logo and tagline itself */
.hero { position: relative; max-width: 1240px; margin: 0 auto; }
.hero picture, .hero img { width: 100%; }
.hero img { aspect-ratio: 1672 / 941; object-fit: cover; border-radius: 0; }
@media (min-width: 900px) { .hero { padding: 0 20px; } .hero img { border-radius: 14px; } }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(to bottom, rgba(16,21,12,0), var(--ground)); pointer-events: none; }

/* ── intro */
.intro { position: relative; margin-top: -28px; padding-bottom: 16px; }
.eyebrow { margin: 0 0 10px; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--violet); }
h1 { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 0.95; letter-spacing: 0.005em; font-size: clamp(44px, 9vw, 92px); }
h1 .dot { color: var(--lime); }
h1 .tag { display: block; margin-top: 10px; font-size: clamp(22px, 3.6vw, 34px); font-weight: 700; letter-spacing: 0.08em; color: var(--text); }
.lede { max-width: 680px; margin: 20px 0 0; font-size: 18px; color: #d9e2cc; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 26px 0 0; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--lime); color: #10150c;
  font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: 0.08em; text-transform: uppercase;
}
.badge::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #10150c; box-shadow: 0 0 0 3px rgba(16,21,12,0.25); }
.cta small { color: var(--muted); font-size: 14px; }

.safety {
  display: flex; gap: 12px; align-items: flex-start;
  max-width: 680px; margin: 28px 0 0; padding: 14px 16px;
  border: 1px solid rgba(198, 160, 255, 0.38); border-left: 4px solid var(--violet); border-radius: 6px;
  background: rgba(198, 160, 255, 0.06);
}
.safety svg { flex: 0 0 auto; margin-top: 2px; color: var(--violet); }
.safety p { margin: 0; font-weight: 600; }

/* ── section shells */
section.block { padding: 56px 0 8px; }
h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 5vw, 44px); line-height: 1; text-transform: uppercase; }
h2 + .sub { margin: 0 0 24px; color: var(--muted); max-width: 640px; }

/* ── walk / find / catch */
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--display); font-weight: 800; font-size: 34px; color: var(--lime); line-height: 1; margin-bottom: 8px; }
.steps h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: 0.03em; }
.steps p { margin: 0; color: #cfd8c2; }

/* ── screenshots: a row that scrolls sideways on phones */
.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; margin: 0; list-style: none; -webkit-overflow-scrolling: touch; }
.shots li { flex: 0 0 auto; width: min(62vw, 230px); scroll-snap-align: start; margin: 0; }
.shots img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); background: var(--ground-2); }
.shots figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (min-width: 1000px) { .shots { overflow: visible; justify-content: space-between; } .shots li { width: 23%; } }

/* ── features */
.features { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; list-style: none; margin: 0; padding: 0; }
.features li { background: var(--ground); padding: 18px 18px 20px; margin: 0; }
.features h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--lime); }
.features p { margin: 0; color: #cfd8c2; font-size: 15px; }

/* ── the twelve families */
.families { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); list-style: none; margin: 0; padding: 0; }
.families li { margin: 0; padding: 10px 8px 8px; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 38%, rgba(198,160,255,0.14), rgba(255,255,255,0.02) 70%); text-align: center; }
.families img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.families span { display: block; margin-top: 4px; font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ── fair play */
.fair { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.fair div { padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.fair strong { display: block; font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px; }
.fair p { margin: 0; color: #cfd8c2; font-size: 15px; }

/* ── help links */
.help { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); list-style: none; margin: 0; padding: 0; }
.help a { display: block; height: 100%; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: var(--text); }
.help a:hover, .help a:focus-visible { border-color: var(--lime); }
.help strong { display: block; font-family: var(--display); font-weight: 800; font-size: 21px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--lime); }
.help span { font-size: 14px; color: var(--muted); }

/* ── legal notice */
.legal { margin-top: 64px; padding: 26px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.legal p { margin: 0 0 8px; }
.legal nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; }
.legal a { color: var(--text); }

a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .top { padding: 14px 16px; }
  .top nav { gap: 12px; }
  .top a { letter-spacing: 0.08em; font-size: 12px; }
  .lede { font-size: 17px; }
}
@media (prefers-reduced-motion: no-preference) { .help a { transition: border-color 0.2s ease; } }
