:root {
  --forest: #0F3D2E;
  --forest-2: #175440;
  --signal: #22C55E;
  --signal-ink: #15803D;
  --bg: #FAF8F3;
  --surface: #FFFFFF;
  --ink: #14211B;
  --muted: #5B6862;
  --muted-2: #A3ADA8;
  --line: #E6E3DA;
  --tint: #EEF6F0;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 61, 46, .06), 0 24px 60px -24px rgba(15, 61, 46, .25);
  --head: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--signal-ink); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); font-size: .875rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.center { text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; border: 1px solid transparent; border-radius: 10px; padding: .6em 1.1em; font-weight: 600; font-size: .9375rem; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-2); }
.btn-signal { background: var(--signal); color: var(--forest); }
.btn-outline { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost { color: var(--ink); }
.btn-lg { padding: .85em 1.5em; font-size: 1rem; }
.btn-sm { padding: .45em .9em; font-size: .8125rem; }
.btn-block { width: 100%; }
.link { color: var(--signal-ink); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Banner + nav */
.banner { background: var(--forest); color: #E3EFE8; font-size: .8125rem; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 48px; position: relative; text-align: center; }
.banner a { color: var(--signal); font-weight: 600; text-decoration: none; margin-left: 6px; }
.banner-close { position: absolute; right: 12px; background: none; border: 0; color: inherit; font-size: 20px; line-height: 1; }
.nav { position: sticky; top: 0; z-index: 20; background: rgba(250, 248, 243, .85); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; height: 68px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.25rem var(--head); text-decoration: none; letter-spacing: -.02em; }
.logo.light { color: #fff; }
.nav-links { display: flex; gap: 28px; margin: 0 auto; font-size: .9375rem; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.menu-btn span { width: 20px; height: 2px; background: var(--ink); transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { padding: 72px 0 40px; background: radial-gradient(ellipse 80% 50% at 50% 0%, #E4F4EA 0%, transparent 70%); }
.hero-inner { text-align: center; }
.eyebrow { font: 600 .75rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--signal-ink); margin-bottom: 16px; }
.eyebrow.light { color: var(--signal); }
.pill { display: inline-block; border: 1px solid #CDE6D5; background: var(--surface); border-radius: 99px; padding: 6px 14px; }
h1 { font-size: clamp(2.6rem, 7vw, 4.75rem); font-weight: 700; }
.accent { color: var(--signal-ink); }
.lead { max-width: 600px; margin: 24px auto 0; color: var(--muted); font-size: 1.125rem; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.checks { list-style: none; display: flex; justify-content: center; gap: 24px; padding: 0; margin: 24px 0 56px; font-size: .875rem; color: var(--muted); flex-wrap: wrap; }
.checks li::before { content: "✓"; color: var(--signal-ink); font-weight: 700; margin-right: 6px; }

/* Dashboard */
.dash { display: grid; grid-template-columns: 220px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; text-align: left; min-height: 560px; }
.dash-side { border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; background: #FCFBF8; }
.dash-brand { display: flex; align-items: center; gap: 8px; font: 700 1rem var(--head); padding: 0 6px 16px; }
.dash-label { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); padding: 0 8px 4px; }
.dash-menu { display: flex; flex-direction: column; gap: 2px; }
.dash-menu button { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 9px 10px; border-radius: 8px; color: var(--muted); font-size: .875rem; text-align: left; }
.dash-menu button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.dash-menu button:hover { background: var(--tint); color: var(--ink); }
.dash-menu button.active { background: var(--tint); color: var(--forest); font-weight: 600; }
.dash-account { margin-top: auto; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: .8125rem; }
.dash-account small { display: block; color: var(--muted); }
.avatar { width: 30px; height: 30px; border-radius: 8px; background: var(--forest); color: var(--signal); display: grid; place-items: center; font-weight: 700; }
.dash-main { padding: 0 28px 28px; min-width: 0; }
.dash-top { display: flex; justify-content: space-between; align-items: center; height: 56px; border-bottom: 1px solid var(--line); margin: 0 -28px 24px; padding: 0 28px; font-size: .8125rem; color: var(--muted); }
.crumb b { color: var(--ink); font-weight: 600; }
.tag-sample { border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; font-size: .75rem; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.dash-head h3 { font-size: 1.5rem; margin-bottom: 4px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; }
.kpi span { font-size: .8125rem; color: var(--muted); }
.kpi b { font-size: 1.75rem; margin: 4px 0; letter-spacing: -.02em; }
.kpi small { font-size: .75rem; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.chart-card { padding: 18px 20px; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px; }
.chart-head h4 { font-size: 1rem; }
.legend { display: flex; gap: 16px; font-size: .8125rem; color: var(--muted); }
.lg::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg-a::before { background: var(--forest); }
.lg-b::before { background: var(--signal); }
.chart { position: relative; margin-top: 8px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: .75rem; padding: 6px 10px; border-radius: 8px; transform: translate(-50%, -110%); white-space: nowrap; opacity: 0; transition: opacity .1s; }
.filter { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 5px 14px; font-size: .8125rem; color: var(--muted); }
.chip.active { background: var(--forest); border-color: var(--forest); color: #fff; }
.camp-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.camp { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.camp-ic { width: 36px; height: 36px; border-radius: 9px; background: var(--tint); display: grid; place-items: center; color: var(--forest); }
.camp-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.camp b { display: block; font-size: .9375rem; }
.camp small { color: var(--muted); font-size: .8125rem; }
.camp-bar { width: 120px; }
.camp-bar small { display: block; text-align: right; font-family: var(--mono); font-size: .75rem; }
.camp-bar div { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.camp-bar div i { display: block; height: 100%; background: var(--signal); }
.status { font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: #DCFCE7; color: var(--signal-ink); border: 0; }
.status.paused { background: #F1EFE8; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.rank-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.rank-table th, .rank-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rank-table th { font-size: .75rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.rank-table tr:last-child td { border-bottom: 0; }
.rank-table .up { color: var(--signal-ink); font-weight: 600; }
.dash-note { text-align: center; font-size: .8125rem; color: var(--muted); margin-top: 14px; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: #F3F0E8; }
.section h2, .cta h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; text-align: center; }
.section .eyebrow { text-align: center; }
.sub { text-align: center; color: var(--muted); max-width: 620px; margin: 18px auto 0; }
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.type-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.type-card h3 { font-size: 1.375rem; margin-top: 8px; }
.type-card p { color: var(--muted); }
.mock { height: 200px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); position: relative; overflow: hidden; }
.mock-serp { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.serp-bar { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-size: .8125rem; color: var(--muted); }
.serp-hit { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 8px; }
.serp-hit i { display: block; height: 6px; border-radius: 4px; background: var(--line); width: 80%; }
.serp-hit i + i { width: 55%; }
.serp-hit.dim { opacity: .7; }
.serp-hit.you { background: var(--surface); border: 1.5px solid var(--signal); box-shadow: 0 6px 20px -10px rgba(34, 197, 94, .6); }
.serp-hit.you small { font-size: .6875rem; color: var(--muted); }
.serp-hit.you b { font-size: .875rem; color: var(--forest); }
.mock-map svg { width: 100%; height: 100%; display: block; }
.pin { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); animation: bob 2.4s ease-in-out infinite; }
.map-card { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-size: .8125rem; box-shadow: var(--shadow); text-align: center; }
.map-card small { display: block; color: var(--muted); }
@keyframes bob { 50% { transform: translate(-50%, -62%); } }

.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { border-top: 2px solid var(--forest); padding-top: 20px; }
.steps span { color: var(--signal-ink); font-size: .875rem; }
.steps h3 { font-size: 1.25rem; margin: 10px 0 8px; }
.steps p { color: var(--muted); }

.prose { margin-top: 24px; color: var(--muted); font-size: 1.0625rem; text-align: center; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.compare-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); }
.compare-col.good { border-color: var(--signal); background: #F5FCF7; }
.compare-col h3 { font-size: 1.125rem; margin-bottom: 12px; }
.compare ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: .9375rem; }
.compare .x li::before { content: "✕"; color: #B45309; margin-right: 8px; }
.compare .ok li::before { content: "✓"; color: var(--signal-ink); font-weight: 700; margin-right: 8px; }
.disclaimer { margin-top: 24px; font-size: .875rem; background: #FFF7E6; border: 1px solid #F3DDA8; border-radius: 10px; padding: 12px 16px; color: #6B4E12; }

.calc { margin-top: 48px; display: grid; grid-template-columns: 1.4fr 1fr; overflow: hidden; }
.calc-inputs { padding: 32px; display: flex; flex-direction: column; gap: 28px; }
.calc-inputs label { display: flex; flex-wrap: wrap; justify-content: space-between; font-weight: 500; font-size: .9375rem; gap: 10px; }
.calc-inputs output { font-family: var(--mono); color: var(--forest); }
input[type="range"] { width: 100%; accent-color: var(--forest); }
.calc-result { background: var(--forest); color: #E3EFE8; padding: 32px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.calc-result .muted { color: #A9C4B6; }
.calc-result .big { font-size: 3rem; color: #fff; line-height: 1; }
.calc-result .btn { background: var(--signal); color: var(--forest); align-self: flex-start; margin-top: 8px; }
.meter { height: 8px; background: rgba(255, 255, 255, .15); border-radius: 99px; overflow: hidden; }
.meter div { height: 100%; background: var(--signal); width: 0; transition: width .3s; }

.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.res { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.res-top { display: flex; justify-content: space-between; gap: 8px; font-size: .8125rem; color: var(--muted); }
.res h3 { font: 600 1rem var(--body); margin: 6px 0 12px; letter-spacing: 0; }
.res svg { width: 100%; height: 90px; display: block; }
.res-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-size: .8125rem; color: var(--muted); }
.res-foot b { font-family: var(--mono); font-size: 1.25rem; color: var(--forest); }
.fine { font-size: .8125rem; color: var(--muted); margin-top: 24px; }

.toggle { display: flex; justify-content: center; margin: 32px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 4px; width: fit-content; }
.toggle button { border: 0; background: none; padding: 8px 18px; border-radius: 99px; font-weight: 500; font-size: .875rem; color: var(--muted); }
.toggle button.active { background: var(--forest); color: #fff; }
.toggle em { font-style: normal; font-size: .75rem; color: var(--signal-ink); margin-left: 4px; }
.toggle button.active em { color: var(--signal); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.plan.hot { border: 2px solid var(--forest); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -12px; left: 28px; background: var(--forest); color: var(--signal); font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; }
.plan h3 { font-size: 1.375rem; }
.plan .left { font-size: .75rem; color: #B45309; font-weight: 600; }
.plan .price { font: 700 2.5rem var(--head); letter-spacing: -.03em; margin-top: 12px; }
.plan .price small { font: 500 .9375rem var(--body); color: var(--muted); }
.plan .vol { font-weight: 600; margin-top: 8px; }
.plan .per { font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.plan .btn { margin: 16px 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: .875rem; }
.plan li::before { content: "✓"; color: var(--signal-ink); font-weight: 700; margin-right: 8px; }

.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; gap: 16px; align-items: center; background: none; border: 0; padding: 20px 0; text-align: left; font-weight: 600; font-size: 1.0625rem; color: var(--ink); }
.faq-q::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-a { color: var(--muted); padding: 0 0 20px; max-width: 680px; }

.cta { background: var(--forest); color: #fff; text-align: center; padding: 96px 0; }
.cta h2 { margin-bottom: 32px; }
.footer { background: #0A2A20; color: #A9C4B6; padding: 56px 0 24px; font-size: .875rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font: 600 .875rem var(--body); margin-bottom: 12px; }
.footer a:not(.logo) { display: block; text-decoration: none; margin-bottom: 8px; }
.footer a:hover { color: #fff; }
.footer p { margin-top: 12px; }
.copy { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; font-size: .8125rem; }

.modal { border: 0; border-radius: 18px; padding: 0; width: min(420px, calc(100% - 32px)); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(10, 42, 32, .5); backdrop-filter: blur(3px); }
.modal-body { padding: 32px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.modal-body h3 { font-size: 1.5rem; }
.modal-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 22px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .875rem; }
.field input { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.field input:focus { outline: 2px solid var(--signal); border-color: transparent; }

/* Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-left: auto; }
  .menu-btn { display: flex; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .results, .plans { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .dash { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .dash-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px; }
  .dash-brand, .dash-label, .dash-account { display: none; }
  .dash-menu { flex-direction: row; overflow-x: auto; }
  .dash-main { padding: 0 16px 16px; }
  .dash-top { margin: 0 -16px 18px; padding: 0 16px; }
  .types, .steps, .compare, .calc { grid-template-columns: 1fr; }
  .camp { grid-template-columns: 36px 1fr auto; }
  .camp-bar { display: none; }
  .section { padding: 72px 0; }
  .hide-sm { display: none; }
  .banner { padding: 8px 40px 8px 16px; }
}
@media (max-width: 420px) {
  .kpi b { font-size: 1.375rem; }
  .dash-head { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
