:root {
  --ink: #111111;
  --ink-muted: #4a4a4a;
  --ink-soft: #7a7a7a;
  --navy: #001446;
  --red: #eb002c;
  --orange: #fd641f;
  --warm: linear-gradient(90deg, #eb002c 0%, #fd641f 100%);
  --red-deep: #c40024;
  --paper: #f7f7f5;
  --paper-elevated: #ffffff;
  --line: rgb(17 17 17 / 0.1);
  --font-sans: "Heebo", "Segoe UI", system-ui, sans-serif;
  --text-display: clamp(2rem, 1.4rem + 3vw, 3.25rem);
  --text-title: clamp(1.35rem, 1.15rem + 1vw, 1.75rem);
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink);
  font-family: var(--font-sans); line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1,h2,h3 { letter-spacing: -0.02em; line-height: 1.15; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
::selection { background: rgb(253 100 31 / 0.22); }
.wrap { width: min(64rem, calc(100% - 2rem)); margin-inline: auto; }
.logo img, .logo-img { height: 26px; width: auto; display: block; }
html[data-page="thanks"] .fab { display: none; }
.bg-hero {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgb(17 17 17 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(17 17 17 / 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  position: relative; overflow: hidden;
}
.hero-photo { display: none; }
@media (min-width: 1024px) {
  .hero-photo {
    display: block; position: absolute; inset: 0;
    background-image: url("../brand/img-roof-sharon.jpg");
    background-size: cover; background-position: center 40%;
    opacity: 0.16; filter: grayscale(1) contrast(1.08); pointer-events: none;
  }
}
header.site {
  position: sticky; top: 0; z-index: 40;
  direction: ltr;
  background: #ffffff;
  color: var(--navy);
  border-bottom: 1px solid rgb(0 20 70 / 0.08);
  backdrop-filter: blur(10px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 3.5rem; gap: .5rem; }
@media (min-width: 640px) { .nav { height: 4rem; } }
.lang {
  display: flex; align-items: center; height: 2.5rem;
  border: 1px solid rgb(0 20 70 / 0.12); background: #fff;
  border-radius: 6px; padding: 0 4px; font-size: .72rem; font-weight: 500;
}
.lang a { padding: .5rem .4rem; min-width: 1.75rem; text-align: center; color: rgb(0 20 70 / .45); }
.lang a[aria-current="page"] { color: var(--navy); }
.lang span { color: rgb(0 20 70 / .25); padding: 0 .25rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 500; border: 0; cursor: pointer;
  height: 3rem; padding: 0 1.25rem; border-radius: 4px;
}
.btn-primary { background: var(--warm); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid rgb(17 17 17 / .15); }
.btn-paper { background: var(--warm); color: #fff; height: 2.5rem; padding: 0 1rem; font-size: .875rem; }
@media (max-width: 639px) { .btn-paper { display: none; } }
.hero { position: relative; padding: 3.5rem 0 5rem; }
.tag { background: var(--warm); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: .875rem; font-weight: 500; letter-spacing: .14em; margin: 0 0 1rem; }
.hero h1, h2, .card h2 { background: var(--warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 { font-size: var(--text-display); font-weight: 600; max-width: 20ch; margin: 0; }
.hero .sub { margin: 1.25rem 0 0; max-width: 36rem; color: var(--ink-muted); font-size: 1.05rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.how-link { display: inline-flex; margin-top: 1rem; color: var(--ink-muted); font-size: .875rem; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; height: 2.25rem;
  border: 1px solid var(--line); background: rgb(255 255 255 / .8);
  border-radius: 999px; padding: 0 .75rem; font-size: .875rem; color: var(--ink-muted);
}
.chip svg { width: 16px; height: 16px; color: var(--orange); }
section.block { padding: 2.5rem 0; }
.ad { color: var(--ink-soft); font-size: .875rem; margin: 0 0 1rem; }
.card { background: var(--paper-elevated); border: 1px solid var(--line); border-radius: 6px; padding: 1.25rem; }
@media (min-width: 640px) { .card { padding: 2rem; } }
.card h2 { font-size: var(--text-title); font-weight: 600; margin: 0; }
.muted { color: var(--ink-muted); font-size: .875rem; }
.grid2 { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
label .lbl, .lbl { display: block; font-size: .875rem; font-weight: 500; color: var(--ink-muted); margin-bottom: .4rem; }
select, input[type="text"], input[type="tel"] {
  height: 2.75rem; width: 100%; border: 1px solid rgb(17 17 17 / .12);
  background: var(--paper); border-radius: 2px; padding: 0 .75rem; font: inherit; font-size: .875rem; color: var(--ink);
}
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 2px;
  background: rgb(17 17 17 / .16); border-radius: 999px; touch-action: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 999px;
  background: var(--ink); border: 2px solid var(--paper); box-shadow: 0 0 0 1px rgb(17 17 17 / .25);
}
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt {
  border: 1px solid rgb(17 17 17 / .12); background: var(--paper); border-radius: 999px;
  padding: .45rem .8rem; font-size: .8rem; cursor: pointer; color: var(--ink-muted);
}
.opt.on { background: var(--warm); color: #fff; border-color: transparent; }
.stats { display: grid; gap: .75rem; margin-top: 2rem; background: rgb(17 17 17 / .04); border-radius: 2px; padding: 1rem; }
@media (min-width: 640px) { .stats { grid-template-columns: 1fr 1fr 1fr; } }
.stat b { display: block; font-size: 1.15rem; }
.stat span { font-size: .75rem; color: var(--ink-muted); }
.flag { margin-top: 1rem; border: 1px solid rgb(17 17 17 / .15); background: rgb(17 17 17 / .04); padding: .65rem .75rem; font-size: .875rem; }
.steps { display: grid; gap: .75rem; }
@media (min-width: 720px) { .steps { grid-template-columns: 1fr 1fr 1fr; } }
.step { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 1rem; }
.step img, .step svg { width: 22px; height: 22px; }
.split { display: grid; gap: .75rem; }
@media (min-width: 720px) { .split { grid-template-columns: 1fr 1fr; } }
.yes, .no { border: 1px solid var(--line); border-radius: 6px; padding: 1rem; background: #fff; }
.no { background: #f1f1ee; }
.faq details { border-bottom: 1px solid var(--line); padding: .8rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }
footer.site { background: var(--navy); color: #fff; padding: 3rem 0; }
footer.site a:hover { color: var(--orange); }
.fab {
  position: fixed; right: 1rem; z-index: 50; width: 3.5rem; height: 3.5rem; border-radius: 999px;
  background: var(--warm); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgb(235 0 44 / .28); bottom: max(1.25rem, env(safe-area-inset-bottom));
}
html[dir="rtl"] .fab { right: auto; left: 1rem; }
.banner { background: var(--navy); color: #fff; border-bottom: 1px solid rgb(255 255 255 / .1); font-size: .875rem; }
.banner .wrap { display: flex; justify-content: space-between; gap: .75rem; align-items: center; padding: .6rem 0; }
.thanks { padding: 5rem 0; }
.err { color: var(--red); font-size: .8rem; }
.hidden { display: none !important; }
span[dir="ltr"] { unicode-bidi: isolate; }

.ev-row { display: flex; align-items: center; gap: .6rem; font-size: .9rem; align-self: end; padding-bottom: .35rem; }
.ev-row input { width: 1.1rem; height: 1.1rem; accent-color: var(--ink); }
.split-money { display: grid; gap: .35rem; margin-top: 1rem; font-size: .9rem; }
@media (min-width: 640px) { .split-money { grid-template-columns: 1fr 1fr; } }
.split-money p { margin: 0; display: flex; justify-content: space-between; gap: .75rem; border: 1px solid var(--line); padding: .65rem .75rem; border-radius: 4px; }
.note { margin-top: .75rem; font-size: .82rem; color: var(--ink-soft); }
.calc-split { display: grid; gap: 1.5rem; margin-top: 1.5rem; align-items: start; }
@media (min-width: 900px) {
  .calc-split { grid-template-columns: 1.05fr .95fr; }
}
.calc-results {
  background: rgb(17 17 17 / .03);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1rem 1.1rem;
}
.calc-results .stats { margin-top: .75rem; }
.calc-results .stats { grid-template-columns: 1fr; }
@media (min-width: 520px) {
  .calc-results .stats { grid-template-columns: 1fr 1fr 1fr; }
}
.gauge { position: relative; max-width: 280px; margin: 0 auto .25rem; }
.gauge-svg { width: 100%; height: auto; display: block; }
.gauge-track { stroke: rgb(17 17 17 / .12); }
.gauge-fill { stroke: var(--orange); transition: stroke-dasharray .35s ease; }
.gauge-needle { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; transition: transform .25s ease; }
.gauge-hub { fill: var(--ink); }
.gauge-readout { text-align: center; margin-top: -.6rem; }
.gauge-readout b { display: block; font-size: 2rem; letter-spacing: -.03em; line-height: 1; }
.gauge-readout span { font-size: .8rem; color: var(--ink-muted); }
.calc-results .split-money { grid-template-columns: 1fr; }

.card { position: relative; overflow: hidden; }
#calc-card[data-phase="input"] .calc-cta,
#calc-card[data-phase="input"] .calc-lead,
#calc-card[data-phase="input"] #condo-flag { display: none; }
#calc-card[data-phase="done"] .calc-fields,
#calc-card[data-phase="form"] .calc-fields { display: none; }
#calc-card[data-phase="done"] .calc-lead { display: none; }
#calc-card[data-phase="form"] #gate { display: none; }
#calc-card[data-phase="done"] .calc-results,
#calc-card[data-phase="form"] .calc-results {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 28px rgb(17 17 17 / .06);
  animation: calcIn .45s ease both;
}
#calc-card[data-phase="done"] .calc-cta,
#calc-card[data-phase="form"] .calc-lead {
  animation: calcIn .45s ease both;
}
.calc-wait {
  position: absolute; inset: 0; z-index: 8;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  background: rgb(247 247 245 / .55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.calc-wait.hidden { display: none !important; }
.calc-wait p { margin: 0; font-weight: 600; letter-spacing: .04em; }
.calc-orb {
  position: relative; width: 88px; height: 88px;
}
.calc-orb i {
  position: absolute; inset: 0; border-radius: 999px;
  border: 2px solid rgb(225 6 0 / .18);
  animation: calcPulse 1.2s ease-out infinite;
}
.calc-orb i:nth-child(2) { animation-delay: .2s; }
.calc-orb i:nth-child(3) { animation-delay: .4s; }
.calc-sun {
  position: absolute; inset: 22px; border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 6px rgb(225 6 0 / .16);
  animation: calcSpin 1.1s linear infinite;
}
@keyframes calcPulse {
  0% { transform: scale(.55); opacity: .9; }
  100% { transform: scale(1.15); opacity: 0; }
}
@keyframes calcSpin {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.08); }
  to { transform: rotate(360deg) scale(1); }
}
@keyframes calcIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.sys-msg {
  margin: 0;
  padding: .9rem 1rem;
  border: 1px solid rgb(17 17 17 / .12);
  background: #f3f1ea;
  color: #3a3a36;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.45;
  border-radius: 2px;
  box-shadow: inset 3px 0 0 var(--orange);
}
@media (max-width: 899px) {
  #calc-card[data-phase="done"] #gate,
  #calc-card[data-phase="form"] .calc-lead .btn { width: 100%; }
}

.calc-right { display: flex; flex-direction: column; gap: 1rem; }
.calc-lead h3 { margin: 0; }
#calc-card[data-phase="input"] .calc-results {
  border: 1px dashed rgb(17 17 17 / .14);
  background: rgb(17 17 17 / .02);
}
@media (max-width: 899px) {
  .calc-split, .calc-right, .calc-results, .calc-cta, .calc-lead { width: 100%; max-width: none; }
  #calc-card[data-phase="form"] .grid2 { grid-template-columns: 1fr; width: 100%; }
  #calc-card[data-phase="form"] .calc-lead label,
  #calc-card[data-phase="form"] .calc-lead input,
  #calc-card[data-phase="form"] .calc-lead select { width: 100%; display: block; }
  #calc-card[data-phase="input"] .calc-results { display: none; }
  #calc-card[data-phase="done"] .calc-split,
  #calc-card[data-phase="form"] .calc-split {
    display: flex;
    flex-direction: column;
  }
  #calc-card[data-phase="done"] .calc-results {
    order: -1;
    animation: calcSwap .5s ease both;
    padding: 1.15rem;
  }
  #calc-card[data-phase="done"] .gauge { max-width: none; width: 100%; }
  #calc-card[data-phase="done"] .gauge-readout b { font-size: 2.25rem; }
  #calc-card[data-phase="done"] .stat b { font-size: 1.35rem; }
  #calc-card[data-phase="done"] .stats { margin-top: .85rem; padding: 1rem; }
  #calc-card[data-phase="form"] .calc-results,
  #calc-card[data-phase="form"] .calc-cta {
    display: none;
  }
  #calc-card[data-phase="form"] .calc-lead {
    animation: calcSwap .45s ease both;
  }
}
@keyframes calcSwap {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.money-stats { grid-template-columns: 1fr !important; text-align: center; }
.money-stats .stat b { font-size: 1.55rem; }

#gate.btn-primary {
  animation: heartbeat 2.4s ease-in-out infinite;
  transform-origin: center;
}
@keyframes heartbeat {
  0%, 70%, 100% { transform: scale(1); }
  18% { transform: scale(1.045); }
  28% { transform: scale(1); }
  38% { transform: scale(1.03); }
  48% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  #gate.btn-primary { animation: none; }
}

.city-links { margin: .4rem 0 .75rem; font-size: .88rem; }
.city-links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.city-links a:hover { color: var(--orange); }
