/* ============================================================
   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:     1024px;
  max-width: calc(100% - 160px); /* 80px × 2 — desktop */
  margin:    0 auto;
}

/* Tablet (≤991px): 60px × 2 = 120px */
@media (max-width: 991px) {
  .container {
    max-width: calc(100% - 120px);
  }
}

/* Landscape mobile (≤767px): 2rem × 2 = 4rem */
@media (max-width: 767px) {
  .container {
    max-width: calc(100% - 4rem);
  }
}



/* ============================================================
   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(1360px + 96px);   /* 1360px content + 48px × 2 */
  padding:    0 3rem;                /* 48px sides */
  margin:     0 auto;
  box-sizing: border-box;
}

/* Tablet + landscape mobile (≤991px) */
@media (max-width: 991px) {
  .container-wide {
    padding: 0 2rem;
  }

  .container-wide > * {
    margin-left:  -1rem;
    width:        calc(100% + 2rem) !important;
  }
}


/* ============================================================
   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: 100%.  .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
   (1360px): (1360 − 1024) / 2 = 168px.
   Shown only at ≥1488px — when the gutter is a fixed, predictable size. */

.hp-rail {
  display:        none;
  position:       absolute;
  right:          100%;
  top:            0;
  bottom:         0;
  width:          calc((1360px - 1024px) / 2);   /* 168px */
  pointer-events: none;
}

.hp-rail__sticky {
  position:        sticky;
  top:             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: 1488px) {
  .hp-rail {
    display:         flex;
    justify-content: flex-start;
    align-items:     flex-start;
  }
}


/* ---- 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 1488px, hidden at and above
   (matches the rail breakpoint so there is never a gap where
   neither badge is shown) */
.hp-badge--inline {
  margin-bottom: var(--spacing-6);
}

@media (min-width: 1488px) {
  .hp-badge--inline {
    display: none;
  }
}

@media (max-width: 767px) {
  .hp-badge--inline {
    margin-bottom: 1rem;
  }
}

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


/* ---- Section heading --------------------------------------
   36px regular weight; <strong> inside uses bold. */

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

.hp-heading strong {
  font-weight: var(--font-weight-bold);
}


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

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

.hp-body strong {
  font-weight: var(--font-weight-bold);
}

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

  .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);
}

/* ============================================================
   SolutionSection — Homepage "The solution" section
   Shared section shell, rail, badge, heading, body → src/section.css
   ============================================================ */

.solution-section { background-color: var(--background); }


/* ============================================================
   Section header
   ============================================================ */

.solution-section__header {
  display:        flex;
  flex-direction: column;
  align-items:    flex-start;
}

.solution-section__intro {
  display:        flex;
  flex-direction: column;
  gap:            2.25rem;
  max-width:      800px;
}


/* ============================================================
   Outer card shell
   ============================================================ */

.solution-section__card {
  position:      relative;   /* bounds the absolutely-positioned nav */
  background:    var(--card);
  border-radius: var(--radius-lg);   /* 24px */
  width:         100%;
  box-sizing:    border-box;
  overflow:      hidden;
}

/* Panels hidden by default */
.solution-section__step-panel,
.solution-section__overview-panel {
  display: none;
}

/* Active panel */
.solution-section__card[data-tab="step-by-step"] .solution-section__step-panel {
  display:        flex;
  container-type: inline-size;  /* enables cqi units for children */
}

.solution-section__card[data-tab="overview"] .solution-section__overview-panel {
  display: flex;
  flex-direction: column;
}


/* ============================================================
   Tab nav — absolute, floats top-right of the card
   ============================================================ */

.solution-section__nav {
  position: absolute;
  top:      2rem;
  right:    2rem;
  z-index:  1;
}


/* ============================================================
   Tab 1 — Image area (left 2/3)
   ============================================================ */

.solution-section__img-area {
  padding:    1rem;
  display:    flex;
  flex:       0 1 auto;   /* content-driven width; image dictates size */
  align-self: flex-start;
  min-width:  50%;
}

.solution-section__img {
  --max-h:          calc(100vh - var(--navheight, 0px) - 5rem - 2rem);
  width:            min(66.666cqi, calc(var(--max-h) * 806 / 768));
  min-width:        100%;
  max-width:        806px;
  height:           auto;
  aspect-ratio:     806 / 768;
  border-radius:    12px;
  overflow:         hidden;
  position:         relative;
  box-shadow:       inset 0 0 0 0.5px rgba(40, 40, 37, 0.2);
  background-color: var(--accent);
}

/* Agent images — stacked, crossfade on active state */
.solution-section__img-photo {
  position:   absolute;
  inset:      0;
  width:      100%;
  height:     100%;
  object-fit: cover;
  z-index:    0;
  opacity:    0;
  transition: opacity 400ms ease;
}

@media (min-width: 992px) {
  .solution-section__img {
    display:         flex;
    align-items:     center;
    justify-content: center;
  }

  .solution-section__img-photo {
    inset:  unset;
    width:  105%;
    height: 105%;
  }
}

.solution-section__img-photo[data-active="true"] {
  opacity: 1;
}


/* ============================================================
   Tab 1 — Accordion column (right 1/3)
   Full height of the card, content vertically centered.
   Symmetric padding (5rem top + bottom) so content clears the
   absolutely-positioned nav (~38px + 2rem ≈ 70px) and appears
   visually centered.
   ============================================================ */

.solution-section__accordion-col {
  display:         flex;
  flex-direction:  column;
  justify-content: center;
  flex:            1;
  align-self:      stretch;
  padding:         5rem 2rem 5rem 1rem;
  box-sizing:      border-box;
  overflow-y:      auto;
  min-width: 340px;
}

.solution-section__accordion-list {
  max-width: 480px;
  margin:    0 auto;
  width:     100%;
}



/* ============================================================
   Tab 2 — Overview layout
   ============================================================ */

.solution-section__overview-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows:        1fr;
  gap:                   1rem;
  padding:               6.375rem 1rem 1rem;   /* top clears the nav */
  flex:                  1;
}

.solution-card {
  display:        flex;
  flex-direction: column;
  gap:            3rem;
  padding:        2rem;
  min-width:      0;
}

.solution-card__icon-wrap {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           60px;
  height:          60px;
  flex-shrink:     0;
  border:          0.5px solid var(--border);
  border-radius:   var(--radius-full);
  background:      var(--card);
}

/* Shared solution badge — enforces min-width */
.solution-badge {
  min-width:       46px;
  justify-content: center;
}

/* Live badge — teal tint, dark text */
.solution-badge--live {
  background-color: rgba(89, 183, 217, 0.3) !important;
  border-color:     transparent !important;
  color:            var(--foreground) !important;
}


.solution-card__copy {
  display:        flex;
  flex-direction: column;
  gap:            12px;
}

.solution-card__title-row {
  display:     flex;
  align-items: center;
  gap:         var(--spacing-1-5);
}

.solution-card__title {
  color: var(--foreground);
}


/* ============================================================
   Tablet (≤991px)
   ============================================================ */

@media (max-width: 991px) {
  /* Hide tab nav and overview — step-by-step only */
  .solution-section__nav,
  .solution-section__overview-panel {
    display: none;
  }

  .solution-section__card[data-tab="step-by-step"] .solution-section__step-panel {
    flex-direction: column;
  }

  .solution-section__img-area {
    width:   100%;
    padding: 0.75rem;
  }

  .solution-section__img {
    flex:         none;
    max-width:    none;
    width:        100%;
    height:       480px;
    aspect-ratio: unset;
  }

  .solution-section__accordion-col {
    padding:         1rem 1rem 1.5rem;
    justify-content: flex-start;
    overflow-y:      visible;
  }
}


/* ============================================================
   Mobile (≤767px)
   ============================================================ */

@media (max-width: 767px) {
  .solution-section__intro {
    gap: 2rem;
  }

  /* Hide tab nav and overview panel — only step-by-step on mobile */
  .solution-section__nav,
  .solution-section__overview-panel {
    display: none;
  }

  /* Image area: 12px all sides */
  .solution-section__img-area {
    width:   100%;
    padding: 0.75rem;
  }

  .solution-section__img {
    flex:         none;
    max-width:    none;
    width:        100%;
    height:       380px;
    aspect-ratio: unset;
  }

  /* Accordion: 16px top + sides, 24px bottom */
  .solution-section__accordion-col {
    padding:         1rem 1rem 1.5rem;
    justify-content: flex-start;
    overflow-y:      visible;
  }
}


/* ============================================================
   Portrait mobile (≤479px)
   ============================================================ */

@media (max-width: 479px) {
  .solution-section__overview-grid {
    grid-template-columns: 1fr;
  }

  .solution-section__img {
    height:       auto;
    aspect-ratio: 806 / 768;
  }
}

/* ============================================================
   RichText — Component Styles
   Self-contained typography for structured content blocks.
   Covers all standard rich text elements.
   Design tokens are defined in src/tokens.css.
   ============================================================ */

.rich-text {
  color:       var(--foreground);
  font-family: var(--font-family-default);
  font-size:   var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-base);
}


/* ---- Paragraphs ---- */

.rich-text p {
  margin: 0;
}

.rich-text p + p,
.rich-text * + p {
  margin-top: 1rem;
}


/* ---- Headings ---- */

.rich-text h1,
.rich-text h2,
.rich-text h3,
.rich-text h4,
.rich-text h5,
.rich-text h6 {
  color:       var(--foreground);
  font-family: var(--font-family-default);
  font-weight: var(--font-weight-bold);
  margin:      0;
}

/* Space between a heading and what follows it */
.rich-text h1 + *,
.rich-text h2 + *,
.rich-text h3 + *,
.rich-text h4 + *,
.rich-text h5 + *,
.rich-text h6 + * {
  margin-top: 0.5rem;
}

/* Space before a heading that has something above it */
.rich-text * + h1,
.rich-text * + h2,
.rich-text * + h3,
.rich-text * + h4,
.rich-text * + h5,
.rich-text * + h6 {
  margin-top: 1.5rem;
}

.rich-text h1 { font-size: var(--font-size-h1); line-height: 1.2;  }
.rich-text h2 { font-size: var(--font-size-h2); line-height: 1.25; }
.rich-text h3 { font-size: var(--font-size-h3); line-height: 1.3;  }
.rich-text h4 { font-size: var(--font-size-h4); line-height: 1.4;  }
.rich-text h5 { font-size: var(--font-size-base); line-height: var(--line-height-base); }
.rich-text h6 { font-size: var(--font-size-sm);   line-height: var(--line-height-sm);  }


/* ---- Lists ---- */

.rich-text ul,
.rich-text ol {
  font-size:    inherit;
  line-height:  inherit;
  margin:       0;
  padding-left: 1.25rem;
}

.rich-text li {
  font-size:   inherit;
  line-height: inherit;
}

.rich-text * + ul,
.rich-text * + ol {
  margin-top: 0.5rem;
}

.rich-text ul { list-style-type: disc;    }
.rich-text ol { list-style-type: decimal; }

.rich-text li + li {
  margin-top: 0.25rem;
}

/* Nested lists */
.rich-text li > ul,
.rich-text li > ol {
  margin-top: 0.25rem;
}


/* ---- Inline emphasis ---- */

.rich-text strong,
.rich-text b {
  font-weight: var(--font-weight-bold);
}

.rich-text em,
.rich-text i {
  font-style: italic;
}


/* ---- Links ---- */

.rich-text a {
  color:           var(--primary);
  font-weight:     var(--font-weight-medium);
  text-decoration: none;
}

.rich-text a:hover {
  text-decoration: underline;
}


/* ---- Blockquote ---- */

.rich-text blockquote {
  border-left: 3px solid var(--border);
  color:       var(--muted-foreground);
  margin:      0;
  padding-left: 1rem;
}

.rich-text * + blockquote {
  margin-top: 1rem;
}


/* ---- Inline code ---- */

.rich-text code {
  background-color: var(--muted);
  border-radius:    0.25rem;
  font-family:      ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace;
  font-size:        0.875em;
  padding:          0.125em 0.375em;
}


/* ---- Code block ---- */

.rich-text pre {
  background-color: var(--muted);
  border-radius:    var(--radius-sm);
  margin:           0;
  overflow-x:       auto;
  padding:          1rem 1.25rem;
}

.rich-text * + pre {
  margin-top: 1rem;
}

/* Reset inline code styles when inside a pre block */
.rich-text pre code {
  background: none;
  font-size:  1em;
  padding:    0;
}


/* ---- Horizontal rule ---- */

.rich-text hr {
  border:     none;
  border-top: 1px solid var(--border);
  margin:     1.5rem 0 0;
}


/* ---- Images ---- */

.rich-text img {
  display:   block;
  height:    auto;
  max-width: 100%;
}

/* ============================================================
   Accordion — Component Styles
   Design tokens are defined in src/tokens.css.

   Figma spec (node 2018:22972):
     Border radius : 12px (0.75rem)
     Trigger padding: 10px 12px 10px 16px (top right bottom left)
     Trigger gap   : 32px between icon / question / price / chevron
     Answer padding : 12px top · 12px right · 24px bottom · 16px left
     Idle bg       : transparent (no background)
     Hover bg      : var(--accent)   — warm off-white (#FAF6F0)
     Open bg       : var(--card)     — white
     Chevron       : 18 × 18px, rotates 180° when open
   ============================================================ */

/* ---- Outer wrapper ---- */
.accordion {
  border-radius: 0.75rem;  /* 12px */
  overflow:      hidden;
  transition:    background-color 150ms ease;
}

.accordion:hover {
  background-color: var(--accent);
}

.accordion[data-open] {
  background-color: var(--card);
}

/* Keep card bg even when hovered while open */
.accordion[data-open]:hover {
  background-color: var(--card);
}

/* Ghost variant — no background changes on hover or open */
.accordion--ghost:hover,
.accordion--ghost[data-open],
.accordion--ghost[data-open]:hover {
  background-color: transparent;
}


/* ---- Trigger button ---- */
.accordion__trigger {
  align-items:  flex-start;
  background:   none;
  border:       none;
  cursor:       pointer;
  display:      flex;
  gap:          0.75rem;         /* 12px */
  padding:      0.625rem 0.75rem 0.625rem 1rem; /* 10px 12px 10px 16px */
  text-align:   left;
  width:        100%;
}

/* ---- Icon slot (16 × 16) ---- */
.accordion__icon {
  align-items:  center;
  color:        var(--foreground);
  display:      flex;
  flex-shrink:  0;
  height:       var(--line-height-base); /* 24px — vertically centers with text */
  width:        1rem;                    /* 16px */
}

.accordion__icon > * {
  display: block;
  height:  1rem;
  width:   1rem;
}

/* ---- Badge slot (optional, between icon and question) ---- */
.accordion__badge {
  align-items: center;
  display:     flex;
  flex-shrink: 0;
}

/* ---- Question text ---- */
.accordion__question {
  color:       var(--foreground);
  flex:        1 0 0;
  font-family: var(--font-family-default);
  font-size:   var(--font-size-base);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-base);
  min-width:   0;
}

/* ---- Price label (optional) ---- */
.accordion__price {
  color:        var(--muted-foreground); /* grey in idle; becomes foreground on hover/open */
  flex-shrink:  0;
  font-family:  var(--font-family-default);
  font-size:    var(--font-size-sm);   /* 14px */
  font-weight:  var(--font-weight-regular);
  line-height:  var(--line-height-sm); /* 20px */
  padding-top:  0.125rem;             /* 2px — nudge to align with bold question baseline */
  text-align:   right;
  white-space:  nowrap;
  transition:   color 150ms ease;
}

/* ---- Chevron ---- */
.accordion__chevron {
  align-items:     center;
  color:           var(--muted-foreground);
  display:         flex;
  flex-shrink:     0;
  height:          1.6875rem; /* 27px — Figma "Button area" height */
  justify-content: center;
}

.accordion__chevron-icon {
  display:    block;
  height:     1.125rem; /* 18px */
  transition: transform 220ms ease;
  width:      1.125rem;
}

/* Price becomes full foreground on hover and when open */
.accordion:hover .accordion__price,
.accordion[data-open] .accordion__price {
  color: var(--foreground);
}

.accordion[data-open] .accordion__chevron-icon {
  transform: rotate(180deg);
}


/* ---- Answer body — CSS grid height animation ---- */
.accordion__body-outer {
  display:            grid;
  grid-template-rows: 0fr;
  transition:         grid-template-rows 220ms ease;
}

.accordion[data-open] .accordion__body-outer {
  grid-template-rows: 1fr;
}

.accordion__body-inner {
  overflow: hidden;
}

/* Padding only — typography is handled by the RichText component.
   Top  : 2px — trigger already has pb:10px, together they form 12px gap (Figma gap-3)
   Right: 24px — matches outer pr:12px + answer pr:12px from Figma
   Bottom: 22px — matches outer pb:10px + answer pb:12px from Figma
   Left : 16px — aligns answer text with question text (Figma outer pl:16px + answer pl:0) */
.accordion__answer {
  padding: 0.125rem 1.5rem 1.375rem 1rem;
  color:   var(--foreground);
}

/* Ghost variant — muted answer text (used in DifferenceSection) */
.accordion--ghost .accordion__answer {
  color: var(--muted-foreground);
}

/* ============================================================
   AvatarGroup — horizontal overlapping avatar strip with fade
   Pass --avatar-bg on the container to match the parent background.
   ============================================================ */

.avatar-group {
  display:   flex;
  height:    60px;
  position:  relative;
  max-width: 100%;
  overflow:  hidden;
}

.avatar-group::after {
  content:        '';
  position:       absolute;
  top:            0;
  right:          0;
  bottom:         0;
  width:          80px;
  background:     linear-gradient(to right, transparent, var(--avatar-bg, var(--card)));
  pointer-events: none;
  z-index:        8;   /* above avatar z-indexes (7 → 1) */
}

.avatar-group__wrap {
  position:      relative;
  flex-shrink:   0;
  width:         60px;
  height:        60px;
  margin-left:   -16px;
  border:        2px solid var(--avatar-bg, var(--card));
  border-radius: var(--radius-full);
  overflow:      hidden;
}

.avatar-group__wrap:first-child { margin-left: 0; }

.avatar-group__img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}

.avatar-group__fade {
  position:       absolute;
  inset:          0;
  border-radius:  var(--radius-full);
  pointer-events: none;
}

/* ============================================================
   Badge — pill label with color variants, sizes, and states
   Design tokens from src/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:     1;
  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:       var(--spacing-1);
  height:    1.5rem;            /* 24px */
  min-width: 1.5rem;            /* keeps single-char badges circular */
  padding:   0 var(--spacing-2);
}

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

.badge--lg {
  gap:       var(--spacing-2);
  height:    2rem;              /* 32px */
  min-width: 2rem;
  padding:   0 0.9375rem;
}


/* ============================================================
   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.875rem;   /* 14px */
  width:   0.875rem;
}

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

/* 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.625rem;   /* 10px */
  width:   0.625rem;
}

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

.seg-tabs {
  display:       inline-flex;
  align-items:   center;
  flex-shrink:   0;
  height:        38px;
  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-sizing: border-box;
}

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

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


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

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

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

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

