/* =========================================================
   ToolKita — shared stylesheet
   Modern, accessible, SEO/AdSense-friendly multi-tool site
   Light + dark mode via [data-theme] and prefers-color-scheme
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --brand: #4f46e5;          /* indigo-600 */
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-500: #6366f1;
  --accent: #10b981;         /* emerald-500 */
  --accent-600: #059669;

  /* Neutrals (light) */
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --border: #e4e7ee;
  --text: #0f172a;           /* slate-900 */
  --text-2: #475569;         /* slate-600 */
  --text-3: #94a3b8;         /* slate-400 */

  /* Semantic */
  --success: #059669;
  --danger: #dc2626;
  --warning: #d97706;

  /* Shape & motion */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, .08);
  --shadow-lg: 0 18px 40px -12px rgba(15, 23, 42, .22);
  --ring: 0 0 0 3px rgba(99, 102, 241, .35);
  --maxw: 1160px;
  --ease: cubic-bezier(.16, .84, .44, 1);

  --grad: linear-gradient(135deg, #6366f1 0%, #4f46e5 45%, #7c3aed 100%);
}

:root[data-theme="dark"] {
  --bg: #0b1020;
  --surface: #121a2e;
  --surface-2: #1a2340;
  --border: #26304d;
  --text: #eef2ff;
  --text-2: #aab4d4;
  --text-3: #6b7699;
  --brand: #818cf8;
  --brand-500: #818cf8;
  --brand-600: #6366f1;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 50px -12px rgba(0, 0, 0, .6);
  --grad: linear-gradient(135deg, #4338ca 0%, #4f46e5 45%, #7c3aed 100%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1020;
    --surface: #121a2e;
    --surface-2: #1a2340;
    --border: #26304d;
    --text: #eef2ff;
    --text-2: #aab4d4;
    --text-3: #6b7699;
    --brand: #818cf8;
    --brand-500: #818cf8;
    --brand-600: #6366f1;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, .45);
    --shadow-lg: 0 24px 50px -12px rgba(0, 0, 0, .6);
    --grad: linear-gradient(135deg, #4338ca 0%, #4f46e5 45%, #7c3aed 100%);
  }
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.tabnum { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; gap: 16px; height: 66px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 800;
  font-size: 1.15rem; letter-spacing: -.03em; color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad); color: #fff; box-shadow: var(--shadow-sm); flex: none;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand em { color: var(--brand); font-style: normal; }

.header-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.header-nav a {
  color: var(--text-2); font-weight: 600; font-size: .93rem; padding: 8px 12px;
  border-radius: 10px; transition: background .18s var(--ease), color .18s var(--ease);
}
.header-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  border-radius: 10px; cursor: pointer; transition: .18s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--brand); }
.icon-btn svg { width: 19px; height: 19px; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 10px; cursor: pointer; font-weight: 700; font-size: .88rem;
  transition: .18s var(--ease);
}
.lang-toggle:hover { border-color: var(--brand); color: var(--brand); }

.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: .95rem; padding: 12px 20px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer; transition: .18s var(--ease);
  min-height: 44px;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-700); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 90px) 0 clamp(40px, 6vw, 70px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 15% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%),
    radial-gradient(50% 60% at 90% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%);
}
.hero-inner { max-width: 780px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.35rem); margin-bottom: .35em; }
.hero h1 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: clamp(1.02rem, 2.2vw, 1.25rem); color: var(--text-2); max-width: 60ch; }

/* ---------- Search ---------- */
.tool-search {
  position: relative; margin: 26px 0 8px; max-width: 560px;
}
.tool-search svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--text-3); pointer-events: none;
}
.tool-search input {
  width: 100%; height: 56px; padding: 0 18px 0 48px; font-size: 1rem;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  color: var(--text); box-shadow: var(--shadow-sm); transition: .18s var(--ease);
}
.tool-search input::placeholder { color: var(--text-3); }
.tool-search input:focus { border-color: var(--brand); box-shadow: var(--ring); outline: none; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 26px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.hero-stats span { font-size: .85rem; color: var(--text-2); }

/* ---------- Category chips ---------- */
.cat-filter {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 30px;
}
.chip {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  cursor: pointer; transition: .16s var(--ease); min-height: 40px;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 18px 0 40px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 0; }
.section-head .count { color: var(--text-3); font-weight: 600; font-size: .9rem; }

/* ---------- Tool grid ---------- */
.tool-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.tool-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
a.tool-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); text-decoration: none;
}
.tool-card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); flex: none;
}
.tool-card .ic svg { width: 24px; height: 24px; }
.tool-card h3 { font-size: 1.05rem; margin: 0; color: var(--text); }
.tool-card p { margin: 0; font-size: .88rem; color: var(--text-2); }
.tool-card .go {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: .85rem; color: var(--brand);
}
.tool-card .go svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
a.tool-card:hover .go svg { transform: translateX(3px); }

.tool-card.soon { opacity: .82; }
.badge-soon {
  position: absolute; top: 14px; right: 14px; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 999px;
}
.tool-card.hidden { display: none; }

.no-results { color: var(--text-2); padding: 30px 0; display: none; }

/* ---------- Ad slots ---------- */
.ad-slot {
  margin: 26px auto; max-width: var(--maxw); text-align: center;
  display: block; position: relative;
}
/* Collapse the slot only AFTER AdSense reports no ad (unfilled), so an
   empty placeholder never reserves a big blank box. The <ins> stays visible
   until then so AdSense can measure its width and fill it with a real ad. */
.ad-slot ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad-slot--label::before {
  content: "Advertisement"; position: absolute; font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3); transform: translateY(-30px);
}
.ad-slot ins { display: block; width: 100%; }

/* ---------- Calculator page layout ---------- */
.tool-hero { padding: 34px 0 8px; }
.breadcrumb { font-size: .85rem; color: var(--text-2); margin-bottom: 12px; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--brand); }
.tool-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.tool-hero p { color: var(--text-2); max-width: 65ch; }

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.panel h2 { font-size: 1.15rem; margin-bottom: 16px; }

.field { margin-bottom: 18px; }
.field > label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--text); }
.field .hint { font-size: .8rem; color: var(--text-3); margin-top: 5px; }
.input, select.input {
  width: 100%; height: 46px; padding: 0 14px; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 11px;
  transition: .16s var(--ease); font-variant-numeric: tabular-nums;
}
.input:focus { border-color: var(--brand); box-shadow: var(--ring); outline: none; }
.input-prefixed { position: relative; }
.input-prefixed .pfx {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); font-weight: 600; pointer-events: none;
}
.input-prefixed .input { padding-left: 42px; }

.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type="range"] { flex: 1; }
.range-row .range-val {
  min-width: 74px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--brand);
}
input[type="range"] {
  -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px;
  background: var(--surface-2); cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand); border: 3px solid var(--surface); box-shadow: var(--shadow-sm);
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--brand);
  border: 3px solid var(--surface); box-shadow: var(--shadow-sm);
}

.error-message { color: var(--danger); font-size: .82rem; margin-top: 6px; display: none; }
.error-message.show { display: block; }

/* Result cards */
.result-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 13px; padding: 15px 16px;
}
.stat.feature { background: var(--grad); border: none; color: #fff; grid-column: 1 / -1; }
.stat .k { font-size: .78rem; color: var(--text-2); font-weight: 600; margin-bottom: 4px; }
.stat.feature .k { color: rgba(255, 255, 255, .85); }
.stat .v { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat.feature .v { font-size: 1.85rem; }

.chart-wrap { margin-top: 20px; }
.chart-box { position: relative; height: 300px; }

/* Data table */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 460px; }
table.data th, table.data td {
  padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th {
  background: var(--surface-2); color: var(--text); font-weight: 700; position: sticky; top: 0;
}
table.data tbody tr:hover { background: var(--surface-2); }
table.data td.pos { color: var(--success); font-weight: 600; }
table.data td.neg { color: var(--danger); font-weight: 600; }
table.data tr.hl { background: color-mix(in srgb, var(--brand) 8%, transparent); }

.prose { max-width: 74ch; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.08rem; margin-top: 1.3em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.faq-item { border-top: 1px solid var(--border); padding: 16px 0; }
.faq-item h3 { margin: 0 0 6px; font-size: 1rem; }
.faq-item p { margin: 0; color: var(--text-2); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 50px; border-top: 1px solid var(--border);
  background: var(--surface); color: var(--text-2);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; padding: 44px 0 30px;
}
.site-footer h4,.site-footer .footer-group-title { font-size: .82rem; font-weight:700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--text-2); font-size: .92rem; }
.site-footer a:hover { color: var(--brand); }
.footer-about p { font-size: .92rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 18px 0; font-size: .85rem;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center;
}

/* ---------- Shared calculator components ---------- */
.single-col { max-width: 720px; margin-inline: auto; }
.big-result {
  background: var(--grad); color: #fff; border-radius: var(--radius-lg);
  padding: 26px; text-align: center; margin-bottom: 20px;
}
.big-result .k { font-size: .85rem; opacity: .9; margin-bottom: 6px; }
.big-result .v { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.big-result .sub { margin-top: 8px; font-size: .9rem; opacity: .92; }

.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button {
  border: none; background: transparent; color: var(--text-2); font-weight: 600; font-size: .9rem;
  padding: 8px 14px; border-radius: 8px; cursor: pointer; transition: .16s var(--ease); min-height: 38px;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }

.io-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: end; }
.swap-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface); color: var(--brand); cursor: pointer;
  transition: .18s var(--ease);
}
.swap-btn:hover { border-color: var(--brand); transform: rotate(180deg); }
.swap-btn svg { width: 20px; height: 20px; }

.keypad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.keypad button {
  min-height: 52px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 11px; font-size: 1.05rem; font-weight: 600; cursor: pointer; transition: .12s var(--ease);
  font-variant-numeric: tabular-nums;
}
.keypad button:hover { border-color: var(--brand); background: var(--surface-2); }
.keypad button:active { transform: scale(.96); }
.keypad button.op { color: var(--brand); }
.keypad button.fn { font-size: .82rem; color: var(--text-2); }
.keypad button.eq { background: var(--brand); color: #fff; border-color: var(--brand); grid-column: span 1; }
.keypad button.wide { grid-column: span 2; }
.calc-display {
  width: 100%; text-align: right; padding: 16px 18px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--surface-2); margin-bottom: 14px; overflow-x: auto;
}
.calc-display .expr { font-size: .9rem; color: var(--text-3); min-height: 1.2em; word-break: break-all; }
.calc-display .now { font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; word-break: break-all; }

.cal-toolbar { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid .dow { text-align: center; font-size: .78rem; font-weight: 700; color: var(--text-3); padding: 6px 0; }
.cal-grid .day {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-variant-numeric: tabular-nums;
  border: 1px solid transparent; font-size: .95rem;
}
.cal-grid .day.pad { color: var(--text-3); opacity: .45; }
.cal-grid .day.today { background: var(--brand); color: #fff; font-weight: 700; }
.cal-grid .day.wknd:not(.today) { color: var(--accent-600); }
.cal-grid .day:not(.pad) { cursor: pointer; transition: background .12s var(--ease); }
.cal-grid .day:not(.pad):hover { background: var(--surface-2); }
.cal-grid .day.selected { outline: 2px solid var(--brand); outline-offset: -2px; font-weight: 700; }

.count-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: center; }
.count-grid .unit { background: var(--surface-2); border: 1px solid var(--border); border-radius: 13px; padding: 16px 8px; }
.count-grid .num { font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--brand); }
.count-grid .lbl { font-size: .78rem; color: var(--text-2); margin-top: 4px; }

textarea.input { height: auto; min-height: 130px; padding: 12px 14px; resize: vertical; line-height: 1.5; font-family: inherit; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.pill-result { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-top: 6px; }
.pill-result .k { font-size: .78rem; color: var(--text-2); }
.pill-result .v { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; word-break: break-word; }
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem;
}
.badge.good { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.badge.warn { background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--warning); }
.badge.bad { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.copy-btn { cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 680px) {
  .header-nav { display: none; }
  .hero-stats { gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .result-cards { grid-template-columns: 1fr; }
}
