/* Best Reverse Loans — site styles */
:root {
  --paper: #F4F7F5;
  --surface: #FFFFFF;
  --ink: #1C2B2A;
  --muted: #4F5E5B;
  --line: #D3DDD8;
  --blue: #24497A;
  --blue-deep: #18345A;
  --blue-soft: #E6EDF6;
  --amber: #E9A93A;
  --amber-soft: #FBEFD6;
  --green: #2C6A4E;
  --green-soft: #E3F0E8;
  --focus: #E9A93A;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
  --measure: 66ch;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 19px; line-height: 1.62; }
@media (max-width: 600px) { body { font-size: 18px; padding-bottom: 76px; } }
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); font-weight: 650; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.32rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.lede { font-size: 1.18em; color: var(--muted); max-width: 60ch; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.small { font-size: .86em; color: var(--muted); }

/* ---------- header ---------- */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.head-row { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand b { font-family: var(--serif); font-size: 1.28rem; font-weight: 650; letter-spacing: -0.01em; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: .95rem; }
.nav a:hover { background: var(--blue-soft); }
.head-call { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 10px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; }
.head-call:hover { background: var(--blue-deep); color: #fff; }
.menu { display: none; }
@media (max-width: 960px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; display: flex; align-items: center; font-weight: 700; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .menu-panel { display: grid; }
  .menu-panel { display: none; position: absolute; right: 0; top: 56px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-width: 250px; box-shadow: 0 18px 40px -18px rgba(28,43,42,.45); }
  .menu-panel a { padding: 12px 14px; color: var(--ink); text-decoration: none; border-radius: 8px; }
  .menu-panel a:hover { background: var(--blue-soft); }
}
@media (max-width: 600px) { .head-call { display: none; } .brand b { font-size: 1.12rem; } }

/* ---------- the strike (signature element) ---------- */
.myth { font-family: var(--serif); font-style: italic; color: var(--muted); }
.myth s { text-decoration: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M3 12 C 60 6, 110 15, 160 9 S 250 6, 297 10' fill='none' stroke='%23E9A93A' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 0 58%; background-size: 100% .5em; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 2px; }
.draw s { background-size: 0% .5em; animation: strike 1s .5s cubic-bezier(.6,.05,.35,1) forwards; }
@keyframes strike { to { background-size: 100% .5em; } }
@media (prefers-reduced-motion: reduce) { .draw s { animation: none; background-size: 100% .5em; } }
[id] { scroll-margin-top: 96px; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 48px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero { padding: 32px 0 36px; } }
.hero .heard { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin: 0 0 14px; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { margin-bottom: 26px; }
.where { color: var(--muted); font-size: .95rem; margin: 0 0 18px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 22px; border-radius: 10px; font-weight: 700; font-size: 1.02rem; text-decoration: none; border: 2px solid var(--blue); cursor: pointer; font-family: var(--sans); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn-quiet { background: transparent; color: var(--blue); }
.btn-quiet:hover { background: var(--blue-soft); }
@media (max-width: 480px) { .btns .btn { flex: 1 1 100%; } }

/* "In plain terms" note */
.note-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px 24px 18px; position: relative; }
.note-card h2 { font-size: 1.3rem; margin-bottom: 14px; }
.terms { margin: 0; display: grid; gap: 0; }
.terms div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: baseline; }
.terms dt { color: var(--muted); }
.terms dd { margin: 0; font-weight: 700; text-align: right; }
.note-card .small { margin: 12px 0 0; }
@media (max-width: 480px) { .terms div { grid-template-columns: 1fr; gap: 2px; } .terms dd { text-align: left; } }

/* ---------- sections ---------- */
.band { padding: 64px 0; }
.band-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .band { padding: 44px 0; } }
.band-head { max-width: 60ch; margin-bottom: 28px; }
.band-head p { color: var(--muted); }

/* trust line */
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-top: 18px; padding-bottom: 18px; color: var(--muted); font-size: .95rem; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--green); }

/* myth list (home preview + myths page) */
.myths { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
@media (max-width: 820px) { .myths { grid-template-columns: 1fr; } }
.myths li { padding: 24px 0; border-top: 1px solid var(--line); }
.myths .said { font-family: var(--serif); font-style: italic; font-size: 1.22rem; color: var(--muted); margin: 0 0 10px; }
.myths .said .myth { color: var(--muted); }
.myths .true { margin: 0; }
.myths .true b { color: var(--green); }
.myth-full { list-style: none; padding: 0; margin: 0; counter-reset: m; }
.myth-full > li { padding: 32px 0; border-top: 1px solid var(--line); }
.myth-full .said { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 1.7rem); line-height: 1.3; margin: 0 0 14px; }
.myth-full h2 { font-size: 1.25rem; font-family: var(--sans); font-weight: 700; color: var(--green); margin: 0 0 8px; letter-spacing: 0; }
.myth-full .fine { color: var(--muted); font-size: .9rem; }

/* steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; padding-top: 16px; border-top: 3px solid var(--blue); }
.steps li::before { content: counter(s); display: block; font-family: var(--serif); font-size: 2rem; font-weight: 650; color: var(--blue); line-height: 1; margin-bottom: 10px; }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); margin: 0; }

/* payout options */
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
@media (max-width: 900px) { .ways { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ways { grid-template-columns: 1fr; } }
.ways > div { padding: 22px; border-right: 1px solid var(--line); }
.ways > div:last-child { border-right: 0; }
@media (max-width: 900px) { .ways > div { border-bottom: 1px solid var(--line); } .ways > div:nth-child(2n) { border-right: 0; } }
@media (max-width: 560px) { .ways > div { border-right: 0; } }
.ways h3 { font-size: 1.12rem; }
.ways p { margin: 0; color: var(--muted); font-size: .95rem; }

/* fit / not fit */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; gap: 24px; } }
.fit ul { padding-left: 0; list-style: none; margin: 0; }
.fit li { padding: 10px 0 10px 34px; position: relative; border-top: 1px solid var(--line); }
.fit li::before { position: absolute; left: 4px; top: 10px; font-weight: 700; }
.fit .yes li::before { content: "✓"; color: var(--green); }
.fit .no li::before { content: "–"; color: var(--muted); }

/* faq */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 40px 18px 0; font-weight: 700; font-size: 1.06rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.5rem; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 18px; max-width: var(--measure); }

/* about */
.about { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: start; }
@media (max-width: 640px) { .about { grid-template-columns: 1fr; gap: 18px; } }
.about img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 640px) { .about img { width: 120px; height: 120px; } }

/* contact form */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 24px; } }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; min-height: 52px; padding: 10px 12px; border: 1.5px solid #B8C6C0; border-radius: 10px; background: var(--paper); color: var(--ink); width: 100%; }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: .84rem; color: var(--muted); line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; }
.disclose { font-size: .8rem; color: var(--muted); line-height: 1.45; margin: 0; }
.form-msg { margin: 0; font-weight: 700; }
.form-msg.err { color: #9B2C1F; }
.form-msg.ok { color: var(--green); }
.hp { position: absolute; left: -9999px; }

/* inner pages */
.page-head { padding: 44px 0 28px; border-bottom: 1px solid var(--line); background: var(--surface); }
.crumbs { font-size: .9rem; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }
.byline { font-size: .9rem; color: var(--muted); margin: 6px 0 0; }
.page-body { padding: 40px 0 56px; }
.with-aside { display: grid; grid-template-columns: minmax(0, var(--measure)) 300px; gap: 56px; align-items: start; }
@media (max-width: 1000px) { .with-aside { grid-template-columns: 1fr; gap: 32px; } }
.aside { position: sticky; top: 96px; display: grid; gap: 18px; }
@media (max-width: 1000px) { .aside { position: static; } }
.aside .note-card h2 { font-size: 1.15rem; }
.callout { background: var(--amber-soft); border-left: 4px solid var(--amber); padding: 16px 18px; border-radius: 0 10px 10px 0; margin: 1.2em 0; }
.callout p:last-child { margin: 0; }
.answer { font-size: 1.08em; }
.sources { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 2em; padding-top: 1em; }
.sources ul { padding-left: 1.1em; }
table.cmp { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--surface); margin: 1em 0; }
table.cmp th, table.cmp td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp th { font-family: var(--sans); background: var(--blue-soft); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.states { columns: 4 180px; column-gap: 32px; padding: 0; list-style: none; }
.states li { padding: 4px 0; break-inside: avoid; }

/* footer */
.site-foot { background: #172524; color: #DCE5E1; padding: 48px 0 32px; font-size: .9rem; }
.site-foot a { color: #FFFFFF; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 20px; } }
.site-foot h2 { color: #fff; font-size: 1.1rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; display: grid; gap: 10px; color: #B9C7C2; font-size: .82rem; line-height: 1.5; }
.legal p { margin: 0; }
.ehl { display: inline-flex; align-items: center; gap: 8px; }
.ehl svg { width: 26px; height: 26px; }

/* mobile call bar */
.mobile-bar { display: none; }
@media (max-width: 600px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -16px rgba(28,43,42,.4); }
  .mobile-bar a { min-height: 52px; font-size: 1rem; }
}

/* chat widget theme hooks (inherited into the widget's shadow DOM) */
:root { --navy: #24497A; --navy-ink: #FFFFFF; --surface: #FFFFFF; --ink: #1C2B2A; --brass: #18345A; --brass-bright: #E9A93A; --brass-soft: #FBEFD6;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif; --font-display: "Literata", Georgia, serif; --font-mono: "Atkinson Hyperlegible", system-ui, sans-serif; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
