/* ============================================================
   מתחם חצרות יפו · מתנגדים יחד — Design System v2
   Scroll-storytelling · Bento · Data-viz · RTL Hebrew
   ============================================================ */

:root {
  /* Ink / dark */
  --ink-900: #070d18;
  --ink-800: #0b1220;
  --ink-700: #111c2e;
  --ink-600: #1a2942;
  --ink-500: #24365a;

  /* Brand */
  --navy: #0f2f52;
  --navy-ink: #0b2540;
  --blue: #2f7fd1;
  --blue-soft: #eaf3fb;

  /* Semantic */
  --red: #e4322b;
  --red-ink: #b31e18;
  --red-soft: #fdecea;
  --amber: #f5a623;
  --amber-ink: #b9760a;
  --amber-soft: #fff5e4;
  --green: #10b981;
  --green-ink: #0a7a55;
  --green-soft: #e6f7f1;

  /* Neutral (light content) */
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --bg-tint: #eef3f9;
  --card: #ffffff;
  --ink: #101826;
  --muted: #5a6b7e;
  --muted-2: #8496a8;
  --line: #e4ebf3;
  --line-2: #d3deea;

  /* Type */
  --font: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Shape */
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --wrap: 1120px;

  /* Shadow */
  --sh-sm: 0 2px 10px rgba(11, 37, 64, .06);
  --sh: 0 10px 30px rgba(11, 37, 64, .10);
  --sh-lg: 0 24px 60px rgba(11, 37, 64, .18);
  --sh-red: 0 14px 34px rgba(228, 50, 43, .32);
  --sh-green: 0 14px 34px rgba(16, 185, 129, .32);

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { line-height: 1.16; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration: none; }
strong { font-weight: 700; }
img { max-width: 100%; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.wrap-narrow { max-width: 660px; }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* RTL bidi isolation helpers.
   .ils forces a currency amount into one atomic LTR island so ₪ sits on the
   visual left deterministically across Chromium/Safari (₪ flips sides inside a
   plain bidi isolate). .ltr isolates any other LTR run (percentages, ranges). */
.ils { display: inline-flex; direction: ltr; align-items: baseline; gap: .06em; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ===== Scroll reveal (visible by default; hidden only when JS is active) ===== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: inherit; font-weight: 700; font-size: 17px; line-height: 1;
  padding: 16px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform .12s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--sh-red); }
.btn-primary:hover { background: var(--red-ink); box-shadow: 0 18px 40px rgba(228,50,43,.4); }
.btn-join { background: var(--green); color: #fff; box-shadow: var(--sh-green); }
.btn-join:hover { background: var(--green-ink); }
.btn-dark { background: var(--ink-800); color: #fff; }
.btn-dark:hover { background: var(--ink-700); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.6); }
.btn-ghost-dark { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn-ghost-dark:hover { border-color: var(--navy); background: var(--bg-alt); }
.btn-sm { padding: 11px 20px; font-size: 15px; }
.btn-lg { padding: 18px 34px; font-size: 18px; }
.btn-block { width: 100%; }

/* ===== Progress bar (scroll) ===== */
.scroll-progress {
  position: fixed; inset-block-start: 0; inset-inline: 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--red), var(--amber));
  transform: scaleX(0); transform-origin: right center; /* RTL */
  transition: transform .1s linear;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 12px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(140deg, var(--ink-700), var(--navy));
  color: #fff; font-size: 15px; font-weight: 800; letter-spacing: -.5px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.brand-name { font-weight: 800; color: var(--navy-ink); font-size: 16px; line-height: 1.15; }
.brand-name small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted-2); letter-spacing: .2px; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1100px 620px at 82% -6%, rgba(47,127,209,.30), transparent 60%),
    radial-gradient(900px 560px at 8% 8%, rgba(228,50,43,.24), transparent 58%),
    linear-gradient(165deg, var(--ink-900) 0%, var(--ink-800) 46%, var(--navy-ink) 100%);
  padding-block: 62px 76px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 78%);
          mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 78%);
}
.hero .wrap { position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #dbe8f6;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(228,50,43,.7); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(228,50,43,.6); } 70% { box-shadow: 0 0 0 9px rgba(228,50,43,0); } 100% { box-shadow: 0 0 0 0 rgba(228,50,43,0); } }

.hero h1 { font-size: clamp(34px, 8.2vw, 68px); font-weight: 900; margin-bottom: 12px; letter-spacing: -.02em; }
.hero h1 .grad {
  background: linear-gradient(100deg, #ffd47a, var(--amber) 40%, #ff6a5f 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-range { display: inline-flex; direction: ltr; align-items: baseline; gap: 6px; }
.hero-range .num { font-size: clamp(44px, 13vw, 104px); font-weight: 900; line-height: .9; }
.hero .lead { max-width: 620px; color: #c8d7e8; font-size: clamp(16px, 2.4vw, 20px); margin: 8px 0 0; }
.hero .lead strong { color: #fff; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.hero-counter {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 30px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r); padding: 14px 22px; backdrop-filter: blur(6px);
}
.hero-counter .hc-num { font-size: 34px; font-weight: 900; color: #fff; line-height: 1; }
.hero-counter .hc-lbl { font-size: 13.5px; color: #b9cadd; line-height: 1.35; }
.hero-counter .avatars { display: flex; }
.hero-counter .avatars span {
  width: 30px; height: 30px; border-radius: 50%; margin-inline-start: -10px;
  background: linear-gradient(135deg, var(--blue), var(--green)); border: 2px solid var(--ink-800);
  display: grid; place-items: center; font-size: 12px; color: #fff; font-weight: 700;
}
.hero-counter .avatars span:first-child { margin-inline-start: 0; }

.scroll-hint { display: flex; justify-content: center; margin-top: 42px; color: #7f93a8; }
.scroll-hint span { width: 26px; height: 42px; border: 2px solid currentColor; border-radius: 14px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; top: 7px; inset-inline-start: 50%; width: 4px; height: 8px; border-radius: 3px; background: currentColor; transform: translateX(-50%); animation: scrolldot 1.6s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ===== Stat band (bento) ===== */
.stats {
  position: relative; z-index: 2; margin-top: -46px;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 22px; box-shadow: var(--sh); position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px; background: var(--accent, var(--blue)); }
.stat.s-red { --accent: var(--red); }
.stat.s-amber { --accent: var(--amber); }
.stat.s-navy { --accent: var(--navy); }
.stat.s-green { --accent: var(--green); }
.stat-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, #fff); }
.stat-ico svg { width: 22px; height: 22px; }
.stat-num { font-size: clamp(30px, 5vw, 42px); font-weight: 900; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.stat-num .unit { font-size: .5em; font-weight: 800; color: var(--muted); }
.stat-lbl { font-size: 14.5px; color: var(--muted); margin-top: 8px; }

/* ===== Sections ===== */
.section { padding-block: 76px; }
.section-tight { padding-block: 56px; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  color: #fff;
  background: radial-gradient(900px 500px at 85% 0%, rgba(47,127,209,.18), transparent 60%), linear-gradient(160deg, var(--ink-800), var(--navy-ink));
}
.eyebrow-s { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; letter-spacing: .04em; text-transform: none; color: var(--red); margin-bottom: 12px; }
.section-dark .eyebrow-s { color: var(--amber); }
.eyebrow-s::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section h2 { font-size: clamp(26px, 5vw, 40px); color: var(--navy-ink); }
.section-dark h2 { color: #fff; }
.section-sub { color: var(--muted); max-width: 640px; font-size: 17.5px; margin-bottom: 34px; }
.section-dark .section-sub { color: #b9cadd; }
.section-head { max-width: 720px; margin-bottom: 40px; }

/* ===== Comparison chart ===== */
.compare {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 34px; box-shadow: var(--sh);
}
.compare-legend { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 26px; }
.lg { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14.5px; color: var(--muted); }
.lg i { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
.lg.z3 i { background: linear-gradient(180deg, #7f93a8, #5a6b7e); }
.lg.z1 i { background: linear-gradient(180deg, var(--red), var(--red-ink)); }

.bars { display: grid; gap: 26px; }
.bar-row { }
.bar-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.bar-title { font-weight: 700; color: var(--ink); font-size: 16px; }
.bar-title span { color: var(--muted-2); font-weight: 500; font-size: 13.5px; }
.bar-delta { direction: ltr; font-weight: 800; color: var(--red-ink); font-size: 15px; background: var(--red-soft); padding: 3px 11px; border-radius: 999px; }
.bar-track { display: grid; gap: 9px; }
.bar {
  position: relative; height: 46px; border-radius: 11px; display: flex; align-items: center;
  padding-inline-start: 14px; color: #fff; font-weight: 800; font-size: 17px;
  width: 0; transition: width 1.1s var(--ease);
}
.bar.z3 { background: linear-gradient(90deg, #7f93a8, #5a6b7e); }
.bar.z1 { background: linear-gradient(90deg, var(--red), var(--red-ink)); box-shadow: var(--sh-red); }
.bar-val { white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.15); }
.compare-note { margin: 26px 0 0; font-size: 13.5px; color: var(--muted-2); display: flex; gap: 8px; align-items: flex-start; }
.compare-note svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; color: var(--amber-ink); }

/* ===== Calculator ===== */
.calc-shell { display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: stretch; }
.calc-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 30px; box-shadow: var(--sh);
}
.calc-input-wrap { }
.calc-input-wrap label { display: block; font-weight: 700; color: var(--navy-ink); margin-bottom: 12px; font-size: 16px; }
.calc-field { position: relative; }
.calc-field input {
  width: 100%; font-family: inherit; font-size: 40px; font-weight: 900; text-align: center;
  padding: 18px 56px; border: 2px solid var(--line-2); border-radius: var(--r); color: var(--ink);
  transition: border-color .2s; letter-spacing: -.02em;
}
.calc-field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.calc-field .suffix { position: absolute; inset-inline-end: 20px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-weight: 700; font-size: 18px; pointer-events: none; }
.calc-slider { width: 100%; margin-top: 18px; accent-color: var(--red); }
.calc-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.calc-chip { border: 1.5px solid var(--line-2); background: #fff; color: var(--muted); border-radius: 999px; padding: 7px 15px; font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer; transition: .15s; }
.calc-chip:hover { border-color: var(--blue); color: var(--navy); }
.calc-chip.active { background: var(--navy-ink); color: #fff; border-color: var(--navy-ink); }

/* Result side (dark) */
.calc-result {
  background: linear-gradient(160deg, var(--ink-800), var(--navy-ink)); color: #fff;
  border-radius: var(--r-xl); padding: 30px; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.calc-result::before { content: ""; position: absolute; inset-block-start: -40%; inset-inline-end: -20%; width: 260px; height: 260px; background: radial-gradient(circle, rgba(228,50,43,.35), transparent 70%); }
.calc-empty { margin: auto; text-align: center; color: #8ba0b6; position: relative; }
.calc-empty svg { width: 48px; height: 48px; opacity: .5; margin-bottom: 12px; }
.calc-live { position: relative; }
.calc-live .cl-label { color: #a7bcd2; font-size: 14px; }
.calc-delta { font-size: clamp(42px, 9vw, 64px); font-weight: 900; color: #ff8178; line-height: 1; margin: 6px 0 2px; letter-spacing: -.02em; }
.calc-delta .plus { color: var(--amber); }
.calc-pct { direction: ltr; display: inline-block; background: rgba(228,50,43,.18); color: #ffb0aa; font-weight: 800; padding: 5px 14px; border-radius: 999px; font-size: 15px; margin-bottom: 22px; }

.calc-mini { display: grid; gap: 12px; margin-bottom: 20px; }
.cm-row { }
.cm-top { display: flex; justify-content: space-between; font-size: 13.5px; color: #b9cadd; margin-bottom: 6px; }
.cm-top b { color: #fff; font-weight: 800; font-size: 15px; }
.cm-bar { height: 12px; border-radius: 8px; background: rgba(255,255,255,.1); overflow: hidden; }
.cm-fill { display: block; height: 100%; border-radius: 8px; width: 0; transition: width .9s var(--ease); }
.cm-fill.z3 { background: linear-gradient(90deg, #94a8bd, #6b8099); }
.cm-fill.z1 { background: linear-gradient(90deg, var(--amber), var(--red)); }

.calc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }
.calc-split > div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); padding: 14px 16px; }
.calc-split .cs-lbl { font-size: 12.5px; color: #a7bcd2; }
.calc-split .cs-val { font-size: 22px; font-weight: 900; color: #fff; margin-top: 3px; }
.calc-disclaimer { font-size: 12px; color: var(--muted-2); margin: 18px 0 0; line-height: 1.5; }

/* ===== Reasons bento ===== */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--sh-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.bento-card.wide { grid-column: span 2; }
.bento-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; }
.bento-ico svg { width: 26px; height: 26px; }
.bi-red { background: linear-gradient(140deg, var(--red), var(--red-ink)); }
.bi-amber { background: linear-gradient(140deg, var(--amber), var(--amber-ink)); }
.bi-navy { background: linear-gradient(140deg, var(--blue), var(--navy)); }
.bi-green { background: linear-gradient(140deg, var(--green), var(--green-ink)); }
.bento-card h3 { font-size: 20px; color: var(--navy-ink); margin-bottom: 6px; }
.bento-card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.bento-card .fact { display: inline-block; margin-top: 14px; font-weight: 800; color: var(--red-ink); background: var(--red-soft); padding: 5px 13px; border-radius: 999px; font-size: 14px; }
.bento-card.wide .fact { color: var(--amber-ink); background: var(--amber-soft); }

/* ===== Timeline ===== */
.timeline { position: relative; max-width: 760px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 20px; top: 12px; bottom: 12px; width: 3px; background: rgba(255,255,255,.14); border-radius: 3px; }
.timeline li { position: relative; list-style: none; padding-inline-start: 58px; padding-bottom: 34px; }
.timeline li:last-child { padding-bottom: 0; }
.tl-node { position: absolute; inset-inline-start: 8px; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink-700); border: 3px solid rgba(255,255,255,.2); display: grid; place-items: center; }
.tl-node svg { width: 15px; height: 15px; color: #fff; }
.timeline li.done .tl-node { background: var(--green); border-color: var(--green); }
.timeline li.active .tl-node { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 6px rgba(245,166,35,.18); }
.tl-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; margin-bottom: 8px; }
.timeline li.done .tl-badge { background: var(--green-soft); color: var(--green-ink); }
.timeline li.active .tl-badge { background: var(--amber-soft); color: var(--amber-ink); }
.timeline li:not(.done):not(.active) .tl-badge { background: rgba(255,255,255,.1); color: #b9cadd; }
.timeline h3 { font-size: 20px; color: #fff; margin-bottom: 3px; }
.timeline p { color: #b0c2d5; font-size: 15px; margin: 0; }

/* ===== Documents ===== */
.docs-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.doc-item {
  display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px 22px; color: inherit; box-shadow: var(--sh-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
a.doc-item:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--line-2); }
.doc-num { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 15px; background: linear-gradient(140deg, var(--ink-700), var(--navy)); color: #fff; display: grid; place-items: center; font-size: 21px; font-weight: 900; }
.doc-txt { min-width: 0; flex: 1; }
.doc-txt h3 { font-size: 16.5px; margin: 0 0 3px; color: var(--navy-ink); }
.doc-txt span { font-size: 13px; color: var(--muted-2); display: inline-flex; align-items: center; gap: 6px; }
.doc-arrow { flex: 0 0 auto; color: var(--muted-2); transition: transform .2s var(--ease); }
a.doc-item:hover .doc-arrow { transform: translateX(-4px); color: var(--navy); }
.doc-item[aria-disabled="true"] { opacity: .62; }
.doc-item[aria-disabled="true"] .doc-num { background: var(--muted-2); }
.docs-note { color: var(--muted-2); font-size: 13.5px; margin-top: 18px; text-align: center; }

/* ===== Join form ===== */
.join-shell { display: grid; grid-template-columns: .85fr 1.15fr; gap: 30px; align-items: start; }
.join-aside { position: sticky; top: 90px; }
.join-aside .ja-counter {
  background: linear-gradient(160deg, var(--green), var(--green-ink)); color: #fff;
  border-radius: var(--r-xl); padding: 30px; box-shadow: var(--sh-green); text-align: center; margin-bottom: 18px;
}
.ja-counter .jc-num { font-size: 60px; font-weight: 900; line-height: 1; }
.ja-counter .jc-lbl { font-size: 15px; opacity: .92; margin-top: 6px; }
.ja-progress { height: 10px; border-radius: 8px; background: rgba(255,255,255,.25); overflow: hidden; margin-top: 18px; }
.ja-progress i { display: block; height: 100%; background: #fff; border-radius: 8px; width: 0; transition: width 1s var(--ease); }
.ja-goal { font-size: 13px; opacity: .9; margin-top: 10px; }
.ja-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ja-benefits li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.ja-benefits svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--green); margin-top: 2px; }

.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px; box-shadow: var(--sh); }
.field { margin-bottom: 18px; }
.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; }
.field-narrow { max-width: 120px; }
.field label, .label-legend { display: block; font-weight: 700; margin-bottom: 8px; color: var(--navy-ink); font-size: 15px; }
.req { color: var(--red); }
.opt { color: var(--muted-2); font-weight: 500; font-size: 13px; }
.field input {
  width: 100%; font-family: inherit; font-size: 17px; padding: 13px 15px;
  border: 2px solid var(--line-2); border-radius: var(--r-sm); color: var(--ink); transition: border-color .18s, box-shadow .18s;
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.field input.invalid { border-color: var(--red); background: var(--red-soft); }
.hint { display: block; color: var(--muted-2); font-size: 12.5px; margin-top: 6px; }

.seg { display: flex; gap: 10px; }
.seg label {
  position: relative; flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  border: 2px solid var(--line-2); border-radius: var(--r-sm); padding: 13px; font-weight: 700; color: var(--muted); transition: .15s; margin: 0; font-size: 15px;
}
.seg input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; margin: 0; }
.seg label:has(input:checked) { border-color: var(--navy-ink); background: var(--navy-ink); color: #fff; }
.seg label svg { width: 18px; height: 18px; }

/* Signature */
.sig-wrap { position: relative; }
.sig-canvas { width: 100%; height: 180px; border: 2px dashed var(--line-2); border-radius: var(--r-sm); background: linear-gradient(#fcfdff, #f7fafd); touch-action: none; display: block; cursor: crosshair; }
.sig-canvas.invalid { border-color: var(--red); }
.sig-placeholder { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; color: var(--muted-2); font-size: 14px; gap: 6px; }
.sig-placeholder svg { width: 26px; height: 26px; opacity: .6; }
.sig-clear { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; background: #fff; border: 1px solid var(--line-2); border-radius: 9px; padding: 6px 13px; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.sig-clear svg { width: 14px; height: 14px; }
.sig-clear:hover { color: var(--red); border-color: var(--red); }

.consent { display: flex; gap: 13px; align-items: flex-start; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; font-size: 14.5px; line-height: 1.55; margin-bottom: 20px; cursor: pointer; }
.consent input { margin-top: 3px; width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--green); }
.consent.invalid { outline: 2px solid var(--red); outline-offset: 1px; }

.form-msg { text-align: center; font-weight: 700; margin: 14px 0 0; min-height: 1.3em; font-size: 15px; }
.form-msg.err { color: var(--red-ink); }

/* ===== Footer ===== */
.site-footer { background: var(--ink-900); color: #9db1c6; padding-block: 48px 34px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer h3 { color: #fff; font-size: 18px; margin-bottom: 12px; }
.site-footer p { font-size: 14px; color: #90a5ba; max-width: 560px; }
.footer-contact { font-weight: 700; color: #fff !important; }
.footer-fine { font-size: 12.5px; color: #64798f; margin-top: 22px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

/* ===== Success overlay ===== */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(7,13,24,.62); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(5px); animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.overlay-card { background: #fff; border-radius: var(--r-xl); padding: 38px 30px; max-width: 420px; text-align: center; box-shadow: var(--sh-lg); animation: pop .4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(12px); } }
.overlay-check { width: 76px; height: 76px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; box-shadow: var(--sh-green); }
.overlay-check svg { width: 40px; height: 40px; }
.overlay-card h3 { font-size: 26px; color: var(--navy-ink); }
.overlay-card p { color: var(--muted); }
.overlay-card .btn { width: 100%; margin-top: 8px; }
.overlay-rank { font-weight: 800; color: var(--green-ink); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .calc-shell { grid-template-columns: 1fr; }
  .join-shell { grid-template-columns: 1fr; }
  .join-aside { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-card.wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-name small { display: none; }
  .section { padding-block: 56px; }
  .docs-list { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.wide { grid-column: span 1; }
  .stats { margin-top: -30px; }
  .compare { padding: 22px; }
  .calc-card, .calc-result, .form { padding: 22px; }
  .hero-cta .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 0; }
  .field-narrow { max-width: none; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ===== Documents viewer (embedded) ===== */
.docs-viewer { margin-top: 8px; }
.dv-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.dv-tab {
  display: flex; align-items: center; gap: 11px; justify-content: flex-start; text-align: start;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 13px 14px; cursor: pointer; font-family: inherit; transition: .15s var(--ease);
}
.dv-tab:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.dv-tab.active { background: var(--navy-ink); border-color: var(--navy-ink); }
.dv-tab.active .dv-tt, .dv-tab.active .dv-tt small { color: #fff; }
.dv-tab.active .dv-tnum { background: var(--red); color: #fff; }
.dv-tnum { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: var(--bg-tint); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.dv-tt { font-weight: 700; font-size: 14.5px; color: var(--navy-ink); line-height: 1.2; }
.dv-tt small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 1px; }

.dv-doc { display: none; }
.dv-doc.active { display: block; animation: dvfade .3s var(--ease); }
@keyframes dvfade { from { opacity: 0; transform: translateY(8px); } }

.dv-paper {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 48px); box-shadow: var(--sh); max-width: 800px; margin-inline: auto;
  text-align: right; line-height: 1.7; color: var(--ink); font-size: 16px;
}
.dv-paper p { margin: 0 0 .85em; }
.dv-meta { color: var(--muted); font-size: 13.5px; margin: 0 0 .35em; line-height: 1.5; }
.dv-to-label { font-weight: 800; color: var(--navy-ink); margin: 1.4em 0 .2em; }
.dv-to { font-weight: 700; color: var(--ink); margin: 0 0 .2em; }
.dv-subject {
  background: var(--amber-soft); border-inline-start: 4px solid var(--amber);
  border-radius: var(--r-sm); padding: 15px 17px; font-weight: 800; color: var(--navy-ink);
  margin: 1.3em 0 1.5em; line-height: 1.55;
}
.dv-clause { position: relative; padding-inline-start: 2.3em; margin: 0 0 .8em; }
.dv-clause .dv-cn { position: absolute; inset-inline-start: 0; color: var(--red); font-weight: 800; font-variant-numeric: tabular-nums; }
.dv-emph { font-weight: 800; color: var(--navy-ink); margin: 1.1em 0 .3em; }

@media (max-width: 640px) {
  .dv-tabs { grid-template-columns: 1fr 1fr; }
  .dv-tt small { display: none; }
}
