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


/* ============================================================
   ComparisonFeatureTableSection — Figma rR6TChqSqmXUL4MfXtJ8gv, node
   7539:10590. Spec: ComparisonFeatureTableSection.figma.md.

   `.hp-section` supplies the 64px header → table gap; `--stepped` the
   rhythm. The table is ComparisonTable.
   ============================================================ */

.comparison-feature-table {
  background: var(--background-white);
}

/* Figma: pt-64, like Key Differences (the 16px white stroke takes no
   layout space). Bottom keeps the stepped 128. */
.hp-section.comparison-feature-table {
  padding-top: 4rem;
}

/* ============================================================
   ComparisonTable — Figma rR6TChqSqmXUL4MfXtJ8gv, nodes 7539:10361 (Key
   Differences) and 7539:10601 (Full feature comparison). See the .tsx.
   ============================================================ */

.comparison-table {
  --ct-pad:  2rem;                                  /* 32px panel padding */
  --ct-gap:  4rem;                                  /* 64px between columns */
  --ct-col:  calc((100% - 2 * var(--ct-pad) - 2 * var(--ct-gap)) / 3);

  position:      relative;
  isolation:     isolate;
  padding:       var(--ct-pad);
  background:    var(--secondary);                 /* #FAF6F0 */
  border-radius: var(--radius-lg);                 /* 24px */
  font-family:   var(--font-family-default);
  color:         var(--foreground);
}

/* 7539:10362 — x 468 / w 423 on the 1384 panel: 25px left of the Smith.ai
   column, flush with its right edge; 16px inside the panel top and bottom. */
.comparison-table__highlight {
  position:      absolute;
  z-index:       -1;
  top:           var(--spacing-4);
  bottom:        var(--spacing-4);
  left:          calc(var(--ct-pad) + var(--ct-col) + var(--ct-gap) - 25px);
  width:         calc(var(--ct-col) + 25px);
  background:    var(--card);
  border-radius: var(--radius-lg);
}


/* ---- Rows ------------------------------------------------- */

.comparison-table__row {
  display:               grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap:            var(--ct-gap);
  align-items:           center;
  padding:               var(--spacing-4) 0;       /* 16px */
  border-bottom:         0.5px solid var(--divider);
}

/* No divider under the table's last row (nor under the column names). */
.comparison-table__row--head,
.comparison-table__body > .comparison-table__group:last-child > .comparison-table__row:last-child {
  border-bottom: 0;
}

/* Figma's header row: 6px cell padding around the 10px content padding. */
.comparison-table__row--head {
  padding: 6px 0;
}

/* Key Differences' 48px spacer between the names and the first row. */
.comparison-table__head--gap {
  margin-bottom: 3rem;
}

/* Groups sit 64 apart (Figma's pb-64 on each "Section / …" frame). */
.comparison-table__group + .comparison-table__group {
  margin-top: 4rem;
}


/* ---- Cells ------------------------------------------------ */

.comparison-table__cell {
  min-width:   0;
  padding:     10px var(--spacing-3);              /* 10 / 12 */
  font-size:   var(--font-size-base);              /* 16px */
  line-height: var(--line-height-base);            /* 24px */
}

.comparison-table__cell--label {
  padding-inline: 0;
}

/* Column names — Rowan Semibold 24/32. */
.comparison-table__name {
  font-family: var(--font-family-serif);
  font-size:   var(--font-size-2xl);
  line-height: var(--line-height-2xl);
  font-weight: 600;                                /* Rowan Semibold — no token */
}

.comparison-table__value {
  display:     flex;
  align-items: center;
  gap:         var(--spacing-2);                   /* 8px */
}

.comparison-table__mark {
  flex-shrink: 0;
}

.comparison-table__mark--check {
  color: var(--foreground);
}

.comparison-table__mark--cross {
  color: var(--color-brand-beige-400);             /* #C3BBAC */
}

/* 7539:10615 — group heading: 16px icon, 10 gap, muted 16/24, 48 tall. */
.comparison-table__group-heading {
  display:     flex;
  align-items: center;
  height:      48px;
}

.comparison-table__group-label {
  display:     flex;
  align-items: center;
  gap:         10px;                               /* no token */
  font-size:   var(--font-size-base);
  line-height: var(--line-height-base);
  color:       var(--muted-foreground);            /* #85857A */
}

.comparison-table__group-label svg {
  flex-shrink:     0;
  stroke:          currentColor;
  stroke-width:    2.25;                           /* 1.5 at 16px */
  stroke-linecap:  round;
  stroke-linejoin: round;
}

/* A bare mark's "Yes" / "No": screen-reader only, shown on phones. */
.comparison-table__sr-only,
.comparison-table__mark-label {
  position:    absolute;
  width:       1px;
  height:      1px;
  overflow:    hidden;
  clip:        rect(0 0 0 0);
  white-space: nowrap;
}


/* ---- Responsive ------------------------------------------- */

/* No mobile frame yet. Tablet keeps three columns, tighter. */
@media (max-width: 991px) {
  .comparison-table {
    --ct-pad: var(--spacing-6);                    /* 24px */
    --ct-gap: var(--spacing-6);
  }

  .comparison-table__highlight {
    left:  calc(var(--ct-pad) + var(--ct-col) + var(--ct-gap) / 2);
    width: calc(var(--ct-col) + var(--ct-gap) / 2);
  }

  .comparison-table__name {
    font-size:   var(--font-size-xl);
    line-height: var(--line-height-xl);
  }
}

/* Phones (Figma 0xMYb2Vz3jrcEQJ8PH9jib `7897:4821`, Frank 2026-11-16): each
   label takes its own line over its two values, side by side, and a value's
   mark stacks over its text. Label → values 16, a 24px mark, 8, the text;
   Smith.ai's tile is 10 / 12 padded, the competitor's column 16 from it.
   (The frame insets the competitor's first three rows and its name another
   12 and the last three not; none here, so names like "Answering Legal"
   stay on one line.)
   The white strip can't run down a column that the labels cross, so it
   breaks into a white tile per Smith.ai value — the column names show once,
   over the two columns, with Smith.ai's on the same tile, and the tile
   keeps the column readable all the way down without a caption on every
   row. (Not a sticky header: the phone navbar floats over the top of the
   page.) A bare mark spells out its "Yes" / "No". */
@media (max-width: 767px) {
  .comparison-table {
    --ct-pad: var(--spacing-4);                    /* 16px */
    --ct-gap: var(--spacing-4);                    /* 16px between the tiles */
  }

  .comparison-table__highlight {
    display: none;
  }

  .comparison-table__head--gap {
    margin-bottom: 0;
  }

  .comparison-table__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap:               var(--spacing-4);       /* 16px label → values */
    align-items:           stretch;                /* a row's two tiles match in height */
  }

  /* A long competitor name wraps; Smith.ai's tile stays one line tall,
     level with the name's last line. */
  .comparison-table__row--head {
    padding:     0 0 var(--spacing-2);
    align-items: end;
  }

  /* The header's empty "Feature" cell takes no line of its own. */
  .comparison-table__row--head > .comparison-table__cell--label {
    position: absolute;
    padding:  0;
  }

  .comparison-table__row > .comparison-table__cell--label {
    grid-column:    1 / -1;
    padding:        10px 0;                        /* no token */
    font-weight:    var(--font-weight-medium);
  }

  .comparison-table__row > .comparison-table__cell:not(.comparison-table__cell--label) {
    padding: 10px 0;                               /* the competitor's sit straight on the panel */
  }

  .comparison-table__row > .comparison-table__cell.comparison-table__cell--smith:not(.comparison-table__cell--label) {
    padding-inline: var(--spacing-3);              /* 10 / 12 */
    background:     var(--card);
    border-radius:  var(--radius-md);              /* 16 */
  }

  .comparison-table__name {
    font-size:   var(--font-size-lg);              /* 18/28 */
    line-height: var(--line-height-lg);
  }

  /* The mark over the text, so the copy gets the column's full width. */
  .comparison-table__value {
    flex-direction: column;
    align-items:    flex-start;
  }

  .comparison-table__mark-label {
    position: static;
    width:    auto;
    height:   auto;
    overflow: visible;
    clip:     auto;
  }

  .comparison-table__group-heading {
    height: 40px;
  }

  .comparison-table__group + .comparison-table__group {
    margin-top: var(--spacing-8);                  /* 32px */
  }
}

