/* TowerWise website. Colours are tokens so light and dark both work. */
:root {
  --accent: #0D7D7A;
  --accent-2: #0A6664;
  --accent-soft: #DDF0EE;
  --sand: #E8D9B3;
  --sand-2: #F3EBD6;
  --bg: #FAF8F3;
  --surface: #FFFFFF;
  --surface-2: #F4F1E9;
  --ink: #1A1D1D;
  --ink-2: #545B5B;
  --ink-3: #868D8C;
  --hairline: #E7E3D9;
  --shadow: rgba(7, 50, 48, .12);
  --hero-top: #0A6664;
  --hero-bottom: #073F3E;

  /* insight tones, as in the app */
  --warn: #D2453F;
  --warn-soft: #FBE7E5;
  --heads: #D7811A;
  --heads-soft: #FCEFDC;
  --good: #0F9F7A;
  --good-soft: #DDF3EC;
  --info: #2F76CF;
  --info-soft: #E2EDFA;
  --mid: #C9A400;

  /* map */
  --land: #F1ECE0;
  --street: #E2DACB;
  --sea: #BFE3E6;
  --sea-line: #9ED2D6;
  --beach: #EEDDB0;
  --park: #CBE6C3;
  --road: #FFFFFF;
  --road-edge: #D9CBAE;
  --metro: #D2453F;
  --tram: #2F76CF;
  --tower: #8E9594;
  --tower-hi: #5E6766;
  --plot: #E9D9B6;
  --map-label: #6D706B;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #4CC2BC;
    --accent-2: #2FA6A0;
    --accent-soft: #163332;
    --sand-2: #2A2720;
    --bg: #101414;
    --surface: #1A1F1F;
    --surface-2: #151A1A;
    --ink: #F1F3F2;
    --ink-2: #A3ACAB;
    --ink-3: #737C7B;
    --hairline: #2A3131;
    --shadow: rgba(0, 0, 0, .45);
    --warn: #F06C64;
    --warn-soft: #3A1F1E;
    --heads: #F2A445;
    --heads-soft: #3A2B17;
    --good: #3DCB9F;
    --good-soft: #15332A;
    --info: #6AA8F2;
    --info-soft: #172A40;
    --mid: #E8C640;
    --land: #1E2423;
    --street: #262D2C;
    --sea: #12343A;
    --sea-line: #1B464D;
    --beach: #3A3527;
    --park: #1F3A2A;
    --road: #3A4241;
    --road-edge: #2B3231;
    --tower: #66706F;
    --tower-hi: #9AA4A3;
    --plot: #3A3527;
    --map-label: #9AA19F;
  }
}
:root[data-theme="dark"] {
  --accent: #4CC2BC; --accent-2: #2FA6A0; --accent-soft: #163332; --sand-2: #2A2720;
  --bg: #101414; --surface: #1A1F1F; --surface-2: #151A1A; --ink: #F1F3F2; --ink-2: #A3ACAB;
  --ink-3: #737C7B; --hairline: #2A3131; --shadow: rgba(0, 0, 0, .45);
  --warn: #F06C64; --warn-soft: #3A1F1E; --heads: #F2A445; --heads-soft: #3A2B17;
  --good: #3DCB9F; --good-soft: #15332A; --info: #6AA8F2; --info-soft: #172A40; --mid: #E8C640;
  --land: #1E2423; --street: #262D2C; --sea: #12343A; --sea-line: #1B464D; --beach: #3A3527;
  --park: #1F3A2A; --road: #3A4241; --road-edge: #2B3231; --tower: #66706F; --tower-hi: #9AA4A3;
  --plot: #3A3527; --map-label: #9AA19F;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- sticky nav ---------- */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--hairline);
  transform: translateY(-100%);
  transition: transform .28s ease;
}
.topnav.show { transform: none; }
.topnav-inner {
  max-width: 1120px; margin: 0 auto; padding: 8px 16px;
  display: flex; align-items: center; gap: 14px;
}
.topnav .brand { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -.01em; flex: none; }
.topnav .brand img { width: 28px; height: 28px; border-radius: 7px; }
.topnav nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.topnav nav::-webkit-scrollbar { display: none; }
.topnav nav a {
  flex: none; color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 600;
  padding: 6px 11px; border-radius: 999px; transition: background .15s, color .15s;
}
.topnav nav a:hover, .topnav nav a.on { background: var(--accent-soft); color: var(--accent); }
.topnav .get {
  flex: none; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; font-size: .88rem;
  padding: 7px 14px; border-radius: 999px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topnav .get { color: #062624; } }
:root[data-theme="dark"] .topnav .get { color: #062624; }
@media (max-width: 640px) { .topnav .brand span, .topnav .get { display: none; } }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, #073F3E, #0A6664);
  color: #fff;
  padding: 64px 24px 150px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  touch-action: pan-y;
}
.hero canvas#sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, rgba(4, 30, 32, .55) 0%, rgba(4, 30, 32, .18) 55%, transparent 80%);
}
.hero-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 300px;
  gap: 56px; align-items: center;
  position: relative;
}
.hero-icon {
  width: 84px; height: 84px; border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.12;
  text-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.hero h1 .app-name { color: var(--sand); }
.hero .lede { margin-top: 16px; font-size: 1.08rem; opacity: .92; max-width: 31em; text-shadow: 0 1px 10px rgba(0,0,0,.3); }
.hero .badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero .note { margin-top: 18px; font-size: .9rem; opacity: .78; }
.clock {
  position: absolute; left: 50%; bottom: 86px; transform: translateX(-50%);
  z-index: 1; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 10px;
  background: rgba(3, 24, 26, .55); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 999px; padding: 7px 16px 7px 8px; font-size: .9rem; line-height: 1.3;
  pointer-events: none;
}
.clock b { background: rgba(255,255,255,.14); border-radius: 999px; padding: 3px 10px; font-weight: 700; white-space: nowrap; }
.clock span { opacity: .92; }
.clock small { display: block; font-size: .72rem; opacity: .65; margin-top: 1px; }

/* ---------- store buttons ---------- */
.store {
  display: inline-flex; align-items: center; gap: 11px;
  background: #000; color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px; padding: 9px 18px 9px 15px;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease;
}
a.store:hover { transform: translateY(-2px); background: #17171c; }
.store svg { flex: none; }
.store .label { line-height: 1.15; }
.store .label small { display: block; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.store .label strong { display: block; font-size: 1.02rem; font-weight: 650; }

/* ---------- phone ---------- */
.phone {
  justify-self: center; width: 100%; max-width: 290px;
  border-radius: 44px; padding: 11px;
  background: linear-gradient(155deg, #43434f, #1b1b22 55%, #33333d);
  box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08) inset;
  transform: perspective(900px) rotateY(var(--ry, -6deg)) rotateX(var(--rx, 2deg));
  transition: transform .4s ease;
}
.phone img { border-radius: 34px; width: 100%; }

/* ---------- layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px 88px; }
section.block { margin-top: 96px; }
.section-head { text-align: center; max-width: 42em; margin: 0 auto 34px; }
.section-head h2 { font-size: clamp(1.55rem, 3.4vw, 2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.section-head p { color: var(--ink-2); margin-top: 10px; }
.pill {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 13px; border-radius: 999px; margin-bottom: 12px;
}
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px;
  box-shadow: 0 1px 0 var(--hairline), 0 18px 40px -24px var(--shadow);
}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.lead-card {
  padding: 30px 32px; margin-top: -72px; position: relative; z-index: 2;
  text-align: center; box-shadow: 0 14px 40px var(--shadow);
}
.lead-card .big { font-size: 1.3rem; font-weight: 750; letter-spacing: -0.01em; }
.lead-card .big span { color: var(--good); }
.lead-card p { color: var(--ink-2); margin-top: 8px; max-width: 46em; margin-left: auto; margin-right: auto; }

/* ---------- chips & segmented controls ---------- */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--hairline); background: var(--surface); color: var(--ink-2);
  border-radius: 999px; padding: 6px 13px; font-size: .88rem; font-weight: 600;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chip[aria-pressed="true"], :root:not([data-theme="light"]) .chip[aria-selected="true"] { color: #062624; }
}
:root[data-theme="dark"] .chip[aria-pressed="true"], :root[data-theme="dark"] .chip[aria-selected="true"] { color: #062624; }
.chip small { font-weight: 600; opacity: .75; font-size: .78rem; }
.ctl-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 7px; display: block; }

/* ---------- explore (map sandbox) ---------- */
.explore { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.map-card { padding: 12px; position: relative; }
.map-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 4px 4px 10px; }
.map-tools .hint { font-size: .86rem; color: var(--ink-2); }
.map-wrap { position: relative; border-radius: 14px; overflow: hidden; background: var(--land); }
#map { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; cursor: crosshair; }
#map text { font-family: inherit; }
.m-land { fill: var(--land); }
.m-street { stroke: var(--street); stroke-width: 3; fill: none; }
.m-sea { fill: var(--sea); }
.m-wave { stroke: var(--sea-line); stroke-width: 2; fill: none; stroke-linecap: round; }
.m-beach { fill: var(--beach); }
.m-park { fill: var(--park); }
.m-plot { fill: var(--plot); stroke: var(--heads); stroke-width: 1.5; stroke-dasharray: 5 4; opacity: .9; }
.m-road-edge { stroke: var(--road-edge); stroke-width: 26; fill: none; stroke-linecap: butt; }
.m-road { stroke: var(--road); stroke-width: 22; fill: none; }
.m-lane { stroke: var(--road-edge); stroke-width: 1.2; stroke-dasharray: 10 10; fill: none; }
.m-metro { stroke: var(--metro); stroke-width: 5; fill: none; stroke-linecap: round; }
.m-tram { stroke: var(--tram); stroke-width: 3; fill: none; stroke-dasharray: 2 6; stroke-linecap: round; }
.m-station { fill: var(--surface); stroke: var(--metro); stroke-width: 3.5; }
.m-tramstop { fill: var(--surface); stroke: var(--tram); stroke-width: 3; }
.m-flight { fill: var(--info); fill-opacity: .07; stroke: var(--info); stroke-opacity: .45; stroke-width: 1.5; stroke-dasharray: 8 6; }
.m-label { fill: var(--map-label); font-size: 13px; font-weight: 650; letter-spacing: .02em; }
.m-label.road { fill: var(--ink-3); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.m-label.sea { fill: var(--sea-line); font-size: 15px; letter-spacing: .3em; font-weight: 700; }
.m-poi { font-size: 19px; text-anchor: middle; dominant-baseline: central; }
.m-bgtower { fill: var(--tower); stroke: var(--land); stroke-width: 1.5; }
.m-heat rect { transition: fill .3s; }
.m-ring { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 3 5; opacity: .75; }
.m-ring-label { fill: var(--accent); font-size: 11px; font-weight: 700; }
.m-link { stroke: var(--metro); stroke-width: 2; stroke-dasharray: 4 4; fill: none; }
.m-link-label { fill: var(--metro); font-size: 12px; font-weight: 800; paint-order: stroke; stroke: var(--land); stroke-width: 4px; }
.m-preset { cursor: pointer; }
.m-preset rect.body { fill: var(--tower-hi); stroke: var(--surface); stroke-width: 2.5; transition: fill .2s; }
.m-preset text { fill: var(--ink); font-size: 12.5px; font-weight: 750; paint-order: stroke; stroke: var(--land); stroke-width: 4px; text-anchor: middle; pointer-events: none; }
.m-preset:hover rect.body, .m-preset:focus-visible rect.body { fill: var(--accent); }
.m-preset:focus { outline: none; }
.m-preset.sel { cursor: grab; touch-action: none; }
.m-preset.sel rect.body { fill: var(--accent); stroke-width: 3; }
.m-preset.sel.dragging { cursor: grabbing; }
.m-preset .pulse { fill: var(--accent); opacity: .22; transform-box: fill-box; transform-origin: center; animation: pulse 1.8s ease-out infinite; }
.m-preset:not(.sel) .pulse { display: none; }
@keyframes pulse { from { transform: scale(.6); opacity: .35; } to { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .m-preset .pulse { animation: none; opacity: .18; } }
@media (max-width: 640px) {
  .m-poi { font-size: 30px; }
  .m-label { font-size: 19px; }
  .m-label.road { font-size: 17px; }
  .m-preset text { font-size: 20px; stroke-width: 6px; }
  .m-ring-label, .m-link-label { font-size: 17px; }
}
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 6px 2px; font-size: .8rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.heat-key { display: none; align-items: center; gap: 8px; font-size: .78rem; color: var(--ink-2); padding: 8px 6px 0; }
.heat-key.show { display: flex; }
.heat-key i { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--warn), var(--heads), var(--mid), var(--good)); max-width: 220px; }

.tower-panel { padding: 22px 22px 18px; position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow: auto; }
.tp-kicker { font-size: .76rem; color: var(--ink-3); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.tp-name { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-top: 2px; }
.tp-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tp-facts span { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 8px; padding: 3px 9px; font-size: .82rem; color: var(--ink-2); }
.tp-facts b { color: var(--ink); }
.scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.score { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 14px; padding: 11px 11px 10px; }
.score .k { font-size: .74rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.score .v { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 3px; }
.score .w { font-size: .82rem; font-weight: 650; }
.score .bar { height: 5px; border-radius: 3px; background: var(--hairline); margin-top: 7px; overflow: hidden; }
.score .bar i { display: block; height: 100%; border-radius: 3px; transition: width .45s cubic-bezier(.2,.8,.2,1), background .3s; }
.b3 { color: var(--good); } .b2 { color: var(--mid); } .b1 { color: var(--heads); } .b0 { color: var(--warn); }
.bg3 { background: var(--good); } .bg2 { background: var(--mid); } .bg1 { background: var(--heads); } .bg0 { background: var(--warn); }

.insights { margin-top: 16px; }
.ins-group + .ins-group { margin-top: 12px; }
.ins-group h4 { font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.ins-group h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ins-group.t0 h4 { color: var(--warn); } .ins-group.t1 h4 { color: var(--heads); }
.ins-group.t2 h4 { color: var(--good); } .ins-group.t3 h4 { color: var(--info); }
.ins { display: grid; grid-template-columns: 30px 1fr; gap: 2px 8px; padding: 9px 10px; border-radius: 12px; margin-bottom: 6px; animation: insIn .35s ease both; }
.t0 .ins { background: var(--warn-soft); } .t1 .ins { background: var(--heads-soft); }
.t2 .ins { background: var(--good-soft); } .t3 .ins { background: var(--info-soft); }
.ins .e { font-size: 1.15rem; line-height: 1.4; grid-row: span 2; text-align: center; }
.ins b { font-size: .93rem; line-height: 1.35; }
.ins p { font-size: .86rem; color: var(--ink-2); line-height: 1.45; }
.ins.new { box-shadow: 0 0 0 2px var(--accent) inset; }
@keyframes insIn { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .ins { animation: none; } }
.tp-cta { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 7px; border: none; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .9rem; padding: 9px 16px; text-decoration: none;
}
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.ghost) { color: #062624; } }
:root[data-theme="dark"] .btn:not(.ghost) { color: #062624; }

/* ---------- unit checker ---------- */
.flat { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.flat-controls { padding: 22px; display: grid; grid-template-columns: 170px 1fr; gap: 22px; }
.flat-for { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .92rem; color: var(--ink-2); padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
.flat-for b { color: var(--ink); }
#elev { width: 100%; height: auto; display: block; }
#elev .band { cursor: pointer; }
#elev .band rect.hit { fill: transparent; }
#elev .band rect.face { fill: var(--surface-2); stroke: var(--hairline); stroke-width: 1; transition: fill .2s; }
#elev .band:hover rect.face { fill: var(--accent-soft); }
#elev .band.on rect.face { fill: var(--accent); }
#elev .band text { fill: var(--ink-2); font-size: 12px; font-weight: 700; }
#elev .band.on text.in { fill: #fff; }
#elev .win { fill: var(--hairline); }
#elev .band.on .win { fill: rgba(255,255,255,.35); }
#elev .ground { stroke: var(--ink-3); stroke-width: 2; }
#elev .roof { fill: var(--ink-3); }
.flat-right { display: grid; gap: 18px; align-content: start; }
#plan { width: 100%; max-width: 270px; height: auto; display: block; margin: 0 auto; }
#plan .bld { fill: var(--surface-2); stroke: var(--ink-3); stroke-width: 1.5; }
#plan .core { fill: var(--hairline); }
#plan .facade { stroke: var(--hairline); stroke-width: 9; stroke-linecap: round; cursor: pointer; transition: stroke .2s; }
#plan .facade:hover { stroke: var(--accent-soft); }
#plan .facade.on { stroke: var(--accent); }
#plan .facade.lit { stroke: #F2A445; }
#plan .facade.on.lit { stroke: #E0702C; }
#plan .path { fill: none; stroke: var(--heads); stroke-width: 1.5; stroke-dasharray: 3 5; opacity: .7; }
#plan .compass { fill: var(--ink-3); font-size: 13px; font-weight: 800; text-anchor: middle; dominant-baseline: central; }
#plan .fl { fill: var(--ink-2); font-size: 10.5px; font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
#plan .ray { stroke: #F2A445; stroke-width: 2; opacity: .55; stroke-linecap: round; }
.advice-card { padding: 22px; }
.advice-card h3 { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }
.todo { margin-top: 16px; border-top: 1px solid var(--hairline); padding-top: 14px; }
.todo h4 { font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }

/* ---------- checklist rows (shared) ---------- */
.check { display: flex; gap: 11px; align-items: flex-start; padding: 8px 6px; border-radius: 10px; cursor: pointer; font-size: .93rem; transition: background .15s; }
.check:hover { background: var(--surface-2); }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--ink-3); margin-top: 1px; display: grid; place-items: center; transition: background .15s, border-color .15s; cursor: pointer; }
.check input::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px) scale(0); transition: transform .18s cubic-bezier(.3,1.6,.5,1); }
.check input:checked { background: var(--good); border-color: var(--good); }
.check input:checked::after { transform: rotate(45deg) translate(-1px, -1px) scale(1); }
.check input:checked + span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-3); }

/* ---------- calculators ---------- */
.calc-tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.calc[hidden] { display: none; }
.calc-in { padding: 22px; display: grid; gap: 18px; }
.calc-out { padding: 24px; }
.money-row { display: flex; align-items: center; gap: 12px; }
.money-row input[type="number"] {
  width: 130px; flex: none; border: 1px solid var(--hairline); background: var(--surface-2);
  border-radius: 10px; padding: 7px 10px; font-weight: 700; font-variant-numeric: tabular-nums;
}
input[type="range"] { flex: 1; accent-color: var(--accent); min-width: 0; height: 28px; }
input[type="date"] { border: 1px solid var(--hairline); background: var(--surface-2); border-radius: 10px; padding: 7px 10px; font-weight: 600; }
.toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 12px; padding: 9px 12px; font-size: .9rem; font-weight: 600; cursor: pointer; }
.toggle input { appearance: none; -webkit-appearance: none; width: 38px; height: 23px; border-radius: 999px; background: var(--hairline); position: relative; flex: none; cursor: pointer; transition: background .2s; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.toggle input:checked { background: var(--accent); }
.toggle input:checked::after { transform: translateX(15px); }
.big-num { font-size: clamp(2rem, 5vw, 2.7rem); font-weight: 850; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.big-sub { color: var(--ink-2); font-size: .95rem; margin-top: 4px; }
.stack { display: flex; height: 16px; border-radius: 8px; overflow: hidden; margin: 18px 0 14px; background: var(--hairline); }
.stack i { display: block; height: 100%; transition: width .45s cubic-bezier(.2,.8,.2,1); min-width: 0; }
.stack i + i { box-shadow: -2px 0 0 var(--surface); }
.lines { list-style: none; }
.lines li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--hairline); font-size: .93rem; }
.lines li:last-child { border-bottom: none; }
.lines li i { width: 10px; height: 10px; border-radius: 3px; align-self: center; }
.lines li small { color: var(--ink-3); display: block; font-size: .8rem; }
.lines li .amt { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.lines li .ref { font-size: .7rem; font-weight: 800; color: var(--good); background: var(--good-soft); padding: 1px 6px; border-radius: 5px; margin-left: 6px; letter-spacing: .03em; text-transform: uppercase; }
.sum-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.sum { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 12px; padding: 10px 12px; }
.sum small { display: block; font-size: .74rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.sum b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.ladder { display: grid; gap: 6px; margin-top: 18px; }
.rung { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--surface-2); font-size: .9rem; transition: background .25s, border-color .25s, transform .25s; }
.rung b { font-variant-numeric: tabular-nums; }
.rung.on { background: var(--accent-soft); border-color: var(--accent); transform: translateX(6px); }
.rung.on b { color: var(--accent); }
.meter { position: relative; height: 34px; margin-top: 14px; }
.meter .track { position: absolute; left: 0; right: 0; top: 13px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--warn-soft) 0 20%, var(--hairline) 20% 40%, var(--accent-soft) 40%); }
.meter .tick { position: absolute; top: 8px; width: 1px; height: 18px; background: var(--ink-3); opacity: .5; }
.meter .dot { position: absolute; top: 7px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-shadow: 0 2px 8px var(--shadow); transition: left .4s cubic-bezier(.2,.8,.2,1); }
.meter-scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-3); font-weight: 600; }
.dates { list-style: none; margin-top: 16px; border-top: 1px solid var(--hairline); padding-top: 10px; }
.dates li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 6px 0; font-size: .9rem; }
.dates li b { font-variant-numeric: tabular-nums; }
.dates li.past { opacity: .5; }
.fine { font-size: .8rem; color: var(--ink-3); margin-top: 12px; }

/* ---------- checklist ---------- */
.cl { padding: 24px; display: grid; grid-template-columns: 200px 1fr; gap: 26px; }
.cl-side { text-align: center; position: sticky; top: 80px; align-self: start; }
.ring { width: 150px; height: 150px; margin: 0 auto; display: block; }
.ring circle { fill: none; stroke-width: 12; }
.ring .bgc { stroke: var(--hairline); }
.ring .fg { stroke: var(--good); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset .5s cubic-bezier(.2,.8,.2,1); }
.ring text { fill: var(--ink); font-size: 30px; font-weight: 850; text-anchor: middle; dominant-baseline: central; }
.ring text.s { font-size: 12px; fill: var(--ink-3); font-weight: 700; }
.cl-side p { color: var(--ink-2); font-size: .9rem; margin-top: 10px; }
.cl-side button { margin-top: 12px; }
.cl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 26px; }
.cl-sec h3 { font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); margin: 6px 6px 4px; display: flex; justify-content: space-between; }
.cl-sec h3 span { color: var(--ink-3); }

/* ---------- emirates ---------- */
.emi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; align-items: stretch; }
.emi-map { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
#uae { width: 100%; height: auto; display: block; }
#uae .gulf { fill: var(--sea); }
#uae .landm { fill: var(--land); stroke: var(--road-edge); stroke-width: 1.5; }
#uae .border { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 4; fill: none; opacity: .5; }
#uae .city { cursor: pointer; }
#uae .city circle.dot { fill: var(--tower-hi); stroke: var(--surface); stroke-width: 2.5; transition: fill .2s, r .2s; }
#uae .city circle.halo { fill: var(--accent); opacity: 0; transition: opacity .2s; }
#uae .city text { fill: var(--ink); font-size: 13px; font-weight: 750; paint-order: stroke; stroke: var(--land); stroke-width: 4px; }
#uae .city.on circle.dot { fill: var(--accent); }
#uae .city.on circle.halo { opacity: .2; }
#uae .city:hover circle.dot { fill: var(--accent); }
#uae .city:focus { outline: none; }
#uae .city:focus-visible circle.dot { stroke: var(--accent); stroke-width: 4; }
#uae .sea-l { fill: var(--sea-line); font-size: 13px; letter-spacing: .3em; font-weight: 700; }
.emi-panel { padding: 24px; }
.emi-panel h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.emi-panel .tag { color: var(--ink-2); margin-top: 2px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 16px; }
.fact { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 12px; padding: 9px 12px; }
.fact small { display: block; font-size: .72rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.fact b { font-size: .95rem; }
.fact.no b { color: var(--ink-3); }
.tips { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.tips li { display: grid; grid-template-columns: 28px 1fr; gap: 2px 8px; }
.tips li .e { grid-row: span 2; font-size: 1.1rem; text-align: center; }
.tips li b { font-size: .95rem; }
.tips li p { color: var(--ink-2); font-size: .88rem; line-height: 1.5; }
.towers-count { font-size: 2.4rem; font-weight: 850; letter-spacing: -.03em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.feature { padding: 24px 24px 26px; transition: transform .25s ease, box-shadow .25s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -22px var(--shadow); }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 14px; }
.feature h3 { font-size: 1.05rem; font-weight: 750; letter-spacing: -0.01em; }
.feature p { color: var(--ink-2); margin-top: 6px; font-size: .95rem; }
.feature a.try { display: inline-block; margin-top: 10px; font-weight: 700; font-size: .9rem; text-decoration: none; }

/* ---------- platforms ---------- */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.platform { padding: 26px 26px 28px; }
.platform h3 { font-size: 1.1rem; font-weight: 750; display: flex; align-items: center; gap: 10px; }
.platform h3 svg { flex: none; fill: var(--ink); }
.platform ul { list-style: none; margin-top: 14px; }
.platform li { color: var(--ink-2); font-size: .95rem; padding: 8px 0 8px 26px; position: relative; border-bottom: 1px solid var(--hairline); }
.platform li:last-child { border-bottom: none; }
.platform li::before { content: "✓"; position: absolute; left: 2px; top: 8px; color: var(--good); font-weight: 700; }
.platform .store { margin-top: 20px; }

/* ---------- privacy ---------- */
.privacy {
  background: linear-gradient(160deg, #0D7D7A 0%, var(--hero-top) 60%, var(--hero-bottom) 100%);
  color: #fff; border-radius: 24px; padding: 44px 34px; text-align: center;
}
.privacy h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.privacy p { margin-top: 12px; opacity: .88; max-width: 46em; margin-left: auto; margin-right: auto; }
.privacy .tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 22px; }
.privacy .tags span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 5px 14px; font-size: .87rem; }
.btn-light { display: inline-block; margin-top: 26px; background: #fff; color: var(--hero-bottom); font-weight: 700; text-decoration: none; padding: 12px 26px; border-radius: 999px; transition: transform .16s ease; }
.btn-light:hover { transform: translateY(-2px); }

.disclaimer { margin-top: 40px; color: var(--ink-2); font-size: .88rem; text-align: center; max-width: 46em; margin-left: auto; margin-right: auto; }
.footer { border-top: 1px solid var(--hairline); margin-top: 48px; padding-top: 26px; color: var(--ink-2); font-size: .92rem; text-align: center; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 12px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .explore, .flat, .calc, .emi { grid-template-columns: 1fr; }
  .tower-panel { position: static; max-height: none; }
}
@media (max-width: 860px) {
  .hero { padding: 52px 16px 150px; text-align: center; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero .badges { justify-content: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-icon { margin-left: auto; margin-right: auto; }
  .hero::before { background: linear-gradient(180deg, rgba(4, 30, 32, .45), rgba(4, 30, 32, .1) 60%, transparent); }
  .phone { max-width: 240px; }
  .cl { grid-template-columns: 1fr; }
  .cl-side { position: static; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px 72px; }
  section.block { margin-top: 72px; }
  .lead-card { padding: 24px 20px; }
  .flat-controls { grid-template-columns: 1fr; }
  #elev { max-width: 200px; margin: 0 auto; }
  .cl-cols, .toggles { grid-template-columns: 1fr; }
  .sum-grid { grid-template-columns: 1fr 1fr; }
  .scores { gap: 6px; }
  .score { padding: 9px 8px; }
  .score .v { font-size: 1.25rem; }
  .map-card, .tower-panel, .calc-in, .calc-out, .advice-card, .emi-panel, .cl { padding: 16px; }
  .clock { font-size: .82rem; bottom: 82px; }
  .privacy { padding: 36px 20px; }
}
