/* ==========================================================================
   Keep It Rent It.com — styles.css
   Calm, plain-spoken money-decision tool. Portfolio house style.
   (Source authoritative copy; above-the-fold rules are mirrored inline in
   index.html <head> per docs/build.md critical-CSS recipe.)
   ========================================================================== */

:root {
  --paper:      #f6f8f7;
  --paper-2:    #eef2ef;
  --paper-3:    #e7ece9;
  --card:       #ffffff;
  --ink:        #16201c;
  --ink-2:      #46514b;
  --ink-3:      #6b766f;
  --line:       #dde4e0;
  --line-2:     #c9d2cd;

  --accent:     #1c6b51;   /* brand / links / qualify */
  --accent-deep:#134630;
  --accent-soft:#e3efe9;
  --accent-tint:#7fc1aa;

  --over:       #b1432c;   /* over the ceiling / does not qualify */
  --over-deep:  #8a3320;
  --over-soft:  #f4e3dd;

  --ceiling:    #b9852c;   /* the DTI ceiling band */
  --ceiling-soft:#f3e9d6;

  --shadow-sm: 0 1px 2px rgba(22,32,28,.05), 0 1px 1px rgba(22,32,28,.04);
  --shadow-md: 0 4px 18px rgba(22,32,28,.07), 0 1px 3px rgba(22,32,28,.05);
  --shadow-lg: 0 18px 50px rgba(22,32,28,.13), 0 4px 12px rgba(22,32,28,.07);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1180px;
  --col:  720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.012em; margin: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-deep); }
strong { font-weight: 650; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ------------------------------------------------------------------ header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  position: sticky; top: 0; z-index: 40;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand__mark { width: 30px; height: 30px; border-radius: 8px; display: block; flex: none; box-shadow: var(--shadow-sm); }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; }
.brand__tld { color: var(--accent); font-weight: 600; }
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--accent); }
@media (max-width: 620px) { .site-nav { display: none; } }

/* -------------------------------------------------------------------- shell */
.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1080px) {
  .shell { grid-template-columns: minmax(0,1fr) 300px; gap: 48px; align-items: start; }
}

/* --------------------------------------------------------------------- hero */
.hero { padding: 52px 0 8px; max-width: var(--col); }
.hero__eyebrow {
  font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .085em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 18px;
}
.hero h1 { font-size: clamp(31px, 4.4vw, 47px); margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__sub { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 38em; margin: 0 0 22px; line-height: 1.52; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; font-size: 13.5px; color: var(--ink-3); }
.hero__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }
.hero__meta b { color: var(--ink-2); font-weight: 600; }

/* ----------------------------------------------------------------- ad slots */
/* Unfilled slots reserve their min-height (CLS) but render NOTHING visible —
   no placeholder box, no label, no dimension text — until AdSense actually
   fills them. The "Advertisement" label appears only on a real fill, gated by
   the data-ad-status="filled" attribute Google sets on the <ins>. See
   docs/ad_slots.md → "Unfilled slot behavior". */
.ad-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0 auto;
  border-radius: 8px;
  color: var(--ink-3);
}
.ad-slot-label {
  display: none; /* shown only on a real fill */
  font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); opacity: .72;
}
.ad-slot:has(ins[data-ad-status="filled"]) .ad-slot-label { display: block; }
.ad-slot-dim { display: none; } /* dev-only dimension hint — never on the live page */
.ad-slot ins { display: block; }
.ad-slot ins[data-ad-status="unfilled"] { display: none; }

.ad-slot--top { min-height: 90px; width: 100%; max-width: 728px; margin: 22px auto 4px; }
.ad-slot--pre-result { min-height: 250px; width: 300px; max-width: 300px; }
.ad-slot--mid { min-height: 90px; width: 100%; max-width: 728px; margin: 6px auto; }
.ad-slot--sidebar { min-height: 600px; width: 300px; }
@media (max-width: 760px) {
  .ad-slot--top { min-height: 100px; max-width: 320px; }
  .ad-slot--mid { min-height: 250px; max-width: 300px; }
}

/* sticky right rail */
.rail { display: none; }
@media (min-width: 1080px) {
  .rail { display: block; padding-top: 52px; }
  .rail__inner { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 10px; }
}

/* mobile sticky anchor */
.ad-anchor {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none; align-items: center; justify-content: center;
  background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -3px 14px rgba(22,32,28,.08);
  padding: 6px 0; min-height: 62px;
}
.ad-anchor .ad-slot { border: none; width: 320px; min-height: 50px; }
/* Don't show a persistent empty anchor bar before a real fill (reads as broken). */
.ad-anchor:not(:has(ins[data-ad-status="filled"])) { display: none; }
.ad-anchor__close {
  position: absolute; top: 4px; right: 8px; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2);
  font-size: 14px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.ad-anchor__close:hover { background: var(--paper-2); }
@media (max-width: 1079px) { .ad-anchor.is-on { display: flex; } body.has-anchor { padding-bottom: 70px; } }

/* --------------------------------------------------------------- calculator */
.calc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 26px 26px 30px;
  margin: 18px 0 0;
  max-width: var(--col);
  scroll-margin-top: 84px;
}
.calc__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.calc__head h2 { font-size: 21px; }
.calc__head .tag { font-size: 12px; color: var(--ink-3); font-weight: 600; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.field .hint { font-size: 12.5px; color: var(--ink-3); font-weight: 400; line-height: 1.4; }
.field .help {
  width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2);
  color: var(--ink-3); font-size: 11px; font-weight: 700; line-height: 1; cursor: help; flex: none;
  display: inline-flex; align-items: center; justify-content: center; background: var(--paper);
}
.input-money { position: relative; display: flex; align-items: center; }
.input-money .cur { position: absolute; left: 14px; color: var(--ink-3); font-weight: 600; font-size: 16px; pointer-events: none; }
.input-money input {
  width: 100%; font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--ink);
  padding: 12px 14px 12px 30px; border: 1.5px solid var(--line-2); border-radius: 10px;
  background: var(--paper); transition: border-color .15s, box-shadow .15s, background .15s;
  font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.input-money input::-webkit-outer-spin-button,
.input-money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-money input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }

.field input[type="range"] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: var(--line-2); margin: 8px 0 0; cursor: pointer; }
.field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.field input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 2px solid #fff; border-radius: 50%; background: var(--accent); }

/* ceiling segmented control */
.ceiling-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.ceiling-row .lab { font-size: 14px; font-weight: 600; }
.ceiling-row .sub { font-size: 12.5px; color: var(--ink-3); }
.seg { display: inline-flex; background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button {
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  border: none; background: transparent; padding: 7px 14px; border-radius: 7px; cursor: pointer;
  font-variant-numeric: tabular-nums; transition: all .14s;
}
.seg button.is-on { background: var(--card); color: var(--accent); box-shadow: var(--shadow-sm); }

/* small reassurance note under the calculator card */
.calc-note { font-size: 12.5px; color: var(--ink-3); max-width: var(--col); margin: 12px 0 0; line-height: 1.45; }

/* ------------------------------------------------------------ pre-result ad */
.pre-result-wrap { display: flex; flex-direction: column; align-items: center; margin: 26px 0; }

/* ------------------------------------------------------------------ results */
.result { max-width: var(--col); margin-top: 4px; scroll-margin-top: 84px; }

.verdict {
  border-radius: 18px; padding: 26px 28px; border: 1.5px solid; position: relative; overflow: hidden;
  transition: background .3s, border-color .3s;
}
.verdict--pass { background: linear-gradient(180deg, #effaf4, var(--accent-soft)); border-color: #bfe0d1; }
.verdict--fail { background: linear-gradient(180deg, #fdf1ec, var(--over-soft)); border-color: #eccabe; }
.verdict__flag { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.verdict--pass .verdict__flag { color: var(--accent-deep); }
.verdict--fail .verdict__flag { color: var(--over-deep); }
.verdict__flag .ic { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 800; }
.verdict--pass .verdict__flag .ic { background: var(--accent); }
.verdict--fail .verdict__flag .ic { background: var(--over); }
.verdict h2 { font-size: clamp(24px, 3.3vw, 33px); margin: 12px 0 10px; }
.verdict--pass h2 { color: var(--accent-deep); }
.verdict--fail h2 { color: var(--over-deep); }
.verdict__say { font-size: 16.5px; color: var(--ink); margin: 0; line-height: 1.5; }
.verdict__say b { font-weight: 700; }
.verdict__say .hl-under { color: var(--accent-deep); font-weight: 700; }
.verdict__say .hl-over { color: var(--over-deep); font-weight: 700; }

/* the swing — two bars + ceiling band */
.swing { margin: 22px 0 6px; }
.swing__scale { position: relative; height: 16px; margin: 0 0 2px; }
.swing__ticks { position: relative; height: 14px; font-size: 11px; color: var(--ink-3); }
.swing__tick { position: absolute; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.bar-row { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; margin: 14px 0; }
.bar-row__label { font-size: 13px; line-height: 1.25; }
.bar-row__label b { display: block; font-weight: 600; font-size: 13.5px; }
.bar-row__label span { color: var(--ink-3); font-size: 12px; }
.track {
  position: relative; height: 38px; border-radius: 9px; background: var(--paper-2);
  border: 1px solid var(--line); overflow: hidden;
}
.track__ceiling-band {
  position: absolute; top: 0; bottom: 0; background: var(--ceiling-soft);
  border-left: 1px dashed var(--ceiling); border-right: 1px dashed var(--ceiling);
}
.track__line { position: absolute; top: -3px; bottom: -3px; width: 2.5px; background: var(--ceiling); z-index: 3; }
.track__line::after {
  content: attr(data-label); position: absolute; top: -19px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 700; color: var(--ceiling); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.track__fill {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px 0 0 8px; z-index: 2;
  display: flex; align-items: center; justify-content: flex-end; padding-right: 9px;
  color: #fff; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums;
  transition: width .45s cubic-bezier(.4,0,.1,1), background .3s; min-width: 34px;
}
.track__fill--under { background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }
.track__fill--over { background: linear-gradient(90deg, var(--over-deep), var(--over)); }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 20px; }
.stat { background: var(--card); padding: 14px 16px; }
.stat__k { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; line-height: 1.25; }
.stat__v { font-size: 22px; font-weight: 700; font-family: var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat__s { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.stat__v.pos { color: var(--accent-deep); }
.stat__v.neg { color: var(--over-deep); }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* what-rent callout */
.solve {
  margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  background: var(--paper); display: flex; gap: 16px; align-items: flex-start;
}
.solve__icon { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-deep); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; flex: none; font-size: 17px; }
.solve__body h3 { font-family: var(--sans); font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.solve__body p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.solve__body b { color: var(--ink); font-weight: 700; }
.solve__big { color: var(--accent-deep); font-family: var(--serif); font-weight: 700; }

.disclaimer-inline { font-size: 12.5px; color: var(--ink-3); margin-top: 16px; line-height: 1.5; max-width: var(--col); }
.disclaimer-inline a { color: var(--ink-2); }

/* --------------------------------------------------------------- explainer */
.prose { max-width: var(--col); padding-top: 10px; }
.section { margin-top: 52px; scroll-margin-top: 84px; }
.section__eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .085em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section h2 { font-size: clamp(24px, 3vw, 31px); margin-bottom: 16px; }
.section h3 { font-size: 20px; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p { font-size: 17px; }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1em; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 9px; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent-tint); }

.steps { display: grid; gap: 14px; margin: 22px 0; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.step__n { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; font-family: var(--serif); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.step h3 { font-family: var(--sans); font-size: 16px; font-weight: 700; margin: 4px 0 4px; }
.step p { font-size: 15px; margin: 0; }

.callout { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 22px 0; }
.callout p { margin: 0; font-size: 15px; color: var(--ink); }
.callout--warn { border-left-color: var(--ceiling); background: var(--ceiling-soft); }
.callout strong { color: var(--ink); }

.deftable { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.deftable th, .deftable td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.deftable th { font-family: var(--sans); font-weight: 700; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; background: var(--paper-2); }
.deftable td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.deftable td { color: var(--ink-2); }

/* ---------------------------------------------------------------------- FAQ */
.faq { max-width: var(--col); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.faq__q::after { content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--sans); font-size: 24px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq__item.is-open .faq__q::after { content: "\2013"; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a-inner { padding: 0 0 22px; font-size: 16px; color: var(--ink-2); }
.faq__a-inner p { margin: 0 0 .7em; }
.faq__a-inner p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------- footer */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--paper-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding: 46px 0 30px; }
.foot-brand__mark { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.foot-brand__badge { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 16px; }
.foot-brand__name { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.foot-brand__name .brand__tld { color: var(--accent); }
.foot-brand p { font-size: 14px; color: var(--ink-2); max-width: 30ch; }
.foot-col h4 { font-family: var(--sans); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 14px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.foot-col a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.foot-col a:hover { color: var(--accent); }
.foot-col a.ext::after { content: "\2197"; font-size: 11px; margin-left: 3px; color: var(--ink-3); }
.footer-divider { border: none; border-top: 1px solid var(--line); margin: 0; }
.footer-legal { padding: 26px 0; font-size: 13px; color: var(--ink-3); line-height: 1.6; max-width: 92ch; }
.footer-legal strong { color: var(--ink-2); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 0 40px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.footer-bottom button { background: none; border: none; color: var(--accent); font-family: var(--sans); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; }
.footer-bottom button:hover { color: var(--accent-deep); text-decoration: underline; }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ------------------------------------------------ CookieConsent v3 (vendored) */
/* Theme the vendored library to the brand. styles.css loads after
   cookieconsent.css, so these custom-property overrides win. See docs/consent.md. */
#cc-main {
  --cc-font-family: var(--sans);
  --cc-btn-primary-bg: var(--accent);
  --cc-btn-primary-border-color: var(--accent);
  --cc-btn-primary-hover-bg: var(--accent-deep);
  --cc-btn-primary-hover-border-color: var(--accent-deep);
  --cc-toggle-on-bg: var(--accent);
  --cc-modal-border-radius: 16px;
  --cc-btn-border-radius: 9px;
}

/* Shared button — used by the privacy modal footer (Close). */
.cc__btn { font-family: var(--sans); font-size: 14px; font-weight: 600; padding: 10px 12px; border-radius: 9px; cursor: pointer; border: 1.5px solid var(--line-2); background: var(--paper); color: var(--ink); transition: all .14s; }
.cc__btn:hover { border-color: var(--ink-3); }
.cc__btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.cc__btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

/* Inline "Manage cookie preferences" trigger inside the privacy modal. */
.prefs-trigger { background: none; border: none; padding: 0; color: var(--accent); font-family: var(--sans); font-size: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.prefs-trigger:hover { color: var(--accent-deep); }

/* ------------------------------------------------------------ modal (privacy/prefs) */
.modal-scrim { position: fixed; inset: 0; background: rgba(20,28,24,.5); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .25s; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-scrim.is-on { opacity: 1; pointer-events: auto; }
.modal { background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg); width: 640px; max-width: 100%; max-height: 86vh; display: flex; flex-direction: column; transform: translateY(12px) scale(.99); transition: transform .25s; }
.modal-scrim.is-on .modal { transform: none; }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 19px; }
.modal__close { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal__close:hover { background: var(--paper-2); }
.modal__body { padding: 22px 24px; overflow-y: auto; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.modal__body h3 { font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--ink); margin: 20px 0 7px; }
.modal__body h3:first-child { margin-top: 0; }
.modal__body p { margin: 0 0 .8em; }
.modal__body ul { padding-left: 20px; margin: 0 0 .8em; }
.modal__body li { margin-bottom: 5px; }
.modal__body .short { background: var(--accent-soft); border-radius: 10px; padding: 14px 16px; color: var(--ink); }
.modal__body strong { color: var(--ink); }
.modal__foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.modal__foot .cc__btn { flex: none; padding: 9px 20px; }

/* utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
@media (max-width: 760px) { .field-grid { grid-template-columns: 1fr; } .calc { padding: 22px 18px 26px; } .stat__v { font-size: 20px; } }
