/* ==========================================================================
   Answer HQ — pricing.css
   Styles for the detailed pricing page (/pricing) only.
   Loaded after site.css; uses its design tokens. Shared pricing components
   (.pricing-toggle, .pricing-cards, .pricing-card) are styled by site.css —
   nothing here restyles them, so the homepage breakpoint behavior (panel
   widths Desktop 1219 / Tablet 690 / Mobile 388, Popular card first <=1279)
   applies to this page unchanged.

   Breakpoint system (same as the Framer original / site.css):
     layout:      XL >=1920 | base 1280-1919.98 | tablet 810-1279.98 | phone <=809.98
     typography:  base >=1200 | tablet 810-1199 | phone <=809
   (Typography deliberately uses the narrower 810-1199 / <=809 windows — in the
   1200-1279.98 range layout is "tablet" but type stays desktop-size.)
   Sections:
     1. Page hero (h1 styled like the site h2 preset: 42 / 42 / 28)
     2. Comparison table (full table >=810; scroll container + sticky
        first column <=809)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page hero — the copied .pricing section leads the page
   -------------------------------------------------------------------------- */
/* Only padding-top is overridden per layout window (the section is the page
   hero, so the homepage's 120/80px top paddings would be too tall under the
   navbar); side + bottom paddings inherit from site.css so the page always
   matches the homepage pricing section. */
.pricing--page { padding-top: 64px; }

/* h1 element for the page, visually identical to the landing pricing h2
   (h2 preset: 42px/1.2, -0.03em, 500 Urbanist). Beats the element-level h1
   rules in site.css at every width. */
.pricing--page > h1 {
  position: relative;
  z-index: 1;
  text-align: center;
  font: 500 42px/1.2 var(--font-heading);
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

/* Safety clamp: the shared card panel uses fixed widths (1219/690/388) from
   site.css; on viewports narrower than the panel this prevents the fixed
   width from causing page-level horizontal scroll. */
.pricing--page .pricing-cards { max-width: 100%; }

/* visually hidden (a11y) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   2. Comparison table
   -------------------------------------------------------------------------- */
.compare {
  /* keep the heading clear of the sticky header when scrolled to via #compare */
  scroll-margin-top: 100px;
  --compare-rule: rgba(153, 153, 153, 0.22);
  --compare-pro-tint: rgba(242, 109, 15, 0.045);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 20px var(--pad-section-x) 80px;
  display: grid;
  gap: 40px;
}
.compare > h2 { text-align: center; }

/* scroll container doubles as the card surface; the page never scrolls
   horizontally — the table scrolls inside this wrapper instead (only ever
   needed <=809, where the table gets a min-width) */
.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* grid/flex children default to min-width:auto, which would let the wide
     table push the whole page sideways instead of scrolling internally */
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-pricing);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

/* no min-width at >=810: the full table always fits the section, no scroll */
.compare-table {
  width: 100%;
  border-collapse: separate; /* required for the <=809 sticky column */
  border-spacing: 0;
  font: 400 15px/1.5 var(--font-body);
  color: var(--text-primary);
}

/* column sizing + subtle highlight on the Popular plan (row backgrounds paint
   above col backgrounds, so group-label bands stay clean) */
.compare-table .col-feature { width: 34%; }
.compare-table .col-basic,
.compare-table .col-pro,
.compare-table .col-growth { width: 22%; }
.compare-table .col-pro { background: var(--compare-pro-tint); }

/* ---- plan header row ---- */
.compare-table thead th {
  padding: 28px 20px 20px;
  text-align: center;
  vertical-align: bottom;
  border-bottom: 1px solid var(--compare-rule);
}
.compare-table thead th:first-child { text-align: left; }

.col-plan { font: 700 20px/1.3 var(--font-body); color: var(--text-strong); }
.col-price { margin-top: 2px; font: 500 15px/1.4 var(--font-body); color: var(--text-muted); }

.compare-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-lg);
  background: rgba(242, 109, 15, 0.1);
  font: 500 13px/1.4 var(--font-body);
  color: var(--accent);
}

/* ---- group label rows ---- */
.compare-table .compare-group th {
  padding: 28px 24px 10px;
  text-align: left;
  font: 500 12px/12px var(--font-ui);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-slate-label);
}
/* label text is wrapped in a span so it can pin independently of its
   colspan=4 cell inside the <=809 scroll container */
.compare-group-label { display: inline-block; }

/* ---- feature + value rows ---- */
.compare-table tbody th[scope="row"] {
  padding: 14px 20px 14px 24px;
  text-align: left;
  vertical-align: top;
  font: 500 15px/1.5 var(--font-body);
  color: var(--text-primary);
}
.feature-note {
  display: block;
  margin-top: 2px;
  font: 400 13px/1.5 var(--font-body);
  color: var(--text-muted);
}

.compare-table tbody td {
  padding: 14px 20px;
  text-align: center;
  vertical-align: middle;
  font: 500 15px/1.5 var(--font-body);
  color: var(--text-primary);
}

/* hairline rules between rows; none directly under a group label */
.compare-table tbody tr + tr td,
.compare-table tbody tr + tr th {
  border-top: 1px solid var(--compare-rule);
}
.compare-table tbody tr.compare-group + tr td,
.compare-table tbody tr.compare-group + tr th {
  border-top: 0;
}

/* included / not-included marks (same circle-check as .plan-features) */
.compare-check {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  color: var(--text-strong);
}
.compare-dash {
  display: inline-block;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--border-gray);
  vertical-align: middle;
}

/* ---- CTA row ---- */
.compare-table tfoot td {
  padding: 24px 16px 28px;
  text-align: center;
  border-top: 1px solid var(--compare-rule);
}
.compare-table .btn-dark { justify-content: center; font-size: 15px; }
.compare-table .btn-dark .btn-circle { display: none; }
.compare-table .btn-dark .btn-label { flex: none; padding: 0 6px; }

/* --------------------------------------------------------------------------
   Responsive — layout windows (match the Framer page breakpoints)
   -------------------------------------------------------------------------- */

/* XL >=1920: containers narrow to 1220px with 32px gutters, mirroring the
   homepage Solution/Pricing containers at XL */
@media (min-width: 1920px) {
  .pricing--page { max-width: 1220px; }
  .compare {
    max-width: 1220px;
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* Tablet 810-1279.98 */
@media (min-width: 810px) and (max-width: 1279.98px) {
  .pricing--page { padding-top: 56px; }
}

/* Phone <=809.98 */
@media (max-width: 809.98px) {
  .pricing--page { padding-top: 48px; }

  .compare { padding: 10px 30px 60px; gap: 28px; }

  /* the table is wider than the viewport: it scrolls inside .compare-scroll
     (the page itself never scrolls horizontally) */
  .compare-table { min-width: 680px; }

  /* tighter cells */
  .compare-table thead th { padding: 22px 16px 16px; }
  .compare-table tbody th[scope="row"],
  .compare-table tbody td { padding: 12px 16px; }
  .compare-table tbody th[scope="row"] { padding-left: 20px; }
  .compare-table .compare-group th { padding: 24px 20px 8px; }
  .compare-table tfoot td { padding: 20px 12px 24px; }

  /* sticky first column: feature names stay visible while swiping through
     the plan columns. Solid background + hairline edge so scrolling content
     disappears cleanly beneath it. */
  .compare-table thead th:first-child,
  .compare-table tbody th[scope="row"],
  .compare-table tfoot td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--bg-card);
    border-right: 1px solid var(--compare-rule);
  }
  /* group labels span all 4 columns, so the cell itself cannot pin — the
     inner span sticks instead (20px = the cell's left padding, so the label
     never jumps at scroll position 0) */
  .compare-group-label {
    position: sticky;
    left: 20px;
  }
}

/* --------------------------------------------------------------------------
   Responsive — typography windows (Framer preset windows: 810-1199 / <=809).
   The h2-preset scale has no tablet step (42px down to 1200... stays 42px
   through 810-1199), so only the <=809 window changes type.
   -------------------------------------------------------------------------- */
@media (max-width: 809px) {
  /* h2 preset: 42 -> 28 */
  .pricing--page > h1 { font-size: 28px; }

  /* table type steps down one notch on the preset scale
     (20 -> 16 for headings, 15 -> 14 for body) */
  .compare-table { font-size: 14px; }
  .col-plan { font-size: 16px; }
  .col-price { font-size: 14px; }
  .compare-table tbody th[scope="row"],
  .compare-table tbody td { font-size: 14px; }
  .compare-table .btn-dark { font-size: 14px; }
}
