/* ==========================================================================
   LendWise - site styles
   Palette: deep teal ink, marigold accent, cool paper background.
   Mobile first, breakpoints at 640px and 960px.
   ========================================================================== */

:root {
    --ink: #0f1f1e;
    --muted: #4f6360;
    --paper: #fafbf9;
    --white: #ffffff;
    --line: #dce5e1;
    --teal-950: #072826;
    --teal-900: #0a3532;
    --teal-700: #0f5c55;
    --teal-100: #d9eee8;
    --mint: #f1f8f5;
    --gold: #f4a62a;
    --gold-600: #e0920f;
    --danger: #b3261e;
    --danger-bg: #fdecea;
    --ok: #17684f;
    --ok-bg: #e4f4ec;
    --note-bg: #fff4de;

    --font-display: "Bricolage Grotesque", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(7, 40, 38, 0.06), 0 14px 34px -14px rgba(7, 40, 38, 0.22);
    --container: 1160px;
    --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 1.2rem + 3.8vw, 3.9rem); letter-spacing: -0.025em; line-height: 1.04; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--teal-900); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 22px;
    font: 700 1rem/1 var(--font-body);
    border: 2px solid transparent; border-radius: 999px;
    text-decoration: none; cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.95rem; }
.btn--lg { min-height: 54px; padding: 0 32px; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--teal-900); color: var(--white); }
.btn--primary:hover { background: var(--teal-700); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--teal-950); }
.btn--gold:hover { background: var(--gold-600); color: var(--teal-950); }
.btn--ghost { background: transparent; color: var(--teal-900); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal-900); color: var(--teal-900); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.btn--outline-light:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, 0.08); }

.link { font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 251, 249, 0.94);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header__row { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal-900); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { font: 700 1.35rem/1 var(--font-display); letter-spacing: -0.02em; }
.brand--light, .brand--light:hover { color: var(--white); }

.nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; content: "";
    transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 20px 20px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.nav.is-open { display: flex; }

.nav__link {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 46px; padding: 0 4px; width: 100%;
    font: 500 1.02rem var(--font-body); color: var(--ink);
    background: none; border: 0; text-align: left; text-decoration: none; cursor: pointer;
}
.nav__link:hover { color: var(--teal-700); }
.nav__link--menu::after {
    content: ""; width: 8px; height: 8px; margin-left: 8px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px); transition: transform 0.2s;
}
.nav__link--menu[aria-expanded="true"]::after { transform: rotate(225deg); }
.nav__cta { margin-top: 10px; }

.menu { display: none; padding: 4px 0 10px 12px; }
.menu.is-open { display: block; }
.menu__group { margin-bottom: 10px; }
.menu__title { margin: 8px 0 4px; font-weight: 700; font-size: 0.85rem; color: var(--muted); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 8px 0; color: var(--ink); text-decoration: none; }
.menu a:hover { color: var(--teal-700); text-decoration: underline; }

@media (min-width: 960px) {
    .nav-toggle { display: none; }
    .nav {
        display: flex; position: static; flex-direction: row; align-items: center; gap: 4px;
        padding: 0; background: none; border: 0; max-height: none; overflow: visible;
    }
    .nav__link { width: auto; min-height: 40px; padding: 0 12px; border-radius: var(--radius-sm); }
    .nav__link:hover { background: var(--mint); }
    .nav__cta { margin: 0 0 0 8px; }
    .nav__item { position: relative; }
    .menu {
        position: absolute; top: calc(100% + 10px); left: -120px; width: 760px;
        grid-template-columns: repeat(3, 1fr); gap: 8px 28px;
        padding: 22px 26px; background: var(--white);
        border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    }
    .menu.is-open { display: grid; }
    .menu__group { margin: 0; }
    .menu__title { margin-top: 0; }
}

/* ---------- Hero ---------- */
.hero { background: var(--teal-900); color: var(--white); padding: 44px 0 56px; position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: auto -10% -55% 35%; height: 90%;
    background: radial-gradient(closest-side, rgba(244, 166, 42, 0.16), transparent 70%);
    pointer-events: none;
}
.hero__grid { display: grid; gap: 36px; position: relative; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero .lead { color: rgba(255, 255, 255, 0.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: rgba(255, 255, 255, 0.82); }
.hero__facts li { position: relative; padding-left: 26px; }
.hero__facts li::before {
    content: ""; position: absolute; left: 0; top: 0.35em; width: 14px; height: 8px;
    border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold);
    transform: rotate(-45deg);
}
@media (min-width: 960px) {
    .hero { padding: 72px 0 84px; }
    .hero__grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 56px; }
}

/* ---------- EMI calculator ---------- */
.emi {
    background: var(--white); color: var(--ink);
    border-radius: 20px; padding: 24px; box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.emi__title { font-size: 1.15rem; margin-bottom: 14px; }
.emi__result {
    display: flex; align-items: center; gap: 18px;
    padding: 16px; margin-bottom: 18px;
    background: var(--mint); border-radius: var(--radius);
}
.emi__donut { width: 84px; height: 84px; flex: none; }
.emi__donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.emi__track { fill: none; stroke: var(--gold); stroke-width: 5; }
.emi__arc { fill: none; stroke: var(--teal-900); stroke-width: 5; transition: stroke-dasharray 0.35s ease; }
.emi__label { margin: 0; font-size: 0.9rem; color: var(--muted); }
.emi__value { margin: 0; font: 700 clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem)/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--teal-900); }

.range { margin-bottom: 18px; }
.range__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 0.92rem; color: var(--muted); margin-bottom: 8px; }
.range__label output { font-weight: 700; color: var(--ink); font-size: 1rem; white-space: nowrap; }

input[type="range"] {
    -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--teal-900) var(--fill, 50%), var(--line) var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--teal-900); }
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -9px;
    border-radius: 50%; background: var(--white); border: 3px solid var(--teal-900); box-shadow: 0 2px 6px rgba(7, 40, 38, 0.25);
}
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 3px solid var(--teal-900); }

.emi__split { margin: 6px 0 20px; display: grid; gap: 6px; }
.emi__split div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; }
.emi__split dt { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.emi__split dd { margin: 0; font-weight: 700; }
.emi__total { padding-top: 8px; border-top: 1px solid var(--line); }
.emi__total dt { color: var(--ink); font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--principal { background: var(--teal-900); }
.dot--interest { background: var(--gold); }
.emi__note { margin: 12px 0 0; font-size: 0.82rem; color: var(--muted); text-align: center; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section--tint { background: var(--mint); border-block: 1px solid var(--line); }
.section__head { max-width: 62ch; margin-bottom: 30px; }
.section__head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; flex-wrap: wrap; }
@media (min-width: 960px) { .section { padding: 84px 0; } }

/* ---------- Tabs + product directory ---------- */
.tabs__list { display: none; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.js .tabs__list { display: flex; }
.tabs__tab {
    min-height: 44px; padding: 0 20px; font: 700 0.98rem var(--font-body);
    color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.tabs__tab:hover { color: var(--ink); border-color: var(--teal-700); }
.tabs__tab[aria-selected="true"] { background: var(--teal-900); border-color: var(--teal-900); color: var(--white); }
.tabs__panel { margin-bottom: 36px; }
.js .tabs__panel { margin-bottom: 0; }
.js .tabs__heading { display: none; }
.tabs__heading { margin-bottom: 4px; }
.tabs__intro { color: var(--muted); margin-bottom: 18px; max-width: 62ch; }

.dir { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dir li + li { border-top: 1px solid var(--line); }
.dir__row {
    display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px; align-items: center;
    padding: 16px 18px; text-decoration: none; color: var(--ink);
    transition: background-color 0.15s;
}
.dir__row:hover { background: var(--mint); color: var(--ink); }
.dir__icon {
    grid-row: span 2; display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 12px; background: var(--teal-100); color: var(--teal-900);
}
.dir__body { display: grid; gap: 2px; }
.dir__name { font: 700 1.08rem var(--font-display); }
.dir__tag { color: var(--muted); font-size: 0.95rem; }
.dir__who { grid-column: 2; font-size: 0.85rem; font-weight: 700; color: var(--teal-700); }
@media (min-width: 720px) {
    .dir__row { grid-template-columns: 44px 1fr auto; padding: 18px 24px; }
    .dir__icon { grid-row: auto; }
    .dir__who { grid-column: auto; text-align: right; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { position: relative; padding-left: 64px; counter-increment: step; }
.steps li::before {
    content: counter(step); position: absolute; left: 0; top: 0;
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--teal-900); color: var(--white); font: 700 1.1rem var(--font-display);
}
.steps li:not(:last-child)::after {
    content: ""; position: absolute; left: 21px; top: 50px; bottom: -22px; width: 2px; background: var(--line);
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; max-width: 46ch; }
@media (min-width: 960px) {
    .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
    .steps li { padding: 56px 0 0; }
    .steps li:not(:last-child)::after { left: 52px; right: -32px; top: 21px; bottom: auto; width: auto; height: 2px; }
}

/* ---------- Split + ticks ---------- */
.split { display: grid; gap: 32px; }
.split__lead p { color: var(--muted); max-width: 46ch; }
@media (min-width: 960px) { .split { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; } }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.ticks li { position: relative; padding-left: 36px; display: grid; gap: 2px; }
.ticks li::before {
    content: ""; position: absolute; left: 4px; top: 0.4em; width: 14px; height: 8px;
    border-left: 3px solid var(--teal-700); border-bottom: 3px solid var(--teal-700); transform: rotate(-45deg);
}
.ticks strong { font: 700 1.1rem var(--font-display); }
.ticks span { color: var(--muted); }
.ticks--plain { gap: 10px; }
.ticks--plain li { display: block; }
.ticks--plain span { color: var(--ink); }

/* ---------- Guides ---------- */
.guides { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.guide {
    display: grid; gap: 8px; height: 100%; padding: 22px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    text-decoration: none; color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s;
}
.guide:hover { border-color: var(--teal-700); box-shadow: var(--shadow); color: var(--ink); }
.guide__topic { font-size: 0.85rem; font-weight: 700; color: var(--teal-700); }
.guide__title { font: 700 1.2rem/1.25 var(--font-display); }
.guide__excerpt { color: var(--muted); }
.guide__meta { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
@media (min-width: 720px) { .guides { grid-template-columns: repeat(3, 1fr); } }

/* ---------- CTA band ---------- */
.cta { background: var(--teal-900); color: var(--white); padding: 52px 0; }
.cta__row { display: grid; gap: 22px; align-items: center; }
.cta h2 { color: var(--white); margin-bottom: 6px; }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.85); max-width: 52ch; }
@media (min-width: 720px) { .cta__row { grid-template-columns: 1fr auto; gap: 40px; } }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--mint); border-bottom: 1px solid var(--line); padding: 40px 0 36px; }
.page-hero h1 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3rem); margin-bottom: 10px; }
.page-hero .lead { color: var(--muted); margin: 0; }
.page-hero__row { display: flex; gap: 20px; align-items: flex-start; }
.page-hero__icon {
    display: none; place-items: center; flex: none; width: 64px; height: 64px;
    border-radius: 18px; background: var(--teal-900); color: var(--gold);
}
.page-hero__icon .icon { width: 30px; height: 30px; }
.page-hero__who { margin: 12px 0 0; font-weight: 700; color: var(--teal-700); font-size: 0.95rem; }
@media (min-width: 640px) { .page-hero__icon { display: grid; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 14px; font-size: 0.9rem; }
.crumbs a { color: var(--muted); }
.crumbs a::after { content: "/"; margin-left: 10px; color: var(--line); }
.crumbs span { font-weight: 700; }

/* ---------- Product page ---------- */
.product { display: grid; gap: 36px; }
.product__side { align-self: start; }
@media (min-width: 960px) {
    .product { grid-template-columns: 1fr 400px; gap: 64px; }
    .product__side { position: sticky; top: calc(var(--header-h) + 20px); }
}

.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { max-width: 68ch; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose ul.ticks { padding-left: 0; }
.prose--article p { font-size: 1.08rem; line-height: 1.75; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.panel__title { font-size: 1.1rem; margin-bottom: 10px; }
.mini-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.plain-list { margin: 0 0 12px; padding-left: 1.2em; }
.address { font-style: normal; }

/* ---------- Forms ---------- */
.apply { display: grid; gap: 32px; }
@media (min-width: 960px) { .apply { grid-template-columns: 1fr 360px; gap: 56px; align-items: start; } }

.form__group { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.form__group legend { font: 700 1.25rem var(--font-display); padding: 0; margin-bottom: 16px; }

.field { margin-bottom: 18px; min-width: 0; }
.field label, .field__label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 0.95rem; }
.field-row { display: grid; gap: 0 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.input {
    width: 100%; min-height: 50px; padding: 12px 14px;
    font: 400 1rem var(--font-body); color: var(--ink);
    background: var(--white); border: 1.5px solid #b9c8c3; border-radius: var(--radius-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.input { resize: vertical; min-height: 140px; }
.input:hover { border-color: var(--teal-700); }
.input:focus { outline: none; border-color: var(--teal-900); box-shadow: 0 0 0 4px rgba(15, 92, 85, 0.18); }
.input.input-validation-error { border-color: var(--danger); }
.field__error, .field-validation-error { display: block; margin-top: 6px; color: var(--danger); font-size: 0.9rem; font-weight: 500; }
.field-validation-valid { display: none; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; margin: 0 !important; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
    display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
    font-weight: 700; border: 1.5px solid #b9c8c3; border-radius: 999px; background: var(--white);
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.choice:hover span { border-color: var(--teal-700); }
.choice input:checked + span { background: var(--teal-900); border-color: var(--teal-900); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.check { display: grid !important; grid-template-columns: 22px 1fr; gap: 12px; font-weight: 400 !important; align-items: start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--teal-900); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; border: 1px solid transparent; }
.alert:empty { display: none; }
.alert ul { margin: 0; padding-left: 1.2em; }
.alert--error { background: var(--danger-bg); border-color: #f2b8b5; color: #7a1812; }
.alert--ok { background: var(--ok-bg); border-color: #a7d7c2; color: #0f4a38; }
.alert--note { background: var(--note-bg); border-color: #f1d49a; color: #5a3f06; }
.validation-summary-valid { display: none; }

/* ---------- Success / error ---------- */
.success { text-align: center; padding: 20px 0; }
.success__mark { width: 72px; height: 72px; color: var(--ok); margin-bottom: 12px; }
.success h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); }
.success .lead { margin-inline: auto; }
.success__ref { padding: 12px 18px; display: inline-block; background: var(--mint); border-radius: var(--radius-sm); }
.success__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.error-code { font: 700 clamp(4rem, 3rem + 6vw, 7rem)/1 var(--font-display); color: var(--teal-100); margin: 0; letter-spacing: -0.04em; }

/* ---------- Stack (products index) ---------- */
.stack { display: grid; gap: 48px; }
.stack__title { margin-bottom: 4px; }
.stack__intro { color: var(--muted); margin-bottom: 16px; max-width: 62ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-950); color: rgba(255, 255, 255, 0.78); padding-top: 56px; }
.site-footer a { color: rgba(255, 255, 255, 0.88); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer__grid { display: grid; gap: 32px; padding-bottom: 36px; }
.footer__about p { max-width: 36ch; margin: 14px 0; }
.footer__about address { font-style: normal; line-height: 1.8; }
.footer__col h2 { font: 700 1rem var(--font-display); color: var(--white); margin-bottom: 12px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 24px; padding-bottom: 32px; font-size: 0.88rem; }
.footer__legal p { max-width: 90ch; margin-bottom: 10px; }
.footer__copy { margin-top: 14px; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
