/*
 * Public website. Mobile first; tokens come from theme.css.
 * The page CSP forbids inline styles, so every visual rule lives here.
 */

/* ---------- Base ---------- */
:root {
    color: var(--text);
    background: var(--mist);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--mist); overflow-x: clip; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--forest); text-underline-offset: .22em; text-decoration-thickness: .07em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: .25rem; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { color: var(--forest); line-height: 1.15; font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 1.4rem + 3.6vw, 3.9rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.4rem); letter-spacing: -.028em; }
h3 { font-size: 1.15rem; letter-spacing: -.012em; line-height: 1.3; }
p { text-wrap: pretty; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
    position: absolute; left: 1rem; top: .75rem; z-index: 30; padding: .7rem 1rem;
    background: var(--surface); border: 2px solid var(--forest); border-radius: var(--radius-sm);
    transform: translateY(-200%);
}
.skip:focus { transform: none; }
main:focus { outline: none; }

.container { width: min(100% - 2rem, 75rem); margin-inline: auto; }
.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section-sage { background: var(--sage-soft); }
.section-white { background: var(--surface); }
.section-head { display: grid; gap: .75rem; max-width: 44rem; margin-bottom: clamp(1.6rem, 1.2rem + 1.5vw, 2.5rem); }
.section-head p { color: var(--ink-secondary); font-size: 1.06rem; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .45rem; width: fit-content;
    color: var(--green-text); font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.lead { color: var(--ink-secondary); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); max-width: 40rem; }
.muted { color: var(--ink-secondary); }
.small { font-size: .9rem; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; }
.icon-lg { width: 1.6rem; height: 1.6rem; }

/* ---------- Buttons and links ---------- */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 2.9rem; padding: .7rem 1.2rem; border: 1.5px solid var(--forest); border-radius: var(--radius-sm);
    background: var(--forest); color: #fff; font: inherit; font-weight: 650; line-height: 1.2;
    text-align: center; text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.button:hover { background: #1c5246; border-color: #1c5246; }
.button-secondary { background: var(--surface); color: var(--forest); border-color: #9fbcae; }
.button-secondary:hover { background: var(--sage-soft); border-color: var(--forest); }
.button-light { background: var(--surface); color: var(--forest); border-color: var(--surface); }
.button-light:hover { background: var(--sage); border-color: var(--sage); }
.button-on-dark { background: transparent; color: #fff; border-color: rgb(255 255 255 / 55%); }
.button-on-dark:hover { background: rgb(255 255 255 / 10%); border-color: #fff; }
.button-small { min-height: 2.75rem; padding: .5rem .9rem; font-size: .92rem; }
.text-link {
    display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem;
    font-weight: 650; color: var(--forest); text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.text-link .icon { transition: transform .15s ease; }
.text-link:hover .icon { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgb(255 255 255 / 94%); border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand {
    display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem;
    color: var(--forest); font-size: clamp(1.2rem, 1rem + 1vw, 1.4rem); font-weight: 780; letter-spacing: -.04em; text-decoration: none;
}
.brand-mark { width: 1.85rem; height: 1.85rem; flex: none; }
.menu-toggle {
    display: none; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .45rem .8rem;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
    color: var(--forest); font: inherit; font-weight: 650; cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded=true] .icon-open { display: none; }
.menu-toggle[aria-expanded=true] .icon-close { display: inline; }
.site-menu { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; }
.primary-nav ul, .footer-col ul { list-style: none; padding: 0; }
.primary-nav ul { display: flex; flex-wrap: wrap; gap: .1rem 1.25rem; }
.primary-nav a {
    display: inline-flex; align-items: center; min-height: 2.75rem;
    color: var(--text); font-weight: 560; text-decoration: none;
}
.primary-nav a:hover { color: var(--forest); text-decoration: underline; }
.primary-nav a[aria-current=page] { color: var(--forest); font-weight: 700; text-decoration: underline; text-decoration-thickness: .14em; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .85rem; }
.account-link { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; text-decoration: none; }
.account-link:hover { text-decoration: underline; }
.lang-switch ul { display: flex; width: fit-content; gap: .2rem; list-style: none; padding: .2rem; background: var(--mist); border: 1px solid var(--line); border-radius: .7rem; }
.lang-switch a {
    display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.35rem; padding-inline: .5rem;
    border-radius: .5rem; color: var(--ink-secondary); font-size: .88rem; font-weight: 700; text-decoration: none;
}
.lang-switch a:hover { color: var(--forest); background: var(--surface); }
.lang-switch a[aria-current=true] { background: var(--sage); color: var(--forest); }

/* Mobile menu: collapsed behind a toggle; nojs.css (in <noscript>) shows it without JavaScript. */
@media (max-width: 55.99rem) {
    .header-inner { position: relative; }
    .menu-toggle { display: inline-flex; }
    .site-menu {
        display: none; position: absolute; inset: 100% -1rem auto; padding: .75rem 1rem 1.25rem;
        background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px rgb(18 62 53 / 8%);
    }
    .site-menu[data-open] { display: grid; gap: .75rem; }
    .primary-nav ul { display: grid; gap: 0; }
    .primary-nav li + li { border-top: 1px solid var(--line); }
    .primary-nav a { width: 100%; min-height: 3rem; font-size: 1.05rem; }
    .header-actions { padding-top: .75rem; border-top: 1px solid var(--line); justify-content: space-between; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--surface) 0%, var(--mist) 100%); overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(3rem, 2rem + 3vw, 4.5rem); }
.hero-copy { display: grid; gap: 1.4rem; justify-items: start; }
.hero-copy h1 { max-width: 14ch; }
.hero-copy .lead { max-width: 34rem; }
.trust-list { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; list-style: none; color: var(--ink-secondary); font-size: .92rem; }
.trust-list li { display: inline-flex; align-items: center; gap: .4rem; }
.trust-list .icon { width: 1.1rem; height: 1.1rem; color: var(--green); }
.hero-visual { position: relative; width: 100%; max-width: 36rem; justify-self: center; }
.hero-art { display: block; width: 100%; }
.overview-card {
    position: relative; margin: -2.5rem 0 0 auto; width: min(100%, 19.5rem);
    padding: 1.1rem 1.15rem 1.2rem; background: var(--surface); border: 1px solid var(--line);
    border-radius: 1.1rem; box-shadow: var(--shadow-soft);
}
.overview-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .8rem; }
.overview-head h2 { font-size: 1.02rem; letter-spacing: -.01em; }
.overview-badge {
    flex: none; padding: .15rem .5rem; border-radius: 999px; background: var(--warning-soft);
    color: var(--warning-text); font-size: .74rem; font-weight: 700;
}
.overview-total { display: grid; gap: .1rem; padding: .85rem 1rem; border-radius: .8rem; background: var(--forest); color: #fff; }
.overview-total span { font-size: .85rem; color: #d4e6dc; }
.overview-total strong { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.overview-rows { display: grid; gap: .65rem; margin-top: .9rem; }
.overview-row { display: grid; gap: .3rem; font-size: .86rem; }
.overview-row div { display: flex; justify-content: space-between; gap: .5rem; }
.overview-row strong { font-variant-numeric: tabular-nums; font-weight: 650; }
.meter { display: block; height: .5rem; border-radius: 999px; background: var(--sage-soft); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.meter .meter-expenses { background: #6e9c88; }
.meter .w-100 { width: 100%; }
.meter .w-84 { width: 84.5%; }

/* ---------- Challenge cards ---------- */
.card {
    min-width: 0; padding: clamp(1.15rem, 1rem + .6vw, 1.6rem); background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius);
}
.challenge-grid, .article-grid { display: grid; gap: 1rem; padding: 0; list-style: none; }
.challenge-card { display: grid; gap: .65rem; align-content: start; }
.challenge-card p { color: var(--ink-secondary); }
.card-art {
    display: grid; place-items: center; height: 8.5rem; margin-bottom: .5rem; border-radius: .9rem; background: var(--sage-soft);
}
.card-art img { width: 10.5rem; }

/* ---------- Calculator ---------- */
.calc-intro { display: grid; gap: 1.5rem; margin-bottom: 1.75rem; }
.calc-steps { display: grid; gap: .6rem; padding: 0; list-style: none; counter-reset: calc; }
.calc-steps li { display: flex; gap: .7rem; align-items: flex-start; counter-increment: calc; color: var(--ink-secondary); }
.calc-steps li::before {
    content: counter(calc); display: grid; place-items: center; flex: none; width: 1.7rem; height: 1.7rem;
    border-radius: 50%; background: var(--sage); color: var(--forest); font-size: .82rem; font-weight: 750;
}
.calc { display: grid; gap: 1.25rem; align-items: start; }
.calc-inputs { display: grid; gap: 1.1rem; padding: clamp(1rem, .8rem + 1vw, 1.75rem); }
.calc-top { display: grid; gap: .9rem; }
.calc-group { display: grid; gap: .9rem; margin: 0; padding: 1.1rem 0 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.calc-group legend { display: flex; align-items: center; gap: .55rem; padding: 0; float: left; width: 100%; color: var(--forest); font-weight: 750; font-size: 1.04rem; }
.calc-group legend + * { clear: both; }
.legend-icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .6rem; background: var(--sage-soft); color: var(--green-text); }
.legend-icon .icon { width: 1.15rem; height: 1.15rem; }
.group-hint { color: var(--ink-secondary); font-size: .9rem; }
.calc-fields { display: grid; gap: .85rem; }
.field { display: grid; gap: .3rem; min-width: 0; }
.field-label { font-size: .92rem; font-weight: 600; color: var(--text); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-affix {
    position: absolute; left: .8rem; color: var(--ink-secondary); font-size: .95rem; font-weight: 600; pointer-events: none;
}
input, select, button { font: inherit; }
.field input, .field select {
    width: 100%; min-width: 0; min-height: 2.9rem; padding: .55rem .8rem; color: var(--text); background: var(--surface);
    border: 1.5px solid var(--input-border); border-radius: var(--radius-sm); font-variant-numeric: tabular-nums;
}
.field select { appearance: auto; }
.input-wrap input { padding-left: 2.6rem; }
.input-wrap[data-wide-affix] input { padding-left: 3.4rem; }
.field input:hover, .field select:hover { border-color: var(--forest); }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--forest); }
input::placeholder { color: #6c7f77; opacity: 1; }
.field input[aria-invalid=true] { border: 2px solid var(--negative-text); background: var(--negative-soft); }
.field-error { display: flex; gap: .35rem; align-items: flex-start; color: var(--negative-text); font-size: .87rem; font-weight: 600; }
.field-error .icon { width: 1.05rem; height: 1.05rem; margin-top: .15rem; }
.check { display: flex; align-items: center; gap: .6rem; min-height: 2.75rem; font-size: .95rem; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; flex: none; accent-color: var(--forest); }
.form-hint { display: flex; gap: .5rem; padding: .75rem .85rem; border-radius: var(--radius-sm); background: var(--mist); color: var(--ink-secondary); font-size: .9rem; }
.form-hint .icon { color: var(--green-text); margin-top: .1rem; }

.calc-results { display: grid; gap: 1.1rem; padding: clamp(1rem, .8rem + 1vw, 1.75rem); }
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem 1rem; }
.results-head h3 { font-size: 1.3rem; }
.status { min-height: 1.4em; color: var(--ink-secondary); font-size: .88rem; }
.status[data-tone=error] { color: var(--negative-text); font-weight: 600; }
.calc-results[aria-busy=true] .summary-grid, .calc-results[aria-busy=true] .compare { opacity: .55; transition: opacity .2s ease; }
.empty-hint {
    display: grid; justify-items: center; gap: .6rem; padding: 1.5rem 1rem; text-align: center;
    border: 1.5px dashed #b7cfc2; border-radius: var(--radius); background: var(--mist); color: var(--ink-secondary);
}
.empty-hint img { width: 9rem; }
.empty-hint strong { color: var(--forest); font-size: 1.02rem; }
.calc-filled { display: grid; gap: 1.1rem; }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; padding: 0; list-style: none; }
.metric { display: grid; gap: .2rem; align-content: start; padding: .85rem .9rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); min-width: 0; }
.metric dt, .metric .metric-label { color: var(--ink-secondary); font-size: .84rem; font-weight: 600; }
.metric dd, .metric .metric-value { color: var(--forest); font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-primary { grid-column: 1 / -1; background: var(--forest); border-color: var(--forest); }
.metric-primary .metric-label { color: #d4e6dc; }
.metric-primary .metric-value { color: #fff; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
.metric-primary[data-tone=deficit] { background: #7c2b30; border-color: #7c2b30; }
.metric-primary[data-tone=deficit] .metric-label { color: #f6dadc; }
.compare-bars { display: grid; gap: .7rem; padding: 1rem; border-radius: .9rem; background: var(--mist); }
.compare-bars h4 { font-size: .95rem; }
.bar-row { display: grid; gap: .3rem; font-size: .88rem; }
.bar-row div { display: flex; justify-content: space-between; gap: .5rem; }
.bar-row strong { font-variant-numeric: tabular-nums; }
.bar-track { display: block; height: .7rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.bar-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .3s ease; }
.bar-fill-expenses { background: #6e9c88; }
.compare { display: grid; gap: .55rem; }
.compare h4 { font-size: 1rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: .9rem; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.compare-table caption { text-align: start; }
.compare-table th, .compare-table td { padding: .65rem .7rem; text-align: end; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table tr:last-child > * { border-bottom: 0; }
.compare-table thead th { background: var(--mist); color: var(--forest); font-size: .8rem; font-weight: 700; }
.compare-table th[scope=row] { text-align: start; font-weight: 560; color: var(--text); width: 44%; }
.compare-table td.negative, .metric-value.negative { color: var(--negative-text); }
.metric-value[data-text] { font-size: .98rem; font-weight: 650; letter-spacing: 0; line-height: 1.35; }
.compare-table td[data-text] { font-size: .84rem; }
/* Narrow screens: each metric becomes a labelled block instead of a clipped three-column table. */
@media (max-width: 35.99rem) {
    .table-wrap { overflow: visible; }
    .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .compare-table, .compare-table tbody, .compare-table tr { display: block; width: 100%; }
    .compare-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem .75rem; padding: .75rem .8rem; border-bottom: 1px solid var(--line); }
    .compare-table tr:last-child { border-bottom: 0; }
    .compare-table th[scope=row] { grid-column: 1 / -1; width: auto; padding: 0 0 .2rem; border: 0; }
    .compare-table td { display: grid; gap: .1rem; padding: 0; border: 0; text-align: start; }
    .compare-table td::before { content: attr(data-label); color: var(--ink-secondary); font-size: .76rem; font-weight: 600; }
}
.metric-primary .metric-value.negative { color: #fff; }
.savings-callout {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1rem;
    padding: .9rem 1rem; border-radius: .9rem; background: var(--sage); color: var(--forest);
}
.savings-callout strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.notice { display: flex; gap: .6rem; padding: .9rem 1rem; border-radius: .9rem; background: var(--warning-soft); color: var(--warning-text); border: 1px solid #f0dcae; }
.notice .icon { margin-top: .15rem; }
.assumptions { display: grid; gap: .35rem; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--ink-secondary); font-size: .88rem; }
.assumptions strong { color: var(--forest); font-size: .92rem; }
.save-panel { display: grid; gap: .75rem; padding: 1rem; border-radius: .9rem; border: 1px solid var(--line); background: var(--mist); }
.save-panel h4 { font-size: 1rem; }

/* ---------- Journey ---------- */
.journey-wrap { display: grid; gap: 2rem; align-items: end; }
.journey { display: grid; gap: .75rem; padding: 0; list-style: none; counter-reset: step; }
.journey-step {
    position: relative; display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; align-items: start; align-content: start;
    padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.journey-icon { grid-row: span 3; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .9rem; background: var(--sage-soft); color: var(--forest); }
.journey-icon .icon { width: 1.6rem; height: 1.6rem; }
.journey-step .step-number { color: var(--green-text); font-size: .78rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.journey-step p { color: var(--ink-secondary); font-size: .93rem; }
.journey-art { display: none; }

/* ---------- Benefits ---------- */
.benefits { display: grid; gap: 2rem; align-items: center; }
.benefits-art { display: grid; place-items: center; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--sage-soft); }
.benefits-art img { width: min(100%, 15.5rem); }
.check-list { display: grid; gap: .75rem; padding: 0; list-style: none; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-badge { display: grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem; margin-top: .05rem; border-radius: 50%; background: var(--green); color: #fff; }
.check-badge .icon { width: 1rem; height: 1rem; }

/* ---------- Privacy band ---------- */
.privacy-band { display: grid; gap: 1.5rem; padding: clamp(1.4rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.privacy-badge { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: var(--sage); color: var(--forest); }
.privacy-badge .icon { width: 1.8rem; height: 1.8rem; }
.privacy-copy { display: grid; gap: .9rem; }
.privacy-copy > p { color: var(--ink-secondary); }
.privacy-points { display: grid; gap: .65rem; padding: 0; list-style: none; }
.privacy-points li { display: flex; gap: .6rem; align-items: flex-start; }
.privacy-points .icon { color: var(--green-text); margin-top: .15rem; }

/* ---------- Articles ---------- */
.article-card { display: flex; flex-direction: column; gap: .7rem; height: 100%; padding: 0; overflow: hidden; position: relative; }
.article-card:hover { border-color: #b7cfc2; box-shadow: var(--shadow-soft); }
.article-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sage-soft); }
.article-cover-fallback { display: grid; place-items: center; color: var(--green-text); }
.article-cover-fallback .icon { width: 2.5rem; height: 2.5rem; }
.article-card-body { display: flex; flex-direction: column; gap: .6rem; flex: 1; padding: 0 1.15rem 1.2rem; }
.article-card h3 a { color: var(--forest); text-decoration: none; }
.article-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.article-card h3 a:hover { text-decoration: underline; }
.article-card h3 a:focus-visible { outline: none; }
.article-card:focus-within { outline: 3px solid var(--green); outline-offset: 3px; }
.article-card p { color: var(--ink-secondary); font-size: .95rem; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .8rem; color: var(--ink-secondary); font-size: .85rem; margin-top: auto; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
    display: inline-flex; align-items: center; gap: .3rem; width: fit-content; padding: .2rem .6rem;
    border-radius: 999px; background: var(--sage-soft); color: var(--green-text); font-size: .8rem; font-weight: 700;
}
.chip-featured { background: var(--warning-soft); color: var(--warning-text); }
.empty-state {
    display: grid; justify-items: center; gap: .75rem; padding: clamp(1.75rem, 1.2rem + 2vw, 3rem) 1.25rem;
    text-align: center; border: 1.5px dashed #b7cfc2; border-radius: var(--radius); background: var(--surface);
}
.empty-state img { width: 10rem; }
.empty-state h3 { font-size: 1.2rem; }
.empty-state p { max-width: 32rem; color: var(--ink-secondary); }
.section-foot { margin-top: 1.5rem; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 1.5rem; }
.faq { display: grid; gap: .65rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq details[open] { border-color: #b7cfc2; }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem;
    padding: .85rem 1.1rem; color: var(--forest); font-weight: 650; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s ease; color: var(--green-text); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq summary:focus-visible { outline-offset: -3px; }
.faq details > div { padding: 0 1.1rem 1.1rem; color: var(--ink-secondary); }

/* ---------- Closing call to action ---------- */
.closing { position: relative; overflow: hidden; background: var(--forest); color: #fff; }
.closing-inner { position: relative; display: grid; gap: 1.25rem; justify-items: start; }
.closing h2 { color: #fff; max-width: 22ch; }
.closing p { color: #d4e6dc; max-width: 36rem; font-size: 1.08rem; }
.closing-leaf { position: absolute; right: -2rem; bottom: -3rem; width: 16rem; height: 16rem; color: rgb(255 255 255 / 7%); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; padding-block: 3rem 2rem; }
.footer-brand { display: grid; gap: .75rem; max-width: 24rem; }
.footer-brand p { color: var(--ink-secondary); }
.footer-col { display: grid; gap: .5rem; align-content: start; }
.footer-col h2 { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-secondary); }
.footer-col a { display: inline-flex; align-items: center; min-height: 2.5rem; color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--forest); text-decoration: underline; }
.footer-bottom {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem;
    padding-block: 1.25rem 1.75rem; border-top: 1px solid var(--line); color: var(--ink-secondary); font-size: .88rem;
}
.footer-note { max-width: 46rem; }

/* ---------- Page heads, documents, articles ---------- */
.page-head { padding-block: clamp(2.25rem, 1.5rem + 3vw, 4rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); background: linear-gradient(180deg, var(--surface), var(--mist)); }
.page-head-inner { display: grid; gap: 1rem; }
.page-head h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.2rem); max-width: 22ch; }
.page-head-grid { display: grid; gap: 1.5rem; align-items: center; }
.page-head-art { display: none; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; padding: 0; list-style: none; font-size: .9rem; color: var(--ink-secondary); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.breadcrumbs li + li::before { content: '/'; color: #9db0a7; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink-secondary); }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.doc { max-width: 46rem; }
.prose { overflow-wrap: break-word; font-size: 1.07rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.prose h2 + p { margin-top: .7rem; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: .4rem; }
.doc-card { padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.article-layout { display: grid; gap: 2.5rem; }
.article-header { display: grid; gap: 1rem; }
.article-header h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.1rem); max-width: 24ch; }
.featured-image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--sage-soft); }
.article-body p { white-space: pre-line; }
.article-aside { display: grid; gap: 1rem; align-content: start; }
.aside-card { display: grid; gap: .75rem; padding: 1.25rem; border-radius: var(--radius); background: var(--sage-soft); border: 1px solid var(--line); }
.aside-card h2 { font-size: 1.1rem; }
.aside-card p { color: var(--ink-secondary); font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.tags a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .3rem .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; text-decoration: none; overflow-wrap: anywhere; }
.tags a:hover { border-color: var(--forest); }
.sources { display: grid; gap: .4rem; padding-left: 1.2rem; }

/* ---------- Knowledge listing ---------- */
.filters { display: grid; gap: .85rem; align-items: end; padding: clamp(1rem, .8rem + 1vw, 1.4rem); margin-bottom: 1.25rem; }
.filters .actions { gap: .5rem 1rem; }
.category-nav { margin-bottom: 1.5rem; }
.category-nav ul { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.category-nav a {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding: .35rem 1rem; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: .92rem; font-weight: 600; text-decoration: none;
}
.category-nav a:hover { border-color: var(--forest); }
.category-nav a[aria-current=page] { background: var(--forest); border-color: var(--forest); color: #fff; }
.results-note { margin-bottom: 1rem; color: var(--ink-secondary); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.25rem; margin-top: 2rem; }
.pagination span { color: var(--ink-secondary); }

/* ---------- Error pages ---------- */
.error-page { display: grid; gap: 2rem; align-items: center; padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.error-copy { display: grid; gap: 1.1rem; justify-items: start; }
.error-code { color: var(--green-text); font-weight: 750; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; }
.error-art { display: grid; place-items: center; padding: 2rem; border-radius: var(--radius-lg); background: var(--sage-soft); }
.error-art img { width: min(100%, 13rem); }

/* ---------- Breakpoints ---------- */
@media (min-width: 36rem) {
    .calc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .calc-top { grid-template-columns: minmax(0, 14rem) 1fr; align-items: end; }
    .challenge-grid, .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .overview-card { position: absolute; right: 0; bottom: 6%; margin: 0; width: 46%; min-width: 17rem; }
    .hero-visual { padding-bottom: 0; }
    .filters { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
    .filters .actions { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 48rem) {
    .privacy-band { grid-template-columns: auto 1fr; align-items: start; gap: 1.5rem 2rem; }
    .benefits { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; }
    .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .faq-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; }
    .error-page { grid-template-columns: 1.2fr .8fr; }
    .page-head-grid { grid-template-columns: 1fr auto; }
    .page-head-art { display: block; }
    .page-head-art img { width: 11rem; }
    .calc-intro { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 2rem 3rem; }
}
@media (min-width: 56rem) {
    .menu-toggle { display: none !important; }
    .site-menu { flex: 1; justify-content: space-between; margin-left: 2rem; }
    .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; }
    .hero-visual { max-width: none; }
    .overview-card { width: 44%; bottom: 10%; }
    .challenge-grid, .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .calc { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem; }
    .calc-results { position: sticky; top: 5.25rem; }
    .journey-wrap { grid-template-columns: minmax(0, 1fr) 10rem; }
    .journey-art { display: block; }
    .journey-art img { width: 10rem; }
    .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
    .footer-brand { grid-column: auto; }
    .article-layout { grid-template-columns: minmax(0, 1fr) 18rem; gap: 3.5rem; }
    .article-aside { position: sticky; top: 6rem; }
    .filters { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
    .filters .actions { grid-column: auto; }
}
@media (min-width: 72rem) {
    .journey { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; }
    .journey-step { grid-template-columns: 1fr; gap: .45rem; padding: 1.15rem; }
    .journey-icon { grid-row: auto; margin-bottom: .35rem; }
    .journey-step:not(:last-child)::after {
        content: ''; position: absolute; top: 2.65rem; right: -.75rem; width: .6rem; height: .6rem; z-index: 1;
        border-top: 2px solid var(--green); border-right: 2px solid var(--green); transform: rotate(45deg);
    }
    .journey-wrap { grid-template-columns: minmax(0, 1fr) 11rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
    .site-header, .site-footer, .closing, .skip { display: none; }
    body, :root { background: #fff; }
}
