/* Public pages of DealCoach. Same "deal sheet" as the app: ink green and warm
   paper, a brick accent for actions, brass for figures, sage for what is good.
   Archivo (narrow, heavy) for headings, Instrument Sans for text, JetBrains
   Mono for labels and numbers. Follows the device's light or dark setting. */
:root {
  --ink: #15201d;
  --ink-2: #22302b;
  --paper: #f5f0e7;
  --paper-2: #ece5d7;
  --card: #fffdf8;
  --line: #ddd3c2;
  --line-2: #cbbfa9;
  --text: #1b2421;
  --muted: #5b655f;
  --head: #15201d;
  --brick: #b8492a;
  --brick-2: #9c3a1f;
  --brick-ink: #b8492a;
  --brick-soft: #f4dfd4;
  --brass: #8a6418;
  --brass-hi: #d9ad55;
  --sage: #2f7559;
  --sage-soft: #dcebe2;
  --hl: rgba(184, 73, 42, 0.16);
  --shadow: 0 1px 0 rgba(21, 32, 29, 0.04), 0 18px 40px -24px rgba(21, 32, 29, 0.35);
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 14px;
  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101916;
    --paper-2: #16211d;
    --card: #19251f;
    --line: #2b3a34;
    --line-2: #3a4c45;
    --text: #e9e3d6;
    --muted: #a4aea8;
    --head: #f3ede1;
    --brick-ink: #ec8463;
    --brick-soft: #3b2219;
    --brass: #d9ad55;
    --sage: #6cc39e;
    --sage-soft: #183229;
    --hl: rgba(236, 132, 99, 0.2);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.25), 0 18px 40px -24px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 750; font-stretch: 82%; color: var(--head); margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.04; }
h3 { font-size: 1.32rem; line-height: 1.18; font-weight: 700; font-stretch: 90%; letter-spacing: -0.005em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 0; background: var(--card); color: var(--head); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; border-radius: 4px; }
.print-only { display: none; }

.label { font: 500 0.72rem/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); }
.eyebrow b { display: grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 500; font-size: 0.68rem; }
.band .eyebrow { background: var(--paper); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px; font: 600 0.97rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.15s; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 0.875rem; border-radius: 10px; }
.btn.ink { background: var(--ink); color: #fff; }
.btn.ink:hover { background: var(--ink-2); }
.btn.seal { background: var(--brick); color: #fff; box-shadow: 0 8px 20px -10px rgba(184, 73, 42, 0.8); }
.btn.seal:hover { background: var(--brick-2); }
.btn.line { background: var(--card); border-color: var(--line-2); color: var(--head); }
.btn.line:hover { border-color: var(--head); }
.btn.ghost { border-color: rgba(245, 240, 231, 0.3); color: var(--paper); background: transparent; }
.btn.ghost:hover { border-color: #fff; color: #fff; }

/* Header */
.top { background: var(--ink); color: #f5f0e7; position: sticky; top: 0; z-index: 30; box-shadow: inset 0 -3px 0 var(--brick); }
.top .wrap { display: flex; align-items: center; gap: 26px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.35rem/1 var(--display); font-stretch: 80%; color: #f5f0e7; letter-spacing: -0.01em; }
.brand svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 2px; margin-left: 6px; flex: 1; }
.nav a { padding: 8px 11px; font-size: 0.9rem; font-weight: 500; text-decoration: none; color: rgba(245, 240, 231, 0.74); border-radius: 8px; }
.nav a:hover { color: #fff; background: rgba(245, 240, 231, 0.07); }
.nav a[aria-current] { color: #fff; background: rgba(245, 240, 231, 0.1); }
.right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-decoration: none; padding: 10px 10px; border: 1px solid rgba(245, 240, 231, 0.28); border-radius: 9px; color: #f5f0e7; }
.lang:hover { border-color: #f5f0e7; }
.menu-btn { display: none; background: none; border: 1px solid rgba(245, 240, 231, 0.28); border-radius: 9px; color: #f5f0e7; width: 42px; height: 38px; align-items: center; justify-content: center; cursor: pointer; }

/* Sections */
section { padding: clamp(52px, 7vw, 92px) 0; }
section.tight { padding: clamp(40px, 5vw, 64px) 0; }
section.first { padding-top: clamp(28px, 4vw, 44px); }
section.band { background: var(--paper-2); border-block: 1px solid var(--line); }
.intro { max-width: 62ch; margin-top: 14px; color: var(--muted); font-size: 1.06rem; }
.after { margin-top: 28px; }
.note { margin-top: 16px; color: var(--muted); font-size: 0.9rem; }

/* Hero: a ruled sheet with a highlighter on the key words */
.hero { padding: clamp(36px, 5vw, 60px) 0 0; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 420px; background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 32px; opacity: 0.35; mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); pointer-events: none; }
.hero > .wrap { position: relative; }
.hero.big { padding-top: clamp(48px, 7vw, 92px); }
.hero h1 { margin-top: 14px; }
.hero .kicker { display: block; margin-bottom: 16px; color: var(--brick-ink); }
.hero .display { display: block; font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 0.98; max-width: 24ch; font-weight: 800; font-stretch: 75%; }
.hero.big .display { font-size: clamp(2.8rem, 7vw, 5.4rem); max-width: 14ch; }
.hero .display em, h2 em { font-style: normal; color: var(--brick-ink); background: linear-gradient(transparent 62%, var(--hl) 62%, var(--hl) 92%, transparent 92%); }
.lead { margin-top: 22px; max-width: 60ch; font-size: clamp(1.06rem, 1.4vw, 1.2rem); color: var(--text); opacity: 0.86; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--head); }
.crumbs b { color: var(--head); font-weight: 500; }
.crumbs span { color: var(--line-2); }
.byline { margin-top: 22px; }

/* Figures strip: four numbers as a term sheet row */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(36px, 5vw, 56px) 0 0; background: var(--ink); color: #f5f0e7; border-radius: var(--r) var(--r) 0 0; overflow: hidden; }
.figures > div { padding: 18px 22px 20px; border-left: 1px solid rgba(245, 240, 231, 0.12); }
.figures > div:first-child { border-left: 0; }
.figures dt { color: rgba(245, 240, 231, 0.62); }
.figures dd { margin: 10px 0 0; }
.figures strong { display: block; font: 800 2.5rem/1 var(--display); font-stretch: 75%; color: var(--brass-hi); }
.figures > div:nth-child(2) strong { color: #ec8463; }
.figures > div:nth-child(3) strong { color: #6cc39e; }
.figures > div:nth-child(4) strong { color: #f5f0e7; }
.figures small { display: block; margin-top: 8px; font: 400 0.78rem/1.35 var(--mono); color: rgba(245, 240, 231, 0.6); }

/* A real screen of the app */
.shot { margin: 0; border: 1px solid var(--line); background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.figures + .shot { border-radius: 0 0 var(--r) var(--r); border-top: 0; }
.shot figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.shot figcaption .label:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: var(--brick); margin-right: 10px; vertical-align: 1px; box-shadow: 14px 0 0 var(--brass-hi), 28px 0 0 var(--sage); margin-right: 42px; }
.shot figcaption .host { color: var(--muted); opacity: 0.8; }
.hero .shot { margin-top: clamp(32px, 4vw, 48px); }
.hero .figures + .shot { margin-top: 0; }
.cover { margin: clamp(28px, 4vw, 44px) 0 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }

/* Grids and cards */
.grid { display: grid; gap: 16px; margin-top: 34px; }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
.first .grid, .first .ledger { margin-top: 0; }
.card { display: flex; flex-direction: column; padding: 22px 22px 20px; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 1px 0 rgba(21, 32, 29, 0.03); transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
a.card:hover { border-color: var(--brick); transform: translateY(-2px); box-shadow: var(--shadow); }
.card .num { align-self: flex-start; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.08em; color: var(--brick-ink); text-transform: uppercase; padding: 6px 8px; border-radius: 6px; background: var(--brick-soft); }
.card h3 { margin-top: 16px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
.card .more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; font-size: 0.875rem; font-weight: 600; color: var(--head); }
.card .more svg { width: 14px; height: 14px; transition: transform 0.15s; }
a.card:hover .more { color: var(--brick-ink); }
a.card:hover .more svg { transform: translateX(3px); }
.grid.plain { gap: 18px; }
.grid.plain > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: relative; overflow: hidden; }
.grid.plain > div::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brick); }
.grid.plain > div:nth-child(2)::before { background: var(--brass-hi); }
.grid.plain > div:nth-child(3)::before { background: var(--sage); }
.grid.plain p { margin-top: 8px; color: var(--muted); }

/* Offers */
.offer .price { margin-top: 16px; font: 500 0.78rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--head); padding: 8px 10px; border: 1px dashed var(--line-2); align-self: flex-start; border-radius: 8px; }
.offer ul { list-style: none; margin: 18px 0 24px; padding: 0; font-size: 0.94rem; }
.offer li { padding: 9px 0 9px 22px; border-top: 1px solid var(--line); position: relative; }
.offer li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 9px; height: 5px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }
.offer .btn { margin-top: auto; }
.offer.best { border-color: var(--ink); box-shadow: inset 0 4px 0 var(--brick), var(--shadow); }

/* Ledger: an index as rows of a spreadsheet */
.ledger { list-style: none; margin: 34px 0 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; counter-reset: row; }
.ledger li + li { border-top: 1px solid var(--line); }
.ledger a { display: grid; grid-template-columns: 64px 1fr 20px; align-items: center; gap: 20px; padding: 18px 20px 18px 0; text-decoration: none; transition: background 0.15s; }
.ledger a:hover { background: var(--brick-soft); }
.ledger .num { align-self: stretch; display: grid; place-items: center; font: 500 0.75rem/1 var(--mono); color: var(--muted); border-right: 1px solid var(--line); margin: -18px 0; background: var(--paper-2); }
.ledger a:hover .num { color: var(--brick-ink); }
.ledger .what { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 6px 28px; align-items: baseline; }
.ledger .what b { font: 700 1.2rem/1.2 var(--display); font-stretch: 85%; color: var(--head); }
.ledger .what span { color: var(--muted); font-size: 0.95rem; }
.ledger svg { width: 16px; height: 16px; color: var(--head); transition: transform 0.15s; }
.ledger a:hover svg { transform: translateX(3px); color: var(--brick-ink); }
.first .ledger .num { font-size: 0.7rem; }

/* Split rows on the home page */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split .eyebrow { padding-left: 12px; }
.ticks { list-style: none; margin: 22px 0 26px; padding: 0; }
.ticks li { padding: 10px 0 10px 32px; position: relative; font-size: 0.97rem; border-bottom: 1px dashed var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 12px; width: 20px; height: 20px; border-radius: 6px; background: var(--sage-soft); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 18px; width: 8px; height: 4px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }

/* The four steps of a question */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px; }
.steps li + li::before { content: ""; position: absolute; left: -12px; top: 32px; width: 10px; height: 10px; border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: rotate(45deg); }
.steps .dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--paper-2); font: 600 0.85rem/1 var(--mono); color: var(--head); }
.steps li:first-child .dot { background: var(--ink); color: #fff; }
.steps li:nth-child(3) .dot { background: var(--brick); color: #fff; }
.steps li:last-child .dot { background: var(--sage); color: #fff; }
.steps h3 { margin-top: 16px; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }

/* Reading pages */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.prose { max-width: 70ch; font-size: 1.05rem; }
.prose h2 { font-size: clamp(1.5rem, 2.5vw, 1.95rem); margin: 44px 0 12px; }
.prose h2::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--brick); margin-bottom: 14px; }
.prose > h2:first-child { margin-top: 0; }
.prose p { margin-top: 14px; }
.prose ul, .prose ol { margin: 16px 0 0; padding-left: 22px; }
.prose li { margin-top: 9px; }
.prose li::marker { color: var(--brick-ink); font-family: var(--mono); font-size: 0.85em; }
.prose a { color: var(--head); text-decoration-color: var(--brick); text-underline-offset: 3px; }
.prose b { color: var(--head); font-weight: 650; }
.tbl { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
th { text-align: left; font: 500 0.7rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #f5f0e7; padding: 12px 14px; background: var(--ink); }
td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
td:first-child { font-weight: 600; color: var(--head); }
tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--paper-2) 50%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { text-decoration: none; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--card); font-size: 0.88rem; }
.chips a:hover { border-color: var(--brick); color: var(--brick-ink); }
.sources { font-size: 0.95rem; }
.sources span { color: var(--muted); }
.aside { position: sticky; top: 90px; background: var(--ink); color: #f5f0e7; padding: 26px 24px; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.aside::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; border: 18px solid rgba(184, 73, 42, 0.35); }
.aside .label { color: var(--brass-hi); }
.aside h3 { color: #fff; margin-top: 10px; font-size: 1.55rem; }
.aside p { margin-top: 10px; font-size: 0.95rem; color: rgba(245, 240, 231, 0.8); }
.aside .btn { margin-top: 20px; width: 100%; position: relative; z-index: 1; }
.aside .also { margin-top: 14px; }
.aside .also a { color: #f5f0e7; font-size: 0.9rem; }

/* FAQ */
.faq { margin-top: 30px; max-width: 880px; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font: 700 1.1rem/1.3 var(--display); font-stretch: 90%; color: var(--head); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 15px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--paper-2); font: 500 1.1rem/1 var(--mono); color: var(--brick-ink); }
.faq details[open] summary::after { content: "–"; background: var(--brick); color: #fff; }
.faq p { padding: 0 20px 20px; max-width: 70ch; color: var(--muted); }

/* Closing call */
.final { background: var(--ink); color: #f5f0e7; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(245, 240, 231, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 240, 231, 0.05) 1px, transparent 1px); background-size: 44px 44px; pointer-events: none; }
.final .wrap { position: relative; }
.final .label { color: var(--brass-hi); }
.final h2 { color: #fff; margin-top: 12px; font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 18ch; font-weight: 800; font-stretch: 75%; }
.final h2 em { color: #ec8463; background: linear-gradient(transparent 62%, rgba(236, 132, 99, 0.22) 62%, rgba(236, 132, 99, 0.22) 92%, transparent 92%); }
.final p { margin-top: 16px; max-width: 58ch; color: rgba(245, 240, 231, 0.8); }

/* Footer */
footer { background: #0c1412; color: rgba(245, 240, 231, 0.72); padding: 56px 0 28px; font-size: 0.9rem; }
.fcols { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 32px; }
footer .about { margin: 16px 0 18px; max-width: 34ch; }
footer h4 { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-hi); margin-bottom: 14px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-top: 9px; }
footer a { text-decoration: none; }
footer li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(245, 240, 231, 0.14); font-size: 0.82rem; }

/* Consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 580px; margin: 0 auto; background: var(--card); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px 18px; display: flex; gap: 16px; align-items: center; z-index: 40; font-size: 0.9rem; box-shadow: 0 18px 40px -20px rgba(21, 32, 29, 0.55); }
.consent[hidden] { display: none; }
.consent div { display: flex; gap: 8px; flex: none; }
.consent .btn.ghost { color: var(--head); border-color: var(--line-2); }

/* Free tools: inputs on paper, results on the ink sheet */
.tool-sec { padding-bottom: clamp(40px, 5vw, 64px); }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); overflow: hidden; box-shadow: var(--shadow); }
.tool.checklist { display: block; }
.tool-in { padding: 26px; display: grid; gap: 16px; align-content: start; }
.tool.calc .tool-in { grid-template-columns: 1fr 1fr; }
.tool.form .tool-in { grid-template-columns: 1fr 1fr; }
.tool-in label { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--head); align-content: start; }
.tool-in label.wide { grid-column: 1 / -1; }
.tool-in em { font: 400 0.76rem var(--mono); color: var(--muted); font-style: normal; }
.tool-in small { font-weight: 400; color: var(--muted); font-size: 0.78rem; line-height: 1.4; }
.tool input[type="number"], .tool input[type="text"], .tool input[type="date"], .tool input[type="time"], .tool select, .tool textarea { width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); font: 500 1rem var(--mono); color: var(--head); }
.tool input:focus, .tool select:focus, .tool textarea:focus { outline: none; border-color: var(--brick); box-shadow: 0 0 0 3px var(--hl); }
.tool textarea { font-family: var(--sans); resize: vertical; }
.tool-out { padding: 26px; background: var(--ink); color: #f5f0e7; display: grid; gap: 2px; align-content: start; }
.tool-out .res { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px dashed rgba(245, 240, 231, 0.16); }
.tool-out .label { color: rgba(245, 240, 231, 0.66); }
.tool-out strong { font: 500 1.1rem var(--mono); color: #fff; text-align: right; }
.tool-out .res.main { flex-direction: column; align-items: flex-start; gap: 10px; padding: 4px 0 20px; border-bottom: 1px solid rgba(245, 240, 231, 0.22); }
.tool-out .res.main strong { font: 800 clamp(2.6rem, 6vw, 3.8rem)/0.95 var(--display); font-stretch: 75%; color: var(--brass-hi); }
.tool-out em { font: 400 0.8rem var(--mono); font-style: normal; color: #ec8463; }
.tool-note { margin-top: 14px; font-size: 0.82rem; color: rgba(245, 240, 231, 0.62); }
.tool-out pre { margin: 0; white-space: pre-wrap; font: 400 0.9rem/1.55 var(--mono); background: rgba(245, 240, 231, 0.06); padding: 16px; border-radius: 10px; max-height: 420px; overflow: auto; }
.tool-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.tool-out .btn.line { background: transparent; color: #f5f0e7; border-color: rgba(245, 240, 231, 0.32); }
.tool-bar { display: flex; align-items: center; gap: 16px; padding: 16px 22px; background: var(--ink); color: #fff; }
.tool-bar strong { font: 600 1.1rem var(--mono); color: var(--brass-hi); }
.tool-bar .btn.line { background: transparent; color: #f5f0e7; border-color: rgba(245, 240, 231, 0.32); }
.meter { flex: 1; height: 8px; background: rgba(245, 240, 231, 0.16); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brick), var(--brass-hi)); transition: width 0.2s; }
.tool-groups { padding: 8px 22px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 36px; }
.tool-groups fieldset { border: 0; margin: 0; padding: 14px 0 0; min-width: 0; }
.tool-groups legend { padding: 0; margin-bottom: 6px; }
.tool-groups legend b { color: var(--brick-ink); margin-right: 8px; }
.tool-groups label { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.96rem; cursor: pointer; }
.tool-groups input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--sage); flex: none; }
.tool-groups input:checked + span { color: var(--muted); text-decoration: line-through; }

/* Entrance */
.rise { opacity: 1; transform: none; }
html:not(.no-js) .rise { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
html:not(.no-js) .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html:not(.no-js) .rise { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 1080px) {
  .fcols { grid-template-columns: repeat(3, 1fr); }
  .fcols > div:first-child { grid-column: 1 / -1; }
  .grid.g4 { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .aside { position: relative; top: 0; max-width: 520px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3)::before { display: none; }
}
@media (max-width: 940px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--ink); flex-direction: column; padding: 8px var(--pad) 18px; margin: 0; border-top: 3px solid var(--brick); max-height: calc(100dvh - 64px); overflow: auto; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 1.02rem; border-radius: 0; border-bottom: 1px solid rgba(245, 240, 231, 0.12); }
  .nav a[aria-current] { background: none; color: #ec8463; }
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .grid.g3 { grid-template-columns: 1fr 1fr; }
  .grid.plain { grid-template-columns: 1fr; }
  .tool, .tool.form .tool-in, .tool-groups { grid-template-columns: 1fr; }
  .ledger .what { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top .wrap { gap: 10px; min-height: 58px; }
  .nav { top: 58px; }
  .right { gap: 8px; }
  .top .btn.sm span { display: none; }
  .top .btn.sm { padding: 0 12px; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures > div:nth-child(3) { border-left: 0; }
  .figures > div:nth-child(n + 3) { border-top: 1px solid rgba(245, 240, 231, 0.12); }
  .figures strong { font-size: 2rem; }
  .figures > div { padding: 14px 16px 16px; }
  .grid.g3, .grid.g4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li + li::before { left: 30px; top: -12px; transform: rotate(135deg); }
  .steps li:nth-child(3)::before { display: block; }
  .ledger a { grid-template-columns: 44px 1fr 16px; gap: 12px; padding: 14px 14px 14px 0; }
  .ledger .num { margin: -14px 0; }
  .fcols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .cta .btn { flex: 1 1 100%; }
  .consent { flex-direction: column; align-items: stretch; }
  .consent div { justify-content: flex-end; }
  .shot figcaption .host { display: none; }
  .tool.calc .tool-in { grid-template-columns: 1fr; }
  .tool-bar { flex-wrap: wrap; }
  .tool-in, .tool-out { padding: 20px; }
}
@media print {
  .top, footer, .consent, .final, .aside, .hero .cta, .band, .faq, .crumbs { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; }
  .tool { border: 0; box-shadow: none; }
  .tool-bar .btn, .tool-act { display: none; }
}
