.why {
  padding-block: clamp(60px, 9vh, 140px);
  text-align: center;
  position: relative;
  /* visible so clouds can bleed into adjacent sections; main's overflow:hidden
     prevents any horizontal scroll at the page level. */
  overflow: visible;
  isolation: isolate;      /* contain z-index stacking for the cloud layer */
}

@media (max-width: 720px) {
  .why { padding-block: clamp(40px, 7vh, 100px); }
}

/* Decorative cloud silhouettes in the negative space flanking the
   comparison card. Subtle, faint, scaled small — depth without distraction. */
.why__cloud {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: -1;
  height: auto;
}

/* Left-side clouds */
.why__cloud--l1 { top:  18%; left: -4%;  width: 26%; max-width: 460px; opacity: 0.32; }
.why__cloud--l2 { top:  46%; left:  2%;  width: 20%; max-width: 380px; opacity: 0.25; }
.why__cloud--l3 { top:  72%; left: -3%;  width: 24%; max-width: 420px; opacity: 0.28; }

/* Right-side clouds */
.why__cloud--r1 { top:  16%; right: -2%; width: 24%; max-width: 420px; opacity: 0.28; }
.why__cloud--r2 { top:  50%; right: -5%; width: 28%; max-width: 500px; opacity: 0.35; }
.why__cloud--r3 { top:  78%; right: 1%;  width: 19%; max-width: 340px; opacity: 0.22; }

/* Foreground cloud overlapping the bottom of the comparison card — mirrors
   the hero's lower cloud feel. Sits IN FRONT of the table card. */
.why__cloud--front {
  left: -20%;
  bottom: calc(-25% - 30px);
  width: 56%;
  max-width: 820px;
  opacity: 0.85;
  z-index: 2; /* above the card */
}

/* Hide on mobile — the card already fills the viewport width so clouds
   would either clip awkwardly or peek behind the table. */
@media (max-width: 860px) {
  .why__cloud { display: none; }
}

.why__intro {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why__heading {
  font-size: clamp(46px, 5vw, 70px);
  margin-top: 12px;
  text-align: center;
}

.why__sub {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-text);
  max-width: 720px;
}

.why__sub strong { font-weight: 700; }

/* Orange inline links — "Try it today for free", "Share this page" */
.why__link,
.why__share {
  color: var(--c-orange);
  font-weight: 700;
  border-bottom: 2px solid var(--c-orange);
  transition: opacity 200ms var(--ease-out);
}
.why__link:hover,
.why__share:hover { opacity: 0.75; }

/* .why__share is a real <button> now so it can fire navigator.share /
   clipboard.writeText. Strip the default button chrome to make it visually
   identical to the inline anchor it replaced. */
.why__share {
  background: none;
  padding: 0;
  cursor: pointer;
  /* Inherit family/size/line-height from the surrounding actions row, but
     leave font-weight alone so the 700 set in the .why__link/.why__share
     rule above still wins. (`font: inherit` would have wiped that.) */
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  /* keep the bottom border supplied by the rule above */
  border: 0;
  border-bottom: 2px solid var(--c-orange);
}

/* Two label spans render server-side; CSS hides whichever doesn't match the
   current capability so the right label paints on first frame (no JS-driven
   text swap, no flash). Matches the matchMedia query in share-page.js. */
.why__share-label--desktop { display: none; }
@media (hover: hover) and (pointer: fine) {
  .why__share-label--mobile  { display: none; }
  .why__share-label--desktop { display: inline; }
}

/* ============================================================
   Comparison table (coded — replaces the SVG first-pass)
   - White card, rounded, subtle shadow
   - Feature column sticks on horizontal scroll (mobile)
   ============================================================ */

.comparison {
  margin: clamp(40px, 6vh, 80px) auto 0;
  max-width: 1130px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.06);
  overflow: hidden; /* clips inner scroll to rounded corners */
  text-align: left;
}

.comparison__wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison__table {
  width: 100%;
  min-width: 760px; /* forces horizontal scroll on narrow screens */
  /* `separate` (with 0 spacing) avoids the well-known browser bugs where
     position: sticky on table cells doesn't work under border-collapse: collapse. */
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

/* Column widths — feature col wider, comparison cols equal */
.comparison__col--feature { width: 40%; }

@media (max-width: 760px) {
  /* On mobile, tighten the feature column so more of the comparison columns
     are visible when the user lands at scroll=0. */
  .comparison__col--feature { width: 180px; }
}

/* Cell base */
.comparison__table th,
.comparison__table td {
  padding: 16px 12px;
  font-size: 14px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(57, 93, 127, 0.08);
}
.comparison__table tbody tr:last-child th,
.comparison__table tbody tr:last-child td { border-bottom: none; }

/* Column headers (thead) */
.comparison__head {
  padding-block: 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  border-bottom: 1px solid rgba(57, 93, 127, 0.12);
  background: #fff;
  white-space: nowrap;
}
.comparison__head--feature {
  text-align: left;
  padding-left: 24px;
  /* Stays pinned at left when the user scrolls the comparison columns. */
  position: sticky;
  left: 0;
  z-index: 2; /* above tbody sticky cells (z: 1) — top-left corner */
  background: #fff;
}
.comparison__head--brand img {
  display: inline-block;
  vertical-align: middle;
  height: 18px;
  width: auto;
}

/* Row headers (feature names) — sticky to the left when scrolling */
.comparison__table tbody th[scope="row"] {
  padding-left: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  text-align: left;
  background: #fff;
  position: sticky;
  left: 0;
  z-index: 1;
}

/* Body data cells — centered */
.comparison__table tbody td {
  text-align: center;
  color: var(--c-text);
}

/* Category rows — sage tint across the row, sage text in the (sticky) first cell.
   th holds the label and pins to the left; the four empty tds carry the tint
   across the rest of the row. */
.comparison__category th,
.comparison__category td {
  /* Solid (no alpha) so the sticky <th> doesn't visually darken when it slides
     over the <td>s on horizontal scroll. */
  background: #F1F9F1;
  border-bottom: none;
}
.comparison__category th {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-sage);
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 1;
}

/* ── Marks ─────────────────────────────────────────────────── */

.comparison__check::before,
.comparison__cross::before {
  display: inline-block;
  line-height: 1;
  font-weight: 700;
  font-size: 20px;
}
.comparison__check::before {
  content: '\2713'; /* heavy check */
  color: var(--c-text);
}
.comparison__cross::before {
  content: '\2715'; /* multiplication x */
  color: rgba(57, 93, 127, 0.28);
  font-weight: 400;
}

.comparison__small {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-microcopy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Inline plan-tier qualifier next to a feature label. Lets the comparison
   table show a checkmark but flag which plans actually unlock the row. */
.comparison__plan-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
  white-space: nowrap;
}

/* On wider screens, the sticky cells still need an opaque background — left
   side of the table sometimes shows a hairline through the sticky cell where
   the underlying row borders pass under it. Solved by giving sticky cells a
   subtle right shadow that hints at the freeze on mobile scroll, hidden on wide. */
@media (min-width: 760px) {
  .comparison__table tbody th[scope="row"],
  .comparison__category th { box-shadow: none; }
}
@media (max-width: 759.98px) {
  .comparison__table tbody th[scope="row"],
  .comparison__category th {
    box-shadow: 4px 0 8px -6px rgba(0, 0, 0, 0.12);
  }
}

/* ── CTA row below the table ──────────────────────────────── */

.why__actions {
  margin-top: clamp(36px, 5vh, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.why__actions-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.why__microcopy {
  font-size: var(--fs-micro);
  color: var(--c-microcopy);
}
