/* Comparison pages. Brand palette from the Appear guidelines: flat Daylight and
   Soft Linen blocks, hairline rules, one New Leaf block per page. */
.compare-page {
  --midnight: #090909;
  --daylight: #ffffff;
  --soft-linen: #f7f6ee;
  --forest-shade: #0a4d2c;
  --new-leaf: #dbff65;
  --evergreen: #007c55;
  --rule: #d8dcd7;
  --rule-soft: #e5e5e5;
  --muted: #555a57;
  --compare-space: clamp(72px, 8vw, 120px);
  --compare-gap: clamp(12px, 1.4vw, 20px);
  color: var(--midnight);
}
.compare-page :is(a, button):focus-visible { outline: 2px solid var(--evergreen); outline-offset: 3px; }

.compare-skip { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 16px; background: var(--new-leaf); color: var(--midnight); border-radius: 99px; font: 13px/1.4 var(--mono); transform: translateY(-200%); }
.compare-skip:focus { transform: none; }

.compare-main { padding-block: clamp(128px, 12vw, 176px) var(--compare-space); }
.compare-document { width: 100%; max-width: calc(10 * var(--meadow-grid)); margin-inline: auto; }

/* Hero */
.compare-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 32px; padding: 0; list-style: none; font: 13px/1.5 var(--mono); color: var(--muted); }
.compare-crumbs li { min-width: 0; }
.compare-crumbs li + li::before { content: "/"; margin-inline: 10px; color: #8b908c; }
.compare-crumbs a { color: var(--forest-shade); text-decoration: underline; text-decoration-color: #0a4d2c55; text-underline-offset: 3px; }
.compare-crumbs a:hover { text-decoration-color: currentColor; }
.compare-crumbs [aria-current] { color: var(--midnight); overflow-wrap: anywhere; }
.compare-tag { display: inline-flex; align-items: center; margin: 0 0 24px; padding: 8px 16px 9px; border-radius: 999px; background: var(--soft-linen); box-shadow: inset 0 0 0 1px var(--rule-soft); color: var(--midnight); font-size: 17px; line-height: 1; text-transform: uppercase; letter-spacing: .04em; }
.compare-hero h1 { max-width: 15ch; margin: 0; font-size: clamp(46px, calc(5.4vw + 12px), 92px); font-weight: 500; line-height: .98; letter-spacing: var(--title-tracking); overflow-wrap: break-word; }
.compare-subtitle { max-width: 40ch; margin: 24px 0 0; color: var(--muted); font-size: clamp(23px, calc(1.8vw + 2px), 30px); line-height: 1.25; }
.compare-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.compare-actions .button { min-height: 48px; height: auto; padding: 12px 24px; font-size: 14px; white-space: normal; text-align: center; }
.compare-text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--forest-shade); font: 14px/1.3 var(--mono); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #0a4d2c66; }
.compare-text-link:hover { text-decoration-color: currentColor; }

/* Review note: date and disclosure on the left, the introduction on the right. */
.compare-review { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--compare-gap) clamp(32px, 5vw, 80px); margin-top: var(--compare-space); padding-top: 28px; border-top: 1px solid var(--rule); }
.compare-reviewed { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 13px/1.5 var(--mono); color: var(--forest-shade); }
.compare-reviewed::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--evergreen); }
.compare-disclosure { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.4; }
.compare-intro { margin: 0; max-width: 46ch; font-size: clamp(23px, calc(1.7vw + 2px), 30px); line-height: 1.3; }

/* Sections */
.compare-section { margin-top: var(--compare-space); }
.compare-section-first { margin-top: clamp(48px, 5vw, 72px); }
.compare-section > h2, .compare-split h2, .compare-cta h2, .compare-closing h2 { margin: 0; font-size: clamp(34px, calc(2.8vw + 6px), 52px); font-weight: 500; line-height: 1.04; letter-spacing: var(--title-tracking); }
.compare-section > h2 { max-width: 24ch; margin-bottom: 28px; }
.compare-section-intro { max-width: 52ch; margin: -8px 0 28px; color: var(--muted); font-size: clamp(21px, calc(1.5vw + 2px), 25px); line-height: 1.4; }

/* Cards: square Soft Linen blocks, index on top, copy at the bottom. */
.compare-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--compare-gap); }
.compare-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-width: 0; min-height: 300px; padding: clamp(24px, 2.6vw, 36px); background: var(--soft-linen); }
.compare-card-index { font: 13px/1.4 var(--mono); color: var(--forest-shade); }
.compare-card h3 { margin: 0; font-size: clamp(26px, calc(1.4vw + 8px), 32px); font-weight: 500; line-height: 1.1; letter-spacing: -.4px; }
.compare-card h3 a { color: inherit; text-decoration: underline; text-decoration-color: #09090933; text-underline-offset: 4px; }
.compare-card h3 a::after { content: ""; position: absolute; inset: 0; }
.compare-card p { margin: 14px 0 0; color: var(--muted); font-size: clamp(19px, calc(.6vw + 13px), 21px); line-height: 1.4; }
.compare-card-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; color: var(--forest-shade); font: 13px/1.3 var(--mono); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #0a4d2c66; }
.compare-card-link::after { content: ""; position: absolute; inset: 0; }
.compare-card:has(a:hover) { box-shadow: inset 0 0 0 1px var(--forest-shade); }
.compare-card:has(a:hover) .compare-card-link { text-decoration-color: currentColor; }
.compare-hub-cards .compare-card { min-height: 340px; }

/* Split: heading on the left, body on the right, a hairline above. */
.compare-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px clamp(32px, 5vw, 80px); padding-top: 28px; border-top: 1px solid var(--rule); }
.compare-split p { margin: 0; max-width: 46ch; font-size: clamp(22px, calc(1.6vw + 2px), 27px); line-height: 1.38; }

/* Table: hairline rows, the Appear column marked with a New Leaf pill. */
.compare-table-wrap { border-top: 1px solid var(--midnight); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 20px; line-height: 1.4; }
.compare-table th, .compare-table td { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.compare-table thead th { font: 13px/1.4 var(--mono); color: var(--muted); font-weight: 400; }
.compare-table thead .compare-us span { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--new-leaf); color: var(--midnight); }
.compare-table tbody th { width: 28%; font-weight: 500; }
.compare-table td { color: var(--muted); }
.compare-table td.compare-us { color: var(--midnight); }

/* Sources: numbered hairline list. */
.compare-sources { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.compare-sources li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: clamp(21px, calc(1.2vw + 6px), 24px); line-height: 1.35; }
.compare-source-index { font: 13px/1.4 var(--mono); color: var(--muted); }
.compare-sources a { color: var(--forest-shade); text-decoration: underline; text-decoration-color: #0a4d2c55; text-underline-offset: 4px; overflow-wrap: anywhere; }
.compare-sources a:hover { text-decoration-color: currentColor; }
.compare-source-arrow { color: var(--muted); font-size: 18px; }

/* The page's own call to action is its one New Leaf block. */
.compare-cta { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 28px clamp(32px, 5vw, 80px); padding: clamp(28px, 4.4vw, 64px); background: var(--new-leaf); }
.compare-cta h2 { max-width: 16ch; }
.compare-cta p { margin: 0; font-size: clamp(21px, calc(1.4vw + 4px), 25px); line-height: 1.38; }
.compare-cta .compare-actions { margin-top: 24px; }
.compare-cta .compare-text-link { color: var(--midnight); text-decoration-color: #09090966; }

/* The closing band repeats the site-wide call to action on Forest Shade. */
.compare-closing { margin-top: var(--compare-space); padding: clamp(36px, 5vw, 72px); background: var(--forest-shade); color: var(--daylight); }
.compare-closing-lead { max-width: 52ch; margin: 0 0 16px; color: var(--new-leaf); font: 14px/1.5 var(--mono); }
.compare-closing h2 { max-width: 20ch; }
.compare-closing .compare-actions { margin-top: 32px; }
.compare-closing .compare-leaf-button { color: var(--midnight); background: var(--new-leaf); border-color: var(--new-leaf); }
.compare-closing .compare-leaf-button:hover { background: #e7ff99; border-color: #e7ff99; }
.compare-closing .compare-text-link { color: var(--daylight); text-decoration-color: #ffffff80; }
.compare-closing :is(a, button):focus-visible { outline-color: var(--new-leaf); }

@media (max-width: 900px) {
  .compare-review, .compare-split, .compare-cta { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .compare-page .nav-wrap { top: max(12px, env(safe-area-inset-top)); bottom: auto; }
  .compare-page .nav-wrap #site-navigation { top: calc(100% + 8px); bottom: auto; }
  .compare-main { padding-top: 104px; }
  .compare-crumbs ol { margin-bottom: 24px; font-size: 12px; }
  .compare-card, .compare-hub-cards .compare-card { min-height: 0; gap: 28px; }
  .compare-sources li { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; }
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: auto; }
  .compare-table tr { padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .compare-table th, .compare-table td { padding: 4px 0; border: 0; }
  .compare-table td::before { content: attr(data-label); display: block; font: 12px/1.5 var(--mono); color: var(--muted); }
}
@media (prefers-reduced-motion: no-preference) {
  .compare-card { transition: box-shadow .2s ease-out; }
}
