:root {
  --ink: #16211f;
  --ink-soft: #4a5c58;
  --muted: #7d8c88;
  --line: #e2ded4;
  --line-soft: #eeeae1;
  --bg: #fbf9f5;
  --card: #ffffff;
  --deep: #0f3b3a;
  --deep-2: #14534f;
  --gold: #c1913a;
  --gold-soft: #f6ecd6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 33, 31, .04), 0 8px 24px -12px rgba(22, 33, 31, .12);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

a { color: var(--deep-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 249, 245, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo {
  font-weight: 800; font-size: 19px; letter-spacing: -.02em;
  color: var(--deep); display: inline-flex; align-items: center; gap: 8px;
}
.logo::before {
  content: ""; width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 55%, var(--gold) 160%);
}
.site-head nav { display: flex; gap: 24px; font-size: 14.5px; }
.site-head nav a { color: var(--ink-soft); }
.site-head nav a:hover { color: var(--deep); text-decoration: none; }

/* ---------- breadcrumb ---------- */
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); padding: 22px 0 0; }
.crumbs .cur { color: var(--ink-soft); }

/* ---------- tool head ---------- */
.tool-head { padding: 18px 0 26px; max-width: 760px; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: #7d5c18; background: var(--gold-soft);
  border: 1px solid #ecd9b0; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 14px; font-weight: 800; }
.lede { font-size: 17.5px; color: var(--ink-soft); margin: 0; max-width: 660px; }

/* ---------- review / trust line ---------- */
.reviewed {
  font-size: 12.6px; color: var(--muted); margin: 14px 0 0;
  padding-top: 12px; border-top: 1px solid var(--line-soft); max-width: 660px;
}
.reviewed a { color: var(--deep-2); text-decoration: underline; text-underline-offset: 2px; }
.reviewed time { font-weight: 600; color: var(--ink-soft); }

/* ---------- hero (home) ---------- */
.hero { padding: 56px 0 40px; max-width: 780px; }
.hero h1 { font-size: clamp(34px, 5.6vw, 58px); }
.hero h1 em { font-style: normal; color: var(--gold); }

/* ---------- calc shell ---------- */
.calc-shell {
  display: grid; grid-template-columns: 360px 1fr; gap: 22px;
  align-items: start; margin-bottom: 44px;
}

.calc-form {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  position: sticky; top: 82px;
}
.fields { display: grid; gap: 15px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.input-row { display: flex; gap: 8px; }

input[type=number], select {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: #fdfcfa; border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input[type=number]:focus, select:focus {
  border-color: var(--deep-2); box-shadow: 0 0 0 3px rgba(20, 83, 79, .1);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237d8c88' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; cursor: pointer; }
select.unit { width: 74px; flex: 0 0 74px; }
.hint { font-size: 12.2px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }

.btn {
  width: 100%; margin-top: 18px; font: inherit; font-size: 15.5px; font-weight: 650;
  color: #fff; background: var(--deep); border: 0; border-radius: 10px;
  padding: 13px 18px; cursor: pointer; letter-spacing: -.01em;
  transition: background .15s, transform .08s;
}
.btn:hover { background: var(--deep-2); }
.btn:active { transform: translateY(1px); }
.privacy { font-size: 11.8px; color: var(--muted); margin: 11px 0 0; text-align: center; }

/* ---------- result ---------- */
.result { min-height: 300px; }
.result-empty {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 42px 30px; text-align: center; color: var(--muted);
  background: rgba(255, 255, 255, .5);
}
.result-empty p { max-width: 400px; margin: 0 auto; font-size: 14.5px; }
.re-icon { font-size: 26px; color: var(--gold); margin-bottom: 8px; }

.res-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.res-head {
  padding: 24px 24px 20px;
  background: linear-gradient(160deg, var(--deep) 0%, #124541 100%);
  color: #fff;
}
.res-kicker { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #a8c8c3; margin-bottom: 4px; }
.res-big { font-size: clamp(30px, 4.2vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.res-big span { font-size: 15px; font-weight: 500; color: #b9d3cf; letter-spacing: 0; }
.res-sub { font-size: 13.5px; color: #b9d3cf; margin-top: 8px; }

.res-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line-soft); }
.stat { padding: 15px 18px; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: 0; }
.stat dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 3px; }
.stat dd { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }

.res-block { padding: 20px 24px; border-bottom: 1px solid var(--line-soft); }
.res-block:last-child { border-bottom: 0; }
.res-block h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 12px; font-weight: 700; }

table.bom { width: 100%; border-collapse: collapse; font-size: 14px; }
table.bom th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 600; padding: 0 0 8px; border-bottom: 1px solid var(--line);
}
table.bom th:last-child, table.bom td:last-child { text-align: right; }
table.bom td { padding: 9px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.bom tr:last-child td { border-bottom: 0; }
table.bom td.qty { font-variant-numeric: tabular-nums; color: var(--ink-soft); white-space: nowrap; }
table.bom td:first-child { padding-right: 12px; }

.budget-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bud {
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; background: #fdfcfa;
}
.bud.mid { border-color: #dfc99a; background: var(--gold-soft); }
.bud .bl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.bud .bv { font-size: 19px; font-weight: 750; letter-spacing: -.02em; margin-top: 2px; }

.tip {
  display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-soft);
  background: #f4f7f6; border-left: 3px solid var(--deep-2);
  border-radius: 0 8px 8px 0; padding: 12px 14px; margin-top: 4px;
}
.tip strong { color: var(--deep); }

.copy-btn {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--deep);
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 14px; cursor: pointer; margin-top: 4px;
}
.copy-btn:hover { border-color: var(--deep-2); }

/* ---------- prose ---------- */
.prose { max-width: 760px; padding: 8px 0 20px; }
.prose h2 { font-size: 23px; letter-spacing: -.02em; margin: 38px 0 12px; font-weight: 750; }
.prose p { color: var(--ink-soft); margin: 0 0 14px; }
.prose strong { color: var(--ink); font-weight: 650; }

/* ---------- faq ---------- */
.faq { max-width: 760px; padding: 10px 0 30px; }
.faq h2 { font-size: 23px; letter-spacing: -.02em; margin: 20px 0 14px; font-weight: 750; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 14px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 20px; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--ink-soft); font-size: 14.5px; margin: 10px 0 0; }

/* ---------- related ---------- */
.related { padding: 26px 0 60px; }
.related h2 { font-size: 19px; letter-spacing: -.02em; margin: 0 0 16px; font-weight: 750; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.related-grid a {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px; transition: border-color .15s, transform .15s;
}
.related-grid a:hover { border-color: var(--gold); transform: translateY(-2px); text-decoration: none; }
.rn-name { display: block; font-weight: 650; font-size: 14.5px; color: var(--ink); }
.rn-desc { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }

/* ---------- home grid ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding-bottom: 20px; }
.card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.card-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.card h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: -.02em; color: var(--ink); font-weight: 700; }
.card p { font-size: 13.8px; color: var(--ink-soft); margin: 0 0 14px; flex: 1; }
.card-arrow { font-size: 13px; font-weight: 600; color: var(--deep-2); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: #fff; padding: 28px 0 34px; }
.site-foot p { font-size: 12.8px; color: var(--muted); margin: 0 0 8px; max-width: 780px; line-height: 1.6; }
.site-foot strong { color: var(--ink-soft); }
.muted { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .calc-shell { grid-template-columns: 1fr; }
  .calc-form { position: static; }
  .res-stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .stat:last-child { border-bottom: 0; }
  .budget-row { grid-template-columns: 1fr; }
  .hero { padding: 34px 0 26px; }
}

@media print {
  .site-head, .calc-form, .related, .site-foot, .faq, .crumbs { display: none !important; }
  body { background: #fff; }
  .calc-shell { display: block; }
  .res-card { box-shadow: none; border: 1px solid #ccc; }
  .res-head { background: #0f3b3a !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- figures ---------- */
.fig { margin: 4px 0 30px; max-width: 760px; }
.fig svg {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg);
}
.figcap { font-size: 12.6px; color: var(--muted); margin: 9px 0 0; line-height: 1.5; }
.figcap b { color: var(--ink-soft); }

/* ---------- worked example ---------- */
.worked { max-width: 760px; padding: 2px 0 26px; }
.worked h2 { font-size: 23px; letter-spacing: -.02em; margin: 30px 0 14px; font-weight: 750; }
.ex-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ex-table td { padding: 9px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.ex-k { color: var(--muted); width: 44%; padding-right: 16px; }
.ex-v { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.ex-out {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-top: 16px; padding: 14px 16px;
  background: var(--gold-soft); border: 1px solid #ecd9b0; border-radius: 10px;
}
.ex-out span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: #7d5c18; font-weight: 700; }
.ex-out strong { font-size: 22px; letter-spacing: -.02em; color: var(--deep); }
.ex-out em { font-size: 12.8px; color: var(--ink-soft); font-style: normal; flex: 1 1 240px; }

/* ---------- mistakes ---------- */
.mistakes { max-width: 760px; padding: 4px 0 30px; }
.mistakes h2 { font-size: 23px; letter-spacing: -.02em; margin: 26px 0 16px; font-weight: 750; }
.mk { list-style: none; counter-reset: mk; margin: 0; padding: 0; display: grid; gap: 16px; }
.mk li { position: relative; padding-left: 40px; }
.mk li::before {
  counter-increment: mk; content: counter(mk);
  position: absolute; left: 0; top: 1px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--deep); color: #fff;
  font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.mk h3 { font-size: 15.5px; margin: 2px 0 5px; letter-spacing: -.01em; color: var(--ink); }
.mk p { font-size: 14.2px; color: var(--ink-soft); margin: 0; line-height: 1.62; }

@media print { .fig, .mk { break-inside: avoid; } }

/* ================================================================
   Visual layer — 2026 refresh
   Icons, motion and depth. Everything below overrides the base sheet.
   ================================================================ */
:root {
  --deep-3: #0a2c2b;
  --gold-2: #d8a94e;
  --ring: rgba(193, 145, 58, .28);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html { scroll-behavior: smooth; }
::selection { background: rgba(193, 145, 58, .24); }

body { font-feature-settings: "kern" 1, "liga" 1; }

/* icons ---------------------------------------------------------- */
.i20 { width: 20px; height: 20px; }
.i26 { width: 26px; height: 26px; }

/* header --------------------------------------------------------- */
.site-head { background: rgba(251, 249, 245, .82); }
.site-head nav a { position: relative; padding-bottom: 3px; }
.site-head nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.site-head nav a:hover::after { transform: scaleX(1); }
.logo::before {
  box-shadow: 0 3px 10px -3px rgba(15, 59, 58, .45);
  transition: transform .3s var(--ease);
}
.logo:hover::before { transform: rotate(-8deg) scale(1.05); }

/* hero ----------------------------------------------------------- */
.hero { position: relative; padding: 64px 0 46px; max-width: 820px; }
.hero::before {
  content: ""; position: absolute; inset: -60px -40vw -30px -40vw; z-index: -1;
  background:
    radial-gradient(700px 340px at 18% 0%, rgba(193, 145, 58, .13), transparent 62%),
    radial-gradient(620px 320px at 82% 12%, rgba(20, 83, 79, .12), transparent 60%),
    linear-gradient(180deg, #fdfbf6 0%, rgba(251, 249, 245, 0) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: -60px -40vw -30px -40vw; z-index: -1;
  background-image: radial-gradient(rgba(22, 33, 31, .085) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 72%);
  opacity: .55; pointer-events: none;
}
.hero h1 { letter-spacing: -.035em; }
.hero h1 em {
  color: var(--gold); position: relative; white-space: nowrap;
}
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .08em;
  background: linear-gradient(90deg, rgba(193,145,58,.34), rgba(193,145,58,0));
  border-radius: 2px;
}
.hero .lede { font-size: 18px; line-height: 1.62; }

.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.hero-note { font-size: 12.8px; color: var(--muted); }

/* buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: linear-gradient(180deg, #17564f 0%, var(--deep) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 8px 20px -10px rgba(15, 59, 58, .6);
  transition: transform .16s var(--ease), box-shadow .22s var(--ease), filter .2s;
}
.btn:hover {
  background: linear-gradient(180deg, #1a6159 0%, var(--deep-2) 100%);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,.16) inset, 0 14px 26px -12px rgba(15, 59, 58, .65);
}
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.btn-ic { transition: transform .22s var(--ease); font-size: 16px; line-height: 1; }
.btn:hover .btn-ic { transform: translateX(3px); }
.btn-inline { width: auto; margin-top: 0; padding: 13px 22px; text-decoration: none; }
.btn-inline:hover { text-decoration: none; }
.btn-sm { padding: 11px 16px; font-size: 14.5px; margin-top: 0; }

/* stat strip ----------------------------------------------------- */
.strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, #fdfbf7 100%);
  box-shadow: var(--shadow); overflow: hidden; margin: 8px 0 34px;
}
.strip-item { padding: 20px 22px; border-right: 1px solid var(--line-soft); }
.strip-item:last-child { border-right: 0; }
.strip-item strong {
  display: block; font-size: 26px; font-weight: 800; letter-spacing: -.03em;
  color: var(--deep); line-height: 1.1;
}
.strip-item span { display: block; font-size: 12.6px; color: var(--muted); margin-top: 4px; line-height: 1.45; }

/* cards ---------------------------------------------------------- */
.card { position: relative; overflow: hidden; }
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--deep-2), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.card:hover::before { transform: scaleX(1); }
.card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 38px;
  color: var(--deep); background: linear-gradient(160deg, #f0f5f3 0%, #e7eeec 100%);
  border: 1px solid #dde7e4; transition: background .25s, color .25s, transform .25s var(--ease);
}
.card:hover .card-ico {
  background: linear-gradient(160deg, var(--deep-2) 0%, var(--deep) 100%);
  color: #f2f7f6; border-color: var(--deep); transform: translateY(-1px);
}
.card-tag { margin: 0; font-size: 10.5px; }
.card h3 { font-size: 18.5px; }
.card-arrow { display: inline-flex; align-items: center; gap: 6px; }
.card-arrow span { transition: transform .22s var(--ease); }
.card:hover .card-arrow span { transform: translateX(3px); }

/* steps ---------------------------------------------------------- */
.steps { padding: 10px 0 54px; }
.steps h2 { font-size: 24px; letter-spacing: -.025em; margin: 0 0 18px; font-weight: 780; }
.steps-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.steps-grid li {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px;
  background: #fff; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.steps-grid li:hover { border-color: #dfc99a; transform: translateY(-2px); box-shadow: var(--shadow); }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; margin-bottom: 12px;
  background: var(--gold-soft); color: #7d5c18; border: 1px solid #ecd9b0;
  font-size: 12.5px; font-weight: 700;
}
.steps-grid h3 { font-size: 16px; margin: 0 0 6px; letter-spacing: -.01em; }
.steps-grid p { font-size: 13.6px; color: var(--ink-soft); margin: 0; line-height: 1.6; }

/* tool page header ----------------------------------------------- */
.tool-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tool-kicker .badge { margin-bottom: 0; }
.tool-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; color: var(--deep);
  background: linear-gradient(160deg, #eef4f2 0%, #e4ecea 100%);
  border: 1px solid #dce6e3;
  box-shadow: 0 6px 16px -10px rgba(15, 59, 58, .5);
}
.tool-head { padding: 16px 0 24px; }

/* inputs --------------------------------------------------------- */
input[type=number], select { height: 46px; }
.input-row { align-items: stretch; }
select.unit {
  background-color: #f4f2ec; border-color: #e2ded4; color: var(--ink-soft);
  font-size: 13.5px; font-weight: 600; text-align: center; padding-left: 10px;
  transition: background .18s, border-color .18s;
}
select.unit:hover { background-color: #efece3; }
input[type=number]:hover { border-color: #cfc9bb; }
.calc-form { padding: 24px 22px 20px; }
.calc-form .field label { font-size: 12.8px; letter-spacing: .01em; }

/* result card ---------------------------------------------------- */
.result { min-height: 300px; }
.res-card { animation: cardIn .42s var(--ease) both; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px) scale(.994); }
  to   { opacity: 1; transform: none; }
}
.res-head {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--deep) 0%, #10423f 58%, #17564f 100%);
}
.res-head::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(193,145,58,.28), transparent 68%);
  pointer-events: none;
}
.res-big { line-height: 1.05; }
.res-big span { display: inline-block; margin-left: 4px; }
.stat { transition: background .18s; }
.stat:hover { background: #fcfbf7; }
table.bom tbody tr { transition: background .15s; }
table.bom tbody tr:hover { background: #fbfaf6; }
table.bom td.qty { font-weight: 600; }
.bud { transition: transform .18s var(--ease), box-shadow .18s; }
.bud:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -14px rgba(15,59,58,.55); }
.bud.mid { position: relative; box-shadow: 0 0 0 1px #e3cc9b inset; }
.bud.mid::after {
  content: "most likely"; position: absolute; top: -9px; right: 10px;
  font-size: 9.5px; letter-spacing: .07em; text-transform: uppercase; font-weight: 700;
  background: var(--gold); color: #fff; padding: 2px 7px; border-radius: 999px;
}
.copy-btn { transition: border-color .18s, color .18s, background .18s; }
.copy-btn:hover { background: #fbfaf6; }

/* faq + related -------------------------------------------------- */
.faq details { transition: background .18s; border-radius: 8px; }
.faq details:hover { background: #fdfcf8; }
.faq summary { padding: 0 4px; }
.related-grid a { position: relative; }
.related-grid a::after {
  content: "\2192"; position: absolute; top: 14px; right: 14px;
  color: var(--gold); opacity: 0; transform: translateX(-4px);
  transition: opacity .2s, transform .2s var(--ease);
}
.related-grid a:hover::after { opacity: 1; transform: none; }

/* sticky mobile CTA ---------------------------------------------- */
.mobile-cta { display: none; }
@media (max-width: 860px) {
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 249, 245, .93);
    backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--line);
  }
  .mobile-cta .btn { width: 100%; }
  .site-foot { padding-bottom: 86px; }
  .strip { grid-template-columns: 1fr; }
  .strip-item { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .strip-item:last-child { border-bottom: 0; }
  .steps-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .res-card { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media print {
  .mobile-cta, .strip, .steps, .hero-actions, .tool-ico { display: none !important; }
  .fig, .worked, .mistakes { max-width: none; }
}

/* overflow guard for the hero wash — clip keeps position:sticky working */
html, body { overflow-x: clip; }

.res-big, .stat dd, .bud .bv, .ex-v { font-variant-numeric: tabular-nums; }
.fig:first-of-type { margin-top: 2px; }
.card p { min-height: 39px; }

/* ================================================================
   Long-tail cluster pages
   These pages carry a preset calculator plus a static answer. The
   additions here are structural: nothing decorative that competes
   with the numbers.
   ================================================================ */

/* three-level breadcrumb: the parent link is the way back up the cluster */
.crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--ink-soft); border-bottom-color: var(--line); }
.crumbs .cur { color: var(--ink); font-weight: 600; }

/* the static answer sits directly under the calculator */
.lt-answer { padding-top: 6px; }
.lt-answer h2 { margin-top: 26px; }
.lt-answer strong { color: var(--deep); font-weight: 700; }
.lt-answer p { margin: 0 0 14px; }

/* what-if table: real engine rows, one row highlighted as the default */
.lt-table { margin: 4px 0 10px; max-width: 760px; }
.lt-tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.lt-tbl th {
  text-align: left; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; padding: 0 0 9px; border-bottom: 1px solid var(--line);
}
.lt-tbl th:last-child, .lt-tbl td:last-child { text-align: right; white-space: nowrap; }
.lt-tbl td { padding: 11px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); }
.lt-tbl td.qty {
  font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink);
}
.lt-tbl tr.row-current td {
  background: var(--gold-soft); color: var(--ink);
  border-bottom-color: #ecd9b0;
}
.lt-tbl tr.row-current td:first-child { box-shadow: inset 3px 0 0 var(--gold); padding-left: 12px; }
.lt-tbl tr.row-current td:last-child { padding-right: 12px; }

/* the cart table reuses .ex-table but wants a header row */
.lt-cart { padding-bottom: 34px; }
.lt-bom th {
  text-align: left; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; padding: 0 0 9px; border-bottom: 1px solid var(--line);
}
.lt-bom th:last-child, .lt-bom td:last-child { text-align: right; white-space: nowrap; }
.lt-bom td.qty { font-weight: 600; font-variant-numeric: tabular-nums; }

/* back to the head term, and out to sibling sizes */
.lt-parent {
  margin: 34px 0 26px; padding: 20px 22px; max-width: 760px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, #fdfbf7 100%);
}
.lt-parent-k { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; font-weight: 700; }
.lt-parent-a {
  display: block; text-decoration: none; padding: 2px 0 2px 30px; position: relative;
}
.lt-parent-a::before {
  content: "\2190"; position: absolute; left: 0; top: 2px;
  color: var(--gold); font-size: 17px; line-height: 1.2;
}
.lt-parent-a:hover { text-decoration: none; }
.lt-parent-a .rn-name { color: var(--deep); border-bottom: 1px solid transparent; }
.lt-parent-a:hover .rn-name { border-bottom-color: var(--gold); }

.kids-lede { font-size: 14px; color: var(--ink-soft); margin: -4px 0 16px; max-width: 660px; }
.related.kids .related-grid a .rn-desc { font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .lt-tbl { font-size: 13.5px; }
  .lt-tbl td { padding: 10px 0; }
}
