/* Lighthouse Borrowing Calculator. Ported from the approved prototype (prototype.html, 20 Nov 2026); every selector is
   scoped to .lhbc so nothing leaks into the theme. The prototype's container queries are media queries here (760px). */
.lhbc { --navy: #0C1D3E; --crimson: #B82843; --crimson-band: #b4364b; --pink: #FF4D6D; --pink-soft: #FF8FA3;
  --paper: #F3F2EF; --white: #FFFFFF; --slate: #5B6577; --mist: #9FB0C9; --line: #E2DFD9; --wash: #F0EEEA;
  --font: "Geist", -apple-system, "Segoe UI", Arial, sans-serif;
  --hand: "Nanum Pen Script", "Bradley Hand", cursive;
  --ease: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light; }
.lhbc, .lhbc * { box-sizing: border-box; }
.lhbc [hidden] { display: none !important; }
.lhbc { min-height: 100%; background: var(--paper); color: var(--navy); font-family: var(--font); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.lhbc h1, .lhbc h2, .lhbc h3 { margin: 0; line-height: 1.08; text-wrap: balance; }
.lhbc p { margin: 0; }
.lhbc a { color: var(--crimson); text-underline-offset: 3px; }
.lhbc img { max-width: 100%; }
.lhbc button, .lhbc input, .lhbc select { font: inherit; color: inherit; }
.lhbc ::selection { background: var(--pink); color: var(--white); }
.lhbc :focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.lhbc .wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.lhbc .ico { width: 1em; height: 1em; flex: none; }
.lhbc .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lhbc .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lhbc .admin-warn { background: #fff4d6; color: #5a3b00; border-bottom: 1px solid #e8c877; font-size: 14px; padding: 10px 16px; }
.lhbc .admin-warn .wrap { display: grid; gap: 4px; }

/* ---------- header ---------- */
.lhbc .site-head { background: var(--white); border-bottom: 1px solid var(--line); }
.lhbc .site-head .wrap { display: flex; align-items: center; min-height: 68px; }
.lhbc .site-head img { height: 30px; width: auto; display: block; max-width: none; }
.lhbc .logo-link { display: inline-flex; padding: 8px 0; }

/* ---------- the calculator ---------- */
.lhbc .calc-zone { padding-block: 40px 56px; }
.lhbc .calc { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-areas: "a r"; column-gap: 48px; row-gap: 22px; align-items: start; }
.lhbc .left { grid-area: a; display: grid; gap: 20px; }
.lhbc .right { grid-area: r; }
.lhbc h1 { font-weight: 800; font-size: clamp(32px, 4vw, 50px); letter-spacing: -.02em; }
/* Site-standard brush underline: the same asset, position and stroke weight as /refix-review and /car-loans/. */
.lhbc .scribble { position: relative; display: inline-block; white-space: nowrap; isolation: isolate; }
.lhbc .scribble::after { content: ""; position: absolute; z-index: -1; left: 0; bottom: -.3em; width: 100%; height: .56em; background: url("../img/underline.webp") left center / 100% 100% no-repeat; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .lhbc .scribble.pending::after { clip-path: inset(0 100% 0 0); }
  .lhbc .scribble.pending.in::after { animation: lhbc-underline 500ms ease-in-out 300ms forwards; }
  @keyframes lhbc-underline { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}

/* cards */
.lhbc .card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; display: grid; gap: 20px; box-shadow: 0 14px 28px -26px rgba(12, 29, 62, .45); }
.lhbc .card-h { display: flex; align-items: center; gap: 12px; }
.lhbc .step { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.lhbc .card-h h2 { font-size: 20px; font-weight: 800; flex: 1; }
.lhbc .q { display: grid; gap: 8px; }
.lhbc .q > label, .lhbc .q > .ql { font-size: 15px; font-weight: 600; }
.lhbc .q small, .lhbc .hint { font-size: 13px; color: var(--slate); }
.lhbc .nums { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 6px; }
.lhbc .nums button { border: 1.5px solid var(--line); background: var(--white); border-radius: 12px; min-height: 46px; font-weight: 700; font-size: 15px; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.lhbc .nums button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.lhbc .amt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.lhbc .big { display: flex; align-items: baseline; gap: 2px; border-bottom: 2px solid var(--navy); cursor: text; }
.lhbc .big span { font-weight: 800; font-size: 24px; color: var(--slate); }
.lhbc .big input { border: 0; background: none; font-weight: 800; font-size: 28px; letter-spacing: -.015em; width: 100%; min-width: 0; padding: 0 0 3px; font-variant-numeric: tabular-nums; min-height: 44px; }
.lhbc .big input:focus { outline: none; }
.lhbc .big:focus-within { border-color: var(--crimson); }
.lhbc select.freq { appearance: none; -webkit-appearance: none; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235B6577' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center / 11px no-repeat; padding: 0 32px 0 12px; min-height: 44px; font-size: 16px; font-weight: 600; cursor: pointer; }
.lhbc .money { display: flex; align-items: center; gap: 4px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); padding: 0 12px; cursor: text; }
.lhbc .money span { color: var(--slate); font-weight: 600; }
.lhbc .money em { font-style: normal; color: var(--slate); font-size: 13px; white-space: nowrap; }
.lhbc .money input { border: 0; background: none; padding: 12px 0; font-size: 16px; width: 100%; min-width: 0; font-weight: 700; font-variant-numeric: tabular-nums; min-height: 44px; }
.lhbc .money input:focus { outline: none; }
.lhbc .money:focus-within { border-color: var(--navy); }
.lhbc .divider { height: 1px; background: var(--line); }
.lhbc .sources { display: grid; gap: 10px; }
.lhbc .sources:empty { display: none; }
.lhbc .addsrc { position: relative; }
.lhbc .addsrc select { width: 100%; appearance: none; -webkit-appearance: none; border: 1.5px dashed var(--crimson); border-radius: 12px; background: none; color: var(--crimson); font-weight: 700; font-size: 16px; min-height: 46px; padding: 0 14px 0 40px; cursor: pointer; }
.lhbc .addsrc::before { content: "+"; position: absolute; left: 16px; top: 50%; transform: translateY(-52%); color: var(--crimson); font-weight: 800; font-size: 20px; pointer-events: none; }
.lhbc .src { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--wash); }
.lhbc .src-h { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; }
.lhbc .src-h button { border: 0; background: none; color: var(--crimson); font-weight: 600; font-size: 13px; cursor: pointer; min-height: 44px; padding: 0 4px; text-decoration: underline; text-underline-offset: 3px; }
.lhbc .src .amt { grid-template-columns: minmax(0, 1fr) auto; }
.lhbc .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lhbc .tile { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); background: var(--white); border-radius: 16px; min-height: 60px; padding: 10px 14px; font-weight: 700; font-size: 15px; text-align: left; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.lhbc .tile svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--slate); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lhbc .tile[aria-pressed="true"] { border-color: var(--crimson); background: #FFF5F7; box-shadow: inset 0 0 0 1px var(--crimson); }
.lhbc .tile[aria-pressed="true"] svg { stroke: var(--crimson); }
.lhbc .multi { display: flex; flex-wrap: wrap; gap: 8px; }
.lhbc .multi button { border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; min-height: 44px; padding: 8px 16px 8px 12px; font-weight: 600; font-size: 14.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease; }
.lhbc .multi button::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; background: var(--white) center / 12px no-repeat; }
.lhbc .multi button[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: var(--white); }
.lhbc .multi button[aria-pressed="true"]::before { border-color: var(--pink); background-color: var(--pink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.2L9.5 3.6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* A field that appears because of a choice sits on the same quiet tray as the other-income rows: no accent rule, no box in a box. */
.lhbc .hv { display: grid; gap: 6px; padding: 14px 14px 12px; background: var(--wash); border-radius: 14px; font-size: 14px; font-weight: 600; }
.lhbc .hv .money, .lhbc .src .money { border-color: transparent; }
.lhbc .hv .money:focus-within, .lhbc .src .money:focus-within { border-color: var(--navy); }
.lhbc .hv > label { color: var(--navy); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes lhbc-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
  .lhbc .hv:not([hidden]), .lhbc [data-reveal-no]:not([hidden]), .lhbc [data-show="couple"]:not([hidden]) { animation: lhbc-open 240ms var(--ease) both; }
}
.lhbc .hv label.l2 { margin-top: 6px; }
.lhbc .hv .hint { font-weight: 400; }
.lhbc .tabs2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lhbc .tabs2 button { display: grid; gap: 2px; text-align: left; border: 1.5px solid var(--line); background: var(--white); border-radius: 16px; padding: 12px 14px; min-height: 64px; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease; }
.lhbc .tabs2 b { font-size: 17px; font-variant-numeric: tabular-nums; }
.lhbc .tabs2 span { font-size: 12.5px; color: var(--slate); }
.lhbc .tabs2 button[aria-pressed="true"] { border-color: var(--crimson); background: #FFF5F7; box-shadow: inset 0 0 0 1px var(--crimson); }
.lhbc .minnote { display: block; margin-top: 6px; }
.lhbc input { scroll-margin-top: 90px; scroll-margin-bottom: 120px; }
.lhbc .txt { border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); padding: 12px 14px; font-size: 17px; font-weight: 600; min-height: 50px; width: 100%; }
.lhbc .txt:focus { outline: none; border-color: var(--navy); }
.lhbc .txt[aria-invalid="true"] { border-color: var(--crimson); background: #FFF7F8; }
.lhbc .err { display: none; font-size: 13px; color: var(--crimson); font-weight: 600; }
.lhbc .txt[aria-invalid="true"] + .err { display: block; }
.lhbc .submit { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 8px 0 4px; }
.lhbc .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 28px; font-weight: 700; font-size: 16px; cursor: pointer; background: var(--crimson); color: var(--white); transition: transform 160ms var(--ease), background-color 160ms ease; }
.lhbc .btn:active { transform: scale(.97); }
.lhbc .btn[disabled] { background: var(--wash); color: var(--slate); box-shadow: none; cursor: default; transform: none; }
.lhbc .btn[aria-busy="true"] { opacity: .75; cursor: progress; }
@media (hover: hover) and (pointer: fine) { .lhbc .btn:not([disabled]):hover { background: #9F2039; } }
.lhbc .btn.go { width: 100%; min-height: 58px; padding-inline: 18px; font-size: 17px; box-shadow: 0 14px 26px -14px rgba(184, 40, 67, .7); }
.lhbc .consent { font-size: 12.5px; color: var(--slate); max-width: 46ch; }
.lhbc .consent a { color: var(--navy); }
.lhbc .errsum, .lhbc .senderr { font-size: 14px; color: var(--crimson); font-weight: 600; }
.lhbc .errsum:empty, .lhbc .senderr:empty { display: none; }

/* ---------- the result ---------- */
.lhbc .right { position: sticky; top: 24px; display: grid; justify-items: center; gap: 16px; }
.lhbc .right .wait { display: none; }
.lhbc .right.locked .total, .lhbc .right.locked .note, .lhbc .right.locked .limit, .lhbc .right.locked .small, .lhbc .right.locked .inside, .lhbc .right.locked .deplbl, .lhbc .right.locked .thanks { display: none; }
.lhbc .right.locked .house { background: var(--wash); }
.lhbc .right.locked .house .dep { height: 0 !important; }
.lhbc .right.locked .wait { display: grid; position: absolute; left: 12%; right: 12%; top: 46%; justify-items: center; text-align: center; gap: 2px; color: var(--slate); }
.lhbc .right.locked .wait span { font-size: 15px; font-weight: 600; }
.lhbc .right.locked .wait b { font-size: 26px; color: var(--navy); font-weight: 800; }
.lhbc .right.locked .wait small { font-size: 13px; margin-top: 6px; }
.lhbc .thanks { display: grid; gap: 4px; text-align: center; max-width: 40ch; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-size: 14px; }
.lhbc .thanks b { font-size: 15px; }
.lhbc .total { position: relative; display: grid; justify-items: center; gap: 2px; text-align: center; padding: 10px 0 14px; }
.lhbc .total .tl { font-size: 15px; font-weight: 700; color: var(--slate); }
.lhbc .tpw { position: relative; display: inline-block; padding: 14px 24px; margin: 2px 0 4px; max-width: 100%; }
.lhbc .total .tp { font-weight: 800; font-size: clamp(40px, 4.4vw, 60px); letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lhbc .ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; fill: none; stroke: var(--crimson); stroke-width: 3; stroke-linecap: round; }
.lhbc .ring path, .lhbc .pen path { vector-effect: non-scaling-stroke; }
.lhbc .total .ts { font-family: var(--hand); color: var(--crimson); font-size: 24px; line-height: 1; transform: rotate(-2deg); margin-top: 2px; }
.lhbc .housewrap { position: relative; width: min(100%, 400px); aspect-ratio: 1; }
.lhbc .house { position: absolute; inset: 0; clip-path: polygon(50% 3%, 97% 42%, 97% 100%, 3% 100%, 3% 42%); background: var(--navy); }
.lhbc .house .dep { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--pink); transition: height 520ms var(--ease); }
.lhbc .house .inside { position: absolute; left: 10%; right: 10%; top: 42%; display: grid; gap: 6px; justify-items: center; text-align: center; color: var(--white); }
.lhbc .house .lbl { font-size: 14px; color: var(--mist); font-weight: 600; }
.lhbc .house .price { font-weight: 800; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.025em; line-height: 1; font-variant-numeric: tabular-nums; }
.lhbc .house .fn { font-size: 14px; color: var(--mist); font-variant-numeric: tabular-nums; min-height: 1.5em; }
.lhbc .pf { display: inline-flex; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 2px; margin-top: 2px; }
.lhbc .pf button { border: 0; background: none; color: var(--mist); font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 5px 11px; min-height: 30px; cursor: pointer; }
.lhbc .pf button[aria-pressed="true"] { background: var(--white); color: var(--navy); }
.lhbc .house .deplbl { position: absolute; left: 0; right: 0; bottom: 0; height: 0; display: flex; justify-content: center; align-items: center; font-weight: 700; font-size: 14px; color: var(--navy); transition: height 520ms var(--ease); font-variant-numeric: tabular-nums; }
.lhbc .pen { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; fill: none; stroke: var(--crimson); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .lhbc .right.reveal .pen path, .lhbc .right.reveal .ring path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lhbc-draw 900ms var(--ease) forwards; }
  .lhbc .right.reveal .pen path:nth-child(2) { animation-delay: 250ms; }
  .lhbc .right.reveal .pen path:nth-child(3) { animation-delay: 500ms; }
  .lhbc .right.reveal .ring path { animation-delay: 700ms; }
  @keyframes lhbc-draw { to { stroke-dashoffset: 0; } }
}
.lhbc .note { position: absolute; right: 2%; bottom: -42px; transform: rotate(-3deg); display: flex; gap: 4px; align-items: flex-start; font-family: var(--hand); color: var(--crimson); font-size: 23px; line-height: .95; white-space: nowrap; }
.lhbc .note svg { width: 30px; height: 18px; fill: none; stroke: var(--crimson); stroke-width: 2; stroke-linecap: round; }
.lhbc .limit { margin-top: 36px; font-size: 14px; color: var(--crimson); text-align: center; max-width: 40ch; min-height: 1.5em; }
.lhbc .small { font-size: 12px; color: var(--slate); line-height: 1.45; text-align: center; max-width: 56ch; }
.lhbc .small a { color: var(--slate); }

/* ---------- sticky phone bar (fixed; shown by the phone query below) ---------- */
.lhbc .mbar { display: none; }

/* ---------- Why Lighthouse band, FAQ, footer (the refix patterns) ---------- */
.lhbc .band { background: var(--crimson-band); color: var(--white); padding: 56px 0 64px; margin-top: 16px; }
.lhbc .band :focus-visible, .lhbc footer :focus-visible { outline-color: var(--white); }
.lhbc .tag { display: inline-block; background: var(--navy); color: var(--white); font-size: 22px; font-weight: 700; padding: 12px 22px; border-radius: 6px; transform: rotate(-3deg); box-shadow: 0 14px 24px -14px rgba(12, 29, 62, .55); }
.lhbc .why-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.lhbc .why-head h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; max-width: 18em; }
.lhbc .why-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; }
.lhbc .why-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center; }
.lhbc .why-list .pen { position: static; width: 26px; height: 26px; fill: none; stroke: var(--white); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lhbc .why-list b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.lhbc .band .cost { margin-top: 30px; font-size: 14px; color: rgba(255, 255, 255, .92); max-width: 60em; }
.lhbc .faq { padding: 56px 0 64px; }
.lhbc .faq .wrap { display: grid; gap: 24px; }
.lhbc .faq h2 { font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
.lhbc .faq-list details { border-bottom: 1px solid #d8d4cd; }
.lhbc .faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 700; min-height: 44px; font-size: 16px; }
.lhbc .faq-list summary::-webkit-details-marker { display: none; }
.lhbc .faq-list summary .ico { color: var(--crimson); transition: transform 200ms var(--ease); margin-top: 4px; width: 16px; height: 16px; }
.lhbc .faq-list details[open] summary .ico { transform: rotate(180deg); }
.lhbc .faq-list p { padding-bottom: 18px; color: var(--slate); max-width: 44em; font-size: 15px; }
.lhbc footer { background: var(--navy); color: #c3cee0; font-size: 13px; padding: 40px 0 48px; }
.lhbc footer img { height: 28px; width: auto; }
.lhbc footer p { margin-top: 14px; max-width: 70em; line-height: 1.55; }
.lhbc footer a { color: var(--white); }

/* ---------- desktop ---------- */
@media (min-width: 761px) {
  .lhbc .band { padding: 88px 0 96px; margin-top: 40px; }
  .lhbc .tag { font-size: 28px; padding: 14px 28px; }
  .lhbc .why-head h2 { font-size: clamp(30px, 3.4vw, 44px); }
  .lhbc .why-list { grid-template-columns: 1fr 1fr; gap: 24px 48px; margin-top: 48px; max-width: 1040px; }
  .lhbc .faq { padding: 96px 0; }
  .lhbc .faq .wrap { grid-template-columns: 1fr 2fr; gap: 56px; align-items: start; }
  .lhbc .faq h2 { font-size: 40px; }
  .lhbc footer { padding: 48px 0; }
}

/* ---------- phones (the prototype's 760px container query) ---------- */
@media (max-width: 760px) {
  .lhbc .wrap { padding-inline: 16px; }
  .lhbc .site-head .wrap { min-height: 56px; }
  .lhbc .site-head img { height: 26px; }
  .lhbc .calc-zone { padding-block: 16px 16px; }
  .lhbc .calc { grid-template-columns: 1fr; grid-template-areas: "a" "r"; row-gap: 26px; }
  .lhbc .left { gap: 16px; }
  .lhbc h1 { font-size: 30px; }
  .lhbc .card { padding: 18px 16px; border-radius: 18px; gap: 18px; }
  .lhbc .card-h h2 { font-size: 19px; }
  .lhbc .big input { font-size: 30px; }
  .lhbc .right { position: static; padding: 4px 0; gap: 14px; }
  .lhbc .right.locked { display: none; }
  .lhbc .housewrap { width: min(100%, 330px); }
  .lhbc .total .tp { font-size: 44px; }
  .lhbc .tpw { padding: 12px 22px; }
  .lhbc .note { font-size: 21px; bottom: -38px; }
  .lhbc .limit { margin-top: 32px; }
  .lhbc .btn.go { font-size: 16px; padding-inline: 14px; gap: 6px; }
  .lhbc .tile { flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding: 12px 8px; font-size: 14.5px; line-height: 1.2; }
  .lhbc .mbar { display: flex; position: fixed; left: 14px; right: 14px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 30; align-items: center; gap: 10px; background: var(--navy); color: var(--white); border-radius: 18px; padding: 8px; box-shadow: 0 12px 28px -10px rgba(12, 29, 62, .65); transition: opacity 200ms ease, transform 260ms var(--ease); }
  .lhbc .mbar.off, .lhbc .mbar.typing { opacity: 0; transform: translateY(16px); pointer-events: none; }
  .lhbc .mbar .prog { position: absolute; left: 14px; right: 14px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
  .lhbc .mbar .prog i { display: block; height: 100%; width: 100%; background: var(--pink); transform: scaleX(0); transform-origin: left; transition: transform 200ms linear; }
  .lhbc .mbar .mcta { flex: 1; border: 0; border-radius: 999px; background: var(--crimson); color: var(--white); font-weight: 700; font-size: 15.5px; min-height: 50px; padding: 0 16px; cursor: pointer; }
  .lhbc.has-bar footer { padding-bottom: calc(48px + 90px + env(safe-area-inset-bottom, 0px)); }
  html.lhbc-has-bar { scroll-padding-bottom: 120px; }
}
@media (max-width: 360px) {
  .lhbc h1 { font-size: 27px; }
  .lhbc .total .tp { font-size: 38px; }
  .lhbc .nums { grid-template-columns: 1.3fr repeat(4, 1fr); gap: 4px; }
  .lhbc .nums button { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .lhbc .house .dep, .lhbc .house .deplbl, .lhbc .btn, .lhbc .nums button, .lhbc .tile, .lhbc .multi button, .lhbc .tabs2 button, .lhbc .mbar, .lhbc .mbar .prog i, .lhbc .faq-list summary .ico { transition: none; }
}
.lhbc .btn[disabled] svg { display: none; }
.lhbc .total:focus { outline: none; }
/* Short desktop windows: the pinned result column must fit, so the house shrinks; below 820px tall it scrolls with the page instead. */
@media (min-width: 761px) and (max-height: 1000px) {
  .lhbc .housewrap { width: min(100%, 320px); }
  .lhbc .right { gap: 12px; }
  .lhbc .limit { margin-top: 28px; }
  .lhbc .total { padding: 6px 0 10px; }
}
@media (min-width: 761px) and (max-height: 820px) {
  .lhbc .right { position: static; }
}

/* ---------- design pass (20 Nov 2026): browser surfaces, tactile states, the start-here note, the reveal, the band ---------- */
.lhbc input, .lhbc select { caret-color: var(--crimson); accent-color: var(--crimson); }
.lhbc .tile, .lhbc .nums button, .lhbc .multi button, .lhbc .tabs2 button, .lhbc .pf button, .lhbc .mbar .mcta { transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 120ms var(--ease); }
.lhbc .tile:active, .lhbc .nums button:active, .lhbc .multi button:active, .lhbc .tabs2 button:active, .lhbc .pf button:active, .lhbc .mbar .mcta:active { transform: scale(.97); }
.lhbc .btn.go { transition: transform 160ms var(--ease), background-color 160ms ease, box-shadow 160ms ease; }
@media (hover: hover) and (pointer: fine) {
  .lhbc .tile:not([aria-pressed="true"]):hover, .lhbc .nums button:not([aria-pressed="true"]):hover, .lhbc .tabs2 button:not([aria-pressed="true"]):hover { border-color: var(--mist); }
  .lhbc .multi button:not([aria-pressed="true"]):hover { border-color: var(--navy); }
  .lhbc .addsrc select:hover { background-color: #FFF5F7; }
  .lhbc .btn.go:not([disabled]):hover { transform: translateY(-1px); box-shadow: 0 18px 30px -14px rgba(184, 40, 67, .75); }
  .lhbc .src-h button:hover, .lhbc .faq-list summary:hover { color: var(--crimson); }
}
/* "start here": the pen points at the first field */
/* "start here": a handwritten cue under the headline, its arrow landing on step 1 */
.lhbc .start { display: flex; align-items: flex-start; gap: 6px; margin: -4px 0 -18px 6px; font-family: var(--hand); font-size: 34px; line-height: .9; color: var(--crimson); transform: rotate(-3deg); transform-origin: left top; pointer-events: none; }
.lhbc .start svg { width: 36px; height: 40px; flex: none; fill: none; stroke: var(--crimson); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
/* the thank-you note is a slip of paper, like the rest of the brand's notes */
.lhbc .thanks { background: #fcfcfa; border: 0; border-radius: 4px; padding: 16px 20px 18px; transform: rotate(-1deg); box-shadow: 0 1px 0 rgba(12, 29, 62, .05), 0 26px 44px -28px rgba(12, 29, 62, .5); }
.lhbc .thanks .pen { position: static; width: 28px; height: 28px; margin: 0 auto 2px; stroke-width: 2.6; }
/* the reveal: the result rises in, the pen draws, the price counts up (reduced motion: everything is simply there) */
@media (prefers-reduced-motion: no-preference) {
  @keyframes lhbc-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
  .lhbc .right.reveal > .total { animation: lhbc-rise 520ms var(--ease) both; }
  .lhbc .right.reveal > .housewrap { animation: lhbc-rise 520ms var(--ease) 90ms both; }
  .lhbc .right.reveal > .limit { animation: lhbc-rise 520ms var(--ease) 180ms both; }
  .lhbc .right.reveal > .small { animation: lhbc-rise 520ms var(--ease) 260ms both; }
  @keyframes lhbc-rise-note { from { opacity: 0; transform: translateY(12px) rotate(-1deg); } to { opacity: 1; transform: translateY(0) rotate(-1deg); } }
  .lhbc .right.reveal > .thanks { animation: lhbc-rise-note 420ms var(--ease) both; }
  .lhbc .band .why-list .pen path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .lhbc .band.draw .why-list .pen path { animation: lhbc-draw 620ms var(--ease) forwards; animation-delay: calc(var(--i, 0) * 140ms); }
}
.lhbc .why-list li { padding: 2px 0; }

/* ---------- phone pass (20 Nov 2026): touch behaviour, targets, legibility ---------- */
.lhbc button, .lhbc input, .lhbc select, .lhbc a, .lhbc summary, .lhbc .big, .lhbc .money { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.lhbc .pf { padding: 3px; margin-top: 4px; }
.lhbc .pf button { min-height: 44px; min-width: 96px; padding: 8px 14px; font-size: 14px; }
.lhbc .right { scroll-margin-top: 16px; }
@media (max-width: 760px) {
  .lhbc { font-size: 16px; }
  .lhbc .q small, .lhbc .hint, .lhbc .hv .hint { font-size: 14px; }
  .lhbc .consent { font-size: 13.5px; }
  .lhbc .small { font-size: 13px; }
  .lhbc .tabs2 span { font-size: 13px; }
  .lhbc .money em { font-size: 14px; }
  .lhbc .errsum, .lhbc .senderr { font-size: 15px; }
  .lhbc .house .lbl, .lhbc .house .fn { font-size: 14.5px; }
  .lhbc .limit, .lhbc .flag { font-size: 15px; }
  .lhbc .thanks { font-size: 15px; }
  .lhbc .faq-list p { font-size: 16px; }
}
/* the loan block starts higher in the roof so the deposit band keeps its proportion with a 44px toggle below it */
.lhbc .house .inside { top: 36%; gap: 5px; }
.lhbc .house .fn { min-height: 0; }
/* inline links get a thumb-sized hit area without changing the text */
.lhbc .consent a, .lhbc .small a, .lhbc footer p a { display: inline-block; padding: 8px 2px; margin: -8px -2px; }
/* the limit line and the deposit flag under the result, and the pen note clear of the ground line */
.lhbc .limit { display: grid; justify-items: center; gap: 2px; }
.lhbc .flag { margin-top: 6px; font-size: 14px; color: var(--crimson); text-align: center; max-width: 40ch; }
.lhbc .note { bottom: -62px; }
.lhbc .limit { margin-top: 58px; }
@media (max-width: 760px) { .lhbc .note { bottom: -58px; } .lhbc .limit { margin-top: 54px; } }
.lhbc .house .deplbl { padding: 0 7%; text-align: center; line-height: 1.25; }
