/* Barlow Semi Condensed, the game's own typeface (OFL, see /fonts/OFL.txt). */
@font-face { font-family: "Barlow"; src: url("/fonts/barlow_sc_regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow_sc_medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow_sc_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow_sc_extrabold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --bg: #0a0d11;
  --board: #0e271f;
  --board-hi: #17402f;
  --surface: #141920;
  --line: #232a33;
  --text: #eef0f3;
  --body: #c6ccd4;
  --muted: #a9b2bd;
  --faint: #6c7782;
  --copper: #f2a53a;
  --copper-hi: #ffc266;
  --mask: #1f7a55;
  --good: #57c97d;
  --info: #6fa8ff;
  --danger: #ef5b4c;
  --radius: 22px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 18px/1.6 "Barlow", system-ui, sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--copper); text-underline-offset: 3px; transition: color 0.15s ease; }
a:hover { color: var(--copper-hi); }
a:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.overline {
  color: var(--copper);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 13, 17, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
/* A hairline like a trace: copper fading into solder-mask green. */
.top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 165, 58, 0.5) 30%, rgba(31, 122, 85, 0.6) 70%, transparent);
}
.top .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: 0.02em; }
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 4px 16px rgba(242, 165, 58, 0.22); }
.top nav {
  display: flex; gap: 2px; padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.top nav a {
  padding: 6px 16px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.4;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.top nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.top nav a[aria-current="page"] { color: var(--text); background: rgba(242, 165, 58, 0.16); }
.top .store-badge { justify-self: end; }

/* Google's official badge, used as supplied (https://play.google.com/intl/en_us/badges/) */
.store-badge { display: inline-block; line-height: 0; border-radius: 10px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.store-badge img { width: 188px; height: auto; }
.top .store-badge { border-radius: 7px; }
.top .store-badge img { width: 135px; }
.store-badge:hover, .store-badge:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(242, 165, 58, 0.6), 0 14px 50px rgba(242, 165, 58, 0.2);
  outline: none;
}
.top .store-badge:hover, .top .store-badge:focus-visible { box-shadow: 0 0 0 2px rgba(242, 165, 58, 0.6), 0 8px 24px rgba(242, 165, 58, 0.18); }
.store-badge:active { transform: translateY(0); }

/* Hero: the solder mask, lit by the LED. */
.hero {
  position: relative;
  padding: 72px 0 96px;
  background:
    radial-gradient(45% 60% at 80% 40%, rgba(242, 165, 58, 0.14), transparent 70%),
    radial-gradient(70% 90% at 20% 10%, var(--board-hi), transparent 75%),
    linear-gradient(180deg, var(--board), var(--bg) 95%);
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.hero h1 {
  margin: 16px 0 20px;
  font-size: clamp(44px, 6.4vw, 76px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--copper); }
.hero p.lede { color: var(--body); font-size: 20px; max-width: 32em; margin: 0 0 32px; }
.hero .note { margin-top: 16px; color: var(--muted); font-size: 15px; }
.hero-shot { justify-self: center; width: 100%; }

/* A landscape phone around a capture. */
.phone {
  padding: 7px; border-radius: 30px; background: #1a1f27;
  box-shadow: 0 0 0 1px #2c3440, 0 30px 70px rgba(0, 0, 0, 0.6);
}
.phone img { border-radius: 24px; width: 100%; height: auto; }
.hero .phone { box-shadow: 0 0 0 1px #2c3440, 0 0 0 4px rgba(242, 165, 58, 0.35), 0 40px 90px rgba(0, 0, 0, 0.65); }

/* Sections */
section { padding: 96px 0; }
section h2 {
  margin: 12px 0 16px;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.08;
  font-weight: 800;
  text-wrap: balance;
}
section .intro { color: var(--muted); max-width: 40em; margin: 0; font-size: 19px; }

/* Screenshot strip */
.shots { border-top: 1px solid var(--line); }
.strip {
  display: flex; gap: 28px;
  margin-top: 48px; padding: 8px 24px 28px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
@media (min-width: 1168px) {
  .strip { padding-left: calc((100vw - var(--max)) / 2 + 24px); padding-right: calc((100vw - var(--max)) / 2 + 24px); }
}
.strip figure { flex: none; width: 520px; margin: 0; scroll-snap-align: center; }
.strip figcaption { margin-top: 16px; }
.strip figcaption b { display: block; font-size: 19px; font-weight: 700; }
.strip figcaption span { color: var(--muted); font-size: 16px; line-height: 1.5; display: block; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 24px;
}
/* A pad: a copper ring on the card. */
.card .pad { width: 14px; height: 14px; border-radius: 50%; margin-bottom: 18px; border: 3px solid var(--copper); }
.pad-good { border-color: var(--good) !important; }
.pad-info { border-color: var(--info) !important; }
.pad-danger { border-color: var(--danger) !important; }
.card h3 { margin: 0 0 8px; font-size: 21px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 16.5px; }

/* Privacy band */
.private {
  background: linear-gradient(180deg, var(--bg), var(--board));
  border-top: 1px solid var(--line);
  text-align: center;
}
.private .intro { margin: 0 auto; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 32px 0; }
.pills span {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 16px; font-weight: 600;
}

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
footer .brand { font-size: 18px; margin-right: auto; }
footer .legal { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; color: var(--faint); }

/* Policy page */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(38px, 5vw, 52px); font-weight: 800; line-height: 1.08; margin: 12px 0 8px; }
.doc .meta { color: var(--muted); margin: 0 0 40px; }
.doc h2 { font-size: 25px; font-weight: 700; margin: 44px 0 10px; }
.doc p, .doc li { color: var(--body); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .summary {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--copper); border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 8px;
}
.doc .summary p { margin: 0; color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.doc td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.doc td { color: var(--body); }

@media (max-width: 900px) {
  .top .wrap { grid-template-columns: 1fr auto; }
  .top nav { display: none; }
  .hero { padding: 40px 0 64px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip figure { width: 440px; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  section { padding: 72px 0; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .strip { padding: 8px 16px 24px; gap: 18px; }
  .strip figure { width: 300px; }
  .phone { padding: 5px; border-radius: 20px; }
  .phone img { border-radius: 16px; }
  .doc td:first-child { white-space: normal; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { padding: 4px 0; border: 0; }
  .doc tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store-badge, .top nav a { transition: none; }
}
