/* KalkulatorKredie.com — shared styles. Light-only. */
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/jakarta-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/jakarta-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #F4F7F6;
  --surface: #FFFFFF;
  --ink: #0F1E1A;
  --muted: #64746F;
  --line: #E4EBE8;
  --track: #E2EAE7;
  --accent: #0C8A6E;
  --accent-2: #0A5C4C;
  --accent-soft: rgba(12, 138, 110, .10);
  --principal: #0C8A6E;
  --interest: #F2A33A;
  --interest-ink: #C77A12;
  --gold: #FFC870;
  --good: #0C8A6E;
  --warn: #D98A0B;
  --bad: #D2483B;
  --f: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --r-lg: 24px;
  --r-md: 16px;
  --shadow: 0 1px 2px rgba(15, 30, 26, .04), 0 8px 28px rgba(15, 30, 26, .06);
  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 85% -120px, rgba(12, 138, 110, .10), transparent 70%),
    radial-gradient(700px 380px at -10% 0, rgba(242, 163, 58, .08), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--f);
  font-size: 15px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent-2); }
.container {
  max-width: 1180px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
main.container { display: grid; gap: 28px; padding-block: 8px 56px; }

/* ---------- Header / nav ---------- */
.site-header { position: relative; z-index: 30; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.brand .tld { color: #0A7D63; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 5px 12px; border-radius: 999px;
  width: fit-content; justify-self: start;
  background: #E3F1EC; color: var(--accent-2); font-weight: 700; font-size: 13px; letter-spacing: .01em;
}
.logo {
  width: 38px; height: 38px; border-radius: 10px; display: block; flex: none;
  box-shadow: 0 6px 16px rgba(12, 138, 110, .3);
}
.logo svg { display: block; width: 100%; height: 100%; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav .more > summary {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 8px 12px; border-radius: 10px; cursor: pointer; white-space: nowrap; list-style: none;
}
.nav .more > summary::-webkit-details-marker { display: none; }
.nav a:hover, .nav .more > summary:hover { background: var(--accent-soft); color: var(--accent-2); }
.nav a[aria-current="page"] { color: var(--accent-2); background: var(--accent-soft); }
.nav .more { position: relative; }
.nav .more > summary::after { content: " ▾"; font-size: 11px; color: var(--muted); }
.nav .more-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 260px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow);
  padding: 8px; display: grid; gap: 2px;
}
.nav .more-panel a { padding: 10px 12px; }
.nav .cta { background: var(--accent); color: #fff; }
.nav .cta:hover { background: var(--accent-2); color: #fff; }
.menu-btn {
  display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 12px;
  width: 44px; height: 44px; cursor: pointer; color: var(--ink); place-items: center;
}
.menu-btn:focus-visible, .nav a:focus-visible, .nav summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(15, 30, 26, .08);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
  }
  .nav.open { display: flex; }
  .nav a, .nav .more > summary { padding: 12px; font-size: 15px; }
  .nav .more > summary { display: none; }
  .nav .more-panel { position: static; display: grid; box-shadow: none; border: 0; padding: 0; min-width: 0; }
  .nav .more:not([open]) .more-panel { display: grid; }
  .nav .cta { text-align: center; margin-top: 6px; }
}

/* ---------- Breadcrumb + intro ---------- */
.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-2); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }
header.intro { display: grid; gap: 10px; }
h1 { font-weight: 800; font-size: clamp(30px, 5vw, 48px); line-height: 1.08; margin: 0; letter-spacing: -.03em; text-wrap: balance; }
h1 .hl { background: linear-gradient(90deg, var(--accent), #12B08C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: 0; color: var(--muted); max-width: 62ch; font-size: 16px; }
/* Illustrations */
.intro.has-art { grid-template-columns: minmax(0, 1fr) 250px; column-gap: 36px; align-items: center; }
.intro.has-art > :not(.intro-art) { grid-column: 1; }
.intro-art { grid-column: 2; grid-row: 1 / span 5; width: 100%; height: auto; display: block; }
.featured { margin: 0; border-radius: var(--r-md); background: var(--accent-soft); display: grid; place-items: center; padding: 12px; }
.featured img { width: 100%; max-width: 400px; height: auto; display: block; }
.side .featured { padding: 6px; }
.post-thumb { display: grid; place-items: center; background: var(--accent-soft); border-radius: 14px; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 4px; }
.post-thumb img { width: 70%; height: auto; display: block; }
@media (max-width: 920px) {
  .intro.has-art { grid-template-columns: minmax(0, 1fr); }
  .intro-art { display: none; }
}
.chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; font-weight: 600; color: var(--accent-2); background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; display: inline-flex; align-items: center; gap: 6px; }
.chips li::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* ---------- Calculator layout ---------- */
.layout { display: grid; grid-template-columns: minmax(300px, 390px) minmax(0, 1fr); gap: 24px; align-items: start; }
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid rgba(228, 235, 232, .7); }
form.inputs { padding: 26px; display: grid; gap: 24px; position: sticky; top: calc(16px + env(safe-area-inset-top, 0px)); }
form.inputs h2 { font-size: 18px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.field { display: grid; gap: 10px; }
.field-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.field label, .field .label { font-weight: 600; font-size: 14px; color: var(--ink); }
.field .opt { color: var(--muted); font-weight: 500; }
.num {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  background: var(--bg); border: 1.5px solid transparent; border-radius: 12px; padding: 7px 12px;
  transition: border-color .15s, background .15s;
}
.num:focus-within { border-color: var(--accent); background: #fff; }
.num input {
  border: 0; background: transparent; color: var(--ink); outline: none; font: inherit;
  font-size: 16px; font-weight: 700; text-align: right; width: 9ch; min-width: 0; -moz-appearance: textfield;
}
.num input::placeholder { color: #A6B3AF; font-weight: 500; }
.num input::-webkit-outer-spin-button, .num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num .unit { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
input[type="range"] { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 26px; margin: 0; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) 0, #12B08C var(--p), var(--track) var(--p)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: var(--track); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #12B08C); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; margin-top: -8px;
  background: #fff; border: 6px solid var(--accent); box-shadow: 0 3px 10px rgba(12, 138, 110, .35); transition: transform .12s;
}
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 6px solid var(--accent); box-shadow: 0 3px 10px rgba(12, 138, 110, .35); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(12, 138, 110, .2); }
.scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 500; margin-top: -4px; }
.hint { color: var(--muted); font-size: 13px; margin: 0; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg); border-radius: 14px; padding: 4px; gap: 4px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { text-align: center; padding: 9px 8px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--muted); user-select: none; line-height: 1.25; transition: background .15s, color .15s; }
.seg label:hover { color: var(--ink); }
.seg input:checked + label { background: #fff; color: var(--accent-2); box-shadow: 0 2px 8px rgba(15, 30, 26, .10); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type="month"], .text-input, textarea, select {
  font: inherit; font-weight: 600; font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1.5px solid transparent; border-radius: 12px; padding: 10px 12px; width: 100%;
}
textarea { font-weight: 500; resize: vertical; min-height: 140px; }
input[type="month"]:focus, .text-input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); background: #fff; }
.divider { height: 1px; background: var(--line); margin: -4px 0; }

/* ---------- Results ---------- */
.results { display: grid; gap: 20px; min-width: 0; }
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-lg); color: #fff;
  background: linear-gradient(135deg, #0E9A7A 0%, #0A6E59 55%, #08483C 100%);
  box-shadow: 0 18px 40px rgba(10, 92, 76, .28);
  padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 28px; align-items: center;
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 320px; height: 320px; right: -90px; top: -150px; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%); }
.hero::after { width: 260px; height: 260px; left: -80px; bottom: -160px; background: radial-gradient(circle, rgba(255, 200, 112, .22), transparent 65%); }
.hero > * { position: relative; }
.hero.single { grid-template-columns: minmax(0, 1fr); }
.hero-main { display: grid; gap: 6px; min-width: 0; }
.k-label { font-size: 13px; font-weight: 600; opacity: .85; display: inline-flex; align-items: center; gap: 8px; }
.k-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255, 200, 112, .25); }
.k-value { font-weight: 800; font-size: clamp(34px, 6.2vw, 56px); line-height: 1.05; letter-spacing: -.035em; overflow-wrap: anywhere; }
.k-value small { font-size: .42em; font-weight: 700; letter-spacing: 0; opacity: .85; margin-left: 4px; }
.k-sub { font-size: 14px; opacity: .88; }
.hero-mini { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-md); padding: 12px 14px; min-width: 0; }
.mini span { display: block; font-size: 12px; opacity: .8; font-weight: 500; }
.mini b { display: block; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.donut { width: 150px; height: 150px; position: relative; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 16; }
.donut .d-int { stroke: var(--gold); }
.donut .d-prin { stroke: #fff; stroke-linecap: round; transition: stroke-dasharray .35s ease; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-center b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.donut-center span { font-size: 11px; opacity: .85; font-weight: 600; margin-top: 4px; }
.donut-legend { display: flex; gap: 12px; justify-content: center; font-size: 12px; font-weight: 600; margin-top: 8px; opacity: .95; }
.donut-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { padding: 18px; display: grid; gap: 4px; min-width: 0; align-content: start; }
.stat .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 6px; }
.stat .ic svg { width: 18px; height: 18px; }
.ic.g { background: var(--accent-soft); color: var(--accent); }
.ic.o { background: rgba(242, 163, 58, .14); color: var(--interest-ink); }
.ic.b { background: rgba(15, 30, 26, .06); color: var(--ink); }
.stat .s-label { color: var(--muted); font-size: 13px; font-weight: 500; }
.stat .s-value { font-weight: 800; font-size: 19px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.stat .s-note { color: var(--muted); font-size: 12px; }

/* affordability meter */
.meter { display: grid; gap: 10px; padding: 20px 24px; }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.meter-head b { font-size: 15px; }
.meter-bar { position: relative; height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--good) 0 50%, var(--warn) 50% 75%, var(--bad) 75% 100%); opacity: .9; }
.meter-pin { position: absolute; top: 50%; width: 20px; height: 20px; margin-left: -10px; margin-top: -10px; border-radius: 50%; background: #fff; border: 4px solid var(--ink); transition: left .3s ease; }
.meter-scale { position: relative; height: 18px; font-size: 12px; color: var(--muted); }
.meter-scale span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.meter-scale span:first-child { transform: none; }
.meter-scale span:last-child { transform: translateX(-100%); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.badge.good { background: rgba(12, 138, 110, .12); color: var(--good); }
.badge.warn { background: rgba(217, 138, 11, .14); color: #9A6100; }
.badge.bad { background: rgba(210, 72, 59, .12); color: var(--bad); }

.panel { padding: 24px; display: grid; gap: 16px; min-width: 0; }
.panel h2, .panel h3 { font-size: 17px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; font-weight: 600; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-box { overflow-x: auto; }
svg.chart { display: block; width: 100%; height: auto; min-width: 320px; }
svg.chart .gl { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
svg.chart .ax { fill: var(--muted); font-family: var(--f); font-size: 11px; font-weight: 500; }
svg.chart .bp { fill: var(--principal); }
svg.chart .bi { fill: var(--interest); }
svg.chart g.bar { transition: opacity .15s; }
svg.chart:hover g.bar { opacity: .55; }
svg.chart:hover g.bar:hover { opacity: 1; }
.table-box { overflow: auto; max-height: 520px; border-radius: var(--r-md); border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 540px; }
table.data th, table.data td { padding: 12px 14px; text-align: right; white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th { position: sticky; top: 0; background: #F8FAF9; color: var(--muted); font-weight: 600; font-size: 12px; z-index: 1; border-bottom: 1px solid var(--line); }
table.data tbody td { border-top: 1px solid var(--line); font-weight: 500; }
table.data tbody tr:first-child td { border-top: 0; }
table.data tbody td:first-child { font-weight: 700; }
table.data td .dt { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 6px; }
table.data tbody tr:hover td { background: #F6FAF8; }
td.int { color: var(--interest-ink); }
td.bal { color: var(--accent-2); font-weight: 700; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  font: inherit; font-weight: 700; font-size: 14px; border-radius: 12px; padding: 11px 16px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent-2); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(12, 138, 110, .3); }
.btn.primary:hover { color: #fff; filter: brightness(1.05); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn svg { width: 16px; height: 16px; }
.toast { font-size: 13px; font-weight: 600; color: var(--accent-2); align-self: center; }

/* compare */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.loan-card { padding: 22px; display: grid; gap: 18px; min-width: 0; border-top: 5px solid var(--accent); }
.loan-card.b { border-top-color: var(--interest); }
.loan-card h2 { font-size: 18px; margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.loan-card .name { border: 0; background: transparent; font: inherit; font-weight: 800; font-size: 18px; color: var(--ink); padding: 0; width: 100%; min-width: 0; }
.loan-card .name:focus { outline: none; border-bottom: 2px solid var(--accent); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp-table th, .cmp-table td { padding: 13px 14px; text-align: right; border-top: 1px solid var(--line); }
.cmp-table th { text-align: left; font-weight: 500; color: var(--muted); }
.cmp-table thead th { border-top: 0; font-weight: 700; color: var(--ink); text-align: right; }
.cmp-table thead th:first-child { text-align: left; }
.cmp-table td { font-weight: 700; }
.cmp-table td.win { color: var(--good); }
.cmp-table td.win::after { content: " ✓"; }

/* ---------- Content (guides, FAQ, articles) ---------- */
.guide { display: grid; gap: 20px; margin-top: 12px; }
.guide > h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-item { padding: 22px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.guide-item h3 { font-size: 16px; font-weight: 700; margin: 0; }
.guide-item p { margin: 0; color: var(--muted); font-size: 14.5px; }
.formula { font-size: 14px; font-weight: 600; color: var(--accent-2); background: rgba(12, 138, 110, .08); border-radius: 10px; padding: 10px 12px; overflow-x: auto; white-space: nowrap; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 500; color: var(--accent); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.faq details p { margin: 0 0 16px; color: var(--muted); max-width: 75ch; }

.prose { padding: clamp(22px, 4vw, 44px); max-width: 820px; min-width: 0; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-top: 1.6em; line-height: 1.2; }
.prose h3 { font-size: 18px; font-weight: 700; margin-top: 1.4em; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.7; color: #24332F; max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose .note { background: var(--accent-soft); border-radius: var(--r-md); padding: 16px 18px; font-size: 15px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose .tbl { overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: #F8FAF9; font-size: 13px; color: var(--muted); }
.meta { color: var(--muted); font-size: 14px; }
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.side { padding: 22px; display: grid; gap: 12px; position: sticky; top: 16px; }
.side h2 { font-size: 15px; margin: 0; }
.side a { font-weight: 600; text-decoration: none; }
.side a:hover { text-decoration: underline; }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.post { padding: 24px; display: grid; gap: 10px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.post:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(15, 30, 26, .10); }
.post h2 { font-size: 18px; margin: 0; letter-spacing: -.01em; }
.post p { margin: 0; color: var(--muted); }
.post .more-link { color: var(--accent-2); font-weight: 700; font-size: 14px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent-2); background: var(--accent-soft); padding: 4px 10px; border-radius: 99px; justify-self: start; }
dl.glossary { display: grid; gap: 0; margin: 0; }
dl.glossary dt { font-weight: 800; font-size: 17px; margin-top: 1.4em; scroll-margin-top: 20px; }
dl.glossary dd { margin: .3em 0 0; color: #24332F; font-size: 16px; line-height: 1.65; max-width: 68ch; }
.az { display: flex; flex-wrap: wrap; gap: 6px; }
.az a { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; background: var(--bg); text-decoration: none; font-weight: 700; }
.az a:hover { background: var(--accent-soft); }

/* ---------- Related tools ---------- */
.related { display: grid; gap: 16px; }
.related > h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.02em; margin: 0; }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tool { padding: 20px; display: grid; gap: 6px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.tool:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(15, 30, 26, .10); }
.tool .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.tool .ic svg { width: 20px; height: 20px; }
.tool b { font-size: 16px; }
.tool span { color: var(--muted); font-size: 14px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.contact form { padding: 28px; display: grid; gap: 18px; }
.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact label { font-weight: 600; font-size: 14px; display: grid; gap: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 14px; }
.form-msg.ok { background: rgba(12, 138, 110, .12); color: var(--accent-2); }
.form-msg.err { background: rgba(210, 72, 59, .10); color: var(--bad); }
.contact aside { padding: 26px; display: grid; gap: 14px; }
.contact aside h2 { font-size: 17px; margin: 0; }
.contact aside p { margin: 0; color: var(--muted); }
.email-box { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--bg); border-radius: 12px; padding: 10px 12px; font-weight: 700; user-select: all; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: #0B1714; color: #C9D6D2; margin-top: 24px; }
.site-footer .container { padding-block: 44px 28px; display: grid; gap: 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.site-footer .brand { color: #fff; }
.site-footer .brand .tld { color: #6FD3B5; }
.site-footer p { margin: 10px 0 0; font-size: 14px; color: #93A49E; max-width: 40ch; }
.site-footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #C9D6D2; text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #7F918B; }
.disclaimer { color: var(--muted); font-size: 13px; max-width: 80ch; margin: 0; }

/* ---------- Mobile bottom bar ---------- */
.mbar { display: none; }

@media (max-width: 920px) {
  .layout, .article-wrap, .contact { grid-template-columns: minmax(0, 1fr); }
  form.inputs, .side { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .has-mbar { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .mbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-top: 1px solid var(--line);
    padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .mbar .m-label { font-size: 12px; color: var(--muted); font-weight: 600; display: block; }
  .mbar .m-value { font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
  .mbar button { font: inherit; font-weight: 700; font-size: 14px; border: 0; cursor: pointer; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-radius: 14px; padding: 12px 18px; white-space: nowrap; }
}
@media (max-width: 820px) {
  .guide-grid, .compare { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .donut-wrap { justify-self: center; }
  .stats, .stats.two { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; }
  .stat .s-value { font-size: 16px; }
  .contact .row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  main.container { gap: 22px; }
  form.inputs, .panel, .loan-card, .contact form, .contact aside { padding: 18px; }
  .hero-mini { grid-template-columns: 1fr 1fr; }
  .hero-mini .mini:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: 1fr; }
  .site-header .brand { font-size: 18px; }
  .site-header .logo { width: 44px; height: 44px; border-radius: 12px; }
}
@media (max-width: 359px) {
  .site-header .brand { font-size: 16px; gap: 8px; }
  .site-header .logo { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Print ---------- */
@media print {
  body { background: #fff; font-size: 12px; }
  .site-header, .site-footer, .mbar, .related, .guide, .actions, .crumbs, form.inputs input[type="range"], .scale, .hint, .no-print { display: none !important; }
  .layout { grid-template-columns: 1fr; }
  form.inputs { position: static; box-shadow: none; border: 1px solid #ccc; padding: 12px; gap: 8px; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  .hero { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .table-box { max-height: none; overflow: visible; }
  table.data thead th { position: static; }
  .has-mbar { padding-bottom: 0; }
}
