:root {
  --ink: #081c40;
  --ink-soft: #0e2e5e;
  --blue: #0953ba;
  --teal: #05797f;
  --aqua: #08c4ce;
  --cream: #f4f7fc;
  --paper: #ffffff;
  --mist: #eef4fe;
  --text: #16233a;
  --muted: #5b6a7e;
  --line: rgba(9,45,100, .11);
  --shadow: 0 24px 70px rgba(6, 29, 61, .13);
}
* { box-sizing: border-box; }
::selection { background: rgba(8,196,206,.22); color: var(--ink); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 7%, rgba(8,196,206,.12), transparent 26rem),
    linear-gradient(180deg, #f7fbfd 0, var(--paper) 42rem);
  font: 17px/1.65 var(--fin-font-body, "Segoe UI", Arial, "Noto Sans Hebrew", sans-serif);
}
a { color: inherit; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid rgba(127,227,234,.7); outline-offset: 3px; }
.wrap { width: min(calc(100% - 34px), 1120px); margin-inline: auto; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(6,22,46,.94); color: white; backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav { min-height: 76px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 42px; height: 42px; }
.brand b { display: block; line-height: 1.1; }
.brand small { display: block; margin-top: 5px; color: rgba(255,255,255,.58); font-size: .67rem; }
.navlinks { margin-inline-start: auto; display: flex; align-items: center; gap: 22px; }
.navlinks a { color: rgba(255,255,255,.74); text-decoration: none; font-size: .9rem; font-weight: 700; transition: color .2s ease, transform .2s ease; }
.navlinks a:hover { color: white; transform: translateY(-1px); }
.navlinks .pill { padding: 9px 16px; color: var(--fin-navy, #0e2e5e); border-radius: 999px; background: linear-gradient(135deg,#7fe3ea,#08c4ce); }
.hero { padding: 76px 0 48px; text-align: center; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-weight: 850; font-size: .77rem; letter-spacing: .12em; }
h1 { margin: 0; color: var(--ink); font-size: clamp(2.5rem,7vw,5.2rem); line-height: 1; letter-spacing: -.055em; }
.lead { max-width: 700px; margin: 22px auto 0; color: var(--muted); font-size: 1.08rem; }
.tool-grid { display: grid; grid-template-columns: 1fr .92fr; gap: 24px; align-items: start; padding-bottom: 84px; }
.panel {
  background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(22px,4vw,38px); box-shadow: var(--shadow);
}
.panel:not(.result) { position: relative; }
.panel:not(.result)::before {
  content: ""; position: absolute; inset-inline: 32px; top: 0; height: 2px;
  background: linear-gradient(90deg,transparent,var(--teal),transparent); opacity: .45;
}
.panel h2 { margin: 0 0 6px; color: var(--ink); font-size: 1.55rem; }
.panel-note { margin: 0 0 24px; color: var(--muted); font-size: .91rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.wide { grid-column: 1 / -1; }
label { color: var(--ink-soft); font-size: .88rem; font-weight: 750; }
.input-wrap { position: relative; }
input {
  width: 100%; min-height: 54px; padding: 0 14px; border: 1px solid rgba(9,45,100,.17);
  border-radius: 14px; background: white; color: var(--ink); outline: 0;
}
input:hover { border-color: rgba(8,196,206,.46); }
input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(8,196,206,.1); }
.suffix { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.has-suffix input { padding-inline-end: 48px; }
.result {
  position: sticky; top: 100px; overflow: hidden; color: white;
  background: linear-gradient(145deg,#06162e,#0b315c); border: 1px solid rgba(255,255,255,.08);
}
.result.negative { background: linear-gradient(145deg,#241221,#713a4d); }
.result.negative .result-kicker { color: #ffd2dc; }
.result::before {
  content: ""; position: absolute; width: 250px; height: 250px; border-radius: 50%;
  inset-inline-end: -90px; inset-block-start: -120px; background: rgba(127,227,234,.12);
}
.result-kicker { color: #80e3dc; font-size: .75rem; font-weight: 850; letter-spacing: .12em; }
.result-value { margin: 10px 0 3px; font-size: clamp(2.5rem,7vw,4.6rem); font-weight: 850; line-height: 1; letter-spacing: -.045em; }
.result-caption { color: rgba(255,255,255,.58); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.stat { padding: 15px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.06); }
.stat span { display: block; color: rgba(255,255,255,.52); font-size: .76rem; }
.stat b { display: block; margin-top: 4px; }
.cta {
  display: flex; justify-content: center; align-items: center; min-height: 54px; margin-top: 24px;
  border-radius: 999px; text-decoration: none; font-weight: 850; color: #04182e;
  background: linear-gradient(135deg,#72e5dd,#1bb7c2);
}
.cta { transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.cta:hover { transform: translateY(-2px); filter: saturate(1.1); box-shadow: 0 15px 32px rgba(0,0,0,.18); }
.disclaimer { margin: 16px 0 0; color: rgba(255,255,255,.49); font-size: .75rem; }
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; padding: 0 0 82px; }
.mini { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: white; text-decoration: none; box-shadow: 0 12px 35px rgba(6,29,61,.07); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.mini:hover { transform: translateY(-5px); border-color: rgba(8,196,206,.35); box-shadow: 0 22px 48px rgba(6,29,61,.12); }
.mini strong { display: block; color: var(--ink); }
.mini span { display: block; margin-top: 5px; color: var(--muted); font-size: .87rem; }
.guide { max-width: 820px; margin: 0 auto 84px; }
.guide .panel { padding: clamp(25px,6vw,58px); }
.guide h2 { margin-top: 36px; font-size: 1.55rem; }
.guide ol { padding-inline-start: 24px; }
.guide li { margin: 12px 0; }
.guide-callout { margin: 28px 0; padding: 22px; border-radius: 18px; background: var(--mist); border-inline-start: 4px solid var(--teal); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 800; }
.btn.primary { background: var(--ink); color: white; }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); }
footer { padding: 34px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footrow { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footlinks { display: flex; gap: 18px; }
@media (max-width: 760px) {
  .navlinks a:not(.pill) { display: none; }
  .tool-grid { grid-template-columns: 1fr; }
  .result { position: relative; top: auto; }
  .fields, .cards { grid-template-columns: 1fr; }
  .hero { padding: 46px 0 34px; }
  h1 { font-size: clamp(2.45rem,13vw,4rem); }
  .lead { font-size: .98rem; }
  .panel { border-radius: 22px; }
  .result-value { font-size: clamp(2.35rem,13vw,4rem); }
  .nav { min-height: 68px; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
