:root {
  --ink: #160F0E; --box: #3B2A26; --bone: #FFF8EE; --bone2: #F7EADC; --porc: #FFF8EE;
  --red: #E63946; --red-d: #C62D39; --gold: #FFB703; --plum: #5E514F; --lilac: #C9B8B5; --line: #E4D8D5;
  --ok: #10B981; --warn: #F59E0B; --bad: #E63946;
  --radius: 14px; --shadow: 0 10px 30px rgba(22, 15, 14, .08);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bone); line-height: 1.5; font-size: 16px; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--plum); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.hl { color: var(--gold); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* top banner */
.demo-bar { background: var(--gold); color: var(--ink); font-size: 13px; padding: 7px 0; text-align: center; }
.demo-bar a { font-weight: 600; }

/* nav */
.nav { background: var(--ink); color: var(--bone); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav .logo img { height: 30px; }
.nav .links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav .links a { text-decoration: none; color: var(--lilac); }
.nav .links a:hover, .nav .links a.on { color: var(--bone); }
.nav .pill { background: var(--red); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 99px; font-weight: 600; letter-spacing: .04em; }
@media (max-width: 640px) { .nav .links { gap: 14px; font-size: 14px; } .nav .links .hide-m { display: none; } }

/* hero */
.hero { background: var(--ink); color: var(--bone); padding: 56px 0 64px; }
.hero h1 { max-width: 820px; }
.hero p.lead { font-size: 18px; max-width: 640px; color: var(--lilac); margin-bottom: 28px; }
.searchbox { background: var(--bone); color: var(--ink); border-radius: var(--radius); padding: 14px; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr auto; gap: 10px; box-shadow: var(--shadow); }
.searchbox label { display: flex; min-width: 0; flex-direction: column; font-size: 12px; font-weight: 600; color: var(--plum); gap: 4px; }
.searchbox select, .searchbox input, .filters select, .filters input:not([type=checkbox]) { width: 100%; min-width: 0; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--red); color: #fff; border: 0; border-radius: 10px; padding: 12px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--red-d); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.ghost:hover { background: var(--bone2); }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: var(--box); }
.btn.lg { padding: 15px 26px; font-size: 17px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.searchbox .btn { align-self: end; height: 44px; }
@media (max-width: 900px) { .searchbox { grid-template-columns: 1fr 1fr; } .searchbox .btn { grid-column: 1 / -1; } }

/* sections */
.section { padding: 48px 0; }
.section.alt { background: var(--bone2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; color: var(--red); margin-bottom: 8px; }
.tenets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tenet { background: var(--ink); color: var(--bone); border-radius: var(--radius); padding: 24px; }
.tenet h3 { color: var(--gold); }
.tenet ul { margin: 0; padding-left: 18px; color: var(--lilac); font-size: 15px; }
.tenet li { margin-bottom: 6px; }
@media (max-width: 800px) { .tenets { grid-template-columns: 1fr; } }

/* cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; display: flex; flex-direction: column; transition: transform .15s; }
.card:hover { transform: translateY(-2px); }
.card .ph { position: relative; aspect-ratio: 4 / 3; background: var(--bone2); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; background: rgba(22, 15, 14, .85); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.badge.deal { left: auto; right: 12px; background: var(--bone); color: var(--ink); }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.price { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.price small { display: block; font-size: 13px; font-weight: 500; color: var(--plum); margin-top: -2px; }
.card .title { font-weight: 500; line-height: 1.3; }
.meta { color: var(--plum); font-size: 14px; display: flex; gap: 12px; flex-wrap: wrap; }
.checks { display: flex; gap: 4px; margin-top: 6px; align-items: center; }
.checks i { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); display: inline-block; }
.checks i.warn { background: var(--warn); }
.checks i.bad { background: var(--bad); }
.checks span { font-size: 12.5px; color: var(--plum); margin-left: 6px; }

/* search layout */
.search-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .search-layout { grid-template-columns: 1fr; } }
.filters { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: sticky; top: 16px; }
.filters h3 { font-size: 15px; margin: 14px 0 8px; }
.filters h3:first-child { margin-top: 0; }
.filters label.chk { display: flex; gap: 8px; align-items: center; font-size: 14.5px; margin: 5px 0; cursor: pointer; }
.filters select, .filters input:not([type=checkbox]) { width: 100%; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.results-head select { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.empty { background: #fff; border-radius: var(--radius); padding: 40px; text-align: center; color: var(--plum); }

/* listing page */
.crumbs { font-size: 13.5px; color: var(--plum); margin: 18px 0 10px; }
.crumbs a { text-decoration: none; }
.listing-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.gallery { display: grid; grid-template-columns: 1fr; gap: 10px; }
.gallery .main { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--bone2); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
@media (max-width: 640px) { .gallery .thumbs { grid-template-columns: repeat(4, 1fr); } }
.gallery .thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 4 / 3; }
.gallery .thumbs button.on { border-color: var(--red); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; left: 12px; bottom: 12px; background: rgba(22, 15, 14, .8); color: #fff; font-size: 12.5px; padding: 5px 10px; border-radius: 99px; }
.tag.warn { background: var(--warn); color: var(--ink); font-weight: 600; }
.listing-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; margin-top: 24px; }
@media (max-width: 960px) { .listing-layout { grid-template-columns: 1fr; } }
.side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }
.panel { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel h2 { font-size: 20px; margin-bottom: 14px; }
.panel + .panel { margin-top: 20px; }
.pricebox .price { font-size: 30px; }
.pricebox .line { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; border-top: 1px dashed var(--line); }
.pricebox .line:first-of-type { border-top: 0; }
.lister { display: flex; gap: 12px; align-items: center; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-weight: 600; flex: none; }
.vbadge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #067a53; }
.vbadge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.facts div { background: var(--bone2); border-radius: 10px; padding: 12px 14px; }
.facts b { display: block; font-size: 18px; font-weight: 600; }
.facts span { font-size: 12.5px; color: var(--plum); }
@media (max-width: 600px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* evidence card */
.evidence { border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: #fff; }
.evidence .head { background: var(--ink); color: var(--bone); padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.evidence .head h2 { margin: 0; font-size: 18px; }
.evidence .head .sum { font-size: 13px; color: var(--lilac); }
.erow { display: grid; grid-template-columns: 26px 150px 1fr 96px; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); align-items: start; font-size: 14.5px; }
.erow:first-child { border-top: 0; }
.erow .st { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; margin-top: 2px; }
.st.ok { background: var(--ok); } .st.warn { background: var(--warn); color: var(--ink); } .st.bad { background: var(--bad); }
.erow .k { font-weight: 600; }
.erow .d { color: var(--plum); font-size: 13px; text-align: right; white-space: nowrap; }
@media (max-width: 640px) { .erow { grid-template-columns: 26px 1fr; row-gap: 2px; } .erow > :not(.st) { grid-column: 2; } .erow .d { text-align: left; } }

/* cost panel */
.cost table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cost td { padding: 9px 0; border-top: 1px solid var(--line); vertical-align: top; }
.cost tr:first-child td { border-top: 0; }
.cost td.n { text-align: right; white-space: nowrap; font-weight: 500; padding-left: 12px; }
.cost .note { color: var(--plum); font-size: 13px; display: block; font-weight: 400; }
.cost tr.total td { border-top: 2px solid var(--ink); font-weight: 600; font-size: 16px; padding-top: 12px; }
.cost .toggle { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 99px; overflow: hidden; margin-bottom: 14px; }
.cost .toggle button { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 14px; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.cost .toggle button.on { background: var(--ink); color: var(--bone); }
.callout { background: var(--bone2); border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-top: 14px; }
.callout.bad { border-left-color: var(--bad); }

/* chart */
.chart { width: 100%; height: auto; }
.legend { display: flex; gap: 18px; font-size: 13px; color: var(--plum); margin-top: 8px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 6px; }
.hist { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.hist td { padding: 7px 0; border-top: 1px solid var(--line); }
.hist td.n { text-align: right; }
.hist td:first-child { width: 96px; }

/* closing flow */
.steps { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.stepnav { display: flex; flex-direction: column; gap: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stepnav button { display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px 18px; border: 0; border-top: 1px solid var(--line); background: #fff; font: inherit; cursor: pointer; color: var(--plum); }
.stepnav button:first-child { border-top: 0; }
.stepnav button.on { background: var(--bone2); color: var(--ink); font-weight: 600; }
.stepnav button.done { color: var(--ink); }
.stepnav .num { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
.stepnav .on .num { border-color: var(--red); color: var(--red); }
.stepnav .done .num { background: var(--ok); border-color: var(--ok); color: #fff; }
.stepbody h2 { margin-bottom: 6px; }
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.who div { background: var(--bone2); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.who b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin-bottom: 4px; }
@media (max-width: 640px) { .who { grid-template-columns: 1fr; } }
.escrow { background: var(--ink); color: var(--bone); border-radius: var(--radius); padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 18px 0; }
.escrow .amt { font-size: 26px; font-weight: 600; color: var(--gold); }
.escrow .lbl { font-size: 13px; color: var(--lilac); }
.conditions { margin: 0; padding-left: 20px; }
.conditions li { margin-bottom: 6px; }
.actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.done-box { background: var(--ok); color: #fff; border-radius: var(--radius); padding: 22px; }
.done-box h2 { color: #fff; }

/* how it works */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rules div { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.rules h3 { color: var(--red); font-size: 17px; }
@media (max-width: 700px) { .rules { grid-template-columns: 1fr; } }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: s; }
.flow div { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); font-size: 14px; }
.flow div::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 600; margin-bottom: 10px; }
.flow b { display: block; margin-bottom: 4px; }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .flow { grid-template-columns: 1fr; } }

/* credits */
.credits-wrap { overflow-x: auto; }
.credits { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.credits td { padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.credits img { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; }

/* footer */
.footer { background: var(--ink); color: var(--lilac); padding: 40px 0; font-size: 14px; margin-top: 48px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer img { height: 26px; }
.footer a { color: var(--bone); text-decoration: none; margin-right: 18px; }

select { max-width: 100%; }
.pick { font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); max-width: 100%; }
