/* ============================================================
   indoorbike.app — promo site
   Built on the Cadence Design System tokens.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Type */
  --font-display: "Bebas Neue", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Neutrals — gravel-warm dark */
  --bg-0:  #0F0C09;
  --bg-1:  #181410;
  --bg-2:  #221C16;
  --bg-3:  #2D251D;
  --bg-4:  #3A3025;

  --line-1: rgba(255,236,210,0.06);
  --line-2: rgba(255,236,210,0.10);
  --line-3: rgba(255,236,210,0.18);

  --fg-1: #F4ECDF;
  --fg-2: #C2B5A1;
  --fg-3: #8A7E6C;
  --fg-4: #4F4838;

  /* Brand ember */
  --brand-300: #FFB57A;
  --brand-400: #FF9847;
  --brand-500: #F47A1F;
  --brand-600: #E0660D;
  --brand-700: #B8520A;
  --ember-600: #D54F0A;

  /* Power zones */
  --zone-1: #6B8AA8;
  --zone-2: #2E7BFF;
  --zone-3: #1FB373;
  --zone-4: #F0C419;
  --zone-5: #FF8A1F;
  --zone-6: #EB3B3B;
  --zone-7: #C53BFF;

  /* Spacing */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px;
  --s-9: 56px; --s-10: 72px;

  /* Radii */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;

  /* Shadows */
  --shadow-glow: 0 0 0 1px rgba(244,122,31,0.5), 0 0 24px rgba(244,122,31,0.35);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "tnum";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---------- Layout primitives ---------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 var(--s-3);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 var(--s-4);
  color: var(--fg-1);
}

.section-lead {
  font-size: 17px;
  color: var(--fg-2);
  max-width: 64ch;
  margin: 0 0 var(--s-8);
}

section { padding: var(--s-10) 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 12, 9, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-1);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.brand img { height: 36px; }
.nav {
  display: flex;
  align-items: center;
  gap: var(--s-7);
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav a:hover { color: var(--fg-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-500);
  color: #1a0a00;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { background: var(--brand-600); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary[aria-disabled="true"] {
  background: var(--bg-2);
  color: var(--fg-3);
  box-shadow: none;
  cursor: not-allowed;
}
.btn-secondary {
  background: transparent;
  color: var(--fg-1);
  border-color: var(--line-2);
}
.btn-secondary:hover { border-color: var(--line-3); background: var(--bg-1); }
.btn .arrow { font-family: var(--font-mono); opacity: 0.85; }

.btn-tag {
  display: inline-block;
  margin-left: var(--s-2);
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: rgba(26, 10, 0, 0.85);
  color: var(--brand-300);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.btn-secondary .btn-tag {
  background: rgba(244, 122, 31, 0.15);
  color: var(--brand-400);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: var(--s-10);
  padding-bottom: var(--s-10);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 480px;
  background: radial-gradient(60% 60% at 50% 0%,
              rgba(244,122,31,0.18) 0%,
              rgba(213,79,10,0.06) 40%,
              transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-10);
  align-items: center;
}
.hero-copy { max-width: 600px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: var(--s-4) 0 var(--s-5);
}
.hero h1 .accent { color: var(--brand-500); }
.hero p.lead {
  font-size: 18px;
  color: var(--fg-2);
  margin: 0 0 var(--s-7);
  line-height: 1.55;
}
.hero-cta {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--s-5);
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 8px rgba(244,122,31,0.6);
}

/* Hero phone frame around real screenshot */
.device {
  position: relative;
  margin-left: auto;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 591 / 1280;
  border-radius: 40px;
  background: linear-gradient(180deg, #1a1410 0%, #0c0907 100%);
  border: 1px solid var(--line-3);
  padding: 10px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,236,210,0.04) inset,
    0 0 80px rgba(244, 122, 31, 0.10);
}
.device::after {
  /* subtle ember halo behind the phone */
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(50% 50% at 50% 40%,
              rgba(244,122,31,0.18) 0%,
              transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.device-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: var(--bg-0);
  overflow: hidden;
  position: relative;
}
.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Topo divider ---------- */
.topo-divider {
  width: 100%;
  height: 60px;
  background: url("assets/topo-strip.svg") center / 100% 100% no-repeat;
  opacity: 0.6;
}

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.feature-card {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: var(--s-6);
  transition: border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.feature-card:hover {
  border-color: var(--line-3);
  transform: translateY(-2px);
}
.feature-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: rgba(244,122,31,0.10);
  border: 1px solid rgba(244,122,31,0.30);
  display: grid; place-items: center;
  margin-bottom: var(--s-4);
  color: var(--brand-400);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 var(--s-2);
  color: var(--fg-1);
}
.feature-card p {
  margin: 0;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Workout demo ---------- */
.workout-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
.workout-card {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: var(--s-6);
}
.workout-card .eyebrow { margin-bottom: var(--s-2); }
.workout-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 var(--s-2);
  color: var(--fg-1);
}
.workout-card .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  margin-bottom: var(--s-5);
  letter-spacing: 0.06em;
}
.workout-bar {
  display: flex;
  height: 28px;
  border-radius: var(--r-pill);
  overflow: hidden;
  gap: 1px;
  background: var(--bg-0);
}
.workout-bar > div { height: 100%; }
.workout-stats {
  display: flex;
  gap: var(--s-7);
  margin-top: var(--s-5);
}
.workout-stats .stat {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.workout-stats .stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  color: var(--fg-1);
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

/* ---------- Library paths (Workout library section, two-card row) ---------- */
.library-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  margin-top: var(--s-7);
}
@media (max-width: 720px) {
  .library-paths { grid-template-columns: 1fr; }
}
.library-path {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.library-path:hover {
  border-color: var(--line-3);
  transform: translateY(-2px);
}
.library-path .eyebrow { margin: 0; }
.library-path h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
  color: var(--fg-1);
}
.library-path p {
  margin: 0;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.6;
  flex-grow: 1;
}
.library-path .btn {
  align-self: flex-start;
  margin-top: var(--s-2);
}

/* ---------- Zone legend ---------- */
.zone-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-7);
}
.zone-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.zone-badge .swatch {
  width: 8px; height: 8px; border-radius: 50%;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  counter-reset: step;
}
.step {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: var(--s-6);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--brand-500);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: var(--s-4);
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 var(--s-2);
}
.step p {
  margin: 0;
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.55;
}

/* ---------- Privacy strip ---------- */
.privacy {
  background:
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.privacy .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-9);
  align-items: center;
}
.privacy-list {
  display: grid;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.privacy-list li {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  font-size: 15px;
  color: var(--fg-2);
}
.privacy-list .check {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(31,179,115,0.15);
  border: 1px solid rgba(31,179,115,0.35);
  color: var(--zone-3);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
.privacy-list b { color: var(--fg-1); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: var(--s-2);
  max-width: 780px;
  margin: 0 auto;
}
details.faq-item {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  transition: border-color var(--dur-fast) var(--ease-out);
}
details.faq-item[open] { border-color: var(--line-3); }
details.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
  color: var(--fg-1);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--fg-3);
  transition: transform var(--dur-base) var(--ease-out);
}
details.faq-item[open] summary::after { content: "−"; }
details.faq-item p {
  margin: var(--s-3) 0 0;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Footer / CTA ---------- */
.cta {
  text-align: center;
  padding: var(--s-10) 0;
}
.cta h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 var(--s-4);
}
.cta p {
  font-size: 17px;
  color: var(--fg-2);
  margin: 0 auto var(--s-7);
  max-width: 56ch;
}

.site-footer {
  border-top: 1px solid var(--line-1);
  padding: var(--s-7) 0;
  color: var(--fg-3);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
  font-size: 13px;
}
.site-footer .footer-links {
  display: flex;
  gap: var(--s-6);
}
.site-footer a { color: var(--fg-2); transition: color var(--dur-fast) var(--ease-out); }
.site-footer a:hover { color: var(--fg-1); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .device { margin: var(--s-5) auto 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .workout-demo { grid-template-columns: 1fr; }
  .privacy .container { grid-template-columns: 1fr; gap: var(--s-6); }
}

@media (max-width: 600px) {
  .nav { display: none; }
  section { padding: var(--s-9) 0; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
