/* Earshot landing page. Colours, type and shapes come from docs/design_system/tokens.json:
   keep the signal colours to their meanings (gold you, blue friends, green the way out,
   red zombies, cyan noise, orange gunshots). */

@font-face { font-family: "Permanent Marker"; src: url("assets/fonts/PermanentMarker-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo Black"; src: url("assets/fonts/ArchivoBlack-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("assets/fonts/Overpass-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("assets/fonts/Overpass-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("assets/fonts/Overpass-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("assets/fonts/Overpass-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  color-scheme: dark;
  --night-000: #0a0c0d;
  --night-100: #111415;
  --night-200: #191d1f;
  --night-300: #22272a;
  --line: #30373b;
  --line-strong: #66767f;
  --outline: #050607;
  --rim: #3a4348;
  --ink: #edeff0;
  --ink-muted: #a1aaaf;
  --ink-faint: #7e8a91;
  --on-signal: #0b0f12;
  --you: #f7c948;
  --you-soft: #f7c94826;
  --buddy: #4a9bf0;
  --threat: #f76168;
  --echo: #9becef;
  --echo-loud: #ff9f43;
  --beacon: #56d39a;

  --shadow-key: inset 0 1px 0 #ffffff59, inset 0 -4px 0 #00000047, 2px 4px 0 #050607, 3px 5px 0 #3a4348;
  --shadow-key-quiet: inset 0 1px 0 #ffffff1a, inset 0 -4px 0 #00000047, 2px 4px 0 #050607, 3px 5px 0 #3a4348;
  --shadow-key-pressed: inset 0 1px 0 #ffffff1a, inset 0 -1px 0 #00000047;
  --shadow-toon: 0 4px 0 #050607;
  --shadow-toon-lg: 0 6px 0 #050607;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --font-title: "Permanent Marker", "Marker Felt", cursive;
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-sans: "Overpass", "Helvetica Neue", Arial, sans-serif;

  --gutter: 16px;
  --section: clamp(72px, 10vw, 128px);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--night-100);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--you); outline-offset: 2px; border-radius: var(--radius-sm); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--you); color: var(--on-signal); padding: 8px 16px; border-radius: var(--radius-md); font-weight: 800; }
.skip:focus { left: 8px; }

/* ───────── Buttons: keys you can almost press ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 800 15px/1 var(--font-sans);
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  padding: 14px 22px 16px;
  border: 2px solid var(--outline);
  border-radius: var(--radius-md);
  transition: transform 80ms ease-out, box-shadow 80ms ease-out, filter 120ms ease-out;
  white-space: nowrap;
}
.btn:focus-visible { outline-offset: 6px; border-radius: var(--radius-md); }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translate(2px, 4px); box-shadow: var(--shadow-key-pressed); }
.btn-primary { background: var(--you); color: var(--on-signal); box-shadow: var(--shadow-key); }
.btn-quiet { background: var(--night-300); color: var(--ink); box-shadow: var(--shadow-key-quiet); }
.btn-sm { font-size: 13px; padding: 10px 14px 12px; }

/* "Coming soon" sits where a store button will go: a label, not a control, so it's drawn flat. */
.soon {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 15px/1 var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-muted); white-space: nowrap;
  padding: 14px 20px 13px;
  border: 2px dashed var(--line-strong); border-radius: var(--radius-md);
}
.soon-sm { font-size: 12px; padding: 9px 12px 8px; }
.soon-lg { font-size: 15px; padding: 18px 24px 17px; }
.btn-lg { font-size: 17px; padding: 18px 28px 20px; }

/* ───────── Nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--night-000) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav-mark { font: 28px/1 var(--font-title); text-decoration: none; letter-spacing: 0.01em; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: var(--radius-md);
  font: 700 13px/1 var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-muted); text-decoration: none;
}
.nav-links a:hover { color: var(--ink); background: var(--night-300); }
@media (max-width: 880px) {
  .nav nav { display: none; }
  .nav-inner > .soon { margin-left: auto; }
}

/* ───────── Placeholders: swap each for an <img> or <video> ───────── */
.ph {
  position: relative;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, #ffffff06 0 2px, transparent 2px 14px),
    radial-gradient(120% 90% at 70% 30%, var(--night-300), var(--night-200) 60%, var(--night-100));
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}
.ph-label {
  display: grid; gap: 6px;
  max-width: 46ch;
  padding: 20px 22px;
}
.ph-kind { font: 700 13px/1.2 var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.ph-spec { font: 600 13px/1.4 var(--font-sans); color: var(--ink-faint); }
.ph-brief { font-size: 15px; line-height: 1.5; color: var(--ink-muted); }

/* ───────── Hero ───────── */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: flex; align-items: center;
  padding: 96px 0 120px;
  isolation: isolate;
  overflow: hidden;
}
.hero-art {
  position: absolute; inset: 0; z-index: -2;
  border: 0; border-radius: 0;
  justify-content: flex-end;
}
.hero-art .ph-label {
  position: absolute; right: var(--gutter); top: 24px;
  text-align: right; justify-items: end;
  border: 2px dashed var(--line-strong); border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--night-000) 70%, transparent);
  max-width: 40ch;
}
/* Fades the art into the page so the title reads and the next section joins. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--night-000) 0%, color-mix(in srgb, var(--night-000) 70%, transparent) 38%, transparent 70%),
    linear-gradient(0deg, var(--night-100) 0%, transparent 30%);
}
.hero-copy { position: relative; z-index: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 5px;
  border: 2px solid var(--outline); border-radius: var(--radius-pill);
  background: var(--night-200); box-shadow: 0 2px 0 var(--outline);
  font: 700 12px/1.3 var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-muted);
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--beacon); box-shadow: 0 0 0 3px #56d39a33; }
.sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.wordmark {
  font: 400 clamp(76px, 15vw, 184px)/0.95 var(--font-title);
  margin: 20px 0 8px -0.04em;
  text-shadow: 0 6px 0 var(--outline);
}
.tagline {
  font: 800 clamp(20px, 2.6vw, 28px)/1.25 var(--font-sans);
  color: var(--ink);
}
.tagline span { display: inline-block; }
.lede { margin-top: 18px; max-width: 46ch; color: var(--ink-muted); font-size: clamp(16px, 1.6vw, 19px); }
.actions { display: flex; flex-wrap: wrap; gap: 16px 20px; margin-top: 32px; }
.facts {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  list-style: none; padding: 0; margin: 28px 0 0;
  font: 700 13px/1 var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-faint);
}
.facts li { display: flex; align-items: center; }
.facts li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); margin: 0 12px 2px -12px; }

/* The signal motif: a gold you, its cone, footstep rings and now and then a gunshot. */
.hero-signal {
  position: absolute; z-index: -1;
  left: 68%; top: 54%;
  width: 0; height: 0;
  pointer-events: none;
}
.sig-you {
  position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--you); border: 2px solid var(--outline);
  box-shadow: 0 0 0 4px #f7c94833;
}
.sig-cone {
  position: absolute; left: -380px; top: -380px; width: 760px; height: 760px; border-radius: 50%;
  background: conic-gradient(from 10deg, transparent 0deg, var(--you-soft) 1deg 63deg, transparent 64deg);
  -webkit-mask: radial-gradient(circle, #000 0%, #000 45%, transparent 70%);
          mask: radial-gradient(circle, #000 0%, #000 45%, transparent 70%);
  transform: rotate(-30deg);
}
.sig-ring {
  position: absolute; left: 0; top: 0; width: 2px; height: 2px; border-radius: 50%;
  border: 2px solid var(--echo);
  opacity: 0;
  animation: ring 2.4s ease-out infinite;
}
.sig-ring.r2 { animation-delay: 0.8s; }
.sig-ring.r3 { animation-delay: 1.6s; }
@keyframes ring {
  0%   { width: 2px; height: 2px; margin: -1px; opacity: 0.9; }
  100% { width: 120px; height: 120px; margin: -60px; opacity: 0; }
}
.sig-ring.shot { animation: shot 7s cubic-bezier(.2,.7,.3,1) infinite; animation-delay: 2s; }
@keyframes shot {
  0%   { width: 2px; height: 2px; margin: -1px; opacity: 0; border-color: var(--echo); }
  1%   { opacity: 1; }
  14%  { width: 900px; height: 900px; margin: -450px; opacity: 0.85; border-color: var(--echo-loud); border-width: 3px; }
  20%  { width: 940px; height: 940px; margin: -470px; opacity: 0; border-color: var(--echo-loud); }
  100% { width: 940px; height: 940px; margin: -470px; opacity: 0; }
}
.sig-z {
  position: absolute; width: 12px; height: 12px; margin: -6px; border-radius: 50%;
  background: var(--threat); border: 2px solid var(--outline);
  opacity: 0.55;
  animation: heard 7s ease-out infinite; animation-delay: 2s;
}
.sig-z.z1 { left: 220px; top: -160px; }
.sig-z.z2 { left: -250px; top: 230px; animation-delay: 2.15s; }
.sig-z.z3 { left: 340px; top: 150px; animation-delay: 2.3s; }
@keyframes heard {
  0%, 8%  { opacity: 0.55; transform: scale(1); }
  11%     { opacity: 1; transform: scale(1.5); }
  20%     { opacity: 1; transform: scale(1); }
  70%     { opacity: 1; }
  100%    { opacity: 0.55; }
}
@media (max-width: 560px) {
  .facts { gap: 8px 20px; }
  .facts li + li::before { display: none; }
}
@media (max-width: 880px) {
  .hero-signal { left: 78%; top: 24%; transform: scale(0.6); }
  .hero-art .ph-label { display: none; }
}

/* ───────── Sections ───────── */
.section { padding: var(--section) 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.eyebrow {
  font: 700 13px/1 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 14px;
}
h2 { font: 800 clamp(30px, 4.4vw, 48px)/1.1 var(--font-sans); letter-spacing: -0.01em; text-wrap: balance; }
.section-lede { margin-top: 16px; color: var(--ink-muted); font-size: 19px; max-width: 54ch; }
h3 { font: 800 19px/1.3 var(--font-sans); }

/* Pillars: each card wears the one signal colour it stands for. */
/* Stacked cards. On wide screens each is a row, its clip alternating sides, so no two clips play side by side. */
.pillars { display: grid; gap: 40px; }
@media (min-width: 860px) { .pillars { gap: 56px; } }
.footnote { text-align: center; font: 600 14px/1.5 var(--font-sans); color: var(--ink-faint); }
.pillar {
  display: flex; flex-direction: column;
  background: var(--night-200);
  border: 2px solid var(--outline);
  border-top: 4px solid var(--sig);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-toon-lg);
  overflow: hidden;
}
/* The clip sits flush in the card: swap the placeholder for a <video class="pillar-media"> or <img class="pillar-media">. */
.pillar-ph, .pillar-media {
  display: block; flex: none;
  aspect-ratio: 16 / 9; width: 100%; object-fit: cover;
  border-radius: 0; border: 0 solid var(--outline); border-bottom-width: 2px;
  background-color: var(--night-100);
}
.pillar-ph { display: flex; border-style: dashed; border-color: var(--line-strong); }
.pillar-body { padding: 22px 24px 28px; }
.pillar h3 { display: flex; align-items: center; gap: 12px; font-size: 21px; }
.pillar p { margin-top: 10px; color: var(--ink-muted); font-size: 16px; }
@media (min-width: 860px) {
  .pillar { flex-direction: row; align-items: center; }
  .pillar:nth-child(even) { flex-direction: row-reverse; }
  .pillar-ph, .pillar-media { width: 58%; border-bottom-width: 0; border-right-width: 2px; }
  .pillar:nth-child(even) .pillar-ph, .pillar:nth-child(even) .pillar-media { border-right-width: 0; border-left-width: 2px; }
  .pillar-body { flex: 1; padding: 32px 40px; }
  .pillar h3 { font-size: 24px; }
  .pillar p { font-size: 17px; margin-top: 14px; }
}
.glyph {
  flex: none; width: 30px; height: 30px;
  fill: none; stroke: var(--sig); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.glyph .fill { fill: var(--sig); stroke: none; }

/* Sound */
.sound { background: var(--night-000); border-block: 1px solid var(--line); }
.sound-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .sound-grid { grid-template-columns: 5fr 7fr; } }
.sound-copy > p { margin-top: 16px; color: var(--ink-muted); }
.sound-copy h2 { margin-bottom: 4px; }
.radii { margin: 28px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.radii div { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.radii dt { color: var(--ink); font-weight: 600; }
.radii dd { margin: 0; font: 800 20px/1 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--echo); }
.radii .loud dd { color: var(--echo-loud); }
.sound-copy .fine { font-size: 15px; color: var(--ink-faint); margin-top: 20px; }

.radius-figure { margin: 0; }
.radius-figure svg { width: 100%; height: auto; overflow: visible; }
.arc { fill: none; stroke: var(--echo); stroke-width: 2.5; opacity: 0.9; }
.arc.loud { stroke: var(--echo-loud); stroke-width: 3; }
.arcs path:nth-child(1) { fill: #ff9f430a; }
.arcs path:nth-child(2) { fill: #ff9f4310; }
.ground { stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 2 6; }
.zed { fill: var(--threat); stroke: var(--outline); stroke-width: 2.5; }
.zed.far { opacity: 0.45; }
.you { fill: var(--you); stroke: var(--outline); stroke-width: 3; }
.tick { fill: var(--ink-faint); font: 700 15px var(--font-sans); letter-spacing: 0.04em; }
.radius-figure figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.key { display: inline-flex; align-items: center; gap: 8px; }
.key i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--outline); }
.k-you { background: var(--you); }
.k-zed { background: var(--threat); }
.k-echo, .k-loud { background: none !important; border-width: 2.5px !important; }
.k-echo { border-color: var(--echo) !important; }
.k-loud { border-color: var(--echo-loud) !important; }

/* Every run */
.features { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.feature { background: var(--night-100); padding: 28px 26px 30px; }
.feature p { margin-top: 10px; color: var(--ink-muted); font-size: 16px; }

/* Co-op */
.coop { background: var(--night-000); border-block: 1px solid var(--line); }
.coop-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .coop-grid { grid-template-columns: 6fr 5fr; } }
/* The cast round the fire, rendered on night-000; its edges fade into the section so the firelit ground has no seam. */
.cast-art {
  width: 100%; height: auto; display: block;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, #000 58%, transparent 98%);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, #000 58%, transparent 98%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
.coop-copy > p { margin-top: 16px; color: var(--ink-muted); }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; color: var(--ink-muted); }
.steps strong { color: var(--ink); font-weight: 800; }
.step-n {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-md);
  background: var(--night-300); border: 2px solid var(--outline); box-shadow: 0 2px 0 var(--outline);
  font: 800 16px/1 var(--font-sans); color: var(--ink);
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font: 800 18px/1.3 var(--font-sans);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2.5px solid var(--ink-muted); border-bottom: 2.5px solid var(--ink-muted);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform 160ms ease-out;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { padding: 0 0 22px; color: var(--ink-muted); max-width: 60ch; }

/* Final call */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(96px, 14vw, 168px) 0;
  background: var(--night-000);
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta-inner { display: grid; justify-items: center; gap: 20px; }
.cta p { color: var(--ink-muted); max-width: 44ch; font-size: 19px; margin-bottom: 12px; }
.display { font: 400 clamp(44px, 8vw, 88px)/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; text-shadow: 0 6px 0 var(--outline); }
.cta-rings { position: absolute; left: 50%; top: 50%; z-index: -1; }
.cta-rings span {
  position: absolute; border-radius: 50%; border: 2px solid var(--echo); opacity: 0;
  animation: cta-ring 6s ease-out infinite;
}
.cta-rings span:nth-child(2) { animation-delay: 2s; }
.cta-rings span:nth-child(3) { animation-delay: 4s; }
@keyframes cta-ring {
  0%   { width: 40px; height: 40px; margin: -20px; opacity: 0.35; }
  100% { width: 1400px; height: 1400px; margin: -700px; opacity: 0; }
}

/* Footer */
.footer { background: var(--night-000); border-top: 1px solid var(--line); padding: 36px 0 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.studio { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; }
.studio img { width: 40px; height: 40px; border-radius: var(--radius-md); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--ink-muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.legal { width: 100%; font-size: 13px; color: var(--ink-faint); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sig-ring, .sig-z, .cta-rings span { animation: none; }
  .sig-ring.r1 { width: 60px; height: 60px; margin: -30px; opacity: 0.6; }
  .sig-ring.shot { width: 520px; height: 520px; margin: -260px; opacity: 0.35; border-color: var(--echo-loud); }
  .cta-rings span:nth-child(1) { width: 600px; height: 600px; margin: -300px; opacity: 0.15; }
  .btn { transition: none; }
}
