/* TechLab247 design system — light, neutral surfaces; one cobalt accent; ink for emphasis. */
:root {
  --ink: #0b1324;
  --ink-2: #1e293b;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-sunk: #f1f5f9;

  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #eff4ff;
  --accent-line: #c7d7fe;

  --good: #047857;
  --warn: #b45309;
  --warn-soft: #fffbeb;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -2px rgba(15, 23, 42, 0.05), 0 12px 24px -6px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 8px 16px -8px rgba(15, 23, 42, 0.10), 0 24px 48px -12px rgba(15, 23, 42, 0.16);

  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
strong { color: var(--ink-2); font-weight: 650; }
::selection { background: #dbe6ff; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 12px; letter-spacing: -0.03em; }
h2 { font-size: clamp(21px, 2.4vw, 25px); margin: 48px 0 12px; }
h3 { font-size: 17px; margin: 28px 0 8px; letter-spacing: -0.01em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { display: block; }
.brand-word { font-size: 19px; font-weight: 750; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.brand-word .t2 { color: var(--accent); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.site-nav a {
  color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 550;
  padding: 8px 12px; border-radius: var(--radius-sm); white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); background: var(--bg-sunk); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav .nav-cta {
  margin-left: 8px; background: var(--ink); color: #fff; padding: 8px 14px;
}
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { background: var(--ink-2); color: #fff; }

/* ---------- Buttons ---------- */
.btn, .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  padding: 0 20px; min-height: 46px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 70% at 85% 10%, rgba(29, 78, 216, 0.09), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), #fff);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 0%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 70% 0%, #000, transparent 75%);
}
.hero .wrap {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 5px 12px; border-radius: 999px;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.06; margin-bottom: 18px; }
.hero h1 span { color: var(--accent); }
.hero .sub { font-size: 18.5px; color: var(--text); max-width: 540px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 32px; flex-wrap: wrap; margin: 36px 0 0; padding: 0; list-style: none;
}
.hero-stats li { display: flex; flex-direction: column; font-size: 13.5px; color: var(--muted); }
.hero-stats strong { font-size: 24px; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* decorative sample calculator in the hero */
.hero-demo {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  box-shadow: var(--shadow-lg); max-width: 440px; justify-self: end; width: 100%;
}
.hero-demo .demo-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.hero-demo .demo-title { font-weight: 650; color: var(--ink); font-size: 15px; }
.hero-demo .demo-tag { font-size: 12px; color: var(--good); background: #ecfdf5; padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.demo-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.demo-field { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.demo-field small { display: block; font-size: 11.5px; color: var(--muted); }
.demo-field span { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.demo-total { background: var(--ink); color: #fff; border-radius: 12px; padding: 16px 18px; }
.demo-total small { color: #94a3b8; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.demo-total div { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.demo-rows { margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; }
.demo-rows li { display: flex; justify-content: space-between; padding: 7px 2px; border-top: 1px solid var(--line); }
.demo-rows li span:last-child { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Section headings ---------- */
.section { padding: 64px 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }

/* ---------- Tool cards (app launcher tiles) ---------- */
.tool-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 8px; }
.tool-card {
  display: flex; flex-direction: column; gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px;
  text-decoration: none; color: var(--text); box-shadow: var(--shadow-xs);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tool-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--text); }
.tool-top { display: flex; align-items: center; gap: 16px; }
.tool-icon {
  flex: none; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 14px -6px var(--tone, #1d4ed8);
  background: linear-gradient(145deg, var(--tone-a, #3b6cf6), var(--tone, #1d4ed8));
}
.tool-icon svg { width: 30px; height: 30px; }
.tone-vat    { --tone-a: #3b6cf6; --tone: #1d4ed8; }
.tone-ioss   { --tone-a: #7c6cf2; --tone: #4f46e5; }
.tone-canada { --tone-a: #ef5b5b; --tone: #c62828; }
.tone-mca    { --tone-a: #f59e0b; --tone: #c2410c; }
.tone-loan   { --tone-a: #16a37f; --tone: #047857; }
.tone-etsy   { --tone-a: #fb7a45; --tone: #d9480f; }
.tone-tiktok { --tone-a: #3a3f4b; --tone: #0b1324; }
.tone-whatnot { --tone-a: #f7c948; --tone: #b7791f; }
.tone-depop  { --tone-a: #f0506e; --tone: #be123c; }
.tone-factoring { --tone-a: #38bdf8; --tone: #0369a1; }
.tone-sba    { --tone-a: #64748b; --tone: #334155; }
.tone-mileage { --tone-a: #2dd4bf; --tone: #0f766e; }
.tone-oss    { --tone-a: #818cf8; --tone: #3730a3; }
.tool-card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.015em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span {
  font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1;
  background: var(--bg-sunk); border-radius: 6px; padding: 5px 8px;
}
/* a calculator "display" showing a live-computed example */
.tool-screen {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  background: var(--ink); color: #cbd5e1; border-radius: 12px; padding: 14px 16px;
  font-variant-numeric: tabular-nums;
}
.tool-screen .given { font-size: 13px; line-height: 1.4; color: #94a3b8; }
.tool-screen .out { text-align: right; color: #fff; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.tool-screen .out small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #94a3b8; margin-bottom: 4px; }
.tool-open {
  display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px;
  border-radius: 10px; border: 1px solid var(--line-strong); color: var(--ink);
  font-size: 15px; font-weight: 600; transition: background .15s, border-color .15s, color .15s;
}
.tool-open::after { content: "→"; transition: transform .15s; }
.tool-card:hover .tool-open { background: var(--accent); border-color: var(--accent); color: #fff; }
.tool-card:hover .tool-open::after { transform: translateX(3px); }

/* ---------- Trust features ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.feature .num {
  width: 32px; height: 32px; border-radius: 8px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 14px; margin-bottom: 12px;
}
.feature h3 { margin: 0 0 6px; }
.feature p { margin: 0; font-size: 15px; color: var(--muted); }
.section-note { margin: 20px 0 0; color: var(--muted); }

/* ---------- Tool page header ---------- */
.tool-head { background: linear-gradient(180deg, var(--bg-soft), #fff); border-bottom: 1px solid var(--line); }
.tool-head .wrap { padding-top: 28px; padding-bottom: 30px; }
.tool-head h1 { margin-top: 10px; }
.crumb { font-size: 13.5px; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); text-decoration: underline; }
.crumb .sep { margin: 0 6px; color: var(--line-strong); }
.lede { font-size: 17.5px; color: var(--text); max-width: 760px; margin: 0; }

/* data provenance line */
.source-line {
  display: block; position: relative; font-size: 13.5px; color: var(--muted); max-width: 900px;
  margin: 18px 0 0; padding: 10px 14px 10px 36px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.source-line::before {
  content: ""; position: absolute; left: 14px; top: 17px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--good); box-shadow: 0 0 0 4px #d1fae5;
}
.source-line.stale::before { background: var(--warn); box-shadow: 0 0 0 4px #fef3c7; }
.source-line a { color: var(--text); }

/* ---------- Page body ---------- */
main { display: block; }
.page { max-width: var(--wrap); margin: 0 auto; padding: 32px 24px 80px; }

/* tool pages: calculator full-width, then article + sticky table of contents */
.page.tool { display: grid; grid-template-columns: minmax(0, 1fr) 240px; column-gap: 56px; align-items: start; }
.page.tool > * { grid-column: 1 / -1; }
.page.tool > .content, .page.tool > .disclaimer { grid-column: 1; }
.page.tool > .toc { grid-column: 2; grid-row: 2 / span 2; position: sticky; top: 88px; margin-top: 48px; }

/* ---------- Calculator ---------- */
.calc-card {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden; margin: 0;
}
.calc-card > .calc-grid { grid-column: 1; padding: 28px; align-content: start; }
@media (min-width: 901px) { .calc-card > .results:not(.results + .results) { grid-row: 1 / span 2; } }
.calc-card > .results { grid-column: 2; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 16px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  padding: 10px 13px; min-height: 46px; width: 100%;
  border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-xs);
  transition: border-color .15s, box-shadow .15s;
}
.field input { font-variant-numeric: tabular-nums; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #94a3b8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.14);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2364748b' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
}

.seg {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px;
  background: var(--bg-sunk); border: 1px solid var(--line); border-radius: 10px; padding: 3px; min-height: 46px;
}
.seg button {
  font: inherit; font-size: 14.5px; font-weight: 600; color: var(--muted);
  padding: 0 16px; border: 0; border-radius: 7px; background: transparent; cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.seg button:hover { color: var(--ink); }
.seg button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* results: a stacked panel, headline figure first */
.results {
  display: flex; flex-direction: column; gap: 0;
  background: var(--bg-soft); border-left: 1px solid var(--line); padding: 22px 24px;
}
/* a second results block (Etsy breakdown) sits under the inputs to balance the card */
.calc-card > .results + .results { grid-column: 1; border-left: 0; border-top: 1px solid var(--line); padding-top: 16px; background: #fff; }
.results + .results::before {
  content: "Breakdown"; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.result {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 11px 0; border-top: 1px solid var(--line); min-width: 0;
}
.result .label { font-size: 14px; color: var(--muted); }
.result .value {
  font-size: 16.5px; font-weight: 650; color: var(--ink); text-align: right;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.result.primary {
  order: -1; flex-direction: column; align-items: stretch; gap: 2px;
  background: var(--ink); border: 0; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 8px;
}
.result.primary + .result, .results > .result:first-child:not(.primary) { border-top: 0; }
.result.primary .label { color: #94a3b8; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.result.primary .value { color: #fff; font-size: clamp(28px, 3.2vw, 36px); font-weight: 700; letter-spacing: -0.02em; text-align: left; }

/* ---------- Article content ---------- */
.content { max-width: 760px; font-size: 16.5px; }
.content > h2:first-child { margin-top: 48px; }
.content p, .content li { color: var(--text); }
.content p { margin: 14px 0; }
.content ul, .content ol { padding-left: 22px; }
.content li { margin: 6px 0; }
.content table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 20px 0; font-size: 15px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.content th, .content td { text-align: left; padding: 11px 14px; vertical-align: top; }
.content th { background: var(--bg-sunk); color: var(--ink-2); font-weight: 650; font-size: 13.5px; }
.content td { border-top: 1px solid var(--line); }
.content td { font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }

.formula {
  font-family: var(--mono); font-size: 14.5px; line-height: 1.9; color: var(--ink-2);
  background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 16px 20px; overflow-x: auto; margin: 18px 0;
}

.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 18px 0; }
.faq details { border-top: 1px solid var(--line); background: #fff; }
.faq details:first-child { border-top: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--bg-soft); }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > :not(summary) { margin: 0; padding: 0 20px 18px; color: var(--text); }

.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 16px 0; }
.related a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.related a::after { content: "→"; color: var(--accent); }
.related a:hover { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }

.disclaimer {
  font-size: 13.5px; color: var(--muted); line-height: 1.6;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; margin-top: 40px; max-width: 760px;
}
.disclaimer strong { color: var(--ink-2); }

/* table of contents (built by toc.js) */
.toc { font-size: 14px; }
.toc-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a {
  display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent;
  color: var(--muted); text-decoration: none; line-height: 1.4;
}
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

/* ---------- Contact / generic cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px; align-items: start; margin-top: 28px;
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.label-hint { font-weight: 400; color: var(--muted); }
.field .errorlist { color: #b91c1c; font-size: 13px; margin: 2px 0 0; padding: 0; list-style: none; }
.contact-aside { display: flex; flex-direction: column; gap: 16px; }
.aside-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; font-size: 14.5px; }
.aside-card h3 { margin: 0 0 8px; font-size: 16px; }
.aside-card p { margin: 8px 0; }
.aside-card ul { margin: 8px 0; padding-left: 20px; }
.notice {
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
  border-radius: var(--radius); padding: 12px 16px; margin-top: 20px;
}
.notice strong { color: inherit; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 56px 0 24px; }
.not-found .code { font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.not-found .lede { margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #94a3b8; font-size: 14px; }
.site-footer .wrap {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 32px;
}
.site-footer .brand-word { color: #fff; }
.site-footer .brand-word .t2 { color: #93b4ff; }
.site-footer h4 { color: #fff; font-size: 13px; font-weight: 650; letter-spacing: 0; margin: 4px 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-blurb { max-width: 320px; margin: 0; line-height: 1.7; }
.site-footer .legal {
  grid-column: 1 / -1; border-top: 1px solid #1e293b; padding-top: 22px;
  font-size: 12.5px; color: #64748b; line-height: 1.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .page.tool { display: block; }
  .page.tool > .toc { display: none; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 56px; }
  .hero-demo { justify-self: start; }
  .calc-card { grid-template-columns: 1fr; }
  .calc-card > .calc-grid, .calc-card > .results { grid-column: 1; grid-row: auto; }
  .results { border-left: 0; border-top: 1px solid var(--line); }
  .features { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0; padding-top: 10px; }
  .site-nav { margin: 0 -12px; width: calc(100% + 24px); overflow-x: auto; padding: 6px 0 8px; }
  .site-header .wrap { position: relative; }
  .site-nav .nav-cta { position: absolute; right: 16px; top: 10px; margin: 0; }
  .hero-demo { display: none; }
}
@media (max-width: 560px) {
  .wrap, .page { padding-left: 16px; padding-right: 16px; }
  .calc-card > .calc-grid { padding: 20px; }
  .results { padding: 18px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
.tag { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 1px 5px; margin-left: 4px; vertical-align: 1px; }
