/* ──────────────────────────────────────────────
   KULI — Home (warm editorial · real estate)
────────────────────────────────────────────── */

.home-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ── SCROLLYTELLING ── */
.scrolly { background: var(--ink); color: var(--warm-bg); position: relative; z-index: 1; }
.scrolly-inner { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px,4vw,40px); display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.scrolly-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.scrolly-visual { width: 100%; }
.sv-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 28px; }
.sv-stage { position: relative; min-height: 280px; }
.sv-card { position: absolute; inset: 0; opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.sv-card.active { opacity: 1; transform: none; }
.sv-num { font-family: 'Fraunces', serif; font-weight: 400; font-size: 22px; color: var(--gold-light); display: block; margin-bottom: 14px; }
.sv-card h3 { font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(40px,5.5vw,72px); line-height: 1.0; letter-spacing: -0.02em; color: var(--warm-bg); }
.sv-bar { display: flex; gap: 8px; margin-top: 40px; }
.sv-bar span { width: 34px; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.16); transition: background .4s; }
.sv-bar span.on { background: var(--gold-light); }
.scrolly-steps { padding: 26vh 0; }
.scrolly-step { min-height: 68vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.28; transition: opacity .5s var(--ease); }
.scrolly-step.active { opacity: 1; }
.scrolly-step .ss-k { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 16px; }
.scrolly-step h2 { font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(26px,3.4vw,40px); line-height: 1.12; letter-spacing: -0.02em; color: var(--warm-bg); margin-bottom: 14px; }
.scrolly-step .ss-b { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.6); max-width: 420px; }
@media (max-width: 860px) {
  .scrolly-inner { grid-template-columns: 1fr; gap: 0; }
  .scrolly-sticky { position: sticky; top: 64px; height: auto; padding: 40px 0 10px; background: var(--ink); z-index: 2; }
  .sv-stage { min-height: 150px; }
  .sv-card h3 { font-size: clamp(34px,9vw,52px); }
  .scrolly-steps { padding: 10px 0 40px; }
  .scrolly-step { min-height: auto; padding: 30px 0; opacity: 1; }
}

/* Nav tweaks for editorial light bar */
.navbar .logo-en { font-family: 'Inter', sans-serif; font-weight: 800; letter-spacing: 0.22em; font-size: 19px; }
.nav-login { font-size: 14px; font-weight: 600; color: var(--text); padding: 9px 16px; border-radius: 100px; transition: background var(--trans-fast); }
.nav-login:hover { background: rgba(0,0,0,0.05); }

/* ── HERO CARD ── */
.hero { padding: 86px 24px 0; }
.hero-card {
  max-width: 1240px; margin: 0 auto;
  background: var(--ink);
  border-radius: 30px;
  padding: 80px 54px 72px;
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-left { padding-bottom: 0; display: flex; flex-direction: column; align-items: center; max-width: 700px; width: 100%; }
.hero-h1 {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: clamp(46px, 6vw, 84px); line-height: 1.0; letter-spacing: -0.02em;
  color: var(--warm-bg); margin-bottom: 18px;
}
.hero-h1 .ul { position: relative; font-style: italic; }
.hero-h1 .ul::after {
  content: ''; position: absolute; left: 2%; right: 2%; bottom: 4px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='12' viewBox='0 0 200 12' fill='none'%3E%3Cpath d='M2 8C40 3 80 3 120 6c25 2 50 3 78 1' stroke='%238C0002' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.hero-dv-h1 { font-family:'Noto Sans Thaana',sans-serif; font-weight:600; font-size:clamp(38px,6vw,68px); color:var(--warm-bg); line-height:1.4; margin-bottom:18px; }
.hero-dv-h1 em { color: var(--gold-light); font-style: normal; }
.hero-sub { font-size: 16px; color: rgba(255,255,255,0.62); margin-bottom: 30px; max-width: 480px; text-align: center; }

/* Search pill */
.hsearch {
  display: flex; align-items: stretch; background: var(--warm-bg);
  border-radius: 100px; padding: 6px 6px 6px 8px; gap: 4px; max-width: 620px; width: 100%;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25); margin-bottom: 22px;
}
.hs-field { display: flex; align-items: center; gap: 8px; padding: 8px 14px; flex: 1; position: relative; cursor: pointer; min-width: 0; }
.hs-field + .hs-field::before { content:''; position:absolute; left:0; top:9px; bottom:9px; width:1px; background:var(--border); }
body.dv .hs-field + .hs-field::before { left:auto; right:0; }
.hs-field svg { width: 15px; height: 15px; stroke: var(--muted); fill: none; stroke-width: 1.8; flex-shrink: 0; }
.hs-field select {
  border: none; outline: none; -webkit-appearance: none; appearance: none;
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer;
  text-overflow: ellipsis; min-width: 0; width: 100%;
  background: transparent url("data:image/svg+xml,%3Csvg width='10' height='7' viewBox='0 0 10 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238C0002' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 2px center;
  padding-right: 16px;
}
.hs-field .hs-static { font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; }
.hs-field .hs-static .mut { color: var(--muted); font-weight: 500; }
.hs-go {
  flex-shrink: 0; background: var(--ink); color: var(--warm-bg); border-radius: 100px;
  padding: 0 26px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px;
  transition: background var(--trans-fast);
}
.hs-go:hover { background: #000; }
.hs-go svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Trust row */
.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; margin-top: auto; justify-content: center; }
.htrust { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.6); }
.htrust .ic { width: 22px; height: 22px; border-radius: 50%; background: rgba(140,0,2,0.18); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.htrust .ic svg { width: 13px; height: 13px; stroke: var(--gold-light); fill: none; stroke-width: 2; }

/* Hero photo */
.hero-photo { position: relative; align-self: stretch; min-height: 380px; border-radius: 22px 22px 0 0; overflow: hidden; margin-top: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; background: #262626; }
.hero-photo .vchip {
  position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--warm-bg); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 13px; border-radius: 100px;
}
.hero-photo .vchip svg { width: 13px; height: 13px; stroke: var(--gold-light); fill: none; stroke-width: 2.2; }

/* ── Hero insights panel (replaces hero photo) ── */
.hero-panel {
  align-self: stretch; min-height: 380px; display: flex; flex-direction: column; gap: 18px;
  background: linear-gradient(165deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.10); border-radius: 22px 22px 0 0;
  padding: 26px; margin-top: 0;
}
.hp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hp-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: rgba(255,255,255,0.7); }
.hp-dot { width: 7px; height: 7px; border-radius: 50%; background: #6FBF73; box-shadow: 0 0 0 0 rgba(111,191,115,.5); animation: hpPing 2s ease infinite; }
@keyframes hpPing { 0%{box-shadow:0 0 0 0 rgba(111,191,115,.5);} 70%{box-shadow:0 0 0 7px rgba(111,191,115,0);} 100%{box-shadow:0 0 0 0 rgba(111,191,115,0);} }
.hp-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-light); background: rgba(140,0,2,0.14); border: 1px solid rgba(178,45,48,0.3); padding: 6px 11px; border-radius: 100px; }
.hp-chip svg { width: 13px; height: 13px; stroke: var(--gold-light); fill: none; stroke-width: 2; }
.hp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp-cell { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 18px; }
.hp-num { font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(26px,3vw,36px); color: var(--warm-bg); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hp-lbl { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 7px; }
.hp-bars { margin-top: auto; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 18px; }
.hp-bars-head { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 14px; }
.hp-bar { display: grid; grid-template-columns: 76px 1fr 36px; align-items: center; gap: 10px; margin-bottom: 10px; }
.hp-bar:last-child { margin-bottom: 0; }
.hp-bar-lbl { font-size: 12.5px; color: rgba(255,255,255,0.78); }
.hp-bar-track { height: 7px; border-radius: 7px; background: rgba(255,255,255,0.10); overflow: hidden; }
.hp-bar-track i { display: block; height: 100%; width: 0; border-radius: 7px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); animation: hpGrow 1.1s cubic-bezier(.22,1,.36,1) 0.35s both; }
@keyframes hpGrow { from { width: 0; } to { width: var(--w); } }
.hp-bar-v { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.6); text-align: right; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce){ .hp-bar-track i { animation: none; width: var(--w); } .hp-dot { animation: none; } }

/* ── CONTENT GRID ── */
.home-main { padding: 56px 24px 0; }
.grid2 { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }

.section-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.section-title { font-family: 'Fraunces', serif; font-weight: 500; font-size: 26px; color: var(--ink); letter-spacing: -0.01em; }
.link-all { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); transition: gap var(--trans-fast); }
.link-all:hover { gap: 10px; }
.link-all svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Property cards (photo-led) */
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pcard {
  position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 5 / 6;
  background: var(--ink); display: block; cursor: pointer;
  transition: transform var(--trans-med), box-shadow var(--trans-med);
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.pcard:hover img { transform: scale(1.05); }
.pcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,14,14,0.92) 4%, rgba(14,14,14,0.45) 34%, rgba(14,14,14,0) 60%); }
.pcard-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(255,255,255,0.92); color: var(--ink); font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 11px; border-radius: 100px;
}
.pcard-badge.dark { background: rgba(0,0,0,0.72); color: var(--warm-bg); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pcard-fav {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,0.42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.22);
  min-height: 0;
}
body.dv .pcard-fav { right: auto; left: 12px; }
.pcard-fav svg { width: 17px; height: 17px; stroke: var(--warm-bg); fill: none; stroke-width: 1.8; transition: var(--trans-fast); }
.pcard-fav.saved svg { fill: var(--gold); stroke: var(--gold); }
.pcard-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; z-index: 2; }
.pcard-price { font-family: 'Fraunces', serif; font-weight: 600; font-size: 22px; color: var(--warm-bg); letter-spacing: -0.01em; }
.pcard-price small { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.7); }
.pcard-meta { font-size: 12.5px; color: rgba(255,255,255,0.78); margin-top: 3px; }
.pcard-foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.65); }
.pcard-foot .v { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-light); }
.pcard-foot .v svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.4; }

/* ── ASIDE ── */
.aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 84px; }
.acard { background: var(--white); border: 1px solid var(--border); border-radius: 22px; padding: 24px; box-shadow: var(--shadow-sm); }
.acard.dark { background: var(--ink); border-color: transparent; }
.acard h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 20px; color: var(--ink); margin-bottom: 16px; }
.acard.dark h3 { color: var(--warm-bg); }
.why-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.why-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.why-row:last-child { border-bottom: none; }
.why-row .ico { width: 30px; height: 30px; border-radius: 9px; background: var(--gold-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.why-row .ico svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 1.8; }
.why-row .lbl { font-size: 14px; font-weight: 600; color: var(--text); flex: 1; }
.why-row .chk { width: 18px; height: 18px; flex-shrink: 0; }
.why-row .chk svg { width: 18px; height: 18px; stroke: var(--success); fill: none; stroke-width: 2.2; }

/* Roommates card */
.rm-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.rm-pill { background: var(--gold-bg); color: var(--gold-deep); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px; border-radius: 100px; }
.rm-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.avatars { display: flex; }
.avatars span { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--white); margin-left: -10px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; }
.avatars span:first-child { margin-left: 0; }
.acard.dark .avatars span { border-color: var(--ink); }

/* ── STATS ── */
.stats { padding: 64px 24px 0; }
.stats-bar { max-width: 1240px; margin: 0 auto; background: var(--ink); border-radius: 26px; padding: 44px 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat-cell { text-align: center; position: relative; }
.stat-cell + .stat-cell::before { content:''; position:absolute; left:0; top:14%; height:72%; width:1px; background:rgba(255,255,255,0.14); }
body.dv .stat-cell + .stat-cell::before { left:auto; right:0; }
.stat-num { font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(34px,4.5vw,50px); color: var(--warm-bg); line-height: 1; letter-spacing: -0.02em; }
.stat-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 8px; }

/* ── HOW IT WORKS ── */
.how { padding: 64px 24px 0; }
.how-inner { max-width: 1240px; margin: 0 auto; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.how-step { display: flex; gap: 16px; align-items: flex-start; padding: 24px; background: var(--white); border: 1px solid var(--border); border-radius: 18px; }
.how-step .n { font-family: 'Fraunces', serif; font-size: 15px; font-weight: 600; color: var(--gold); border: 1px solid var(--gold-border); width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.how-step h4 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.how-step p { font-size: 13.5px; color: var(--muted); }

/* ── CTA ── */
.cta { padding: 72px 24px 0; }
.cta-card { max-width: 1240px; margin: 0 auto; background: var(--section-bg); border-radius: 28px; padding: clamp(40px,6vw,68px); text-align: center; }
.cta-card h2 { font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(30px,4.5vw,52px); color: var(--ink); line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 14px; }
.cta-card h2 em { font-style: italic; color: var(--gold); }
.cta-card p { font-size: 16px; color: var(--muted); margin-bottom: 28px; max-width: 460px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
.foot { background: var(--ink); margin-top: 80px; padding: 60px 24px 36px; }
.foot-in { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--dark-border); }
.foot-brand { max-width: 280px; }
.foot-logo { font-family: 'Inter', sans-serif; font-weight: 800; letter-spacing: 0.2em; font-size: 18px; color: var(--warm-bg); margin-bottom: 12px; }
.foot-tag { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.7; }
.foot-col h5 { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 14px; }
.foot-col ul { display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color var(--trans-fast); }
.foot-col a:hover { color: var(--gold-light); }
.foot-bottom { max-width: 1240px; margin: 22px auto 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.foot-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
.foot-links { display: flex; gap: 18px; }
.foot-links a { font-size: 12px; color: rgba(255,255,255,0.3); transition: color var(--trans-fast); }
.foot-links a:hover { color: var(--gold-light); }

/* ── RESPONSIVE ── */
@media (max-width: 1040px) {
  .grid2 { grid-template-columns: 1fr; }
  .aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .aside > * { flex: 1 1 280px; }
}
@media (max-width: 900px) {
  .hero-card { padding: 60px 28px 52px; }
  .hero-left { padding-bottom: 0; }
  .hero-photo { min-height: 280px; border-radius: 18px; margin-bottom: 28px; }
  .pcards { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; gap: 30px; }
  .stat-cell + .stat-cell::before { display: none; }
}
@media (max-width: 560px) {
  .hero { padding-top: 78px; }
  .hsearch { flex-direction: column; border-radius: 22px; padding: 10px; }
  .hs-field + .hs-field::before { display: none; }
  .hs-field { padding: 10px 12px; }
  .hs-go { padding: 14px; border-radius: 14px; justify-content: center; }
  .pcards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .foot-in { flex-direction: column; }
}

/* ── Mobile refinements ── */
.pcard-price{ text-shadow:0 1px 10px rgba(0,0,0,.45); }
.pcard::after{ background:linear-gradient(to top, rgba(14,14,14,0.94) 6%, rgba(14,14,14,0.5) 40%, rgba(14,14,14,0) 64%); }

@media (max-width: 900px) {
  /* Hero stacks — panel becomes a compact stats strip */
  .hero-panel { border-radius: 18px; min-height: 0; margin: 0 0 28px; }
}

@media (max-width:640px){
  .hero { padding-top: 74px; }
  .hero-card{ padding: 44px 20px 40px; border-radius: 22px; gap: 20px; }
  .hero-h1 { font-size: clamp(38px, 11vw, 58px); margin-bottom: 14px; }
  .hero-sub { font-size: 14px; margin-bottom: 22px; }
  .hero-left { padding-bottom: 0; }

  /* Compact insights panel — hide bar chart on very small screens */
  .hero-panel{ padding: 16px; gap: 12px; }
  .hp-head { flex-wrap: wrap; gap: 8px; }
  .hp-chip { font-size: 9.5px; }
  .hp-grid{ grid-template-columns: 1fr 1fr; gap: 8px; }
  .hp-cell{ padding: 12px 14px; border-radius: 12px; }
  .hp-num { font-size: clamp(20px, 6vw, 28px); }
  .hp-lbl { font-size: 11px; }
  .hp-bars { display: none; }

  /* Search pill vertical */
  .hsearch { border-radius: 18px; padding: 8px; }
  .hs-field { padding: 10px 12px; }
  .hs-field select { font-size: 14px; }
  .hs-go { padding: 13px 16px; border-radius: 12px; justify-content: center; font-size: 14px; }

  /* Hero trust row — wrap nicely */
  .hero-trust { gap: 14px; }
  .htrust { font-size: 12px; }

  /* Cards */
  .pcards{ grid-template-columns: 1fr; }
  .pcard{ aspect-ratio: 4/3; }
  .pcard-price{ font-size:22px; }
  .pcard-meta{ color:rgba(255,255,255,0.92); font-size:13px; }

  /* Content grid */
  .grid2{ gap:20px; }
  .section-title{ font-size:22px; }
  .home-main { padding: 40px 16px 0; }

  /* Aside cards */
  .acard { padding: 20px; }

  /* How it works */
  .how-step { padding: 18px; }

  /* CTA */
  .cta { padding: 48px 16px 0; }
  .cta-card { padding: 36px 22px; }
}

@media (max-width: 380px) {
  .hero-h1 { font-size: 34px; }
  .hp-grid { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════
   DARK MODE — home page overrides
   Surface: frosted glass instead of solid ink.
   Background: page is already dark via --page-bg token.
══════════════════════════════════════════════════════════════════════ */

/* Hero card — dissolves into the environment */
[data-theme="dark"] .hero-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.026) 0%, rgba(255,255,255,0.010) 100%);
  border-color: rgba(255,255,255,0.04);
  box-shadow: none;
}
[data-theme="dark"] .hero-card::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.09), transparent);
}
[data-theme="dark"] .hero-card::after {
  background: radial-gradient(ellipse at 50% 0%, rgba(140,0,2,0.07) 0%, transparent 62%);
}

/* Search bar — glass panel on dark */
[data-theme="dark"] .hsearch {
  background: #171717;
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 16px 48px rgba(0,0,0,0.40);
}
[data-theme="dark"] .hs-field svg                { stroke: rgba(255,255,255,0.28); }
[data-theme="dark"] .hs-field + .hs-field::before { background: rgba(255,255,255,0.07); }
[data-theme="dark"] .hs-field select             { color: rgba(255,255,255,0.60); background-color: transparent; }
[data-theme="dark"] .hs-field .kd-trigger        { color: rgba(255,255,255,0.60); }
[data-theme="dark"] .hs-go                        { background: rgba(255,255,255,0.90); color: #171717; }
[data-theme="dark"] .hs-go:hover                  { background: #ffffff; }

/* Trust row */
[data-theme="dark"] .htrust                       { color: rgba(255,255,255,0.28); }

/* Section headers */
[data-theme="dark"] .section-title                { color: rgba(255,255,255,0.75); }
[data-theme="dark"] .link-all                     { color: rgba(255,255,255,0.45); }
[data-theme="dark"] .link-all:hover               { color: rgba(178,45,48,0.75); }

/* Property cards — slightly lifted surface */
[data-theme="dark"] .pcard {
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.07);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 2px 10px rgba(0,0,0,0.28), 0 10px 36px rgba(0,0,0,0.18);
}
[data-theme="dark"] .pcard img { opacity: 0.80; }
[data-theme="dark"] .pcard-badge {
  background: rgba(4,4,4,0.55);
  border-color: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.65);
}
[data-theme="dark"] .pcard-fav {
  background: rgba(6,6,6,0.48);
  border-color: rgba(255,255,255,0.08);
}

/* How it works steps */
[data-theme="dark"] .how-step {
  background: rgba(255,255,255,0.032);
  border-color: rgba(255,255,255,0.06);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
}
[data-theme="dark"] .how-step h4 { color: rgba(255,255,255,0.72); }
[data-theme="dark"] .how-step p  { color: rgba(255,255,255,0.32); }
[data-theme="dark"] .how-step .n { color: rgba(178,45,48,0.6); border-color: rgba(140,0,2,0.18); }

/* Aside cards */
[data-theme="dark"] .acard {
  background: rgba(255,255,255,0.042);
  border-color: rgba(255,255,255,0.07);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 2px 12px rgba(0,0,0,0.22);
}
[data-theme="dark"] .acard::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
}
[data-theme="dark"] .acard h3                     { color: rgba(255,255,255,0.82); }
[data-theme="dark"] .why-row                      { border-color: rgba(255,255,255,0.05); }
[data-theme="dark"] .why-row .lbl                 { color: rgba(255,255,255,0.62); }
[data-theme="dark"] .why-row .chk svg             { stroke: rgba(140,0,2,0.55); }
[data-theme="dark"] .why-row .ico                 { background: rgba(140,0,2,0.10); border: 1px solid rgba(140,0,2,0.12); }
[data-theme="dark"] .why-row .ico svg             { stroke: rgba(178,45,48,0.65); }
[data-theme="dark"] .acard .btn.btn-primary {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.09);
}
[data-theme="dark"] .acard .btn.btn-primary:hover {
  background: rgba(255,255,255,0.11);
  color: rgba(255,255,255,0.88);
  transform: none;
  box-shadow: none;
}
[data-theme="dark"] .rm-pill                      { background: rgba(140,0,2,0.10); color: rgba(178,45,48,0.6); border: 1px solid rgba(140,0,2,0.16); }
[data-theme="dark"] .btn-ghost.btn-sm             { border-color: rgba(255,255,255,0.09); color: rgba(255,255,255,0.42); }

/* Stats bar (already dark in light mode — refine border) */
[data-theme="dark"] .stats-bar                    { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); }

/* CTA section */
[data-theme="dark"] .cta-card {
  background: rgba(255,255,255,0.032);
  border: 1px solid rgba(255,255,255,0.06);
}
[data-theme="dark"] .cta-card h2 { color: rgba(255,255,255,0.82); }
[data-theme="dark"] .cta-card p  { color: rgba(255,255,255,0.38); }
[data-theme="dark"] .cta-card .btn.btn-primary {
  background: var(--warm-bg);
  color: #171717;
}
[data-theme="dark"] .cta-card .btn.btn-primary:hover { background: #ffffff; }
[data-theme="dark"] .cta-card .btn.btn-ghost {
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.52);
}
[data-theme="dark"] .cta-card .btn.btn-ghost:hover {
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.75);
}
