/* ============================================================
   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;
  }
}


/* ============================================================
   Shared homepage section patterns
   Import in any section component that uses the sticky badge rail.

   Provides: .hp-section shell, .hp-rail sticky rail,
   .hp-badge pill, .hp-heading, .hp-body
   ============================================================ */


/* ---- Section shell ----------------------------------------
   Background-color is intentionally omitted — each section
   sets its own via a single-rule override. */

.hp-section {
  position:       relative;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            4rem;      /* 64px */
  padding:        8rem 0;   /* 128px top + bottom */
  font-family:    var(--font-family-default);
  width:          100%;
  box-sizing:     border-box;

}

/* Tablet (≤991px) */
@media (max-width: 991px) {
  .hp-section {
    padding: 6rem 0;
    gap:     3rem;
  }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
  .hp-section {
    padding: 4rem 0;
    gap:     2rem;
  }
}

/* ---- Tight modifier -----------------------------------------
   Used by the AIR product page, where the default 128px rhythm reads
   as too loose. Same 0.75 / 0.5 tablet/mobile scaling as .hp-section
   above, just off a 96px desktop baseline instead of 128px. Add
   alongside .hp-section (e.g. className="hp-section hp-section--tight
   air-cta"); a section can still override further for anything that
   doesn't fit (see AirHowItWorksSection's mobile padding). */
.hp-section--tight {
  padding-block: 6rem;   /* 96px */
}

@media (max-width: 991px) {
  .hp-section--tight {
    padding-block: 4.5rem;   /* 72px */
  }
}

@media (max-width: 767px) {
  .hp-section--tight {
    padding-block: 3rem;   /* 48px */
  }
}


/* ---- Sticky badge rail ------------------------------------
   Absolutely positioned inside the first .container, pushed
   left via right: calc(100% - 80px).  The offset skips the
   container's left padding so the rail anchors to the content
   edge rather than the padding edge.  .container has
   position: relative so the rail is bounded to the container's
   height — badge stops when the container ends.
   Width = gutter between container (1024px) and container-wide
   (1384px): (1384 − 1024) / 2 = 180px.
   Shown only at ≥1480px — when container-wide is at max-width
   and the gutter is a fixed, predictable size. */

.hp-rail {
  display:        none;
  position:       absolute;
  right:          calc(100% - 80px);   /* 80px = container left padding */
  top:            0;
  bottom:         0;
  width:          calc((1384px - 1024px) / 2);   /* 180px */
  pointer-events: none;
}

.hp-rail__sticky {
  position:        sticky;
  top:             var(--nav-section-offset, 8rem);
  display:         flex;
  justify-content: flex-end;
  align-items:     flex-start;
  padding-right:   12px;   /* 12px gap from the container's left edge */
}

@media (min-width: 1480px) {
  .hp-rail {
    display:         flex;
    justify-content: flex-start;
    align-items:     flex-start;
  }

  .container[data-hp-rail-overflow] > .hp-rail {
    visibility: hidden;
  }
}


/* ---- Badge pill -------------------------------------------
   Base pill used in the sticky rail and as the inline badge.
   .hp-badge--inline controls visibility relative to breakpoint. */

.hp-badge {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             6px;
  height:          26px;
  padding:         0 var(--spacing-3);
  background:      var(--card);
  border-radius:   var(--radius-full);
  font-size:       var(--font-size-xs);
  font-weight:     var(--font-weight-medium);
  line-height:     var(--line-height-xs);
  color:           var(--foreground);
  white-space:     nowrap;
}

/* Inline variant — shown below 1480px, hidden at and above (matches the rail
   breakpoint so there's never a gap where neither badge shows).

   It carries NO margin: `.section-header` owns badge→heading spacing via its
   24px `gap`. The one exception is a header that deliberately wants margin-
   driven spacing (DemoSection, `gap: 0`), which adds its own
   `.x .hp-badge--inline { margin-bottom }`. */
@media (min-width: 1480px) {
  .hp-badge--inline {
    display: none;
  }

  .container[data-hp-rail-overflow] .hp-badge--inline {
    display: inline-flex;
  }
}

/* Live indicator dot (DemoSection "Live demo" badge) */
.hp-badge__dot {
  display:          block;
  width:            6px;
  height:           6px;
  border-radius:    var(--radius-full);
  background-color: var(--primary);
  flex-shrink:      0;
}

/* ---- Chip variant -----------------------------------------
   A badge with a leading highlight chip + label, e.g.
   "New · Quality Studio". Put .hp-badge--chip on the badge and
   .hp-badge__chip on the leading element. Works in both the
   sticky rail (via <SectionRail className="hp-badge--chip">) and
   the inline position. */

.hp-badge--chip {
  gap:     4px;
  padding: 4px 12px 4px 4px;   /* py-4, pr-12, tight pl-4 so the chip hugs the edge */
}

.hp-badge__chip {
  display:       inline-flex;
  align-items:   center;
  height:        100%;
  padding:       0 8px;
  border-radius: var(--radius-full);
  background:    var(--opacity-primary-20);
  color:         var(--primary);
}


/* ---- Section header --------------------------------------
   Sitewide convention for the badge + heading + body block at
   the top of a section. Use directly (do not clone into a
   per-section class). The inline badge is the first child; the
   heading+body live in `__text`. Spacing is owned here so it is
   identical across every section:
     badge → 24px → text → 36px (heading→body) → 24px → actions

   align-items: flex-start is what keeps the inline badge from
   stretching full-width on small screens. */

.section-header {
  display:        flex;
  flex-direction: column;
  align-items:    flex-start;
  gap:            var(--spacing-6);   /* 24px — owns badge→heading spacing */
}

.section-header__text {
  display:        flex;
  flex-direction: column;
  align-items:    flex-start;         /* don't stretch children — buttons keep their
                                         natural width (paragraphs still wrap at max-width) */
  gap:            var(--spacing-9);   /* 36px */
  max-width:      50rem;              /* 800px readable measure (heading + body) */
}

/* The body keeps the readable measure even when the block is widened (--wide),
   so a wide heading never drags the body to full width. This is the universal
   cap — sections should NOT add their own `.x .hp-body { max-width }`. */
.section-header__text .hp-body {
  max-width: 50rem;
}

/* Modifiers */
.section-header--center {
  align-items: center;
  text-align:  center;
}
/* Heading uses the full width; the body stays capped by the rule above. */
.section-header__text--wide {
  max-width: none;
}

.section-header__text--gap-36 {
  gap: var(--spacing-9);
}

@media (max-width: 767px) {
  .section-header       { gap: var(--spacing-4); }   /* 16px */
  .section-header__text { gap: var(--spacing-6); }   /* 24px */
  .section-header__text--gap-36 { gap: var(--spacing-9); }   /* 36px */
}


/* ---- Section intro row ------------------------------------
   Full-width text-left / action-right row. The copy slot expands to push
   actions to the far edge; text inside keeps the standard 50rem measure. */

.section-intro-row {
  display:     flex;
  align-items: center;
  gap:         2.25rem;   /* 36px */
  width:       100%;
}

.section-intro-row__copy {
  flex:      1;
  min-width: 0;
}

.section-intro-row__copy > .hp-body {
  max-width: 50rem;
}

.section-intro-row__actions {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .section-intro-row {
    flex-direction: column;
    align-items:    flex-start;
    gap:            2.25rem;   /* 36px */
  }
}


/* ---- Section heading --------------------------------------
   36px regular weight; .fw-bold inside uses bold. */

.hp-heading {
  margin:      0;
  font-size:   2.25rem;
  font-weight: var(--font-weight-regular);
  line-height: 2.5rem;
  color:       var(--foreground);
}



/* ---- Section subheading -----------------------------------
   24px — used beneath headings as a secondary label. */

.hp-subheading {
  margin:      0;
  font-size:   1.5rem;
  line-height: 2rem;
  color:       var(--foreground);
}


/* ---- Section body text ------------------------------------
   20px regular — used in header intro blocks. */

.hp-body {
  margin:      0;
  font-size:   1.25rem;
  line-height: 1.75rem;
  color:       var(--foreground);
}

@media (max-width: 767px) {
  .hp-heading {
    font-size:   1.875rem;  /* 30px */
    line-height: 2.25rem;   /* 36px */
  }

  .hp-subheading {
    font-size:   1.25rem;   /* 20px */
    line-height: 1.75rem;   /* 28px */
  }

  .hp-body {
    font-size:   1.125rem;  /* 18px */
    line-height: 1.75rem;   /* 28px */
  }
}


/* ---- Shared card shell ------------------------------------
   Secondary background + hairline border + 12px radius.
   Use alongside component class for layout-specific rules. */

.card-secondary {
  background:    var(--secondary);
  border:        0.5px solid var(--border);
  border-radius: 12px;
  box-sizing:    border-box;
}


/* ---- 26px number pill -------------------------------------
   Circular badge used for step numbers.
   Color (background) set per-component. */

.num-pill {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           26px;
  height:          26px;
  flex-shrink:     0;
  border-radius:   var(--radius-full);
  font-size:       var(--font-size-xs);
  font-weight:     var(--font-weight-medium);
  line-height:     1;
  color:           var(--foreground);
}


/* ---- Card typography --------------------------------------
   Base/bold title and base/regular muted body.
   Color overrides applied per-component as needed. */

.card-title {
  margin:      0;
  font-size:   var(--font-size-base);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-base);
}

.card-body {
  margin:      0;
  font-size:   var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-base);
  color:       var(--muted-foreground);
}


/* ---- Page H1 — shared display heading --------------------- */

.page-h1 {
  margin:      0;
  font-size:   3rem;    /* 48px */
  line-height: 1.15;
  font-weight: var(--font-weight-light);
  color:       var(--foreground);
}

.page-h1__line {
  display: block;
}

@media (max-width: 767px) {
  .page-h1 { font-size: 2.25rem; }
}

@media (max-width: 479px) {
  .page-h1 { font-size: 2rem; }

  /* Opt-out of the portrait-mobile shrink: holds the ≤767 size (36px) below
     480px. Add alongside `.page-h1` when a mobile Figma frame keeps the larger
     headline (e.g. AirHeroSection). Replicate the pattern for other heading
     classes if/when the same need arises. */
  .page-h1--no-portrait-shrink { font-size: 2.25rem; }
}


/* ---- Button pair — wrap row + content-driven equal width ---
   A two-(or-more)-button CTA row that never clips or overflows: flex-wrap
   means it stacks instead of clipping when space runs out. Pair with the
   `buttonPairStyle()` helper (src/utils/buttonPair.ts), which sets
   --btn-pair-min-w from the longest label's own character count (a `ch`
   value — scales with the font) — NOT a guessed pixel breakpoint. min-width
   only ever WIDENS a button toward the longest one; it can never shrink a
   button below its own text, so there's no clipping risk either way.

   Applies the equal-ish-width treatment at every size by default. To scope
   it to one breakpoint only (e.g. mobile-only, like AirCtaSection), add a
   local override in the consuming component's CSS:
     .my-actions .btn { min-width: 0; }                          // reset
     @media (max-width: 767px) {
       .my-actions .btn { min-width: var(--btn-pair-min-w, 0); } // re-enable
     }
   Full writeup: docs/shared-css-classes.md → "Button pair". */

.btn-pair {
  display:   flex;
  flex-wrap: wrap;
  gap:       0.75rem;   /* 12px */
}

.btn-pair .btn {
  min-width: var(--btn-pair-min-w, 0);
}

/* ============================================================
   AirPricingFeatureSection — AIR pricing-page feature matrix.
   One CSS grid, 4 columns (label, Free, Pro, Enterprise); Pro/Enterprise's
   3 price tiers are an internal flex split (.cell--tiers/.tier), not
   extra grid columns.
   ============================================================ */

.air-pricing-feature {
  background: var(--background);
}

.air-pricing-feature__scroll {
  width:         100%;
  overflow-x:    auto;
  overflow-y:    visible;
  padding-block: var(--spacing-2);
  -webkit-overflow-scrolling: touch;
}

.air-pricing-feature__table {
  --feature-gap:   64px;
  --feature-inset: var(--spacing-4);
  --feature-row-h: 2.75rem;

  position:              relative;
  display:               grid;
  grid-template-columns: minmax(8rem, 2.6fr) minmax(8rem, 1fr) minmax(270px, 2.6fr) minmax(270px, 2.6fr);
  column-gap:            var(--feature-gap);
  align-items:           stretch;
  box-sizing:             border-box;
  padding:               2rem;
  background:            var(--accent);
  border:                0.5px solid var(--border);
  border-radius:         var(--radius-lg);
}

@media (max-width: 1279px) {
  .air-pricing-feature__table {
    --feature-gap: 32px;
  }
}

.air-pricing-feature__pro-card {
  z-index:       0;
  margin:        -1.25rem calc(var(--feature-gap) / -2);
  background:    var(--card);
  border:        0.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow:    0 8px 24px rgba(40, 40, 37, 0.06);
}

.air-pricing-feature__divider {
  z-index:        1;
  border-bottom:  0.5px solid var(--divider);
  pointer-events: none;
}

/* Shared column axis for every cell — .cell--label-inner and .cell--tiers
   are the only two that override back to row. */
.air-pricing-feature__cell {
  position:       relative;
  z-index:        1;
  display:        flex;
  flex-direction: column;
  align-items:    start;
  min-height:     var(--feature-row-h);
  padding-block:  var(--spacing-2);
  padding-inline: 8px;
  box-sizing:     border-box;
  font-size:      var(--font-size-base);
  color:          var(--foreground);
}

/* Left-edge column — no left inset. */
.air-pricing-feature__cell--label {
  justify-content: center;
  padding-left:    0;
}

.air-pricing-feature__cell--label-inner {
  display:     flex;
  align-items: center;
  gap:         var(--spacing-2);
}

.air-pricing-feature__row-icon {
  flex-shrink: 0;
  color:       var(--foreground);
}

.air-pricing-feature__cell--value,
.air-pricing-feature__cell--span,
.air-pricing-feature__tier {
  align-items:     center;
  gap:             var(--spacing-1);
  justify-content: center;
  text-align:      center;
}

.air-pricing-feature__cell--tiers {
  flex-direction: row;
  padding-block:  10px;
  padding-inline: 0;   /* each .air-pricing-feature__tier carries its own 8px side padding */
}

.air-pricing-feature__tier {
  display:        flex;
  flex-direction: column;
  flex:           1 0 0;
  padding-inline: 8px;
}

.air-pricing-feature__discount {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  padding-inline:  var(--spacing-1-5);
  height:          var(--spacing-5);
  border-radius:   var(--radius-full);
  background:      var(--opacity-info-40);
  color:           var(--color-brand-blue-700);
  font-size:       var(--font-size-xs);
  font-weight:     var(--font-weight-medium);
  line-height:     1;
}

.air-pricing-feature__plan-name {
  align-items:     center;
  justify-content: flex-end;
  padding-top:     1rem;
  padding-bottom:  10px;
  font-size:       var(--font-size-2xl);
  font-weight:     var(--font-weight-bold);
}

.air-pricing-feature__price-tier {
  align-items:     center;
  justify-content: flex-start;
  padding-bottom:  var(--feature-inset);
  font-size:       var(--font-size-base);
  color:           var(--muted-foreground);
}

.air-pricing-feature__group-label {
  z-index:        1;
  padding-top:    var(--spacing-8);
  padding-inline: 8px;
  padding-left:   0;   /* spans from the true left edge, like .cell--label */
  font-size:      var(--font-size-base);
  color:          var(--foreground);
}

.air-pricing-feature__group-label-text {
  display:       block;
  padding-block: var(--spacing-4);
}

.air-pricing-feature__mobile {
  display:  none;
  position: relative;
  /* No overflow:hidden — breaks position:sticky on the header below. */
  box-sizing:     border-box;
  padding-bottom: var(--spacing-8);
  background:     var(--accent);
  border:         0.5px solid var(--border);
  border-radius:  var(--radius-lg);
}

.air-pricing-feature__mobile-backdrop {
  position: fixed;
  inset:    0;
  z-index:  1;   /* below .mobile-sticky (2) so the header/picker stay clickable */
}

.air-pricing-feature__mobile-sticky {
  position:      sticky;
  /* Sticks flush below the navbar (+ its occasional banner) —
     --nav-section-height is tracked live by useNavSectionHeight(), owned
     by Navbar. See src/hooks/useNavSectionHeight.ts. */
  top:           var(--nav-section-height, 72px);
  z-index:       2;
  margin-inline: var(--spacing-3);
  margin-top:     var(--spacing-3);
  background:    var(--card);
  border-radius: 12px;
  box-shadow:    0 6px 18px rgba(40, 40, 37, 0.1), 0 0 6px rgba(40, 40, 37, 0.06);
}

.air-pricing-feature__mobile-header {
  display: flex;
  gap:     var(--spacing-1-5);
  padding: var(--spacing-1-5);
}

.air-pricing-feature__mobile-plan {
  display:         flex;
  flex:            1 0 0;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  gap:             var(--spacing-2);
  padding:         10px var(--spacing-1);
}

.air-pricing-feature__mobile-plan-name {
  font-size:   var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color:       var(--foreground);
}

.air-pricing-feature__mobile-plan-price {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           100%;
  height:          36px;
  padding:         var(--spacing-2) var(--spacing-3);
  border-radius:   var(--radius-full);
  font-size:       var(--font-size-sm);
  color:           var(--foreground);
}

.air-pricing-feature__mobile-plan-price--toggle {
  gap:           var(--spacing-1-5);
  background:    var(--background);
  border:        none;
  font-family:   inherit;
  cursor:        pointer;
}

.air-pricing-feature__mobile-chevron {
  transition: transform 0.1125s ease;
}

.air-pricing-feature__mobile-chevron--open {
  transform: rotate(180deg);
}

/* Hard clip mask — guarantees the panel can never render over
   .mobile-header, independent of z-index/stacking order. `top: 100%`
   (not `100% + gap`) puts the clip edge flush against the header's own
   bottom edge — the gap is reintroduced as padding-top instead, so it's
   inside the clipped region rather than a dead zone above it where the
   panel would visibly pop into view instead of sliding out from under
   the header. left/right extend 24px past the picker's true edges and
   padding pulls them back in, so there's clip room for the panel's
   box-shadow on the sides/bottom without affecting its width. */
.air-pricing-feature__mobile-picker {
  position:       absolute;
  top:            100%;
  left:           -24px;
  right:          -24px;
  padding:        var(--spacing-3) 24px 24px;
  overflow:       hidden;
  box-sizing:     border-box;
  pointer-events: none;
}

.air-pricing-feature__mobile-picker.is-open {
  pointer-events: auto;
}

.air-pricing-feature__mobile-picker-panel {
  padding:          var(--spacing-3);
  background:       var(--card);
  border-radius:    12px;
  box-shadow:       0 6px 18px rgba(40, 40, 37, 0.1), 0 0 6px rgba(40, 40, 37, 0.06);
  transform-origin: top center;
  transform:        translateY(-100%);
  opacity:          0;
  transition:       transform 0.165s ease, opacity 0.165s ease;
}

/* Slides out from under the sticky header instead of just appearing. */
.air-pricing-feature__mobile-picker.is-open .air-pricing-feature__mobile-picker-panel {
  transform: translateY(0);
  opacity:   1;
}

@media (prefers-reduced-motion: reduce) {
  .air-pricing-feature__mobile-picker-panel {
    transition: opacity 0.165s ease;
    transform:  none;
  }
}

.air-pricing-feature__mobile-picker-track {
  display:       flex;
  height:        38px;
  padding:       var(--spacing-px);
  background:    var(--primary-foreground);
  border-radius: var(--radius-full);
}

.air-pricing-feature__mobile-picker-option {
  display:         flex;
  flex:            1 0 0;
  align-items:     center;
  justify-content: center;
  gap:             var(--spacing-1);
  padding:         var(--spacing-2) var(--spacing-3);
  color:           var(--foreground);
  background:      transparent;
  border:          1px solid transparent;   /* size-stable when selected border appears */
  border-radius:   var(--radius-full);
  font-family:     inherit;
  font-size:       var(--font-size-sm);
  font-weight:     var(--font-weight-medium);
  cursor:          pointer;
}

.air-pricing-feature__mobile-picker-option--selected {
  background:   var(--card);
  border-color: var(--input);
  box-shadow:   0 1px 3px rgba(26, 26, 24, 0.05), 0 1px 2px -1px rgba(26, 26, 24, 0.05);
}

.air-pricing-feature__group-label--mobile {
  padding-inline: var(--spacing-3);
  text-align:     center;
}

.air-pricing-feature__mobile-row {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  padding:        var(--spacing-1-5) var(--spacing-3);
  border-bottom:  0.5px solid var(--divider);
}

.air-pricing-feature__mobile-group:last-child .air-pricing-feature__mobile-row:last-child {
  border-bottom: none;
}

.air-pricing-feature__mobile-row-label {
  display:        flex;
  align-items:    center;
  justify-content: center;
  gap:            var(--spacing-2);
  width:          100%;
  padding-block:  10px;
  color:          var(--muted-foreground);
  font-size:      var(--font-size-sm);
}

.air-pricing-feature__mobile-row-label .air-pricing-feature__row-icon {
  color: var(--muted-foreground);
}

.air-pricing-feature__mobile-row-values {
  display: flex;
  width:   100%;
}

.air-pricing-feature__mobile-row-value {
  display:        flex;
  flex:           1 0 0;
  flex-direction: column;
  align-items:    center;
  justify-content: center;
  gap:            var(--spacing-1);
  padding-block:  10px;
  font-size:      var(--font-size-sm);
  color:          var(--foreground);
}

@media (max-width: 1140px) {
  .air-pricing-feature__scroll {
    display: none;
  }
  .air-pricing-feature__mobile {
    display: block;
  }
}

/* Portrait mobile (≤479px) — Webflow's "Mobile portrait" breakpoint.
   .container-wide's 16px side padding reads as too much here — pull the
   table 4px past it on each side for an effective 12px page-edge inset,
   without touching the shared container class. */
@media (max-width: 479px) {
  .air-pricing-feature__mobile {
    margin-inline: -4px;
  }

  .air-pricing-feature__mobile-plan-price--toggle {
    padding-inline: 8px;
  }
}

