/* RealOffers app stylesheet */
:root {
    color-scheme: dark;
    --bg: #08090a;
    --bg-soft: #0d0f12;
    --surface: #101114;
    --surface-solid: #101114;
    --surface-2: #16181d;
    --surface-3: #20232a;
    --ink: #f4f5f6;
    --text-soft: #c5c9d2;
    --muted: #7d838f;
    --line: rgba(255, 255, 255, .085);
    --line-strong: rgba(255, 255, 255, .15);
    --hover: rgba(255, 255, 255, .055);
    --brand: #5e6ad2;
    --brand-2: #7c86e8;
    --brand-ink: #ffffff;
    --link: #8f98f0;
    --accent: #8a91a3;
    --warning: #f6bd48;
    --danger: #ff6b68;
    --leading-bg: rgba(94, 106, 210, .12);
    --leading-line: rgba(94, 106, 210, .3);
    --slot-bg-a: rgba(255, 255, 255, .04);
    --slot-bg-b: rgba(255, 255, 255, .075);
    --slot-border: rgba(255, 255, 255, .18);
    --slot-ink: #7d8798;
    --radius: 6px;
    --radius-sm: 4px;
    --shadow: 0 1px 0 rgba(255, 255, 255, .035) inset;
    --focus: 0 0 0 4px rgba(99, 91, 255, .18);
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f7f8fa;
    --bg-soft: #f0f1f4;
    --surface: #ffffff;
    --surface-solid: #ffffff;
    --surface-2: #f4f5f7;
    --surface-3: #eceef2;
    --ink: #17181c;
    --text-soft: #4f5664;
    --muted: #727988;
    --line: rgba(15, 23, 42, .095);
    --line-strong: rgba(15, 23, 42, .18);
    --hover: rgba(15, 23, 42, .055);
    --brand: #5e6ad2;
    --brand-2: #7c86e8;
    --brand-ink: #ffffff;
    --link: #4f5bbd;
    --accent: #626b7c;
    --warning: #b7791f;
    --danger: #d92d20;
    --leading-bg: rgba(94, 106, 210, .08);
    --leading-line: rgba(94, 106, 210, .22);
    --slot-bg-a: #eef2f8;
    --slot-bg-b: #f8fafc;
    --slot-border: rgba(15, 23, 42, .16);
    --slot-ink: #8a94a6;
    --shadow: 0 1px 0 rgba(255, 255, 255, .82) inset;
    --focus: 0 0 0 4px rgba(99, 91, 255, .14);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
    min-height: 100%;
    margin: 0;
    background: linear-gradient(180deg, var(--bg-soft) 0, var(--bg) 320px);
    color: var(--ink);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.01) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.008) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000, transparent 48%);
}

h1, h2, h3 {
    margin: 0 0 .45em;
    color: var(--ink);
    font-weight: 650;
    line-height: 1.1;
}
h1 { font-size: 2.28rem; letter-spacing: 0; }
h2 { font-size: 1.18rem; letter-spacing: 0; }
h3 { font-size: 1.02rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration: none; font-weight: 500; }
a:hover { color: var(--ink); text-decoration: none; }
strong { font-weight: 700; }

.muted { color: var(--muted); }
.small { font-size: .82rem; }
.hint { color: var(--muted); font-size: .88rem; }

.container { width: 100%; margin: 0 auto; padding: 36px clamp(16px, 3vw, 48px) 88px; }
.container.narrow { max-width: 560px; }
.container.wide { max-width: 1440px; }
.landing .container { width: min(100%, 1120px); padding-inline: 24px; }
section { margin-bottom: 28px; }

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.page-head p { max-width: 68ch; }
.page-head-actions, .hero-actions, .btn-group { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.page-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.section-head h2,
.section-head p { margin-bottom: 0; }

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 9px 24px;
    background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}
.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: 0;
}
.nav-brand::before {
    content: "";
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background: var(--brand);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a:not(.btn), .nav-user {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    color: var(--text-soft);
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 560;
}
.nav-links a i { font-size: 1rem; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--ink); background: var(--hover); }
.nav-user {
    gap: 8px;
    color: var(--text-soft);
    font-weight: 600;
    background: color-mix(in srgb, var(--surface-2) 82%, transparent);
    border: 1px solid var(--line);
}
.nav-role {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.nav-logout { margin: 0; }
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-size: 1rem;
    transition: background .16s, border-color .16s;
}
.theme-toggle:hover { background: var(--hover); border-color: var(--line-strong); }

/* Cards and data surfaces */
.card, .stat, .stat-card, .lp-step, .lp-feature, .lp-faq details, .lp-stat-box {
    background: color-mix(in srgb, var(--surface) 98%, transparent);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: none;
}
.card { padding: 20px; margin-bottom: 18px; }
.card > :last-child { margin-bottom: 0; }

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}
.stat-row-ledger { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 14px; }
.stat-label, .lp-float-label {
    display: block;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.stat-value {
    display: block;
    margin-top: 6px;
    font-size: 1.38rem;
    font-weight: 700;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}
#closes-at {
    font-size: 1.12rem;
    line-height: 1.28;
}
.stat:hover {
    border-color: var(--line-strong);
    background: color-mix(in srgb, var(--surface) 94%, var(--ink) 6%);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    gap: 8px;
    cursor: pointer;
    border: 1px solid var(--line);
    background: var(--surface-solid);
    color: var(--ink);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 650;
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
    transition: border-color .16s, background .16s, box-shadow .16s, color .16s;
}
.btn:hover {
    border-color: var(--line-strong);
    background: color-mix(in srgb, var(--surface-solid) 88%, var(--hover) 12%);
    color: var(--ink);
}
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .page-btn:focus-visible, summary:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}
.btn-primary {
    border-color: color-mix(in srgb, var(--brand) 74%, #fff 18%);
    background: color-mix(in srgb, var(--brand) 88%, #111 12%);
    color: var(--brand-ink);
}
.btn-primary:hover { color: #fff; background: var(--brand); box-shadow: none; }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 42%, transparent); }
.btn-small { min-height: 32px; padding: 5px 10px; font-size: .8rem; }
.btn-lg { min-height: 48px; padding: 12px 20px; font-size: .95rem; border-radius: 7px; }
.btn-text {
    min-height: auto;
    border: none;
    background: transparent;
    box-shadow: none;
    color: var(--muted);
    padding: 4px 6px;
}
.btn-text:hover { background: transparent; color: var(--ink); }
.btn-on-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.24); }
.btn-on-dark:hover { background: rgba(255,255,255,.13); color: #fff; }

/* Forms */
.form label, .form-inline label {
    display: block;
    margin-bottom: 14px;
    color: var(--text-soft);
    font-size: .88rem;
    font-weight: 650;
}
.form input, .form select, .form textarea, .form-inline input, .input-tiny, .search-wrap input {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--surface-solid) 96%, transparent);
    color: var(--ink);
    font: inherit;
    font-size: .94rem;
    transition: border-color .16s, box-shadow .16s, background .16s;
}
.form input:hover, .form select:hover, .form textarea:hover, .form-inline input:hover, .input-tiny:hover, .search-wrap input:hover { border-color: var(--line-strong); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.form-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.form-inline input { width: auto; flex: 1 1 180px; margin-top: 0; }
.checkbox { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.checkbox input { width: auto; margin: 0; }

/* Tables */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.table-wrap .table {
    min-width: max-content;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.table-wrap .audit-table {
    min-width: 100%;
    table-layout: fixed;
}
.audit-table th:nth-child(1), .audit-table td:nth-child(1) { width: 170px; }
.audit-table th:nth-child(2), .audit-table td:nth-child(2) { width: 24%; }
.audit-table th:nth-child(3), .audit-table td:nth-child(3) { width: 120px; }
.audit-table td {
    vertical-align: top;
    overflow-wrap: anywhere;
}
.audit-detail {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    color: var(--muted);
}
.nowrap { white-space: nowrap; }
.table th, .table td {
    text-align: left;
    padding: 12px 13px;
    border-bottom: 1px solid var(--line);
    font-size: .88rem;
    vertical-align: middle;
}
.table th {
    background: color-mix(in srgb, var(--surface-2) 86%, transparent);
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .14s; }
.table tbody tr:hover { background: var(--hover); }
.table-finance td,
.num { font-variant-numeric: tabular-nums; }
.table-finance .num {
    text-align: right;
    font-weight: 700;
}
.table-finance th:last-child,
.table-finance td:last-child { padding-right: 18px; }
.row-leading { background: var(--leading-bg); }
.history-legend { display: flex; align-items: center; gap: 7px; margin-top: 10px; }
.legend-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--leading-bg); border: 1px solid var(--leading-line); flex: 0 0 auto; }
.actions, .inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.actions form, .inline-form { margin: 0; }

/* Badges and alerts */
.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-soft);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-right: 6px;
}
.badge-active, .badge-approved { background: rgba(138,145,163,.12); color: var(--text-soft); border-color: rgba(138,145,163,.24); }
.badge-draft, .badge-pending, .badge-scheduled { background: rgba(246,189,72,.13); color: var(--warning); border-color: rgba(246,189,72,.28); }
.badge-vendor_review, .badge-under_offer, .badge-credits { background: rgba(94,106,210,.13); color: var(--link); border-color: rgba(94,106,210,.25); }
.badge-closed, .badge-sold { background: rgba(148,163,184,.14); color: var(--text-soft); }
.badge-cancelled, .badge-rejected, .badge-revoked, .badge-withdrawn { background: rgba(255,107,104,.12); color: var(--danger); border-color: rgba(255,107,104,.24); }
.alert { padding: 12px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: .9rem; border: 1px solid var(--line); }
.alert-error { background: rgba(255,107,104,.12); color: var(--danger); border-color: rgba(255,107,104,.28); }
.alert-notice { background: rgba(36,214,163,.12); color: var(--accent); border-color: rgba(36,214,163,.28); }

/* Campaign layout */
.campaign-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(290px, .9fr);
    gap: 20px;
    align-items: start;
}
.col-property, .col-offer { display: flex; flex-direction: column; gap: 20px; }
.col-history { position: sticky; top: 74px; display: flex; flex-direction: column; gap: 20px; }
.stat-rail { margin-bottom: 0; }
.inc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.btn-inc { text-align: center; font-variant-numeric: tabular-nums; }
.settle-toggle { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    background: var(--surface-2);
    font-weight: 700;
}
.radio-inline input { width: auto; margin: 0; }
.settle-field { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.settle-field input { width: auto; flex: 0 1 200px; margin: 0; }
.settle-field[hidden] { display: none; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0 0 14px; background: rgba(255,255,255,.02); }
.fieldset legend { padding: 0 6px; color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

.banner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 16px; font-size: .9rem; flex-wrap: wrap; }
.banner-warn { background: rgba(246,189,72,.14); color: var(--ink); border-bottom: 1px solid rgba(246,189,72,.22); }
.banner-form { margin: 0; }
.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid rgba(138,145,163,.26);
    border-radius: 999px;
    background: rgba(138,145,163,.09);
    color: var(--text-soft);
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}
.empty-state {
    display: grid;
    place-items: start;
    gap: 8px;
    padding: 24px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 72%, transparent);
}
.empty-state.compact { padding: 18px; }
.empty-state i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 1.2rem;
}
.empty-state h3,
.empty-state p { margin-bottom: 0; }

/* Media */
.thumb { width: 64px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); }
.property-hero {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.media-grid img { width: 100%; height: 92px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.id-thumb { max-width: 240px; border: 1px solid var(--line); border-radius: var(--radius); margin: 6px 6px 0 0; }

.terms { font-size: .9rem; }
.terms ul { margin: 0; padding-left: 20px; }
.terms li { margin-bottom: 6px; }
.terms-footnote { background: color-mix(in srgb, var(--surface) 86%, var(--brand) 14%); }

/* Browse tiles */
.browse-section { margin-bottom: 40px; }
.browse-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.browse-head h2 { margin: 0; }
.search-wrap { position: relative; flex: 1 1 280px; max-width: 390px; }
.search-wrap i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.05rem; pointer-events: none; }
.search-wrap input { padding-left: 38px; border-radius: var(--radius-sm); margin-top: 0; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 18px; }
.tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow);
    backdrop-filter: none;
    transition: box-shadow .18s, border-color .18s, background .18s;
}
.tile:hover { border-color: var(--line-strong); box-shadow: none; background: color-mix(in srgb, var(--surface) 94%, var(--ink) 6%); color: var(--ink); }
.tile-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.tile-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(0,0,0,.22)); pointer-events: none; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.tile:hover .tile-media img { transform: none; }
.tile-media-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--slot-ink); font-size: 2.3rem; background: var(--surface-2); }
.tile-badge { position: absolute; top: 10px; left: 10px; z-index: 1; box-shadow: none; }
.tile-body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 5px; }
.tile-title { margin: 0; font-size: 1.08rem; }
.tile-sub { margin: 0; color: var(--ink); font-size: .92rem; }
.tile-meta { margin: 0; color: var(--muted); font-size: .84rem; display: flex; align-items: center; gap: 6px; }
.tile-meta i { font-size: .95rem; flex: 0 0 auto; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 26px; }
.page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    cursor: pointer;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.page-btn:hover:not(:disabled) { background: var(--hover); border-color: var(--brand); }
.page-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-btn:disabled { opacity: .42; cursor: default; }
.page-dots { display: inline-flex; align-items: center; padding: 0 4px; color: var(--muted); }

/* Landing page */
.landing { padding-bottom: 0; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    margin-bottom: 12px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 16px; height: 2px; border-radius: 0; background: currentColor; }
.eyebrow-light { color: #8df8d6; }
.lp-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg-soft) 92%, var(--surface) 8%);
}
.lp-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 58px;
    align-items: center;
    min-height: calc(100svh - 62px);
    padding-top: 44px;
    padding-bottom: 72px;
}
.lp-hero-copy h1 { max-width: 13ch; margin-bottom: 18px; font-size: 4.65rem; line-height: .96; letter-spacing: 0; }
.lp-hero-copy .lead { max-width: 48ch; margin: 0 0 28px; color: var(--text-soft); font-size: 1.08rem; }
.lp-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-cta-center { justify-content: center; }
.lp-hero-note { margin-top: 18px; color: var(--muted); font-size: .92rem; }
.lp-hero-media { position: relative; min-width: 0; }
.lp-shot {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface-2);
    box-shadow: var(--shadow);
}
.lp-shot-hero { aspect-ratio: 11 / 8; }
.lp-shot-split { aspect-ratio: 4 / 3; }
.lp-hero-float {
    position: absolute;
    left: -20px;
    bottom: 30px;
    min-width: 245px;
    padding: 14px 16px;
    background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: none;
}
.lp-live-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--muted); box-shadow: none; }
.lp-float-amount { display: block; margin: 7px 0 5px; font-size: 1.8rem; line-height: 1; font-weight: 800; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.lp-float-meta { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: .78rem; }
.lp-float-time { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.lp-section { padding: 76px 0; }
.lp-section-head { max-width: 680px; margin: 0 auto 38px; text-align: center; }
.lp-section-head h2, .lp-band-copy h2, .lp-split-copy h2, .lp-cta-band h2 { font-size: 2.8rem; letter-spacing: 0; }
.lp-section-sub { color: var(--muted); font-size: 1rem; margin: 0; }
.lp-steps, .lp-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-step, .lp-feature { padding: 22px; }
.lp-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    background: var(--surface-2);
    color: var(--link);
    font-weight: 700;
}
.lp-step p, .lp-feature p { color: var(--muted); margin: 0; font-size: .92rem; }
.lp-split { padding: 70px 0; }
.lp-split-alt { background: rgba(255,255,255,.025); border-block: 1px solid var(--line); }
.lp-split-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 58px; align-items: center; }
.lp-split-inner.reverse .lp-split-copy { order: 2; }
.lp-split-copy > p { color: var(--text-soft); font-size: 1.02rem; margin: 0 0 18px; }
.lp-check { list-style: none; padding: 0; margin: 0 0 8px; }
.lp-check li { position: relative; padding-left: 28px; margin-bottom: 11px; color: var(--ink); font-weight: 600; }
.lp-check li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 1px;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(36,214,163,.14);
    color: var(--accent);
    font-size: .68rem;
    font-weight: 900;
}
.lp-features { background: transparent; }
.lp-feature i { font-size: 1.5rem; color: var(--muted); display: block; margin-bottom: 12px; }
.lp-band {
    padding: 74px 0;
    background: #101114;
    color: #eef3ff;
    border-block: 1px solid rgba(255,255,255,.1);
}
.lp-band-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.lp-band-copy h2 { color: #fff; }
.lp-band-copy p { color: #cbd5e1; margin: 0; }
.lp-band-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lp-stat-box { padding: 18px; background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.12); }
.lp-stat-box i { font-size: 1.45rem; color: #8df8d6; margin-bottom: 8px; }
.lp-stat-h { display: block; color: #fff; font-size: 1rem; font-weight: 800; }
.lp-stat-p { display: block; color: #b8c4d5; font-size: .82rem; }
.lp-faq-wrap { max-width: 780px; }
.lp-faq details { padding: 4px 18px; margin-bottom: 10px; }
.lp-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 15px 0;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform .18s; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { margin: 0 0 16px; color: var(--text-soft); }
.lp-cta-band {
    text-align: center;
    padding: 82px 0;
    background: #0d0f12;
    color: #fff;
    border-top: 1px solid var(--line);
}
.lp-cta-band h2 { color: #fff; margin-bottom: 10px; }
.lp-cta-band p { color: #cbd5e1; font-size: 1.02rem; margin: 0 0 26px; }

/* Account and admin */
.brand-preview { display: flex; gap: 22px; margin: 14px 0 18px; flex-wrap: wrap; }
.brand-preview-item { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.brand-photo, .agent-photo { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.brand-logo, .agent-logo { max-width: 150px; max-height: 58px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 4px; }
.brand-empty { width: 64px; height: 64px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; border: 1px dashed var(--slot-border); color: var(--slot-ink); font-size: 1.6rem; background: var(--surface-2); }
.brand-swatch { width: 64px; height: 64px; border-radius: var(--radius); border: 1px solid var(--line); display: inline-block; }
input[type="color"] { width: 64px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.agent-card-row { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.agent-agency { display: block; font-size: 1rem; }
.agent-name { margin: 2px 0 0; font-size: .9rem; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 32px; }
.stat-card { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 18px; color: var(--ink); text-decoration: none; transition: border-color .16s, background .16s; }
a.stat-card:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--surface) 94%, var(--ink) 6%); color: var(--ink); }
.stat-num { font-size: 1.9rem; font-weight: 800; letter-spacing: 0; font-variant-numeric: tabular-nums; line-height: 1; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-soft);
    text-decoration: none;
    font-size: .84rem;
    font-weight: 700;
    text-transform: capitalize;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.table-admin td { vertical-align: top; }
.input-tiny { width: 64px; padding: 6px 8px; font-size: .85rem; margin: 0; }
select.input-tiny { width: auto; text-transform: capitalize; }
footer { padding: 18px 0; }

/* Site footer with legal links */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 22px 0; }
.site-footer-inner { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 48px);
    display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; justify-content: space-between; }
.site-footer-brand { color: var(--muted); font-size: .85rem; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer-links a { color: var(--muted); font-size: .85rem; text-decoration: none; }
.site-footer-links a:hover { color: var(--ink); }

/* Legal / policy pages */
.legal { max-width: 760px; }
.legal-head { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.legal-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 600;
    color: var(--brand-2); margin: 0 0 8px; }
.legal-head h1 { margin: 0 0 6px; }
.legal-meta { color: var(--muted); font-size: .9rem; margin: 0; }
.legal-body { color: var(--text-soft); line-height: 1.7; }
.legal-body h2 { color: var(--ink); font-size: 1.18rem; margin: 32px 0 10px; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--link); }
.legal-callout { background: var(--leading-bg); border: 1px solid var(--leading-line);
    border-radius: var(--radius); padding: 16px 18px; margin: 0 0 18px; }
.legal-disclaimer { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line);
    color: var(--muted); font-size: .86rem; font-style: italic; }
.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.legal-table th, .legal-table td { text-align: left; padding: 9px 12px; border: 1px solid var(--line);
    font-size: .92rem; }
.legal-table th { background: var(--surface-2); color: var(--ink); font-weight: 600; }

@media (max-width: 1100px) {
    .campaign-layout { grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr); }
    .col-property { grid-column: 1 / -1; }
    .col-history { position: static; }
}

@media (max-width: 900px) {
    .nav { position: static; align-items: flex-start; flex-direction: column; }
    .nav-links { justify-content: flex-start; }
    .campaign-layout, .lp-hero-inner, .lp-split-inner, .lp-band-inner { grid-template-columns: 1fr; gap: 34px; }
    .lp-hero-inner { min-height: auto; }
    .lp-split-inner.reverse .lp-split-copy { order: 0; }
    .lp-steps, .lp-feature-grid, .lp-band-stats { grid-template-columns: 1fr; }
    .lp-feature-grid { grid-template-columns: 1fr 1fr; }
    .lp-hero-copy h1 { max-width: 13ch; font-size: 4rem; }
    .lp-section-head h2, .lp-band-copy h2, .lp-split-copy h2, .lp-cta-band h2 { font-size: 2.3rem; }
    .stat-row-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    body { font-size: 14px; }
    .container { padding: 28px 16px 72px; }
    .nav { padding: 12px 16px; }
    .nav-links { gap: 4px; }
    .nav-user { width: 100%; padding-left: 0; }
    .page-head { gap: 14px; }
    .section-head { flex-direction: column; }
    .card { padding: 18px; }
    .table { display: block; overflow-x: auto; }
    .table-wrap .table { display: table; overflow: visible; }
    .tile-grid, .lp-feature-grid { grid-template-columns: 1fr; }
    .search-wrap { max-width: none; }
    .inc-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-hero-copy h1 { font-size: 3rem; }
    .lp-section-head h2, .lp-band-copy h2, .lp-split-copy h2, .lp-cta-band h2 { font-size: 2rem; }
    .lp-hero-float { left: 10px; right: 10px; bottom: 16px; min-width: 0; }
    .lp-section, .lp-split, .lp-band, .lp-cta-band { padding: 56px 0; }
}
