/* ============================================================
   Container — shared responsive layout constraint
   Provides 1024px max content width with responsive side padding.
   Import this in any component that uses the .container class.
   ============================================================ */

.container {
  position:   relative;
  width:      100%;
  max-width:  calc(1024px + 160px); /* 1024px content + 80px × 2 */
  padding:    0 80px;
  margin:     0 auto;
  box-sizing: border-box;
}

/* Tablet (≤991px): 60px sides */
@media (max-width: 991px) {
  .container {
    padding: 0 60px;
  }
}

/* Landscape mobile (≤767px): 2rem sides */
@media (max-width: 767px) {
  .container {
    padding: 0 2rem;
  }
}



/* ============================================================
   Wide container — 1360px content + 48px side padding
   Used for full-bleed section content blocks (slider, big cards)
   that need to be wider than the standard 1024px text container.
   ============================================================ */

.container-wide {
  width:      100%;
  max-width:  calc(1384px + 96px);   /* 1384px content + 48px × 2 */
  padding:    0 3rem;                /* 48px sides */
  margin:     0 auto;
  box-sizing: border-box;
}

/* Tablet (≤991px): 16px less than .container (60px → 44px) */
@media (max-width: 991px) {
  .container-wide {
    padding: 0 44px;
  }
}

/* Landscape mobile (≤767px): 16px less than .container (2rem → 1rem) */
@media (max-width: 767px) {
  .container-wide {
    padding: 0 1rem;
  }
}


/* ============================================================
   ComparisonJumpNavSection — Figma 0xMYb2Vz3jrcEQJ8PH9jib, node 7897:4752.
   Spec: ComparisonJumpNavSection.figma.md.
   ============================================================ */

/* Only as tall as the bar, which sits right under the hero; the gap below is
   `__gap`. Not sticky for now (owner, 2026-11-25): whether it pins, and how
   it looks pinned and on smaller screens, is a question for Frank. It was
   sticky 2026-11-23 → 25: `position: sticky; top: calc(var(--nav-section-height,
   74px) + var(--spacing-1-5)); z-index: 20` (96px fallback ≤991, static ≤767);
   the [data-stuck] / [data-past] rules below are still in place for that. */
.comparison-jump-nav {
  background:  var(--background-white);
  font-family: var(--font-family-default);
}

/* Figma's pb-128, stepping down with `.hp-section--stepped`'s rhythm. */
.comparison-jump-nav__gap {
  height:     8rem;
  background: var(--background-white);
}

/* ---- Pinned ----------------------------------------------- */

/* Just the bar floats: no white band behind it, and the page stays clickable
   on both sides. The "Scroll to" label would sit on the rail badges. */
.comparison-jump-nav[data-stuck] {
  background:     transparent;
  pointer-events: none;
}

.comparison-jump-nav[data-stuck] .comparison-jump-nav__label {
  visibility: hidden;
}

/* A white outer pill (TB-1's answer on beige), so the cream bar reads over
   the cream tables too. */
.comparison-jump-nav[data-stuck] .comparison-jump-nav__bar {
  box-shadow:     0 0 0 6px var(--background-white);
  pointer-events: auto;
  transition:     opacity 0.2s, visibility 0.2s;
}

/* Every linked section has passed: leave the rest of the page clear. */
.comparison-jump-nav[data-past] .comparison-jump-nav__bar {
  opacity:    0;
  visibility: hidden;
}


/* ---- Row -------------------------------------------------- */

/* Two tracks on the wide container: the rail gutter, then the bar. The
   gutter is `.container`'s content edge measured from `.container-wide`'s:
   (1384 - 1024) / 2 = 180 at full width, but never under 80, the label's
   width (so below 1280 the bar starts a little inside the copy's edge). */
.comparison-jump-nav__row {
  display:               grid;
  grid-template-columns: max(5rem, (100% - 1024px) / 2) minmax(0, 1fr);
  align-items:           center;
}

/* Figma's "Soft Badge" — white fill on white, stone-400 text: the badge
   shape with no visible pill. Shown at every desktop width (owner,
   2026-11-25), not only beside the rail (≥1480). */
.comparison-jump-nav__label {
  display:     none;
  justify-self: start;
  padding:     var(--spacing-1) var(--spacing-3);
  font-size:   var(--font-size-xs);
  line-height: var(--line-height-xs);
  font-weight: var(--font-weight-medium);
  color:       var(--muted-foreground-card);     /* #A8A8A0 */
  white-space: nowrap;
}

@media (min-width: 992px) {
  .comparison-jump-nav__label {
    display: inline-flex;
  }
}

/* 7897:4756 — cream bar, 16 / 20 padding, 48 radius, items spread edge to
   edge, 64 tall. Scrolls sideways (no scrollbar) once they no longer fit. */
.comparison-jump-nav__bar {
  grid-column:     2;
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  gap:             var(--spacing-4);
  margin:          0;
  padding:         var(--spacing-4) var(--spacing-5);
  list-style:      none;
  background:      var(--secondary);
  border-radius:   3rem;                         /* 48px — no token */
  overflow-x:      auto;
  scrollbar-width: none;
}

.comparison-jump-nav__bar::-webkit-scrollbar {
  display: none;
}

/* The phone list's dividers skip a link whose section isn't on the page. */
.comparison-jump-nav__bar > li[hidden] {
  display: none;
}

/* "Item area": a 32px pill. Figma's 20 / 12 sides leave room for a hidden
   chevron; 16 / 16 is the same width with the label centered in its pill. */
.comparison-jump-nav__link {
  display:         flex;
  align-items:     center;
  height:          32px;
  padding:         0 var(--spacing-4) 1px;
  border-radius:   var(--radius-full);
  font-size:       var(--font-size-sm);
  line-height:     var(--line-height-sm);
  color:           var(--foreground);
  text-decoration: none;
  white-space:     nowrap;
  transition:      background 0.2s;
}

/* Hover `--background`, current `--card` (Figma's second and first items). */
.comparison-jump-nav__link:hover {
  background: var(--background);
}

.comparison-jump-nav__link[aria-current],
.comparison-jump-nav__link[aria-current]:hover {
  background: var(--card);
}

.comparison-jump-nav__link:focus-visible {
  outline:        2px solid var(--ring);
  outline-offset: 2px;
}

/* Phones only (the list below). */
.comparison-jump-nav__arrow {
  display:         none;
  flex-shrink:     0;
  stroke:          currentColor;
  stroke-width:    2;
  stroke-linecap:  round;
  stroke-linejoin: round;
  color:           var(--muted-foreground);
}

@media (max-width: 1199px) {
  .comparison-jump-nav__gap { height: 6rem; }                                /* 96 */
  .comparison-jump-nav__bar { gap: var(--spacing-1); }                       /* six links fit from 992 */
}
@media (max-width: 991px) {
  .comparison-jump-nav__gap { height: 5rem; }                                /* 80 */
  /* `.container` and `.container-wide` sit 16 apart below desktop. */
  .comparison-jump-nav__row { grid-template-columns: 1rem minmax(0, 1fr); }
  .comparison-jump-nav__link { padding-inline: var(--spacing-3); }
}
/* Phones: no sideways scroller. The bar becomes a cream card listing every
   link at once — the "Scroll to" label as its caption, then one 48px row
   per link with a down arrow, 0.5px dividers like the comparison table's.
   It sits on the regular `.container` edge (16 in from the wide one), in
   line with the heading copy above and below it. */
@media (max-width: 767px) {
  .comparison-jump-nav__gap { height: 4rem; }                                /* 64 */

  .comparison-jump-nav__row {
    display: block;
    padding: 0 var(--spacing-4);
  }

  .comparison-jump-nav__bar {
    display:       block;
    padding:       var(--spacing-2) var(--spacing-5);   /* 8 / 20 */
    border-radius: var(--radius-lg);                    /* 24 */
    overflow:      visible;
  }

  .comparison-jump-nav__label {
    display: block;
    padding: 0 0 var(--spacing-2) var(--spacing-5);     /* in line with the links */
  }

  .comparison-jump-nav__bar > li:not([hidden]) ~ li:not([hidden]) {
    border-top: 0.5px solid var(--divider);
  }

  .comparison-jump-nav__link {
    justify-content: space-between;
    gap:             var(--spacing-4);
    height:          auto;
    min-height:      48px;
    padding:         var(--spacing-3) 0;               /* 12 */
    border-radius:   0;
    font-size:       var(--font-size-base);            /* 16/24 */
    line-height:     var(--line-height-base);
    font-weight:     var(--font-weight-medium);
    white-space:     normal;
  }

  /* A list of jumps, not a switch: no pills. */
  .comparison-jump-nav__link:hover,
  .comparison-jump-nav__link[aria-current],
  .comparison-jump-nav__link[aria-current]:hover {
    background: transparent;
  }

  .comparison-jump-nav__arrow {
    display: block;
  }
}

