: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: flex; }
.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; }
.nav-end { display: flex; align-items: center; gap: .35rem; }
.share-head {
  width: 2.4rem; height: 2.4rem; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.share-text, .share-foot {
  background: none; border: 0; color: inherit; cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; gap: .4rem;
}
.share-after { margin-top: .75rem; text-align: center; }
.share-after .share-text { color: var(--ink-muted); font-size: .92rem; }
.btn-share {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  background: var(--navy); color: #fff; border: 0; border-radius: 8px;
  padding: .85rem 1.25rem; cursor: pointer; font: inherit;
}
.share-foot { color: #fff; opacity: .85; }
.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; }
.fab { border: 0; cursor: pointer; }
.share-overlay {
  position: fixed; inset: 0; z-index: 80; background: rgb(15 23 42 / .45);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  overflow: auto;
}
.share-sheet {
  position: relative;
  background: #fff; color: var(--ink); width: min(26rem, 100%);
  border-radius: 16px; padding: 1.35rem 1.25rem 1.1rem;
  box-shadow: 0 16px 40px rgb(0 0 0 / .18);
}
.share-sheet h3 { margin: 0 2.2rem .75rem 0; font-size: 1.1rem; }
html[dir="rtl"] .share-sheet h3 { margin: 0 0 .75rem 2.2rem; }
.share-x {
  position: absolute; top: .65rem; inset-inline-end: .65rem;
  width: 2rem; height: 2rem; border: 0; background: none;
  font-size: 1.65rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.share-preview {
  width: 100%; height: auto; border-radius: 8px; margin: 0 0 .75rem;
  display: block; aspect-ratio: 1200 / 630; object-fit: cover;
}
.share-path { display: flex; gap: .5rem; align-items: stretch; margin: 0 0 1rem; }
.share-url {
  flex: 1; font-size: .82rem; word-break: break-all; background: #f4f4f1;
  border-radius: 8px; padding: .7rem .8rem; margin: 0; direction: rtl;
}
.share-copy {
  flex: 0 0 2.7rem; width: 2.7rem; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.share-copy.is-copied { background: var(--navy); color: #fff; border-color: var(--navy); }
.share-actions {
  display: flex; flex-wrap: wrap; gap: .55rem;
  justify-content: center;
}
.share-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 0;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; cursor: pointer; color: #fff;
}
.share-icon.wa { background: #25D366; }
.share-icon.fb { background: #1877F2; }
.share-icon.tg { background: #26A5E4; }
.share-icon.x { background: #111; }
.share-icon.li { background: #0A66C2; }
.share-icon.sms { background: #5B8DEF; }
.share-icon.mail { background: #EA4335; }
.share-icon.native { background: var(--navy); }
.share-qr-label { margin: 1rem 0 .4rem; font-size: .8rem; color: var(--ink-muted); text-align: center; }
.share-qr { display: block; margin: 0 auto .5rem; width: 160px; height: 160px; background: #fff; }
.share-btn {
  display: block; text-align: center; padding: .7rem .8rem; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: inherit; cursor: pointer;
  text-decoration: none; font: inherit;
}
.share-btn:hover { border-color: var(--orange); }
.share-close {
  display: block; width: 100%; margin-top: .8rem; background: none; border: 0;
  color: var(--ink-muted); cursor: pointer; font: inherit; padding: .4rem;
}
.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; }
}
.result-share {
  display: none;
  align-items: center; justify-content: flex-start; gap: .35rem;
  margin: 0 0 1rem; font-size: .78rem; font-weight: 600;
  color: #8a8a84; letter-spacing: .02em; direction: ltr;
}
#calc-card[data-phase="done"] .result-share,
#calc-card[data-phase="form"] .result-share { display: flex; }
.result-share .rs-btn {
  width: 1.85rem; height: 1.85rem; border-radius: 999px; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgb(17 17 17 / .08); color: #6f6f6a; cursor: pointer;
  text-decoration: none; padding: 0;
}
.result-share .rs-btn svg { width: 14px; height: 14px; }
.result-share .rs-btn.is-copied { color: #111; }
.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); }

.prose { max-width: 42rem; }
.prose .lede { font-size: 1.08rem; color: var(--ink-muted); margin: 0 0 1.25rem; }
.prose h2 { font-size: 1.2rem; margin: 1.75rem 0 .5rem; }
.prose p { margin: 0 0 1rem; color: var(--ink); }
.article-city { padding-top: 0; }
