/* KBhaus brand system
   Layout: navy masthead band carrying the light wordmark, then cream and
   paper sections with hairline rules. Quiet luxury: square corners,
   tracked Poppins labels, serif display, Lora body.
   Display: Circa Contrast is the brand header face; Cormorant Garamond
   stands in on the web until the licensed font file is added. */
:root {
  --navy: #132043;
  --cream: #EBE3DB;
  --mist: #D3D3D3;
  --taupe: #A79B90;
  --ink: #000000;

  --bg: #FAF7F3;
  --surface: #FFFFFF;
  --band: #EBE3DB;
  --fg: #141414;
  --muted: #5F5750;
  --line: #DCD3CA;
  --accent: #132043;
  --accent-fg: #F4F0EC;
  --chip: #F1ECE6;
  --good: #2F6B4F;
  --good-bg: #E3EFE8;
  --warn: #8A5A12;
  --warn-bg: #F6EBD8;
  --bad: #9B2C2C;
  --bad-bg: #F6E1E1;

  --display: "Circa Contrast", "Cormorant Garamond", "Didot", Georgia, serif;
  --body: "Lora", Georgia, "Times New Roman", serif;
  --label: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --logo-on-surface-dark: block;  /* dark logo shows on light surfaces */
  --logo-on-surface-light: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1430; --surface: #132043; --band: #18264D; --fg: #F4F0EC;
    --muted: #C2B8AE; --line: #2A3A66; --accent: #EBE3DB; --accent-fg: #132043;
    --chip: #1D2C57; --good: #8FD0AE; --good-bg: #173B31; --warn: #F0C27A;
    --warn-bg: #3D3017; --bad: #F3A5A5; --bad-bg: #432024;
    --logo-on-surface-dark: none; --logo-on-surface-light: block;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1430; --surface: #132043; --band: #18264D; --fg: #F4F0EC;
  --muted: #C2B8AE; --line: #2A3A66; --accent: #EBE3DB; --accent-fg: #132043;
  --chip: #1D2C57; --good: #8FD0AE; --good-bg: #173B31; --warn: #F0C27A;
  --warn-bg: #3D3017; --bad: #F3A5A5; --bad-bg: #432024;
  --logo-on-surface-dark: none; --logo-on-surface-light: block;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.6; }
.wrap { max-width: 1120px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }

/* Masthead: always navy with the light logo, so contrast holds in both themes */
.mast { background: #132043; color: #F4F0EC; }
.mast .wrap { padding-block: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mast img.wordmark { height: 34px; width: auto; display: block; }
.mast nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.mast nav a { font-family: var(--label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #EBE3DB; text-decoration: none; padding-block: 4px; border-bottom: 1px solid transparent; }
.mast nav a:hover, .mast nav a[aria-current="page"] { border-bottom-color: #EBE3DB; }
.mast nav a:focus-visible { outline: 2px solid #EBE3DB; outline-offset: 3px; }

.hero { background: #132043; color: #F4F0EC; }
.hero .wrap { padding-block: 8px 48px; }
.hero h1 { color: #F4F0EC; }
.hero p.lede { color: #D9D0C7; }
.hero .eyebrow { color: #A79B90; }

.eyebrow { font-family: var(--label); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; text-wrap: balance; line-height: 1.12; margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.35rem; }
h4 { font-family: var(--label); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin: 0; font-weight: 500; }
p { margin: 0; }
.lede { font-size: 1.08rem; max-width: 62ch; color: var(--muted); }
a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }

section.block { padding-block: 48px; border-top: 1px solid var(--line); }
section.block.band { background: var(--band); border-top: 0; }
.stack { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 28px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.grid2 > *, .grid3 > * { min-width: 0; }

.card { background: var(--surface); border: 1px solid var(--line); padding: 22px; display: grid; gap: 12px; align-content: start; }
.card.quiet { background: transparent; }

ul.list, ol.list { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
ul.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
ul.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
ul.checks li::before { content: ""; width: 14px; height: 14px; margin-top: 5px; border: 1.5px solid var(--taupe); }

.chip { display: inline-block; font-family: var(--label); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; background: var(--chip); color: var(--fg); white-space: nowrap; }
.chip.good { background: var(--good-bg); color: var(--good); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th { font-family: var(--label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--muted); text-align: left; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.script { background: var(--surface); border-left: 3px solid var(--taupe); padding: 14px 18px; font-style: italic; }
.script b { font-style: normal; font-family: var(--label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px; font-weight: 500; }

.steps { counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps > li { list-style: none; counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-size: 1.8rem; line-height: 1; color: var(--taupe); }
.steps > li > div { display: grid; gap: 6px; min-width: 0; }
ol.steps { padding: 0; margin: 0; }

.btn { font-family: var(--label); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; background: var(--accent); color: var(--accent-fg); border: 1px solid var(--accent); padding: 10px 16px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--taupe); outline-offset: 2px; }
.btn:disabled { opacity: .5; cursor: default; }

label.f { display: grid; gap: 4px; font-family: var(--label); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
input, select, textarea { font-family: var(--body); font-size: 15px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); padding: 8px 10px; width: 100%; min-width: 0; }

details.acc { border-bottom: 1px solid var(--line); }
details.acc > summary { cursor: pointer; list-style: none; padding-block: 16px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: "+"; font-family: var(--label); color: var(--muted); }
details.acc[open] > summary::after { content: "–"; }
details.acc > .body { padding-bottom: 20px; display: grid; gap: 14px; }

.logo-dark { display: var(--logo-on-surface-dark); }
.logo-light { display: var(--logo-on-surface-light); }

footer.foot { background: #132043; color: #D9D0C7; margin-top: 48px; }
footer.foot .wrap { padding-block: 32px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
footer.foot img { height: 44px; width: auto; }
footer.foot p { font-family: var(--label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.contract { max-width: 70ch; }
.contract p, .terms p { font-size: 15px; }
.terms { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
details.acc > summary .chip { flex-shrink: 0; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; background: var(--chip); padding: 1px 6px; }
