:root {
  --bg: #f6f7f9; --surface: #ffffff; --border: #dfe3e8; --text: #16191d; --text-2: #4a525c; --muted: #6b7480;
  --accent: #2456c9; --accent-ink: #ffffff; --band: #c9d7f5; --band-edge: #2456c9; --track: #e7eaee;
  --good: #1d7a46; --warn: #a15c00; --bad: #b3261e; --focus: #2456c9;
  --radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans Hebrew", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418; --surface: #1a1e23; --border: #2d333b; --text: #eceff2; --text-2: #b9c0c8; --muted: #8b949e;
    --accent: #7ea2f0; --accent-ink: #0d1117; --band: #23365e; --band-edge: #7ea2f0; --track: #2a3038;
    --good: #5cc28a; --warn: #e0a243; --bad: #f08a80; --focus: #7ea2f0;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; font-size: 16px; }
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.top { background: var(--surface); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.brand { font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.toplink { font-size: 14px; }
.intro h1 { font-size: 26px; margin: 28px 0 6px; line-height: 1.25; }
.intro p { margin: 0 0 18px; color: var(--text-2); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 5px; position: relative; }
.field label { font-weight: 600; font-size: 14px; }
.opt { font-weight: 400; color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); }
input, select, textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text); width: 100%; min-height: 44px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px; }
.row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.row.five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 560px) { .row, .row.five { grid-template-columns: 1fr 1fr; } }
.more summary { cursor: pointer; color: var(--accent); font-size: 15px; padding: 4px 0; }
.more .field { margin-top: 10px; }
button { font: inherit; font-weight: 600; background: var(--accent); color: var(--accent-ink); border: 0;
  border-radius: 8px; padding: 12px 18px; min-height: 48px; cursor: pointer; }
button[disabled] { opacity: .6; cursor: progress; }
.err { color: var(--bad); font-size: 15px; }
.sugg { list-style: none; margin: 0; padding: 4px 0; position: absolute; top: 72px; inset-inline: 0; z-index: 5;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12); max-height: 300px; overflow: auto; }
.sugg li { padding: 10px 12px; cursor: pointer; }
.sugg li[aria-selected="true"], .sugg li:hover { background: var(--track); }

.result { margin-top: 18px; display: grid; gap: 14px; }
.headline .addr { color: var(--text-2); font-size: 15px; }
.headline .label { font-size: 14px; color: var(--text-2); margin-top: 8px; }
.headline .value { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
.headline .sub { color: var(--text-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.range { margin-top: 16px; }
.range .cap { font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.bar { position: relative; height: 40px; }
.bar .track { position: absolute; top: 14px; height: 12px; inset-inline: 0; background: var(--track); border-radius: 6px; }
.bar .band { position: absolute; top: 14px; height: 12px; background: var(--band); border: 2px solid var(--band-edge);
  border-radius: 6px; }
.bar .tick { position: absolute; top: 6px; width: 3px; height: 28px; background: var(--text); border-radius: 2px;
  transform: translateX(50%); }
.bar .ask { position: absolute; top: 8px; width: 16px; height: 16px; border-radius: 50%; transform: translateX(50%);
  background: var(--surface); border: 3px solid var(--text); top: 12px; }
.ends { display: flex; justify-content: space-between; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.ends b { color: var(--text); font-weight: 600; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); margin-top: 6px; }
.legend i { display: inline-block; vertical-align: middle; margin-inline-end: 6px; }
.legend .l-band { width: 18px; height: 10px; background: var(--band); border: 2px solid var(--band-edge); border-radius: 3px; }
.legend .l-tick { width: 3px; height: 14px; background: var(--text); }
.legend .l-ask { width: 12px; height: 12px; border: 3px solid var(--text); border-radius: 50%; }

.verdict { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--border); }
.verdict .icon { font-weight: 700; font-size: 18px; line-height: 1.3; }
.verdict.good .icon { color: var(--good); } .verdict.warn .icon { color: var(--warn); } .verdict.bad .icon { color: var(--bad); }
.verdict .t { font-weight: 600; }
.verdict .d { font-size: 14px; color: var(--text-2); }
.notes { margin: 0; padding-inline-start: 18px; color: var(--text-2); font-size: 14px; }

h2 { font-size: 18px; margin: 0 0 4px; }
.card .lead { margin: 0 0 10px; color: var(--text-2); font-size: 14px; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: start; padding: 8px 6px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-weight: 600; color: var(--text-2); font-size: 13px; }
td.num, th.num { text-align: end; }
.tag { font-size: 12px; border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; color: var(--text-2); }

.disclaimer { font-size: 13px; color: var(--muted); margin: 22px 0; }
.foot { border-top: 1px solid var(--border); padding: 16px 0 28px; font-size: 13px; color: var(--muted); }
.prose h1 { font-size: 26px; margin: 28px 0 10px; }
.prose h2 { font-size: 19px; margin: 24px 0 6px; }
.prose li { margin-bottom: 6px; }
.spinner { color: var(--text-2); }

/* grid children must be allowed to shrink, or the sales table widens the page on phones */
.result > *, .form > *, .row > *, .field > * { min-width: 0; }
html, body { overflow-x: hidden; }
.sugg .tag.approx { margin-inline-start: 8px; }
.addr-row { display: grid; grid-template-columns: 1.2fr 1.6fr .7fr; gap: 12px; }
@media (max-width: 560px) { .addr-row { grid-template-columns: 1fr 1fr; } .addr-row .combo:first-child { grid-column: 1 / -1; } }
.addr-row > * { min-width: 0; }
input:disabled { background: var(--track); cursor: not-allowed; }
.share { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px;
  border-radius: 8px; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn.wa { background: #1f8f4e; color: #fff; border: 0; }
.btn.share-main { background: var(--accent); color: var(--accent-ink); border: 0; flex: 1 1 100%; font-size: 17px; }
.btn.fb { background: #1877f2; color: #fff; border: 0; }
.btn.tg { background: #229ed9; color: #fff; border: 0; }
.btn.x { background: #111; color: #fff; border: 0; }
.btn.story { background: linear-gradient(45deg, #f09433, #dc2743 60%, #bc1888); color: #fff; border: 0; }
.share-note { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.share-note[hidden] { display: none; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--border); }
.field[hidden] { display: none; }
.thanks { margin: 0; color: var(--good); font-weight: 600; }
.add-link { display: inline-block; margin-top: 14px; font-weight: 600; padding: 6px 0; }
.details-page { margin-top: 14px; }
.details-page .row { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .details-page .row { grid-template-columns: 1fr 1fr; } }
.done { margin-top: 14px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border: 0; }
.result .add-link { margin-top: 0; }
.feats .row { margin-top: 10px; }
.feats .row .field { margin-top: 0; }
.range.blurred .ends b { filter: blur(6px); user-select: none; pointer-events: none; }
.fb h2 { margin-bottom: 10px; }
.fb-opts, .fb-reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-weight: 600; min-height: 44px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.chip.small { min-height: 36px; padding: 6px 12px; font-size: 14px; font-weight: 500; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fb-more { display: grid; gap: 10px; margin-top: 14px; }
.fb-more[hidden], .site-fb[hidden] { display: none; }
.fb-more label, .site-fb label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.fb-l { font-weight: 600; font-size: 15px; }
.fb .thanks { margin-top: 12px; }
.fb .thanks[hidden] { display: none; }
textarea { resize: vertical; }
.site-fb { display: grid; gap: 10px; margin-top: 18px; }
.site-fb .btn { justify-self: start; }
.feats .row { align-items: end; }
.flabel { font-weight: 600; font-size: 14px; }
.field label.checkbox { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; font-weight: 400;
  font-size: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; }
.field label.checkbox input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; accent-color: var(--accent); }
.field label.checkbox:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.feats .subhead { font-weight: 700; font-size: 15px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }
#finish-hint { margin: 8px 0 0; }
.air-field { margin-top: 14px; }
.air { display: flex; flex-wrap: wrap; gap: 8px; }
.air .chip { min-width: 72px; }
select:disabled { background: var(--track); cursor: not-allowed; }
.field:has(:disabled) > label:not(.checkbox), .field:has(:disabled) > .lab { opacity: .55; }
.fb-role-l { margin-top: 16px; margin-bottom: 8px; }
.lab { display: flex; align-items: center; gap: 6px; }
.lab label { font-weight: 600; font-size: 14px; }
.info { min-height: 0; width: 24px; height: 24px; padding: 0; border-radius: 50%; flex: none; font-size: 13px;
  font-weight: 700; font-style: italic; font-family: Georgia, serif; line-height: 1;
  background: transparent; color: var(--accent); border: 1.5px solid var(--accent); position: relative; }
.info::after { content: ""; position: absolute; inset: -10px; }  /* a finger-sized target around the small icon */
.info[aria-expanded="true"] { background: var(--accent); color: var(--accent-ink); }
.bubble { position: absolute; z-index: 20; padding: 10px 12px; font-size: 14px; line-height: 1.5; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.bubble::before { content: ""; position: absolute; top: -7px; left: calc(var(--arrow, 50%) - 6px); width: 12px; height: 12px;
  background: var(--surface); border-top: 1px solid var(--border); border-left: 1px solid var(--border); transform: rotate(45deg); }
.bubble[hidden] { display: none; }
.info-dlg { border: 1px solid var(--border); border-radius: 14px; padding: 20px; width: min(440px, calc(100vw - 32px));
  max-height: 80vh; overflow: auto; background: var(--surface); color: var(--text); box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.info-dlg::backdrop { background: rgba(0,0,0,.35); }
.info-dlg h2 { margin: 0 0 10px; }
.info-dlg p { margin: 0 0 10px; color: var(--text-2); font-size: 15px; }
.info-dlg dl { margin: 0 0 16px; }
.info-dlg dt { font-weight: 600; }
.info-dlg dd { margin: 2px 0 12px; color: var(--text-2); font-size: 15px; }
.info-dlg .btn { width: 100%; }
@media (max-width: 560px) {
  .info-dlg { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 14px 14px 0 0; }  /* a sheet from the bottom */
}
.feats .subhead { display: flex; align-items: center; gap: 8px; }
.info-dlg:not([open]) { display: none; }  /* browsers without <dialog> */
.air .chip { min-height: 44px; }
.house-note { margin: 10px 0 0; padding: 6px 10px; border-inline-start: 3px solid var(--warn); color: var(--text-2); font-size: 0.92em; line-height: 1.45; text-align: start; }
.fb .fb-err { color: var(--bad); margin: 6px 0; }
.linkish { background: none; border: 0; padding: 8px 0 0; color: inherit; text-decoration: underline; font: inherit; font-size: 0.92em; cursor: pointer; }
.fb-intro { color: var(--text-2); margin: 0 0 10px; font-size: 0.95em; }
.keep .share { margin-top: 10px; } .keep .btn.ghost { flex: 1 1 auto; font-size: 14px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 14px 0 10px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.btn.surprise { width: 100%; gap: 8px; min-height: 44px; }
.btn.busy { opacity: .7; cursor: progress; }
.surprise-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.surprise-card .kicker { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin: 12px 0 14px; }
.fact { border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; }
.fact b { font-size: 15px; } .fact span { font-size: 12px; color: var(--muted); }
.surprise-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.surprise-card .share .btn { flex: 1 1 40%; }
.cta { text-align: center; } .cta .btn { min-width: 60%; }
.notes .linkish { padding: 0; font-size: 1em; color: var(--accent, #1d4ed8); font-weight: 600; display: inline; }
.contact { position: relative; display: flex; flex-direction: column; gap: 8px; margin-top: 12px; text-align: start; }
.contact .cf { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.contact .in { font-size: 16px; }
.contact .in[dir="ltr"] { text-align: right; }
.contact .trap { position: absolute; inset-inline-start: 0; top: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; overflow: hidden; pointer-events: none; clip-path: inset(50%); }
.contact .consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.contact .consent input { margin-top: 3px; width: 18px; height: 18px; min-height: 0; flex: none; }
.contact .legal { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }
.contact .fb-err { color: var(--bad); font-weight: 600; margin: 0; }
.contact .in[aria-invalid="true"] { border-color: var(--bad); }
.contact .thanks { font-weight: 600; margin: 4px 0; }
#join-slot { max-width: 480px; margin: 12px auto 0; font-size: 15px; color: var(--text, inherit); }
