/* /compare pages. font-stretch on headings takes effect once the self-hosted
   Archivo file carries the width axis; the current file is weight-only.
   /compare pages: one reading column, one sign-up action per screen.
   Mint (#9ee6b8 on #1c3e2e) only ever marks the better number or the cheaper price. */
.compare-hero,
.compare-section,
.compare-band {
  --compare-win: var(--tr-legacy-9ee6b8, #9ee6b8);
  --compare-win-bg: var(--tr-legacy-1c3e2e, #1c3e2e);

  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  box-sizing: border-box;
}

.compare-hero h1,
.compare-section h2,
.compare-band h2 {
  font-stretch: 118%;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.compare-section h2,
.compare-band h2 { font-stretch: 110%; }

/* Hero */
.compare-hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 48px 0 48px;
}
.compare-title { display: flex; align-items: center; gap: 18px; }
.compare-logos { display: flex; flex: none; }
.compare-logos img {
  width: 48px;
  height: 48px;
  box-sizing: border-box;
  border: 3px solid var(--tr-color-surface-bg);
  border-radius: var(--tr-square, 12px);
  background: var(--tr-color-text-primary);
}
.compare-logos img + img { margin-left: -12px; }
.compare-hero h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.04;
  color: var(--tr-color-text-primary);
}
.public-wrap .compare-hero .compare-lead strong { font-weight: 650; }
.public-wrap .compare-hero .compare-lead {
  max-width: 34em;
  margin: 0;
  color: var(--tr-color-text-primary);
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 450;
  line-height: 1.5;
}


.compare-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.compare-band .compare-cta { flex-direction: column; align-items: flex-start; }
.compare-cta .btn.primary { min-height: 52px; padding-inline: 26px; font-size: 17px; font-weight: 650; }
.compare-cta-note { margin: 0; color: var(--tr-color-text-primary); font-size: 16px; font-weight: 500; line-height: 1.5; }

/* Sections */
.compare-section { padding: 0 0 72px; }
.compare-section h2 { margin: 0 0 10px; color: var(--tr-color-text-primary); font-size: clamp(26px, 3vw, 32px); line-height: 1.15; }
.public-wrap .compare-section > p { margin: 0 0 20px; color: var(--tr-color-text-primary); font-size: 18px; font-weight: 450; line-height: 1.6; }
.compare-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.compare-section-head h2 { margin: 0; }
.compare-note { margin: 16px 0 0; color: var(--tr-color-text-secondary); font-size: 15px; line-height: 1.55; }


/* Two-item comparison table. Same shape as pattern A in the shared table
   proposal: labels in small mono capitals, both items side by side; on a
   phone each row becomes its label over the two values. */
.compare-table-wrap { container-type: inline-size; min-width: 0; }
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--tr-color-text-secondary);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
.compare-table :is(th, td) {
  padding: 14px 12px;
  border: 0;
  border-bottom: 1px solid var(--tr-color-line-rule-soft);
  background: transparent;
  color: inherit;
  font-size: 16px;
  font-weight: 450;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  vertical-align: top;
}
.compare-table :is(th, td):first-child { padding-left: 0; }
.compare-table thead th {
  padding-top: 8px;
  padding-bottom: 16px;
  border-bottom-color: var(--tr-color-line-rule);
  background: var(--tr-color-surface-bg);
}
.compare-table .compare-table-label { width: 24%; }
.compare-table tbody th {
  padding-top: 17px;
  color: var(--tr-color-text-tertiary);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Consolas, monospace);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.compare-table td.is-win { background: var(--compare-win-bg); }
.compare-table a { color: var(--tr-color-link-base); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.compare-table code { font-size: 15px; overflow-wrap: anywhere; }
.compare-table .provider-identity { max-width: 100%; }
.compare-table .provider-identity-copy strong { white-space: normal; overflow-wrap: anywhere; }
/* The price row leads the table, so its numbers read as the headline. */
.compare-table .compare-row-price .compare-val { font-size: 44px; line-height: 1.1; font-weight: 650; letter-spacing: -0.02em; }
.compare-table .compare-row-price th { padding-top: 24px; }
.compare-sub { display: block; margin-top: 2px; color: var(--tr-color-text-secondary); font-size: 15px; }
.compare-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.compare-section h2.compare-table-heading { margin-bottom: 20px; }
.compare-table-section { position: relative; }
/* From tablet width up, the heading sits in the table's empty top-left
   corner, above the row labels and level with the two model names. */
@media (min-width: 700px) {
  .compare-section h2.compare-table-heading {
    position: absolute;
    top: 0;
    left: 0;
    width: 24%;
    box-sizing: border-box;
    margin: 0;
    padding: 4px 12px 0 0;
    font-size: 28px;
    line-height: 1.15;
  }
}

@container (max-width: 640px) {
  .compare-table, .compare-table thead, .compare-table tbody { display: block; }
  .compare-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
  .compare-table thead tr { border-bottom: 1px solid var(--tr-color-line-rule); }
  .compare-table thead th { padding: 8px 8px 12px; border: 0; }
  .compare-table thead th.compare-table-label { display: none; }
  .compare-table tbody tr { padding: 14px 0; border-bottom: 1px solid var(--tr-color-line-rule-soft); }
  .compare-table tbody th { grid-column: 1 / -1; padding: 0 8px 6px; border: 0; }
  .compare-table tbody th:first-child { padding-left: 8px; }
  /* Every cell sits 8px in, so the winner's box fits inside the row edges and labels and values share one left edge. */
  .compare-table tbody td { padding: 6px 8px; border: 0; }
  .compare-table tbody td.is-win { border-radius: var(--tr-square, 6px); }
}

/* Table header cells: logo, name, best-for line, copyable id */
.compare-table .compare-table-item { vertical-align: top; }
.compare-table .compare-item { display: inline-flex; align-items: flex-start; gap: 10px; color: var(--tr-color-text-primary); text-decoration: none; }
.compare-item img { width: 30px; height: 30px; border-radius: var(--tr-square, 8px); background: var(--tr-color-text-primary); flex: none; }
/* Names that wrap keep their first line level with the logo and with the
   other column's name */
.compare-item > span { padding-top: 4px; padding-top: max(0px, calc((30px - 1lh) / 2)); }
.compare-item:hover span { text-decoration: underline; text-underline-offset: 4px; }
.compare-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 6px; }
.compare-best { color: var(--tr-color-text-primary); font-size: 15px; font-weight: 450; }
.compare-id { display: inline-flex; align-items: center; gap: 2px; }
.compare-id code { color: var(--tr-legacy-f2c879, #f2c879); font-size: 14px; overflow-wrap: anywhere; }
.compare-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 36px;
  min-height: 36px;
  padding: 0 6px;
  border: 0;
  border-radius: var(--tr-square, 6px);
  background: transparent;
  color: var(--tr-color-accent-base);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.compare-copy:hover { background: var(--tr-color-surface-hover); }
.compare-copy[hidden] { display: none; }
.js-off .compare-copy { display: none; }
.compare-copy .md-copy-icon {
  display: block;
  width: 16px;
  height: 16px;
  background: var(--tr-legacy-9ee6b8, #9ee6b8);
  mask: url("/static/copy-icon.svg") center / contain no-repeat;
}
.compare-copy-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.compare-table .compare-val { display: block; color: var(--tr-color-text-primary); font-size: 17px; font-weight: 550; }
.compare-table a.compare-val { color: var(--tr-color-text-primary); text-decoration: none; }
.compare-table a.compare-val:hover { text-decoration: underline; }
.compare-table .compare-val.is-muted { color: var(--tr-color-text-tertiary); font-weight: 450; }
.compare-table .is-win .compare-val { color: var(--compare-win); }
.compare-badge {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--tr-color-accent-base);
  color: var(--tr-color-accent-ink);
  font-size: 13px;
  font-weight: 550;
}
.compare-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.compare-table .compare-item { text-decoration: none; }


/* Questions */
.compare-faq { border-top: 1px solid var(--tr-color-line-rule); }
.compare-faq details { border-bottom: 1px solid var(--tr-color-line-rule-soft); }
.compare-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 24px;
  padding: 18px 0;
  color: var(--tr-color-text-primary);
  font-size: 18px;
  font-weight: 550;
  cursor: pointer;
  list-style: none;
}
.compare-faq summary::-webkit-details-marker { display: none; }
.compare-faq summary::after { content: "+"; flex: none; color: var(--tr-color-text-tertiary); }
.compare-faq details[open] summary::after { content: "\2212"; }
.compare-faq details p { max-width: 40em; margin: -6px 0 18px; color: var(--tr-color-text-primary); font-size: 17px; font-weight: 450; line-height: 1.6; }
.compare-faq code { color: var(--tr-color-privacy-zdr-text, #e2c98a); }

/* Sideways chip row: the shared scroll chevrons (content-layout.js) show
   while more chips sit off to either side. */
.compare-chip-track {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0 0 8px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}
.compare-chip-track::-webkit-scrollbar { display: none; }
/* Link chip: a rounded pill in the body font. The brand kit's square mono
   "chip" is for copyable code values (trustedrouter/auto, zdr); these are
   links to other pages, so they read as text, with the kit's colours. */
.compare-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  padding: 0 16px;
  border: 1px solid var(--tr-color-line-rule);
  border-radius: var(--tr-radius-round);
  background: transparent;
  color: var(--tr-color-text-primary);
  font-size: 15px;
  font-weight: 450;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.compare-chip:hover,
.compare-chip:focus-visible { border-color: var(--tr-color-line-strong); background: var(--tr-color-surface-hover); }
/* Closing band */
.compare-band {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 44px 48px;
  border-radius: var(--tr-square, 16px);
  background: var(--compare-win-bg);
}
.compare-band h2 { margin: 0; color: var(--tr-color-text-primary); font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; }
.compare-band .compare-cta-note { color: var(--tr-color-text-on-photo); }
.public-wrap .compare-band .compare-band-lead { max-width: 36em; margin: 0; color: var(--tr-color-text-primary); font-size: 17px; line-height: 1.55; }


@media (max-width: 640px) {
  .compare-hero { gap: 16px; padding: 36px 0 36px; }
  .compare-title { flex-direction: column; align-items: flex-start; gap: 16px; }
  .compare-table .compare-row-price .compare-val { font-size: 30px; }
  .compare-logos img { width: 40px; height: 40px; border-radius: var(--tr-square, 10px); }
  .compare-logos img + img { margin-left: -10px; }
  .compare-hero h1 { font-stretch: 112%; }
  .compare-cta { align-items: stretch; }
  .compare-cta .btn.primary { width: 100%; justify-content: center; }
  .compare-cta-note { width: 100%; text-align: center; }
  .compare-section { padding-bottom: 44px; }
  .public-wrap .compare-section > p { font-size: 16px; }
  .compare-faq summary { font-size: 16px; padding: 14px 0; }
  .compare-faq details p { font-size: 15px; }
  .compare-chip-track { margin-right: calc(-1 * var(--compare-gutter, 0px)); }
  .compare-band { padding: 28px 22px; }
  .compare-section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}


/* The closing band ends the page: trim the page's own bottom padding so the
   band sits 48px above the footer instead of 108px. */
main.public-wrap:has(> .compare-band:last-child) { padding-bottom: 12px; }
