/* שיפוצון – one stylesheet. Mobile first, RTL, light + dark. System Hebrew fonts only. */
:root {
  --bg: #fbf7f2; --surface: #ffffff; --surface-2: #f5eee6; --text: #2b2420; --muted: #5b5048;
  --border: #ddd0c3; --accent: #b0441a; --on-accent: #ffffff; --accent-soft: #f8e6da; --link: #96390f;
  --focus: #1d5fa8; --ok: #2f6b3a; --warn-bg: #fff4d6; --warn-text: #5a4300;
  --radius: 14px; --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 4px 16px rgba(60, 40, 20, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1815; --surface: #25211d; --surface-2: #2e2924; --text: #f3ede6; --muted: #cbbfb3;
    --border: #463e36; --accent: #f08a5d; --on-accent: #1b1815; --accent-soft: #3a2a21; --link: #f6a982;
    --focus: #8cbcf5; --ok: #8fd19e; --warn-bg: #3b3115; --warn-text: #f3e2a6;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1815; --surface: #25211d; --surface-2: #2e2924; --text: #f3ede6; --muted: #cbbfb3;
  --border: #463e36; --accent: #f08a5d; --on-accent: #1b1815; --accent-soft: #3a2a21; --link: #f6a982;
  --focus: #8cbcf5; --ok: #8fd19e; --warn-bg: #3b3115; --warn-text: #f3e2a6;
  --shadow: none; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Segoe UI", "Noto Sans Hebrew", "Arial Hebrew", Arial, system-ui, -apple-system, sans-serif;
  font-size: 1.125rem; line-height: 1.65; overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; margin: 1.6em 0 .5em; }
h1 { font-size: 1.85rem; margin-top: .6em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.num { unicode-bidi: isolate; white-space: nowrap; }

.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.35rem; min-height: 48px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px; font-weight: 600; }

.crumbs { font-size: .95rem; color: var(--muted); margin-top: 14px; }
.crumbs a { color: var(--muted); }
.lead { font-size: 1.2rem; }
.hero-h { font-size: 2.1rem; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 16px; margin: 20px 0; }

/* form */
.field { margin: 0 0 18px; }
.field label, legend { display: block; font-weight: 700; margin-bottom: 6px; font-size: 1.1rem; }
.input-row { display: flex; align-items: center; gap: 10px; }
input[type="number"] {
  width: 100%; max-width: 220px; min-height: 56px; padding: 8px 14px; font: inherit; font-size: 1.3rem;
  color: var(--text); background: var(--bg); border: 2px solid var(--muted); border-radius: 10px; direction: ltr; text-align: right;
}
input[type="number"]:focus-visible { outline-offset: 1px; border-color: var(--focus); }
input[aria-invalid="true"] { border-color: #c62828; }
.unit { color: var(--muted); font-weight: 600; }
.hint { color: var(--muted); font-size: .98rem; margin: 6px 0 0; }
fieldset.choices { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.choice { display: flex; align-items: flex-start; gap: 12px; min-height: 56px; padding: 12px 14px; margin: 0 0 8px; border: 2px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--bg); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.choice-text { display: flex; flex-direction: column; }
.choice-title { font-weight: 700; }
.choice-desc { color: var(--muted); font-size: .98rem; }
.check label { display: flex; align-items: center; gap: 12px; min-height: 48px; font-weight: 600; cursor: pointer; }
.check input { width: 24px; height: 24px; accent-color: var(--accent); }
details > summary { cursor: pointer; font-weight: 700; min-height: 48px; display: flex; align-items: center; gap: 8px; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "+"; display: inline-grid; place-items: center; width: 28px; height: 28px; border: 2px solid currentColor; border-radius: 50%; font-size: 1.1rem; flex: none; }
details[open] > summary::before { content: "–"; }
.more-settings { border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); margin: 6px 0 12px; }
.more-body { padding: 8px 0 4px; }
.live-note { color: var(--muted); font-size: .95rem; margin: 0; }

/* result */
.result { margin-top: 18px; padding: 18px 16px; border-radius: var(--radius); background: var(--accent-soft); border: 2px solid var(--accent); }
.result:focus-visible { outline-offset: 4px; }
.result h2 { margin: 0 0 8px; font-size: 1.05rem; color: var(--muted); }
.result-main { font-size: 1.5rem; font-weight: 700; line-height: 1.45; margin: 0 0 12px; }
.result-more, .result-notes, .bd-list, .steps, .src-items { padding-inline-start: 1.2em; margin: 0 0 12px; }
.result-more li, .steps li { margin-bottom: 6px; }
.result-notes { background: var(--warn-bg); color: var(--warn-text); border-radius: 10px; padding: 10px 14px 10px 14px; padding-inline-start: 2em; }
.breakdown { margin: 8px 0; }
.bd-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.bd-val { font-weight: 700; }
.disclaimer { font-size: .98rem; color: var(--muted); margin: 10px 0 14px; }
.table-wrap { overflow-x: auto; margin: 6px 0 12px; }
.pay-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.pay-table caption { text-align: start; font-weight: 700; padding-bottom: 6px; }
.pay-table th, .pay-table td { text-align: start; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.pay-table thead th { color: var(--muted); font-size: .92rem; }
.pay-table tbody th { font-weight: 600; }
.pay-table td:last-child { white-space: nowrap; }
@media (max-width: 480px) { .pay-table thead th:nth-child(3), .pay-table tbody td:nth-child(3) { display: none; } }

/* paid offer */
.cta { border-top: 1px solid var(--accent); padding-top: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 56px; padding: 12px 20px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 1.1rem; border-radius: 12px; text-decoration: none; line-height: 1.35; max-width: 100%;
}
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.cta-line { font-size: 1rem; margin: 10px 0 0; }
.honest { color: var(--muted); font-size: 1rem; }
.tik-fig { margin: 14px 0; }
.tik-fig img { border: 1px solid var(--border); border-radius: 10px; }
.tik-fig figcaption { color: var(--muted); font-size: .95rem; margin-top: 6px; }

/* hub */
.hub { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.hub-card { display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 150px; padding: 16px 14px; background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.hub-card:hover { border-color: var(--accent); }
.hub-card .icon { color: var(--accent); }
.hub-title { font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.hub-line { color: var(--muted); font-size: .98rem; line-height: 1.4; }
.mini-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.mini-grid a { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--text); font-weight: 600; }
.mini-grid .icon { color: var(--accent); flex: none; }

/* tiers, faq, sources */
.tiers { display: grid; gap: 10px; }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.tier h3 { margin: 0 0 6px; }
.tier p { margin: 0 0 6px; }
.faq details, .sources details { border-bottom: 1px solid var(--border); }
.faq details p { margin: 0 0 14px; }
.src-items > li { margin-bottom: 14px; }
.src-vat { color: var(--muted); font-size: .95rem; }
.src-list { font-size: .95rem; padding-inline-start: 1.1em; }
.src-list a { overflow-wrap: anywhere; }
.src-date { color: var(--muted); }
.prose ul { padding-inline-start: 1.2em; }

.site-footer { margin-top: 48px; padding: 24px 0 40px; background: var(--surface-2); border-top: 1px solid var(--border); font-size: 1rem; }
.foot-links { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-note, .foot-biz { color: var(--muted); }

@media (min-width: 700px) {
  h1 { font-size: 2.2rem; } .hero-h { font-size: 2.5rem; }
  .card { padding: 24px; }
  .tiers { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .site-header, .site-footer, .cta, .others, .skip { display: none; } body { background: #fff; color: #000; } }
