/* =========================================================================
   TankStocking — design system + components
   Pure CSS, no framework, no external fonts. Aquatic, calm, credible.
   Sections: 1 tokens · 2 reset/base · 3 layout · 4 header/footer · 5 buttons
   6 cards/sections · 7 planner · 8 gauge/verdict · 9 species · 10 forms
   11 tables · 12 badges/notes · 13 ads · 14 utilities · 15 responsive · 16 motion
   ========================================================================= */

/* ---------- 1. tokens ---------- */
:root {
  /* palette — ocean teal + warm coral CTA + planted green */
  --ink: #0b2733;
  --ink-soft: #3a525e;
  --ink-faint: #6b818c;
  --bg: #f3f8fa;
  --bg-tint: #e8f2f4;
  --surface: #ffffff;
  --surface-2: #f7fbfc;
  --line: #dce7ea;
  --line-strong: #c3d4d8;

  --primary: #0e7c86;       /* teal */
  --primary-deep: #0a5a62;
  --primary-soft: #d7edef;
  --accent: #ff6f5e;        /* coral CTA */
  --accent-deep: #e2543f;

  /* risk bands */
  --good: #1f9d57;
  --good-bg: #e4f6ec;
  --caution: #c9820c;
  --caution-bg: #fbf0d8;
  --bad: #d64545;
  --bad-bg: #fbe6e6;
  --unknown: #5f7480;
  --unknown-bg: #eef2f4;

  /* depth zones for the stocking gauge */
  --zone-low: #8fd0c6;
  --zone-ok: #1f9d57;
  --zone-heavy: #c9820c;
  --zone-over: #d64545;

  /* type scale (system fonts) */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.32rem;
  --fs-xl: 1.66rem;
  --fs-2xl: 2.15rem;
  --fs-3xl: 2.85rem;
  --lh-tight: 1.16;
  --lh: 1.62;

  /* space, radius, shadow */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem;
  --r-sm: 8px; --r: 14px; --r-lg: 22px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11,39,51,.06), 0 1px 3px rgba(11,39,51,.05);
  --shadow: 0 6px 22px -8px rgba(11,39,51,.18);
  --shadow-lg: 0 24px 60px -24px rgba(11,39,51,.30);
  --maxw: 1140px;
  --maxw-prose: 720px;
}

/* ---------- 2. reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { line-height: var(--lh-tight); color: var(--ink); margin: 0 0 var(--sp-3); letter-spacing: -0.02em; font-weight: 750; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--sp-4); }
a { color: var(--primary-deep); text-underline-offset: 2px; }
a:hover { color: var(--primary); }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
li { margin: 0.25rem 0; }
strong { font-weight: 700; }
small { font-size: var(--fs-sm); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--primary-soft); }

/* ---------- 3. layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp-5); }
.prose { max-width: var(--maxw-prose); }
.prose p, .prose li { color: var(--ink-soft); }
.section { padding-block: var(--sp-7); }
.section--tint { background: var(--bg-tint); }
.stack > * + * { margin-top: var(--sp-4); }
.grid { display: grid; gap: var(--sp-5); }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: var(--sp-2) var(--sp-4); border-radius: 0 0 var(--r-sm) 0; z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 4. header / footer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: var(--sp-4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 800; font-size: var(--fs-md); color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.brand b { color: var(--primary); }
.nav { margin-left: auto; display: flex; align-items: center; gap: var(--sp-1); flex-wrap: wrap; }
.nav a { color: var(--ink-soft); text-decoration: none; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600; }
.nav a:hover { background: var(--bg-tint); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--primary-deep); background: var(--primary-soft); }
.nav-toggle { display: none; }

.site-footer { background: var(--ink); color: #cfe0e4; margin-top: var(--sp-8); }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--sp-6); padding-block: var(--sp-7); }
.site-footer h4 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--sp-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: var(--sp-2) 0; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.12); padding-block: var(--sp-4); font-size: var(--fs-sm); color: #9fb6bc; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2); }

/* ---------- 5. buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font: inherit; font-weight: 650; line-height: 1; cursor: pointer;
  padding: 0.7rem 1.15rem; border-radius: var(--r-pill); border: 1.5px solid transparent;
  text-decoration: none; transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-deep); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -6px rgba(226,84,63,.6); }
.btn--accent:hover { background: var(--accent-deep); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--bg-tint); color: var(--ink); }
.btn--sm { padding: 0.45rem 0.8rem; font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- 6. cards / sections ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card__body { padding: var(--sp-5); }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: var(--fs-xs); font-weight: 800; color: var(--primary); margin-bottom: var(--sp-2); }
.lead { font-size: var(--fs-md); color: var(--ink-soft); }

/* hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #0a5a62 0%, #0e7c86 55%, #14939c 100%); color: #eaf7f8; }
.hero::after { /* water-surface shimmer */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1200px 300px at 80% -10%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(800px 280px at 10% 110%, rgba(143,208,198,.25), transparent 60%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--sp-6); align-items: center; padding-block: var(--sp-8); }
.hero h1 { color: #fff; font-size: var(--fs-3xl); max-width: 16ch; }
.hero p { color: #d4ecee; font-size: var(--fs-md); max-width: 48ch; }
.hero .eyebrow { color: #9fe6df; }
.hero__cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-5); }
.hero__art { justify-self: center; filter: drop-shadow(0 24px 40px rgba(0,0,0,.28)); }
.hero__art img { width: min(360px, 80vw); }

/* feature/tool grid */
.tool-grid { grid-template-columns: repeat(3, 1fr); }
.tool-card { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); text-decoration: none; color: inherit; transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-soft); color: inherit; }
.tool-card__icon { width: 52px; height: 52px; border-radius: var(--r); background: var(--primary-soft); display: grid; place-items: center; }
.tool-card__icon img { width: 32px; height: 32px; }
.tool-card h3 { margin: 0; }
.tool-card p { margin: 0; color: var(--ink-soft); font-size: var(--fs-sm); }
.tool-card__more { margin-top: auto; font-weight: 700; color: var(--primary-deep); font-size: var(--fs-sm); }

/* ---------- 7. planner ---------- */
.planner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.panel__head h2 { margin: 0; font-size: var(--fs-md); }
.panel__body { padding: var(--sp-5); }
.panel--result { position: sticky; top: 80px; }

/* tank presets */
.preset-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.preset {
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink-soft);
  border-radius: var(--r-pill); padding: 0.4rem 0.8rem; font: inherit; font-size: var(--fs-sm); font-weight: 650; cursor: pointer;
}
.preset:hover { border-color: var(--primary); color: var(--primary-deep); }
.preset[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.tank-summary { display: flex; align-items: baseline; gap: var(--sp-2); margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px dashed var(--line); }
.tank-summary .big { font-size: var(--fs-xl); font-weight: 800; color: var(--primary-deep); }

/* stock list */
.stocklist { list-style: none; padding: 0; margin: var(--sp-4) 0 0; }
.stockrow { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0; border-top: 1px solid var(--line); }
.stockrow:first-child { border-top: 0; }
.stockrow__swatch { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-tint); display: grid; place-items: center; font-size: 1.1rem; }
.stockrow__name { font-weight: 650; font-size: var(--fs-sm); }
.stockrow__name small { display: block; color: var(--ink-faint); font-style: italic; font-weight: 400; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); overflow: hidden; }
.qty button { width: 30px; height: 30px; border: 0; background: var(--surface); font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--bg-tint); }
.qty span { min-width: 2ch; text-align: center; font-weight: 700; font-size: var(--fs-sm); }
.stockrow__remove { border: 0; background: none; cursor: pointer; color: var(--ink-faint); font-size: 1.1rem; padding: var(--sp-1); border-radius: var(--r-sm); }
.stockrow__remove:hover { color: var(--bad); background: var(--bad-bg); }
.empty-hint { color: var(--ink-faint); font-size: var(--fs-sm); text-align: center; padding: var(--sp-5) 0; }

/* ---------- 8. gauge / verdict ---------- */
.verdict { border-radius: var(--r); padding: var(--sp-4) var(--sp-5); display: flex; gap: var(--sp-3); align-items: flex-start; border: 1.5px solid; }
.verdict__icon { font-size: 1.5rem; line-height: 1; }
.verdict__text { flex: 1; }
.verdict__title { font-weight: 800; font-size: var(--fs-md); margin: 0 0 2px; }
.verdict__sub { margin: 0; font-size: var(--fs-sm); }
.verdict--good { background: var(--good-bg); border-color: var(--good); color: #0c5a30; }
.verdict--good .verdict__title { color: var(--good); }
.verdict--caution { background: var(--caution-bg); border-color: var(--caution); color: #7a5403; }
.verdict--caution .verdict__title { color: var(--caution); }
.verdict--bad { background: var(--bad-bg); border-color: var(--bad); color: #8e2727; }
.verdict--bad .verdict__title { color: var(--bad); }
.verdict--unknown { background: var(--unknown-bg); border-color: var(--line-strong); color: var(--ink-soft); }
.verdict--unknown .verdict__title { color: var(--unknown); }

.gauge { margin-top: var(--sp-5); }
.gauge__label { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-sm); margin-bottom: var(--sp-2); }
.gauge__label b { font-size: var(--fs-md); }
.gauge__est { color: var(--ink-faint); font-size: var(--fs-xs); }
.gauge__track {
  position: relative; height: 16px; border-radius: var(--r-pill); overflow: hidden;
  background: linear-gradient(90deg, var(--zone-low) 0% 35%, var(--zone-ok) 35% 70%, var(--zone-heavy) 70% 90%, var(--zone-over) 90% 100%);
}
.gauge__marker { position: absolute; top: -4px; width: 4px; height: 24px; background: var(--ink); border-radius: 2px; box-shadow: 0 0 0 2px #fff; transition: left .35s cubic-bezier(.2,.7,.2,1); }
.gauge__zones { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--ink-faint); margin-top: var(--sp-1); }

/* warnings list */
.warnings { list-style: none; padding: 0; margin: var(--sp-4) 0 0; }
.warn { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3); border-radius: var(--r-sm); margin-bottom: var(--sp-2); font-size: var(--fs-sm); }
.warn__tag { font-weight: 800; }
.warn--block { background: var(--bad-bg); color: #8e2727; }
.warn--caution { background: var(--caution-bg); color: #7a5403; }
.warn--info { background: var(--primary-soft); color: var(--primary-deep); }
.warn--gap { background: var(--unknown-bg); color: var(--ink-soft); }

/* result card (screenshot target) */
.result-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: var(--sp-5); }
.result-card__head { background: var(--primary-deep); color: #fff; padding: var(--sp-3) var(--sp-4); display: flex; justify-content: space-between; align-items: center; }
.result-card__head .wm { font-weight: 800; letter-spacing: -.02em; opacity: .95; }
.result-card__body { padding: var(--sp-4); background: var(--surface-2); }
.share-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-4); }

/* ---------- 9. species picker ---------- */
.search { position: relative; }
.search input { padding-left: 2.4rem; }
.search__icon { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--ink-faint); }
.results { list-style: none; margin: var(--sp-2) 0 0; padding: var(--sp-1); max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.results:empty { display: none; }
.result-item { display: grid; grid-template-columns: auto 1fr auto; gap: var(--sp-3); align-items: center; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm); cursor: pointer; }
.result-item:hover, .result-item[aria-selected="true"] { background: var(--bg-tint); }
.result-item__name { font-weight: 650; font-size: var(--fs-sm); }
.result-item__name small { color: var(--ink-faint); font-style: italic; font-weight: 400; }
.result-item__meta { font-size: var(--fs-xs); color: var(--ink-faint); }
.tag { display: inline-block; font-size: var(--fs-xs); font-weight: 700; padding: 0.1rem 0.5rem; border-radius: var(--r-pill); }
.tag--avoid { background: var(--bad-bg); color: var(--bad); }
.tag--peaceful { background: var(--good-bg); color: var(--good); }
.tag--semi { background: var(--caution-bg); color: var(--caution); }
.tag--aggressive, .tag--territorial, .tag--predatory { background: var(--bad-bg); color: var(--bad); }

/* ---------- 10. forms ---------- */
label { font-weight: 650; font-size: var(--fs-sm); display: block; margin-bottom: var(--sp-1); color: var(--ink); }
.field { margin-bottom: var(--sp-4); }
input[type="text"], input[type="number"], input[type="search"], select {
  width: 100%; font: inherit; padding: 0.6rem 0.8rem; border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
}
input:focus, select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-soft); }
.input-suffix { display: flex; align-items: stretch; }
.input-suffix input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-suffix .suffix { display: grid; place-items: center; padding: 0 0.8rem; border: 1.5px solid var(--line-strong); border-left: 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--bg-tint); color: var(--ink-faint); font-size: var(--fs-sm); }
.toggle { display: inline-flex; align-items: center; gap: var(--sp-2); cursor: pointer; font-weight: 600; font-size: var(--fs-sm); }
.unit-switch { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); overflow: hidden; }
.unit-switch button { border: 0; background: var(--surface); padding: 0.35rem 0.8rem; font: inherit; font-size: var(--fs-sm); font-weight: 650; cursor: pointer; color: var(--ink-soft); }
.unit-switch button[aria-pressed="true"] { background: var(--primary); color: #fff; }

/* ---------- 11. tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); }
th { background: var(--surface-2); font-weight: 700; color: var(--ink); white-space: nowrap; }
tbody tr:hover { background: var(--surface-2); }

/* ---------- 12. badges / notes / faq ---------- */
.badge { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-xs); font-weight: 700; padding: 0.2rem 0.6rem; border-radius: var(--r-pill); background: var(--primary-soft); color: var(--primary-deep); }
.note { border-left: 4px solid var(--primary); background: var(--surface); padding: var(--sp-4); border-radius: 0 var(--r-sm) var(--r-sm) 0; box-shadow: var(--shadow-sm); }
.note--warn { border-color: var(--caution); }
.callout { background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-5); }
.disclaimer { font-size: var(--fs-sm); color: var(--ink-faint); border-top: 1px solid var(--line); margin-top: var(--sp-5); padding-top: var(--sp-4); }
details.faq { border-bottom: 1px solid var(--line); padding: var(--sp-4) 0; }
details.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin-top: var(--sp-3); color: var(--ink-soft); }

/* ---------- 13. ads (inert placeholders, outside the planner surface) ---------- */
.ad-slot {
  border: 1px dashed var(--line-strong); border-radius: var(--r); background: var(--surface-2);
  display: grid; place-items: center; color: var(--ink-faint); font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: .1em; min-height: 90px; margin-block: var(--sp-5);
}
.ad-slot[data-format="leaderboard"] { min-height: 90px; }
.ad-slot[data-format="rectangle"] { min-height: 250px; max-width: 336px; margin-inline: auto; }

/* ---------- cookie consent banner ---------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: var(--sp-4); transform: translateX(-50%);
  width: min(760px, calc(100% - 2rem)); z-index: 80;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: var(--sp-4) var(--sp-5);
  display: flex; gap: var(--sp-4); align-items: center; flex-wrap: wrap; justify-content: space-between;
}
.cookie-banner__text { margin: 0; font-size: var(--fs-sm); color: var(--ink-soft); flex: 1 1 320px; }
.cookie-banner__actions { display: flex; gap: var(--sp-2); flex-shrink: 0; }
@media (max-width: 620px) { .cookie-banner { bottom: 0; left: 0; transform: none; width: 100%; border-radius: var(--r) var(--r) 0 0; } }

/* ---------- 14. utilities ---------- */
.center { text-align: center; }
.muted { color: var(--ink-faint); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.flex { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.pill-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; }
.pill-list a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0.35rem 0.8rem; text-decoration: none; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); }
.pill-list a:hover { border-color: var(--primary); color: var(--primary-deep); }
.breadcrumb { font-size: var(--fs-sm); color: var(--ink-faint); margin-bottom: var(--sp-4); }
.breadcrumb a { color: var(--ink-soft); }

/* ---------- 15. responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__art { display: none; }
  .planner { grid-template-columns: 1fr; }
  .panel--result { position: static; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  :root { --fs-2xl: 1.8rem; --fs-3xl: 2.15rem; --fs-xl: 1.4rem; }
  .container { padding-inline: var(--sp-4); }
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: var(--sp-3); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: var(--sp-3); border-radius: var(--r-sm); }
  .nav-toggle { display: inline-grid; place-items: center; margin-left: auto; width: 42px; height: 42px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
  .tool-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .dims { grid-template-columns: 1fr 1fr; }
}

/* ---------- 16. motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
