:root {
  --cream: #F7F1E4;
  --sidewalk: #E9DCC1;
  --lawn: #8FB86A;
  --lawnDeep: #4E7A3A;
  --roof: #C65A3B;
  --sky: #5E89B5;
  --sold: #F4C542;
  --asphalt: #2B2F33;
  --ink: #1E2124;
  --muted: #5C6066;
  --radius: 22px;
  --hair: rgba(30, 33, 36, 0.12);
  --shadow: 0 1px 2px rgba(30, 33, 36, 0.06), 0 14px 34px -12px rgba(30, 33, 36, 0.22);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--cream); color: var(--ink); }

body {
  font-family: 'Cairo', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.72;
  overflow-x: hidden;
  letter-spacing: 0;
}

.ks-ltr {
  direction: ltr;
  display: inline-block;
  unicode-bidi: isolate;
  font-family: 'IBM Plex Mono', monospace;
}

.ks-wrap {
  width: min(1260px, calc(100% - 48px));
  margin-inline: auto;
}

/* Floating White Pill Header */
.ks-header-bar {
  position: sticky;
  top: 14px;
  z-index: 70;
  padding-top: 14px;
}

.ks-nav-pill {
  height: 62px;
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--hair);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 0 18px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ks-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.ks-pin-dot {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--sold);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
}

.ks-pin-dot i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.ks-brand-name {
  font-family: 'Amiri', serif;
  font-size: 1.38rem;
  font-weight: 700;
}

.ks-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.ks-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.ks-links a:hover { color: var(--roof); }

.ks-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.ks-mini {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--hair);
  background: var(--cream);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.ks-mini:hover { background: var(--sidewalk); }

.ks-cta-sold {
  text-decoration: none;
  background: var(--sold);
  color: var(--ink);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
}

.ks-cta-sold:hover { background: #E9B62D; }

/* Hero Split + 1:87 Overhead Model with Pointer Thermal Heatmap */
.ks-hero {
  padding: 36px 0 68px;
}

.ks-hero-grid {
  display: grid;
  grid-template-columns: 0.98fr 1.18fr;
  gap: 40px;
  align-items: center;
}

.ks-kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFDF9;
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: 0 3px 10px rgba(30, 33, 36, 0.06);
}

.ks-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--roof);
}

.ks-h1 {
  font-family: 'Amiri', serif;
  font-size: clamp(2.6rem, 4.5vw, 4.1rem);
  font-weight: 700;
  line-height: 1.38;
  color: var(--ink);
  margin-bottom: 18px;
}

.ks-h1 em {
  font-style: italic;
  color: var(--roof);
}

.ks-lead {
  font-size: 1.03rem;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 24px;
}

.ks-val-form {
  display: flex;
  align-items: center;
  background: #FFFDF9;
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 6px 8px 6px 6px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  max-width: 480px;
}

.ks-val-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.92rem;
  color: var(--ink);
  outline: none;
}

.ks-val-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: var(--sold);
  color: var(--ink);
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
}

.ks-val-out {
  min-height: 24px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--lawnDeep);
  margin-bottom: 18px;
}

.ks-trust-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--muted);
}

.ks-trust-row strong { color: var(--ink); }

/* Overhead 1:87 Architectural Model Card */
.ks-model-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1.08 / 1;
  background: var(--asphalt);
  box-shadow: var(--shadow);
  cursor: crosshair;
}

.ks-model-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ks-heatmap {
  position: absolute;
  left: var(--hx, 52%);
  top: var(--hy, 56%);
  width: 240px;
  height: 240px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.82);
  background: radial-gradient(circle, rgba(235, 58, 92, 0.58) 0%, rgba(244, 155, 50, 0.36) 52%, transparent 74%);
  pointer-events: none;
}

.ks-heat-badge {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--asphalt);
  color: var(--sold);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.ks-top-tag {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  background: rgba(43, 47, 51, 0.84);
  color: #FAF6EE;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.ks-pin-float {
  position: absolute;
  background: #FFFDF9;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  font-size: 0.76rem;
  line-height: 1.35;
}

.ks-pin-float strong { display: block; font-size: 0.86rem; color: var(--roof); }

.ks-market-card {
  position: absolute;
  bottom: 16px;
  inset-inline-start: 16px;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.ks-market-card strong {
  display: block;
  font-family: 'Amiri', serif;
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--ink);
}

.ks-market-card span { font-size: 0.72rem; color: var(--muted); }

/* Sections */
.ks-sec { padding: 74px 0; }
.ks-asphalt { background: var(--asphalt); color: var(--cream); }
.ks-sidewalk { background: var(--sidewalk); border-block: 1px solid var(--hair); }

.ks-eyebrow {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--roof);
  margin-bottom: 8px;
}

.ks-asphalt .ks-eyebrow { color: var(--sold); }

.ks-h2 {
  font-family: 'Amiri', serif;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: 14px;
}

/* #homes Curated Cards */
.ks-homes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 26px;
}

.ks-home {
  background: #FFFDF9;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 24px -12px rgba(30, 33, 36, 0.14);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ks-home-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ks-home-tag {
  background: rgba(143, 184, 106, 0.24);
  color: var(--lawnDeep);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.ks-heart {
  border: 1px solid var(--hair);
  background: var(--cream);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  color: var(--muted);
}

.ks-heart.is-saved {
  background: var(--roof);
  color: #FFFDF9;
  border-color: var(--roof);
}

.ks-home h3 { font-family: 'Amiri', serif; font-size: 1.48rem; }
.ks-home p { font-size: 0.88rem; color: var(--muted); }
.ks-home-price {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--hair);
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 0.92rem;
}

/* #sell Asphalt Calculator */
.ks-sell-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 30px;
  margin-top: 26px;
  align-items: center;
}

.ks-modes { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.ks-mode-btn {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(247, 241, 228, 0.35);
  background: transparent;
  color: var(--cream);
  font-family: 'Cairo', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.ks-mode-btn.is-active {
  background: var(--sold);
  color: var(--ink);
  border-color: var(--sold);
}

.ks-range { width: 100%; accent-color: var(--sold); margin: 10px 0 14px; cursor: pointer; }

.ks-sell-out {
  background: rgba(247, 241, 228, 0.07);
  border: 1.5px solid var(--sold);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.ks-days-num {
  font-family: 'Amiri', serif;
  font-size: 3.4rem;
  color: var(--sold);
  font-weight: 700;
  line-height: 1.15;
}

/* #areas Neighborhood Tabs */
.ks-area-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.ks-area-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: #FFFDF9;
  color: var(--ink);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.ks-area-btn.is-active {
  background: var(--roof);
  border-color: var(--roof);
  color: #FFFDF9;
}

.ks-area-card {
  background: #FFFDF9;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

/* #agents Beats & Quote */
.ks-beats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
}

.ks-beat {
  background: var(--cream);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 20px;
}

.ks-beat .ks-ltr { font-size: 0.7rem; color: var(--roof); font-weight: 700; }
.ks-beat h4 { font-family: 'Amiri', serif; font-size: 1.24rem; margin: 6px 0; }
.ks-beat p { font-size: 0.85rem; color: var(--muted); }

.ks-quote {
  background: #FFFDF9;
  border-radius: 18px;
  padding: 24px 28px;
  border-inline-start: 4px solid var(--roof);
}

.ks-quote blockquote { font-family: 'Amiri', serif; font-size: 1.38rem; margin-bottom: 6px; }
.ks-quote cite { font-style: normal; font-size: 0.85rem; color: var(--roof); font-weight: 700; }

/* Footer */
.ks-footer {
  background: var(--asphalt);
  color: var(--cream);
  padding: 46px 0 36px;
}

.ks-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.ks-footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.ks-footer-links a { color: var(--sold); text-decoration: none; font-size: 0.88rem; font-weight: 700; }

@media (max-width: 720px) {
  .ks-links { display: none; }
  .ks-hero-grid, .ks-homes-grid, .ks-sell-grid, .ks-area-card, .ks-beats { grid-template-columns: 1fr; }
}
