/* Aero Rush: Skybound — web companion styles.
   Tokens mirror the app DESIGN.md; see DESIGN.md (web platform section) in the site root. */

:root {
  --brand-red: #E50539;
  --brand-red-bright: #FF2D55;
  --brand-red-deep: #8E0A26;
  --sky-glow: #141821;
  --base: #0B0B0D;
  --surface: #16161A;
  --surface-raised: #1F1F24;
  --hairline: #2A2A31;
  --text-primary: #F5F5F7;
  --text-muted: #9A9AA3;
  --text-on-red: #F5F5F7;
  --header-h: 64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--base);
  color: var(--text-primary);
  font-family: 'Saira', ui-sans-serif, system-ui, sans-serif;
  overflow-x: hidden;
}

/* Numeric/stat readouts: tabular figures so digits don't jump */
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }

/* Focus: always visible, brand red ring */
:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}

/* Hairlines */
.hairline-t { border-top: 1px solid var(--hairline); }
.hairline-b { border-bottom: 1px solid var(--hairline); }
.hairline   { border: 1px solid var(--hairline); }

/* Sunburst decor — hard-edged red wedges radiating from the lower-left origin.
   Decorative layer only: never placed behind body text. */
.sunburst {
  background-image: repeating-conic-gradient(
    from 235deg at 0% 100%,
    rgba(229, 5, 57, 0.13) 0deg 7deg,
    transparent 7deg 15deg
  );
}

/* Thin red "flight curve" SVG stroke */
.flight-curve { stroke: var(--brand-red); }

/* App Store / primary button press feedback (80ms scale 0.97 per app system) */
.press { transition: transform 80ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out, color 200ms ease-out; }
.press:active { transform: scale(0.97); }

/* Phone screenshot frame: hard-cut poster style, fixed ratio, clipped */
.phone-frame {
  aspect-ratio: 1206 / 2622;
  overflow: hidden;
  border: 1px solid var(--hairline);
  display: block;
}
.phone-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Screenshot rail */
.rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.rail > * { scroll-snap-align: start; flex: 0 0 auto; width: 220px; min-width: 0; }
@media (min-width: 768px) {
  .rail > * { width: 240px; }
}

/* Legal prose */
.legal h2 {
  font-family: 'Saira Condensed', 'Saira', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}
.legal h3 {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.legal p, .legal li {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.legal strong { color: var(--text-primary); font-weight: 600; }
.legal ul { list-style: none; margin: 0.5rem 0; }
.legal ul li { padding-left: 1.1rem; position: relative; margin-bottom: 0.35rem; }
.legal ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 2px;
  background: var(--hairline);
}
.legal a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--brand-red-bright); }
.legal .effective {
  color: var(--text-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* FAQ accordion (native details/summary — keyboard + touch friendly) */
details.faq { border-bottom: 1px solid var(--hairline); }
details.faq summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  color: var(--text-primary);
  font-weight: 600;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .faq-chevron { transition: transform 200ms ease-out; color: var(--text-muted); flex: 0 0 auto; }
details.faq[open] summary .faq-chevron { transform: rotate(90deg); color: var(--brand-red); }
details.faq .faq-body { padding: 0 0 20px; color: var(--text-muted); font-size: 0.9375rem; line-height: 1.65; max-width: 70ch; }

/* Stat chips */
.stat-chip { border: 1px solid var(--hairline); display: block; }

/* Reduced motion: kill entrances and smooth scroll */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .press, .press:active { transition: none; transform: none; }
  details.faq summary .faq-chevron { transition: none; }
  [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Safe areas for the fixed header on notched devices */
.site-header { padding-top: env(safe-area-inset-top); }