/* Gym Jockey — mobile-first, zero-JS.
   Brand anchor: vivid blue on white/dark (iPod silhouette-ad palette). */

:root {
  --bg: #ffffff;
  --fg: #14161a;
  --muted: #5b626e;
  --accent: #0a5cff;
  --accent-fg: #ffffff;
  --accent-soft: #e8efff;
  --rule: #e6e8ec;
  --card: #f6f8fb;
  --badge: #14161a;
  --badge-fg: #ffffff;
  --placeholder: #b45309;
  --placeholder-bg: #fef3c7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --fg: #eceef1;
    --muted: #9aa3af;
    --accent: #3d7fff;
    --accent-fg: #ffffff;
    --accent-soft: #16233f;
    --rule: #262a31;
    --card: #191c22;
    --badge: #eceef1;
    --badge-fg: #101216;
    --placeholder: #fbbf24;
    --placeholder-bg: #3a2e10;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img, video, svg { max-width: 100%; height: auto; }

a { color: var(--accent); }

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 70rem;
  margin: 0 auto;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.brand img { border-radius: 7px; }
.header-right { display: flex; align-items: center; gap: 0.9rem; }

.lang-switch { font-size: 0.85rem; }
.lang-switch a, .lang-switch span { margin-left: 0.4rem; text-decoration: none; }
.lang-switch span[aria-current] { font-weight: 700; color: var(--fg); }

/* Desktop inline nav — hidden on small screens */
.nav-desktop { display: none; }
.nav-desktop a {
  margin-right: 1.1rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-desktop a:hover, .nav-desktop a[aria-current] { color: var(--accent); }

/* Mobile nav: pure <details> dropdown */
.nav-mobile { position: relative; }
.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-burger, .nav-burger::before, .nav-burger::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fg);
  position: relative;
}
.nav-burger::before { position: absolute; top: -6px; }
.nav-burger::after  { position: absolute; top:  6px; }
.nav-mobile[open] nav {
  position: absolute;
  right: 0;
  top: 2.4rem;
  min-width: 12rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  padding: 0.5rem 0;
  z-index: 10;
}
.nav-mobile nav a {
  display: block;
  padding: 0.5rem 1.1rem;
  color: var(--fg);
  text-decoration: none;
}
.nav-mobile nav a:hover { background: var(--accent-soft); }

@media (min-width: 820px) {
  .nav-desktop { display: block; }
  .nav-mobile { display: none; }
}

/* ---------- Layout ---------- */

main {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1.1rem 3rem;
}

.content { max-width: 44rem; margin: 0 auto; }
.content h1 { font-size: 2rem; letter-spacing: -0.02em; margin-top: 2.2rem; }
.content .lede { font-size: 1.15rem; color: var(--muted); margin-top: -0.4rem; }
.content h2 {
  margin-top: 2.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: 1.35rem;
}
.content h3 { margin-top: 1.6rem; font-size: 1.08rem; }

/* ---------- Video / media ---------- */

.phone-video {
  aspect-ratio: 9 / 16;
  width: auto;
  max-height: 70vh;
  max-width: min(100%, 20rem);
  border-radius: 18px;
  background: #000;
  display: block;
  margin: 0 auto;
}

.video-frame { position: relative; width: fit-content; margin: 1.2rem auto; }
.sound-badge {
  position: absolute;
  top: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--badge);
  color: var(--badge-fg);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 99px;
  z-index: 1;
  white-space: nowrap;
}

.diagram {
  display: block;
  margin: 1.4rem auto;
  width: 100%;
  max-width: 56rem;
}

.phone-shot {
  margin: 1.4rem auto;
  max-width: 16rem;
}
.phone-shot img {
  border-radius: 14px;
  border: 1px solid var(--rule);
  display: block;
}
.phone-shot figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* ---------- Home sections ---------- */

.hero {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 2.2rem 0 1.5rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}
.hero-resolution { font-size: 1.15rem; color: var(--muted); }

.demo, .how, .never-lost, .close {
  padding: 2.2rem 0;
  border-top: 1px solid var(--rule);
  max-width: 44rem;
  margin: 0 auto;
}
.demo h2, .how h2, .never-lost h2 { font-size: 1.5rem; letter-spacing: -0.01em; }
.demo-caption { text-align: center; color: var(--muted); font-size: 0.95rem; }

.states { padding-left: 1.2rem; }
.states li { margin: 0.55rem 0; }
.states strong { color: var(--accent); }

.fork {
  display: grid;
  gap: 1rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--rule);
  max-width: 56rem;
  margin: 0 auto;
}
.fork-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
}
.fork-card h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.fork-link { font-weight: 600; text-decoration: none; }
.fork-link::after { content: " →"; }

.close { text-align: center; }
.close-indie { color: var(--muted); max-width: 34rem; margin: 0 auto 1.4rem; }

@media (min-width: 820px) {
  .hero {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 3rem;
    padding: 3.5rem 0 2.5rem;
  }
  .hero-copy { flex: 1; }
  .hero-media { flex: 0 0 auto; }
  .fork { grid-template-columns: 1fr 1fr; }
}

/* ---------- CTA (two CSS-only variants) ---------- */

.cta { margin: 1.6rem auto; text-align: center; }
.cta-button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.8rem 1.9rem;
  border-radius: 99px;
  text-decoration: none;
}
.cta-qr { display: none; }
.cta-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; }

@media (min-width: 820px) {
  .cta-button { display: none; }
  .cta-qr { display: block; }
  .cta-qr img {
    border-radius: 10px;
    border: 1px solid var(--rule);
    background: #fff;
    padding: 6px;
  }
  .cta-qr p { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }
}

/* Hero CTA aligns with hero text on desktop */
@media (min-width: 820px) {
  .hero-copy .cta { text-align: left; }
}

/* ---------- FAQ accordions ---------- */

.content details {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 0 1.1rem;
  margin: 0.7rem 0;
  background: var(--card);
}
.content summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.85rem 0;
  list-style-position: inside;
}
.content details[open] summary { border-bottom: 1px solid var(--rule); }
.content details p { margin: 0.8rem 0; }

/* ---------- Placeholder marker ---------- */
/* Copy pending real text is wrapped in [PLACEHOLDER: …] / [OWNER DECISION: …];
   the .todo class makes such blocks visually obvious during the beta. */
.todo {
  background: var(--placeholder-bg);
  color: var(--placeholder);
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
}

/* ---------- Changelog ---------- */

.changelog-entry { margin: 1.6rem 0; }
.changelog-entry h2 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.changelog-entry .date { color: var(--muted); font-size: 0.85rem; }

/* ---------- Footer ---------- */

.site-footer {
  max-width: 70rem;
  margin: 0 auto;
  padding: 1.5rem 1.1rem 2.2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  justify-content: space-between;
}
.site-footer nav { display: flex; gap: 1.2rem; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0; }
