/* Compatibility layer for compare content that intentionally lives outside
 * .compare-shell (for example the legacy related-search section). */
.compare-hero h1,
.compare-shell h2,
.compare-shell h3,
.compare-methodology h2,
.faq-item h3,
.pricing-card h3,
.proof-artifact h3,
.meshy-existing-coverage h2,
.meshy-existing-coverage h3 {
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif !important;
  text-wrap: balance;
}

/* Readability and keyboard-accessibility guardrails for imported compare HTML. */
.compare-shell p,
.meshy-existing-coverage p {
  max-width: 70ch;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.65;
}

.compare-shell .lead,
.compare-shell .disclosure,
.compare-shell .evidence-links,
.compare-shell .compare-methodology,
.compare-shell .compare-sources {
  max-width: none;
}

.compare-shell a:not(.primary-cta),
.meshy-existing-coverage a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.compare-shell :where(th, td),
.compare-shell :where(p, li),
.meshy-existing-coverage :where(p, li) {
  overflow-wrap: anywhere;
}

:where(.compare-shell, .meshy-existing-coverage) :where(a, button, summary):focus-visible {
  outline: 3px solid var(--compare-accent, #b9f36b);
  outline-offset: 4px;
  border-radius: 4px;
}

.compare-link-grid-section {
  margin-top: clamp(72px, 9vw, 120px);
}

.compare-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.compare-link-card {
  display: block;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--compare-line, rgba(255, 255, 255, 0.12));
  background: var(--compare-surface, rgba(255, 255, 255, 0.035));
  color: inherit;
  text-decoration: none !important;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.compare-link-card:hover {
  border-color: var(--compare-line-strong, rgba(255, 255, 255, 0.24));
  background: var(--compare-surface-strong, rgba(255, 255, 255, 0.06));
  transform: translateY(-2px);
}

.compare-link-card__media {
  margin: -24px -24px 20px;
}

.compare-link-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.compare-link-card__group {
  display: block;
  margin-bottom: 10px;
  color: var(--compare-accent, #b9f36b);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.compare-link-card h3 {
  margin: 0;
  font: 500 clamp(22px, 2.2vw, 30px) / 1.12 var(--compare-display, Georgia, serif);
}

.compare-link-card p {
  margin: 14px 0 0;
  color: var(--compare-muted, #aaa9a0);
}

/* Shared Article hero: legacy pages without a cover still use the same two-column rhythm. */
.compare-hero {
  grid-template-columns: minmax(0, 1.28fr) minmax(260px, 0.72fr) !important;
}

.compare-hero h1 {
  width: auto !important;
  max-width: 34ch !important;
  font-size: clamp(40px, 4.2vw, 68px) !important;
  line-height: 1.02 !important;
}

.compare-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.compare-hero-meta__chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid var(--compare-line-strong, rgba(255, 255, 255, 0.16));
  border-radius: 999px;
  color: var(--compare-muted, #aaa9a0);
  font-size: 12px;
  line-height: 1.2;
}

.compare-hero-meta__chip b {
  color: var(--compare-text, #f5f5ef);
  font-weight: 700;
}

.compare-hero-visual {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--compare-line-strong, rgba(255, 255, 255, 0.16));
  border-radius: var(--compare-radius-md, 20px);
  background: linear-gradient(135deg, color-mix(in srgb, var(--compare-accent, #b9f36b) 10%, transparent), transparent 42%), var(--compare-surface, rgba(255, 255, 255, 0.035));
}

.compare-hero-visual__topline,
.compare-hero-visual__caption {
  color: var(--compare-quiet, #87877f);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.compare-hero-visual__topline {
  display: flex;
  justify-content: space-between;
}

.compare-hero-visual__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.compare-hero-visual__product {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.compare-hero-visual__product strong {
  overflow-wrap: anywhere;
  color: var(--compare-text, #f5f5ef);
  font-family: var(--compare-display, Georgia, serif);
  font-size: clamp(17px, 1.7vw, 24px);
  font-weight: 500;
  line-height: 1.05;
  text-transform: capitalize;
}

.compare-hero-visual__product small {
  color: var(--compare-muted, #aaa9a0);
  font-size: 12px;
}

.compare-hero-visual__mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--compare-line-strong, rgba(255, 255, 255, 0.2));
  border-radius: 14px;
  color: var(--compare-accent, #b9f36b);
  font-size: 20px;
  font-weight: 800;
}

.compare-hero-visual__product--other .compare-hero-visual__mark {
  color: var(--compare-text, #f5f5ef);
}

.compare-hero-visual__connector {
  color: var(--compare-accent, #b9f36b);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

@media (max-width: 680px) {
  .compare-link-grid {
    grid-template-columns: 1fr;
  }

  .compare-hero {
    grid-template-columns: 1fr !important;
  }

  .compare-hero h1 {
    max-width: 20ch !important;
    font-size: clamp(38px, 11vw, 56px) !important;
  }

  .compare-hero-visual {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  :where(.compare-shell, .meshy-existing-coverage) *,
  :where(.compare-shell, .meshy-existing-coverage) *::before,
  :where(.compare-shell, .meshy-existing-coverage) *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 861px) {
  .compare-shell h2 {
    max-width: 920px;
    font-size: clamp(40px, 4.2vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  .compare-workflow-proof {
    grid-template-columns: minmax(420px, 0.82fr) minmax(0, 1.18fr);
  }

  .compare-result-proof {
    grid-template-columns: minmax(420px, 0.82fr) minmax(0, 1.18fr);
  }

  .compare-methodology {
    grid-template-columns: minmax(420px, 1.1fr) minmax(280px, 0.9fr);
  }
}

.meshy-existing-coverage {
  width: min(1120px, calc(100% - 40px));
  margin: clamp(72px, 9vw, 128px) auto 0;
  padding: 0 0 clamp(72px, 9vw, 128px);
  border-top: 1px solid var(--compare-line-strong, rgba(255, 255, 255, 0.14));
}

.meshy-existing-coverage__inner {
  width: min(100%, 1000px);
  margin: 0 auto;
  padding-top: clamp(28px, 4vw, 48px);
}

.meshy-existing-coverage__eyebrow {
  margin: 0 0 18px;
  color: var(--compare-accent, #b9f36b);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.meshy-existing-coverage h2 {
  max-width: 1000px;
  margin: 0 0 22px;
  color: var(--compare-ink, #f5f5ef);
  font: 500 clamp(34px, 4.2vw, 52px) / 1.08 var(--compare-display, monospace);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.meshy-existing-coverage__inner > p:not(.meshy-existing-coverage__eyebrow) {
  max-width: 700px;
  margin: 0;
  color: var(--compare-muted, #aaa9a0);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
}

.meshy-existing-coverage__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.meshy-existing-coverage__item {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--compare-line, rgba(255, 255, 255, 0.12));
  background: var(--compare-surface, rgba(255, 255, 255, 0.035));
}

.meshy-existing-coverage__item h3 {
  margin: 0 0 12px;
  color: var(--compare-ink, #f5f5ef);
  font: 500 clamp(21px, 2.2vw, 29px) / 1.15 var(--compare-display, monospace);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.meshy-existing-coverage__item p {
  margin: 0;
  color: var(--compare-muted, #aaa9a0);
  font-size: 15px;
  line-height: 1.65;
}

@media (max-width: 680px) {
  .meshy-existing-coverage {
    width: min(100% - 28px, 1120px);
    margin-top: 72px;
  }

  .meshy-existing-coverage__inner {
    padding-top: 28px;
  }

  .meshy-existing-coverage h2 {
    max-width: 100%;
    font-size: clamp(32px, 9vw, 46px);
    line-height: 1.08;
  }

  .meshy-existing-coverage__items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .compare-hero h1 {
    font-size: clamp(42px, 11vw, 68px);
    line-height: 0.98;
  }

  .compare-shell h2 {
    font-size: clamp(32px, 8.5vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  .compare-shell h3 {
    font-size: clamp(20px, 5vw, 28px);
    line-height: 1.16;
  }
}

/* Article rhythm: tighten the long-form scan without flattening its hierarchy. */
.compare-shell[data-compare-template='article'] {
  padding-bottom: clamp(56px, 7vw, 96px);
}

.compare-shell[data-compare-template='article'] .compare-hero {
  min-height: 560px;
  gap: clamp(28px, 4.5vw, 64px);
  padding-block: clamp(56px, 7vw, 100px) clamp(46px, 6vw, 76px);
}

.compare-shell[data-compare-template='article'] > section:not(.compare-hero) {
  margin-top: clamp(42px, 4.2vw, 66px);
}

.compare-shell[data-compare-template='article'] h2 {
  margin-bottom: 22px;
}

.compare-shell[data-compare-template='article'] .eyebrow {
  gap: 9px;
  margin-bottom: 14px;
}

.compare-shell[data-compare-template='article'] .lead {
  margin-top: 20px;
}

.compare-shell[data-compare-template='article'] .disclosure {
  margin-block: 16px 18px;
}

.compare-shell[data-compare-template='article'] .compare-quick-decision,
.compare-shell[data-compare-template='article'] .compare-advantages {
  column-gap: 0;
}

.compare-shell[data-compare-template='article'] :is(.quick-card, .advantage-card) {
  min-height: 220px;
  padding: 22px 22px 20px 0;
}

.compare-shell[data-compare-template='article'] :is(.quick-card, .advantage-card) h3 {
  margin: 28px 0 10px;
}

.compare-shell[data-compare-template='article'] :is(.quick-card, .advantage-card) + :is(.quick-card, .advantage-card) {
  padding-left: 22px;
}

.compare-shell[data-compare-template='article'] .compare-matrix tbody :where(th, td) {
  padding: 14px 18px;
}

.compare-shell[data-compare-template='article'] .compare-workflow-proof {
  row-gap: 18px;
}

.compare-shell[data-compare-template='article'] .proof-artifact {
  padding-block: 18px;
}

.compare-shell[data-compare-template='article'] .compare-result-proof {
  gap: 18px;
}

.compare-shell[data-compare-template='article'] .compare-pricing .pricing-card {
  min-height: 220px;
  padding: 24px;
}

.compare-shell[data-compare-template='article'] .pricing-card h3 {
  margin-bottom: 22px;
}

.compare-shell[data-compare-template='article'] :is(.compare-best-fit ul, .compare-migration ol) {
  margin-top: 18px;
}

.compare-shell[data-compare-template='article'] :is(.compare-best-fit li, .compare-migration li) {
  padding-block: 11px;
}

.compare-shell[data-compare-template='article'] .faq-item {
  gap: 28px;
  padding-block: 18px;
}

.compare-shell[data-compare-template='article'] .final-cta {
  min-height: 340px;
  padding: clamp(28px, 5vw, 54px);
}

@media (max-width: 860px) {
  .compare-shell[data-compare-template='article'] .compare-hero {
    min-height: 0;
    gap: 28px;
    padding-block: 46px 40px;
  }

  .compare-shell[data-compare-template='article'] > section:not(.compare-hero) {
    margin-top: clamp(34px, 7vw, 48px);
  }

  .compare-shell[data-compare-template='article'] :is(.quick-card, .advantage-card) {
    padding: 20px 20px 18px 0;
  }

  .compare-shell[data-compare-template='article'] :is(.quick-card, .advantage-card) + :is(.quick-card, .advantage-card) {
    padding-left: 20px;
  }

  .compare-shell[data-compare-template='article'] .faq-item {
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .compare-shell[data-compare-template='article'] .compare-hero {
    gap: 24px;
    padding-block: 34px 32px;
  }

  .compare-shell[data-compare-template='article'] :is(.quick-card, .advantage-card, .pricing-card) {
    padding: 18px 0;
  }

  .compare-shell[data-compare-template='article'] :is(.quick-card, .advantage-card) + :is(.quick-card, .advantage-card) {
    padding-left: 0;
  }

  .compare-shell[data-compare-template='article'] .compare-matrix tbody :where(th, td) {
    padding: 12px 14px;
  }

  .compare-shell[data-compare-template='article'] .final-cta {
    min-height: 300px;
  }
}

/* Keep the editorial source note visually aligned with its source links. */
.compare-shell .disclosure {
  font-size: 12px;
  line-height: 1.5;
}

/* The footer story mark must not depend on imported per-page inline CSS. */
/* Imported page-level styles are emitted after this stylesheet; scope the
 * shared card more tightly so its square mark and title cannot overlap. */
.seele-site-footer .seele-footer__brand > .seele-footer__story {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  margin-top: 22px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--seele-line-2, rgba(235, 239, 234, 0.18));
  border-radius: 12px;
  color: var(--seele-ink-1, #f1f3ec);
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.seele-site-footer .seele-footer__brand > .seele-footer__story:hover {
  transform: translateY(-1px);
  border-color: var(--seele-line-1, rgba(235, 239, 234, 0.34));
  background-color: rgba(235, 239, 234, 0.04);
}

.seele-footer__story-logo {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  padding: 5px 7px;
  border-radius: 7px;
  background: #f5f6f3;
}

.seele-footer__story-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.seele-footer__story-title {
  min-width: 0;
  color: var(--seele-ink-1, #f1f3ec);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.seele-footer__story-arrow {
  margin-left: 2px;
  color: var(--seele-ink-3, #a2a9a1);
  font-size: 11px;
}

@media (prefers-reduced-motion: reduce) {
  .seele-footer__story {
    transition: none;
  }
}

/* Article decision modules: keep the data-led hierarchy visible instead of
 * forcing single-card content into multi-column shells. */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.hero-actions .primary-cta {
  margin-top: 0;
}

.secondary-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--compare-line-strong, rgba(255, 255, 255, 0.2));
  border-radius: var(--seele-r-2, 10px);
  color: var(--compare-text, #f5f5ef) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.secondary-cta:hover {
  background: var(--compare-surface-strong, rgba(255, 255, 255, 0.06));
  border-color: var(--compare-accent, #b9f36b);
  transform: translateY(-1px);
}

.compare-hero-meta {
  margin-top: 16px;
}

.compare-verdict__highlights {
  display: grid;
  grid-column: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.verdict-highlight {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid var(--compare-line, rgba(255, 255, 255, 0.12));
  border-radius: var(--compare-radius-sm, 14px);
  background: color-mix(in srgb, var(--compare-surface) 82%, transparent);
}

.verdict-highlight > span {
  color: var(--compare-accent, #b9f36b);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.verdict-highlight > strong {
  color: var(--compare-muted, #aaa9a0);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.compare-pricing {
  display: block !important;
  padding: clamp(28px, 5vw, 52px) !important;
  border-radius: var(--compare-radius-md, 20px) !important;
}

.compare-pricing > h2 {
  max-width: 28ch;
  margin: 0 0 22px;
}

.compare-pricing .pricing-card {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
}

.compare-pricing .pricing-card p {
  max-width: 76ch;
  margin: 0;
}

.compare-methodology--compact {
  display: block;
}

.compare-methodology--compact h2 {
  max-width: 100%;
  margin-bottom: 22px;
}

.compare-methodology--compact > p {
  max-width: 76ch;
}

.compare-methodology__limits,
.compare-methodology__sources {
  grid-column: auto;
}

.compare-methodology__limits h3,
.compare-methodology__sources h3 {
  margin: 24px 0 10px;
  color: var(--compare-accent, #b9f36b);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.compare-methodology__limits ul {
  margin: 0;
  padding-left: 20px;
  color: var(--compare-muted, #aaa9a0);
}

.compare-methodology__sources .evidence-links {
  margin-top: 0;
}

.final-cta {
  min-height: 330px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 36px;
  justify-content: initial !important;
  padding: clamp(34px, 6vw, 64px) !important;
}

.final-cta__copy,
.final-cta__actions {
  position: relative;
  z-index: 1;
}

.final-cta__copy h2 {
  max-width: 18ch;
}

.final-cta__copy p {
  margin-bottom: 0;
}

.final-cta__actions {
  align-self: end;
}

@media (max-width: 860px) {
  .compare-verdict__highlights {
    grid-column: 1;
  }

  .final-cta {
    grid-template-columns: 1fr;
  }

  .final-cta__actions {
    align-self: start;
  }
}

@media (max-width: 720px) {
  .compare-verdict__highlights {
    grid-template-columns: 1fr;
  }

  .compare-matrix :where(th, td) {
    overflow-wrap: normal;
    word-break: normal;
  }

  .compare-matrix tbody th {
    white-space: normal;
  }

  .final-cta {
    min-height: 280px;
    gap: 24px;
  }
}

/* Unified editorial polish for every structured compare template. */
:where(.compare-shell, .seele-site-footer) {
  --compare-radius-sm: 14px;
  --compare-radius-md: 20px;
  --compare-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.compare-hero {
  grid-template-columns: minmax(0, 1.24fr) minmax(280px, 0.76fr);
}

.compare-hero:not(:has(.compare-cover img)) {
  grid-template-columns: minmax(0, 1fr);
}

.compare-hero:has(.compare-cover img) {
  grid-template-columns: minmax(0, 1.42fr) minmax(260px, 0.58fr);
}

.compare-hero h1,
.compare-shell h2,
.compare-shell h3,
.faq-item h3,
.pricing-card h3,
.proof-artifact h3 {
  font-family: var(--compare-display) !important;
  font-weight: 500;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}

.compare-hero h1 {
  max-width: 1040px;
  font-size: clamp(46px, 6.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.compare-shell h2 {
  max-width: 1080px;
  font-size: clamp(35px, 4.25vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.compare-shell h3 {
  line-height: 1.16;
}

/* Editorial comparison prose needs a wider measure than card copy. */
.compare-shell > section:not(.compare-hero) > p,
.compare-verdict > p {
  max-width: min(84ch, 100%);
}

.compare-quick-decision,
.compare-advantages {
  gap: 16px;
  border-top: 0;
}

.quick-card,
.advantage-card,
.pricing-card,
.compare-best-fit,
.compare-migration,
.faq-item,
.compare-matrix {
  border: 1px solid var(--compare-line);
  border-radius: var(--compare-radius-md);
  background: color-mix(in srgb, var(--compare-surface) 88%, transparent);
}

.quick-card,
.advantage-card {
  min-height: 240px;
  padding: 28px;
  border-bottom: 1px solid var(--compare-line);
  transition: transform 180ms var(--compare-ease), border-color 180ms ease, background 180ms ease;
}

.quick-card + .quick-card,
.advantage-card + .advantage-card {
  padding-left: 28px;
  border-left: 1px solid var(--compare-line);
}

.quick-card:hover,
.advantage-card:hover,
.pricing-card:hover {
  border-color: var(--compare-line-strong);
  background: var(--compare-surface-strong);
  transform: translateY(-3px);
}

.pricing-card {
  min-height: 230px;
  transition: transform 180ms var(--compare-ease), border-color 180ms ease, background 180ms ease;
}

.pricing-card + .pricing-card {
  border-left: 1px solid var(--compare-line);
}

.compare-best-fit,
.compare-migration {
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease;
}

.compare-best-fit:hover,
.compare-migration:hover {
  border-color: var(--compare-line-strong);
  background: var(--compare-surface-strong);
}

.compare-matrix {
  overflow: auto;
  background: color-mix(in srgb, var(--compare-surface) 72%, transparent);
}

.compare-matrix table {
  overflow: hidden;
  border-radius: var(--compare-radius-md);
}

.faq-item {
  padding: 26px 28px;
  margin-top: 12px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms var(--compare-ease);
}

.faq-item:hover {
  border-color: var(--compare-line-strong);
  background: color-mix(in srgb, var(--compare-surface) 76%, transparent);
  transform: translateX(3px);
}

.compare-link-card {
  border-radius: var(--compare-radius-md);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  transition: transform 220ms var(--compare-ease), border-color 180ms ease, background 180ms ease, box-shadow 220ms ease;
}

.compare-link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.compare-link-card:focus-visible {
  transform: translateY(-3px);
}

.compare-link-card__media {
  border-radius: 0;
}

.compare-link-card h3 {
  max-width: 28ch;
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.12;
}

.compare-link-grid-section + .compare-link-grid-section {
  margin-top: clamp(56px, 7vw, 92px);
}

/* Keep Article proof headings on clear, independent rows at every breakpoint. */
.compare-shell .compare-matrix thead th {
  padding: 15px 18px;
  color: var(--compare-text);
  background: color-mix(in srgb, var(--compare-surface-strong) 72%, var(--compare-surface));
  border-bottom: 1px solid var(--compare-line-strong);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.005em;
  line-height: 1.4;
  text-transform: none;
  vertical-align: middle;
  text-wrap: pretty;
}

.compare-shell[data-compare-template='article'] .compare-matrix caption.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.compare-shell .compare-matrix thead th:nth-child(2) {
  background: color-mix(in srgb, var(--compare-accent) 8%, var(--compare-surface-strong));
}

.compare-shell .compare-workflow-proof figcaption,
.compare-shell .compare-result-proof figcaption {
  display: none;
}

.compare-shell .compare-workflow-proof > .compare-workflow-image,
.compare-shell .compare-result-proof > .compare-result-image {
  width: min(100%, 900px);
  justify-self: center;
  margin: 20px auto 0;
  overflow: hidden;
  border: 1px solid var(--compare-line-strong);
  border-radius: 18px;
}

.compare-shell .compare-workflow-proof > .compare-workflow-image img,
.compare-shell .compare-result-proof > .compare-result-image img {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
  border: 0;
  border-radius: inherit;
}

.compare-shell .compare-workflow-proof {
  grid-template-columns: minmax(0, 1fr);
}

.compare-shell .compare-workflow-proof > h2,
.compare-shell .compare-workflow-proof > p,
.compare-shell .compare-workflow-proof > .evidence-links,
.compare-shell .compare-workflow-proof > .compare-workflow-image,
.compare-shell .compare-workflow-proof > .proof-artifact {
  grid-column: 1 / -1;
}

.compare-shell .compare-workflow-proof > h2,
.compare-shell .compare-methodology > h2 {
  max-width: none;
  white-space: nowrap;
  text-wrap: nowrap;
}

.compare-shell .compare-workflow-proof > p {
  max-width: min(84ch, 100%);
  margin: 0;
}

.compare-shell .compare-result-proof {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.compare-shell .compare-result-proof > div {
  min-width: 0;
}

.compare-shell .compare-result-proof .eyebrow {
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  text-wrap: nowrap;
}

.compare-shell .compare-result-proof h2 {
  max-width: none;
  margin-bottom: 16px;
  font-size: clamp(19px, 2.6vw, 34px);
  line-height: 1.15;
  white-space: nowrap;
  text-wrap: nowrap;
}

.compare-shell .compare-result-proof > div > p:not(.eyebrow) {
  max-width: 84ch;
  margin-top: 0;
}

.compare-shell .compare-methodology {
  grid-template-columns: minmax(0, 1fr);
}

.compare-shell .compare-methodology > h2,
.compare-shell .compare-methodology > p,
.compare-shell .compare-methodology > .evidence-links {
  grid-column: 1 / -1;
}

.compare-shell .compare-methodology > h2 {
  font-size: clamp(22px, 3.4vw, 42px);
  line-height: 1.12;
}

.compare-shell .compare-evidence > details > summary {
  white-space: nowrap;
  text-wrap: nowrap;
}

@media (max-width: 720px) {
  .compare-shell .compare-matrix tbody td::before {
    font-size: 12px;
    letter-spacing: 0.07em;
  }

  .compare-shell .compare-workflow-proof > h2 {
    font-size: clamp(28px, 8vw, 42px);
  }

  .compare-shell .compare-methodology > h2 {
    font-size: clamp(21px, 6vw, 30px);
  }
}

@media (max-width: 860px) {
  .compare-hero {
    grid-template-columns: 1fr;
  }

  .compare-hero:has(.compare-cover img) {
    grid-template-columns: 1fr;
  }

  .compare-hero h1 {
    max-width: 900px;
  }

  .quick-card,
  .advantage-card,
  .pricing-card {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .compare-hero h1 {
    font-size: clamp(42px, 11vw, 68px);
    line-height: 1;
  }

  .compare-shell h2 {
    max-width: 100%;
    font-size: clamp(32px, 8.5vw, 50px);
  }

  .quick-card,
  .advantage-card,
  .pricing-card,
  .faq-item {
    padding: 22px;
  }
}

/* Article FAQs use a readable question-then-answer rhythm, not split cards. */
.compare-shell[data-compare-template='article'] .compare-faq {
  border-top: 0;
}

.compare-shell[data-compare-template='article'] .compare-faq .faq-item {
  display: block;
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid var(--compare-line);
  border-radius: 0;
  background: transparent;
  transform: none;
}

.compare-shell[data-compare-template='article'] .compare-faq .faq-item:hover {
  border-color: var(--compare-line-strong);
  background: transparent;
  transform: none;
}

.compare-shell[data-compare-template='article'] .compare-faq .faq-item h3 {
  max-width: 72ch;
  margin: 0 0 9px;
  color: var(--compare-text);
  font-family: var(--compare-body) !important;
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.compare-shell[data-compare-template='article'] .compare-faq .faq-item > div {
  max-width: 84ch;
}

.compare-shell[data-compare-template='article'] .compare-faq .faq-item p {
  margin: 0;
}

/* Keep the Article hero concise while giving long titles the full copy column. */
.compare-shell[data-compare-template='article'] .compare-hero-copy {
  min-width: 0;
}

.compare-shell[data-compare-template='article'] .compare-hero h1 {
  max-width: none !important;
  font-size: clamp(38px, 3.8vw, 58px) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.045em;
  text-wrap: pretty;
}

.compare-shell[data-compare-template='article'] .compare-hero-copy .lead {
  max-width: 74ch;
  font-size: clamp(16px, 1vw, 17px);
}

.compare-shell[data-compare-template='article'] .compare-verdict {
  grid-template-columns: minmax(160px, 0.4fr) minmax(0, 1.6fr);
  column-gap: clamp(20px, 3vw, 44px);
}

.compare-shell[data-compare-template='article'] .compare-quick-decision,
.compare-shell[data-compare-template='article'] .compare-advantages {
  gap: clamp(12px, 1.4vw, 18px);
}

.compare-shell[data-compare-template='article'] :is(.quick-card, .advantage-card) {
  padding: 22px;
}

.compare-shell[data-compare-template='article'] :is(.quick-card, .advantage-card) + :is(.quick-card, .advantage-card) {
  padding-left: 22px;
}

@media (max-width: 860px) {
  .compare-shell[data-compare-template='article'] .compare-hero h1 {
    font-size: clamp(36px, 6vw, 52px) !important;
  }

  .compare-shell[data-compare-template='article'] :is(.quick-card, .advantage-card) {
    padding: 20px;
  }

  .compare-shell[data-compare-template='article'] :is(.quick-card, .advantage-card) + :is(.quick-card, .advantage-card) {
    padding-left: 20px;
  }
}

@media (max-width: 720px) {
  .compare-shell[data-compare-template='article'] .compare-hero h1 {
    font-size: clamp(34px, 9vw, 44px) !important;
  }

  .compare-shell[data-compare-template='article'] :is(.quick-card, .advantage-card) {
    padding: 18px;
  }

  .compare-shell[data-compare-template='article'] :is(.quick-card, .advantage-card) + :is(.quick-card, .advantage-card) {
    padding-left: 18px;
  }
}
