/* Debt Cost Check brand layer (29 Nov 2026, Ian's brief in ~/leadility/brands/debtcostcheck.md). Loaded after style.css and quiz.css.
   Contrast: navy/charcoal on paper 10.5/12.6. White on sage 3.8, so sage buttons use bold 19px text (WCAG large text). Amber is never text, only a highlight behind navy numbers. */
:root{
  --navy:#1F3A4D; --navy-2:#2C5068; --sage:#5E8C7F; --sage-dark:#4A7266; --sage-soft:#E5EDEA; --paper:#F4F1EA; --hl:#D9A441; --charcoal:#2B2B2B;
  --green:var(--navy); --green-2:var(--navy-2); --green-soft:var(--sage-soft); --cream:var(--paper); --ink:var(--charcoal); --ink-2:#55595B; --line:#DCD6C9;
  --red:var(--navy); --red-soft:#EFEBE1; --shadow:0 6px 24px rgba(31,58,77,.08);
}
body{background:var(--paper)}
.site-header,#quiz,.hero{background:var(--paper)}
.site-header{border-bottom-color:var(--line)}
.brand{color:var(--navy);letter-spacing:-.01em}
.brand img{border-radius:8px}
.btn{background:var(--sage);color:#fff;box-shadow:0 3px 0 var(--sage-dark);font-size:1.18rem;font-weight:700}
.btn:active{box-shadow:0 1px 0 var(--sage-dark)}
.btn-ghost{background:transparent;color:var(--ink-2);box-shadow:none}
.trust li::before{color:var(--sage)}
.qbar span,.steps3 li::before{background:var(--sage)}
.steps3 li::before{color:#fff}
.opt,.steps3 li,.yn,.vcall,.tile,.field select{background:#fff}
.tile{border:1px solid var(--line)}
.opt.sel{border-color:var(--navy);background:var(--sage-soft)}
.hero .pre{background:#fff;border:1px solid var(--line);color:var(--navy)}
/* The person's own numbers: navy, with a soft amber highlighter stroke behind them */
.bignum .n,.res-card .big,.amount{color:var(--navy);background:linear-gradient(transparent 60%,rgba(217,164,65,.42) 60%,rgba(217,164,65,.42) 92%,transparent 92%);display:inline-block;padding:0 .12em}
.bignum .n.rolling{background:none}
.tile b{color:var(--navy)}
table.cmp tr.pick td{background:#FBF5E8}
.preview-strip{background:var(--navy)}
.site-footer{background:var(--navy);color:var(--paper)}
.site-footer a{color:var(--paper)}
.btn-end{background:var(--charcoal);box-shadow:0 3px 0 #111}
.vdot{background:var(--navy);box-shadow:inset 0 0 0 12px var(--navy),inset 0 0 0 30px var(--sage)}
/* Hero with the statement photo: beside the copy on desktop, below the first button on phones so the button stays above the fold */
.hero-grid{display:grid;gap:18px}
.hero-photo{border-radius:16px;overflow:hidden;box-shadow:var(--shadow);order:3}
.hero-photo img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
@media(min-width:900px){.hero-grid{grid-template-columns:1.05fr .95fr;align-items:center;gap:40px}.hero-photo{order:0}.hero .wrap.wide{max-width:1080px}}
/* On the navy result card the number is paper-white with a thin amber underline, not navy */
.res-card .big{color:#fff;background:linear-gradient(transparent 84%,var(--hl) 84%,var(--hl) 94%,transparent 94%)}

/* ---- Impeccable pass, 29 Nov 2026 ---- */
/* Type: a plain, sturdy text face (Public Sans) and a statement figure face (IBM Plex Mono) for money, rates and dates only */
:root{ --font:"Public Sans",-apple-system,system-ui,"Segoe UI",Roboto,sans-serif; --fig:"IBM Plex Mono",ui-monospace,"SFMono-Regular",Menlo,monospace;
  --sage-ink:#4A7266; --err:#9A4B1F; --err-soft:#F7EBDD; --muted:#5A6062; }
body{font-family:var(--font)}
h1{font-size:2rem;line-height:1.12;letter-spacing:-.02em;font-weight:800}
h2{font-size:1.5rem;line-height:1.2;letter-spacing:-.01em}
h3{font-size:1.12rem}
h1,h2{text-wrap:balance}
p{text-wrap:pretty}
.bignum .n,.res-card .big,.amount,.tile b,table.cmp td,.keep b,.keep-line b{font-family:var(--fig);font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
/* Buttons: sage family dark enough for white text at any size (5.4:1). The lighter brief sage stays on bars, bullets and sliders */
.btn{background:var(--sage-ink);box-shadow:0 2px 0 #3A5C52, 0 8px 18px -10px rgba(31,58,77,.45)}
.btn:hover{background:#426A5E}
.btn:active{box-shadow:0 1px 0 #3A5C52}
.steps3 li::before{background:var(--sage-ink)}
/* Grey text darkened to pass on paper */
.lk-who,.lk-rex,.fine,.foot,.partners,.q .consent-text{color:var(--muted)}
/* Errors: their own colour, an icon and a heavier field border, not navy body text */
.err{color:var(--err);font-weight:600;font-size:.9rem;align-items:flex-start;gap:6px}
.err.on{display:flex}
.err.on::before{content:"";flex:0 0 16px;height:16px;margin-top:2px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7v6M12 16.5v.5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7v6M12 16.5v.5'/%3E%3C/svg%3E") center/contain no-repeat}
input[aria-invalid=true],select[aria-invalid=true]{border-color:var(--err)!important;border-width:2px;background:var(--err-soft)}
/* Touch: no sticky hover highlight on phones */
.opt:hover{border-color:var(--line)}
@media(hover:hover){.opt:hover{border-color:#9DB3AB}}
.opt.sel,.opt.sel:hover{border-color:var(--navy)}
/* Phone step: keep their number in view, and say who calls */
.keep{display:flex;justify-content:space-between;align-items:baseline;gap:10px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:9px 12px;margin:0 0 14px;font-size:.9rem}
.keep span{color:var(--muted)}
.keep b{color:var(--navy);background:linear-gradient(transparent 60%,rgba(217,164,65,.42) 60%,rgba(217,164,65,.42) 92%,transparent 92%)}
.q .plain{font-weight:600;color:var(--navy);margin:-4px 0 14px}
.done .keep-line{font-size:1.02rem}
.done .ok{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background:var(--sage-soft);color:var(--sage-ink);margin:0 auto 12px}
/* Browser surfaces */
::selection{background:rgba(217,164,65,.38);color:var(--charcoal)}
input,select{caret-color:var(--navy)}
:focus-visible{outline:3px solid var(--navy);outline-offset:2px}
#screens h2:focus{outline:none}
input[type=range]{accent-color:var(--sage)}
a{text-underline-offset:.18em}
.q .plain{font-size:1rem;line-height:1.45;font-weight:600;margin:0 0 14px}
.keep b{font-size:1.1rem}
/* Logo (29 Nov 2026): outlined SVG lockup, magnifier icon + highlighted wordmark */
.brand img.logo{width:auto;height:28px;border-radius:0}
@media(min-width:900px){.brand img.logo{height:32px}}
.site-footer .brand img.logo{height:30px}
/* Quiz legal line: the full disclaimer on the result and contact steps; one short line on plain questions */
.q-legal .lk-mini{display:none;font-size:.82rem;color:var(--muted);margin:0}
.q-legal .lk-mini a{color:var(--muted)}
.q-legal.short .lk-mini{display:block}
.q-legal.short .lk-who{display:none}
