/* ============================================================
   LANDING PAGE SECTIONS
   Section-specific styles for the conversion-optimized template.
   Depends on: design-system.css
   ============================================================ */

/* ============================================================
   RESPONSIVE BREAKPOINTS REFERENCE (mobile-first)
   320px  — small phones (iPhone SE, Galaxy A series)
   480px  — large phones
   640px  — phablets / small landscape phones
   768px  — tablets portrait
   960px  — tablets landscape / small laptops
   1024px — standard laptops
   1280px — desktop (container max)
   1440px — wide desktop
   ============================================================ */

/* ============================================================
   NAVIGATION
   Sticky, blurred backdrop, minimal.
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: oklch(0.10 0.015 255 / 0.85);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--nav-height);
}

.nav__wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--text-primary);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.nav__logo:hover { color: var(--text-primary); }

.nav__links {
  display: flex;
  gap: var(--space-8);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav__link:hover { color: var(--text-primary); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Mobile hamburger — min 44px touch target (WCAG 2.5.5) */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-3);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.nav__mobile[aria-hidden="false"] { display: flex; }
.nav__mobile-link {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  padding: var(--space-3) 0;
}
.nav__mobile-link:hover { color: var(--text-primary); }
.nav__mobile-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-2) 0;
}

@media (max-width: 768px) {
  .nav__links, .nav__actions { display: none; }
  .nav__hamburger { display: flex; }
}

/* ---- Nav: 1024px+ show all actions ---- */
@media (min-width: 1024px) {
  .nav__wrap { padding: 0 var(--space-8); }
}

/* ---- Nav: 1440px+ wider container ---- */
@media (min-width: 1440px) {
  .nav__wrap { padding: 0 var(--space-12); }
}

/* ============================================================
   HERO SECTION
   Z-pattern layout. Visual weight on left, product shot right.
   Supports optional gradient canvas (WebGL) and gradient orb (CSS).
   ============================================================ */
.hero {
  padding: var(--space-24) 0 var(--space-16);
  overflow: hidden;
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-16);
  align-items: center;
}

.hero__content {
  animation: fadeUp 0.8s cubic-bezier(0.2, 1, 0.2, 1) both;
}

.hero__title {
  font-family: var(--font-display);
  /* W3.1 rev3: sized to the two-column hero's title column (~429-504px at
     961-1440vw), not the container — at var(--text-4xl) (56px) both <br>
     segments overflowed the column and the H1 ragged into 4 lines ending in
     an orphaned "edge." (audit P2-1). 3.3vw tracks the column; 2.4rem cap
     matches the single-column (≤960px) size, so the 2-line composition
     "Stop reaching for players / with the SOS edge." holds at every width. */
  font-size: clamp(2rem, 3.3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: var(--space-6);
}

.hero__accent {
  color: var(--accent-start);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: var(--space-6);
  max-width: 520px;
}

.hero__proof {
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}
.proof-logos__text { margin-right: var(--space-1); }
.proof-logos strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.hero__cta {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.hero__cta-note {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.hero__visual {
  animation: fadeUp 0.8s cubic-bezier(0.2, 1, 0.2, 1) 0.2s both;
}

.hero__visual-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  background: var(--bg-surface);
}

.hero__img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 1440px) {
  .hero { padding: var(--space-32) 0 var(--space-24); }
}

@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-12);
  }
  .hero__title { font-size: var(--text-3xl); }
}

@media (max-width: 768px) {
  .hero { padding: var(--space-16) 0 var(--space-12); }
  .hero__cta { align-items: stretch; }
  .hero__cta .btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: var(--space-12) 0 var(--space-10); }
  .hero__title { font-size: var(--text-2xl); }
  .hero__subtitle { font-size: var(--text-base); }
}

@media (max-width: 320px) {
  .hero__title { font-size: clamp(1.5rem, 6vw, 2rem); }
}

/* ============================================================
   METRICS SECTION
   3-column stat bar.
   ============================================================ */
.metrics {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.metric__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent-start);
}

.metric__label {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

@media (max-width: 768px) {
  .metrics__grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
  .metric__value { font-size: var(--text-2xl); }
}

@media (max-width: 640px) {
  .metrics__grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

@media (max-width: 320px) {
  .metrics { padding: var(--space-8) 0; }
}

/* ============================================================
   PAIN SECTION
   Centered text, emotional resonance.
   ============================================================ */
.pain {
  padding: var(--space-20) 0;
  text-align: center;
}
.pain .section__title {
  font-size: var(--text-3xl);
}
.pain .section__subtitle {
  margin-left: auto;
  margin-right: auto;
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  max-width: 640px;
}

/* ============================================================
   FEATURES GRID
   Responsive 2-3 column cards.
   ============================================================ */
.features {
  padding: var(--space-20) 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  will-change: transform;
}
.feature-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  opacity: 0.9;
}

.feature-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.feature-card__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.65;
}

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

@media (max-width: 960px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .features__grid { grid-template-columns: 1fr; }
}

@media (max-width: 320px) {
  .feature-card { padding: var(--space-6); }
}

/* ============================================================
   HOW IT WORKS (Steps)
   Horizontal flow with connectors.
   ============================================================ */
.steps {
  padding: var(--space-20) 0;
  background: var(--bg-surface);
}

.steps__flow {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  justify-content: center;
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: var(--space-6);
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  margin-bottom: var(--space-5);
}

.step__title {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.step__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
}

.step__connector {
  width: 48px;
  height: 2px;
  background: var(--border);
  margin-top: calc(var(--space-6) + 23px);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .steps__flow { flex-direction: column; align-items: center; }
  .step { max-width: 100%; width: 100%; }
  .step__connector {
    width: 2px;
    height: 32px;
    margin: 0;
  }
}

@media (max-width: 320px) {
  .step { padding: var(--space-4); }
}

/* ============================================================
   VERTICALS / USE CASES
   ============================================================ */
.verticals {
  padding: var(--space-20) 0;
}

.verticals__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.vertical-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.vertical-card:hover {
  border-color: var(--accent-solid);
  box-shadow: var(--shadow-glow);
}

.vertical-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.vertical-card__desc {
  color: var(--text-secondary);
  font-size: var(--text-base);
}

@media (max-width: 960px) {
  .verticals__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .verticals__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: var(--space-20) 0;
  background: var(--bg-surface);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial {
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border-left: 3px solid var(--accent-solid);
}

.testimonial__text {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
}
.testimonial__text::before { content: "\201C"; }
.testimonial__text::after  { content: "\201D"; }

.testimonial__author {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}
.testimonial__author strong {
  color: var(--text-primary);
  font-weight: 600;
  font-style: normal;
}

@media (max-width: 960px) {
  .testimonials__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .testimonials__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRICING
   3-column with highlighted middle tier.
   ============================================================ */
.pricing {
  padding: var(--space-24) 0;
}

.pricing__toggle {
  display: flex;
  justify-content: center;
  gap: var(--space-1);
  margin-bottom: var(--space-12);
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  padding: var(--space-1);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border);
}

.pricing__toggle-btn {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-6);
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.pricing__toggle-btn.is-active {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  /* ponytail: min-width:0 lets the card shrink below its content's min-size inside a 1fr grid track. Without this, the card overflows the grid column at mobile widths (grid items default to min-width:auto, which is min-content). */
  min-width: 0;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

/* Highlighted "popular" tier */
.pricing-card.is-popular {
  border-color: var(--accent-solid);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: scale(1.03);
}

.pricing-card__badge {
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.pricing-card__header { margin-bottom: var(--space-6); }

.pricing-card__name {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pricing-card__tagline {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

.pricing-card__price {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  display: inline-flex;
  align-items: flex-start;
  transition: opacity 0.15s ease;
}

/* Audit fix: $ superscript-aligned to the top of the number, not baseline-centered. */
.pricing-card__currency {
  font-size: 0.45em;
  font-weight: 700;
  margin-right: 0.08em;
  margin-top: 0.18em;
  color: var(--text-tertiary);
}
.pricing-card__value {
  font-variant-numeric: tabular-nums;
}

.pricing-card__amount.is-swapping {
  opacity: 0;
}

.pricing-card__period {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.pricing-card__features li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding-left: var(--space-6);
  position: relative;
}
.pricing-card__features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.pricing-card > .btn {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
  line-height: 1.25;
}

.pricing__trust {
  text-align: center;
  margin-top: var(--space-12);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}
.pricing__trust strong { color: var(--text-secondary); }

@media (max-width: 960px) {
  .pricing__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pricing-card.is-popular { transform: none; }
}

@media (max-width: 480px) {
  .pricing__grid { max-width: 100%; }
  .pricing-card { padding: var(--space-6); }
}

@media (max-width: 320px) {
  .pricing__toggle-btn { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
}

/* ============================================================
   FAQ
   Native <details> for zero-JS accordions.
   ============================================================ */
.faq {
  padding: var(--space-20) 0;
  background: var(--bg-surface);
}

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

.faq__item {
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq__item[open] { border-color: var(--border); }

.faq__question {
  font-size: var(--text-base);
  font-weight: 600;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: "+";
  font-size: var(--text-xl);
  color: var(--text-tertiary);
  transition: transform 0.2s var(--ease-out);
  flex-shrink: 0;
  margin-left: var(--space-4);
}
.faq__item[open] .faq__question::after {
  content: "\2212";
}

.faq__answer {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   FINAL CTA
   Full-width emotional close with gradient background.
   Supports --enhanced modifier for larger gradient orb.
   ============================================================ */
.final-cta {
  padding: var(--space-24) 0;
  /* W3.2: left-aligned like every other section header — the centered
     variant was the last shift in the page's alignment axis (audit P2-2). */
  text-align: left;
  position: relative;
  overflow: hidden;
}

/* Subtle gradient orb behind CTA */
.final-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, oklch(0.55 0.22 25 / 0.10), transparent 70%);
  pointer-events: none;
}

.final-cta__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--text-primary);
  position: relative;
}

.final-cta__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-top: var(--space-6);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: flex-start;
  margin-top: var(--space-10);
  position: relative;
}

.final-cta__note {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-4);
  position: relative;
}

@media (max-width: 640px) {
  .final-cta__actions { flex-direction: column; align-items: stretch; }
  .final-cta__actions .btn { width: 100%; }
}

@media (max-width: 320px) {
  .final-cta { padding: var(--space-16) 0; }
}

/* ============================================================
   FOOTER — Minimal Statement Footer
   ============================================================ */
.footer {
  padding: var(--space-12) 0 var(--space-8);
  border-top: 1px solid var(--border-subtle);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-4) var(--space-8);
}

.footer__brand {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-base);
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.footer__dot {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.footer__links {
  display: flex;
  gap: var(--space-6);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.footer__links a:hover {
  color: var(--text-secondary);
}

.footer__family {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-6);
  width: 100%;
  margin-top: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.footer__family-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer__family a {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.footer__family a:hover {
  color: var(--text-secondary);
}

.footer__copyright {
  width: 100%;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
  .footer__family {
    gap: var(--space-2) var(--space-4);
  }
  .footer__links {
    flex-wrap: wrap;
    gap: var(--space-4);
  }
}

/* ============================================================
   GLOBAL RESPONSIVE UTILITIES
   ============================================================ */

/* Prevent horizontal overflow globally */
body {
  overflow-x: hidden;
}

/* Container padding scales with viewport */
@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
}

@media (max-width: 320px) {
  .container { padding: 0 var(--space-3); }
}

@media (min-width: 1440px) {
  .container { padding: 0 var(--space-8); }
}

/* Buttons: minimum touch target on mobile */
@media (max-width: 768px) {
  .btn--sm {
    min-height: 44px;
    padding: var(--space-3) var(--space-5);
  }
  .btn--md {
    min-height: 44px;
  }
  .btn--lg {
    min-height: 52px;
  }
}

/* FAQ touch targets */
@media (max-width: 768px) {
  .faq__question {
    padding: var(--space-5) var(--space-5);
    min-height: 44px;
  }
}

/* Section padding scale on mobile */
@media (max-width: 640px) {
  .pain,
  .features,
  .steps,
  .verticals,
  .testimonials,
  .faq {
    padding: var(--space-16) 0;
  }
  .pricing { padding: var(--space-16) 0; }
}

@media (max-width: 320px) {
  .pain,
  .features,
  .steps,
  .verticals,
  .testimonials,
  .faq {
    padding: var(--space-12) 0;
  }
}

/* ============================================================
   COOKIE CONSENT BANNER
   Fixed bottom, dismissible, accessible.
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: oklch(0.13 0.018 255 / 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.cookie-banner__text {
  margin: 0;
  font-size: var(--text-sm);
  /* W3.6: banner surface is ALWAYS dark (oklch 0.13, theme-independent), so the
     text must be pinned light — var(--text-muted) is an undefined token and
     collapsed to near-black in light mode. */
  color: oklch(0.86 0.01 250);
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* W3.6: ghost buttons on the always-dark banner surface (light-mode
   --text-primary/--border tokens were near-invisible on it) */
.cookie-banner .btn--ghost {
  color: oklch(0.86 0.01 250);
  border-color: oklch(1 0 0 / 0.30);
}
.cookie-banner .btn--ghost:hover,
.cookie-banner .btn--ghost:focus-visible {
  background: oklch(1 0 0 / 0.10);
  border-color: oklch(1 0 0 / 0.45);
  color: oklch(0.95 0 0);
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 640px) {
  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   LOGO MARQUEE — Infinite horizontal scroll
   ============================================================ */
.logo-marquee {
  padding: var(--space-12) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.logo-marquee__label {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: var(--space-8);
}

.logo-marquee__track {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-marquee__inner {
  display: flex;
  gap: var(--space-16);
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
  will-change: transform;
}

.logo-marquee__inner:hover {
  animation-play-state: paused;
}

.logo-marquee__img {
  height: 32px;
  width: auto;
  object-fit: contain;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: opacity 0.3s, filter 0.3s;
  flex-shrink: 0;
}

.logo-marquee__img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.logo-marquee__badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-tertiary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .logo-marquee__img { height: 24px; }
  .logo-marquee__inner { gap: var(--space-10); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee__inner {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-8);
  }

  .hero__content,
  .hero__visual,
  .reveal,
  .fade-up,
  .fade-up-1,
  .fade-up-2,
  .fade-up-3,
  .fade-up-4 {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Focus-Visible Ring ── */
:focus-visible {
  outline: 3px solid var(--accent-solid);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================================
   TESTIMONIAL METRICS — Large stat overlay on cards
   ============================================================ */
.testimonial__metric {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}

/* ponytail: testimonial__metric-value deleted 2026-08-17 — unused (no testimonial markup ships); no fabricated testimonials per blueprint M2.2 */

.testimonial__metric-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: var(--space-1);
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comparison {
  padding: var(--space-20) 0;
  background: var(--bg-surface);
}

.comparison__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
}

.comparison__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.comparison__table thead {
  background: var(--bg-elevated);
}

.comparison__table th,
.comparison__table td {
  padding: var(--space-4) var(--space-6);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison__table th:first-child,
.comparison__table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
}

.comparison__table th {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison__us {
  background: oklch(0.55 0.22 25 / 0.06);
}

.comparison__table th.comparison__us {
  color: var(--accent-solid);
  font-weight: 800;
}

.icon-check {
  color: var(--success);
  display: inline-block;
}

.icon-cross {
  color: var(--text-tertiary);
  opacity: 0.4;
  display: inline-block;
}

@media (max-width: 640px) {
  .comparison__table th,
  .comparison__table td {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-xs);
  }
}

/* ============================================================
   TRUST BADGES
   ============================================================ */
.trust-badges {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.trust-badges__grid {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.trust-badge svg {
  color: var(--text-tertiary);
  opacity: 0.6;
}

.trust-badge__text {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 640px) {
  .trust-badges__grid { gap: var(--space-8); }
}

/* ============================================================
   CHANGELOG TEASER
   ============================================================ */
.changelog {
  padding: var(--space-16) 0;
}

.changelog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}

.changelog__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.changelog__view-all {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-solid);
}
.changelog__view-all:hover {
  color: var(--accent-hover);
}

.changelog__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.changelog__item {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-5) var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s;
}

.changelog__item:hover {
  border-color: var(--border);
}

.changelog__date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  flex-shrink: 0;
  min-width: 80px;
  padding-top: var(--space-1);
}

.changelog__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.changelog__item-title {
  font-size: var(--text-base);
  font-weight: 700;
}

.changelog__item-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .changelog__item { flex-direction: column; gap: var(--space-2); }
  .changelog__date { min-width: auto; }
}

@media (max-width: 768px) {
  .demo-grid { grid-template-columns: 1fr !important; }
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   GRANULAR COOKIE CONSENT
   ============================================================ */
.cookie-banner__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.cookie-banner__settings {
  display: none;
  padding-top: var(--space-4);
  margin-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.cookie-banner__settings[aria-hidden="false"] {
  display: block;
}

.cookie-category {
  padding: var(--space-2) 0;
}

.cookie-category__label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

.cookie-category__label strong {
  color: var(--text-primary);
}

.cookie-category__label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-solid);
  flex-shrink: 0;
}

.cookie-banner__settings-actions {
  margin-top: var(--space-4);
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .cookie-banner__main { flex-direction: column; text-align: center; }
  .cookie-banner__inner { padding: var(--space-4) var(--space-4); }
  .cookie-banner__actions { flex-wrap: wrap; justify-content: center; }
}

/* ============================================================
   CTA PULSE / GLOW ANIMATION
   ============================================================ */
.btn--primary.btn--lg {
  position: relative;
}

/* ============================================================
   HERO PARALLAX — layered depth via JS scroll
   ============================================================ */
[data-parallax] .hero__content {
  will-change: transform;
  transition: transform 0.1s linear;
}

[data-parallax]::before {
  will-change: transform;
}

/* ============================================================
   FORM INPUT FOCUS GLOW
   ============================================================ */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-solid);
  box-shadow: 0 0 0 3px oklch(0.55 0.22 25 / 0.15);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toastSlideIn 0.3s var(--ease-out), toastFadeOut 0.3s var(--ease-smooth) 3.7s forwards;
  max-width: 360px;
}

.toast--success {
  border-left: 3px solid var(--success);
}

.toast--error {
  border-left: 3px solid var(--error);
}

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastFadeOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(8px); }
}

/* ============================================================
   HERO SNAPSHOT PANEL — Above-fold product proof
   ============================================================ */
.hero__snapshot {
  margin-top: var(--space-8);
  max-width: 480px;
}

.snapshot-panel {
  background: var(--surface-data, var(--bg-elevated));
  border: 1px solid var(--border-data-active, var(--border-subtle));
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-data-panel, 0 18px 48px rgba(0,0,0,0.08));
}

.snapshot-panel__title {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.snapshot-panel__subtitle {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.snapshot-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.snapshot-table thead th {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  padding: 4px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.snapshot-table thead th:first-child,
.snapshot-table thead th:nth-child(2) {
  text-align: left;
}

.snapshot-table td {
  padding: 5px 8px;
  text-align: center;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(0,0,0,0.02);
}

.snapshot-table td:first-child {
  text-align: left;
  color: var(--text-tertiary);
}

.snapshot-table td:nth-child(2) {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
}

/* Edge difficulty colors */
.edge-easy { color: var(--diff-easy); }
.edge-neutral { color: var(--text-secondary); }
.edge-hard { color: var(--diff-hard); }

.edge-label {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

.edge-label--easy { color: var(--diff-easy); background: rgba(59,130,246,0.1); }
.edge-label--lean { color: var(--diff-easy); background: rgba(96,165,250,0.1); }
.edge-label--neutral { color: var(--text-secondary); background: rgba(148,163,184,0.1); }
.edge-label--hard { color: var(--diff-hard); background: rgba(220,38,38,0.1); }

.snapshot-panel__note {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  margin-top: var(--space-3);
  font-style: italic;
}

@media (max-width: 768px) {
  .hero__snapshot {
    max-width: 100%;
    margin-top: var(--space-6);
  }

  .snapshot-table {
    font-size: 0.75rem;
  }
}

/* ============================================================
   HERO CAROUSEL — Auto-advancing "You're on the clock" demo
   Mirrors matchup-grid.js carousel pattern: setInterval + dots
   + pause-on-hover. Slides are .snapshot-panel cards.
   ============================================================ */
.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hero-carousel-track {
  display: flex;
  transition: transform 0.5s var(--ease-out, ease);
  will-change: transform;
}

.hero-carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
  justify-content: center;
}

/* W3.5: 44px hit area with a 32px visible circle, sitting in the gutter
   OUTSIDE the phone frame (was 32px overlapping the frame edge) */
.hero-carousel-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  /* glyph pinned light — the visible circle is always dark, theme-independent */
  color: oklch(0.92 0 0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  padding: 0;
  font-size: var(--text-lg);
  line-height: 1;
}
.hero-carousel-btn::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: oklch(0.20 0.02 255 / 0.82);
  border: 1px solid var(--border-default);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hero-carousel-btn:hover,
.hero-carousel-btn:focus-visible {
  color: #fff;
  outline: none;
}
.hero-carousel-btn:hover::before,
.hero-carousel-btn:focus-visible::before {
  background: var(--accent-start);
  border-color: var(--accent-start);
}
.hero-carousel-btn--prev { left: 6px; }
.hero-carousel-btn--next { right: 6px; }

.hero-carousel-dots {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  padding: var(--space-3) 0 var(--space-1);
}

.hero-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: oklch(0.4 0.01 255);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-carousel-dot:hover { background: oklch(0.55 0.02 255); }
.hero-carousel-dot.is-active {
  background: var(--accent-start);
  transform: scale(1.3);
}

/* ponytail: hero carousel buttons hidden on tight mobile to avoid covering card content
   — upgrade: re-enable if card padding grows */
@media (max-width: 420px) {
  .hero-carousel-btn { display: none; }
}

/* ============================================================
   METHODOLOGY SECTION — How the Schedule Edge Score Works
   ============================================================ */
.methodology {
  padding: var(--space-16) 0;
}

.methodology__content {
  max-width: 720px;
  margin: 0 auto;
}

.methodology__body {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-top: var(--space-6);
}

.methodology__body p + p {
  margin-top: var(--space-4);
}

/* ── Mobile Touch Targets (WCAG 2.5.8) ── */
@media (max-width: 768px) {
  .btn {
    min-height: 48px;
  }

  .btn--sm {
    min-height: 44px;
  }

  .nav__link,
  .nav__mobile-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .faq__question {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ============================================================
   WEEK FILTER BAR
   Week range selector + preset buttons for matchup grid.
   ============================================================ */
.week-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  margin-bottom: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.week-filter-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.week-filter-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-right: var(--space-1);
}

.week-select {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: var(--surface-elevated);
  color: var(--text-primary);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  min-width: 48px;
  text-align: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
}

.week-select:focus {
  outline: 2px solid oklch(0.52 0.12 155);
  outline-offset: 2px;
}

.week-filter-dash {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.week-preset-group {
  display: flex;
  gap: var(--space-2);
}

.week-preset-btn {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.week-preset-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}

.week-preset-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  border-color: transparent;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25),
              0 2px 8px color-mix(in oklch, var(--accent-start) 30%, transparent);
}

.week-preset-btn:focus-visible {
  outline: 2px solid oklch(0.52 0.12 155);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .week-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .week-preset-group {
    flex-wrap: wrap;
  }
}

/* ============================================================
   FREE TIER CALLOUT
   ============================================================ */
.free-callout {
  padding: var(--space-8) 0;
}
.free-callout__card {
  background: var(--bg-surface);
  border: 1px solid var(--accent-start);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  text-align: center;
  box-shadow: 0 0 24px oklch(0.52 0.12 155 / 0.12);
}
.free-callout__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.free-callout__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.free-callout__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
}
.free-callout__icon {
  font-size: var(--text-xl);
}
@media (max-width: 640px) {
  .free-callout__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .free-callout__card {
    padding: var(--space-4) var(--space-4);
  }
}

/* ============================================================
   M1.4 — Sticky upgrade bar (appears after free Top 50 passes)
   ============================================================ */
.upgrade-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-nav, 90);
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-default);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
}
.upgrade-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.upgrade-bar__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.upgrade-bar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.upgrade-bar__close {
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: var(--text-xl);
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-md);
}
.upgrade-bar__close:hover,
.upgrade-bar__close:focus-visible {
  color: var(--text-primary);
}
@media (max-width: 640px) {
  .upgrade-bar__text {
    font-size: var(--text-xs);
  }
}

/* ============================================================
   M3 STRUCTURAL — pain→tool rows, platform index, method strip,
   preview heads (de-centered alternation), accuracy-proof lift
   ============================================================ */
.section__header--left { text-align: left; }
.section__header--left .section__subtitle { margin-left: 0; margin-right: 0; }

.pain-rows { margin-top: var(--space-8); border-top: 1px solid var(--border-default); }
.pain-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: var(--space-8);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border-default);
}
.pain-row__head {
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
  align-self: start;
}
.pain-row__desc { grid-column: 2; margin: 0; color: var(--text-secondary); line-height: 1.7; }
.pain-row__resp {
  grid-column: 2;
  margin: var(--space-3) 0 0;
  padding: var(--space-3) var(--space-4);
  border-left: 2px solid var(--accent-start);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.pain-row__resp strong { color: var(--accent-start); }

.suite-line { margin-top: var(--space-6); font-size: var(--text-sm); color: var(--text-tertiary); }
.suite-line span { color: var(--text-secondary); }

.platform-index { margin-top: var(--space-4); border-top: 1px solid var(--border-default); }
.platform-row {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 180px) minmax(0, 3fr);
  column-gap: var(--space-6);
  align-items: baseline;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border-default);
  text-decoration: none;
}
.platform-row__name { font-family: var(--font-display); font-weight: 700; color: var(--text-primary); }
.platform-row:hover .platform-row__name { color: var(--accent-start); }
.platform-row__domain { font-family: var(--font-mono, monospace); font-size: var(--text-sm); color: var(--text-tertiary); }
.platform-row__desc { color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.6; }

.method-strip { margin-top: var(--space-10); }
.method-strip__title { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-4); color: var(--text-primary); }
.method-strip__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-8);
  margin: 0;
}
.method-strip__list dt {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}
.method-strip__list dd { margin: 0; color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.6; }

.preview-head { max-width: 720px; margin-bottom: var(--space-4); }
.preview-head .badge { margin-bottom: var(--space-2); }
.preview-head__title { font-size: var(--text-xl); font-weight: 700; margin-bottom: var(--space-2); color: var(--text-primary); }
.preview-head__desc { color: var(--text-secondary); max-width: 680px; margin: 0 0 var(--space-4); line-height: 1.7; }
.preview-head--center { text-align: center; }
.preview-head--center .preview-head__desc { margin-left: auto; margin-right: auto; }

/* W3.2: left-aligned — the centered variant broke the page's left-aligned
   section axis (audit P2-2). Final-CTA stays centered as the closing moment. */
.accuracy-proof { padding: var(--space-6) 0; background: var(--bg-surface); border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); text-align: left; }
.accuracy-proof .badge { margin-bottom: var(--space-2); }
.accuracy-proof__title { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-3); color: var(--text-primary); }
.accuracy-proof__desc { max-width: 680px; margin: 0 0 var(--space-4); color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.7; }

@media (max-width: 640px) {
  /* Hallmark gate 59: long-text CTAs must wrap instead of forcing page overflow */
  .btn--lg { white-space: normal; }
}

@media (max-width: 768px) {
  .pain-row { grid-template-columns: 1fr; column-gap: 0; padding: var(--space-5) 0; }
  .pain-row__head { grid-row: auto; margin-bottom: var(--space-2); }
  .pain-row__desc, .pain-row__resp { grid-column: 1; }
  .platform-row { grid-template-columns: 1fr; row-gap: var(--space-1); padding: var(--space-4) 0; }
  .method-strip__list { grid-template-columns: 1fr; }
}

/* ── M3.3 — hero snapshot + product-demo inline-style lift ── */
.snapshot-panel { max-width: 380px; }
.snap-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.snap-clock-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-tertiary); }
.snap-clock { font-family: var(--font-mono); font-size: var(--text-lg); font-weight: 700; color: var(--accent-start); }
.snap-bestpick { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) 0; border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); }
.snap-bestpick__label { font-size: var(--text-xs); color: var(--text-tertiary); }
.snap-bestpick__name { font-size: var(--text-xl); font-weight: 700; color: var(--text-primary); }
.snap-edge-pill { background: linear-gradient(135deg, var(--accent-start), var(--accent-end)); color: #fff; padding: 2px 10px; border-radius: 999px; font-size: var(--text-sm); font-weight: 600; }
.snap-why { margin-top: var(--space-3); font-size: var(--text-sm); line-height: 1.7; }
.snap-confidence { margin-top: var(--space-3); display: flex; align-items: center; gap: var(--space-2); }
.snap-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--bg-subtle); overflow: hidden; }
.snap-bar__fill { height: 100%; background: linear-gradient(90deg, var(--accent-start), var(--accent-end)); border-radius: 3px; }
.snap-confidence__label { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); }
.snap-list-head { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent-start); font-weight: 600; }
.snap-list { list-style: none; padding: 0; margin: 0; font-size: var(--text-sm); border-top: 1px solid var(--border-default); }
.snap-list__item { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border-default); }
.snap-list__item--last { border-bottom: 0; }
.snap-list__val { font-family: var(--font-mono); font-weight: 600; }
.snap-note { margin-top: var(--space-3); font-size: var(--text-xs); color: var(--text-tertiary); line-height: 1.5; }
.c-accent { color: var(--accent-start); }
.c-accent-strong { color: var(--accent-start); font-weight: 600; }
.c-secondary { color: var(--text-secondary); }
.c-tertiary { color: var(--text-tertiary); }

/* W1.1 (VISUAL-CRO-CONTRACT): player-spotlight cards — 3-across on desktop,
   2-across on mobile (3-across at 390px produced ~110px columns with clipped
   names). minmax(0,1fr) stops long names from forcing the track wider. */
.spotlight-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .spotlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* W1.2 (VISUAL-CRO-CONTRACT): the phone mockup is a dark UI in BOTH themes
   (--surface-data is defined only in the dark :root block, so it leaks into
   light mode where --text-primary is near-black → invisible name/why text).
   Pin the panel's internal text to fixed light values so it never depends on
   the active theme, and give each row a subtle card surface. */
.snapshot-panel { color: oklch(0.92 0.01 250); }
.snapshot-panel .snap-top { border-top: 0; }
.snapshot-panel .snap-clock-label { color: oklch(0.72 0.01 250); }
.snapshot-panel .snap-bestpick__label { color: oklch(0.72 0.01 250); }
.snapshot-panel .snap-bestpick__name { color: oklch(0.97 0.003 250); }
.snapshot-panel .snap-why strong.c-accent { color: oklch(0.78 0.19 25); }
.snapshot-panel .snap-why strong.c-secondary { color: oklch(0.85 0.01 250); }
.snapshot-panel .snap-why strong.c-tertiary { color: oklch(0.78 0.01 250); }
.snapshot-panel .snap-bestpick,
.snapshot-panel .snap-why > div {
  background: oklch(1 0 0 / 0.05);
  border-radius: var(--radius-sm, 6px);
  padding: 4px 8px;
  margin-bottom: 2px;
}
.snapshot-panel .snap-confidence__label { color: oklch(0.92 0.01 250); }
.c-dim { opacity: 0.7; }

.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-8); }
.demo-panel { background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: var(--space-4); overflow-x: auto; }
.demo-panel__label { font-size: var(--text-sm); color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-3); }
.demo-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.demo-cell { background: var(--bg-elevated); border-radius: var(--radius-md); padding: var(--space-2); font-size: var(--text-sm); color: var(--text-primary); }
.demo-cell--hl { background: linear-gradient(135deg, var(--accent-start), var(--accent-end)); color: #fff; }
.demo-table { width: 100%; font-size: var(--text-sm); border-collapse: collapse; }
.demo-table__head { color: var(--text-tertiary); font-size: var(--text-xs); }
.demo-table__th { text-align: left; padding: 4px 8px; }
.demo-table__th--c { text-align: center; }
.demo-table__rowhead { font-weight: 600; padding: 4px 8px; }
.demo-table__td { padding: 4px 6px; text-align: center; }
.demo-table__td--good { color: var(--accent-start); }
.demo-table__td--dim { color: var(--text-tertiary); }
.demo-playercard { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--border-default); }
.demo-playercard__name { font-weight: 700; margin-bottom: var(--space-2); color: var(--text-primary); }
.demo-playercard__stats { display: flex; gap: var(--space-4); font-size: var(--text-sm); }
.demo-rec { margin-top: var(--space-6); background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: var(--space-5); max-width: 720px; margin-left: auto; margin-right: auto; }
.demo-rec__label { font-size: var(--text-sm); color: var(--accent-start); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-2); }
.demo-rec__pick { font-weight: 700; font-size: var(--text-lg); margin-bottom: var(--space-2); color: var(--text-primary); }
.demo-rec__why { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.7; }

@media (max-width: 768px) {
  .demo-grid { grid-template-columns: 1fr; }
}
