/* ============================================================
   נחשקת · מרכז המחשבונים (calc.css)
   שכבת העיצוב של /tools · מרכז הכלים והמחשבונים.
   נטענת אחרי site.css. לא תלויה ב-tools.css ולא דורסת אותו:
   כל המחלקות כאן מתחילות ב-c- או שהן ייחודיות לדף מחשבון.
   ============================================================ */

/* ---------- hero ---------- */
.c-hero { padding-block: clamp(2.2rem, 1.4rem + 3vw, 3.6rem) 0; }
.c-badge {
  display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  background: rgba(201,162,75,.08); border: 1px solid var(--line);
  color: var(--gold-2); border-radius: var(--r-pill);
  padding: .4em 1em; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
}
.c-badge i { font-style: normal; opacity: .85; }
.c-badge b { color: var(--gold-soft); font-weight: 800; }
.c-hero h1 { margin-top: 1rem; line-height: 1.12; }
.c-hero .c-sub {
  margin-top: 1rem; color: var(--ink-2); font-size: clamp(1.02rem,.96rem + .35vw,1.2rem);
  line-height: 1.75; max-width: 62ch;
}
.c-trust { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: 1.3rem; }
.c-trust span { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: .35rem; }
.c-trust span::before { content: "✓"; color: var(--gold-2); font-weight: 800; }

/* ---------- two column shell ---------- */
.c-shell { display: grid; grid-template-columns: 1fr; gap: clamp(1.2rem,1rem + 1.4vw,2rem); align-items: start; }
@media (min-width: 900px) {
  .c-shell { grid-template-columns: minmax(0,1fr) minmax(0,.86fr); }
  .c-out { position: sticky; top: 96px; }
}

/* ---------- inputs panel ---------- */
.c-in {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: clamp(1.2rem,1rem + 1.2vw,2rem);
}
.c-in > h2 { font-size: 1.16rem; margin: 0; color: var(--white); }
.c-in > .c-note { font-size: .84rem; color: var(--dim); margin: .4rem 0 1.6rem; }

/* one field */
.cf { display: grid; gap: .55rem; padding-block: 1.15rem; border-top: 1px solid var(--line-2); }
.cf:first-of-type { border-top: 0; padding-top: 0; }
.cf-top { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.cf-lab { display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; color: var(--ink); font-weight: 600; }
.cf-val {
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  color: var(--gold-soft); white-space: nowrap; flex: none;
}
.cf-hint { font-size: .8rem; color: var(--dim); line-height: 1.6; }

/* tooltip */
.c-tip { position: relative; display: inline-flex; flex: none; }
.c-tip > button {
  width: 17px; height: 17px; border-radius: 50%; font-size: .7rem; font-weight: 800; line-height: 1;
  display: grid; place-items: center; cursor: help;
  border: 1px solid var(--line); color: var(--gold-2); background: rgba(201,162,75,.07);
}
.c-tip > button:hover, .c-tip > button:focus-visible { border-color: var(--gold); color: var(--gold-soft); outline: none; }
.c-tip .c-pop {
  position: absolute; inset-block-end: calc(100% + 9px); inset-inline-start: -8px;
  width: min(272px, 74vw); background: var(--card-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); box-shadow: var(--shadow); padding: .75em .9em;
  font-size: .82rem; font-weight: 400; line-height: 1.6; color: var(--ink-2);
  opacity: 0; visibility: hidden; transform: translateY(5px); transition: .18s var(--ease);
  z-index: 40; text-align: start;
}
.c-tip:hover .c-pop, .c-tip > button:focus-visible + .c-pop, .c-tip.open .c-pop {
  opacity: 1; visibility: visible; transform: none;
}

/* number box */
.c-num { position: relative; display: flex; align-items: center; }
.c-num input {
  width: 100%; padding: .78em 1em; border-radius: var(--r-sm);
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--white);
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  -moz-appearance: textfield; appearance: textfield;
}
.c-num input::-webkit-outer-spin-button, .c-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.c-num input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,.14); }
.c-num.unit input { padding-inline-start: 2.4em; }
.c-num .u {
  position: absolute; inset-inline-start: .95em; color: var(--gold-2);
  font-weight: 800; font-size: 1rem; pointer-events: none;
}

/* slider */
.c-range { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: none; cursor: grab; }
.c-range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) var(--fill,0%), var(--bg-3) var(--fill,0%));
}
.c-range::-moz-range-track { height: 6px; border-radius: 999px; background: var(--bg-3); }
.c-range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--gold); }
.c-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; margin-top: -8px;
  background: var(--foil-flat); border: 1px solid var(--gold-deep);
  box-shadow: 0 2px 10px rgba(0,0,0,.6); cursor: grab;
}
.c-range::-moz-range-thumb {
  width: 22px; height: 22px; border: 1px solid var(--gold-deep); border-radius: 50%;
  background: var(--gold-2); box-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.c-range:active { cursor: grabbing; }
.c-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(201,162,75,.22); }
.c-scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--dim); margin-top: -.2rem; }

/* segmented choice */
.c-seg { display: flex; gap: 5px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 5px; }
.c-seg button {
  flex: 1; padding: .6em .7em; border-radius: var(--r-pill); font-size: .88rem; font-weight: 700;
  color: var(--muted); transition: .2s var(--ease); line-height: 1.25; text-align: center;
}
.c-seg button small { display: block; font-size: .68rem; font-weight: 600; opacity: .75; margin-top: 2px; }
.c-seg button[aria-pressed="true"] { background: var(--foil-flat); color: var(--on-gold); }

/* ---------- result panel ---------- */
.c-out {
  background: linear-gradient(180deg,#1A1408,var(--bg-2));
  border: 1px solid var(--gold); border-radius: var(--r-lg);
  padding: clamp(1.2rem,1rem + 1.2vw,2rem); box-shadow: var(--glow-gold);
}
.c-out-eyebrow {
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-2); font-weight: 800;
}
.c-big {
  font-family: var(--font-display); font-weight: 800; line-height: 1; margin: .55rem 0 .3rem;
  font-size: clamp(2.5rem,1.7rem + 3.6vw,3.8rem); color: var(--gold-peak);
  word-break: keep-all;
}
.c-big-sub { color: var(--ink-2); font-size: .98rem; line-height: 1.6; }
.c-big-sub b { color: var(--gold-soft); }

/* breakdown rows */
.c-brk { margin: 1.5rem 0 0; border-top: 1px solid var(--line-2); }
.c-brk .r { display: flex; align-items: center; gap: .7rem; padding: .72rem 0; border-bottom: 1px solid var(--line-2); }
.c-brk .r span { flex: 1; font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.c-brk .r i { font-style: normal; flex: none; width: 1em; text-align: center; font-weight: 800; color: var(--dim); }
.c-brk .r b { flex: none; font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; color: var(--ink); }
.c-brk .r.plus i { color: var(--gold-2); }
.c-brk .r.minus i { color: var(--rose-soft); }
.c-brk .r.total { border-bottom: 0; padding-top: .9rem; }
.c-brk .r.total span { color: var(--white); font-weight: 700; }
.c-brk .r.total b { color: var(--gold-soft); font-size: 1.2rem; }

/* mini stats */
.c-minis { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line-2);
  border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; margin-top: 1.5rem; }
.c-minis .m { background: rgba(10,10,10,.5); padding: .95rem .6rem; text-align: center; }
.c-minis .m b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--gold-soft); line-height: 1.2; }
.c-minis .m span { font-size: .72rem; color: var(--muted); line-height: 1.35; display: block; margin-top: .25rem; }
@media (max-width: 420px) { .c-minis { grid-template-columns: 1fr 1fr; } .c-minis .m:last-child { grid-column: 1 / -1; } }

/* verdict / tip line */
.c-verdict {
  display: flex; gap: .7rem; align-items: flex-start; margin-top: 1.5rem;
  padding: .95rem 1.05rem; border-radius: var(--r-sm);
  border-inline-start: 3px solid var(--gold); background: rgba(201,162,75,.06);
}
.c-verdict i { font-style: normal; font-size: 1.05rem; line-height: 1.35; flex: none; color: var(--gold-2); font-weight: 800; }
.c-verdict b { display: block; color: var(--gold-soft); font-size: .98rem; margin-bottom: .22rem; }
.c-verdict span { color: var(--ink-2); font-size: .88rem; line-height: 1.65; }
.c-verdict.warn { border-color: var(--rose); background: rgba(155,46,71,.08); }
.c-verdict.warn b, .c-verdict.warn i { color: var(--rose-soft); }
.c-tipline { margin-top: 1.1rem; font-size: .86rem; color: var(--muted); line-height: 1.7; }
.c-tipline b { color: var(--gold-soft); }

/* benchmark vs market */
.c-bench { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line-2); }
.c-bench .bh { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; margin-bottom: .7rem; }
.c-bench .bh b { font-size: .9rem; color: var(--ink); font-weight: 600; }
.c-bench .bh em { font-style: normal; font-size: .85rem; font-weight: 800; color: var(--gold-soft); white-space: nowrap; }
.c-bench .bh em.under { color: var(--rose-soft); }
.c-bench .bt { position: relative; height: 10px; border-radius: 999px; background: var(--bg-3); overflow: visible; }
.c-bench .bf { height: 100%; border-radius: 999px; background: var(--foil-flat); width: 0; transition: width .9s var(--ease); }
.c-bench .bm { position: absolute; top: -5px; width: 2px; height: 20px; background: var(--ink-2); opacity: .75; transition: inset-inline-start .9s var(--ease); }
.c-bench .bm::after {
  content: attr(data-lab); position: absolute; top: 23px; inset-inline-start: 50%; transform: translateX(50%);
  font-size: .68rem; color: var(--muted); white-space: nowrap;
}
.c-bench .bs { display: flex; justify-content: space-between; font-size: .7rem; color: var(--dim); margin-top: 1.7rem; }
.c-bench .bsrc { font-size: .72rem; color: var(--dim); margin-top: .5rem; }

/* cta inside result */
.c-cta { border-top: 1px solid var(--line); margin-top: 1.6rem; padding-top: 1.4rem; }
.c-cta p { font-size: .92rem; color: var(--ink-2); line-height: 1.7; margin-bottom: 1rem; }
.c-cta p b { color: var(--gold-soft); }
.c-cta .btn { width: 100%; }

/* next calculator strip */
.c-next {
  display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center; justify-content: space-between;
  border: 1px dashed var(--line); border-radius: var(--r); padding: 1rem 1.2rem; margin-top: 1.6rem;
}
.c-next div { flex: 1 1 240px; }
.c-next b { display: block; color: var(--gold-2); font-size: .98rem; font-family: var(--font-display); }
.c-next span { font-size: .85rem; color: var(--muted); line-height: 1.55; }
.c-next a { color: var(--gold-soft); font-weight: 700; font-size: .9rem; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- hub: audience picker ---------- */
.c-pick { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: .9rem; }
.c-pick a {
  display: block; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 1.15rem 1.2rem; transition: .22s var(--ease);
}
.c-pick a:hover { border-color: var(--gold); transform: translateY(-3px); background: var(--card-2); }
.c-pick a .e { font-size: 1.5rem; line-height: 1; }
.c-pick a b { display: block; color: var(--white); font-size: 1.02rem; margin: .5rem 0 .25rem; font-family: var(--font-display); }
.c-pick a span { font-size: .84rem; color: var(--muted); line-height: 1.55; display: block; }

/* ---------- hub: groups + cards ---------- */
.c-group { margin-top: clamp(2.4rem,1.6rem + 2.5vw,3.8rem); }
.c-group > h2 {
  font-size: clamp(1.25rem,1.1rem + .7vw,1.7rem); color: var(--white);
  display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem;
}
.c-group > h2 .e { font-size: 1.25em; line-height: 1; }
.c-group > p { color: var(--muted); font-size: .92rem; margin-bottom: 1.3rem; max-width: 62ch; line-height: 1.7; }
.c-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(270px,1fr)); gap: .9rem; }
.c-card {
  display: flex; flex-direction: column; gap: .5rem;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 1.25rem 1.3rem 1.1rem; transition: .22s var(--ease); position: relative;
}
.c-card:hover { border-color: var(--gold); transform: translateY(-3px); background: var(--card-2); box-shadow: var(--shadow-sm); }
.c-card .e { font-size: 1.45rem; line-height: 1; }
.c-card h3 { font-size: 1.06rem; color: var(--white); line-height: 1.35; margin: 0; }
.c-card p { font-size: .87rem; color: var(--ink-2); line-height: 1.65; margin: 0; flex: 1; }
.c-card .tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.c-card .tags em {
  font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: .18em .6em;
}
.c-card .tags em.hot { color: var(--gold-2); border-color: var(--line); background: rgba(201,162,75,.07); }
.c-card .go { font-size: .86rem; font-weight: 700; color: var(--gold-2); display: inline-flex; align-items: center; gap: .3rem; }
.c-card:hover .go { color: var(--gold-soft); }
.c-card .go::after { content: "←"; transition: transform .22s var(--ease); }
.c-card:hover .go::after { transform: translateX(-3px); }

/* ---------- long-form explainer below a calculator ---------- */
.c-prose { max-width: 74ch; margin-inline: auto; }
.c-prose h2 { font-size: clamp(1.35rem,1.15rem + .9vw,1.9rem); margin: 3rem 0 .9rem; color: var(--white); line-height: 1.3; }
.c-prose h3 { font-size: 1.12rem; margin: 1.8rem 0 .5rem; color: var(--gold-soft); }
.c-prose p { margin-bottom: 1.2rem; color: var(--ink-2); line-height: 1.85; }
.c-prose ul, .c-prose ol { margin: 0 0 1.2rem; padding-inline-start: 1.4rem; color: var(--ink-2); display: grid; gap: .55rem; }
.c-prose li { line-height: 1.75; }
.c-prose a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.c-prose strong { color: var(--ink); }
.c-prose .eq {
  border-inline-start: 3px solid var(--gold); background: rgba(201,162,75,.05);
  padding: 1.05rem 1.25rem; border-radius: var(--r-sm); margin: 1.6rem 0;
  color: var(--gold-soft); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.6;
}
.c-prose .eq small { display: block; color: var(--muted); font-weight: 500; font-size: .85rem; margin-top: .4rem; font-family: var(--font-body); }
.c-prose .pull {
  font-family: var(--font-display); font-size: clamp(1.25rem,1.05rem + .9vw,1.65rem);
  line-height: 1.45; color: var(--gold-2); margin: 2.4rem 0; max-width: 30ch;
}
.c-prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .92rem; }
.c-prose th, .c-prose td { border: 1px solid var(--line-2); padding: .7em .85em; text-align: start; color: var(--ink-2); }
.c-prose th { background: rgba(201,162,75,.06); color: var(--gold-soft); font-weight: 700; }
.c-prose .scroll { overflow-x: auto; }
.c-steps { counter-reset: s; display: grid; gap: 1rem; margin: 1.4rem 0; padding: 0; list-style: none; }
.c-steps li { position: relative; padding-inline-start: 2.4rem; color: var(--ink-2); line-height: 1.75; }
.c-steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; inset-inline-start: 0; top: .1em;
  width: 1.7em; height: 1.7em; border-radius: 50%; display: grid; place-items: center;
  background: rgba(201,162,75,.1); border: 1px solid var(--line);
  color: var(--gold-2); font-size: .78rem; font-weight: 800; font-family: var(--font-display);
}
.c-steps li b { color: var(--white); }

/* ============================================================
   שכבה שנייה · רק בחמישה המחשבונים העיקריים
   ============================================================ */

/* טבלת תרחישים חיה */
.c-scen { margin-top: 1.7rem; padding-top: 1.5rem; border-top: 1px solid var(--line-2); }
.c-scen > b { display: block; color: var(--white); font-size: .98rem; font-family: var(--font-display); }
.c-scen > span { display: block; font-size: .82rem; color: var(--dim); margin: .25rem 0 .9rem; line-height: 1.55; }
.c-scen table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.c-scen th, .c-scen td { padding: .6em .55em; text-align: start; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.c-scen thead th { color: var(--gold-2); font-weight: 700; font-size: .78rem; border-bottom-color: var(--line); }
.c-scen tbody th { color: var(--ink); font-weight: 600; }
.c-scen tbody td { color: var(--ink-2); font-family: var(--font-display); font-weight: 700; }
.c-scen tbody tr:last-child th, .c-scen tbody tr:last-child td { border-bottom: 0; }
.c-scen tbody tr.now th { color: var(--gold-soft); }
.c-scen tbody tr.now th::before { content: "▸ "; color: var(--gold-2); }
.c-scen tbody tr.now td { color: var(--gold-soft); }

/* גרף רגישות */
.c-chart { margin-top: 1.7rem; padding-top: 1.5rem; border-top: 1px solid var(--line-2); }
.c-chart .ch { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; margin-bottom: .6rem; }
.c-chart .ch b { color: var(--white); font-size: .95rem; font-weight: 600; }
.c-chart .ch em { font-style: normal; font-family: var(--font-display); font-weight: 800; color: var(--gold-soft); font-size: 1.02rem; white-space: nowrap; }
.c-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.c-chart .ca { fill: rgba(201,162,75,.12); stroke: none; }
.c-chart .cl { fill: none; stroke: var(--gold-2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.c-chart .cv { stroke: rgba(236,210,136,.45); stroke-width: 1; stroke-dasharray: 3 3; }
.c-chart .cd { fill: var(--gold-peak); stroke: var(--gold-deep); stroke-width: 1; }
.c-chart .cx { fill: var(--dim); font-size: 9px; font-family: var(--font-body); }
.c-chart .cnote { font-size: .78rem; color: var(--dim); margin-top: .5rem; line-height: 1.55; }

/* וואטסאפ + מוצרי כניסה */
.c-wa {
  display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%;
  margin-top: .7rem; padding: .85em 1.2em; border-radius: var(--r-pill);
  border: 1px solid rgba(37,211,102,.45); color: #7DE2A4; font-weight: 700; font-size: .95rem;
  transition: .2s var(--ease);
}
.c-wa:hover { background: rgba(37,211,102,.08); border-color: rgba(37,211,102,.8); color: #A6EFC2; }
.c-wa svg { width: 17px; height: 17px; fill: currentColor; flex: none; }

.c-entry {
  margin: 2.6rem auto 0; max-width: 62ch; text-align: center;
  font-size: .95rem; line-height: 1.85; color: var(--ink-2);
}
.c-entry a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }

/* שדות הטופס · שם + מייל */
.lead-inline .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (max-width: 460px) { .lead-inline .row2 { grid-template-columns: 1fr; } }
.lead-inline .row2 input {
  padding: .75em 1em; border-radius: var(--r-sm); background: var(--bg-2);
  border: 1px solid var(--line); color: var(--ink); font-size: .98rem; width: 100%;
}
.lead-inline .row2 input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,.14); }

/* «איפה מוצאים את המספרים» */
.c-where { display: grid; gap: .9rem; margin: 1.5rem 0 2rem; }
.c-where .w {
  display: grid; gap: .3rem; padding: .95rem 1.1rem;
  border-inline-start: 2px solid rgba(201,162,75,.4); background: rgba(201,162,75,.03);
  border-radius: var(--r-sm);
}
.c-where .w b { color: var(--gold-2); font-size: .95rem; font-family: var(--font-display); }
.c-where .w span { color: var(--ink-2); font-size: .89rem; line-height: 1.7; }

/* חמשת המחשבונים העיקריים · קלף מודגש */
.c-card.c-flag { border-color: var(--line); background: linear-gradient(180deg,rgba(26,20,8,.85),var(--card)); }
.c-card.c-flag:hover { border-color: var(--gold); box-shadow: 0 0 34px -14px rgba(216,185,100,.45); }
.c-card.c-flag h3 { font-size: 1.14rem; }
.c-card.c-flag .tags em.hot { color: var(--gold-soft); border-color: var(--line); background: rgba(201,162,75,.1); }
