/* CGT Calculator Australia – design tokens per DESIGN.md */
:root {
  --ink: #0e0d0f;
  --ink-2: #3f3d45;
  --muted: #6e6b76;
  --line: #eceaf0;
  --line-2: #dcd8e3;
  --bg: #ffffff;
  --bg-soft: #f5f4f5;
  --lav-soft: #f4f0fe;
  --lav: #dcd1f9;
  --brand: #3e00de;
  --brand-2: #5b2bf0;
  --brand-deep: #2a0099;
  --cyan: #85e8ff;
  --cyan-soft: #e6f9ff;
  --good: #0a8754;
  --good-soft: #e5f5ee;
  --warn: #9a6200;
  --warn-soft: #fff6df;
  --bad: #c0261a;
  --radius: 16px;
  --radius-sm: 12px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(14, 13, 15, .04), 0 2px 6px rgba(14, 13, 15, .04);
  --shadow: 0 12px 32px rgba(14, 13, 15, .08), 0 4px 8px rgba(14, 13, 15, .04);
  --shadow-lg: 0 24px 64px rgba(30, 0, 110, .16), 0 6px 16px rgba(14, 13, 15, .06);
  --ring: 0 0 0 3px rgba(62, 0, 222, .2);
  --max: 1200px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.03em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 1rem; font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); margin: 3rem 0 1rem; font-weight: 800; }
h3 { font-size: 1.2rem; margin: 1.8rem 0 .5rem; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
li { margin: .35rem 0; }
li::marker { color: var(--brand); }
strong { font-weight: 650; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.eyebrow { font: 700 .76rem/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin: 0 0 14px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.logo .mark { flex: none; border-radius: 11px; transition: transform .2s ease; }
.logo:hover .mark { transform: rotate(-6deg) scale(1.04); }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark > span { font: 800 1.36rem/1 var(--display); letter-spacing: -0.045em; color: var(--ink); }
.wordmark b { color: var(--brand); font-weight: 800; }
.wordmark small { font: 700 .58rem/1 var(--font); letter-spacing: .34em; text-transform: uppercase; color: var(--muted); margin-top: 5px; padding-left: 1px; }
.logo--dark .wordmark > span { color: #fff; }
.logo--dark .wordmark b { color: var(--cyan); }
.logo--dark .wordmark small { color: #a9a4b8; }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .92rem; padding: 9px 13px; border-radius: var(--pill); transition: background .15s, color .15s; }
.nav a:hover, .nav a[aria-current='page'] { background: var(--lav-soft); color: var(--brand); }
.nav .cta { background: var(--brand); color: #fff; margin-left: 8px; padding: 10px 18px; box-shadow: var(--shadow); }
.nav .cta:hover { background: var(--brand-2); color: #fff; }
.menu { display: none; }
@media (max-width: 960px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; padding: 9px 16px; border-radius: var(--pill); background: var(--bg-soft); font-weight: 650; font-size: .9rem; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .menu-panel { display: flex; }
  .menu-panel { display: none; position: absolute; right: 0; top: 50px; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; min-width: 250px; }
  .menu-panel a { padding: 11px 14px; text-decoration: none; color: var(--ink); border-radius: 10px; font-weight: 600; }
  .menu-panel a:hover { background: var(--lav-soft); color: var(--brand); }
  .menu-panel a:last-child { background: var(--brand); color: #fff; text-align: center; margin-top: 6px; border-radius: var(--pill); }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 48px 0 40px; }
.hero--soft { background: radial-gradient(1200px 400px at 85% -10%, var(--lav) 0%, transparent 60%), linear-gradient(180deg, var(--lav-soft), #fff); border-bottom: 1px solid var(--line); }
.hero--brand { background: radial-gradient(900px 500px at 10% 0%, #5b2bf0 0%, transparent 60%), var(--brand); color: #fff; padding: 56px 0 64px; }
.hero--brand.hero--overlap { padding-bottom: 150px; }
.hero--brand h1 { color: #fff; max-width: 900px; }
.hero--brand .eyebrow { color: var(--cyan); }
.hero.hero--brand p.lede { color: rgba(255, 255, 255, .86); }
.hero--brand .crumbs, .hero--brand .crumbs a { color: rgba(255, 255, 255, .7); }
.hero-art { position: absolute; right: -120px; top: -90px; pointer-events: none; }
.hero-art .mark { width: 560px; height: 560px; }
.hero .wrap { position: relative; }
.hero p.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 760px; margin-bottom: 1.2rem; }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: .84rem; color: var(--muted); }
.hero--brand .meta-line { color: rgba(255, 255, 255, .75); }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--good-soft); color: var(--good); border-radius: var(--pill); padding: 5px 12px; font-size: .8rem; font-weight: 650; }
.hero--brand .badge { background: rgba(133, 232, 255, .16); color: var(--cyan); }
.trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.trust > * { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--pill); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font-size: .86rem; font-weight: 550; text-decoration: none; }
.trust a:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.trust svg { color: var(--cyan); flex: none; }

/* ---------- layout ---------- */
main { padding-bottom: 80px; }
.calc-wrap { position: relative; z-index: 2; margin-top: -118px; }
.page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 40px; }
.page.single { grid-template-columns: minmax(0, 1fr); max-width: 840px; }
.content { min-width: 0; }
.content > h2:first-child, .content > .callout:first-child + h2 { margin-top: .6rem; }
.aside { position: sticky; top: 94px; align-self: start; display: grid; gap: 16px; }
@media (max-width: 1000px) { .page { grid-template-columns: minmax(0, 1fr); gap: 28px; } .aside { position: static; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card h3 { margin-top: 0; font-size: 1.02rem; }
.cta-card { background: linear-gradient(160deg, var(--brand) 0%, #2a0099 100%); border: 0; color: #fff; box-shadow: var(--shadow); }
.cta-card h3 { color: #fff; margin: 14px 0 6px; font-size: 1.15rem; }
.cta-card p { color: rgba(255, 255, 255, .82); font-size: .9rem; }
.cta-card .btn.primary { background: #fff; color: var(--brand); border-color: #fff; box-shadow: none; }
.cta-card .btn.primary:hover { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.toc h3 { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-family: var(--font); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; font-size: .92rem; }
.toc li { counter-increment: t; margin: 0; }
.toc a { display: flex; gap: 10px; padding: 7px 0; color: var(--ink-2); text-decoration: none; border-top: 1px solid var(--line); }
.toc li:first-child a { border-top: 0; }
.toc a::before { content: counter(t, decimal-leading-zero); color: var(--brand); font-weight: 700; font-size: .78rem; padding-top: 2px; }
.toc a:hover { color: var(--brand); }
.link-list { list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.link-list li { margin: 0; border-top: 1px solid var(--line); }
.link-list li:first-child { border-top: 0; }
.link-list a { display: flex; justify-content: space-between; padding: 9px 0; text-decoration: none; color: var(--ink-2); font-weight: 550; }
.link-list a::after { content: '→'; color: var(--line-2); transition: transform .15s, color .15s; }
.link-list a:hover { color: var(--brand); }
.link-list a:hover::after { color: var(--brand); transform: translateX(3px); }

/* ---------- content blocks ---------- */
.callout { border-radius: var(--radius); padding: 18px 20px; margin: 1.4rem 0; background: var(--lav-soft); border: 1px solid var(--lav); }
.callout.warn { background: var(--warn-soft); border-color: #f2dc9f; }
.callout.good { background: var(--good-soft); border-color: #b9e2cf; }
.callout strong:first-child { display: block; margin-bottom: 4px; font-family: var(--display); font-size: 1.05rem; letter-spacing: -0.01em; }
.callout p:last-child { margin-bottom: 0; }
.formula { font-family: ui-monospace, 'SF Mono', Menlo, monospace; background: #15121c; color: #e8e4f3; border-radius: var(--radius); padding: 18px 20px; margin: 1.2rem 0; font-size: .88rem; line-height: 1.7; overflow-x: auto; white-space: pre-wrap; }
.example { border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); padding: 20px 22px; border-radius: var(--radius); margin: 1.4rem 0; position: relative; }
.example::before { content: 'Worked example'; display: inline-block; font: 700 .7rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); background: var(--lav-soft); padding: 6px 10px; border-radius: var(--pill); margin-bottom: 10px; }
.example h4 { margin: 0 0 8px; font-size: 1.08rem; }
.example p:last-child, .example ol:last-child, .example ul:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 1.2rem 0 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 650; color: var(--ink-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:hover td { background: #fbfaff; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pass { color: var(--good); font-weight: 700; }
.fail { color: var(--bad); font-weight: 700; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 1.2rem 0 2rem; }
.tile { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, transform .2s; }
.tile:hover { border-color: var(--lav); box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink); }
.tile strong { display: block; font: 700 1.05rem/1.3 var(--display); letter-spacing: -0.015em; margin-bottom: 4px; }
.tile span { color: var(--muted); font-size: .9rem; line-height: 1.5; display: block; }
.tile .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: var(--lav-soft); color: var(--brand); }
.grid-cards .tile:nth-child(6n+2) .ico { background: #fff1e6; color: #e8590c; }
.grid-cards .tile:nth-child(6n+3) .ico { background: #e7f8ef; color: #0a8754; }
.grid-cards .tile:nth-child(6n+4) .ico { background: var(--cyan-soft); color: #0077a3; }
.grid-cards .tile:nth-child(6n+5) .ico { background: #ffeef2; color: #d6336c; }
.grid-cards .tile:nth-child(6n) .ico { background: #fff8db; color: #b07800; }
.refs { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.refs h2 { font-size: 1.3rem; }
.refs p { color: var(--muted); font-size: .9rem; }
.refs ol { font-size: .9rem; color: var(--ink-2); }
.refs li { margin: .45rem 0; }
details.faq { border: 1px solid var(--line); border-radius: var(--radius); margin: .7rem 0; background: #fff; transition: box-shadow .2s, border-color .2s; }
details.faq[open] { box-shadow: var(--shadow); border-color: var(--lav); }
details.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--lav-soft); color: var(--brand); font-weight: 700; font-size: 1.1rem; transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); background: var(--brand); color: #fff; }
details.faq > div { padding: 0 20px 18px; color: var(--ink-2); }
details.faq > div p:last-child { margin-bottom: 0; }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1000px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc > *, .results > * { min-width: 0; }
.calc-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 28px; }
.calc-form fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.calc-form fieldset + fieldset:not(.reform-box) { border-top: 1px solid var(--line); padding-top: 22px; }
.calc-form legend { font: 700 1.05rem/1.2 var(--display); letter-spacing: -0.015em; margin-bottom: 14px; color: var(--ink); display: flex; align-items: center; gap: 10px; float: left; width: 100%; }
.calc-form legend + * { clear: both; }
.calc-form legend .step { width: 26px; height: 26px; border-radius: 50%; background: var(--lav-soft); color: var(--brand); display: inline-grid; place-items: center; font: 700 .78rem var(--font); letter-spacing: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; clear: both; }
.fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .fields.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fields, .fields.three { grid-template-columns: minmax(0, 1fr); } .calc-form { padding: 20px 16px; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field > label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: .78rem; color: var(--muted); line-height: 1.45; }
.input { position: relative; }
.input input, .field select { width: 100%; height: 48px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 0 14px; font: 500 1rem var(--font); color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233e00de' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.input input:hover, .field select:hover { border-color: #c4bdd3; }
.input.money input { padding-left: 28px; font-variant-numeric: tabular-nums; }
.input.money::before { content: '$'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 500; }
.input.pct input { padding-right: 32px; }
.input.pct::after { content: '%'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.input input[type=date] { min-width: 0; -webkit-appearance: none; appearance: none; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; clear: both; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 10px 18px; border: 1.5px solid var(--line-2); border-radius: var(--pill); font-size: .9rem; font-weight: 600; color: var(--ink-2); background: #fff; transition: all .15s; }
.seg label:hover span { border-color: var(--brand); color: var(--brand); }
.seg input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(62, 0, 222, .25); }
.seg input:focus-visible + span { box-shadow: var(--ring); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); flex: none; }
details.more { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
details.more summary { cursor: pointer; font-weight: 650; color: var(--brand); font-size: .93rem; padding: 4px 0 12px; list-style: none; display: flex; align-items: center; gap: 8px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: '+'; width: 22px; height: 22px; border-radius: 50%; background: var(--lav-soft); display: grid; place-items: center; font-weight: 700; transition: transform .2s; }
details.more[open] summary::before { transform: rotate(45deg); }
.reform-box { background: linear-gradient(135deg, var(--cyan-soft), var(--lav-soft)); border: 1px solid var(--lav) !important; border-radius: var(--radius); padding: 18px !important; margin-bottom: 24px; }
.reform-box legend { margin-bottom: 6px; float: none; }
.reform-box legend svg { color: var(--brand); }
.reform-box .intro { font-size: .86rem; color: var(--ink-2); margin-bottom: 14px; }
[hidden] { display: none !important; }
.parcels { width: 100%; clear: both; }
.parcel-row { display: grid; grid-template-columns: 1.15fr .8fr 1fr 44px; gap: 10px; margin-bottom: 10px; align-items: end; padding: 12px; background: var(--bg-soft); border-radius: var(--radius-sm); }
.parcel-row .field label { font-size: .76rem; }
@media (max-width: 560px) { .parcel-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .parcel-row .field:nth-child(3) { grid-column: 1 / 2; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: var(--pill); border: 1.5px solid transparent; background: var(--bg-soft); color: var(--ink); font: 650 .92rem var(--font); cursor: pointer; text-decoration: none; transition: background .15s, color .15s, box-shadow .15s, transform .1s; }
.btn:hover { background: var(--lav-soft); color: var(--brand); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn.primary:hover { background: var(--brand-2); color: #fff; }
.btn.icon { width: 44px; height: 48px; padding: 0; color: var(--muted); background: #fff; border-color: var(--line-2); border-radius: var(--radius-sm); }
.btn.icon:hover { color: var(--bad); border-color: var(--bad); background: #fff; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.results { position: sticky; top: 90px; display: grid; gap: 14px; }
@media (max-width: 1000px) { .results { position: static; } }
.result-card { position: relative; overflow: hidden; background: radial-gradient(420px 220px at 100% 0%, rgba(133, 232, 255, .22) 0%, transparent 70%), linear-gradient(160deg, #23007f, #12003f); border: 1px solid rgba(255, 255, 255, .14); color: #fff; border-radius: 20px; padding: 26px; box-shadow: var(--shadow-lg); }
.result-card .label { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.result-card .big { font: 800 clamp(2.6rem, 6vw, 3.4rem)/1.05 var(--display); letter-spacing: -0.04em; margin: 8px 0 6px; font-variant-numeric: tabular-nums; }
.result-card .sub { font-size: .86rem; color: rgba(255, 255, 255, .8); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.kpi { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 12px 14px; }
.kpi span { display: block; font-size: .72rem; color: rgba(255, 255, 255, .72); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.kpi b { font: 700 1.2rem var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.result-note { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: .88rem; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.result-note.warn { background: var(--warn-soft); border-color: #f2dc9f; }
.result-note.err { background: #fdecea; border-color: #f5c2bd; color: var(--bad); }
.result-note ul { margin: 0; padding-left: 1.1rem; }
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.results .result-actions .btn { height: 40px; padding: 0 16px; font-size: .86rem; background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.results .result-actions .btn:hover { border-color: var(--lav); }
.working { margin-top: 28px; min-width: 0; padding: 28px; border-radius: 20px; }
.working h2 { margin-top: 0; }
.working table td:first-child { width: 30%; font-weight: 600; color: var(--ink); }
.working tr.strong td { background: var(--lav-soft); font-weight: 700; }
.working .ref { font-size: .78rem; white-space: nowrap; }
.working .asset-row td { background: var(--bg-soft); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b9b5c6; padding: 64px 0 32px; font-size: .9rem; }
.site-footer a { color: #ece9f5; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
.site-footer h4 { color: #fff; font: 700 .76rem var(--font); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; font-size: .8rem; color: #8f8a9f; }
.legal p { margin: 0 0 8px; }

@media (max-width: 640px) {
  .hero { padding: 36px 0 32px; }
  .hero--brand.hero--overlap { padding-bottom: 130px; }
  .hero-art { right: -260px; top: -60px; opacity: .7; }
  .calc-wrap { margin-top: -100px; }
  .trust > * { font-size: .8rem; padding: 7px 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .site-header, .site-footer, .aside, .calc-form, .result-actions, .hero, nav.crumbs { display: none !important; }
  .calc-wrap { margin-top: 0; }
  .calc { display: block; }
  .result-card { background: #fff; color: var(--ink); border: 1px solid #999; box-shadow: none; }
  .result-card .label, .kpi span, .result-card .sub { color: var(--ink); }
  .kpi { background: #f3f3f3; }
}

.know { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.know h3 { margin: 0 0 10px; font-size: .76rem; font-family: var(--font); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.know ul { list-style: none; padding: 0; margin: 0; font-size: .88rem; color: var(--ink-2); }
.know li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); margin: 0; }
.know li:first-child { border-top: 0; padding-top: 0; }
.know li svg { flex: none; color: var(--brand); margin-top: 2px; }
