/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --accent: #8C7BFF;
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 40%, transparent);
  --bg: #0A0F1E;
  --bg-deep: #080C18;
  --surface: #111830;
  --surface-2: #0D1429;
  --inset: #0B1124;
  --border: #1F2A47;
  --border-strong: #263257;
  --rule: #1A2440;
  --grid: #141C33;
  --text: #EDF1FA;
  --text-2: #C3CBE0;
  --muted: #A3AECB;
  --faint: #8E99B8;
  --estimate: #F5B544;
  --estimate-bg: #241C0E;
  --estimate-line: #5A4520;
  --formula: #4FD1C5;
  --formula-bg: #0D2423;
  --formula-line: #1E4E4B;
  --good: #4FD1C5;
  --warn: #F5B544;
  --bad: #FF8A7A;
  --radius: 18px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: #C9C2FF; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
p { margin: 0; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 800px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* ── Buttons, badges, chips ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font-family: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-small { min-height: 44px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { color: var(--bg); filter: brightness(1.08); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

.badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 7px; border: 1px solid; }
.badge-estimate { color: var(--estimate); border-color: var(--estimate-line); background: var(--estimate-bg); }
.badge-formula { color: var(--formula); border-color: var(--formula-line); background: var(--formula-bg); }
.badge-neutral { color: var(--text-2); border-color: var(--border-strong); }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }

.kicker { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.eyebrow {
  align-self: flex-start; display: inline-flex; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  font-size: 13px; font-weight: 600; color: #DAD5FF;
}

.icon-box {
  width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
}
.icon-box--small { width: 42px; height: 42px; border-radius: 11px; }
.icon-box--formula { background: var(--formula-bg); color: var(--formula); }
.icon-box--estimate { background: var(--estimate-bg); color: var(--estimate); }

/* ── Header ────────────────────────────────────────────────── */
.site-header { border-bottom: 1px solid var(--rule); background: var(--bg); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.brand--small .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
.brand--small .brand-name { font-size: 19px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { color: var(--text-2); text-decoration: none; padding: 10px 0; }
.nav a:not(.btn):hover { color: var(--text); }

/* ── Hero ──────────────────────────────────────────────────── */
.grid-bg {
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  border-bottom: 1px solid var(--rule);
}
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 96px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero-card-wrap { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; }
.display { font-weight: 700; font-size: clamp(40px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -0.035em; }
.display .accent { color: var(--accent); }
.display--page { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; }
.lead { font-size: 19px; color: var(--muted); max-width: 620px; }
.page-hero-inner { display: flex; flex-direction: column; gap: 18px; padding-top: 40px; padding-bottom: 56px; }
@media (max-width: 600px) {
  .hero-inner { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .lead { font-size: 17px; }
}

.search-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; }
.search-box { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; padding: 0 16px; min-height: 54px; color: var(--faint); }
.search-box input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 16px; }
.search-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.search-results a { display: block; padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; }
.search-results a:hover { border-color: var(--accent); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--muted); }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { color: var(--good); }

.preview-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 20px; padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.45); display: flex; flex-direction: column; gap: 20px; }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.preview-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.example-tag { font-size: 12px; font-weight: 700; color: var(--bg); background: var(--estimate); padding: 4px 9px; border-radius: 6px; }

/* ── Sections ──────────────────────────────────────────────── */
.section { padding-top: 88px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 34px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-head > div { display: flex; flex-direction: column; gap: 10px; max-width: 680px; }
.section-title { font-size: clamp(30px, 3.6vw, 40px); letter-spacing: -0.03em; }
.section-sub { font-size: 17px; color: var(--muted); }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 20px; }
.card p { font-size: 15px; color: var(--muted); }
.tool-card { text-decoration: none; color: var(--text); gap: 16px; padding: 24px; transition: border-color .15s, transform .15s; }
.tool-card:hover { color: var(--text); border-color: var(--accent-line); transform: translateY(-2px); }
.tool-card-top { display: flex; align-items: center; justify-content: space-between; }
.tool-card-text { display: flex; flex-direction: column; gap: 6px; }
.card-cta { margin-top: auto; color: var(--accent); font-weight: 700; font-size: 14px; }
.coming-soon { border-style: dashed; color: var(--faint); justify-content: center; text-align: center; }
.coming-soon h3 { color: var(--text-2); }

.about-band { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 24px; padding: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 36px; }
.about-photo { width: 112px; height: 112px; border-radius: 999px; background: #1A2440; border: 2px solid var(--accent-line); display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 12px; font-weight: 600; text-align: center; flex: 0 0 auto; }
.about-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.about-copy h2 { font-size: 30px; }
.about-copy p { color: var(--muted); }
@media (max-width: 600px) { .about-band { padding: 28px; } }

/* ── Ad slots ──────────────────────────────────────────────── */
.ad-slot { border: 1px dashed #2E3B60; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #7F8BAA; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin: 28px 0; }
.ad-slot--banner { min-height: 96px; }
.ad-slot--box { min-height: 250px; margin: 0; }
.ad-slot-live { margin: 28px 0; }
.ad-label { display: block; font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }

/* ── Tool shell ────────────────────────────────────────────── */
.tool-section { padding-top: 48px; padding-bottom: 8px; }
.tool-shell { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 24px; display: flex; flex-wrap: wrap; overflow: hidden; }
.tool-inputs { flex: 1 1 520px; min-width: 0; padding: 36px; display: flex; flex-direction: column; gap: 28px; }
.tool-result { flex: 1 1 400px; min-width: 0; padding: 36px; background: var(--surface-2); border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 960px) { .tool-result { border-left: 0; border-top: 1px solid var(--border); } }
@media (max-width: 600px) { .tool-inputs, .tool-result { padding: 24px; } }

.field { display: flex; flex-direction: column; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-label, .field legend { font-size: 14px; font-weight: 700; color: var(--text); padding: 0; }
.field-hint { font-size: 13px; color: var(--faint); }
.input {
  width: 100%; min-height: 54px; background: var(--inset); border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 0 16px; color: var(--text); font-family: var(--font-display); font-size: 20px; font-weight: 600;
}
.input:focus { border-color: var(--accent); outline: none; }
.input--text { font-family: var(--font-body); font-size: 17px; font-weight: 500; }
textarea.input { padding: 14px 16px; min-height: 96px; resize: vertical; line-height: 1.5; }
select.input { font-family: var(--font-body); font-size: 16px; font-weight: 600; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.input-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }

.seg { display: flex; gap: 6px; background: var(--inset); border: 1px solid var(--border); border-radius: 12px; padding: 5px; }
.seg button { flex: 1; min-height: 46px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--bg); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--inset); color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--accent-line); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: #fff; font-weight: 700; }
.chip--round { border-radius: 999px; background: transparent; }

.result-label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.result-big { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 4.4vw, 54px); letter-spacing: -0.03em; line-height: 1.08; }
.result-big .dash { color: #6E7A99; }
.result-sub { font-size: 14px; color: var(--muted); }
.result-top { display: flex; flex-direction: column; gap: 6px; }
.result-top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.currency-picker { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); font-weight: 600; }
.currency-picker select { min-height: 40px; background: var(--inset); color: var(--text); border: 1px solid var(--border-strong); border-radius: 9px; padding: 0 10px; font: inherit; font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; min-width: 0; }
.stat-label { font-size: 12px; font-weight: 700; color: var(--faint); }
.stat-value { font-size: 19px; font-weight: 700; margin-top: 4px; overflow-wrap: anywhere; }
@media (max-width: 420px) { .stat-grid { grid-template-columns: 1fr; } }
.note { font-size: 13px; color: var(--faint); }
.callout { padding: 14px 16px; background: var(--inset); border: 1px solid var(--border); border-radius: 12px; font-size: 14px; color: var(--muted); }

.meter { height: 12px; border-radius: 999px; background: #1A2440; overflow: hidden; }
.meter-fill { height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width .2s; }
.meter-fill.is-over { background: var(--bad); }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font-size: 15px; }
.checklist .status { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.status--pass { background: var(--formula-bg); color: var(--good); }
.status--warn { background: var(--estimate-bg); color: var(--warn); }
.status--fail { background: #2A1414; color: var(--bad); }
.checklist strong { display: block; }
.checklist span.detail { color: var(--muted); font-size: 14px; }

.dropzone { border: 2px dashed var(--border-strong); border-radius: 16px; padding: 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); background: var(--inset); cursor: pointer; }
.dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.field:has(#file:focus-visible) .dropzone { outline: 2px solid var(--accent); outline-offset: 3px; }
.thumb-preview { width: 100%; border-radius: 12px; border: 1px solid var(--border); background: #000; display: block; }

.truncation { display: flex; flex-direction: column; gap: 12px; }
.trunc-row { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.trunc-row .trunc-label { font-size: 12px; font-weight: 700; color: var(--faint); margin-bottom: 4px; }
.trunc-row .trunc-text { font-weight: 600; overflow-wrap: anywhere; }

.affiliate { border: 1px solid var(--border-strong); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); margin-top: auto; }
.affiliate-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.affiliate-title { font-size: 15px; font-weight: 700; }
.affiliate-tag { font-size: 11px; font-weight: 700; color: var(--faint); border: 1px solid var(--border-strong); padding: 2px 7px; border-radius: 5px; }
.affiliate p { font-size: 14px; color: var(--muted); }
.affiliate .btn { align-self: flex-start; }

/* ── Content layout ────────────────────────────────────────── */
.content-layout { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 32px; padding-bottom: 24px; }
.content-main { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 64px; }
.content-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.aside-head { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.related-link { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; text-decoration: none; color: var(--text); }
.related-link:hover { border-color: var(--accent-line); color: var(--text); }
.related-text { display: flex; flex-direction: column; min-width: 0; }
.related-name { font-weight: 700; }
.related-blurb { font-size: 13px; color: var(--muted); }

.prose-section { display: flex; flex-direction: column; gap: 18px; }
.prose-section h2, .prose h2 { font-size: clamp(26px, 3vw, 34px); }
.prose-section h3, .prose h3 { font-size: 21px; margin-top: 8px; }
.prose-section p, .prose p, .prose li { font-size: 16px; color: var(--text-2); }
.prose { padding-top: 48px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 18px; }
.prose ul, .prose ol, .prose-section ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); }
.formula { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; padding: 20px 24px; font-family: var(--font-display); font-size: clamp(17px, 2vw, 20px); font-weight: 600; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; }
.table-wrap table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; }
.table-wrap caption { text-align: left; padding: 14px 20px; font-size: 14px; font-weight: 700; color: var(--text); background: var(--surface); border-bottom: 1px solid var(--border); }
.table-wrap th { text-align: left; padding: 12px 20px; color: var(--faint); font-size: 13px; font-weight: 700; background: var(--surface-2); }
.table-wrap td { padding: 12px 20px; border-top: 1px solid var(--border); }
.table-wrap .num { text-align: right; color: var(--text-2); }
.sources { font-size: 14px; color: var(--faint); }

details.faq { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; }
details.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; }
details.faq p { margin-top: 12px; color: var(--muted); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--faint); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current] { color: var(--text); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { margin-top: 72px; border-top: 1px solid var(--rule); background: var(--bg-deep); padding-top: 56px; padding-bottom: 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-about { flex: 1 1 260px; max-width: 340px; display: flex; flex-direction: column; gap: 14px; }
.footer-about p { font-size: 14px; color: var(--faint); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-col a { color: var(--muted); text-decoration: none; padding: 2px 0; }
.footer-col a:hover { color: var(--text); }
.footer-head { font-weight: 700; color: var(--text); }
.footer-bottom { margin-top: 40px; border-top: 1px solid var(--rule); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--faint); }

.not-found { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }

@media (max-width: 600px) {
  .nav .btn { display: none; }
  .header-inner { padding-top: 12px; padding-bottom: 12px; }
}
