/* ─── Fonts ────────────────────────────────────────────────────────────── */
/* Self-hosted OFL-licensed fonts — Lexend + Manrope */
/* Preloaded above-fold pair: Lexend Bold (H1) + Manrope Regular (body) */
@font-face {
  font-family: 'Lexend';
  src: url(/fonts/Lexend-Bold.ttf) format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2010-2027;
}
@font-face {
  font-family: 'Lexend';
  src: url(/fonts/Lexend-SemiBold.ttf) format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2010-2027;
}
@font-face {
  font-family: 'Manrope';
  src: url(/fonts/Manrope-Regular.ttf) format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2010-2027;
}
@font-face {
  font-family: 'Manrope';
  src: url(/fonts/Manrope-Medium.ttf) format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2010-2027;
}
@font-face {
  font-family: 'Manrope';
  src: url(/fonts/Manrope-SemiBold.ttf) format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2010-2027;
}
@font-face {
  font-family: 'Manrope';
  src: url(/fonts/Manrope-Bold.ttf) format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2010-2027;
}

/* ─── Custom Properties ────────────────────────────────────────────────── */
:root {
  /* Font stacks */
  --font-display: 'Lexend', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  /* Charge accent (constant across both schemes) */
  --charge-500: #FF6A00;
  --charge-400: #FF8C42;
  --charge-700: #C43B00;
  --charge-gradient: linear-gradient(135deg, #FF8C42 0%, #FF6A00 55%, #C43B00 100%);
  --on-charge: #1A1210; /* DARK text on ember fill — ~6.7:1 contrast */

  /* Iron field (constant dark bands — hero, header, footer, trust strip) */
  --iron-bg:       #101214;
  --iron-surface:  #181A1C;
  --iron-card:     #1E2124;
  --iron-line:     #272A2E;
  --iron-text:     #E8EAED;
  --iron-text-dim: #9AA0A6;

  /* Scheme-aware surfaces — LIGHT default */
  --bg:       #F2F1EF;
  --surface:  #FAFAF8;
  --card:     #FFFFFF;
  --raised:   #ECEAE7;
  --line:     #E0DEDB;
  --text:     #1A1918;
  --text-dim: #6E6C69;

  /* Semantic */
  --success: #15803D;
  --warning: #B45309;
  --error:   #DC2626;

  /* Spacing (mirrors app tokens) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-14: 56px;
  --space-18: 72px;
  --space-24: 96px;
  --space-32: 128px;

  /* Radius */
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1120px;
  --text-measure: 640px;
  --header-height: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #101214;
    --surface:  #181A1C;
    --card:     #1E2124;
    --raised:   #272A2E;
    --line:     #313438;
    --text:     #D8D6D4;
    --text-dim: #8A8886;
    --success: #4CAF50;
    --warning: #FFB74D;
    --error:   #EF5350;
  }
}

/* ─── Reduced Motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Reset / Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

/* ─── Skip Link ────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--charge-500);
  color: var(--on-charge);
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-md);
  z-index: 9999;
}
.skip-link:focus {
  top: var(--space-2);
}

/* ─── Focus ────────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--charge-500);
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* ─── Layout Utilities ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 480px) {
  .container { padding-inline: var(--space-6); }
}
@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

/* ─── Typography ───────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
}

.hero-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.05;
  color: var(--iron-text);
}

.section-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  color: var(--text);
}

.section-h2-iron {
  color: var(--iron-text);
}

.sub-claim {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  color: var(--text);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charge-500);
}

.lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--iron-text-dim);
  max-width: 560px;
}

.body-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: var(--text-measure);
}

.detail {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-dim);
}

/* ─── Links ─────────────────────────────────────────────────────────────── */
a {
  color: var(--charge-500);
  text-decoration: none;
}
a:hover, a:focus-visible {
  text-decoration: underline;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  min-height: 48px;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.98); }

.btn-charge {
  background: var(--charge-gradient);
  color: var(--on-charge);
}

.btn-outline {
  background: transparent;
  color: var(--charge-500);
  border: 2px solid var(--charge-500);
}

/* ─── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--iron-bg);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  min-height: 44px;
  padding-block: var(--space-2);
}
.header-brand:hover { text-decoration: none; }

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--iron-text);
  letter-spacing: -0.01em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--iron-text-dim);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding-inline: var(--space-2);
  transition: color 0.15s ease;
}
.nav-link:hover, .nav-link:focus-visible {
  color: var(--iron-text);
  text-decoration: none;
}

/* Hide text nav links on mobile — only Play badge shown */
.nav-text-links { display: none; }

@media (min-width: 768px) {
  .nav-text-links { display: flex; gap: var(--space-6); }
}

/* Play badge in nav */
.play-badge-nav img {
  height: 36px;
  width: auto;
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  background-color: var(--iron-bg);
  padding-block: var(--space-18) var(--space-14);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.hero-secondary-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--charge-500);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.hero-secondary-link:hover { text-decoration: underline; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.device-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.screenshot-placeholder {
  width: 100%;
  aspect-ratio: 9 / 16;
  background-color: var(--iron-card);
  border-radius: var(--radius-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  border: 2px solid var(--iron-line);
}

.screenshot-placeholder-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--iron-text-dim);
  text-align: center;
  padding: var(--space-4);
}

.screenshot-img {
  display: block;
  width: 100%;
  border-radius: var(--radius-2xl);
  border: 2px solid var(--iron-line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 6px 16px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1024px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-18);
  }
  .hero-copy { flex: 1 1 0; }
  .hero-visual { flex: 0 0 340px; }
}

/* ─── Trust Strip ───────────────────────────────────────────────────────── */
.trust-strip {
  background-color: var(--iron-surface);
  padding-block: var(--space-14);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 480px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.trust-icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--charge-500);
}

.trust-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--iron-text);
}

.trust-body {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--iron-text-dim);
}

/* ─── Feature Bands ─────────────────────────────────────────────────────── */
.features {
  padding-block: var(--space-2);
}

.feature-band {
  padding-block: var(--space-14);
}

.feature-band:nth-child(even) { background-color: var(--surface); }
.feature-band:nth-child(odd)  { background-color: var(--bg); }

.feature-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  align-items: center;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  width: 100%;
}

.feature-copy .section-h2 {
  color: var(--text);
}

.feature-copy .body-text {
  font-size: 1.0625rem;
}

.feature-visual {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .feature-inner {
    flex-direction: row;
    gap: var(--space-18);
    align-items: center;
  }
  .feature-copy { flex: 1 1 0; }
  .feature-visual { flex: 0 0 300px; max-width: 300px; margin-inline: 0; }

  /* Alternate text-left / screenshot-right → text-right / screenshot-left */
  .feature-band:nth-child(even) .feature-inner {
    flex-direction: row-reverse;
  }
}

@media (min-width: 1024px) {
  .feature-inner { gap: var(--space-24); }
  .feature-visual { flex: 0 0 340px; max-width: 340px; }
}

/* Kinetic+ band — slightly elevated card surface */
.feature-band-plus {
  background-color: var(--card) !important;
  position: relative;
}

.plus-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--charge-gradient);
  color: var(--on-charge);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2);
}

.plus-price-line {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-top: var(--space-2);
}
.plus-price-line strong {
  font-weight: 700;
  color: var(--text);
}

/* ─── FAQ ───────────────────────────────────────────────────────────────── */
.faq {
  background-color: var(--surface);
  padding-block: var(--space-18);
}

.faq-header {
  margin-bottom: var(--space-10);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: var(--text-measure);
}

details.faq-item {
  background-color: var(--card);
  border-radius: var(--radius-lg);
}

details.faq-item[open] {
  background-color: var(--raised);
}

summary.faq-question {
  list-style: none;
  cursor: pointer;
  padding: var(--space-5) var(--space-6);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  user-select: none;
}
summary.faq-question::-webkit-details-marker { display: none; }

.faq-q-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-dim);
  transition: transform 0.2s ease;
}
details[open] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-dim);
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background-color: var(--iron-bg);
  padding-block: var(--space-14) var(--space-10);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}
.footer-brand-lockup:hover { text-decoration: none; }

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--iron-text-dim);
  max-width: 360px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-8);
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-group-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--iron-text);
  margin-bottom: var(--space-1);
}

.footer-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--iron-text-dim);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}
.footer-link:hover, .footer-link:focus-visible {
  color: var(--iron-text);
  text-decoration: none;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-12);
  }
  .footer-brand-block { flex: 0 0 240px; }
  .footer-links-grid  { flex: 1; }
}

.footer-baseline {
  padding-top: var(--space-8);
  border-top: 1px solid var(--iron-line);
  margin-top: var(--space-6);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--iron-text-dim);
}

/* ─── Play Badge ────────────────────────────────────────────────────────── */
.play-badge {
  display: inline-block;
}
.play-badge img {
  height: 56px;
  width: auto;
}
.play-badge-sm img {
  height: 40px;
}

/* ─── Legal Pages ───────────────────────────────────────────────────────── */
.legal-main {
  padding-block: var(--space-14) var(--space-24);
}

.legal-header-simple {
  background-color: var(--iron-bg);
  padding-block: var(--space-5);
}

.legal-container {
  max-width: var(--text-measure);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) {
  .legal-container { padding-inline: var(--space-6); }
}

.legal-page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--text);
  margin-bottom: var(--space-8);
}

.legal-summary-card {
  background-color: var(--card);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-10);
}

.legal-summary-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.legal-summary-body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.legal-section {
  margin-bottom: var(--space-8);
}

.legal-section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.legal-section-body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-dim);
  white-space: pre-wrap;
}

.legal-last-updated {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}

/* Legal header nav */
.legal-header-simple .header-inner {
  justify-content: flex-start;
}
