/* Snowboarding Downhill — design system
   Palette taken from the app icon and the loading art: cobalt sky, glacier
   ice, sunset peaks, and the rider's ember jacket. Landscape game, so every
   screenshot on the site is 2868 × 1320 (ratio 239 / 110). */
:root {
  --snow: #F6FAFD;
  --ice: #E4EFF8;
  --ice-deep: #CFE0EE;
  --panel: #FFFFFF;
  --line: #D5E3EF;
  --night: #0C1B38;
  --night-soft: #15294F;
  --cobalt: #1A4FA3;
  --ember: #F4501E;
  --ember-deep: #CF3D10;
  --glacier: #2BB6C6;
  --gold: #E2A52E;
  --ink: #0F2142;
  --ink-soft: #46597A;
  --ink-faint: #6E809E;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(15, 33, 66, 0.10);
  --shadow-lg: 0 28px 70px rgba(12, 27, 56, 0.30);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shot: 239 / 110;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--snow);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; color: var(--ink-soft); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { position: relative; }
a:focus-visible, summary:focus-visible, .shots:focus-visible { outline: 3px solid var(--glacier); outline-offset: 3px; border-radius: 6px; }

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(246, 250, 253, 0.86);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 0.92rem; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ember-deep); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ember); color: #fff; box-shadow: 0 8px 24px rgba(244, 80, 30, 0.32); }
.btn-primary:hover { box-shadow: 0 12px 32px rgba(244, 80, 30, 0.44); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  padding: 10px 20px 10px 15px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  font-weight: 600;
  transition: transform .15s ease;
}
.appstore-badge:hover { transform: translateY(-2px); }
.appstore-badge svg { width: 26px; height: 26px; }
.appstore-badge .lines { display: flex; flex-direction: column; line-height: 1.15; }
.appstore-badge .lines small { font-size: 0.68rem; color: #cfcfcf; font-weight: 400; }
.appstore-badge .lines strong { font-size: 1.05rem; }

/* Hero: the sunset art behind the wordmark, the game overlapping its foot */
.hero {
  background: #BFDcF2 url("/images/hero.webp") center bottom / cover no-repeat;
  padding: 58px 0 clamp(150px, 24vw, 330px);
  text-align: center;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(246, 250, 253, 0) 0%, var(--snow) 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.5rem, 8.2vw, 5.6rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--night);
}
.hero h1 span {
  display: block;
  margin-top: 0.14em;
  font-size: 0.36em;
  font-weight: 800;
  letter-spacing: 0.42em;
  margin-right: -0.42em;
  color: var(--ember-deep);
}
.hero .lead {
  margin: 22px auto 0;
  max-width: 52ch;
  text-wrap: balance;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: var(--night-soft);
}
.hero-actions { margin-top: 26px; display: flex; justify-content: center; }
.facts-row {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--night-soft);
}
.facts-row li + li::before { content: "·"; margin-right: 18px; opacity: .6; }

/* A landscape phone around the gameplay preview */
.device {
  background: #0A0F1C;
  padding: clamp(6px, 1vw, 12px);
  border-radius: clamp(18px, 3vw, 38px);
  box-shadow: var(--shadow-lg);
}
.device img,
.device video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--shot);
  object-fit: cover;
  border-radius: clamp(12px, 2.2vw, 28px);
}
.hero-device {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: clamp(-300px, -22vw, -130px) auto 0;
  padding: 0 24px;
}

/* Section headers */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember-deep);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-head p { margin-top: 14px; font-size: 1.04rem; }

/* How it rides */
.how { padding: 88px 0 72px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.step .num { font-size: 0.84rem; font-weight: 800; color: var(--ember-deep); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.14rem; margin-bottom: 8px; }
.step p { font-size: 0.95rem; }

/* Screenshot gallery: scrolls sideways, snapping to each shot */
.gallery { padding: 8px 0 88px; }
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 640px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 max(24px, calc((100vw - 1132px) / 2));
  padding: 8px max(24px, calc((100vw - 1132px) / 2)) 22px;
  margin: 0;
  -webkit-overflow-scrolling: touch;
}
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--shot);
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.shots figcaption { margin-top: 10px; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }

/* Resorts */
.resorts { padding: 88px 0; background: var(--ice); }
.resort-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.resort {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.resort-head { display: flex; align-items: center; gap: 14px; }
.resort-head img { width: 64px; height: 64px; flex-shrink: 0; }
.resort .where { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); }
.resort h3 { font-size: 1.14rem; line-height: 1.2; }
.resort .course { margin-top: 14px; font-weight: 700; font-size: 0.94rem; color: var(--ink); }
.resort p.blurb { margin-top: 2px; font-size: 0.93rem; flex: 1; }
.tag {
  align-self: flex-start;
  margin-top: 14px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.tag-free { background: rgba(43, 182, 198, 0.16); color: #0B6B77; }
.tag-paid { background: rgba(26, 79, 163, 0.10); color: var(--cobalt); }

/* Modes */
.modes { padding: 88px 0 56px; }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mode { border-top: 4px solid var(--ember); background: var(--panel); border-radius: 0 0 var(--radius) var(--radius); padding: 22px 24px 26px; box-shadow: var(--shadow); }
.mode:nth-child(2) { border-top-color: var(--glacier); }
.mode:nth-child(3) { border-top-color: var(--night); }
.mode h3 { font-size: 1.2rem; margin-bottom: 8px; }
.mode p { font-size: 0.95rem; }
.levels { margin: 26px auto 0; max-width: 760px; text-align: center; font-size: 0.97rem; }
.levels strong { color: var(--ink); }

/* Feature rows */
.features { padding: 16px 0 76px; }
.feature-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
  padding: 44px 0;
}
.feature-row.flip { grid-template-columns: 0.85fr 1.15fr; }
.feature-row.flip .media { order: 2; }
.feature-row h3 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-bottom: 12px; }
.feature-row ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.feature-row li { font-size: 0.95rem; color: var(--ink-soft); display: flex; gap: 10px; }
.feature-row li::before {
  content: "";
  width: 7px; height: 7px;
  margin-top: 8px;
  flex-shrink: 0;
  background: var(--ember);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* Pricing */
.pricing { padding: 88px 0; background: var(--ice); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.price.best { border: 2px solid var(--ember); }
.price h3 { font-size: 1.1rem; }
.price .amount { font-size: 2.1rem; font-weight: 900; letter-spacing: -0.03em; color: var(--ink); margin-top: 6px; }
.price .amount small { font-size: 0.86rem; font-weight: 600; letter-spacing: 0; color: var(--ink-faint); }
.price ul { margin: 14px 0 0; padding-left: 18px; font-size: 0.94rem; color: var(--ink-soft); display: flex; flex-direction: column; gap: 6px; }
.price-note { margin: 24px auto 0; max-width: 680px; text-align: center; font-size: 0.9rem; }

/* FAQ */
.faq { padding: 88px 0; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 22px; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus { font-size: 1.4rem; font-weight: 400; color: var(--ember); transition: transform .2s ease; }
.faq-item[open] .plus { transform: rotate(45deg); }
.faq-item p { padding: 0 0 18px; font-size: 0.95rem; }
a.inline { color: var(--ember-deep); text-decoration: underline; }

/* CTA: the night run */
.cta-band {
  padding: 96px 0;
  text-align: center;
  background: linear-gradient(180deg, rgba(12, 27, 56, .72), rgba(12, 27, 56, .92)), var(--night) url("/images/cta-night.webp") center / cover no-repeat;
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); color: #fff; }
.cta-band p { margin: 14px auto 28px; max-width: 44ch; font-size: 1.05rem; color: #C9D8EC; }
.cta-band .appstore-badge { border-color: #4a5874; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 30px; background: var(--ice); color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer-col h4 { margin: 0 0 14px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.92rem; }
.footer-col a:hover { color: var(--ember-deep); }
.footer-bottom {
  border-top: 1px solid var(--ice-deep);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.footer-bottom .disclaimer { max-width: 60ch; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 60px 24px 90px; }
.legal h1 { font-size: 2rem; margin-bottom: 8px; }
.legal .updated { color: var(--ink-faint); font-size: 0.88rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 0.97rem; }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.back-link { display: inline-flex; gap: 6px; padding-top: 22px; font-size: 0.9rem; color: var(--ink-soft); }
.back-link:hover { color: var(--ember-deep); }

@media (max-width: 900px) {
  .steps, .mode-grid, .price-grid { grid-template-columns: 1fr; }
  .resort-grid { grid-template-columns: 1fr 1fr; }
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 24px; padding: 30px 0; }
  .feature-row.flip .media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
  .legal-page .nav-links a { display: inline; }
  .brand { font-size: 0.92rem; }
  .hero { padding-top: 40px; background-position: 42% bottom; }
  .hero-device { padding: 0 16px; }
  .container { padding: 0 16px; }
  .nav { padding: 10px 16px; }
  .how, .modes, .resorts, .pricing, .faq { padding-top: 60px; padding-bottom: 60px; }
  .how { padding-top: 64px; }
  .modes { padding-bottom: 32px; }
  .gallery { padding-bottom: 60px; }
  .shots { padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; grid-auto-columns: 84vw; }
  .resort-grid { grid-template-columns: 1fr; }
  .facts-row li + li::before { margin-right: 10px; }
  .facts-row { gap: 4px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .appstore-badge, .faq-item .plus { transition: none; }
}

/* Supa Studio network — cross-links to sibling apps and the studio hub.
   Colours derive from currentColor so this adapts to light and dark footers. */
.supa-network{margin-top:34px;padding-top:22px;border-top:1px solid color-mix(in srgb,currentColor 18%,transparent)}
.supa-network .supa-network-title{font-size:.8rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.72;margin:0 0 12px}
.supa-network ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center}
.supa-network li{margin:0;padding:0}
.supa-network a{font-size:.9rem;font-weight:600;color:inherit;opacity:.82;text-decoration:none;border-bottom:1px solid transparent}
.supa-network a:hover{opacity:1;border-bottom-color:currentColor}
.supa-network .supa-network-hub a{opacity:1;font-weight:700}
@media(max-width:640px){.supa-network ul{gap:8px 14px}}
