/* Gap Runner public site: home, support and privacy share this sheet. */

:root {
  --bg: #050b16;
  --bg-2: #081222;
  --surface: #0a1626;
  --surface-2: #0e1d32;
  --line: rgba(90, 210, 255, 0.14);
  --line-strong: rgba(90, 210, 255, 0.28);
  --text: #e8f6ff;
  --muted: #8fa7bd;
  --accent: #19d3f0;
  --accent-soft: rgba(25, 211, 240, 0.14);
  --violet: #8b5cf6;
  --gold: #f5c542;
  --heart: #ff4d6d;
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1120px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(139, 92, 246, 0.18), transparent 60%) no-repeat,
    radial-gradient(900px 520px at 100% 0%, rgba(25, 211, 240, 0.12), transparent 60%) no-repeat,
    var(--bg);
  color: var(--text);
  font: 400 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: #7fe9ff; text-underline-offset: 0.18em; }
a:hover { color: #b8f4ff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--accent); color: #03121a; padding: 8px 14px; border-radius: 10px; z-index: 50;
}
.skip:focus { left: 16px; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 11, 22, 0.8);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; flex-shrink: 0; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line-strong); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 550;
  padding: 8px 12px; border-radius: 10px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.header-cta img { height: 36px; width: auto; }

/* Buttons */

.badge-link { display: inline-block; line-height: 0; border-radius: 10px; }
.badge-link img { height: 52px; width: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 14px;
  font-weight: 650; font-size: 16px; text-decoration: none;
  border: 1px solid var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.03);
}
.btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.btn-primary { background: var(--accent); border-color: transparent; color: #03121a; }
.btn-primary:hover { background: #4fe0f7; color: #03121a; }

/* Hero */

.hero { padding: 64px 0 28px; text-align: center; }
.eyebrow {
  display: inline-block; margin: 0 0 14px;
  color: #7fe9ff; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.hero h1 {
  margin: 0 auto; max-width: 820px;
  font-size: clamp(40px, 7vw, 72px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800;
}
.hero h1 span { display: block; background: linear-gradient(90deg, #5ff0ff, #b18cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 20px auto 0; max-width: 640px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.facts li {
  font-size: 14px; font-weight: 600; color: #cdd3e6;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
}
.hero-art {
  margin: 44px auto 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow), 0 0 90px rgba(25, 211, 240, 0.14);
  aspect-ratio: 3840 / 1646; background: var(--bg-2);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

/* Sections */

section { scroll-margin-top: 80px; }
.section { padding: 84px 0 0; }
.section-head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.section-head h2 { margin: 0; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 750; }
.section-head p { margin: 14px 0 0; color: var(--muted); font-size: 18px; }

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
}

/* Phone screenshots */

.phone {
  border-radius: 30px; overflow: hidden; background: #000;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  aspect-ratio: 1206 / 2622;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }

/* Steps */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.step { padding: 22px 22px 24px; display: flex; flex-direction: column; }
.step .num {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 750; color: #03121a; background: var(--accent);
}
.step h3 { margin: 14px 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.step p { margin: 0 0 20px; color: var(--muted); font-size: 15.5px; }
.step .shots { margin-top: auto; display: grid; gap: 10px; grid-template-columns: 1fr; }
.step .shots.pair { grid-template-columns: repeat(10, 1fr); }
.step .shots.pair .phone { grid-row: 1; }
.step .shots.pair .phone:first-child { grid-column: 1 / 8; position: relative; z-index: 1; }
.step .shots.pair .phone:last-child { grid-column: 4 / 11; margin-top: 22%; }
.step .phone { border-radius: 22px; }

/* Modes */

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mode { padding: 30px; }
.mode .tag { display: inline-block; font-size: 12px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: #7fe9ff; }
.mode h3 { margin: 8px 0 8px; font-size: 26px; letter-spacing: -0.02em; }
.mode p { margin: 0; color: var(--muted); }
.mode ul { margin: 16px 0 0; padding-left: 20px; color: #cdd3e6; }
.mode li + li { margin-top: 4px; }

/* Categories */

.categories { padding: 34px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 34px; align-items: center; }
.categories h3 { margin: 0 0 10px; font-size: 26px; letter-spacing: -0.02em; }
.categories p { margin: 0 0 12px; color: var(--muted); }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip-cloud li {
  padding: 8px 13px; border-radius: 12px; font-size: 15px; font-weight: 600;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
}
.chip-cloud li.new { border-color: rgba(25, 211, 240, 0.5); background: var(--accent-soft); }

/* Features */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 26px; }
.feature svg { width: 28px; height: 28px; color: #5ff0ff; }
.feature h3 { margin: 14px 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Gallery */

.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 18px;
  overflow-x: auto; padding: 6px 4px 22px; margin: 0; list-style: none;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.gallery li { scroll-snap-align: start; }
.gallery figcaption { margin-top: 10px; text-align: center; color: var(--muted); font-size: 14px; }

/* iPhone Duo */

.duo { padding: 34px; display: grid; gap: 28px; overflow: hidden; }
.duo > div:first-child { max-width: 700px; }
.duo h2 { margin: 0 0 12px; font-size: clamp(28px, 3.6vw, 38px); line-height: 1.1; letter-spacing: -0.025em; }
.duo p { margin: 0 0 12px; color: var(--muted); }
.duo-art { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: end; }
.duo-art img { border-radius: 18px; border: 1px solid var(--line-strong); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.duo-art figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: center; }

/* Updates */

.updates { padding: 30px 34px; }
.updates ol { list-style: none; margin: 0; padding: 0; }
.updates li { display: grid; grid-template-columns: 92px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.updates li:first-child { border-top: 0; padding-top: 0; }
.updates .ver { font-weight: 750; color: #7fe9ff; font-variant-numeric: tabular-nums; }
.updates strong { display: block; margin-bottom: 2px; }
.updates span { color: var(--muted); }

/* FAQ */

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 650; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details > div p { margin: 0 0 10px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Closing call to action */

.cta-band { margin-top: 84px; padding: 46px 34px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 240px at 50% 0%, rgba(25, 211, 240, 0.2), transparent 70%);
}
.cta-band img.icon { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 18px; position: relative; }
.cta-band h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.025em; position: relative; }
.cta-band p { margin: 10px auto 24px; max-width: 520px; color: var(--muted); position: relative; }
.cta-band .cta-row { margin-top: 0; position: relative; }

/* Document pages (support, privacy) */

.doc { padding: 56px 0 0; }
.doc-head { max-width: 760px; }
.doc-head h1 { margin: 0; font-size: clamp(36px, 5.5vw, 54px); line-height: 1.05; letter-spacing: -0.03em; }
.doc-head p { margin: 14px 0 0; color: var(--muted); font-size: 18px; }
.doc-grid { display: grid; grid-template-columns: 1fr 300px; gap: 28px; margin-top: 36px; align-items: start; }
.prose { padding: 34px; }
.prose h2 { margin: 34px 0 10px; font-size: 22px; letter-spacing: -0.015em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 22px 0 6px; font-size: 17px; }
.prose p, .prose li { color: #c9cfe0; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--text); }
.prose .meta { color: var(--muted); font-size: 15px; }
.aside { padding: 26px; position: sticky; top: 88px; }
.aside h2 { margin: 0 0 8px; font-size: 18px; }
.aside p { margin: 0 0 14px; color: var(--muted); font-size: 15.5px; }
.aside .btn { width: 100%; }
.aside .small { margin: 14px 0 0; font-size: 14px; }
.toc { margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; font-size: 15px; }
.toc a:hover { color: var(--text); }

/* Footer */

.site-footer { margin-top: 84px; border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h2 { margin: 0 0 10px; font-size: 14px; color: var(--text); letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .brand { margin-bottom: 10px; }
.site-footer p { margin: 0; }
.copyright { margin-top: 30px; font-size: 14px; }

/* Responsive */

@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .categories { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav a.optional, .header-cta { display: none; }
  .site-header .wrap { gap: 12px; }
  .nav a { padding: 8px 9px; }
  .hero { padding-top: 40px; }
  .hero-art { margin-top: 32px; border-radius: 16px; }
  .section { padding-top: 64px; }
  .steps, .features, .modes { grid-template-columns: 1fr; }
  .step .shots { max-width: 260px; margin-inline: auto; width: 100%; }
  .step .shots.pair { max-width: 340px; }
  .mode, .categories, .duo, .updates, .prose, .feature { padding: 24px; }
  .updates li { grid-template-columns: 1fr; gap: 2px; }
  .gallery { grid-auto-columns: 190px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 22px; }
  .badge-link img { height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq summary::after { transition: none; }
}

/* Gap Runner extras */

.steps.three { grid-template-columns: repeat(3, 1fr); }

.difficulty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.difficulty .mode h3 { font-size: 24px; }
.difficulty .easy .tag { color: #6ee7a8; }
.difficulty .medium .tag { color: var(--gold); }
.difficulty .hard .tag { color: var(--heart); }

.pickups { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 34px; padding: 34px; align-items: center; }
.pickups h3 { margin: 0 0 10px; font-size: 26px; letter-spacing: -0.02em; }
.pickups p { margin: 0 0 12px; color: var(--muted); }
.tiers { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tiers li {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
}
.tiers .gem { width: 14px; height: 22px; justify-self: center; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.tiers .bronze { background: linear-gradient(180deg, #f0b27a, #b86b2c); }
.tiers .silver { background: linear-gradient(180deg, #f4f7fb, #9aa8b8); }
.tiers .gold { background: linear-gradient(180deg, #ffe27a, #e0a312); }
.tiers .rainbow { background: linear-gradient(180deg, #ff7eb6, #a78bfa, #5ff0ff); }
.tiers .heart { width: 18px; height: 16px; clip-path: none; background: none; color: var(--heart); font-size: 18px; line-height: 1; }
.tiers strong { font-weight: 650; }
.tiers .pts { font-weight: 750; font-variant-numeric: tabular-nums; color: var(--text); padding: 3px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); }

.unlocks { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; padding: 34px; align-items: start; }
.unlocks h3 { margin: 0 0 10px; font-size: 26px; letter-spacing: -0.02em; }
.unlocks > div > p { margin: 0 0 18px; color: var(--muted); }
.unlock-group + .unlock-group { margin-top: 20px; }
.unlock-group h4 { margin: 0 0 8px; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: #7fe9ff; }
.unlock-group ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.unlock-group li { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.unlock-group li span { color: var(--muted); text-align: right; }
.unlock-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

@media (max-width: 980px) {
  .steps.three { grid-template-columns: 1fr 1fr 1fr; }
  .difficulty { grid-template-columns: 1fr; }
  .pickups, .unlocks { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .steps.three { grid-template-columns: 1fr; }
  .pickups, .unlocks { padding: 24px; }
  .unlock-group ul { grid-template-columns: 1fr; }
  .unlock-shots { max-width: 420px; }
}
