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


/* ============================================================
   AirDifferenceSection — "The Smith.ai difference" section.

   Layout: section header (badge rail + intro) + accordion list.
   Three accordion cards stacked vertically with 12px gaps.
   The hp-section gap (64px) separates the header from the list.
   ============================================================ */

.air-difference { background: var(--background); }

/* Header and accordion list are one logical group; this stack owns their 64px
   rhythm while the outer container keeps the rail boundary. */
.air-difference__content {
  display:        flex;
  flex-direction: column;
  gap:            4rem;   /* 64px between header and accordion list */
}

.air-difference .section-header__text,
.air-difference .hp-heading,
.air-difference .hp-body {
  width: 100%;
}


/* ============================================================
   Accordion list
   ============================================================ */

.air-difference__list {
  display:        flex;
  flex-direction: column;
  gap:            var(--spacing-3);   /* 12px */
}


/* ============================================================
   Accordion card
   ============================================================ */

.diff-card {
  background:    var(--card);
  border-radius: 12px;
  overflow:      hidden;
}


/* ---- Header row (always visible) -------------------------- */

.diff-card__header {
  display:         flex;
  align-items:     center;
  width:           100%;
  padding:         2rem 1.75rem 2rem 2rem;
  border:          none;
  background:      none;
  cursor:          pointer;
  text-align:      left;
  gap:             var(--spacing-3);
}

.diff-card__title-group {
  display:     flex;
  align-items: center;
  gap:         var(--spacing-3);
  flex:        1;
  min-width:   0;
}

.diff-card__icon {
  flex-shrink: 0;
  display:     flex;
  align-items: center;
  color:       var(--foreground);
}

.diff-card__title {
  font-size:   var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-xl);
  color:       var(--foreground);
}

.diff-card__meta {
  flex-shrink:  0;
  display:      flex;
  flex-direction: row;
  align-items:  center;
  gap:          var(--spacing-6);   /* 24px */
}

.diff-card__chevron {
  flex-shrink:    0;
  display:        flex;
  align-items:    center;
  color:          var(--foreground);
  transition:     transform 250ms ease;
}

.diff-card[data-open="true"] .diff-card__chevron {
  transform: rotate(180deg);
}


/* ---- Expand / collapse body ------------------------------- */

.diff-card__body-wrap {
  overflow: hidden;
  opacity:  0;
  transition:
    height 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    margin-top 320ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: height;
}

.diff-card[data-open="true"] .diff-card__body-wrap {
  opacity: 1;
}

.diff-card__body-inner { overflow: visible; }

.diff-card__body {
  display:        flex;
  flex-direction: column;
  gap:            var(--spacing-4);   /* 16px */
  padding:        0 1.75rem 2rem 2rem;
}

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

.diff-card__checks {
  list-style:     none;
  margin:         0;
  padding:        0;
  display:        flex;
  flex-direction: column;
}

.diff-card__check {
  display:     flex;
  align-items: flex-start;
  gap:         var(--spacing-2);   /* 8px */
}

.diff-card__check-icon {
  flex-shrink: 0;
  display:     flex;
  align-items: center;
  color:       var(--foreground);
  margin-top:  4px;   /* center the 16px icon on the first 24px text line */
}

.diff-card__check-text {
  font-size:   var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-base);
  color:       var(--muted-foreground);
}


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

@media (max-width: 991px) {
  .diff-card__header { padding: 1.5rem; }
  .diff-card__body   { padding: 0 1.5rem 1.5rem; }
}


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

@media (max-width: 767px) {
  .air-difference__list {
    margin: 0 -1rem;
  }

  .diff-card {
    display:        flex;
    flex-direction: column;
    padding:        1.5rem 1rem 1.75rem;
  }

  .diff-card__header {
    flex-direction: column;
    align-items:    stretch;
    padding:        0;
    gap:            var(--spacing-6);
  }

  .diff-card__meta {
    order:           -1;
    width:           100%;
    justify-content: space-between;
    gap:             var(--spacing-6);
  }

  .diff-card__title-group {
    width: 100%;
    flex:  none;
  }

  .diff-card__title {
    font-size:   var(--font-size-lg);
    line-height: var(--line-height-lg);
  }

  .diff-card__icon svg {
    width:  24px;
    height: 24px;
  }

  .diff-card__body { padding: 0; }

  .diff-card__body-wrap {
    margin-top: 0;
  }

  .diff-card[data-open="true"] .diff-card__body-wrap {
    margin-top: var(--spacing-6);
  }
}

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

