/* ==========================================================================
   FLYWHEEL FITNESS — Design System
   Clean & athletic: white foundation, cyan accent, sharp grids
   ========================================================================== */

:root {
  /* Brand */
  --cyan: #00b6f0;
  --cyan-hover: #0098cc;
  --cyan-tint: #e6f8fe;

  /* Light theme (default) */
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --ink: #0a0a0a;
  --ink-2: #3f3f46;
  --ink-3: #71717a;
  --rule: #e4e4e7;
  --rule-strong: #d4d4d8;

  /* Type */
  --font-display: 'Space Grotesk', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Scale */
  --radius-btn: 999px; /* overridden by tweak */
  --radius-card: 0px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Dark theme removed — keeping :root tokens only */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

body { min-height: 100vh; overflow-x: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============ Typography ============ */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.display-xl { font-size: clamp(48px, 9vw, 144px); }
.display-lg { font-size: clamp(40px, 6vw, 96px); }
.display-md { font-size: clamp(32px, 4.5vw, 64px); }
.display-sm { font-size: clamp(24px, 3vw, 40px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.mono { font-family: var(--font-mono); }

.lead {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
}

/* ============ Layout ============ */
.page {
  min-height: 100vh;
  padding-top: 72px; /* nav height */
}
body[data-nav="side"] .page {
  padding-top: 0;
  padding-left: 260px;
}
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: 96px 0; }
.section-tight { padding: 48px 0; }

.hairline { border-top: 1px solid var(--rule); }

/* ============ Grid helpers ============ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-12 { grid-template-columns: repeat(12, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-12 { grid-template-columns: repeat(6, 1fr); }
  body[data-nav="side"] .page { padding-left: 0; padding-top: 72px; }
  body[data-nav="side"] .sidenav { display: none; }
  body[data-nav="side"] .topnav { display: flex; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.btn-primary {
  background: var(--cyan);
  color: #fff;
}
.btn-primary:hover {
  background: var(--cyan-hover);
  transform: translateY(-1px);
}
.btn-dark {
  background: var(--ink);
  color: var(--bg);
}
.btn-dark:hover { transform: translateY(-1px); }
.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-ghost {
  color: var(--ink);
}
.btn-ghost:hover { color: var(--cyan); }
.btn-lg { padding: 18px 32px; font-size: 15px; }
.btn-arrow::after {
  content: "→";
  font-family: var(--font-body);
  font-weight: 400;
  margin-left: 4px;
  transition: transform 0.2s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ============ Nav ============ */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: all 0.3s var(--ease);
}
.topnav-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  height: 28px;
  display: flex;
  align-items: center;
}
.nav-logo img { height: 100%; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link.active::before {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--cyan);
}

.sidenav {
  display: none;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--rule);
  padding: 32px 24px;
  flex-direction: column;
  z-index: 100;
}
body[data-nav="side"] .topnav { display: none; }
body[data-nav="side"] .sidenav { display: flex; }

.sidenav .nav-logo { height: 32px; margin-bottom: 48px; }
.sidenav .nav-links {
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  flex: 1;
}
.sidenav .nav-link {
  padding: 10px 14px;
  text-align: left;
  border-left: 2px solid transparent;
}
.sidenav .nav-link.active {
  border-left-color: var(--cyan);
  background: var(--surface-2);
}
.sidenav .nav-link.active::before { display: none; }
.sidenav-footer {
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 96px 0 64px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

.hero-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.hero-eyebrow-row::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--cyan);
}
.hero-title {
  margin-bottom: 32px;
}
.hero-title .accent { color: var(--cyan); font-style: italic; }
.hero-meta {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.hero-meta-item .mono { font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.hero-meta-item .val { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }

/* ============ Placeholder images ============ */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(45deg,
      var(--surface-2) 0,
      var(--surface-2) 8px,
      var(--surface) 8px,
      var(--surface) 16px);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.placeholder::after {
  content: attr(data-label);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--rule);
}
.placeholder-dark {
  background:
    repeating-linear-gradient(45deg,
      #18181b 0,
      #18181b 8px,
      #0a0a0a 8px,
      #0a0a0a 16px);
  border-color: #27272a;
}
.placeholder-dark::after {
  background: #0a0a0a;
  color: #71717a;
  border-color: #27272a;
}

.stock-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ Cards ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.card:hover {
  border-color: var(--ink);
}
.card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--rule);
  padding: 64px 0 32px;
  background: var(--surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--ink-2); font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-logo { height: 40px; margin-bottom: 20px; }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
}

/* ============ Form ============ */
.field { margin-bottom: 24px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-tint);
}
.field textarea { resize: vertical; min-height: 140px; }
.field-error { color: #dc2626; font-size: 12px; margin-top: 6px; font-family: var(--font-mono); }
.field.has-error input,
.field.has-error textarea,
.field.has-error select { border-color: #dc2626; }

/* ============ Tweaks panel ============ */
.tweaks {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  padding: 20px;
  z-index: 200;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  display: none;
}
.tweaks.is-open { display: block; }
.tweaks h3 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.tweak-group { margin-bottom: 18px; }
.tweak-group:last-child { margin-bottom: 0; }
.tweak-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.tweak-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.tweak-opt {
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.15s;
  cursor: pointer;
}
.tweak-opt:hover { border-color: var(--ink); }
.tweak-opt.active {
  background: var(--cyan);
  color: #fff;
  border-color: var(--cyan);
}

/* ============ Dropdown nav ============ */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-dropdown > .nav-link {
  display: flex;
  align-items: center;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  z-index: 200;
  padding: 8px 0;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-item {
  display: block;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-dropdown-item:hover { color: var(--ink); background: var(--surface-2); }
.nav-dropdown-item.active { color: var(--cyan); }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

.accent { color: var(--cyan); }

/* Big type marquee-style section header */
.mega-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(80px, 14vw, 220px);
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px var(--rule-strong);
  text-stroke: 1px var(--rule-strong);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}

/* Number callout */
.stat {
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 6vw, 88px);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-num .accent { color: var(--cyan); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 16px;
}

/* Pricing */
.price-card {
  position: relative;
  padding: 40px 32px 32px;
  background: var(--surface);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  min-height: 480px;
}
.price-card.featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.price-badge {
  position: absolute;
  top: -1px; right: -1px;
  background: var(--cyan);
  color: #fff;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.price-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.price-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.price-amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 64px;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}
.price-amount sub { font-size: 14px; font-weight: 400; letter-spacing: 0; }
.price-meta { font-size: 13px; color: var(--ink-3); margin-bottom: 32px; }
.price-features { list-style: none; flex: 1; margin-bottom: 32px; }
.price-features li {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.price-features li::before {
  content: "→";
  color: var(--cyan);
  font-family: var(--font-body);
  flex-shrink: 0;
}

/* Running ticker */
.ticker {
  background: var(--ink);
  color: var(--bg);
  padding: 16px 0;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 48px; }
.ticker-track span::after {
  content: "●";
  color: var(--cyan);
  font-size: 12px;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Hero animated bar */
.hero-bars {
  position: absolute;
  right: 0;
  top: 96px;
  width: 40%;
  height: calc(100% - 96px);
  display: flex;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
  z-index: 0;
}
.hero-bar {
  flex: 1;
  background: var(--cyan);
  opacity: 0.08;
  animation: barPulse 2.4s ease-in-out infinite;
}
.hero-bar:nth-child(1) { height: 30%; animation-delay: 0s; }
.hero-bar:nth-child(2) { height: 60%; animation-delay: 0.1s; }
.hero-bar:nth-child(3) { height: 45%; animation-delay: 0.2s; }
.hero-bar:nth-child(4) { height: 80%; animation-delay: 0.3s; }
.hero-bar:nth-child(5) { height: 55%; animation-delay: 0.4s; }
.hero-bar:nth-child(6) { height: 90%; animation-delay: 0.5s; }
.hero-bar:nth-child(7) { height: 70%; animation-delay: 0.6s; }
@keyframes barPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.08; }
  50% { transform: scaleY(1.05); opacity: 0.14; }
}

/* Page header */
.page-header {
  padding: 120px 0 48px;
  border-bottom: 1px solid var(--rule);
}
.page-header .container { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: end; }
@media (max-width: 900px) { .page-header .container { grid-template-columns: 1fr; } }

/* Online training feature tiles */
.feature-tile {
  padding: 40px 32px;
  background: var(--surface);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
  transition: all 0.3s var(--ease);
}
.feature-tile:hover { border-color: var(--cyan); }
.feature-tile .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}
.feature-tile h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.feature-tile p { color: var(--ink-2); font-size: 15px; }

/* ==========================================================================
   MOBILE OPTIMIZATION
   ========================================================================== */

/* Hamburger button — only visible on mobile */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--rule);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 110;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: background 0.2s;
}
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease;
}
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
body.nav-open .nav-toggle-bar { background: transparent; }
body.nav-open .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* Compare table — horizontal scroll wrapper */
.compare-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare {
  min-width: 560px;
}

/* TABLET — 900px and below */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .section { padding: 72px 0; }

  /* Force any inline `grid-column: span N` to full width */
  [style*="grid-column: span"] { grid-column: 1 / -1 !important; }
  [style*="grid-column-start"] { grid-column-start: auto !important; }

  /* Stack the page header */
  .page-header { padding: 100px 0 40px; }
  .page-header .container { grid-template-columns: 1fr; gap: 24px; }

  /* Pricing cards */
  .price-card { min-height: 0; }
  .price-amount { font-size: 54px; }

  /* Add-ons row — 2 columns */
  .grid-4 { grid-template-columns: 1fr 1fr !important; }
  .grid-4 > div { border-right: none !important; padding: 24px 0 !important; border-bottom: 1px solid var(--rule); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Hide the Tweaks CTA from nav top to save space */
  .topnav-inner .btn-primary { display: none; }

  /* Top nav becomes hamburger */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    border-top: 1px solid var(--rule);
  }
  body.nav-open .nav-links {
    transform: translateX(0);
  }
  .nav-links > a,
  .nav-links > .nav-dropdown > a {
    padding: 18px 4px !important;
    font-size: 18px !important;
    border-bottom: 1px solid var(--rule);
    text-align: left;
    width: 100%;
  }
  .nav-link.active::before { display: none; }
  .nav-link.active { color: var(--cyan) !important; }

  /* Dropdown becomes inline on mobile */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu {
    display: block;
    position: static;
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
  }
  .nav-dropdown-item {
    padding: 14px 4px !important;
    font-size: 15px !important;
    border-bottom: 1px solid var(--rule);
  }

  /* Hero fullbleed — taller for mobile */
  .hero-fullbleed { min-height: 70vh; }
  .hero-fullbleed .container > div:first-child { padding-bottom: 48px !important; }

  /* Hero meta stack */
  .hero-meta { flex-direction: column; gap: 16px; padding-top: 24px; }

  /* Mega label hidden */
  .mega-label { display: none; }

  /* Display type — keep punch but contained */
  .display-xl { font-size: clamp(48px, 12vw, 80px) !important; }
  .display-lg { font-size: clamp(40px, 9vw, 64px) !important; }
  .display-md { font-size: clamp(32px, 7vw, 48px) !important; }

  /* Compare table cells smaller */
  .compare th, .compare td { padding: 12px 8px !important; font-size: 13px !important; }
  .compare td[style*="18px 0"] { padding: 12px 8px !important; }
}

/* MOBILE — 600px and below */
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .hero-fullbleed { min-height: 88vh; }
  .hero-bars { width: 50%; }

  /* Card padding */
  .card { padding: 24px; }
  .price-card { padding: 32px 24px 24px; }
  .feature-tile { padding: 28px 24px; min-height: 0; }

  /* Footer to single col */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: left; }
  .footer { padding: 48px 0 24px; }

  /* Buttons full width on small phones */
  .hero-fullbleed .btn, .btn-lg { width: 100%; }
  .flex.gap-16.mt-32 { flex-direction: column !important; }
  .flex.gap-16.mt-32 .btn { width: 100%; }

  /* Add-ons single col */
  .grid-4 { grid-template-columns: 1fr !important; }

  /* Big stat numbers slimmer */
  .stat-num { font-size: clamp(36px, 10vw, 56px); }

  /* Tweaks panel */
  .tweaks {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
  }

  /* Five-rules grid (about page) — collapse columns */
  [style*="grid-template-columns: 80px 1fr 2fr"] {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* Form fields stack */
  .grid-2 { grid-template-columns: 1fr !important; gap: 0 !important; }

  /* Hero meta hide one item to save space */
  .hero-meta-item .val { font-size: 18px; }

  /* Top nav padding */
  .topnav-inner { padding: 0 20px; }
}

/* TOUCH-FRIENDLY tap targets globally */
@media (hover: none) {
  .nav-link, .nav-dropdown-item, .btn, a.nav-link {
    min-height: 44px;
  }
}

/* Mobile responsive (legacy) */
@media (max-width: 600px) {
  .hero-meta { flex-direction: column; gap: 20px; }
}
