/* Brazos PreCloseQuote: navy carries structure, Brazos orange is the single accent stripe. */
:root {
  --bg: #eef1f4; --surface: #ffffff; --sunk: #f6f8fa; --ink: #15202a; --muted: #5a6773; --line: #d6dde4;
  --accent: #1b4872; --accent-ink: #ffffff; --accent-soft: #e3ecf5; --warn: #8a5300; --warn-soft: #fff3da;
  --bad: #a3271f; --good: #1d6b3d; --brand-orange: #f7941d; --brand-orange-text: #b45a00;
  --f-display: "EB Garamond", Garamond, "Times New Roman", serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 8px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1418; --surface: #161f26; --sunk: #121a20; --ink: #e5ecf1; --muted: #93a2ad; --line: #2a3742;
    --accent: #7fb0e0; --accent-ink: #0b1d30; --accent-soft: #172b40; --brand-orange: #f9a640; --brand-orange-text: #f9a640;
    --warn: #f0b65e; --warn-soft: #36280f; --bad: #f08a80; --good: #7fd19f; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1418; --surface: #161f26; --sunk: #121a20; --ink: #e5ecf1; --muted: #93a2ad; --line: #2a3742;
  --accent: #7fb0e0; --accent-ink: #0b1d30; --accent-soft: #172b40; --brand-orange: #f9a640; --brand-orange-text: #f9a640;
  --warn: #f0b65e; --warn-soft: #36280f; --bad: #f08a80; --good: #7fd19f; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.5; }
a { color: var(--accent); }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 24px 20px 48px; display: grid; gap: 20px; }
.wrap > * { min-width: 0; }
@media (max-width: 520px) { .wrap { padding-inline: 16px; } }

header.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand-orange); border-radius: 12px; padding: 16px 20px; }
.brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; min-width: 0; }
.logo-plate { background: #ffffff; border-radius: 8px; width: 230px; max-width: 100%; aspect-ratio: 3.6; overflow: hidden; flex: none; }
.logo-plate img { display: block; width: 111.2%; max-width: none; margin-left: -3.4%; margin-top: -6.1%; }
.brand-text { border-left: 1px solid var(--line); padding-left: 22px; min-width: 0; }
@media (max-width: 620px) { .brand-text { border-left: 0; padding-left: 0; } }
.brand h1 { font-family: var(--f-display); font-weight: 700; color: var(--accent); font-size: clamp(26px, 3.6vw, 32px); line-height: 1.05; margin: 0; }
.brand h1 .tm { color: var(--brand-orange); }
.tagline { margin: 6px 0 0; font-size: 14.5px; max-width: 56ch; }
.tagline b { color: var(--accent); }
.badge { display: inline-block; margin: 8px 0 0; padding: 4px 12px; border-left: 3px solid var(--brand-orange); background: var(--warn-soft); color: var(--ink); font-size: 13.5px; font-weight: 600; border-radius: 0 var(--r) var(--r) 0; max-width: 100%; }
.auth-card p.badge { text-align: left; color: var(--ink); justify-self: center; }
.sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.sub b { color: var(--ink); font-weight: 600; }
.userbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; }
.userbar .who { color: var(--muted); }
.userbar .who b { color: var(--ink); }
.userbar a { font-weight: 600; }
.userbar-main, .toggles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.toggles { gap: 6px; }
button.btn.ghost { background: transparent; color: var(--muted); padding: 6px 11px; font-size: 13px; }
button.btn.ghost:hover { color: var(--ink); border-color: var(--muted); }
.auth-toggles { display: flex; justify-content: flex-end; margin: -10px -10px -6px 0; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.pad { padding: 18px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.pad h2, .section-head h2 { font-family: var(--f-display); font-weight: 600; font-size: 23px; color: var(--accent); margin: 0; }
.pad p { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 70ch; }
.label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.req { color: var(--bad); font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; }
.hint { font-size: 12.5px; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; width: 100%; min-width: 0; }
select { font-weight: 600; }
input[aria-invalid="true"] { border-color: var(--bad); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.money { position: relative; }
.money span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.money input { padding-left: 26px; }
.big { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.big-select { font-size: 17px; padding: 11px 12px; }
.lookup { font-size: 13px; font-weight: 600; text-underline-offset: 2px; }
.form4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.form4 .wide { grid-column: span 2; }
@media (max-width: 520px) { .form4 .wide { grid-column: auto; } }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
legend { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 8px; }
.check { display: flex; gap: 10px; align-items: start; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }

button.btn { font: 600 14px var(--f-body); border-radius: var(--r); padding: 9px 14px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
button.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.btn.danger { color: var(--bad); border-color: var(--bad); }
button.btn:disabled { opacity: 0.5; cursor: default; }
button.link { border: 0; background: none; color: var(--accent); font: 600 14px var(--f-body); cursor: pointer; padding: 0; text-decoration: underline; }
.big-btn { padding: 11px 22px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.msg { font-size: 13.5px; }
.msg.err { color: var(--bad); }
.msg.ok { color: var(--good); }

/* Quote */
.quote { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
@media (max-width: 760px) { .quote { grid-template-columns: minmax(0, 1fr); } }
.quote .inputs { padding: 22px; display: grid; gap: 16px; align-content: start; border-right: 1px solid var(--line); }
@media (max-width: 760px) { .quote .inputs { border-right: 0; border-bottom: 1px solid var(--line); } }
.result { padding: 22px 26px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.annual .num { font-weight: 800; color: var(--accent); font-size: clamp(34px, 6.2vw, 56px); line-height: 1.05; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.annual .num .dash { color: var(--brand-orange); font-weight: 600; margin: 0 0.18em; }
.result > .per { color: var(--muted); font-size: 13.5px; margin-top: -10px; }
.rbar { display: grid; gap: 8px; margin-top: -4px; }
.rbar-track { position: relative; height: 14px; border-radius: 999px; background: var(--sunk); border: 1px solid var(--line); }
.rbar-fill { position: absolute; inset: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent-soft), var(--accent) 70%, var(--brand-orange)); transform-origin: left; }
.rbar-tick { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--surface); border-radius: 2px; box-shadow: 0 0 0 1px var(--accent); }
.rbar-dot { position: absolute; right: -4px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--brand-orange); border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--brand-orange); }
.rbar.anim .rbar-fill { animation: rbar-grow 0.7s ease-out; }
.rbar.anim .rbar-dot { animation: rbar-pop 0.35s 0.6s ease-out both; }
.rbar-labels { display: grid; grid-template-columns: 1fr 1fr 1fr; font-size: 12.5px; color: var(--muted); }
.rbar-labels span { display: grid; gap: 1px; }
.rbar-labels b { font-size: 15px; color: var(--ink); }
.rbar-labels .c { text-align: center; }
.rbar-labels .r { text-align: right; color: var(--brand-orange-text); font-weight: 600; }
.rbar-labels .r b { color: var(--brand-orange-text); }
@keyframes rbar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rbar-pop { from { transform: scale(0); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .rbar.anim .rbar-fill, .rbar.anim .rbar-dot { animation: none; } }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 520px) { .figs { grid-template-columns: minmax(0, 1fr); } }
.fig { padding: 12px 14px 12px 0; display: grid; gap: 2px; }
.fig + .fig { padding-left: 14px; border-left: 1px solid var(--line); }
@media (max-width: 520px) { .fig + .fig { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
.fig .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fig .k { font-size: 12.5px; color: var(--muted); }
.basis { font-size: 13.5px; color: var(--muted); display: grid; gap: 6px; }
.basis b { color: var(--ink); font-weight: 600; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); margin-right: 6px; }
.empty-result { color: var(--muted); font-size: 15px; padding-block: 20px; }
.contact-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; font-size: 13.5px; }
.contact-bar .cl { font-weight: 700; color: var(--accent); margin-right: 2px; }
.contact-bar .btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 999px; }
.contact-bar .btn:hover { background: var(--accent); color: #fff; }
.auth-card .contact-bar { justify-content: center; margin-top: 0; }
.incl {border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 10px 14px; border-radius: 0 var(--r) var(--r) 0; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.notbind {border-left: 4px solid var(--brand-orange); background: var(--warn-soft); padding: 10px 14px; border-radius: 0 var(--r) var(--r) 0; font-size: 13.5px; }
.notbind b { color: var(--warn); }
.send-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; align-items: start; }
.send-head > div:first-child { display: grid; gap: 6px; min-width: 0; flex: 1 1 320px; }
.send-summary { background: var(--accent-soft); border-radius: var(--r); padding: 10px 14px; font-size: 13.5px; flex: 0 1 340px; display: grid; gap: 2px; }
.send-summary b { font-size: 18px; color: var(--accent); }
#sendForm { display: grid; gap: 18px; }
.lo-card { background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; font-size: 14px; }
.sent { border: 1px solid var(--good); border-radius: var(--r); padding: 12px 14px; font-size: 14px; display: grid; gap: 4px; }
.sent b { color: var(--good); }
.disclaimer { font-size: 12.5px; color: var(--muted); max-width: 90ch; margin: 0; }
.state { padding: 40px 24px; text-align: center; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.state h2 { font-family: var(--f-display); font-weight: 600; color: var(--ink); margin: 0; font-size: 22px; }

/* Flood zone */
.flood-form { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: end; }
.addr-row { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.addr-row .a-street { flex: 3 1 260px; }
.addr-row .a-city { flex: 2 1 160px; }
.addr-row .a-state { flex: 0 0 70px; }
.addr-row .a-state input { text-transform: uppercase; }
.addr-row .a-zip { flex: 0 0 110px; }
/* Send form section headings: Brazos orange, a shade darker on light backgrounds so it stays readable */
legend.sec-head { font-size: 13.5px; font-weight: 800; letter-spacing: 0.08em; color: var(--brand-orange-text); border-bottom: 2px solid var(--brand-orange); padding-bottom: 3px; margin-bottom: 10px; }
#sendForm fieldset + fieldset { margin-top: 4px; }
#sendForm .form4 { align-items: end; } /* keep boxes lined up when a long label wraps */
.flood-form .f-street { flex: 3 1 260px; }
.flood-form .f-city { flex: 2 1 160px; }
.flood-form .f-state { flex: 0 0 70px; }
.flood-form .f-state input { text-transform: uppercase; }
.flood-form .f-zip { flex: 0 0 110px; }
.flood-card { border: 1px solid var(--line); border-left: 5px solid var(--muted); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 6px; }
.flood-card.high { border-left-color: var(--bad); }
.flood-card.mod { border-left-color: var(--warn); }
.flood-card.low { border-left-color: var(--good); }
.flood-zone { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.flood-zone .z { font-size: 30px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.flood-zone .r { font-weight: 700; }
.flood-card.high .r { color: var(--bad); }
.flood-card.mod .r { color: var(--warn); }
.flood-card.low .r { color: var(--good); }
.flood-card p { margin: 0; color: var(--ink); font-size: 14px; }
.flood-card .hint { font-size: 12.5px; }

/* Sign-in pages */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand-orange); border-radius: 12px; padding: 26px; display: grid; gap: 16px; }
.auth-card .logo-plate { width: 220px; margin-inline: auto; }
.auth-card h1 { font-family: var(--f-display); color: var(--accent); font-size: 28px; margin: 0; text-align: center; }
.auth-card h1 .tm { color: var(--brand-orange); }
.auth-card p { margin: 0; color: var(--muted); font-size: 14px; text-align: center; }
.auth-card form { display: grid; gap: 14px; }
.auth-card .btn.primary { width: 100%; padding: 11px; font-size: 15px; }

/* Admin */
nav.tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; flex-wrap: wrap; width: fit-content; max-width: 100%; }
nav.tabs button { border: 0; background: transparent; color: var(--muted); font: 600 14px var(--f-body); padding: 7px 16px; border-radius: 999px; cursor: pointer; }
nav.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: 600 13.5px var(--f-body); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.scroller { overflow-x: auto; }
table.data { border-collapse: collapse; width: 100%; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th { font-size: 12px; color: var(--muted); font-weight: 700; }
table.data input { padding: 6px 8px; min-width: 120px; }
.confirm-del { color: var(--bad); font-weight: 600; font-size: 13px; max-width: 34ch; }
.pill {font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.pill.new, .pill.off { background: var(--warn-soft); color: var(--warn); }
.subs { display: grid; gap: 12px; }
.q-search { flex: 0 1 320px; align-self: end; }
.qcard { gap: 10px; }
.qcard .meta { color: var(--muted); font-size: 13px; margin-top: -6px; }
.qstat { margin: 0; font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; margin: 2px 0 0; padding: 0; }
.steps li { border-top: 5px solid var(--line); padding-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.steps li.done { border-color: var(--accent); color: var(--accent); }
.steps li.cur { border-color: var(--brand-orange); color: var(--ink); }
.pill.st-new { background: var(--warn-soft); color: var(--warn); }
.pill.st-bound { background: transparent; color: var(--good); border: 1px solid var(--good); }
.pill.st-closed { background: var(--sunk); color: var(--muted); }
.subcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: grid; gap: 12px; }
.subcard.new { border-left: 4px solid var(--brand-orange); }
.sub-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; }
.sub-top h3 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 21px; color: var(--accent); }
.sub-top .meta { color: var(--muted); font-size: 13px; }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 24px; font-size: 14px; }
.sub-grid dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; }
.sub-grid dt { color: var(--muted); font-size: 12.5px; padding-top: 1px; }
.sub-grid dd { margin: 0; overflow-wrap: anywhere; }
.sub-actions select { width: auto; padding: 7px 10px; }

/* Printed / PDF estimate (only shown when printing) */
#printSheet { display: none; }
@media print {
  @page { size: letter; margin: 0.6in; }
  /* Always print light, even when the screen is in dark mode. */
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
    --bg: #ffffff; --surface: #ffffff; --sunk: #f6f8fa; --ink: #15202a; --muted: #5a6773; --line: #c9d1d9;
    --accent: #1b4872; --brand-orange: #f7941d; --warn: #8a5300; --warn-soft: #fff3da; color-scheme: light;
  }
  body { background: #fff; color: #15202a; font-size: 12pt; }
  body > *:not(#printSheet) { display: none !important; }
  #printSheet { display: block; }
}
.ps-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 3px solid var(--brand-orange); padding-bottom: 12px; }
.ps-head .logo-plate { width: 200px; }
.ps-head h1 { font-family: var(--f-display); color: var(--accent); font-size: 24pt; margin: 0; text-align: right; line-height: 1.1; }
.ps-head h1 small { display: block; font-family: var(--f-body); font-size: 10pt; color: var(--muted); font-weight: 500; }
.ps-big { margin: 22px 0 6px; }
.ps-big .k { font-size: 10pt; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ps-big .v { font-size: 30pt; font-weight: 800; color: var(--accent); }
.ps-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 11pt; }
.ps-table th, .ps-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.ps-table th { width: 40%; color: var(--muted); font-weight: 600; }
.ps-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 10px; }
.ps-cols h2 { font-size: 10pt; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.ps-cols p { margin: 0; font-size: 11pt; }
.ps-note { margin-top: 18px; border-left: 4px solid var(--brand-orange); padding: 8px 12px; font-size: 10pt; background: #fff7e8; }
.ps-incl { margin: 4px 0 10px; padding: 8px 12px; border-left: 4px solid var(--accent); background: #e8f0f8; font-size: 12pt; font-weight: 700; color: #111; }
.ps-agent {margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.ps-agent h2 { font-size: 10pt; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.ps-agent p { margin: 0; font-size: 11pt; }
.ps-cta {margin-top: 18px; border: 2px solid var(--accent); border-radius: 8px; padding: 10px 14px; font-size: 11pt; }
.ps-cta b { color: var(--accent); }
.ps-cta a { color: var(--accent); font-weight: 700; word-break: break-all; }
.ps-disc {margin-top: 12px; font-size: 9pt; color: var(--muted); }

/* ---------- Public home page (index.html) ---------- */
body.lp { background: var(--surface); }
.lp-in { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .lp-in { padding: 0 16px; } }
.lp a.lp-btn, a.lp-btn { display: inline-flex; align-items: center; justify-content: center; font: 600 14px var(--f-body); border-radius: var(--r); padding: 9px 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; white-space: nowrap; }
a.lp-btn:hover { border-color: var(--accent); color: var(--accent); }
a.lp-btn.primary { background: var(--brand-orange); border-color: var(--brand-orange); color: #1d1300; }
a.lp-btn.primary:hover { filter: brightness(1.05); color: #1d1300; }
a.lp-btn.big { padding: 13px 24px; font-size: 16px; }

.lp-nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); border-top: 4px solid var(--brand-orange); }
.lp-nav-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.lp-brand { display: flex; align-items: center; gap: 16px; text-decoration: none; min-width: 0; }
.lp-word { font-family: var(--f-display); font-weight: 700; font-size: 28px; color: var(--accent); line-height: 1; white-space: nowrap; }
.lp-powered { display: flex; align-items: center; gap: 8px; padding-left: 16px; border-left: 1px solid var(--line); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.lp-brand .lp-powered .logo-plate { width: 120px; }
.lp-word .tm, .lp h1 em { color: var(--brand-orange); }
.lp-nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lp-nav-links .toggles { margin-right: 4px; }
@media (max-width: 640px) {
  .lp-nav { position: static; }
  .lp-word { font-size: 24px; } .lp-brand { gap: 12px; }
  .lp-powered { padding-left: 12px; gap: 6px; font-size: 10.5px; } .lp-brand .lp-powered .logo-plate { width: 96px; }
  .lp-nav-in { flex-wrap: wrap; justify-content: center; row-gap: 8px; } .lp-nav-links { flex-wrap: nowrap; gap: 6px; }
  .lp-nav-links a.lp-btn.primary, .lp-nav-links [data-tg="theme"] { display: none; } /* the hero has Request access right below */
  .lp-nav-links a.lp-btn { padding: 7px 12px; }
}

.lp-hero { background: radial-gradient(1200px 500px at 85% 0%, var(--accent-soft), transparent 60%), linear-gradient(180deg, var(--bg), var(--surface)); padding: 64px 0 72px; }
.lp-hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .lp-hero-in { grid-template-columns: 1fr; gap: 36px; } .lp-hero { padding: 40px 0 48px; } }
.lp-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-orange-text); }
.lp h1 { font-family: var(--f-display); font-weight: 700; color: var(--accent); font-size: clamp(36px, 5.4vw, 60px); line-height: 1.04; margin: 0; letter-spacing: -0.01em; }
.lp h1 em { font-style: normal; display: inline; }
.lp-lead { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--ink); opacity: 0.85; margin: 18px 0 24px; max-width: 54ch; line-height: 1.6; }
.lp-lead b { color: var(--brand-orange-text); }
.lp-cta {display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.lp-small { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.lp-demo { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(15, 40, 70, 0.35), 0 8px 20px -12px rgba(15, 40, 70, 0.2); overflow: hidden; }
.lp-demo-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--sunk); border-bottom: 1px solid var(--line); }
.lp-demo-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.lp-demo-bar span:first-child { background: var(--brand-orange); }
.lp-demo-body { padding: 22px 24px 24px; display: grid; gap: 14px; }
.lp-demo-num { font-weight: 800; color: var(--accent); font-size: clamp(32px, 4.4vw, 46px); line-height: 1.05; letter-spacing: -0.02em; }
.lp-demo-num .dash { color: var(--brand-orange); font-weight: 600; margin: 0 0.15em; }
.lp-demo-home { color: var(--muted); font-size: 13.5px; margin-top: -8px; }
.lp-demo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chip { font-size: 13px; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.lp-chip.good { background: transparent; border: 1px solid var(--good); color: var(--good); font-weight: 600; }
.lp-demo .incl { font-size: 13px; }

.lp-sec { padding: 64px 0; }
.lp-sec.alt { background: var(--bg); }
.lp-sec h2 { font-family: var(--f-display); font-weight: 700; color: var(--accent); font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 28px; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 820px) { .lp-steps { grid-template-columns: 1fr; } }
.lp-steps li { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--surface); }
.lp-steps .n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 12px; }
.lp-steps li:nth-child(2) .n { background: var(--brand-orange); color: #1d1300; }
.lp h3 { font-size: 18px; margin: 0 0 6px; color: var(--ink); }
.lp-steps p, .lp-feat p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.lp-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .lp-feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lp-feats { grid-template-columns: 1fr; } }
.lp-feat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.lp-feat svg { width: 30px; height: 30px; fill: none; stroke: var(--brand-orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }

.lp-counties { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: center; }
@media (max-width: 820px) { .lp-counties { grid-template-columns: 1fr; } }
.lp-counties h2 { margin-bottom: 10px; }
.lp-counties p { margin: 0; color: var(--muted); font-size: 15px; }
.lp-county-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-county-list li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); font-weight: 600; font-size: 14px; background: var(--accent-soft); }
.lp-county-list li.more { border: 1px dashed var(--brand-orange); background: transparent; color: var(--brand-orange-text); }

.lp-req { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 36px; align-items: start; }
@media (max-width: 860px) { .lp-req { grid-template-columns: 1fr; } }
.lp-req-text h2 { margin-bottom: 10px; }
.lp-req-text p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.lp-req-text .contact-bar { margin-top: 4px; }
.lp-req-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand-orange); border-radius: 14px; padding: 22px; }
.lp-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.lp-foot { border-top: 1px solid var(--line); padding: 28px 0 36px; background: var(--surface); }
.lp-foot-in { display: flex; gap: 24px; align-items: start; flex-wrap: wrap; }
.lp .logo-plate { display: block; }
.lp-foot-brand { flex: none; }
.lp-foot-brand .logo-plate { width: 140px; }
.lp-foot-in > div:last-child { flex: 1 1 360px; display: grid; gap: 6px; }
.lp-foot p { margin: 0; font-size: 14px; }
.lp-disc { color: var(--muted); font-size: 12.5px !important; max-width: 90ch; }
@media (prefers-reduced-motion: no-preference) { html:has(body.lp) { scroll-behavior: smooth; } }

/* ---------- Slim signed-in header (calculator, My Quotes, admin) ---------- */
header.top.slim { padding: 12px 16px; gap: 10px 16px; }
.top.slim .lp-brand { gap: 12px; }
.top.slim .lp-powered { padding-left: 12px; }
.lp-powered .logo-plate { display: block; }
.top.slim .lp-word { margin: 0; font-size: 26px; }
.top.slim .lp-word .pill { font-family: var(--f-body); font-size: 12px; vertical-align: middle; }
.top.slim .lp-powered .logo-plate { width: 96px; }
.top-right { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 10px; margin-left: auto; }
.contact-bar.compact { margin: 0; }
.contact-bar.compact .cl, .contact-bar.compact .btn + .btn { display: none; } /* just the phone button up here */
.userbar-nav { display: flex; gap: 2px; }
.userbar-nav a { padding: 6px 8px;border-radius: var(--r); text-decoration: none; font-weight: 600; color: var(--ink); }
.userbar-nav a:hover { background: var(--sunk); }
.userbar-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.userbar-acct { display: flex; align-items: center; gap: 10px; padding-left: 14px; border-left: 1px solid var(--line); font-size: 13.5px; }
.userbar-acct .who { color: var(--muted); max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top.slim .tg-label { display: none; }
.subbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: -8px; padding: 0 6px; font-size: 13px; color: var(--muted); }
.subbar .sub { margin: 0; }
.badge-lite { font-weight: 600; color: var(--ink); }
.badge-lite::before { content: "\2605  "; color: var(--brand-orange); }
@media (max-width: 640px) {
  header.top.slim { padding: 10px 14px; }
  .top.slim .lp-word { font-size: 22px; }
  .top.slim .lp-powered > span:first-child { display: none; }
  .top.slim .lp-powered { padding-left: 10px; } .top.slim .lp-powered .logo-plate { width: 82px; }
  .top-right { justify-content: flex-start; }
  .userbar-acct { border-left: 0; padding-left: 0; }
}

/* ---------- Feature sections on the calculator: Check Flood Zone (blue) and Send to Brazos (orange) ---------- */
.feature { position: relative; overflow: hidden; padding-top: 0; box-shadow: 0 10px 30px -18px rgba(15, 40, 70, 0.35); }
.feature.flood { border: 1px solid var(--accent); border-top: 6px solid var(--accent); }
.feature.send { border: 1px solid var(--brand-orange); border-top: 6px solid var(--brand-orange); }
.feature-head { display: flex; gap: 16px; align-items: flex-start; margin: 0 -18px; padding: 18px 18px 16px; }
.feature.flood .feature-head { background: var(--accent-soft); }
.feature.send .feature-head { background: var(--warn-soft); }
.feature-head > div:not(.send-summary) { display: grid; gap: 4px; flex: 1 1 320px; min-width: 0; }
.feature-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.feature.flood .feature-icon { background: var(--accent); }
.feature.send .feature-icon { background: var(--brand-orange); }
.feature-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.feature.flood .feature-eyebrow { color: var(--accent); }
.feature.send .feature-eyebrow { color: var(--brand-orange-text); }
.pad.feature h2 { font-size: 28px; }
.pad.feature .feature-head p { color: var(--ink); opacity: 0.8; font-size: 14px; }
.feature.send .send-head { flex-wrap: wrap; }
.feature.send .send-summary { flex: 0 1 300px; background: var(--surface); align-self: center; }
@media (max-width: 560px) { .feature-icon { width: 40px; height: 40px; } .pad.feature h2 { font-size: 24px; } }
button.btn.cta { background: var(--brand-orange); border-color: var(--brand-orange); color: #1d1300; font-weight: 700; }
button.btn.cta:hover { filter: brightness(1.05); }
button.btn.flood-btn { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
