/* =========================================================================
   Traffic Earnings Estimator — main stylesheet
   Theme: clean light "fintech" — deep green ink, emerald accent, warm amber highlights.
   ========================================================================= */

:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --surface-2: #f2f6f4;
  --surface-3: #e7eeea;
  --ink: #0f1d18;
  --ink-soft: #2b3b35;
  --muted: #5e6e67;
  --line: #dde6e1;
  --line-strong: #c3d1ca;
  --accent: #0e8a5f;
  --accent-hover: #0b7550;
  --accent-soft: #e2f4ec;
  --accent-ink: #ffffff;
  --deep: #0b3b2e;
  --deep-ink: #eaf5f0;
  --deep-muted: #9fc0b3;
  --amber: #c27c0e;
  --amber-soft: #fdf1dc;
  --indigo: #4f5bd5;
  --indigo-soft: #e7e9fb;
  --good: #11804f;
  --good-soft: #def3e8;
  --warn: #9a6200;
  --warn-soft: #fcefd5;
  --bad: #b42318;
  --bad-soft: #fde4e1;
  --info: #23628f;
  --info-soft: #e0edf6;
  --shadow: 0 1px 2px rgba(15, 29, 24, .05), 0 6px 20px rgba(15, 29, 24, .06);
  --radius: 14px;
  --radius-sm: 9px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1311;
    --surface: #131c19;
    --surface-2: #18231f;
    --surface-3: #1f2c27;
    --ink: #e8f0ec;
    --ink-soft: #cbd8d2;
    --muted: #93a59d;
    --line: #26342f;
    --line-strong: #364841;
    --accent: #34c48c;
    --accent-hover: #4fd39f;
    --accent-soft: #143127;
    --accent-ink: #06150f;
    --deep: #08221a;
    --amber: #f0b44c;
    --amber-soft: #352915;
    --indigo: #8f98f2;
    --indigo-soft: #23264a;
    --good: #5fd39b;
    --good-soft: #15301f;
    --warn: #f0b44c;
    --warn-soft: #352915;
    --bad: #f28b82;
    --bad-soft: #3a1c1a;
    --info: #86bde3;
    --info-soft: #172a38;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; font: 16px/1.6 var(--font-body); color: var(--ink); background: var(--bg);
  min-height: 100vh; display: flex; flex-direction: column;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .6em; color: var(--ink); font-family: var(--font-display); letter-spacing: -.01em; }
h1 { font-weight: 800; font-size: clamp(1.75rem, 3.8vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
h3 { font-weight: 700; font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: .5rem; background: var(--surface); padding: .5rem 1rem; z-index: 100; border-radius: var(--radius-sm); }
.skip-link:focus { left: .5rem; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.site-main { flex: 1 0 auto; padding-bottom: 3rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }

/* ---------- Header ---------- */
.site-header { background: var(--deep); color: var(--deep-ink); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; }
.brand:hover { color: #fff; }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; }
.brand__icon { width: 21px; height: 21px; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; }
.site-nav { margin-left: auto; display: flex; gap: .2rem; align-items: center; }
.site-nav a { color: var(--deep-ink); text-decoration: none; padding: .45rem .7rem; border-radius: 7px; font-size: .94rem; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: #fff; }
.site-nav__all { background: var(--accent); color: #fff !important; font-weight: 600; }
.site-nav__all:hover { background: var(--accent-hover) !important; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: inherit; width: 44px; height: 44px; cursor: pointer; border-radius: 8px; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--deep); flex-direction: column; align-items: stretch; padding: .5rem 16px 1rem; box-shadow: 0 12px 24px rgba(0,0,0,.2); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .75rem .5rem; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; padding: 0; margin: 1rem 0 .75rem; font-size: .875rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: .3rem; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Buttons & form controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: 600 .95rem/1 var(--font-body); padding: .7rem 1.1rem; min-height: 42px;
  border-radius: var(--radius-sm); border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-3); color: var(--ink); border-color: var(--line-strong); }
.btn--sm { padding: .45rem .75rem; min-height: 36px; font-size: .875rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 1.2rem; line-height: 1; }
.btn-icon:hover { background: var(--surface-3); }

.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field > label, .field__label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.field__hint { font-size: .8rem; color: var(--muted); }
input[type="number"], input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="date"], select, textarea {
  width: 100%; font: 1rem/1.3 var(--font-body); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .6rem .7rem; min-height: 42px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="number"], input[data-number] { font-variant-numeric: tabular-nums; }
.input-affix { position: relative; display: flex; align-items: center; }
.input-affix > span { position: absolute; color: var(--muted); font-weight: 600; pointer-events: none; font-size: .95rem; }
.input-affix > span:first-child { left: .7rem; }
.input-affix > span:last-child:not(:first-child) { right: .7rem; }
.input-affix--pre input { padding-left: 1.6rem; }
.input-affix--post input { padding-right: 2.2rem; }
.check { display: flex; align-items: flex-start; gap: .55rem; cursor: pointer; font-size: .95rem; }
.check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--accent); flex: none; }
.check small { display: block; color: var(--muted); font-size: .8rem; }
input[type="range"] { width: 100%; accent-color: var(--accent); }

.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); flex-wrap: wrap; }
.seg label { padding: 0; cursor: pointer; }
.seg label + label { border-left: 1px solid var(--line); }
.seg label span { padding: .5rem .85rem; display: block; font: 600 .875rem/1.2 var(--font-body); color: var(--ink-soft); min-height: 38px; display: flex; align-items: center; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { background: var(--deep); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: -3px; }

/* ---------- Tool shell ---------- */
.tool-layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .tool-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.tool-head h1 { margin-bottom: .4rem; }
.tool-intro { color: var(--ink-soft); font-size: 1.05rem; max-width: 70ch; }
.tool-intro p:last-child { margin-bottom: 0; }

.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; margin: 1.25rem 0 1.5rem; position: relative; }
@media (min-width: 640px) { .calc { padding: 1.5rem; } }
.calc::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, var(--accent), #2bb5a0 60%, var(--amber)); }
.calc__bar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.calc__badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); }
.calc__badge .icon { width: 16px; height: 16px; }
.calc__badge a { color: var(--muted); }
.calc__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.calc__section + .calc__section { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px dashed var(--line); }
.calc__title { font: 700 .78rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .75rem; display: flex; align-items: center; gap: .5rem; }
.calc__row { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.calc__row + .calc__row { margin-top: .9rem; }
.calc__footer { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.1rem; }

/* Traffic location mix */
.geo { margin-top: .9rem; }
.geo__presets { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft); border-radius: 999px; padding: .35rem .8rem; font: 600 .82rem/1.2 var(--font-body); cursor: pointer; min-height: 32px; }
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--deep); color: #fff; border-color: var(--deep); }
.geo__custom { margin-top: .75rem; display: grid; gap: .45rem; }
.geo__row { display: grid; grid-template-columns: minmax(150px, 1.2fr) 2fr 64px; gap: .75rem; align-items: center; font-size: .9rem; }
.geo__row output { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.geo__summary { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
@media (max-width: 560px) { .geo__row { grid-template-columns: 1fr 64px; } .geo__row input { grid-column: 1 / -1; grid-row: 2; } }

/* Results */
.results { margin-top: 1.25rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
@media (min-width: 640px) { .results { padding: 1.25rem; } }
.stats { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .9rem; min-width: 0; }
.stat__label { display: block; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stat__value { display: block; font: 800 1.6rem/1.15 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; margin-top: .25rem; overflow-wrap: anywhere; letter-spacing: -.01em; }
.stat__sub { display: block; font-size: .82rem; color: var(--muted); margin-top: .2rem; }
.stat--hero { border-color: var(--accent); background: linear-gradient(180deg, var(--surface), var(--accent-soft)); }
.stat--hero .stat__value { color: var(--accent); font-size: 2.2rem; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } .stat--hero { grid-column: 1 / -1; } }

.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--surface-3); color: var(--ink-soft); white-space: nowrap; }
.badge--eligible, .badge--open { background: var(--good-soft); color: var(--good); }
.badge--close { background: var(--warn-soft); color: var(--warn); }
.badge--no { background: var(--surface-3); color: var(--muted); }
.badge--current { background: var(--indigo-soft); color: var(--indigo); }

.notice { padding: .7rem .9rem; border-radius: var(--radius-sm); font-size: .92rem; margin: 0 0 1rem; border: 1px solid transparent; }
.notice--info { background: var(--info-soft); color: var(--info); }
.notice--warn { background: var(--warn-soft); color: var(--warn); }
.notice--bad { background: var(--bad-soft); color: var(--bad); }
.notice--good { background: var(--good-soft); color: var(--good); }
.notice:empty { display: none; }

.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; background: var(--surface-3); color: var(--ink-soft); }
.pill--good { background: var(--good-soft); color: var(--good); }
.pill--bad { background: var(--bad-soft); color: var(--bad); }
.pill--gold { background: var(--amber-soft); color: var(--amber); }

.progress { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress__fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s; }
.progress--warn .progress__fill { background: var(--amber); }

.rows { display: flex; flex-direction: column; gap: .6rem; }
.row-item { display: grid; gap: .6rem; align-items: end; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .65rem; }

/* Horizontal bar list */
.hbars { display: grid; gap: .55rem; }
.hbar { display: grid; grid-template-columns: minmax(150px, 240px) 1fr minmax(90px, auto); gap: .75rem; align-items: center; font-size: .92rem; }
.hbar__label { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar__label a { color: var(--ink); text-decoration: none; }
.hbar__label a:hover { color: var(--accent); text-decoration: underline; }
.hbar__track { position: relative; height: 14px; background: var(--surface-3); border-radius: 999px; }
.hbar__range { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 999px; }
.hbar__fill { position: absolute; left: 0; top: 3px; bottom: 3px; background: var(--accent); border-radius: 999px; }
.hbar.is-muted .hbar__fill { background: var(--line-strong); }
.hbar.is-current .hbar__label { color: var(--indigo); }
.hbar.is-current .hbar__fill { background: var(--indigo); }
.hbar__value { font-weight: 800; font-family: var(--font-display); text-align: right; font-variant-numeric: tabular-nums; }
.hbar__value small { display: block; font: 500 .74rem var(--font-body); color: var(--muted); }
@media (max-width: 560px) { .hbar { grid-template-columns: 1fr auto; } .hbar__track { grid-column: 1 / -1; grid-row: 2; } }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 0 0 1.25rem; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
th, td { padding: .55rem .75rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
td.wrap-cell { white-space: normal; min-width: 170px; max-width: 260px; }
thead th { background: var(--surface-3); font-weight: 700; color: var(--ink-soft); font-size: .85rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: var(--surface-2); }
td.num, th.num { text-align: right; }
tr.is-highlight td { background: var(--amber-soft) !important; font-weight: 700; }
caption { caption-side: bottom; text-align: left; padding: .5rem .75rem; font-size: .8rem; color: var(--muted); }

/* ---------- Article / prose ---------- */
.prose { max-width: 75ch; font-size: 1.02rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose a { overflow-wrap: anywhere; }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-3); padding: .1em .35em; border-radius: 4px; }
.prose blockquote { margin: 1rem 0; padding: .75rem 1rem; border-left: 4px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--radius-sm); padding: .9rem 1rem; margin: 1.25rem 0; }
.callout p:last-child { margin: 0; }
.formula { font-family: var(--font-mono); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: .75rem 1rem; margin: 0 0 1rem; overflow-x: auto; font-size: .92rem; }

/* FAQ */
.faq { margin: 2.5rem 0; max-width: 75ch; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: .6rem; }
.faq__item summary { cursor: pointer; padding: .85rem 1rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent); flex: none; }
.faq__item[open] summary::after { content: "−"; }
.faq__answer { padding: 0 1rem 1rem; color: var(--ink-soft); }
.faq__answer p:last-child { margin: 0; }

/* ---------- Cards / grids ---------- */
.tool-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tool-card { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.tool-card:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--ink); }
.tool-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); flex: none; }
.tool-card__icon .icon { width: 25px; height: 25px; }
.tool-card__body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1; }
.tool-card__title { font: 700 1.04rem/1.3 var(--font-display); }
.tool-card__desc { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.tool-card__arrow { width: 20px; height: 20px; color: var(--line-strong); margin-top: .2rem; transition: color .15s, transform .15s; }
.tool-card:hover .tool-card__arrow { color: var(--accent); transform: translateX(3px); }
.tool-grid--compact .tool-card { padding: .85rem; box-shadow: none; }
.tool-grid--compact .tool-card__desc { display: none; }
.tool-grid--compact .tool-card__icon { width: 38px; height: 38px; }
.related { margin-top: 2.5rem; }

/* Network cards */
.net-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.net-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.net-card h3 { margin: 0; font-size: 1.1rem; }
.net-card h3 a { color: var(--ink); text-decoration: none; }
.net-card h3 a:hover { color: var(--accent); }
.net-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.net-card dl, .facts { display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem; margin: 0; font-size: .88rem; }
.net-card dt, .facts dt { color: var(--muted); }
.net-card dd, .facts dd { margin: 0; font-weight: 600; }
.net-card__foot { margin-top: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.facts-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 1rem 0 1.5rem; box-shadow: var(--shadow); }
.facts-box .facts { font-size: .95rem; gap: .5rem 1.2rem; }
.proscons { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 1rem 0 1.5rem; }
.proscons > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; }
.proscons h3 { font-size: 1rem; margin: 0 0 .5rem; }
.proscons ul { margin: 0; padding-left: 1.1rem; }

/* Sidebar */
.tool-aside { display: none; }
@media (min-width: 1024px) { .tool-aside { display: block; } .tool-aside__sticky { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; } }
.aside-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.aside-box__title { font: 700 .78rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .6rem; }
.aside-list { list-style: none; margin: 0; padding: 0; }
.aside-list a { display: flex; align-items: center; gap: .55rem; padding: .42rem .5rem; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: .92rem; }
.aside-list a:hover { background: var(--surface-2); }
.aside-list a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.aside-list .icon { color: var(--accent); width: 18px; height: 18px; }

/* ---------- Ads (space reserved to avoid layout shift) ---------- */
.ad { margin: 1.5rem auto; text-align: center; min-height: 100px; }
.ad__label { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.ad--below_tool, .ad--in_article { min-height: 280px; }
.ad--sidebar { min-height: 600px; margin: 0; }
.ad--footer { max-width: 1200px; padding: 0 16px; min-height: 100px; }
.ad--placeholder { display: grid; place-items: center; border: 2px dashed var(--line-strong); border-radius: var(--radius-sm); color: var(--muted); font-size: .85rem; background: repeating-linear-gradient(45deg, transparent 0 10px, var(--surface-2) 10px 20px); }

/* ---------- Home ---------- */
.hero { background: var(--deep); color: var(--deep-ink); padding: 3rem 0 3.5rem; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; background: radial-gradient(closest-side, rgba(52, 196, 140, .28), transparent); pointer-events: none; }
.hero__grid { display: grid; gap: 2rem; align-items: center; position: relative; z-index: 1; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr 1fr; } }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: .6rem; }
.hero__lead { font-size: clamp(1.02rem, 1.8vw, 1.18rem); color: var(--deep-muted); max-width: 52ch; margin-bottom: 1.25rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero__badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; font-weight: 600; padding: .35rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--deep-ink); }
.hero__badge .icon { width: 16px; height: 16px; color: #5fd39b; }
.quick { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 1.25rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.quick h2 { font-size: 1.1rem; margin-bottom: .9rem; }
.quick__result { margin-top: 1rem; padding: 1rem; border-radius: var(--radius-sm); background: var(--accent-soft); display: grid; gap: .2rem; }
.quick__big { font: 800 2.2rem/1.1 var(--font-display); color: var(--accent); letter-spacing: -.02em; }
.quick__sub { font-size: .88rem; color: var(--ink-soft); }
.section { margin: 2.5rem 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.section__head p { margin: 0; color: var(--muted); }
.page-head { padding: 1.25rem 0 .5rem; }
.page-head p { color: var(--ink-soft); font-size: 1.05rem; max-width: 70ch; }
.content-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
@media (min-width: 640px) { .content-card { padding: 2rem; } }

.form-grid { display: grid; gap: 1rem; max-width: 640px; }
.hp-field { position: absolute; left: -5000px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--deep-muted); padding: 2.5rem 0 1.5rem; font-size: .92rem; }
.site-footer a { color: var(--deep-ink); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr .8fr; } }
.brand--footer { color: var(--deep-ink); margin-bottom: .6rem; }
.site-footer__title { font: 700 .78rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: #5fd39b; margin: 0 0 .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer__legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; }
.site-footer__legal p { margin: 0 0 .4rem; }

/* ---------- Toast & share box ---------- */
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 50; background: var(--ink); color: var(--surface); padding: .7rem 1.1rem; border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: .92rem; max-width: calc(100% - 32px); text-align: center; }
.share-box { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: -.4rem 0 1.1rem; padding: .6rem .75rem; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius-sm); }
.share-box label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.share-box input { flex: 1; min-width: 200px; min-height: 36px; font-family: var(--font-mono); font-size: .88rem; }

/* ---------- Charts ---------- */
.chart-wrap { margin-top: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .75rem .75rem; }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font: 11px var(--font-body); }
.chart .bar--s0 { fill: var(--accent); }
.chart .bar--s1 { fill: var(--amber); }
.chart .bar--s2 { fill: var(--indigo); }
.chart .bar:hover { opacity: .8; }
.chart .axis { stroke: var(--line-strong); }
.chart .grid { stroke: var(--line); stroke-dasharray: 2 3; }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.legend i { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin-right: .35rem; border-radius: 3px; background: var(--accent); }
.legend i.s1 { background: var(--amber); }
.legend i.s2 { background: var(--indigo); }

.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.good { color: var(--good); }
.bad { color: var(--bad); }
.text-right { text-align: right; }

@media print {
  .site-header, .site-footer, .tool-aside, .ad, .calc__bar, .related, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .calc { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
