/*
VOICE   Plain and calm. Short sentences a first-time buyer understands, with every term explained beside it.
IDEA    Every number you need before an offer, worked out live as you type, using Canada's and Ontario's real rules.
PICTURE The answer sits large beside the inputs, like a receipt that rewrites itself; on phones a result bar follows you.
COLOUR  Paper Planes Group gold and black. Light: ivory paper #f6f4ef, charcoal ink #151a17, gold #c4a168 actions, charcoal
        result cards. Dark: charcoal #0d1210 with the same gold. The logo is the gold disc with the black paper plane.
TYPE    Helvetica Neue Bold for the Paper Planes name (Arimo Bold, a free look-alike, where Helvetica Neue isn't installed).
        Plus Jakarta Sans for everything else, with tabular figures for money.
LAYOUT  Inputs left, results right, 1240px wide at most. Stacks under 900px. Nothing scrolls sideways at 360px.
*/

/* ---------- Colour tokens: light (default) ---------- */
:root {
  --bg: #f6f4ef; --card: rgba(255,255,255,.9); --solid: #ffffff; --t: #151a17; --sub: #5b625d;
  --line: #e6e0d4; --chip: rgba(21,26,23,.05); --gText: #7c5d20; --gSoft: rgba(196,161,104,.18);
  --btn: linear-gradient(135deg,#cfae74,#b48d4f); --btnFlat: #b48d4f; --btnT: #17120a; --btnShadow: 0 10px 22px rgba(124,93,32,.2);
  --accT: #8f4f14; --accSoft: rgba(208,138,58,.16); --off: #ddd6c8; --focus: #7c5d20;
  --shadow: 0 10px 26px rgba(23,18,10,.08); --hero: linear-gradient(140deg,#1f2622,#121714); --heroT: #f4f0e6;
  --bar: rgba(246,244,239,.86); --cPrin: #1d7a4f; --cInt: #bd8728; --over: #c2410c;
  --page: radial-gradient(1100px 520px at 0% 0%, rgba(196,161,104,.2) 0%, rgba(196,161,104,0) 70%),
          radial-gradient(900px 460px at 100% 0%, rgba(21,26,23,.07) 0%, rgba(21,26,23,0) 70%), #f6f4ef;
  color-scheme: light;
}
/* Dark: follows the device unless the visitor picks a mode with the sun/moon button */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1210; --card: rgba(25,31,28,.86); --solid: #171d1a; --t: #ecf1ee; --sub: #a2b0a8;
    --line: #242e29; --chip: rgba(255,255,255,.06); --gText: #d6b981; --gSoft: rgba(196,161,104,.14);
    --btn: #c4a168; --btnFlat: #c4a168; --btnT: #17120a; --btnShadow: none;
    --accT: #d8bb85; --accSoft: rgba(196,161,104,.16); --off: #2d3832; --focus: #c4a168;
    --shadow: 0 12px 30px rgba(0,0,0,.4); --hero: #18211d; --heroT: #ecf1ee;
    --bar: rgba(13,18,16,.86); --cPrin: #3fae76; --cInt: #c58c2c; --over: #e8735a;
    --page: #0d1210; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1210; --card: rgba(25,31,28,.86); --solid: #171d1a; --t: #ecf1ee; --sub: #a2b0a8;
  --line: #242e29; --chip: rgba(255,255,255,.06); --gText: #d6b981; --gSoft: rgba(196,161,104,.14);
  --btn: #c4a168; --btnFlat: #c4a168; --btnT: #17120a; --btnShadow: none;
  --accT: #d8bb85; --accSoft: rgba(196,161,104,.16); --off: #2d3832; --focus: #c4a168;
  --shadow: 0 12px 30px rgba(0,0,0,.4); --hero: #18211d; --heroT: #ecf1ee;
  --bar: rgba(13,18,16,.86); --cPrin: #3fae76; --cInt: #c58c2c; --over: #e8735a;
  --page: #0d1210; color-scheme: dark;
}

/* Office map colours (light, then dark) */
:root {
  --mapBg: #ece6da; --mapGreen: #dfe4cf; --mapWater: #d3e0e4; --mapBld: #e2dacb; --mapMinor: #fbf9f4; --mapMid: #fbf9f4;
  --mapMajor: #f0d9a8; --mapHwy: #e2bd78; --mapRail: #c3baa9; --mapStream: #bdd0d6; --mapLab: #4f5651; --mapHalo: #ece6da;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mapBg: #151c18; --mapGreen: #18231d; --mapWater: #15222a; --mapBld: #1e2722; --mapMinor: #28322d; --mapMid: #2e3933;
    --mapMajor: #4d4433; --mapHwy: #6e5c3a; --mapRail: #36423b; --mapStream: #1f313a; --mapLab: #b4c0b9; --mapHalo: #151c18;
  }
}
:root[data-theme="dark"] {
  --mapBg: #151c18; --mapGreen: #18231d; --mapWater: #15222a; --mapBld: #1e2722; --mapMinor: #28322d; --mapMid: #2e3933;
  --mapMajor: #4d4433; --mapHwy: #6e5c3a; --mapRail: #36423b; --mapStream: #1f313a; --mapLab: #b4c0b9; --mapHalo: #151c18;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body {
  margin: 0; min-height: 100vh; background: var(--page); background-color: var(--bg); color: var(--t);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-variant-numeric: tabular-nums; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: var(--gText); }
a:hover { opacity: .85; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--solid); color: var(--t); font-weight: 700; }
.skip:focus { top: 12px; }

/* Text that still needs filling in (see contact.js) */
.ph { background: var(--accSoft); color: var(--accT); border-radius: 6px; padding: 0 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Brokerage bar + header ---------- */
.topbar { background: var(--solid); border-bottom: 1px solid var(--line); font-size: 13px; }
.topbar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 16px; padding-top: 7px; padding-bottom: 7px; }
.tb-brk { font-weight: 800; }
.tb-agent { color: var(--sub); font-weight: 600; }
.hdr { position: sticky; top: 0; z-index: 50; background: var(--bar); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border-bottom: 1px solid var(--line); }
.hrow { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--t); flex: none; }
.brand:hover { opacity: 1; }
.logo { width: 42px; height: 42px; display: block; flex: none; }
.wm { display: flex; flex-direction: column; line-height: 1; }
.wm1 { font-family: "Helvetica Neue", Arimo, Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.wm2 { margin-top: 5px; font-size: 10px; font-weight: 800; letter-spacing: .38em; text-transform: uppercase; color: var(--gText); }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; }
.nav a { padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--t); font-size: 15px; font-weight: 700; white-space: nowrap; }
.nav a:hover { background: var(--chip); opacity: 1; }
.nav a[aria-current="page"] { background: var(--gSoft); color: var(--gText); }
.hacts { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.ctabtn .sm { display: none; }

/* Light/dark switch: shows a moon in light mode and a sun in dark mode */
.themebtn { width: 44px; height: 44px; padding: 0; border-radius: 22px; border: 1px solid var(--line); background: var(--solid); color: var(--t); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.themebtn:hover { background: var(--chip); }
.themebtn .i-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .themebtn .i-sun { display: block; }
  :root:not([data-theme="light"]) .themebtn .i-moon { display: none; }
}
:root[data-theme="dark"] .themebtn .i-sun { display: block; }
:root[data-theme="dark"] .themebtn .i-moon { display: none; }

/* ---------- Buttons, cards ---------- */
.btn { min-height: 52px; padding: 0 24px; border-radius: 26px; border: 0; background: var(--btn); color: var(--btnT); font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; box-shadow: var(--btnShadow); white-space: nowrap; }
.btn:hover { opacity: .92; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 22px; }
.btn2 { min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--line); background: var(--solid); color: var(--t); font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn2:hover { opacity: 1; background: var(--chip); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.pad { padding: 24px; }
.h1 { margin: 22px 0 0; font-size: clamp(34px, 7vw, 50px); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; }
.h1:focus { outline: none; }
.h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.h2:focus { outline: none; }
.lead { margin: 12px 0 0; font-size: 18px; line-height: 1.55; color: var(--sub); max-width: 720px; }
.hint { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--sub); }
.hint b { color: var(--t); }
.small { font-size: 15px; color: var(--sub); font-weight: 700; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ---------- Calculator layout ---------- */
.cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px; margin-top: 28px; }
.incol { flex: 1 1 380px; max-width: 460px; min-width: 0; }
.outcol { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 22px; }
.row.first { margin-top: 0; }
.lab { font-size: 14px; font-weight: 800; }
.lab.block { display: block; margin-top: 22px; }
.big { font-size: 22px; font-weight: 800; letter-spacing: -.02em; text-align: right; }
.num { display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--solid); margin-top: 8px; }
.num input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; font-family: inherit; font-size: 17px; font-weight: 700; color: var(--t); outline: none; padding: 0; }
.num:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--gSoft); }
.cur { font-weight: 800; color: var(--sub); }
.num.grow { flex: 1; margin-top: 0; }
.downrow { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.rng { width: 100%; accent-color: var(--btnFlat); margin: 12px 0 0; height: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pill { min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--solid); color: var(--t); font-size: 13px; font-weight: 700; cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--gSoft); border-color: var(--btnFlat); color: var(--gText); }
.segrow { display: flex; background: var(--chip); border-radius: 14px; padding: 3px; gap: 2px; margin-top: 8px; }
.segrow.fit { width: max-content; max-width: 100%; }
.segrow .s { flex: 1; min-width: 0; min-height: 40px; border: 0; border-radius: 11px; background: transparent; color: var(--sub); font-size: 14px; font-weight: 700; cursor: pointer; padding: 0 12px; white-space: nowrap; }
.segrow .s[aria-pressed="true"] { background: var(--btnFlat); color: var(--btnT); }
.segrow.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.segrow.four .s { padding: 0 4px; font-size: 13px; }
.downrow .segrow { margin-top: 0; flex: none; }
.warn { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--accSoft); color: var(--accT); font-size: 13px; font-weight: 700; line-height: 1.45; }
.note { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--gSoft); color: var(--gText); font-size: 13px; font-weight: 700; line-height: 1.45; }
select.sel { width: 100%; height: 48px; margin-top: 8px; padding: 0 40px 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--solid); color: var(--t); font-family: inherit; font-size: 16px; font-weight: 700; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--sub) 50%), linear-gradient(135deg, var(--sub) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
select.sel:focus { border-color: var(--focus); box-shadow: 0 0 0 3px var(--gSoft); outline: none; }

/* Switch: the whole row is the button */
.swrow { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 6px 0; border: 0; background: transparent; color: var(--t); text-align: left; cursor: pointer; }
.swrow .lab { display: block; }
.swrow .hint { display: block; margin-top: 2px; font-weight: 500; }
.sw { position: relative; width: 52px; height: 32px; border-radius: 16px; background: var(--off); flex: none; transition: background .2s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 13px; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.25); transition: left .25s cubic-bezier(.2,.8,.2,1); }
.swrow[aria-checked="true"] .sw { background: var(--btnFlat); }
.swrow[aria-checked="true"] .sw::after { left: 23px; }

/* ---------- Results ---------- */
.herocard { padding: 26px; background: var(--hero); color: var(--heroT); border: 0; }
.herolab { font-size: 15px; font-weight: 700; opacity: .85; }
.heronum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 4px; }
.heronum b { font-size: clamp(40px, 11vw, 58px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.heronum span { font-size: 18px; font-weight: 700; opacity: .85; }
.herometa { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-size: 14px; font-weight: 600; opacity: .92; }
.resnum { margin-top: 4px; font-size: clamp(40px, 11vw, 58px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.midnum { margin-top: 6px; font-size: clamp(32px, 8vw, 40px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 18px; }
.tile .tl { font-size: 13px; font-weight: 700; color: var(--sub); }
.tile .tv { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.tile .ts { font-size: 13px; color: var(--sub); }
.soft { background: var(--chip); border-radius: 20px; }
.tagx { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 12px; border-radius: 14px; background: var(--gSoft); color: var(--gText); font-size: 13px; font-weight: 800; margin-top: 12px; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv > span:first-child { min-width: 0; }
.kv .k { color: var(--sub); }
.kv b, .kv .v { font-weight: 800; white-space: nowrap; text-align: right; }
.kv .neg { color: var(--gText); }
.kv.last { border-bottom: 0; }
.kv.total { border-bottom: 0; font-size: 18px; }
.kv .rn { display: block; font-weight: 700; }
.kv .rh { display: block; font-size: 13px; color: var(--sub); line-height: 1.45; margin-top: 2px; }
.kv .num { margin: 0; height: 44px; width: 128px; flex: none; padding: 0 12px; }
.kv .num input { font-size: 16px; }
.cardhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.disc { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--chip); font-size: 13px; line-height: 1.55; color: var(--sub); }
.disc .ico { width: 18px; height: 18px; margin-top: 1px; }
.disc b { color: var(--t); }
.stepcard { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; background: var(--chip); text-decoration: none; color: var(--t); font-weight: 800; font-size: 15px; }
.stepcard span { font-size: 14px; font-weight: 500; color: var(--sub); line-height: 1.45; }
.stepcard:hover { background: var(--gSoft); opacity: 1; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
/* A long button label wraps on a small phone instead of pushing the page sideways */
.btnrow .btn, .btnrow .btn2 { max-width: 100%; white-space: normal; text-align: center; padding-top: 8px; padding-bottom: 8px; }

/* Meters (pre-qualify) */
.meter { position: relative; height: 10px; border-radius: 5px; background: var(--chip); margin-top: 10px; }
.meter .fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 5px; background: var(--btnFlat); transition: width .4s; }
.meter .fill.over { background: var(--over); }
.meter .mark { position: absolute; top: -4px; bottom: -4px; width: 2px; height: auto; border-radius: 1px; background: var(--t); }
.meterkey { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--sub); }

/* Chart (mortgage) */
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; font-weight: 700; color: var(--sub); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart { position: relative; margin-top: 14px; height: 230px; touch-action: pan-y; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .gl { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--sub); font-size: 11px; font-weight: 700; font-family: inherit; }
.chart .bi { fill: var(--cInt); }
.chart .bp { fill: var(--cPrin); }
.chart g.col { transition: opacity .15s; }
.chart.hovering g.col { opacity: .4; }
.chart.hovering g.col.on { opacity: 1; }
.tip { position: absolute; z-index: 5; pointer-events: none; min-width: 170px; padding: 10px 12px; border-radius: 12px; background: var(--solid); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; line-height: 1.5; color: var(--t); }
.tip b { display: block; font-size: 13px; margin-bottom: 2px; }
.tip .tr { display: flex; justify-content: space-between; gap: 14px; }
.tip .tr span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--sub); }
.tip i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
details.more { margin-top: 12px; }
details.more summary { cursor: pointer; font-size: 14px; font-weight: 800; color: var(--gText); padding: 8px 0; min-height: 36px; }
.tblwrap { overflow-x: auto; margin-top: 6px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th, table.tbl td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.tbl th { font-size: 12px; color: var(--sub); font-weight: 800; }
table.tbl th:first-child, table.tbl td:first-child { text-align: left; }

/* ---------- Home ---------- */
.homehero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: center; padding-top: 24px; }
.hh-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; color: var(--sub); }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--btnFlat); stroke-width: 2.4; }
.receipt { padding: 26px; }
.receipt .flight { display: block; width: 170px; height: auto; margin: 0 0 12px -4px; color: var(--gText); overflow: visible; }
/* The paper plane flies in the first time the card is in view (app.js). index.html keeps it out of sight until then.
   While it flies it passes in front of the words, filled with the card colour like a sheet of paper. */
.fl-wait .receipt .fl-plane, .fl-wait .receipt .fl-trail { opacity: 0; }
.receipt .flight.flying { position: relative; z-index: 1; }
.receipt .flight.flying .fl-body { fill: var(--card); }
.receipt .cap { font-size: 13px; font-weight: 700; color: var(--sub); }
.receipt a.kv { text-decoration: none; color: var(--t); }
.receipt a.kv:hover { opacity: 1; background: var(--chip); }
.tools3 { margin-top: 40px; }
.toolcard { display: flex; flex-direction: column; gap: 8px; padding: 24px; text-decoration: none; color: var(--t); }
.toolcard:hover { opacity: 1; border-color: var(--btnFlat); }
.toolcard .tico { width: 48px; height: 48px; border-radius: 16px; background: var(--gSoft); color: var(--gText); display: flex; align-items: center; justify-content: center; }
.toolcard .tico .ico { width: 24px; height: 24px; }
.toolcard p { margin: 0; color: var(--sub); font-size: 15px; line-height: 1.5; }
.toolcard .go { margin-top: auto; padding-top: 8px; font-weight: 800; color: var(--gText); }
.checked { margin-top: 28px; }

/* ---------- Contact me ---------- */
.contact-sec { margin-top: 80px; }
.kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gText); }
.contact-sec .h1 { margin-top: 6px; font-size: clamp(30px, 6vw, 42px); }
.ctgrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 18px; margin-top: 26px; align-items: start; }
.ctside { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.who { display: flex; gap: 16px; align-items: center; }
.avatar { position: relative; width: 88px; height: 88px; border-radius: 44px; background: #171d1a; color: #d6b981; display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; font-family: "Helvetica Neue", Arimo, Helvetica, Arial, sans-serif; font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
.avatar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px #c4a168; pointer-events: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.who-name { font-size: 20px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; }
.who-title { margin-top: 2px; font-size: 14px; color: var(--sub); font-weight: 600; }
.who-brk { margin-top: 2px; font-size: 14px; font-weight: 800; }
.contacts { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; container-type: inline-size; }
.contact { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 16px; border-radius: 18px; background: var(--chip); color: var(--t); text-decoration: none; }
a.contact:hover { opacity: 1; background: var(--gSoft); }
/* Phone: one line, with a Call button and a Text button (words appear when there is room) */
.contact .cbody { flex: 1; min-width: 0; }
.c-phone .cv { white-space: nowrap; }
.cacts { display: flex; gap: 6px; flex: none; }
.cact { width: 44px; height: 44px; padding: 0; border-radius: 22px; border: 1px solid var(--line); background: var(--solid); color: var(--t); display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; font-size: 14px; font-weight: 800; }
.cact:hover { opacity: 1; border-color: var(--btnFlat); background: var(--gSoft); }
.cact .ico { width: 18px; height: 18px; }
.cact .cw { display: none; }
@container (min-width: 410px) {
  .cact { width: auto; padding: 0 15px 0 13px; }
  .cact .cw { display: inline; }
}
.contact .ci { width: 40px; height: 40px; border-radius: 20px; background: var(--btn); color: var(--btnT); display: flex; align-items: center; justify-content: center; flex: none; }
.contact .cl { display: block; font-size: 13px; color: var(--sub); font-weight: 700; }
.contact .cv { display: block; font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.brk-name { margin: 10px 0 0; font-size: 17px; font-weight: 800; }
.brk-row { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0; font-size: 15px; line-height: 1.45; }
.brk-row .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--gText); }
.brk-note { margin: 14px 0 0; font-size: 13px; color: var(--sub); font-style: italic; }
.brkcard .btn2 { margin-top: 16px; }
.bookcard > .kicker { margin-bottom: 4px; }
.bk-title { font-size: 22px; }
.nw { white-space: nowrap; }

/* Office map: streets from OpenStreetMap, drawn in the site's colours */
.omap { position: relative; aspect-ratio: 640 / 400; margin-top: 16px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--mapBg); isolation: isolate; container-type: inline-size; }
.omap svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.m-bg { fill: var(--mapBg); } .m-green { fill: var(--mapGreen); } .m-water { fill: var(--mapWater); } .m-bld { fill: var(--mapBld); }
.m-stream, .m-rail, .m-minor, .m-mid, .m-link, .m-major, .m-hwy { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.m-stream { stroke: var(--mapStream); stroke-width: 1.4; } .m-rail { stroke: var(--mapRail); stroke-width: 1.4; stroke-dasharray: 5 4; }
.m-minor { stroke: var(--mapMinor); stroke-width: 2.4; } .m-mid { stroke: var(--mapMid); stroke-width: 3.4; } .m-link { stroke: var(--mapMajor); stroke-width: 2.8; }
.m-major { stroke: var(--mapMajor); stroke-width: 5.5; } .m-hwy { stroke: var(--mapHwy); stroke-width: 8; }
.mlink { position: absolute; inset: 0; z-index: 1; }
.mlink:hover { opacity: 1; }
.ml, .mpin, .mtag { position: absolute; z-index: 2; pointer-events: none; }
.ml { white-space: nowrap; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--mapLab); text-shadow: 0 0 3px var(--mapHalo), 0 0 3px var(--mapHalo), 0 0 2px var(--mapHalo); }
/* The pin's point sits exactly on the office */
.mpin { width: 30px; height: 30px; margin: -36px 0 0 -15px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #c4a168; box-shadow: 0 4px 10px rgba(0,0,0,.3), inset 0 0 0 2px #17120a; }
.mpin::after { content: ""; position: absolute; left: 10px; top: 10px; width: 10px; height: 10px; border-radius: 5px; background: #17120a; }
.mtag { transform: translate(21px, calc(-50% - 21px)); white-space: nowrap; padding: 3px 8px; border-radius: 8px; background: var(--solid); border: 1px solid var(--line); color: var(--t); font-size: 12px; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.mtag:empty { display: none; }
/* On the smallest phones the map is too narrow for the address tag; the address is just above it */
@container (max-width: 320px) { .mtag { padding: 2px 6px; font-size: 11px; } }
@container (max-width: 279px) { .mtag { display: none; } }
.mosm { position: absolute; right: 6px; bottom: 5px; z-index: 3; padding: 0 6px; border-radius: 6px; background: var(--mapHalo); font-size: 10px; line-height: 16px; color: var(--mapLab); text-decoration: none; }
.mosm:hover { opacity: 1; text-decoration: underline; }

/* Booking: four steps that fold up like drop-downs. Only the open step shows its choices;
   a finished step shows what was picked, with "Change" to open it again. */
.bk-steps { margin-top: 18px; border-top: 1px solid var(--line); }
.bk-step { border-bottom: 1px solid var(--line); }
.bk-sh { margin: 0; font: inherit; }
.bk-head { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 10px 0; border: 0; border-radius: 12px; background: none; color: var(--t); font: inherit; text-align: left; cursor: pointer; }
.bk-head:focus-visible { outline-offset: 0; }
.bk-step.open .bk-head, .bk-head:disabled { cursor: default; }
.bk-head:disabled { color: var(--sub); }
.bk-head .n { flex: none; width: 28px; height: 28px; border-radius: 14px; background: var(--chip); color: var(--sub); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.bk-step.open .n { background: var(--btnFlat); color: var(--btnT); }
.bk-step.done .n { background: var(--gSoft); color: var(--gText); }
.bk-head .ck { display: none; width: 16px; height: 16px; stroke-width: 2.6; }
.bk-step.done .ck { display: block; }
.bk-step.done .nn { display: none; }
.bk-ht { flex: 1; min-width: 0; }
.bk-hl { display: block; font-size: 15px; font-weight: 800; line-height: 1.3; }
.bk-hv { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--sub); overflow-wrap: anywhere; }
.bk-hx { flex: none; font-size: 14px; font-weight: 800; color: var(--gText); }
.bk-hv:empty, .bk-hx:empty { display: none; }
.bk-step:not(.open) .bk-head:not(:disabled):hover .bk-hl { color: var(--gText); }
.bk-step:not(.open) .bk-head:not(:disabled):hover .bk-hx { text-decoration: underline; }
/* The open step slides open; closed steps fold away and drop out of the Tab order */
.bk-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .28s cubic-bezier(.2,.8,.2,1), visibility 0s linear .28s; }
.bk-step.open .bk-panel { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
/* A little room on each side so focus rings aren't cut off. The space above and below is drawn
   inside the folding box (not as padding), so a closed step folds all the way down. */
.bk-pin { min-height: 0; overflow: hidden; margin: 0 -6px; padding: 0 6px; }
.bk-pin::before, .bk-pin::after { content: ""; display: block; height: 4px; }
.bk-pin::after { height: 22px; }
.bk-pin > .cal, .bk-pin > .slots, .bk-pin > .fld:first-child { margin-top: 0; }
/* Step 3: one tap picks how to meet and moves on */
.bk-opts { display: grid; gap: 8px; }
.bk-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--solid); color: var(--t); font: inherit; text-align: left; cursor: pointer; }
.bk-opt:hover { border-color: var(--btnFlat); }
.bk-opt[aria-pressed="true"] { border-color: var(--btnFlat); background: var(--gSoft); box-shadow: inset 0 0 0 1px var(--btnFlat); }
.bk-opt .oi { flex: none; width: 38px; height: 38px; border-radius: 19px; background: var(--chip); color: var(--gText); display: flex; align-items: center; justify-content: center; }
.bk-opt[aria-pressed="true"] .oi { background: var(--btnFlat); color: var(--btnT); }
.bk-opt .oi .ico { width: 18px; height: 18px; }
.bk-opt .ot { flex: 1; min-width: 0; }
.bk-opt b { display: block; font-size: 15px; font-weight: 800; }
.bk-opt .ot > span { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--sub); }

/* Booking calendar */
.cal { margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--solid); }
.calhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.calmonth { font-size: 16px; font-weight: 800; }
.calnav { width: 44px; height: 44px; padding: 0; border-radius: 22px; border: 1px solid var(--line); background: transparent; color: var(--t); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.calnav:hover:not(:disabled) { background: var(--chip); }
.calnav:disabled { opacity: .35; cursor: default; }
.calwk, .caldays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.calwk { margin-top: 8px; font-size: 12px; font-weight: 800; color: var(--sub); text-align: center; }
.caldays { margin-top: 4px; }
.day { height: 44px; min-width: 0; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--t); font-size: 15px; font-weight: 700; cursor: pointer; position: relative; }
.day:hover:not(:disabled) { background: var(--chip); }
.day:disabled { color: var(--sub); opacity: .45; cursor: default; }
.day.today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 2px; background: var(--gText); }
.day[aria-pressed="true"] { background: var(--btnFlat); color: var(--btnT); }
.day[aria-pressed="true"].today::after { background: var(--btnT); }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.slot { min-height: 44px; padding: 0 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--solid); color: var(--t); font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.slot:hover { border-color: var(--btnFlat); }
.slot[aria-pressed="true"] { background: var(--btnFlat); border-color: var(--btnFlat); color: var(--btnT); }
.fld { display: block; margin-top: 14px; min-width: 0; }
.fld .lab { display: block; }
.opt { color: var(--sub); font-weight: 600; }
.inp { display: block; width: 100%; height: 48px; margin-top: 6px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--solid); color: var(--t); font-family: inherit; font-size: 16px; font-weight: 600; }
textarea.inp { height: auto; min-height: 92px; padding: 12px 14px; line-height: 1.45; resize: vertical; }
.inp:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--gSoft); }
.inp[aria-invalid="true"] { border-color: var(--over); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.bk-send { width: 100%; margin-top: 20px; }
.bkdone .okmark { width: 48px; height: 48px; border-radius: 24px; background: var(--gSoft); color: var(--gText); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.bkdone .okmark .ico { width: 24px; height: 24px; stroke-width: 2.4; }
.bksum { margin-top: 12px; }
.bksum .kv b { white-space: normal; }
.bktext { display: block; width: 100%; min-height: 220px; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--chip); color: var(--t); font-family: inherit; font-size: 14px; line-height: 1.5; resize: vertical; }
.bklive { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.bklive .btn2 { margin-top: 8px; }
.privacy { margin: 16px 0 0; font-size: 13px; color: var(--sub); text-align: center; }

/* ---------- FAQ ---------- */
.faqgrid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; margin-top: 28px; align-items: start; }
.faqgroup { margin: 30px 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gText); }
.faqlist > .faqgroup:first-child { margin-top: 0; }
.faqcard { padding: 4px 0; }
details.qa + details.qa { border-top: 1px solid var(--line); }
details.qa > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 58px; padding: 14px 22px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 800; line-height: 1.35; border-radius: 20px; }
details.qa > summary::-webkit-details-marker { display: none; }
details.qa > summary:hover { color: var(--gText); }
details.qa .chev { color: var(--sub); transition: transform .2s; }
details.qa[open] .chev { transform: rotate(180deg); }
.qa-a { padding: 0 22px 20px; font-size: 15px; line-height: 1.6; color: var(--sub); }
.qa-a p { margin: 0 0 10px; }
.qa-a p:last-child { margin-bottom: 0; }
.qa-list { list-style: none; margin: 0 0 12px; padding: 2px 14px; border-radius: 14px; background: var(--chip); }
.qa-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: var(--t); font-size: 14px; }
.qa-list li + li { border-top: 1px solid var(--line); }
.qa-list b { font-weight: 800; white-space: nowrap; }
.qa-src { font-size: 13px; }
.faqside { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (min-width: 900px) and (min-height: 760px) { .faqside { position: sticky; top: 92px; } }
.srcs { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; font-size: 14px; }
.srcs a { display: inline-block; padding: 5px 0; font-weight: 700; }
.faqask .btnrow { margin-top: 14px; }

/* ---------- Footer ---------- */
.ftr { margin-top: 72px; padding: 44px 0 36px; background: var(--solid); border-top: 1px solid var(--line); }
.fgrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; }
.ftr h3 { margin: 0 0 10px; font-size: 14px; font-weight: 800; }
.ftr p { margin: 0 0 10px; font-size: 13px; line-height: 1.6; color: var(--sub); }
.ftr .fbrk { font-size: 15px; font-weight: 800; color: var(--t); margin-top: 16px; margin-bottom: 4px; }
/* Team logo and brokerage logo in one line, the same height */
.fbrands { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.fdiv { width: 1px; height: 34px; background: var(--line); flex: none; }
/* The brokerage logo sits straight on the footer. Dark mode swaps in its white-lettered version,
   or, if there isn't one, puts the regular logo on a white backing. */
.brkplate { display: inline-flex; align-items: center; justify-content: center; height: 42px; flex: none; }
.brkplate img { display: block; height: 28px; width: auto; }
.brkplate .brk-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brkplate.has-dark .brk-light { display: none; }
  :root:not([data-theme="light"]) .brkplate.has-dark .brk-dark { display: block; }
  :root:not([data-theme="light"]) .brkplate:not(.has-dark) { padding: 0 12px; border-radius: 12px; background: #fff; }
}
:root[data-theme="dark"] .brkplate.has-dark .brk-light { display: none; }
:root[data-theme="dark"] .brkplate.has-dark .brk-dark { display: block; }
:root[data-theme="dark"] .brkplate:not(.has-dark) { padding: 0 12px; border-radius: 12px; background: #fff; }
.flinks ul { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; font-size: 14px; }
.flinks a { display: inline-block; padding: 5px 0; font-weight: 700; }
.legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.fbottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; }
.ftr .fbottom p { margin: 0; }
.ftr .credit { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.credit a { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--t); text-decoration: none; }
.credit a[href]:hover { opacity: 1; text-decoration: underline; }
.credit img { display: block; height: 24px; width: auto; }

/* ---------- Result bar on phones ---------- */
.peek { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 20px; background: var(--solid); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(0,0,0,.22); transform: translateY(160%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.peek.on { transform: none; }
.peek .pl { display: block; font-size: 12px; font-weight: 700; color: var(--sub); }
.peek .pv { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.peek .pt { min-width: 0; flex: 1; }
.peek .btn-sm { flex: none; }

/* ---------- Market news banner (home page): a stock-ticker strip ----------
   Two copies of the lines sit side by side; sliding left by one copy and starting over makes a seamless loop.
   The strip stays dark in both light and dark mode, like a ticker tape, so its colours are fixed here. */
:root { --tape: linear-gradient(180deg, #1e2622, #121815); --tapeLine: rgba(255,255,255,.07); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --tape: linear-gradient(180deg, #121815, #070a09); --tapeLine: #26302b; }
}
:root[data-theme="dark"] { --tape: linear-gradient(180deg, #121815, #070a09); --tapeLine: #26302b; }
.news { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 5px; border: 1px solid var(--tapeLine); border-radius: 24px; background: var(--tape); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05); color: #f4f0e6; }
.news + .homehero { padding-top: 4px; }
.news-tag { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 12px; border-radius: 17px; background: var(--btn); color: var(--btnT); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.news-dot { width: 8px; height: 8px; border-radius: 4px; background: currentColor; animation: news-pulse 2s ease-in-out infinite; }
.news-sm { display: none; }
.news-win { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); }
.news-track { display: flex; width: max-content; animation: news-roll 50s linear infinite; }
.news-win:hover .news-track, .news.paused .news-track { animation-play-state: paused; }
.news-list { flex: none; display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
/* One ticker item: a gold label, the value, then a green up or red down change */
.news-list li { flex: none; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; line-height: 34px; font-variant-numeric: tabular-nums; }
.news-list li::after { content: ""; align-self: center; flex: none; width: 1px; height: 16px; margin: 0 20px 0 12px; background: rgba(244,240,230,.2); }
.tk-sym { font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #d9bd88; }
.tk-val { font-size: 14px; font-weight: 700; color: #f4f0e6; }
.tk-chg { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; color: #aab6af; }
.tk-chg.up { color: #4ade80; }
.tk-chg.down { color: #ff8a80; }
.tk-chg::before { content: ""; flex: none; width: 8px; height: 2px; border-radius: 1px; background: currentColor; }
.tk-chg.up::before, .tk-chg.down::before { width: 0; height: 0; border-radius: 0; background: none; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; }
.tk-chg.up::before { border-bottom: 6.5px solid currentColor; }
.tk-chg.down::before { border-top: 6.5px solid currentColor; }
.news-btn { flex: none; width: 34px; height: 34px; padding: 0; border-radius: 17px; border: 1px solid rgba(244,240,230,.18); background: rgba(255,255,255,.07); color: #f4f0e6; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.news-btn:hover { border-color: #c4a168; }
.news-btn:focus-visible { outline-color: #d9bd88; }
.news-btn .ico { width: 16px; height: 16px; stroke-width: 2.2; }
.news-btn .i-play { display: none; fill: currentColor; stroke-width: 1.6; }
.news.paused .news-btn .i-play { display: block; }
.news.paused .news-btn .i-pause { display: none; }
@keyframes news-roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes news-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Keep these numbers: a PDF copy by email (each calculator) ----------
   The same dark green tape as the news ticker, in light and dark mode, with a gold button.
   Its colours switch to light-on-dark, so the form that opens inside it reads well too. */
.keepcard {
  --t: #f4f0e6; --sub: #b3bdb6; --line: rgba(255,255,255,.14); --solid: rgba(255,255,255,.06); --chip: rgba(255,255,255,.1);
  --gText: #d9bd88; --gSoft: rgba(196,161,104,.18); --focus: #d9bd88; --btnFlat: #c4a168; --over: #ff8a80;
  --accT: #f0d7a6; --accSoft: rgba(196,161,104,.18);
  padding: 16px 18px; background: var(--tape); border-color: var(--tapeLine); color: var(--t);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05); color-scheme: dark;
}
.keeptop { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; }
.keepico { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--gSoft); color: var(--gText); display: flex; align-items: center; justify-content: center; }
.keepico .ico { width: 22px; height: 22px; }
.keeptx { flex: 1 1 170px; min-width: 0; }
.keeptx .h2 { font-size: 17px; }
.keeptx .hint { margin-top: 2px; }
.keepbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.keepbtns .btn { min-height: 48px; padding: 0 20px; font-size: 15px; }
.keepbtns .ico { width: 18px; height: 18px; }
/* While the form is open, the gold button becomes a gold outline */
.keep-mail[aria-expanded="true"] { background: transparent; color: var(--gText); box-shadow: inset 0 0 0 1.5px var(--btnFlat); }
.kpbox { margin-top: 16px; padding-top: 2px; border-top: 1px solid var(--line); }
.kpcheck { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.kpcheck input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--btnFlat); cursor: pointer; }
.kp-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.kpdone { padding-top: 16px; }
.kpbox .btnrow .btn { min-height: 48px; }

/* The page that prints for "Save as PDF" (hidden on screen) */
.psheet { display: none; }

/* ---------- Home button: floats in the corner on the calculator and FAQ pages ---------- */
.homefab { position: fixed; left: 18px; bottom: 18px; z-index: 45; width: 48px; height: 48px; border-radius: 24px; background: var(--btn); color: var(--btnT); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0,0,0,.24); transition: bottom .3s cubic-bezier(.2,.8,.2,1), transform .2s; }
.homefab .ico { width: 21px; height: 21px; stroke-width: 2.1; }
.homefab:hover { opacity: 1; transform: translateY(-2px); }
/* Room under the footer so its last lines never sit behind the button */
body.has-fab .ftr { padding-bottom: 96px; }
/* On phones it moves up above the result bar while that bar shows */
body.peek-on .homefab { bottom: 92px; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.view:not([hidden]) .rise { animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }
@media (prefers-reduced-motion: reduce) {
  .view:not([hidden]) .rise { animation: none; }
  .peek, .meter .fill, .sw, .sw::after, .bk-panel, .homefab { transition: none; }
  /* The news stays still: swipe or scroll sideways to read it */
  .news-track, .news-dot { animation: none; }
  .news-win { overflow-x: auto; scrollbar-width: none; }
  .news-win::-webkit-scrollbar { display: none; }
  .news-copy, .news-btn { display: none; }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 1000px) {
  .homehero { grid-template-columns: minmax(0, 1fr); }
  .receipt { max-width: 560px; }
}
/* Header: the calculator links move to their own row before they run out of room */
@media (max-width: 940px) {
  .hrow { flex-wrap: wrap; height: auto; gap: 8px 12px; padding-top: 10px; padding-bottom: 8px; }
  .nav { order: 3; flex: 1 1 100%; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 1 1 auto; padding: 10px 6px; text-align: center; font-size: 14px; }
  .nav a:focus-visible { outline-offset: -3px; }
}
@media (max-width: 899px) {
  .incol { max-width: none; }
  body.has-peek { padding-bottom: 84px; }
  .ctgrid { grid-template-columns: minmax(0, 1fr); }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .faqgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 900px) { .peek { display: none; } }
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .logo { width: 38px; height: 38px; }
  .wm1 { font-size: 17px; }
  .g3 { grid-template-columns: minmax(0, 1fr); }
  .pad, .herocard, .receipt { padding: 20px; }
  .lead { font-size: 16px; }
  .brkplate { height: 38px; }
  .brkplate img { height: 25px; }
  details.qa > summary { padding: 14px 18px; }
  .qa-a { padding: 0 18px 18px; }
  .tools3 { margin-top: 28px; }
  .contact-sec { margin-top: 56px; }
  .cal { padding: 8px 6px; }
}
@media (max-width: 560px) {
  .g2, .two { grid-template-columns: minmax(0, 1fr); }
  .news { gap: 8px; margin-top: 14px; }
  .news-tag { padding: 0 12px 0 11px; }
  .news-lg { display: none; }
  .news-sm { display: inline; }
  .keepbtns { width: 100%; }
  .keepbtns .btn { flex: 1 1 150px; }
  .news-list li { gap: 7px; }
  .news-list li::after { margin: 0 16px 0 9px; }
  .tk-sym { font-size: 11px; }
  .tk-val { font-size: 13px; }
  .tk-chg { font-size: 12px; }
}
@media (max-width: 420px) {
  .segrow.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv .num { width: 112px; }
  .hacts { gap: 8px; }
  .ctabtn { padding: 0 14px; font-size: 14px; }
  .ctabtn .lg { display: none; }
  .ctabtn .sm { display: inline; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wm2 { letter-spacing: .3em; }
  .contact { padding: 10px 12px; gap: 12px; }
  .contact .ci { width: 36px; height: 36px; }
  .contact .cv { font-size: 16px; }
  .cact { width: 40px; height: 40px; }
  .avatar { width: 76px; height: 76px; font-size: 25px; }
}
@media (max-width: 374px) {
  .nav a { font-size: 13px; padding: 10px 4px; }
  .fdiv { display: none; }
  .c-phone .ci { display: none; }
}
@media (pointer: coarse) {
  .news-btn { width: 40px; height: 40px; border-radius: 20px; }
  .pill { min-height: 44px; padding: 0 14px; }
  .segrow .s { min-height: 44px; }
}
@media print {
  .topbar, .hdr, .peek, .hacts, .hh-cta, .bookcard, .mlink, .news, .homefab, .keepcard { display: none !important; }
  /* On a calculator page, only the clean summary prints */
  body.ps-on > *:not(.psheet):not(svg) { display: none !important; }
  body.ps-on { padding: 0 !important; background: #fff !important; }
  body.ps-on .psheet { display: block; color: #151a17; font-size: 10.5pt; line-height: 1.45; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ps-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid #c4a168; }
  .ps-logo { width: 42px; height: 42px; flex: none; }
  .ps-wm1 { font-family: "Helvetica Neue", Arimo, Helvetica, Arial, sans-serif; font-size: 15pt; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
  .ps-wm2 { font-size: 7.5pt; font-weight: 800; letter-spacing: .34em; text-transform: uppercase; color: #7c5d20; }
  .ps-brk { margin-left: auto; text-align: right; font-size: 8.5pt; color: #4b524d; }
  .ps-brk b { display: block; font-size: 9.5pt; color: #151a17; }
  .ps-title { margin: 18px 0 2px; font-size: 20pt; font-weight: 800; letter-spacing: -.02em; }
  .ps-date { margin: 0; color: #5b625d; }
  .ps-hero { display: flex; flex-wrap: wrap; gap: 10px 40px; margin-top: 14px; padding: 12px 16px; border: 1.5px solid #c4a168; border-radius: 10px; }
  .ps-hero span { display: block; font-size: 9pt; font-weight: 700; color: #5b625d; }
  .ps-hero b { font-size: 17pt; font-weight: 800; letter-spacing: -.01em; }
  .ps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; align-items: start; }
  .ps-sec { break-inside: avoid; }
  .ps-sec h2 { margin: 16px 0 4px; font-size: 9.5pt; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7c5d20; }
  .ps-sec table { width: 100%; border-collapse: collapse; }
  .ps-sec td { padding: 3px 0; border-bottom: 1px solid #e6e0d4; vertical-align: top; }
  .ps-sec td + td { padding-left: 12px; text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .ps-sec tr.tot td { border-bottom: 0; border-top: 1.5px solid #151a17; font-weight: 800; }
  .ps-note { margin-top: 16px; font-size: 8.5pt; line-height: 1.5; color: #5b625d; break-inside: avoid; }
  .ps-foot { margin-top: 14px; padding-top: 10px; border-top: 1px solid #e6e0d4; font-size: 9pt; line-height: 1.55; break-inside: avoid; }
  .ps-foot b { font-size: 10pt; }
}
@page { margin: 14mm 14mm 16mm; }
