/* Layout: sticky header, split hero with a listing preview, then full-width bands alternating paper / mist / teal, max 1120px content */
:root{
  --teal:#188A8D; --teal-ink:#126A6C; --ink:#141414; --paper:#FFFFFF; --mist:#EEF6F6;
  --line:#D4E3E3; --muted:#4F5B5B; --on-teal:#FFFFFF; --placeholder:#FFF4D6; --placeholder-line:#C9A23A;
  --code-bg:#0F2E30; --code-fg:#DDF1F1; --code-key:#8ED9DB; --code-dim:#8FB3B4;
  --display:"Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body:"Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --step-0:1rem; --step-1:1.25rem; --step-2:1.6rem; --step-3:2.2rem; --step-4:clamp(2.4rem, 5.5vw, 3.6rem);
  --radius:10px;
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){
  --teal:#3FB5B8; --teal-ink:#6FCFD1; --ink:#EEF3F3; --paper:#0F1617; --mist:#162224;
  --line:#26383A; --muted:#A9B8B8; --on-teal:#0B1213; --placeholder:#3A3118; --placeholder-line:#C9A23A; --code-bg:#08191A; --code-fg:#DDF1F1; --code-key:#8ED9DB; --code-dim:#8FB3B4; color-scheme:dark }}
:root[data-theme="dark"]{
  --teal:#3FB5B8; --teal-ink:#6FCFD1; --ink:#EEF3F3; --paper:#0F1617; --mist:#162224;
  --line:#26383A; --muted:#A9B8B8; --on-teal:#0B1213; --placeholder:#3A3118; --placeholder-line:#C9A23A; --code-bg:#08191A; --code-fg:#DDF1F1; --code-key:#8ED9DB; --code-dim:#8FB3B4; color-scheme:dark }

*{box-sizing:border-box}
body{background:var(--paper); color:var(--ink); font-family:var(--body); font-size:var(--step-0); line-height:1.6}
body::before{content:""; position:fixed; inset:0 0 auto; height:env(safe-area-inset-top,0px); z-index:10; background:var(--paper)}
h1,h2,h3,h4{font-family:var(--display); line-height:1.15; text-wrap:balance; margin:0}
h2{font-size:var(--step-3); font-weight:800; letter-spacing:-0.5px}
h3{font-size:var(--step-1); font-weight:600}
h4{font-size:1rem; font-weight:600}
p{margin:0}
a{color:var(--teal-ink)}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--teal); outline-offset:3px; border-radius:4px}
.wrap{max-width:1120px; margin:0 auto; padding-left:max(16px, env(safe-area-inset-left,0px)); padding-right:max(16px, env(safe-area-inset-right,0px))}
.band{padding-block:clamp(56px, 8vw, 96px)}
.band.mist{background:var(--mist)}
.band.teal{background:var(--teal); color:var(--on-teal)}
.eyebrow{font-family:var(--display); font-weight:600; font-size:.8rem; letter-spacing:2px; text-transform:uppercase; color:var(--teal-ink)}
.teal .eyebrow{color:var(--on-teal); opacity:.85}
.lede{font-size:var(--step-1); color:var(--muted); max-width:34em}
.ph{background:var(--placeholder); border:1px dashed var(--placeholder-line); border-radius:4px; padding:0 .3em; color:var(--ink)}
.section-head{display:flex; flex-direction:column; gap:12px; margin-bottom:40px; max-width:44em}

/* header */
header{position:sticky; top:env(safe-area-inset-top,0px); z-index:5; background:var(--paper); border-bottom:1px solid var(--line)}
.bar{display:flex; align-items:center; justify-content:space-between; gap:16px; padding-block:12px; flex-wrap:wrap}
.logo{display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink)}
.logo svg{width:40px; height:40px; color:var(--teal)}
.word{font-family:var(--display); font-size:1.6rem; letter-spacing:-0.5px; line-height:1}
.word b{font-weight:800}.word span{font-weight:400; color:var(--teal)}
nav{display:flex; gap:20px; align-items:center; flex-wrap:wrap}
nav a{text-decoration:none; color:var(--ink); font-weight:600; font-size:.95rem}
nav a:hover{color:var(--teal-ink)}
.btn{display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 22px; border-radius:999px; background:var(--teal); color:var(--on-teal); font-family:var(--display); font-weight:600; text-decoration:none; border:0; cursor:pointer; font-size:1rem}
.btn:hover{background:var(--teal-ink)}
.btn.ghost{background:transparent; color:var(--ink); border:2px solid var(--line)}
.btn.ghost:hover{border-color:var(--teal)}
@media (max-width:980px){ nav .navlink{display:none} }

/* hero */
.hero{display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:clamp(32px,6vw,72px); align-items:center; padding-block:clamp(40px,7vw,88px)}
.hero h1{font-size:var(--step-4); font-weight:800; letter-spacing:-1.5px}
.hero h1 em{font-style:normal; color:var(--teal)}
.hero-copy{display:flex; flex-direction:column; gap:22px; min-width:0}
.fee-line{font-family:var(--display); font-size:var(--step-1)}
.fee-line strong{font-weight:800}
.ctas{display:flex; gap:12px; flex-wrap:wrap}
@media (max-width:860px){ .hero{grid-template-columns:minmax(0,1fr)} }

/* pictures */
.pic{position:relative; border-radius:8px; overflow:hidden; background:var(--mist); aspect-ratio:400/260; max-width:100%}
.pic svg{display:block; width:100%; height:100%}
.pic .tag{position:absolute; left:10px; top:10px; background:rgba(20,20,20,.72); color:#fff; font-size:.72rem; font-family:var(--display); font-weight:600; letter-spacing:1px; text-transform:uppercase; padding:3px 8px; border-radius:4px}

/* listing preview card (hero) */
.preview{background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 18px 40px -24px rgba(20,60,60,.45); overflow:hidden; min-width:0; display:flex; flex-direction:column; text-decoration:none; color:inherit}
.preview:hover{border-color:var(--teal)}
.preview .pic{border-radius:0}
.preview-body{padding:18px 20px; display:flex; flex-direction:column; gap:10px}
.price{font-family:var(--display); font-weight:800; font-size:var(--step-2); font-variant-numeric:tabular-nums}
.facts{display:flex; flex-wrap:wrap; gap:8px 18px; color:var(--muted); font-size:.92rem}
.facts span{display:inline-flex; align-items:center; gap:6px}
.facts svg{width:18px; height:18px; color:var(--teal)}
.epc-chip{font-weight:600; color:var(--ink)}
.epc-chip i{font-style:normal; width:22px; height:22px; display:grid; place-items:center; border-radius:4px; background:#FFD500; color:#141414; font-family:var(--display); font-weight:800; font-size:.8rem}

/* how it works */
.steps{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:28px; counter-reset:s}
.steps li{display:flex; flex-direction:column; gap:10px; counter-increment:s; min-width:0}
.steps li::before{content:counter(s); font-family:var(--display); font-weight:800; font-size:1.1rem; width:44px; height:44px; border-radius:50%; display:grid; place-items:center; background:var(--teal); color:var(--on-teal)}
.steps p{color:var(--muted)}
.steps .who{font-family:var(--display); font-size:.75rem; font-weight:600; letter-spacing:1.5px; text-transform:uppercase; color:var(--teal-ink)}
@media (max-width:900px){ .steps{grid-template-columns:repeat(2, minmax(0,1fr))} }
@media (max-width:520px){ .steps{grid-template-columns:minmax(0,1fr)} }

/* search demo (hero) */
.search-demo{background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 18px 40px -24px rgba(20,60,60,.45); padding:20px; display:flex; flex-direction:column; gap:16px; min-width:0}
.demo-label{font-family:var(--display); font-weight:600; font-size:.72rem; letter-spacing:1.5px; text-transform:uppercase; color:var(--muted)}
.search-line{display:flex; gap:12px; align-items:flex-start; border:2px solid var(--teal); border-radius:14px; padding:14px 16px; font-size:1.05rem; line-height:1.45}
.search-line > svg{flex:none; width:22px; height:22px; color:var(--teal); margin-top:2px}
.caret{display:inline-block; width:2px; height:1.1em; background:var(--teal); vertical-align:text-bottom; margin-left:2px}
.result{display:grid; grid-template-columns:132px minmax(0,1fr); gap:14px; align-items:start; text-decoration:none; color:inherit; border-top:1px solid var(--line); padding-top:16px}
.result .pic{border-radius:6px}
.result-body{display:flex; flex-direction:column; gap:6px; min-width:0}
.found{font-family:var(--display); font-weight:600; font-size:.78rem; color:var(--teal-ink)}
.result .price{font-size:1.3rem}
.matches{display:flex; flex-wrap:wrap; gap:6px; list-style:none; margin:4px 0 0; padding:0}
.match{display:inline-flex; gap:5px; align-items:center; font-size:.8rem; font-weight:600; background:var(--mist); color:var(--ink); border-radius:999px; padding:3px 10px}
.match svg{width:14px; height:14px; color:var(--teal)}
.demo-note{font-size:.8rem; color:var(--muted)}
@media (max-width:460px){ .result{grid-template-columns:minmax(0,1fr)} }
@media (prefers-reduced-motion: no-preference){
  .caret{animation:blink 1.1s steps(1) infinite}
  .match{animation:lit 3.6s ease-in-out infinite}
  .match:nth-child(2){animation-delay:.25s}.match:nth-child(3){animation-delay:.5s}.match:nth-child(4){animation-delay:.75s}.match:nth-child(5){animation-delay:1s}
}
@keyframes blink{50%{opacity:0}}
@keyframes lit{0%,60%,100%{box-shadow:0 0 0 0 transparent}20%{box-shadow:0 0 0 2px var(--teal)}}

/* AI-ready section */
.ai-grid{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(28px,5vw,56px); align-items:start}
.ai-points{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:22px}
.ai-points li{display:grid; grid-template-columns:44px minmax(0,1fr); gap:14px; align-items:start}
.ai-points .ico{width:44px; height:44px; border-radius:50%; background:var(--mist); display:grid; place-items:center; color:var(--teal)}
.ai-points .ico svg{width:22px; height:22px}
.ai-points h3{font-size:1.05rem; margin-bottom:4px}
.ai-points p{color:var(--muted)}
.reads{background:var(--code-bg); color:var(--code-fg); border-radius:var(--radius); padding:20px; display:flex; flex-direction:column; gap:12px; min-width:0}
.reads h3{font-size:.8rem; letter-spacing:1.5px; text-transform:uppercase; color:var(--code-key)}
.reads pre{margin:0; overflow-x:auto; font-family:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace; font-size:.84rem; line-height:1.65}
.reads .k{color:var(--code-key)}
.reads .c{color:var(--code-dim)}
.reads p{font-size:.85rem; color:var(--code-dim)}
.portals-too{margin-top:28px; color:var(--muted)}
@media (max-width:860px){ .ai-grid{grid-template-columns:minmax(0,1fr)} }

/* statement band */
.statement{padding-block:clamp(48px,7vw,80px); border-bottom:1px solid var(--line)}
.statement .wrap{display:flex; flex-direction:column; gap:14px}
.big-line{font-family:var(--display); font-weight:800; font-size:clamp(1.7rem,4vw,2.6rem); line-height:1.2; letter-spacing:-0.5px; max-width:24em; text-wrap:balance}
.big-line em{font-style:normal; color:var(--teal)}
.big-sub{font-family:var(--display); font-weight:600; font-size:var(--step-2); color:var(--teal)}

/* example listing */
.listing{display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:32px; align-items:start}
.gallery{display:flex; flex-direction:column; gap:10px; min-width:0}
.thumbs{display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:8px}
.thumbs button{padding:0; border:2px solid transparent; border-radius:6px; overflow:hidden; cursor:pointer; background:none; aspect-ratio:400/260; min-height:44px}
.thumbs button[aria-pressed="true"]{border-color:var(--teal)}
.thumbs svg{display:block; width:100%; height:100%}
.listing-head{display:flex; flex-direction:column; gap:8px; min-width:0}
.listing-head .addr{color:var(--muted)}
.status{align-self:flex-start; font-family:var(--display); font-weight:600; font-size:.75rem; letter-spacing:1.5px; text-transform:uppercase; color:var(--on-teal); background:var(--teal); padding:3px 10px; border-radius:999px}
.ai-ready{display:flex; gap:14px; align-items:flex-start; margin-top:24px; padding:18px 20px; border:1px solid var(--line); border-radius:var(--radius); background:var(--mist)}
.ai-ready svg{flex:none; width:28px; height:28px; color:var(--teal)}
.ai-ready p{color:var(--muted); font-size:.95rem}
.ai-ready strong{color:var(--ink)}
.keyfacts{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px 20px; margin:6px 0 0; padding:16px 0; border-block:1px solid var(--line)}
.keyfacts div{display:flex; flex-direction:column}
.keyfacts dt{font-size:.75rem; letter-spacing:1px; text-transform:uppercase; color:var(--muted); font-family:var(--display); font-weight:600}
.keyfacts dd{margin:0; font-weight:600}
.features{margin:0; padding-left:1.1em; display:flex; flex-direction:column; gap:4px}
.listing-desc{color:var(--muted)}
.detail-grid{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:24px; margin-top:32px}
.panel{background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:20px; display:flex; flex-direction:column; gap:14px; min-width:0}
.rooms{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; font-size:.9rem}
.rooms li{display:flex; flex-direction:column; border-bottom:1px solid var(--line); padding-bottom:6px}
.rooms .floor{font-family:var(--display); font-size:.72rem; letter-spacing:1.5px; text-transform:uppercase; color:var(--teal-ink); border:0; padding:6px 0 0}
.rooms b{font-family:var(--display); font-weight:600}
.rooms span{color:var(--muted); font-variant-numeric:tabular-nums}
.plans{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px}
.plans figure{margin:0; display:flex; flex-direction:column; gap:6px}
.plans figcaption{font-size:.78rem; color:var(--muted); text-align:center; font-family:var(--display); font-weight:600}
.plan svg{width:100%; height:auto; display:block}
.plan rect{fill:var(--mist); stroke:var(--ink); stroke-width:2.5}
.plan text{fill:var(--ink); font-family:var(--body); font-size:11px}
.plan .door{stroke:var(--mist); stroke-width:5}
.note{font-size:.78rem; color:var(--muted)}
@media (max-width:960px){ .detail-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)} .detail-grid .panel:first-child{grid-column:1 / -1} }
@media (max-width:820px){ .listing{grid-template-columns:minmax(0,1fr)} }
@media (max-width:620px){ .detail-grid{grid-template-columns:minmax(0,1fr)} }

/* EPC chart: standard EPC band colours, fixed in both themes because they are part of the certificate */
.epc{display:grid; grid-template-columns:minmax(0,1fr) 52px 52px; gap:3px 6px; font-family:var(--display); font-size:.78rem; align-items:center}
.epc .h{font-weight:600; color:var(--muted); text-align:center; font-size:.68rem; letter-spacing:.5px}
.epc .band-bar{height:22px; display:flex; align-items:center; justify-content:space-between; padding:0 8px; color:#141414; font-weight:800; border-radius:2px}
.epc .band-bar small{font-weight:600; font-size:.66rem; opacity:.85}
.epc .val{height:22px; display:flex; align-items:center; justify-content:center}
.epc .val b{display:inline-block; min-width:40px; text-align:center; padding:2px 0 2px 6px; color:#141414; font-weight:800; clip-path:polygon(18% 0,100% 0,100% 100%,18% 100%,0 50%)}

/* pricing */
.pricing{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(28px,5vw,64px); align-items:start}
.pricing h2{color:var(--on-teal)}
.price-big{font-family:var(--display); font-weight:800; font-size:clamp(3rem,8vw,4.6rem); line-height:1; letter-spacing:-2px}
.price-big .ph{font-size:.6em; letter-spacing:0}
.included{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px}
.included li{display:flex; gap:12px; align-items:flex-start}
.included svg{flex:none; width:22px; height:22px; margin-top:2px}
.you{opacity:.9; font-size:.95rem; border-top:1px solid color-mix(in srgb, var(--on-teal) 35%, transparent); padding-top:14px}
.compare{border-top:1px solid color-mix(in srgb, var(--on-teal) 35%, transparent); padding-top:18px; font-size:.95rem}
.compare table{width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; margin-top:8px}
.compare td{padding:6px 0; border-bottom:1px solid color-mix(in srgb, var(--on-teal) 25%, transparent)}
.compare td:last-child{text-align:right; font-weight:600; padding-left:12px}
.small{font-size:.8rem; opacity:.85}
@media (max-width:820px){ .pricing{grid-template-columns:minmax(0,1fr)} }

/* step-by-step guide */
.guide{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:24px; counter-reset:g}
.guide > li{counter-increment:g; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:24px; display:flex; flex-direction:column; gap:12px; min-width:0}
.guide h3{display:flex; align-items:center; gap:12px}
.guide h3::before{content:counter(g); flex:none; font-weight:800; font-size:1rem; width:36px; height:36px; border-radius:50%; display:grid; place-items:center; background:var(--teal); color:var(--on-teal)}
.guide ul{margin:0; padding-left:1.1em; display:flex; flex-direction:column; gap:6px; color:var(--muted)}
.guide ul b{color:var(--ink); font-weight:600}
.guide > li > p{color:var(--muted)}
.callout{background:var(--mist); border-radius:8px; padding:12px 14px; font-size:.92rem; color:var(--ink)}
.guide > li > p.callout{color:var(--ink)}
.send-to{display:flex; flex-wrap:wrap; align-items:center; gap:12px}
.send-to code{font-family:var(--display); font-weight:600; font-size:var(--step-1); user-select:all; word-break:break-all}
.copy-note{font-size:.85rem; color:var(--muted)}
@media (max-width:760px){ .guide{grid-template-columns:minmax(0,1fr)} }

/* about + faq */
.about{display:grid; grid-template-columns:minmax(0,220px) minmax(0,1fr); gap:40px; align-items:center}
.portrait{aspect-ratio:1; max-width:100%; border-radius:50%; background:var(--mist); border:2px dashed var(--line); display:grid; place-items:center; color:var(--muted); font-size:.9rem; text-align:center; padding:20px}
.about-copy{display:flex; flex-direction:column; gap:14px; max-width:40em}
@media (max-width:640px){ .about{grid-template-columns:minmax(0,1fr)} .portrait{max-width:180px} }
.faq{display:flex; flex-direction:column; max-width:52em}
details{border-bottom:1px solid var(--line); padding-block:18px}
summary{font-family:var(--display); font-weight:600; font-size:var(--step-1); cursor:pointer; list-style:none; display:flex; justify-content:space-between; gap:16px; min-height:44px; align-items:center}
summary::-webkit-details-marker{display:none}
summary::after{content:"+"; color:var(--teal); font-weight:800; font-size:1.4rem}
details[open] summary::after{content:"–"}
details p{color:var(--muted); margin-top:10px; max-width:42em}

/* footer */
footer{background:var(--ink); color:var(--paper)}
footer .wrap{padding-block:48px; display:flex; flex-direction:column; gap:20px}
footer .logo, footer .logo svg, footer .word span{color:var(--paper)}
.legal{font-size:.85rem; opacity:.85; max-width:60em}
.credit{opacity:.65; font-size:.8rem}
@media (prefers-reduced-motion: no-preference){ .btn{transition:background .15s ease} }

/* ---------- Phase 1 additions ---------- */
.prelaunch{background:var(--teal); color:var(--on-teal); font-size:.92rem; text-align:center}
.prelaunch .wrap{padding-block:9px}
.prelaunch strong{font-family:var(--display)}
.hero h1 .q{display:block}
.hero-sub{font-family:var(--display); font-weight:600; font-size:var(--step-1); line-height:1.35; color:var(--ink); text-wrap:balance}
.auto-grid{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:24px}
.auto-grid li{background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:20px; display:flex; flex-direction:column; gap:8px; min-width:0}
.auto-grid .ico{width:40px; height:40px; border-radius:50%; background:var(--mist); display:grid; place-items:center; color:var(--teal)}
.auto-grid .ico svg{width:20px; height:20px}
.auto-grid p{color:var(--muted); font-size:.95rem}
.auto-grid .src{font-size:.78rem; font-family:var(--display); font-weight:600; letter-spacing:.5px; color:var(--teal-ink)}
.auto-note{margin-top:20px; color:var(--muted); max-width:52em}
@media (max-width:900px){ .auto-grid{grid-template-columns:repeat(2, minmax(0,1fr))} }
@media (max-width:560px){ .auto-grid{grid-template-columns:minmax(0,1fr)} }
.form-cols{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px}
.form-cols .panel ul{margin:0; padding-left:1.1em; display:flex; flex-direction:column; gap:6px; color:var(--muted)}
.form-cols .panel ul b{color:var(--ink); font-weight:600}
.form-cols .panel.ours{background:var(--mist); border-color:transparent}
@media (max-width:760px){ .form-cols{grid-template-columns:minmax(0,1fr)} }
.free{font-family:var(--display); font-weight:800; font-size:clamp(2.4rem,6vw,3.6rem); line-height:1.05; letter-spacing:-1.5px}
.join{display:flex; flex-direction:column; gap:16px; max-width:44em}
.join .send-to{margin-top:4px}
.demo-flag{display:inline-flex; align-self:flex-start; font-family:var(--display); font-weight:600; font-size:.72rem; letter-spacing:1.5px; text-transform:uppercase; background:var(--placeholder); color:var(--ink); border:1px dashed var(--placeholder-line); border-radius:999px; padding:3px 10px}
.meta-line{display:flex; flex-wrap:wrap; gap:4px 16px; font-size:.85rem; color:var(--muted)}
.meta-line b{color:var(--ink); font-weight:600}
.local{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:24px; margin-top:24px}
.local dl{margin:0; display:flex; flex-direction:column; gap:10px}
.local dl div{display:flex; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); padding-bottom:8px}
.local dt{color:var(--muted)}
.local dd{margin:0; font-weight:600; text-align:right}
.agent-box{display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:16px; margin-top:24px; padding:20px; border:2px solid var(--teal); border-radius:var(--radius)}
.agent-box p{color:var(--muted)}
@media (max-width:700px){ .local{grid-template-columns:minmax(0,1fr)} }
.back{font-weight:600; text-decoration:none}
