:root {
  --green: #047857;
  --green-dark: #064e3b;
  --green-soft: #d1fae5;
  --slate: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --amber: #92400e;
  --amber-bg: #fffbeb;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--slate); }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; gap: 18px; }
.nav h1 { margin: 2px 0 0; font-size: 18px; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #a7f3d0; }
.eyebrow.green { color: var(--green); }
.button { display: inline-flex; justify-content: center; align-items: center; border-radius: 999px; padding: 12px 18px; font-weight: 800; border: 0; cursor: pointer; white-space: nowrap; }
.button.primary { background: var(--green); color: var(--white); }
.button.light { background: var(--white); color: var(--green-dark); }
.button.outline { border: 1px solid rgba(255,255,255,.35); color: var(--white); }
.hero { background: linear-gradient(140deg, #022c22, #064e3b 55%, #0f172a); color: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; padding: 80px 0; align-items: center; }
.pill { display: inline-flex; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: #d1fae5; }
.hero h2 { font-size: clamp(36px, 5vw, 58px); line-height: 1.02; margin: 24px 0; letter-spacing: -0.04em; }
.hero p { color: #ecfdf5; font-size: 18px; line-height: 1.75; max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.snapshot-card { background: var(--white); color: var(--slate); border-radius: 28px; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.card-header { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.card-header span, .metric-grid span, .result-grid span { color: var(--muted); font-size: 13px; }
.card-header h3 { margin: 4px 0 0; font-size: 28px; }
.metric-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin: 22px 0; }
.metric-grid div { background: #ecfdf5; border-radius: 20px; padding: 18px; }
.metric-grid strong { display: block; font-size: 30px; color: var(--green-dark); margin-top: 6px; }
.warning { background: var(--amber-bg); color: var(--amber) !important; padding: 16px; border-radius: 18px; font-size: 14px !important; line-height: 1.5 !important; }
.section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin-bottom: 22px; }
.section h2 { margin: 8px 0 10px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; }
.section p { color: var(--muted); line-height: 1.7; }
#searchInput, input { border: 1px solid var(--line); background: var(--white); border-radius: 16px; padding: 14px 16px; font: inherit; outline-color: var(--green); }
#searchInput { width: 320px; }
.table-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; overflow: auto; box-shadow: 0 12px 34px rgba(15,23,42,.06); }
table { width: 100%; border-collapse: collapse; min-width: 920px; }
th { background: #f1f5f9; color: #475569; text-align: left; padding: 16px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
td { padding: 15px 16px; border-top: 1px solid #f1f5f9; }
tr:hover td { background: #ecfdf5; }
.right { text-align: right; }
.status { display: inline-flex; background: #fef3c7; color: #92400e; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.white { background: var(--white); }
.calculator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.note { background: #f1f5f9; border-radius: 22px; padding: 18px; color: #475569; line-height: 1.7; margin-top: 24px; }
.calc-card { background: var(--bg); border: 1px solid var(--line); border-radius: 28px; padding: 26px; box-shadow: 0 12px 34px rgba(15,23,42,.06); }
.calc-card label { display: block; font-size: 14px; font-weight: 800; margin: 16px 0 8px; }
.calc-card input { width: 100%; }
.result-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 22px; }
.result-grid div { background: var(--white); border-radius: 20px; padding: 18px; }
.result-grid strong { display: block; font-size: 26px; margin-top: 6px; }
.result-grid .green-result { background: var(--green); color: var(--white); }
.result-grid .green-result span { color: #d1fae5; }
.method-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 24px; }
.method-grid div { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 12px 34px rgba(15,23,42,.05); }
.newsletter { background: var(--green-dark); color: var(--white); padding: 58px 0; }
.newsletter-grid { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 34px; }
.newsletter p { color: #d1fae5; line-height: 1.7; }
.signup { background: var(--white); border-radius: 24px; padding: 14px; display: flex; gap: 12px; }
.signup input { flex: 1; }
.footer { padding: 34px 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
@media (max-width: 800px) {
  .nav, .section-head, .signup { flex-direction: column; align-items: stretch; }
  .hero-grid, .calculator-grid, .method-grid, .newsletter-grid { grid-template-columns: 1fr; }
  #searchInput { width: 100%; }
  .hero-grid { padding: 54px 0; }
  .metric-grid, .result-grid { grid-template-columns: 1fr; }
}


/* Comparison page additions */
.nav-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav-links a:not(.button) { color: var(--slate); font-weight: 800; font-size: 14px; }
.topbar .eyebrow { color: var(--green); }
.compare-cta-section { padding-top: 0; }
.compare-cta-card { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: 0 12px 34px rgba(15,23,42,.06); }
.compare-cta-card h2 { margin: 8px 0 10px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; }
.compare-cta-card p { color: var(--muted); line-height: 1.7; margin: 0; }
.comparison-hero-grid { grid-template-columns: 1.1fr .9fr; }
.comparison-card h3 { font-size: 28px; margin: 0 0 16px; }
.tick-list, .check-list { margin: 0; padding-left: 20px; line-height: 1.8; color: #334155; }
.tick-list li { margin-bottom: 8px; }
.goal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.goal-card, .decision-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 12px 34px rgba(15,23,42,.05); }
.goal-card span { display: inline-flex; color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 800; margin-bottom: 14px; }
.goal-card h3, .decision-card h3 { margin: 0 0 10px; font-size: 22px; }
.goal-card p, .decision-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.comparison-table { min-width: 1180px; }
.tag { display: inline-flex; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.tag.high { background: #dcfce7; color: #166534; }
.tag.medium { background: #e0f2fe; color: #075985; }
.tag.low { background: #ecfdf5; color: #047857; }
.tag.lowtag { background: #f1f5f9; color: #475569; }
.tag.highrisk { background: #fee2e2; color: #991b1b; }
.decision-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 24px; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.two-column > div { background: var(--bg); border: 1px solid var(--line); border-radius: 28px; padding: 28px; }
.two-column h2 { margin: 8px 0 16px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; }
.muted-list li { color: #475569; }
@media (max-width: 900px) {
  .compare-cta-card, .goal-grid, .decision-grid, .two-column, .comparison-hero-grid { grid-template-columns: 1fr; }
  .nav-links { width: 100%; justify-content: flex-start; }
}


/* AdSense-readiness, legal pages and article pages */
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.footer-links a { color: var(--green); font-weight: 800; }
.ad-slot { display: none; }
.hidden-field { display: none !important; }
.legal-hero, .article-hero { background: linear-gradient(135deg, #064e3b, #0f172a); color: white; padding: 72px 0; }
.legal-hero h2, .article-hero h2 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.045em; margin: 10px 0 14px; }
.legal-hero p, .article-hero p { color: #d1fae5; max-width: 800px; line-height: 1.8; }
.content-page { max-width: 900px; }
.content-page h2 { font-size: 30px; margin: 38px 0 12px; }
.content-page h3 { font-size: 22px; margin: 28px 0 10px; }
.content-page p, .content-page li { color: #475569; line-height: 1.85; }
.content-page ul, .content-page ol { padding-left: 24px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.article-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 12px 34px rgba(15,23,42,.05); display: flex; flex-direction: column; gap: 12px; }
.article-card span { color: var(--green); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.article-card h3 { margin: 0; font-size: 22px; line-height: 1.25; }
.article-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.article-card a { margin-top: auto; font-weight: 900; color: var(--green); }
.article-meta { color: #d1fae5; font-weight: 700; }
.callout { background: #ecfdf5; border-left: 5px solid var(--green); border-radius: 18px; padding: 18px; margin: 24px 0; }
.callout strong { color: var(--green-dark); }
.info-table { width: 100%; min-width: 0; }
.info-table th, .info-table td { vertical-align: top; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 12px 34px rgba(15,23,42,.05); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; }
.contact-form { display: grid; gap: 12px; }
.contact-form textarea { min-height: 140px; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font: inherit; outline-color: var(--green); }
@media (max-width: 900px) { .article-grid, .contact-grid { grid-template-columns: 1fr; } }


/* SEO traffic pack additions */
.seo-hero { background: linear-gradient(135deg, #022c22, #064e3b 55%, #0f172a); color: white; padding: 76px 0; }
.seo-hero h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.045em; margin: 14px 0; }
.seo-hero p { color: #d1fae5; font-size: 18px; line-height: 1.75; max-width: 850px; }
.breadcrumbs { font-size: 13px; color: #d1fae5; margin-bottom: 16px; }
.breadcrumbs a { color: #ecfdf5; font-weight: 800; }
.kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 26px; }
.kpi-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 22px; padding: 20px; }
.kpi-card span { display:block; font-size:13px; color:#d1fae5; }
.kpi-card strong { display:block; margin-top:6px; font-size:28px; color:white; }
.seo-card-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:18px; margin-top:24px; }
.seo-card { background:white; border:1px solid var(--line); border-radius:24px; padding:24px; box-shadow:0 12px 34px rgba(15,23,42,.05); }
.seo-card h3 { margin:0 0 10px; font-size:22px; }
.seo-card p, .seo-card li { color:var(--muted); line-height:1.75; }
.profile-summary { display:grid; grid-template-columns: repeat(4,1fr); gap:16px; margin-top:24px; }
.profile-summary div { background:white; border:1px solid var(--line); border-radius:22px; padding:20px; }
.profile-summary span { color:var(--muted); font-size:13px; }
.profile-summary strong { display:block; margin-top:8px; font-size:23px; color:var(--green-dark); }
.faq-block details { background:white; border:1px solid var(--line); border-radius:18px; padding:18px 20px; margin-bottom:12px; }
.faq-block summary { cursor:pointer; font-weight:900; }
.faq-block p { margin-bottom:0; }
.source-note { background:#fffbeb; border-left:5px solid #f59e0b; border-radius:18px; padding:18px; color:#78350f; line-height:1.75; }
.profile-nav { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.profile-nav a { background:#ecfdf5; color:#065f46; border-radius:999px; padding:9px 13px; font-size:13px; font-weight:900; }
@media (max-width: 900px) { .kpi-row, .seo-card-grid, .profile-summary { grid-template-columns:1fr; } }

.contact-form { display: grid; gap: 12px; }
.contact-form input, .contact-form textarea { width: 100%; }
.contact-form textarea { min-height: 140px; resize: vertical; }
