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


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

/* ============================================================
   Badge — pill label with color variants, sizes, and states
   Design tokens from src/styles/tokens.css.
   ============================================================ */

/* ---- Base ---- */

.badge {
  align-items:     center;
  justify-content: center;
  border-radius:   var(--radius-full);
  display:         inline-flex;
  flex-shrink:     0;
  font-family:     var(--font-family-default);
  font-size:       var(--font-size-xs);
  font-weight:     var(--font-weight-medium);
  gap:             var(--spacing-1-5);
  line-height:     var(--line-height-xs);
  text-decoration: none;    /* reset <a> */
  transition:      opacity 0.15s;
  white-space:     nowrap;
}

/* Interactive reset for button root */
button.badge {
  appearance: none;
  border:     none;
  cursor:     pointer;
}

/* Inactive toggle state */
.badge--inactive {
  opacity: 0.45;
}

/* Hover — only on interactive roots (button / link) */
a.badge:hover,
button.badge:hover {
  opacity: 0.8;
}

/* Focus */
a.badge:focus-visible,
button.badge:focus-visible {
  outline:        1.5px solid var(--info);
  outline-offset: 2px;
}


/* ============================================================
   Shapes
   ============================================================ */

.badge--round   { border-radius: var(--radius-full); }
.badge--rounded { border-radius: var(--radius-sm);   }


/* ============================================================
   Sizes
   ============================================================ */

.badge--sm {
  gap:       2px;
  height:    1.25rem;           /* 20px */
  min-width: 1.25rem;           /* keeps single-char badges circular */
  padding:   0 var(--spacing-1-5);
}

.badge--md {
  gap:       var(--spacing-1);
  height:    1.25rem;           /* 20px */
  min-width: 1.25rem;
  padding:   0 var(--spacing-2);
}

.badge--lg {
  gap:       var(--spacing-1-5);
  height:    1.625rem;          /* 26px */
  min-width: 1.625rem;
  padding:   0 var(--spacing-3);
}

.badge--xl {
  gap:         var(--spacing-1-5);
  height:      2rem;        /* 32px */
  min-width:   2rem;
  padding:     0 0.875rem;  /* 14px */
  font-size:   var(--font-size-sm);
  line-height: var(--line-height-sm);
}

/* ============================================================
   Variants
   ============================================================ */

.badge--primary {
  background-color: var(--opacity-primary-10);
  color:            var(--primary);
}

.badge--secondary {
  background-color: var(--background);
  color:            var(--foreground);
}

.badge--card {
  background-color: var(--card);
  color:            var(--foreground);
}

.badge--info {
  background-color: var(--opacity-info-10);
  color:            var(--info);
}

.badge--success {
  background-color: var(--opacity-success-10);
  color:            var(--success);
}

.badge--warning {
  background-color: var(--opacity-warning-10);
  color:            var(--warning);
}

.badge--destructive {
  background-color: var(--opacity-destructive-10);
  color:            var(--destructive);
}


/* ============================================================
   Inner elements
   ============================================================ */

/* Label — plain text wrapper */
.badge__label {
  display: contents;
}

/* Left icon */
.badge__icon {
  align-items:     center;
  display:         inline-flex;
  flex-shrink:     0;
  justify-content: center;
}

.badge__icon svg {
  display: block;
  height:  0.75rem;   /* 12px */
  width:   0.75rem;
}

/* Left avatar */
.badge__avatar {
  border-radius: var(--radius-full);
  display:       block;
  flex-shrink:   0;
  height:        0.75rem;   /* 12px */
  object-fit:    cover;
  width:         0.75rem;
}

/* Close button */
.badge__close {
  align-items:     center;
  appearance:      none;
  background:      transparent;
  border:          none;
  color:           inherit;
  cursor:          pointer;
  display:         inline-flex;
  flex-shrink:     0;
  justify-content: center;
  line-height:     1;
  opacity:         0.6;
  padding:         0;
  transition:      opacity 0.15s;
}

.badge__close:hover {
  opacity: 1;
}

.badge__close svg {
  display: block;
  height:  0.75rem;   /* 12px */
  width:   0.75rem;
}

/* ============================================================
   Button — Component Styles
   Scheme-aware: inherits data-scheme from a parent element.
   All color tokens flip automatically in dark context.
   ============================================================ */

.btn {
  /* Layout */
  align-items:      center;
  border:           1px solid transparent;
  box-sizing:       border-box;
  cursor:           pointer;
  display:          inline-flex;
  flex-shrink:      0;
  justify-content:  center;
  overflow:         hidden;
  text-decoration:  none;
  user-select:      none;
  white-space:      nowrap;
  background-clip:  padding-box;

  /* Typography */
  font-family: var(--font-family-default);
  font-weight: var(--font-weight-medium);

  /* Transition */
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, opacity 120ms ease;
}


/* ============================================================
   Sizes
   Heights: xs=26px  sm=32px  md=36px  lg=40px
   All use font-size-sm (14px) except xs which uses font-size-xs (12px).
   ============================================================ */

.btn[data-size="xs"] {
  font-size:   var(--font-size-xs);      /* 12px */
  line-height: var(--line-height-xs);    /* 16px */
  gap:         0.25rem;                  /* 4px  */
  padding:     0.3125rem 0.75rem;        /* 5px 12px → height 26px */
  --btn-gap:   0.25rem;
}

.btn[data-size="sm"] {
  font-size:   var(--font-size-sm);      /* 14px */
  line-height: var(--line-height-sm);    /* 20px */
  gap:         0.375rem;                 /* 6px  */
  padding:     0.375rem 1rem;            /* 6px 16px → height 32px */
  --btn-gap:   0.375rem;
}

.btn[data-size="md"] {
  font-size:   var(--font-size-sm);      /* 14px */
  line-height: var(--line-height-sm);    /* 20px */
  gap:         0.375rem;                 /* 6px  */
  padding:     0.5rem 1rem;              /* 8px 16px → height 36px */
  --btn-gap:   0.375rem;
}

.btn[data-size="lg"] {
  font-size:   var(--font-size-sm);      /* 14px */
  line-height: var(--line-height-sm);    /* 20px */
  gap:         0.5rem;                   /* 8px  */
  padding:     0.625rem 1.5rem;          /* 10px 24px → height 40px */
  --btn-gap:   0.5rem;
}

.btn[data-icon-only="true"] {
  padding: 0;
}

.btn[data-size="xs"][data-icon-only="true"] {
  width:  1.625rem; /* 26px */
  height: 1.625rem;
}

.btn[data-size="sm"][data-icon-only="true"] {
  width:  2rem; /* 32px */
  height: 2rem;
}

.btn[data-size="md"][data-icon-only="true"] {
  width:  2.25rem; /* 36px */
  height: 2.25rem;
}

.btn[data-size="lg"][data-icon-only="true"] {
  width:  2.5rem; /* 40px */
  height: 2.5rem;
}


/* ============================================================
   Shapes
   ============================================================ */

.btn[data-shape="rounded"] { border-radius: var(--radius-sm);   } /* 8px  */
.btn[data-shape="round"]   { border-radius: var(--radius-full); } /* pill */


/* ============================================================
   Variants
   ============================================================ */

.btn[data-variant="primary"][data-tone="default"] {
  background-color: var(--primary);
  border-color:     var(--primary);
  color:            var(--primary-foreground);
}

.btn[data-variant="secondary"][data-tone="default"] {
  background-color: transparent;
  border-color:     var(--primary);
  color:            var(--primary);
}

.btn[data-variant="primary"][data-tone="accent"] {
  background-color: var(--accent);
  border-color:     var(--accent);
  color:            var(--foreground);
}

.btn[data-variant="secondary"][data-tone="accent"] {
  background-color: transparent;
  border-color:     var(--accent);
  color:            var(--accent);
}


.btn[data-variant="info"] {
  background-color: var(--info);
  border-color:     var(--info);
  color:            var(--info-foreground);
}

.btn[data-variant="success"] {
  background-color: var(--success);
  border-color:     var(--success);
  color:            var(--success-foreground);
}

.btn[data-variant="warning"] {
  background-color: var(--warning);
  border-color:     var(--warning);
  color:            var(--warning-foreground);
}

.btn[data-variant="destructive"] {
  background-color: var(--destructive);
  border-color:     var(--destructive);
  color:            var(--destructive-foreground);
}


/* ============================================================
   States
   ============================================================ */

/* Primary hover — 20% dark overlay on background, full opacity */
.btn[data-variant="primary"][data-tone="default"]:hover:not(:disabled):not([aria-disabled="true"]) {
  background-color: color-mix(in srgb, var(--primary) 80%, #282825 20%);
  border-color:     color-mix(in srgb, var(--primary) 80%, #282825 20%);
  opacity:          1;
}

.btn[data-variant="primary"][data-tone="accent"]:hover:not(:disabled):not([aria-disabled="true"]) {
  background-color: color-mix(in srgb, var(--accent) 80%, transparent);
  border-color:     color-mix(in srgb, var(--accent) 80%, transparent);
  opacity:          1;
}

/* Secondary hover — darker primary border + text, no fill */
.btn[data-variant="secondary"][data-tone="default"]:hover:not(:disabled):not([aria-disabled="true"]) {
  border-color: color-mix(in srgb, var(--primary) 80%, #282825 20%);
  color:        color-mix(in srgb, var(--primary) 80%, #282825 20%);
  opacity:      1;
}

.btn[data-variant="secondary"][data-tone="accent"]:hover:not(:disabled):not([aria-disabled="true"]) {
  border-color: color-mix(in srgb, var(--accent) 80%, transparent);
  color:        color-mix(in srgb, var(--accent) 80%, transparent);
  opacity:      1;
}

.btn[data-variant="info"]:hover:not(:disabled):not([aria-disabled="true"]) {
  background-color: color-mix(in srgb, var(--info) 80%, #282825 20%);
  border-color:     color-mix(in srgb, var(--info) 80%, #282825 20%);
  color:            var(--info-foreground);
  opacity:          1;
}

.btn[data-variant="success"]:hover:not(:disabled):not([aria-disabled="true"]) {
  background-color: color-mix(in srgb, var(--success) 80%, #282825 20%);
  border-color:     color-mix(in srgb, var(--success) 80%, #282825 20%);
  color:            var(--success-foreground);
  opacity:          1;
}

.btn[data-variant="warning"]:hover:not(:disabled):not([aria-disabled="true"]) {
  background-color: color-mix(in srgb, var(--warning) 80%, #282825 20%);
  border-color:     color-mix(in srgb, var(--warning) 80%, #282825 20%);
  color:            var(--warning-foreground);
  opacity:          1;
}

.btn[data-variant="destructive"]:hover:not(:disabled):not([aria-disabled="true"]) {
  background-color: color-mix(in srgb, var(--destructive) 80%, #282825 20%);
  border-color:     color-mix(in srgb, var(--destructive) 80%, #282825 20%);
  color:            var(--destructive-foreground);
  opacity:          1;
}

/* Active / pressed */
.btn:active:not(:disabled):not([aria-disabled="true"]) {
  opacity: 0.76;
}

/* Focus */
.btn:focus-visible {
  outline:        2px solid var(--ring);
  outline-offset: 2px;
}

/* Disabled */
.btn:disabled,
.btn[aria-disabled="true"] {
  cursor:         not-allowed;
  opacity:        0.4;
  pointer-events: none;
}


/* ============================================================
   Icon slot
   ============================================================ */

.btn__icon {
  align-items:     center;
  display:         inline-flex;
  flex-shrink:     0;
  justify-content: center;
}

.btn[data-size="xs"] .btn__icon:not(.btn__icon--hover-only) { height: 0.75rem; width: 0.75rem; } /* 12px */
.btn[data-size="sm"] .btn__icon:not(.btn__icon--hover-only),
.btn[data-size="md"] .btn__icon:not(.btn__icon--hover-only),
.btn[data-size="lg"] .btn__icon:not(.btn__icon--hover-only) { height: 1rem;    width: 1rem;    } /* 16px */

.btn__icon svg {
  display: block;
  height:  100%;
  width:   100%;
}


/* ============================================================
   Hover-only icon — hidden by default, slides/fades in on :hover.
   Negative margin-right cancels the flex gap when collapsed so
   the label stays flush with the padding edge.
   ============================================================ */

/* Must come after the .btn[data-size] .btn__icon rules to win specificity tie */
.btn .btn__icon--hover-only {
  min-width:    0;        /* override flex min-width: auto so item can truly collapse */
  width:        0;
  overflow:     hidden;
  opacity:      0;
  margin-right: calc(-1 * var(--btn-gap, 0.5rem));
  transition:   width 0.2s ease, opacity 0.15s ease, margin-right 0.2s ease;
}

.btn:hover:not(:disabled):not([aria-disabled="true"]) .btn__icon--hover-only {
  width:        1rem; /* sm / md / lg */
  height:       1rem;
  opacity:      1;
  margin-right: 0;
}

.btn[data-size="xs"]:hover:not(:disabled):not([aria-disabled="true"]) .btn__icon--hover-only {
  width:  0.75rem;
  height: 0.75rem;
}


/* ============================================================
   Badge slot — optional count pill inside the button
   ============================================================ */

.btn__badge {
  align-items:      center;
  background-color: var(--primary);
  border-radius:    var(--radius-full);
  color:            var(--primary-foreground);
  display:          inline-flex;
  font-size:        var(--font-size-xs);   /* 12px */
  font-weight:      var(--font-weight-medium);
  justify-content:  center;
  line-height:      var(--line-height-xs); /* 16px */
  min-width:        1.25rem;               /* 20px */
  padding:          0.125rem 0.375rem;     /* 2px 6px */
}

/* ============================================================
   Tabs — Segmented pill tab bar
   Design tokens from src/styles/tokens.css.
   ============================================================ */

.seg-tabs {
  display:       inline-flex;
  align-items:   center;
  flex-shrink:   0;
  height:        40px;
  background:    var(--muted);
  border-radius: var(--radius-full);
  column-gap:    1px;
}

/* Individual tab — button or anchor */
.seg-tabs__tab {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             var(--spacing-1-5);
  height:          100%;
  padding:         var(--spacing-2) var(--spacing-4); /* 8px 16px */
  border:          1px solid transparent; /* size-stable when active border appears */
  border-radius:   var(--radius-full);
  background:      transparent;
  color:           var(--foreground);
  font-family:     var(--font-family-default);
  font-size:       var(--font-size-sm);   /* 14px */
  font-weight:     var(--font-weight-medium);
  line-height:     var(--line-height-sm);
  cursor:          pointer;
  text-decoration: none;  /* reset <a> default */
  white-space:     nowrap;
  transition:      background 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.seg-tabs__tab:hover {
  background: var(--opacity-background-50);
}

.seg-tabs__tab:focus-visible {
  outline:        2px solid var(--ring);
  outline-offset: 2px;
}

/* Active tab — only visible in playing state (.seg-tabs--active) */
.seg-tabs--active .seg-tabs__tab.is-active {
  background: var(--background);
  border:     1px solid var(--border);
}

.seg-tabs--active .seg-tabs__tab.is-active:hover {
  background: var(--background);
}

/* Icon slot */
.seg-tabs__tab-icon {
  display:     flex;
  align-items: center;
  flex-shrink: 0;
}

.seg-tabs__tab-icon svg {
  display: block;
  width:   1rem;
  height:  1rem;
}

/* Trailing badge slot — e.g. a small discount pill after the label.
   Color/background is supplied by the consumer; this only handles layout. */
.seg-tabs__tab-badge {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
}


/* ============================================================
   Compact size — content-sized segmented control
   ============================================================ */

.seg-tabs--compact {
  height:  auto;
  padding: var(--spacing-px);
}

.seg-tabs--compact .seg-tabs__tab {
  height:  auto;
  padding: var(--spacing-1-5) var(--spacing-5);
}


/* ============================================================
   Light scheme — warm secondary track, card active pill
   Matches the light DemoPlayer variant.
   ============================================================ */

.seg-tabs--light {
  background: var(--secondary);
}

.seg-tabs--light .seg-tabs__tab:hover {
  background: var(--popover);
}

.seg-tabs--light.seg-tabs--active .seg-tabs__tab.is-active,
.seg-tabs--light.seg-tabs--active .seg-tabs__tab.is-active:hover {
  background: var(--card);
}


/* ============================================================
   Light-alt scheme — muted track, background active pill + shadow
   Used in the Demo section on the accent background.
   ============================================================ */

.seg-tabs--light-alt {
  background: var(--muted);
}

.seg-tabs--light-alt .seg-tabs__tab {
  font-weight: var(--font-weight-medium);
}

.seg-tabs--light-alt .seg-tabs__tab:hover {
  background: var(--opacity-background-50);
}


/* ============================================================
   Card scheme — muted track, card active pill
   Matches Figma "Advance Tabs" (node 4374:9779) — e.g. the AIR
   pricing-page switch (AI-first / Human-first).
   ============================================================ */

.seg-tabs--card {
  background: var(--muted);
}

.seg-tabs--card .seg-tabs__tab:hover {
  background: var(--accent);
}

.seg-tabs--card.seg-tabs--active .seg-tabs__tab.is-active {
  background: var(--card);
  border:     1px solid var(--input);
  box-shadow:
    0 1px 3px rgba(26, 26, 24, 0.05),
    0 1px 2px -1px rgba(26, 26, 24, 0.05);
  font-weight: var(--font-weight-regular);
}

.seg-tabs--card.seg-tabs--active .seg-tabs__tab.is-active:hover {
  background: var(--card);
  box-shadow:
    0 2px 6px rgba(26, 26, 24, 0.08),
    0 1px 2px -1px rgba(26, 26, 24, 0.08);
}


/* ============================================================
   Card-alt scheme — same card active-pill treatment as "card",
   but on a `--background` track instead of `--muted`. Used for
   controls that sit on a white/near-white card (e.g. the plan
   card's call-volume selector) where the muted track would read
   too dark against the surrounding chrome.
   ============================================================ */

.seg-tabs--card-alt {
  background: var(--background);
}

.seg-tabs--card-alt .seg-tabs__tab:hover {
  background: var(--muted);
}

.seg-tabs--card-alt.seg-tabs--active .seg-tabs__tab.is-active {
  background: var(--card);
  border:     1px solid var(--input);
  box-shadow:
    0 1px 3px rgba(26, 26, 24, 0.05),
    0 1px 2px -1px rgba(26, 26, 24, 0.05);
  font-weight: var(--font-weight-regular);
}

.seg-tabs--card-alt.seg-tabs--active .seg-tabs__tab.is-active:hover {
  background: var(--card);
  box-shadow:
    0 2px 6px rgba(26, 26, 24, 0.08),
    0 1px 2px -1px rgba(26, 26, 24, 0.08);
}

/* ============================================================
   AirPricingPlanCard — shared plan card (tray + inner card + included
   list), used by AirPricingHeroSection and AirPricingV2Section.
   AIR-specific — do not confuse with the VR/human-first PricingCard
   in pages/pricing/PricingCard.

   The card owns its own chrome/spacing/type. The consuming section
   owns the grid/flex wrapper around it (columns, gaps, breakpoints)
   — see docs/component-unification-playbook.md. `flex: 1; min-width: 0`
   below is just a safe default so the card expands wherever it's
   dropped; a section's own tablet/mobile CSS overrides it to stack.

   Desktop (min-width: 992px) alignment uses CSS subgrid (progressive
   enhancement via @supports) so the tier badge / subtitle / price /
   controls / included list line up across sibling cards regardless of
   content length. Any wrapper that opts in must set `display: grid;
   grid-template-rows: repeat(7, auto)` with a column count matching
   its own card count.
   ============================================================ */

.air-pricing-plan-card {
  --card-inset: 1.25rem;   /* 20px — side inset, set once on __main below; nothing else in the card declares its own side padding */

  flex:           1;
  min-width:      0;
  display:        flex;
  flex-direction: column;
  border-radius:  var(--radius-lg);   /* 24px */
  border:         0.5px solid var(--border);
  overflow:       hidden;
}

.air-pricing-plan-card--free {
  background: #ede8df;   /* amber-100 — no semantic match */
}

.air-pricing-plan-card--pro,
.air-pricing-plan-card--enterprise {
  background: var(--accent);
}

/* Inner card — owns the side inset for everything it contains
   (tier badge, copy, controls); none of its children declare their
   own left/right padding. */
.air-pricing-plan-card__main {
  display:         flex;
  flex-direction:  column;
  padding-block:   1rem 1.5rem;   /* 16px top, 24px bottom */
  padding-inline:  var(--card-inset);
  border-radius:   var(--radius-lg);
  border:          0.5px solid var(--border);
  box-sizing:      border-box;
}

.air-pricing-plan-card--free .air-pricing-plan-card__main {
  background: var(--secondary);
}

.air-pricing-plan-card--pro .air-pricing-plan-card__main,
.air-pricing-plan-card--enterprise .air-pricing-plan-card__main {
  background: var(--card);
}

.air-pricing-plan-card__summary {
  display:        flex;
  flex-direction: column;
  gap:            1.5rem;   /* tier -> copy */
}

/* Tier badge wrapper */
.air-pricing-plan-card__tier {
  display: flex;
}

/* Match the Badge tier pills to the 32px Figma height */
.air-pricing-plan-card__tier .badge {
  height: 2rem;   /* 32px */
}

/* Copy */
.air-pricing-plan-card__copy {
  display:        flex;
  flex-direction: column;
  gap:            1.5rem;   /* 24px */
}

.air-pricing-plan-card__subtitle {
  margin:      0;
  font-size:   var(--font-size-sm);   /* 14px */
  color:       var(--muted-foreground);
}

.air-pricing-plan-card__pricing {
  display:        flex;
  flex-direction: column;
  gap:            var(--spacing-1);   /* 4px */
}

.air-pricing-plan-card__price-line {
  display:     flex;
  align-items: baseline;
  gap:         3px;
  min-height:  42.5px;
}

.air-pricing-plan-card__price {
  font-size:   2.25rem;   /* 36px — no token */
  line-height: 2.5rem;    /* 40px */
  font-weight: var(--font-weight-bold);
  color:       var(--foreground);
}

.air-pricing-plan-card__unit {
  font-size: var(--font-size-2xl);   /* 24px */
  color:     var(--foreground);
}

.air-pricing-plan-card__subprice {
  margin:      0;
  font-size:   var(--font-size-sm);   /* 14px */
  line-height: var(--line-height-sm);
}

.air-pricing-plan-card__subprice-lead {
  color: var(--foreground);
}

.air-pricing-plan-card__subprice-muted {
  color: var(--muted-foreground);
}

/* Controls — pushed to the bottom of the inner card */
.air-pricing-plan-card__controls {
  display:        flex;
  flex-direction: column;
  gap:            1rem;   /* 16px */
  margin-top:     auto;
}

.air-pricing-plan-card__actions {
  display:        flex;
  flex-direction: column;
  gap:            1.5rem;   /* CTA -> feature toggle */
}

.air-pricing-plan-card__volume-slot:empty {
  min-height: 66px;   /* matches the Pro/Enterprise label + tabs stack */
}

.air-pricing-plan-card__volume {
  display:        flex;
  flex-direction: column;
  gap:            var(--spacing-2);   /* 8px */
}

.air-pricing-plan-card__volume-label {
  font-size: var(--font-size-sm);   /* 14px */
  color:     var(--muted-foreground);
}

.air-pricing-plan-card__volume-tabs {
  display: flex;   /* fill the card width instead of inline shrink */
}

.air-pricing-plan-card__volume-tabs .seg-tabs {
  width: 100%;
}

.air-pricing-plan-card__volume-tabs .seg-tabs__tab {
  flex: 1;
}

/* Trailing discount pill inside a volume tab */
.air-pricing-plan-card__discount {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  padding:         0 var(--spacing-1-5);   /* 6px */
  height:          1.25rem;                /* 20px */
  border-radius:   var(--radius-full);
  background:      var(--opacity-info-40);  /* rgba(89,183,217,0.4) */
  color:           var(--color-brand-blue-700);   /* #186581 */
  font-size:       var(--font-size-xs);    /* 12px */
  font-weight:     var(--font-weight-medium);
  line-height:     1;
}

@media (min-width: 992px) and (max-width: 1110px) {
  .air-pricing-plan-card__discount {
    height:      1rem;
    padding:     0 0.15rem;
    font-size:   0.5rem;
    line-height: 1;
  }
}

.air-pricing-plan-card__cta {
  width:           100%;
  justify-content: center;
}

/* Included list (on the tray, pb-12) */
.air-pricing-plan-card__included {
  display:        flex;
  flex-direction: column;
  padding:        0 var(--card-inset) 0.75rem;
}

.air-pricing-plan-card__included-body {
  display:        flex;
  flex-direction: column;
}

.air-pricing-plan-card__included-label {
  margin:    0;
  padding:   0.75rem 0;   /* py-12 */
  font-size: var(--font-size-sm);   /* 14px */
  color:     var(--muted-foreground);
}

.air-pricing-plan-card__features {
  list-style: none;
  margin:     0;
  padding:    0;
  display:    flex;
  flex-direction: column;
}

.air-pricing-plan-card__feature {
  display:       flex;
  align-items:   flex-start;
  gap:           var(--spacing-1-5);   /* 6px */
  padding:       0.75rem 0;          /* py-12 */
  font-size:     var(--font-size-sm);   /* 14px */
  line-height:   var(--line-height-sm);
  color:         var(--foreground);
  border-bottom: 0.5px solid var(--sidebar-border);
}

.air-pricing-plan-card__feature:last-child {
  border-bottom: none;
}

.air-pricing-plan-card__feature svg {
  flex-shrink: 0;
  margin-top:  1px;
}

.air-pricing-plan-card__feature-toggle {
  display: none;
}

/* Subgrid path: align the card header/pricing/controls across sibling
   cards. The included feature lists stay in normal flow so shorter
   cards do not inherit awkward per-feature row tracks from the longest
   list. Self-contained (no dependency on a specific wrapper class) so
   it works under any consuming section's grid.

   Explicitly gated to desktop (min-width: 992px) — NOT just
   `@supports (grid-template-rows: subgrid)` on its own. `@supports` is
   a feature query, not a viewport query: on a subgrid-capable browser
   it stays "true" at every width, so its `display: contents` rules
   (higher specificity than the tablet media query's plain-class resets
   below) kept winning below 992px too, silently killing the tier→copy
   and subtitle→pricing gaps at tablet/mobile. Scoping by width removes
   that specificity fight entirely instead of trying to out-specificity it. */
@media (min-width: 992px) {
  @supports (grid-template-rows: subgrid) {
    .air-pricing-plan-card {
      display:            grid;
      grid-template-rows: subgrid;
      grid-row:           span 7;
    }

    .air-pricing-plan-card > .air-pricing-plan-card__main {
      display:            grid;
      grid-template-rows: subgrid;
      grid-row:           span 6;
      gap:                0;
    }

    .air-pricing-plan-card__main > .air-pricing-plan-card__summary {
      display: contents;
    }

    .air-pricing-plan-card__summary > .air-pricing-plan-card__tier {
      grid-row:      1;
      align-self:    start;
      margin-bottom: 1.5rem;
    }

    .air-pricing-plan-card__summary > .air-pricing-plan-card__copy {
      display: contents;
    }

    .air-pricing-plan-card__subtitle {
      grid-row:      2;
      align-self:    start;
      margin-bottom: 1.5rem;
    }

    .air-pricing-plan-card__pricing {
      display: contents;
    }

    .air-pricing-plan-card__price-line {
      display:           grid;
      grid-auto-flow:    column;
      grid-auto-columns: max-content;
      grid-row:          3;
      align-self:        stretch;
      align-content:     start;
      align-items:       baseline;
      column-gap:        3px;
    }

    .air-pricing-plan-card__subprice {
      grid-row:      4;
      align-self:    start;
      margin-bottom: 1.5rem;
    }

    .air-pricing-plan-card__controls {
      display:         flex;
      flex-direction:  column;
      grid-row:        5 / span 2;
      gap:             1rem;
      justify-content: flex-end;
      margin-top:      0;
    }

    .air-pricing-plan-card > .air-pricing-plan-card__included {
      grid-row: 7;
    }
  }
}

/* ============================================================
   Tablet (≤991px) — card reverts to plain flow; the wrapper
   stacks cards in a column (see the consuming section's own CSS).
   ============================================================ */

@media (max-width: 991px) {
  .air-pricing-plan-card {
    display: flex;
  }

  .air-pricing-plan-card__main {
    padding-block: 1rem 0.75rem;
    border-radius: var(--radius-lg);
    border:        0;
    min-height:    0;
  }

  .air-pricing-plan-card--pro .air-pricing-plan-card__main,
  .air-pricing-plan-card--enterprise .air-pricing-plan-card__main {
    min-height: 381px;
  }

  .air-pricing-plan-card__summary,
  .air-pricing-plan-card__copy,
  .air-pricing-plan-card__pricing {
    display: flex;
  }

  .air-pricing-plan-card__summary > .air-pricing-plan-card__tier {
    margin-bottom: 0;
  }

  .air-pricing-plan-card__subtitle,
  .air-pricing-plan-card__subprice {
    margin-bottom: 0;
  }

  .air-pricing-plan-card__price-line {
    display:     flex;
    align-items: baseline;
    gap:         3px;
  }

  .air-pricing-plan-card__controls {
    margin-top: 64px;
  }

  .air-pricing-plan-card--pro .air-pricing-plan-card__controls,
  .air-pricing-plan-card--enterprise .air-pricing-plan-card__controls {
    margin-top: 1.5rem;
  }

  .air-pricing-plan-card__volume-slot:empty {
    display:    none;
    min-height: 0;
  }

  .air-pricing-plan-card__volume-tabs {
    height: 2.375rem;   /* 38px */
  }

  .air-pricing-plan-card__volume-tabs .seg-tabs {
    height: 100%;
  }

  .air-pricing-plan-card__volume-tabs .seg-tabs__tab {
    padding-right: var(--spacing-2);
    padding-left:  var(--spacing-2);
  }

  .air-pricing-plan-card__included {
    display:            grid;
    grid-template-rows: 0fr;
    padding:            0 var(--card-inset);
    opacity:            0;
    transition:         grid-template-rows 0.28s ease, padding-bottom 0.28s ease, opacity 0.2s ease;
  }

  .air-pricing-plan-card__included-body {
    min-height: 0;
    overflow:   hidden;
  }

  .air-pricing-plan-card__feature-toggle {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    gap:             var(--spacing-2);
    width:           100%;
    min-height:      27px;
    padding:         0;
    border:          0;
    background:      transparent;
    color:           var(--muted-foreground);
    font:            inherit;
    font-size:       var(--font-size-sm);
    font-weight:     var(--font-weight-medium);
    line-height:     var(--line-height-sm);
    cursor:          pointer;
  }

  .air-pricing-plan-card__feature-toggle svg {
    flex-shrink: 0;
    transition:  transform 0.2s;
  }

  .air-pricing-plan-card.is-features-open .air-pricing-plan-card__feature-toggle svg {
    transform: rotate(180deg);
  }

  .air-pricing-plan-card.is-features-open .air-pricing-plan-card__included {
    grid-template-rows: 1fr;
    padding-bottom:     0.75rem;
    opacity:            1;
  }

  .air-pricing-plan-card__included-label {
    padding: 1.25rem 0 0.5rem;
  }
}

@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
  .air-pricing-plan-card__included {
    transition: none;
  }

  .air-pricing-plan-card__feature-toggle svg {
    transition: none;
  }
}

/* ============================================================
   PricingCommitmentBanner — full-width callout below the plan
   row. Secondary-tinted card + border; single row: copy left,
   CTA right.
   ============================================================ */

.air-pricing-commitment-banner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             1rem;   /* 16px copy -> CTA */
  padding:         1.5rem;   /* 24px */
  border-radius:   var(--radius-lg);   /* 24px */
  border:          0.5px solid var(--border);
  background:      var(--secondary);
}

.air-pricing-commitment-banner__copy {
  display:        flex;
  flex-direction: column;
  gap:            0.25rem;   /* 4px */
}

.air-pricing-commitment-banner__heading {
  margin:      0;
  font-size:   var(--font-size-base);   /* 16px */
  line-height: var(--line-height-base);
  font-weight: var(--font-weight-bold);
  color:       var(--foreground);
}

.air-pricing-commitment-banner__body {
  margin:      0;
  font-size:   var(--font-size-base);   /* 16px */
  line-height: var(--line-height-base);
  color:       var(--muted-foreground);
}

.air-pricing-commitment-banner__cta {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .air-pricing-commitment-banner {
    flex-direction: column;
    align-items:    stretch;
    gap:            1.25rem;   /* 20px */
  }

  .air-pricing-commitment-banner__cta {
    width:           100%;
    justify-content: center;
  }
}

