/* Tidally Locked: the game's own night, type and colours. No external requests. */
@font-face { font-family: 'Space Grotesk'; src: url(fonts/space-grotesk-latin-300-normal.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url(fonts/space-grotesk-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url(fonts/space-grotesk-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(fonts/jetbrains-mono-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --bg: #05060f;
  --bg2: #0b0d22;
  --card: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.09);
  --ink: #f4f1ff;
  --soft: #d9dcf5;
  --muted: #9aa0c8;
  --teal: #3ee6d6;
  --warm: #ff9a8a;
  --gold: #ffd27a;
  --purple: #c3a6ff;
  --max: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--bg);
  font: 400 18px/1.6 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
#sky { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; display: block;
  background: radial-gradient(ellipse at 20% -10%, #24163f 0, transparent 55%), radial-gradient(ellipse at 90% 30%, rgba(62, 230, 214, 0.07) 0, transparent 45%), var(--bg); }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: #8ff5ea; }
img, video { max-width: 100%; display: block; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; font-size: 13px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 500; letter-spacing: 0.08em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
.kicker { color: var(--teal); }
h1 { font-weight: 300; font-size: clamp(44px, 7vw, 84px); line-height: 1; letter-spacing: 0.06em; margin: 14px 0 18px; }
h1 b { font-weight: 500; display: block; }
.tagline { font-size: clamp(20px, 2.4vw, 26px); color: var(--soft); margin: 0 0 10px; }
.lede { color: var(--muted); max-width: 34em; margin: 0 0 30px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; min-height: 56px; border-radius: 14px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 500; }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 11px; line-height: 1.1; opacity: 0.7; }
.store span { line-height: 1.15; font-size: 18px; }
.store.soon { background: transparent; color: var(--soft); border: 1px solid var(--line); cursor: default; }
.store:not(.soon):hover { background: #fff; color: var(--bg); }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.phone { position: relative; justify-self: center; width: min(330px, 80vw); aspect-ratio: 9 / 19.5; border-radius: 44px; padding: 10px;
  background: linear-gradient(160deg, #2a2440, #0d0e1c); box-shadow: 0 0 0 1px var(--line), 0 40px 120px -20px rgba(255, 154, 138, 0.35), 0 0 80px -10px rgba(62, 230, 214, 0.25); }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; background: var(--bg); }

/* Sections */
section { padding: 72px 0; }
h2 { font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; margin: 10px 0 16px; }
.intro { max-width: 40em; color: var(--soft); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 36px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.card h3 { margin: 12px 0 6px; font-weight: 500; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card svg { width: 28px; height: 28px; color: var(--warm); }

.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 28px 0 12px; scrollbar-width: thin; }
.gallery figure { margin: 0; flex: 0 0 min(250px, 62vw); scroll-snap-align: start; }
.gallery img { border-radius: 26px; border: 1px solid var(--line); aspect-ratio: 330 / 717; width: 100%; height: auto; }
.gallery figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.gallery figcaption b { display: block; color: var(--ink); font-weight: 500; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
ul.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
ul.ticks li { padding: 10px 0 10px 32px; position: relative; color: var(--soft); border-bottom: 1px solid var(--line); }
ul.ticks li::before { content: ''; position: absolute; left: 4px; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }

.quote { font-size: clamp(22px, 3vw, 30px); font-style: italic; color: var(--soft); border-left: 2px solid var(--warm); padding-left: 22px; margin: 28px 0 0; }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 500; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--teal); font-size: 24px; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { color: var(--muted); margin: 10px 0 0; }

.cta { text-align: center; padding: 96px 0; }
.cta .stores { justify-content: center; margin-top: 28px; }

/* Plain pages (support, privacy) */
.page { max-width: 720px; padding: 32px 0 80px; }
.page h1 { font-size: clamp(38px, 6vw, 56px); letter-spacing: 0.02em; font-weight: 400; }
.page h2 { font-size: 24px; color: var(--warm); margin-top: 40px; }
.page p, .page li { color: var(--soft); }
.page .updated { color: var(--muted); font-size: 15px; }
.contact { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; margin-top: 18px; }
.contact a { font-size: 20px; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .hero, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 16px; gap: 40px; }
  .top nav { gap: 16px; }
  section { padding: 56px 0; }
}
@media (max-width: 420px) {
  .top nav a.hide-sm { display: none; }
  .store { width: 100%; justify-content: center; }
}
