@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600;8..60,700&display=swap');

:root {
  --paper: #ffffff;
  --paper-soft: #f6f8fb;
  --ink: #101318;
  --muted: #5c6573;
  --line: #dfe4ea;
  --line-strong: #cbd2da;
  --forest: #155b36;
  --forest-dark: #0f482a;
  --cobalt: #1648db;
  --cobalt-dark: #1137a9;
  --success: #176e42;
  --warning: #83510c;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shell: 1280px;
  --article: 760px;
  --radius: 10px;
  --shadow: 0 18px 50px rgba(22, 36, 55, .10);
  --ease: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; }
button { color: inherit; }
.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 78px 0; }
.skip-link { position: fixed; left: 16px; top: 16px; z-index: 1000; padding: 10px 14px; background: var(--ink); color: #fff; transform: translateY(-150%); transition: transform var(--ease); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav-shell { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark { font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1; text-decoration: none; letter-spacing: -.025em; }
.wordmark span { color: var(--forest); }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a { font-size: 14px; font-weight: 600; color: #313842; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--forest); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 7px; align-items: center; justify-content: center; font-size: 24px; cursor: pointer; }

.hero-section { min-height: 616px; display: grid; grid-template-columns: minmax(430px, .82fr) minmax(0, 1.25fr); align-items: stretch; border-bottom: 1px solid var(--line); }
.hero-copy { padding: 72px clamp(40px, 6vw, 104px) 72px max(24px, calc((100vw - var(--shell)) / 2)); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-copy h1 { margin: 0; font-family: var(--serif); font-size: clamp(56px, 5.8vw, 86px); font-weight: 600; line-height: .98; letter-spacing: -.055em; }
.hero-copy p { max-width: 430px; margin: 28px 0 30px; color: var(--muted); font-size: 19px; line-height: 1.55; }
.hero-media { margin: 0; min-width: 0; overflow: hidden; background: var(--paper-soft); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 57% center; }

.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 12px; padding: 13px 21px; border: 0; border-radius: 6px; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease); }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(22,72,219,.28); outline-offset: 3px; }
.button-primary { background: var(--cobalt); color: #fff; box-shadow: 0 10px 24px rgba(22,72,219,.18); }
.button-primary:hover { background: var(--cobalt-dark); color: #fff; }
.button-secondary { background: var(--ink); color: #fff; }
.button-secondary:hover { background: var(--forest-dark); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--forest); font-weight: 700; font-size: 14px; text-decoration: none; }
.text-link:hover { color: var(--cobalt); }

.section-intro { max-width: 650px; margin-bottom: 42px; }
.section-intro h2, .section-heading-row h2, .feature-copy h2, .fit-intro h2, .method-intro h2 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; }
.section-intro p, .fit-intro p { color: var(--muted); margin: 12px 0 0; max-width: 62ch; }
.section-label { margin: 0 0 16px; color: var(--cobalt); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; }

.problems-section { padding-bottom: 58px; }
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problem-item { padding: 36px 30px 34px; text-decoration: none; border-right: 1px solid var(--line); transition: background var(--ease), color var(--ease); }
.problem-item:first-child { padding-left: 0; }
.problem-item:last-child { border-right: 0; padding-right: 0; }
.problem-item > i { display: block; width: max-content; color: var(--forest); font-size: 48px; margin-bottom: 28px; }
.problem-item h3 { margin: 0; font-family: var(--serif); font-size: 25px; line-height: 1.15; }
.problem-item p { min-height: 84px; margin: 14px 0 22px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.problem-item span { display: inline-flex; align-items: center; gap: 8px; color: var(--cobalt); font-size: 14px; font-weight: 700; }
.problem-item:hover { background: var(--paper-soft); }

.feature-section { padding-top: 48px; }
.feature-grid { display: grid; grid-template-columns: 1.03fr 1fr; align-items: stretch; min-height: 510px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-media { margin: 0; min-width: 0; overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { padding: 48px clamp(36px, 5vw, 76px); display: flex; flex-direction: column; justify-content: center; }
.feature-copy > p:not(.section-label) { margin: 20px 0 28px; color: var(--muted); }
.tradeoff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 30px; }
.tradeoff-grid > div + div { border-left: 1px solid var(--line); padding-left: 32px; }
.tradeoff-grid h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; }
.tradeoff-grid h3 i { color: var(--forest); font-size: 21px; }
.tradeoff-grid ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }

.fit-section { padding-top: 36px; }
.fit-panel { display: grid; grid-template-columns: .72fr 1.7fr; gap: 52px; padding: 44px; background: var(--paper-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.fit-intro h2 { font-size: 38px; }
.fit-intro .text-link { margin-top: 22px; }
.fit-form { display: grid; gap: 22px; }
.fit-form fieldset { margin: 0; padding: 0 0 18px; border: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 20px; }
.fit-form legend { grid-column: 1 / -1; width: 100%; margin-bottom: 10px; font-weight: 700; font-size: 14px; }
.fit-form label { display: flex; align-items: flex-start; gap: 9px; color: #3f4854; font-size: 13px; cursor: pointer; }
.fit-form input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--forest); }
.fit-form .button { justify-self: start; }
.fit-result { grid-column: 2; padding: 20px 22px; background: #fff; border: 1px solid #bfd7ca; border-left: 4px solid var(--success); border-radius: 7px; }
.fit-result h3 { margin: 0 0 6px; font-size: 18px; }
.fit-result p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }

.method-strip { padding: 38px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method-layout { display: grid; grid-template-columns: .8fr 2.4fr auto; gap: 42px; align-items: center; }
.method-intro h2 { font-size: 28px; }
.method-intro p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.method-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.method-steps li { display: flex; gap: 12px; padding: 0 18px; border-left: 1px solid var(--line); }
.method-steps i { color: var(--forest); font-size: 28px; flex: 0 0 auto; }
.method-steps strong, .method-steps span { display: block; }
.method-steps strong { font-size: 12px; }
.method-steps span { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }

.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.guide-card { min-width: 0; }
.guide-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.guide-card h3 { margin: 17px 0 8px; font-family: var(--serif); font-size: 21px; line-height: 1.18; }
.guide-card h3 a { text-decoration: none; }
.guide-card h3 a:hover { color: var(--forest); }
.guide-card p { margin: 0 0 13px; color: var(--muted); font-size: 13px; }

.affiliate-note { margin-bottom: 56px; padding: 18px 22px; background: #f2f5fa; color: #4a5564; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; text-align: center; }
.affiliate-note strong { color: var(--ink); }
.site-footer { padding: 48px 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .6fr .7fr .8fr; gap: 36px; align-items: start; }
.footer-grid p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.footer-grid nav { display: grid; gap: 7px; }
.footer-grid nav a { color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-grid nav a:hover { color: var(--forest); }

/* Guide index */
.page-hero { padding: 86px 0 58px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 900px; margin: 0; font-family: var(--serif); font-size: clamp(48px, 6vw, 76px); line-height: 1; letter-spacing: -.045em; }
.page-hero p { max-width: 650px; margin: 24px 0 0; color: var(--muted); font-size: 18px; }
.guide-index { display: grid; grid-template-columns: 260px 1fr; gap: 72px; }
.guide-index aside { align-self: start; position: sticky; top: 106px; }
.guide-index aside h2 { margin: 0 0 12px; font-family: var(--serif); font-size: 28px; }
.guide-index aside p { color: var(--muted); font-size: 14px; }
.guide-list { border-top: 1px solid var(--line); }
.guide-list-item { display: grid; grid-template-columns: 160px 1fr auto; gap: 28px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.guide-list-item img { width: 160px; aspect-ratio: 4/3; object-fit: cover; }
.guide-list-item h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 25px; line-height: 1.15; }
.guide-list-item h2 a { text-decoration: none; }
.guide-list-item p { margin: 0; color: var(--muted); font-size: 14px; }

/* Article */
.article-page { background: #fff; }
.article-wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.article-header { padding: 64px 0 46px; border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--forest); text-decoration: none; }
.article-header h1 { max-width: 960px; margin: 24px 0 20px; font-family: var(--serif); font-size: clamp(48px, 6vw, 76px); font-weight: 600; line-height: 1.02; letter-spacing: -.045em; }
.article-dek { max-width: 760px; margin: 0; color: var(--muted); font-size: 19px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; color: var(--muted); font-size: 13px; }
.article-disclosure { margin-top: 24px; max-width: 820px; padding: 14px 16px; background: var(--paper-soft); border-left: 3px solid var(--forest); font-size: 13px; }
.article-hero { margin: 40px 0 0; }
.article-hero img { width: 100%; max-height: 610px; object-fit: cover; border-radius: 5px; }
.article-layout { display: grid; grid-template-columns: minmax(0, var(--article)) 250px; gap: 72px; align-items: start; padding: 60px 0 88px; }
.article-content { min-width: 0; }
.article-content h2 { margin: 58px 0 18px; font-family: var(--serif); font-size: 38px; line-height: 1.1; letter-spacing: -.025em; }
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { margin: 34px 0 12px; font-size: 21px; }
.article-content p { margin: 0 0 20px; color: #303843; font-size: 17px; line-height: 1.78; }
.article-content ul, .article-content ol { margin: 0 0 24px; padding-left: 22px; color: #303843; }
.article-content li { margin-bottom: 9px; }
.article-content a { color: var(--cobalt); }
.article-content .callout { margin: 30px 0; padding: 24px 26px; background: var(--paper-soft); border: 1px solid var(--line); border-radius: 7px; }
.article-content .callout h3 { margin-top: 0; }
.article-content table { width: 100%; border-collapse: collapse; margin: 26px 0 34px; font-size: 14px; }
.article-content th, .article-content td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th { background: var(--paper-soft); font-weight: 700; }
.article-aside { position: sticky; top: 104px; }
.article-aside h2 { margin: 0 0 12px; font-family: var(--serif); font-size: 24px; }
.article-aside nav { display: grid; border-top: 1px solid var(--line); }
.article-aside nav a { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; text-decoration: none; }
.article-aside nav a:hover { color: var(--forest); }
.article-aside .aside-note { margin-top: 26px; padding: 16px; background: var(--paper-soft); font-size: 12px; color: var(--muted); }
.pick-list { display: grid; gap: 18px; margin: 30px 0 42px; }
.product-pick { padding: 24px; border: 1px solid var(--line-strong); border-radius: 8px; }
.product-pick header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.product-pick .pick-type { margin: 0 0 6px; color: var(--forest); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; }
.product-pick h3 { margin: 0; font-family: var(--serif); font-size: 25px; }
.product-pick p { margin: 14px 0; font-size: 15px; }
.pick-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pick-facts strong { display: block; margin-bottom: 4px; font-size: 12px; }
.pick-facts span { display: block; color: var(--muted); font-size: 13px; }
.affiliate-button { margin-top: 18px; display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 12px 17px; background: var(--ink); color: #fff !important; border-radius: 5px; font-weight: 700; font-size: 14px; text-decoration: none; }
.affiliate-button:hover { background: var(--forest-dark); }
.source-list { font-size: 14px; }
.source-list li { margin-bottom: 12px; }
.related-guides { margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--line); }
.related-guides h2 { margin-top: 0; }

/* Legacy URL handoff */
.redirect-page { min-height: 100vh; display: grid; place-items: center; padding: 32px; text-align: center; background: var(--paper-soft); }
.redirect-page > div { width: min(560px, 100%); padding: 42px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.redirect-page h1 { margin: 0; font-family: var(--serif); font-size: clamp(38px, 7vw, 58px); line-height: 1.04; letter-spacing: -.04em; }
.redirect-page p { margin: 18px 0 26px; color: var(--muted); }

@media (max-width: 1080px) {
  .hero-section { grid-template-columns: 1fr 1fr; min-height: 550px; }
  .hero-copy { padding-right: 44px; }
  .hero-copy h1 { font-size: clamp(52px, 6.6vw, 70px); }
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .problem-item, .problem-item:first-child, .problem-item:last-child { padding: 30px; border-bottom: 1px solid var(--line); }
  .problem-item:nth-child(2) { border-right: 0; }
  .problem-item:nth-child(3), .problem-item:nth-child(4) { border-bottom: 0; }
  .problem-item p { min-height: 0; }
  .method-layout { grid-template-columns: 1fr; }
  .method-steps li:first-child { border-left: 0; padding-left: 0; }
  .method-layout > .text-link { justify-self: start; }
  .guide-grid { grid-template-columns: 1fr 1fr; gap: 38px 24px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; order: -1; }
  .article-aside nav { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}

@media (max-width: 760px) {
  .shell, .article-wrap { width: min(100% - 32px, var(--shell)); }
  .section { padding: 58px 0; }
  .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; inset: 72px 0 auto; display: none; padding: 18px 16px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav[data-open="true"] { display: grid; gap: 2px; }
  .site-nav a { padding: 12px 8px; }
  .hero-section { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { padding: 56px 24px 46px; }
  .hero-copy h1 { font-size: clamp(48px, 14vw, 66px); }
  .hero-copy p { font-size: 17px; }
  .hero-media { max-height: 480px; }
  .hero-media img { aspect-ratio: 4 / 3; object-position: 60% center; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-item, .problem-item:first-child, .problem-item:last-child { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .problem-item:last-child { border-bottom: 0; }
  .problem-item > i { margin-bottom: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-media img { aspect-ratio: 4 / 3; }
  .feature-copy { padding: 34px 0; }
  .tradeoff-grid { grid-template-columns: 1fr; }
  .tradeoff-grid > div + div { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .fit-panel { width: min(100% - 32px, var(--shell)); grid-template-columns: 1fr; gap: 30px; padding: 28px 20px; }
  .fit-form fieldset { grid-template-columns: 1fr; }
  .fit-result { grid-column: 1; }
  .method-steps { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .method-steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .guide-grid { grid-template-columns: 1fr; }
  .section-heading-row { align-items: start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .guide-index { grid-template-columns: 1fr; gap: 34px; }
  .guide-index aside { position: static; }
  .guide-list-item { grid-template-columns: 110px 1fr; }
  .guide-list-item img { width: 110px; }
  .guide-list-item > .text-link { grid-column: 2; }
  .article-header { padding-top: 48px; }
  .article-header h1 { font-size: clamp(43px, 13vw, 62px); }
  .article-layout { padding-top: 38px; }
  .article-content h2 { font-size: 32px; }
  .article-aside nav { grid-template-columns: 1fr; }
  .pick-facts { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .wordmark { font-size: 21px; }
  .method-steps { grid-template-columns: 1fr; }
  .method-steps li, .method-steps li:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
