/* Refurbishh — site styles. Tokens first; light theme with a dark variant. */

:root {
  --brand: #0f5c55;
  --brand-2: #0b4641;
  --brand-soft: #e3f1ef;
  --on-brand: #ffffff;
  --accent: #f2a33a;
  --accent-ink: #3b2504;
  --ink: #1b2422;
  --ink-2: #4a5754;
  --muted: #6b7774;
  --line: #e2e6e5;
  --bg: #f7f8f7;
  --surface: #ffffff;
  --surface-2: #f1f4f3;
  --ok: #18794e; --ok-bg: #e4f5ec;
  --warn: #9a5b00; --warn-bg: #fdf1dc;
  --err: #b42318; --err-bg: #fdecea;
  --blue: #1d5fbf; --blue-bg: #e7effb;
  --violet: #6e3fc2; --violet-bg: #efe9fa;
  --star: #f2a33a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 32, 30, .05), 0 6px 20px rgba(16, 32, 30, .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #4fb3a8; --brand-2: #7fcfc5; --brand-soft: #16302d; --on-brand: #062421;
    --ink: #e8eeec; --ink-2: #c2cdca; --muted: #93a19e; --line: #2a3532;
    --bg: #0f1514; --surface: #161e1c; --surface-2: #1c2624;
    --ok: #5fd39b; --ok-bg: #133324; --warn: #f0b75a; --warn-bg: #33270f; --err: #ff8a80; --err-bg: #3a1714;
    --blue: #7fb0ff; --blue-bg: #15233a; --violet: #b99bff; --violet-bg: #251b3a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #4fb3a8; --brand-2: #7fcfc5; --brand-soft: #16302d; --on-brand: #062421;
  --ink: #e8eeec; --ink-2: #c2cdca; --muted: #93a19e; --line: #2a3532;
  --bg: #0f1514; --surface: #161e1c; --surface-2: #1c2624;
  --ok: #5fd39b; --ok-bg: #133324; --warn: #f0b75a; --warn-bg: #33270f; --err: #ff8a80; --err-bg: #3a1714;
  --blue: #7fb0ff; --blue-bg: #15233a; --violet: #b99bff; --violet-bg: #251b3a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; }
h4 { font-size: 1rem; margin-top: .6em; }
p { margin: 0 0 1em; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 5px; font-size: .9em; }
main { min-height: 70vh; outline: none; }
.i { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }

/* Layout helpers */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow, .narrow { max-width: 780px; }
.pad { padding-top: 40px; padding-bottom: 40px; }
.pad-sm { padding: 12px 14px; margin: 0; }
.center { text-align: center; }
.row { display: flex; align-items: flex-start; }
.row.center { justify-content: center; }
.between { justify-content: space-between; }
.end { justify-content: flex-end; }
.center-y { align-items: center; }
.gap { gap: 14px; } .gap-sm { gap: 8px; }
.wrap-row { flex-wrap: wrap; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.block { display: block; }
.stack { display: grid; gap: 14px; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: .82rem; margin-top: .8em; }
.right { text-align: right; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 46em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; margin-top: 20px; }
.two-col.even { grid-template-columns: 1fr 1fr; }
.side { display: grid; gap: 16px; }
.sticky { position: sticky; top: 84px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  font: 600 .95rem/1.2 var(--font); cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-2); }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { filter: brightness(.95); }
.btn.light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn.danger { background: var(--err); color: #fff; }
.btn.ghost.danger { background: var(--surface); color: var(--err); }
.btn.sm { padding: 7px 12px; font-size: .85rem; border-radius: 8px; }
.btn.lg { padding: 14px 24px; font-size: 1.02rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.ghost.busy::after { border-color: var(--brand); border-right-color: transparent; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; }
.link:hover { text-decoration: underline; }
.link.danger { color: var(--err); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow.sm { font-size: .88rem; margin-bottom: 12px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--ink); cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .i { width: 20px; height: 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.22rem; color: var(--ink); letter-spacing: -.02em; text-decoration: none !important; }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: var(--accent); }
.logo-mark .i { width: 19px; height: 19px; }
.logo.light { color: #fff; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav > a:not(.btn) { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: .95rem; text-decoration: none; }
.nav > a:not(.btn):hover, .nav > a.active { color: var(--brand); background: var(--brand-soft); }
.nav-spacer { flex: 1; }
.nav-toggle { display: none; margin-left: auto; }
.bell-wrap, .menu-wrap { position: relative; }
.bell .dot { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--err); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; }
.bell .dot[hidden] { display: none; }
.user-btn { border: 0; background: none; padding: 2px; cursor: pointer; border-radius: 50%; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; z-index: 50; }
.dropdown.notif { width: 360px; max-height: 70vh; overflow-y: auto; }
.dd-head { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.dd-head.row { flex-direction: row; }
.user-menu a, .user-menu button { display: block; width: 100%; text-align: left; padding: 10px 14px; color: var(--ink); font-size: .93rem; }
.user-menu a:hover, .user-menu button:hover { background: var(--surface-2); text-decoration: none; }
.notif-item { display: grid; gap: 2px; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .9rem; }
.notif-item span { color: var(--ink-2); }
.notif-item small { color: var(--muted); font-size: .78rem; }
.notif-item.unread { background: var(--brand-soft); }
.notif-item:hover { text-decoration: none; background: var(--surface-2); }

/* Avatars, stars, pills, tags */
.avatar { --h: 160; display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; font-weight: 700; font-size: .95rem;
  background: hsl(var(--h) 55% 90%); color: hsl(var(--h) 55% 28%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avatar { background: hsl(var(--h) 35% 24%); color: hsl(var(--h) 60% 82%); } }
.avatar.sm { width: 34px; height: 34px; font-size: .8rem; border-radius: 50%; }
.avatar.lg { width: 58px; height: 58px; font-size: 1.15rem; border-radius: 14px; }
.avatar.xl { width: 88px; height: 88px; font-size: 1.7rem; border-radius: 20px; }
.stars { display: inline-flex; gap: 1px; color: var(--line); }
.stars .on { color: var(--star); }
.stars .i { width: 17px; height: 17px; }
.stars.sm .i { width: 14px; height: 14px; }
.rating-line { display: flex; align-items: center; gap: 6px; font-size: .92rem; margin: 2px 0 6px; flex-wrap: wrap; }
.rating-line.lg { font-size: 1.05rem; }
.rating-line.sm { font-size: .84rem; margin: 0; }
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.pill.green { background: var(--ok-bg); color: var(--ok); }
.pill.amber { background: var(--warn-bg); color: var(--warn); }
.pill.red { background: var(--err-bg); color: var(--err); }
.pill.blue { background: var(--blue-bg); color: var(--blue); }
.pill.violet { background: var(--violet-bg); color: var(--violet); }
.pill.gray { background: var(--surface-2); color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 7px; font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--ink-2); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 10px; border-radius: 7px; background: var(--surface-2); color: var(--ink-2); font-size: .8rem; }
a.tag:hover { text-decoration: none; background: var(--brand-soft); color: var(--brand); }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; color: var(--ink-2); margin-bottom: 8px; align-items: center; }
.meta-line > span { display: inline-flex; align-items: center; gap: 5px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card + .card { margin-top: 16px; }
.stack > .card + .card, .side > .card + .card { margin-top: 0; }
.notice { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--blue-bg); color: var(--ink); margin: 14px 0; font-size: .93rem; }
.notice.err { background: var(--err-bg); color: var(--err); }
.notice.warn { background: var(--warn-bg); }
.notice.action { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.notice[hidden] { display: none; }
.loading { display: grid; place-items: center; padding: 80px 0; }
.loading.sm { padding: 24px 0; }
.spinner { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2); color: var(--muted); margin-bottom: 10px; }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 85% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent), linear-gradient(180deg, var(--brand-soft), var(--bg)); padding: 64px 0 56px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; }
.search-bar { display: grid; grid-template-columns: 1.4fr .8fr auto; gap: 8px; background: var(--surface); padding: 8px; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); margin-top: 26px; max-width: 640px; }
.search-bar select, .search-bar input { border: 0; background: var(--surface-2); padding: 13px 14px; border-radius: 9px; font: inherit; color: var(--ink); width: 100%; }
.hero-note { font-size: .88rem; margin-top: 12px; }
.hero-card { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 22px; display: grid; gap: 16px; transform: rotate(1deg); }
.hc-row { display: flex; align-items: center; gap: 10px; }
.hc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.hc-pros { display: grid; gap: 10px; }
.hc-pros > div { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; background: var(--surface-2); }
.hc-pros span:last-child { display: grid; }
.hc-pros small { color: var(--muted); }
.hc-cost { display: grid; gap: 4px; }
.hc-cost strong { font-size: 1.3rem; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 28px 0 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.page-head { margin-bottom: 20px; }
.page-head h1 { margin-bottom: 4px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.cat-tile { display: grid; gap: 4px; justify-items: start; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: border-color .15s, transform .15s; }
.cat-tile:hover { border-color: var(--brand); text-decoration: none; transform: translateY(-2px); }
.cat-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); flex: none; margin-bottom: 6px; }
.cat-icon .i { width: 22px; height: 22px; }
.cat-icon.sm { width: 34px; height: 34px; border-radius: 9px; margin: 0; }
.cat-icon.sm .i { width: 18px; height: 18px; }
.cat-icon.xl { width: 64px; height: 64px; border-radius: 16px; margin: 0; }
.cat-icon.xl .i { width: 32px; height: 32px; }

.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.how-step { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.how-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 12px; flex: none; }

.trust-band { background: var(--brand); color: #e9f5f3; padding: 56px 0; margin: 28px 0; }
.trust-band h2 { color: #fff; font-size: 1.7rem; }
.trust-band .eyebrow { color: var(--accent); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 24px 0; }
.trust-item { display: grid; gap: 6px; align-content: start; }
.trust-item p { color: #c8e3df; font-size: .92rem; margin: 0; }
.trust-num { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.trust-band .link-arrow { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .trust-band { background: #123d39; } }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.guide-card { display: grid; gap: 6px; align-content: start; color: var(--ink); transition: border-color .15s; margin: 0 !important; }
.guide-card:hover { border-color: var(--brand); text-decoration: none; }
.guide-card h3, .guide-card p { margin: 0; }
.big { font-size: 1.25rem; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; }
.guide-mini { display: grid; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: .92rem; }
.guide-mini:hover { color: var(--brand); text-decoration: none; }

.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 36px; border-radius: 20px;
  background: linear-gradient(120deg, var(--brand), #1b7a70); color: #e9f5f3; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; max-width: 36em; }

/* Directory & category */
.cat-hero { background: linear-gradient(180deg, var(--brand-soft), var(--bg)); padding: 34px 0 30px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; margin-bottom: 14px; color: var(--ink-2); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { padding: 7px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: .88rem; }
.chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px 16px; align-items: end; }
.filters .field { margin: 0; min-width: 120px; }
.result-count { margin: 0 0 10px; font-size: .9rem; }
.pro-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; margin: 0 !important; }
.pro-card-main { display: flex; gap: 16px; color: var(--ink); min-width: 0; }
.pro-card-main:hover { text-decoration: none; }
.pro-card-main:hover h3 { color: var(--brand); }
.pro-card h3 { margin: 0; }
.blurb { color: var(--ink-2); font-size: .92rem; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pro-card-actions { display: grid; gap: 8px; }
.search-inline { display: flex; align-items: center; gap: 10px; max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; margin-top: 18px; color: var(--muted); }
.search-inline input { border: 0; background: none; padding: 13px 0; font: inherit; color: var(--ink); flex: 1; outline: none; }
.hub-group { margin-bottom: 32px; }
.hub-group[hidden], .guide-card[hidden] { display: none; }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: .9rem; }
.field > span { font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); font-size: .8rem; }
input, select, textarea { font: inherit; color: var(--ink); }
.field input, .field select, .field textarea, .thread-form textarea, .reply-form textarea, .note-in {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus, .thread-form textarea:focus, .reply-form textarea:focus, .note-in:focus, .search-bar :focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 10px 0; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 14px; margin-bottom: 10px; }
.consent { padding: 12px; background: var(--surface-2); border-radius: 10px; }
h3.sub, h2.sub { margin-top: 22px; }

/* Wizard */
.steps { display: flex; list-style: none; padding: 0; margin: 0 0 18px; gap: 6px; counter-reset: s; overflow-x: auto; }
.steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); padding: 8px 0; border-top: 3px solid var(--line); white-space: nowrap; min-width: 92px; }
.steps li span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); font-size: .75rem; font-weight: 700; flex: none; }
.steps li.done { border-color: var(--brand); color: var(--ink-2); }
.steps li.done span { background: var(--brand); color: #fff; }
.steps li.now { border-color: var(--accent); color: var(--ink); font-weight: 600; }
.steps li.now span { background: var(--accent); color: var(--accent-ink); }
.wizard-card { padding: 28px; }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); gap: 12px; }
.exact-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--ok-bg); margin-bottom: 16px; font-size: .92rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choice { display: grid; justify-items: center; gap: 4px; padding: 18px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .9rem var(--font); cursor: pointer; }
.choice:hover, .choice.on { border-color: var(--brand); background: var(--brand-soft); }
.option-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.option { position: relative; cursor: pointer; }
.option input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.option span { display: block; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 500; }
.option input:checked + span, .seg input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.option input:focus-visible + span, .seg input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { position: relative; cursor: pointer; }
.seg span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 99px; font-size: .9rem; }
.zip-out { min-height: 1.5em; }
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; border-radius: 12px; background: var(--surface-2); margin-bottom: 18px; }
.summary small { display: block; color: var(--muted); font-size: .78rem; }
.opt-account { padding: 16px; border: 1px dashed var(--line); border-radius: 12px; margin-top: 6px; }
.opt-account p { margin: 4px 0 10px; font-size: .9rem; }
.done-card { text-align: center; padding: 40px 28px; }
.done-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); margin-bottom: 14px; }
.done-icon.warn { background: var(--warn-bg); color: var(--warn); }
.done-icon .i { width: 32px; height: 32px; }
.next-steps ol { margin: 0; padding-left: 20px; color: var(--ink-2); }
.next-steps li { margin-bottom: 6px; }
.next-steps { margin-top: 16px; }

/* Profile */
.profile-hero { background: linear-gradient(180deg, var(--brand-soft), var(--bg)); padding: 30px 0; }
.profile-head { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.profile-head h1 { margin-bottom: 4px; }
.profile-cta { display: grid; gap: 8px; max-width: 240px; text-align: center; }
.profile-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.main-col { display: grid; gap: 16px; }
.main-col > .card + .card { margin-top: 0; }
.facts { display: grid; gap: 10px; margin: 14px 0 0; }
.facts > div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
.facts.cols { grid-template-columns: 1fr 1fr; }
.facts.cols > div { grid-template-columns: 1fr; gap: 0; }
.facts dt { color: var(--muted); font-size: .86rem; }
.facts dd { margin: 0; font-weight: 500; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pf-tile { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); height: 100%; }
.pf-tile img, .pf-art { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.pf-art { --h: 160; display: grid; place-items: center; color: hsl(var(--h) 40% 40%);
  background: linear-gradient(135deg, hsl(var(--h) 50% 88%), hsl(calc(var(--h) + 40) 50% 80%)); }
.pf-art .i { width: 36px; height: 36px; opacity: .6; }
.pf-tile figcaption { padding: 10px 12px; display: grid; gap: 2px; font-size: .86rem; }
.pf-tile figcaption span { color: var(--muted); }
.pf-wrap { position: relative; }
.pf-del { position: absolute; top: 8px; right: 8px; background: var(--surface); box-shadow: var(--shadow); }
.review-summary { display: flex; gap: 28px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 6px; flex-wrap: wrap; }
.big-score { display: grid; justify-items: center; gap: 2px; }
.big-score strong { font-size: 2.6rem; line-height: 1; }
.bars { flex: 1; display: grid; gap: 5px; min-width: 200px; }
.bar-row { display: grid; grid-template-columns: 36px 1fr 30px; gap: 10px; align-items: center; font-size: .84rem; }
.bar-row.wide { grid-template-columns: 140px 1fr 110px; margin-bottom: 8px; }
.bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--star); border-radius: 4px; }
.bar-row.wide .bar i { background: var(--brand); }
.reviews { display: grid; }
.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.card.review { padding: 20px; border-bottom: 1px solid var(--line); }
.reviews .review:last-child { border-bottom: 0; }
.review p { color: var(--ink-2); margin-bottom: 6px; }
.verified { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-size: .8rem; font-weight: 600; }
.reply { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--brand); background: var(--surface-2); border-radius: 0 10px 10px 0; font-size: .92rem; }
.reply p { margin: 4px 0 0; }
.reply-form { display: grid; gap: 8px; margin-top: 10px; justify-items: start; }
.checks { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.checks li > span:nth-child(2) { flex: 1; }
.checks li.passed > .i { color: var(--ok); }
.checks li.failed > .i { color: var(--err); }
.checks li > .i { color: var(--warn); }
.checks.big li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.checks.big li:last-child { border: 0; }

/* Cost guide */
.cost-card .cost-big { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; color: var(--brand); }
.zip-form { display: flex; gap: 8px; align-items: end; }
.zip-form .field { margin: 0; width: 120px; }
.ranges { display: grid; gap: 10px; margin-top: 22px; }
.range-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; font-size: .86rem; }
.range-label { color: var(--ink-2); }
.range-track { position: relative; height: 12px; border-radius: 6px; background: var(--surface-2); }
.range-fill { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 60%, var(--accent))); }
.calc { display: flex; gap: 20px; align-items: end; flex-wrap: wrap; }
.calc .field { margin: 0; width: 200px; }
.calc-out { display: grid; padding: 10px 16px; border-radius: 10px; background: var(--brand-soft); min-width: 220px; }
.calc-out strong { font-size: 1.3rem; color: var(--brand); }
.factors { display: grid; gap: 14px; margin: 0; }
.factors dt { font-weight: 700; }
.factors dd { margin: 2px 0 0; color: var(--ink-2); }
.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tips li { display: flex; gap: 10px; }
.tips li .i { color: var(--ok); margin-top: 3px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-row > div { padding: 12px; border-radius: 10px; background: var(--surface-2); }
.stat-row small { display: block; color: var(--muted); font-size: .78rem; }
.stat-row strong { font-size: 1.2rem; }
.cta-card h4 { margin: 18px 0 0; }
.cta-card .btn + .btn { margin-top: 8px; }

/* Auth */
.auth { display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 440px; padding: 32px; }
.demo { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.demo summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.demo-list { display: grid; gap: 6px; }
.demo-btn { display: grid; text-align: left; gap: 1px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); }
.demo-btn:hover { border-color: var(--brand); }
.demo-btn small { color: var(--muted); }

/* Homeowner projects */
.project-list { display: grid; gap: 12px; }
.project-row { display: flex; gap: 16px; align-items: center; color: var(--ink); margin: 0 !important; padding: 18px 20px; }
.project-row:hover { border-color: var(--brand); text-decoration: none; }
.project-row h3, .project-row p { margin: 0; }
.project-meta { display: flex; gap: 12px; align-items: center; font-size: .86rem; color: var(--muted); flex-wrap: wrap; justify-content: flex-end; }
.hl { color: var(--brand); font-weight: 700; }
.timeline { display: flex; list-style: none; padding: 0; margin: 6px 0 18px; gap: 4px; overflow-x: auto; }
.timeline li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); position: relative; min-width: 76px; }
.timeline li::before { content: ""; position: absolute; top: 12px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.timeline li:first-child::before { display: none; }
.timeline li.done::before { background: var(--brand); }
.timeline li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); z-index: 1; color: #fff; }
.timeline li.done { color: var(--ink); font-weight: 600; }
.timeline li.done span { background: var(--brand); border-color: var(--brand); }
.timeline li span .i { width: 13px; height: 13px; }
.compare { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.compare-card { margin: 0 !important; display: grid; gap: 12px; align-content: start; }
.compare-card.lost { opacity: .6; }
.compare-card.won { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok-bg); }
.compare-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 12px; background: var(--surface-2); border-radius: 10px; }
.compare-facts dt { font-size: .76rem; color: var(--muted); }
.compare-facts dd { margin: 0; font-weight: 700; }
.compare-facts dd.best { color: var(--ok); }
.quote-note { font-size: .88rem; color: var(--ink-2); margin: 0; font-style: italic; }
.star-pick { display: flex; gap: 6px; margin-bottom: 14px; }
.star-pick label { display: grid; justify-items: center; cursor: pointer; color: var(--line); position: relative; }
.star-pick input { position: absolute; opacity: 0; }
.star-pick .i { width: 34px; height: 34px; }
.star-pick small { color: var(--muted); font-size: .72rem; }
.star-pick:has(input:checked) label { color: var(--star); }
.star-pick label:has(input:checked) ~ label { color: var(--line); }
.star-pick:hover label { color: var(--star) !important; }
.star-pick label:hover ~ label { color: var(--line) !important; }
.star-pick input:focus-visible + span { outline: 2px solid var(--brand); border-radius: 4px; }
.details summary { cursor: pointer; font-weight: 600; }
.details p { margin-top: 12px; }

/* Messages */
.thread { display: grid; grid-template-rows: auto 1fr auto; max-height: 560px; }
.thread-modal .thread { height: min(70vh, 560px); }
.thread-head { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.thread-body { overflow-y: auto; padding: 14px 2px; display: flex; flex-direction: column; gap: 10px; }
.thread-body:not(:empty) { min-height: 140px; }
.msg { max-width: 82%; align-self: flex-start; }
.msg p { margin: 0; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--surface-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg small { color: var(--muted); font-size: .74rem; padding: 0 4px; }
.msg.mine { align-self: flex-end; text-align: right; }
.msg.mine p { background: var(--brand); color: var(--on-brand); border-radius: 14px 14px 4px 14px; text-align: left; }
.thread-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.thread-form .form-error { grid-column: 1 / -1; margin: 0; }

/* Modal + toast */
.modal-wrap { position: fixed; inset: 0; background: rgba(10, 20, 18, .5); display: grid; place-items: center; padding: 16px; z-index: 80; animation: fade .15s; }
.modal { position: relative; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; background: var(--surface); border-radius: 16px; padding: 26px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal-x { position: absolute; top: 12px; right: 12px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; }
.modal-x:hover { background: var(--surface-2); }
.modal h3 { padding-right: 30px; }
@keyframes fade { from { opacity: 0; } }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 90; width: min(420px, calc(100% - 32px)); }
.toast { padding: 12px 16px; border-radius: 10px; background: var(--ink); color: var(--surface); box-shadow: var(--shadow); font-size: .92rem; animation: fade .2s; transition: opacity .3s; }
.toast.err { background: var(--err); color: #fff; }
.toast.out { opacity: 0; }

/* Dashboards */
.dash { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.dash-nav { position: sticky; top: 84px; display: grid; gap: 14px; }
.dash-biz { display: grid; gap: 6px; justify-items: start; padding: 0 10px; }
.dash-nav nav { display: grid; gap: 2px; }
.dash-nav nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .94rem; }
.dash-nav nav a:hover { background: var(--surface-2); text-decoration: none; }
.dash-nav nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: .74rem; font-weight: 700; text-align: center; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 8px; }
.stat { display: grid; gap: 4px; align-content: start; margin: 0 !important; padding: 18px; color: var(--ink); }
a.stat:hover { border-color: var(--brand); text-decoration: none; }
.stat small { color: var(--muted); font-size: .8rem; }
.stat strong { font-size: 1.6rem; letter-spacing: -.02em; }
.stat.attn { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.meter { height: 7px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; background: var(--brand); }
.list { padding: 4px 0; }
.card.list { padding: 4px 6px; }
.lead-row { display: flex; gap: 14px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.lead-row:last-child { border: 0; }
a.lead-row:hover { background: var(--surface-2); text-decoration: none; border-radius: 10px; }
.lead-row.new strong:first-of-type { color: var(--brand); }
.lead-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; font-size: .86rem; }
.pill-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pill-tabs a { padding: 7px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: .88rem; font-weight: 500; }
.pill-tabs a span { color: var(--muted); margin-left: 4px; }
.pill-tabs a.active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.pill-tabs a.active span { color: rgba(255, 255, 255, .75); }
.pill-tabs a:hover { text-decoration: none; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.contact-line { display: flex; gap: 10px; align-items: center; margin: 0 0 10px; overflow-wrap: anywhere; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.plan-card { position: relative; display: grid; gap: 6px; align-content: start; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; }
.plan-grid.static .plan-card { cursor: default; }
.plan-card input { position: absolute; opacity: 0; }
.plan-card:has(input:checked), .plan-card.current { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.plan-card .price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.plan-card .price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.plan-card em { position: absolute; top: -11px; right: 16px; font-style: normal; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); }
.plan-card .tips { margin: 12px 0 16px; font-size: .9rem; }
input[type=range] { flex: 1; accent-color: var(--brand); }
.admin-pro { display: grid; gap: 12px; margin: 0 !important; }
.kv { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .86rem; color: var(--muted); }
.kv strong { color: var(--ink); }
.checks-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.checks-table td { padding: 9px 6px; border-top: 1px solid var(--line); vertical-align: middle; }
.checks-table .btn + .btn { margin-left: 4px; }
.note-in { max-width: 280px; padding: 7px 10px; font-size: .86rem; }

/* Static pages */
.big-steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 22px; }
.big-steps li { display: flex; gap: 18px; }
.big-steps h3 { margin-top: 4px; }
.big-steps.compact { gap: 12px; }
.prose h2 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.pro-hero { padding: 64px 0; }
.pro-hero .lead { margin: 0 auto 26px; }
.compare-table { padding: 0; overflow-x: auto; margin-bottom: 30px; }
.compare-table table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.compare-table th, .compare-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table th { background: var(--surface-2); font-size: .82rem; color: var(--muted); }
.compare-table td:last-child { color: var(--brand); font-weight: 600; }

/* Footer */
.site-footer { background: #0c2522; color: #a9c2be; margin-top: 60px; padding: 48px 0 24px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid a:not(.logo) { display: block; color: #a9c2be; padding: 3px 0; }
.footer-grid p { margin-top: 12px; max-width: 30em; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 18px; font-size: .8rem; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .two-col, .profile-body, .lead-grid, .two-col.even { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .how-grid, .trust-grid { grid-template-columns: 1fr 1fr; }
  .sticky { position: static; }
  .dash { grid-template-columns: 1fr; }
  .dash-nav { position: static; }
  .dash-nav nav { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .dash-nav nav a { white-space: nowrap; }
  .dash-nav .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .pad { padding-top: 26px; padding-bottom: 26px; }
  .nav-toggle { display: inline-grid; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; box-shadow: var(--shadow); }
  .site-header.open .nav { display: flex; }
  .nav-spacer { display: none; }
  .nav .btn { margin-top: 6px; }
  .bell-wrap, .menu-wrap { align-self: flex-start; }
  .dropdown, .dropdown.notif { position: fixed; left: 16px; right: 16px; top: auto; width: auto; }
  .search-bar { grid-template-columns: 1fr; }
  .how-grid, .trust-grid, .grid-2, .option-list, .summary, .plan-grid, .stat-row, .facts.cols { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .pro-card { grid-template-columns: 1fr; }
  .pro-card-actions { grid-template-columns: 1fr 1fr; }
  .pro-card-main .avatar.lg { width: 46px; height: 46px; }
  .facts > div { grid-template-columns: 1fr; gap: 0; }
  .project-row { flex-wrap: wrap; }
  .project-meta { justify-content: flex-start; width: 100%; }
  .lead-row { flex-wrap: wrap; }
  .lead-meta { justify-content: flex-start; width: 100%; }
  .bar-row.wide { grid-template-columns: 100px 1fr; }
  .bar-row.wide span:last-child { grid-column: 2; }
  .range-row { grid-template-columns: 1fr; gap: 4px; }
  .wizard-card { padding: 20px; }
  .card { padding: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 26px; }
  .checks-table td:nth-child(3) { display: none; }
  .profile-cta { max-width: none; width: 100%; }
  .filters .field { flex: 1 1 140px; }
}
