:root {
  --seo-sky: #82d7ff;
  --seo-mint: #8defcb;
  --seo-warm: #fff3e6;
  --seo-soft: #edf5f0;
}

.seo-body { background: var(--paper); }

.seo-header {
  color: white;
  background:
    radial-gradient(ellipse 64% 70% at 3% 0%, rgba(53, 150, 226, .48), transparent 72%),
    radial-gradient(ellipse 58% 78% at 100% 8%, rgba(39, 213, 156, .38), transparent 72%),
    linear-gradient(145deg, #071b32 0%, #073740 54%, #0a4437 100%);
}

.seo-header .nav-links > a:not(.nav-cta) { color: rgba(255, 255, 255, .76); }
.seo-header .nav-links > a:hover,
.seo-header .nav-links > a[aria-current="page"] { color: white; }

.seo-hero { padding: 62px 0 92px; }
.seo-breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 56px; color: rgba(255, 255, 255, .55); font-size: 13px; font-weight: 560; }
.seo-breadcrumbs a { color: rgba(255, 255, 255, .82); }
.seo-breadcrumbs a:hover { color: white; }
.seo-hero h1 { max-width: 14ch; font-size: clamp(48px, 7vw, 82px); line-height: 1.03; }
.seo-hero h1 span { color: var(--seo-mint); }
.seo-hero-lead { max-width: 66ch; margin-top: 27px; color: rgba(255, 255, 255, .76); font-size: clamp(17px, 2vw, 20px); line-height: 1.62; text-wrap: pretty; }
.seo-reviewed { margin-top: 25px; color: rgba(255, 255, 255, .5); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12px; }

.seo-main { display: grid; grid-template-columns: 238px minmax(0, 780px); justify-content: center; align-items: start; gap: 74px; padding-top: 82px; padding-bottom: 116px; }
.seo-main-wide { display: block; max-width: 1080px; }
.seo-copy { min-width: 0; }
.seo-copy > :first-child { margin-top: 0; }

.seo-copy .learn-intro { max-width: 790px; margin-bottom: 72px; }
.seo-copy .learn-intro h2 { margin-top: 0; }
.seo-copy .learn-intro p { max-width: 64ch; font-size: 18px; }

.seo-toc { position: sticky; top: 26px; padding: 22px; background: var(--seo-soft); border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(17, 35, 30, .07); }
.seo-toc ol { display: grid; gap: 12px; padding: 0; margin: 18px 0 0; list-style: none; counter-reset: seo-toc; }
.seo-toc li { display: grid; grid-template-columns: 22px 1fr; gap: 7px; color: #4d5e58; counter-increment: seo-toc; font-size: 13px; line-height: 1.42; }
.seo-toc li::before { color: var(--teal); content: counter(seo-toc, decimal-leading-zero); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 10px; font-weight: 750; }
.seo-toc a:hover { color: var(--teal); }

.seo-copy h2 { margin-top: 74px; color: var(--ink); font-size: clamp(32px, 4vw, 46px); line-height: 1.11; scroll-margin-top: 24px; }
.seo-copy h3 { margin-top: 38px; color: var(--ink); font-size: 23px; font-weight: 650; line-height: 1.24; scroll-margin-top: 24px; }
.seo-copy p,
.seo-copy li { color: #4d5d58; font-size: 16px; line-height: 1.78; text-wrap: pretty; }
.seo-copy p { margin-top: 20px; }
.seo-copy ul,
.seo-copy ol { display: grid; gap: 10px; margin: 22px 0 0; padding-left: 25px; }
.seo-copy strong { color: var(--ink); }
.seo-copy a:not(.seo-card, .button) { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.seo-copy hr { margin: 72px 0; border: 0; border-top: 1px solid var(--line); }

.direct-answer { margin-bottom: 64px; padding: 26px 28px; background: var(--seo-soft); border-left: 3px solid var(--teal); border-radius: 0 16px 16px 0; }
.direct-answer .eyebrow { margin-bottom: 10px; }
.direct-answer p:last-child { margin: 0; color: #315249; font-size: 18px; line-height: 1.65; }

.verdict-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.verdict-pair > div { padding: 26px 24px 28px 0; }
.verdict-pair > div + div { padding-right: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.verdict-pair h3 { margin: 0; font-size: 21px; }
.verdict-pair p { margin-top: 10px; font-size: 15px; line-height: 1.66; }

.comparison-wrap { max-width: 100%; margin-top: 30px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 14px; }
.comparison-table th,
.comparison-table td { padding: 17px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; }
.comparison-table thead th { color: #596761; background: #f0f4f1; font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.comparison-table tbody th { width: 28%; color: var(--ink); font-weight: 650; }
.comparison-table td { color: #4d5d58; }
.comparison-note { margin-top: 12px !important; color: #626f6b !important; font-size: 12px !important; line-height: 1.55 !important; }

.best-for-list { display: grid; gap: 0; margin: 30px 0 0; }
.best-for-list > div { display: grid; grid-template-columns: minmax(150px, .7fr) 1.5fr; gap: 28px; padding: 22px 0; border-top: 1px solid var(--line); }
.best-for-list > div:last-child { border-bottom: 1px solid var(--line); }
.best-for-list dt { color: var(--ink); font-weight: 700; }
.best-for-list dd { margin: 0; color: #4d5d58; font-size: 15px; line-height: 1.66; }
.best-for-list dd strong { display: block; margin-bottom: 3px; }

.source-list { padding: 0 !important; list-style: none; }
.source-list li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.source-list li:last-child { border-bottom: 1px solid var(--line); }
.source-list a { color: #116f58 !important; }

.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.fact-grid > div { padding: 26px; background: white; border: 1px solid rgba(17, 35, 30, .1); border-radius: 20px; }
.fact-grid dt { color: var(--teal); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.fact-grid dd { margin: 15px 0 0; color: var(--ink); font-size: 18px; font-weight: 650; line-height: 1.38; }

.seo-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 38px; }
.seo-card { display: flex; min-height: 255px; flex-direction: column; padding: 28px; background: white; border: 1px solid rgba(17, 35, 30, .1); border-radius: 20px; transition: transform 160ms ease, box-shadow 160ms ease; }
.seo-card:hover { box-shadow: 0 16px 42px rgba(5, 30, 23, .08); transform: translateY(-3px); }
.seo-card .card-number { color: var(--teal); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.seo-card h2,
.seo-card h3 { margin-top: 25px; font-size: 26px; }
.seo-card p { margin-top: 12px; font-size: 15px; line-height: 1.62; }
.seo-card .card-link { margin-top: auto; padding-top: 23px; color: var(--teal); font-size: 13px; font-weight: 650; }

.method-note { margin-top: 30px; padding: 23px 25px; background: var(--seo-warm); border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(139, 85, 35, .11); }
.method-note strong { display: block; }
.method-note p { margin-top: 7px; color: #6b5542; font-size: 14px; line-height: 1.65; }

.step-list { padding: 0 !important; counter-reset: seo-step; list-style: none; }
.step-list > li { position: relative; padding: 6px 0 40px 64px; counter-increment: seo-step; }
.step-list > li::before { position: absolute; top: 0; left: 0; display: grid; width: 42px; height: 42px; color: white; content: counter(seo-step); place-items: center; background: var(--forest); border-radius: 50%; font-weight: 650; }
.step-list > li::after { position: absolute; top: 48px; bottom: 2px; left: 20px; width: 2px; content: ""; background: #d7e1dc; }
.step-list > li:last-child::after { display: none; }
.step-list h3 { margin-top: 0; }
.step-list p { margin-top: 9px; }

.seo-cta { display: flex; align-items: flex-end; justify-content: space-between; gap: 42px; margin-top: 86px; padding: 34px; color: white; background: linear-gradient(135deg, #072b35, #0a4a3b); border-radius: 20px; }
.seo-cta h2 { max-width: 500px; margin: 0; color: white; font-size: 30px; }
.seo-cta p:not(.eyebrow) { max-width: 540px; margin-top: 12px; color: rgba(255, 255, 255, .7); font-size: 14px; line-height: 1.62; }
.seo-cta .button { flex: 0 0 auto; text-decoration: none; }

@media (max-width: 900px) {
  .seo-main { grid-template-columns: 1fr; gap: 42px; }
  .seo-toc { position: static; }
  .seo-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .seo-hero { padding-top: 42px; padding-bottom: 70px; }
  .seo-breadcrumbs { margin-bottom: 40px; }
  .seo-hero h1 { font-size: 43px; }
  .seo-hero-lead { font-size: 17px; }
  .seo-main { padding-top: 50px; padding-bottom: 86px; }
  .seo-toc ol,
  .seo-card-grid,
  .fact-grid { grid-template-columns: 1fr; }
  .verdict-pair { grid-template-columns: 1fr; }
  .verdict-pair > div { padding: 23px 0; }
  .verdict-pair > div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .best-for-list > div { grid-template-columns: 1fr; gap: 8px; }
  .seo-cta { align-items: stretch; flex-direction: column; padding: 28px; }
  .seo-cta .button { width: 100%; }
}

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