/* ===================================================================
   LK Finance — Investment Planner styles
   Extends calculators.css. Reuses the same tokens/components; adds only
   what the cross-asset comparison needs.
   =================================================================== */

.planner-breadcrumb {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--teal-2);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.planner-breadcrumb:hover { text-decoration: underline; }

/* ----- practical how-to list under the title ----- */
.planner-howto {
  list-style: none;
  padding: 0;
  margin: 20px auto 0;
  max-width: 640px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
}
.planner-howto li {
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-radius: 100px;
  padding: 7px 15px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.planner-howto li::before { content: "✓ "; color: var(--teal); font-weight: 900; }

/* ----- category pickers ----- */
.cmp-pickers {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}
.cmp-pick { display: flex; flex-direction: column; gap: 6px; }
.cmp-pick > span { font-weight: 800; font-size: 13.5px; color: var(--ink-2); }
.cmp-select {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--hairline-2);
  border-radius: 14px;
  padding: 13px 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232EA4A0' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
}
.cmp-select:focus { outline: none; border-color: var(--teal); }
.cmp-vs-word { align-self: center; font-weight: 800; color: var(--muted); padding-bottom: 12px; }

.planner-calc-link { text-align: center; margin-top: 28px; color: var(--muted); font-size: 14.5px; }

/* ----- scenario segmented control (reuses calc-seg-btn) ----- */
.planner-seg { display: inline-flex; gap: 6px; }

/* ----- advanced assumptions accordion ----- */
.planner-advanced { margin-top: 18px; border-top: 1px solid var(--hairline); padding-top: 16px; }
.planner-advanced-toggle {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px 10px;
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: right;
  padding: 4px 0;
  font-family: inherit;
  color: var(--ink);
}
.planner-advanced-toggle > span:first-child { font-weight: 800; font-size: 15px; }
.planner-advanced-toggle small { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.planner-advanced-chevron { transition: transform .25s ease; color: var(--teal-2); font-size: 14px; }
.planner-advanced[data-open="true"] .planner-advanced-chevron { transform: rotate(180deg); }
.planner-advanced-body { display: none; margin-top: 14px; }
.planner-advanced[data-open="true"] .planner-advanced-body { display: block; }
.planner-adv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* ----- winner band ----- */
.planner-winner {
  border-radius: 18px;
  padding: 18px 20px;
  text-align: center;
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(27,123,184,0.10), rgba(27,123,184,0.02));
  border: 1px solid rgba(27,123,184,0.25);
}
.planner-winner[data-winner="market"] {
  background: linear-gradient(180deg, rgba(46,164,160,0.12), rgba(46,164,160,0.02));
  border-color: rgba(46,164,160,0.30);
}
.planner-winner-label { display: block; font-weight: 800; font-size: 14.5px; color: var(--ink-2); }
.planner-winner-value { display: block; font-family: var(--font-display); font-weight: 900; font-size: 38px; line-height: 1.1; margin: 6px 0 2px; color: var(--teal-2); }
.planner-winner[data-winner="property"] .planner-winner-value { color: #1B7BB8; }
.planner-winner-meta { display: block; font-size: 13px; color: var(--muted); }

/* ----- versus comparison ----- */
.planner-vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 16px;
}
.planner-vs-col {
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.planner-vs-col.is-winner { border-color: var(--gold); box-shadow: 0 6px 22px rgba(212,165,55,0.18); }
.planner-vs-title { font-weight: 800; font-size: 15px; }
.planner-vs-big { font-family: var(--font-display); font-weight: 900; font-size: 26px; line-height: 1.15; margin-top: 4px; }
.planner-vs-sub { font-size: 11.5px; color: var(--muted); }
.planner-vs-irr { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.planner-vs-sep { align-self: center; font-weight: 800; color: var(--muted); font-size: 13px; padding: 0 2px; }

.planner-chart-note { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }

/* ----- hub grid (תכנון פיננסי AI landing) ----- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.hub-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-radius: 20px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(46,164,160,0.35); }
.hub-card-soon { opacity: .72; cursor: default; }
.hub-card-top { display: flex; align-items: center; justify-content: space-between; }
.hub-card-icon { font-size: 30px; line-height: 1; }
.hub-tag {
  font-size: 12px; font-weight: 800; padding: 4px 11px; border-radius: 100px;
  background: var(--bg-tint); color: var(--teal-2);
}
.hub-tag-new { background: var(--teal); color: #fff; }
.hub-tag-soon { background: rgba(10,22,40,0.06); color: var(--muted); }
.hub-card-title { font-family: var(--font-display); font-weight: 800; font-size: 21px; margin: 2px 0 0; }
.hub-card-desc { color: var(--muted); font-size: 14.5px; line-height: 1.6; flex: 1; }
.hub-card-cta { font-weight: 800; color: var(--teal-2); font-size: 14.5px; }
.hub-card-cta-muted { color: var(--muted); }

/* ----- mobile ----- */
@media (max-width: 720px) {
  .planner-adv-grid { grid-template-columns: 1fr; }
  .planner-winner-value { font-size: 32px; }
  .planner-vs-big { font-size: 22px; }
  .planner-vs { gap: 6px; }
  .planner-vs-col { padding: 14px 8px; }
}

/* ===================================================================
   AI HERO — premium dark, tech + luxury
   =================================================================== */
.ai-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(46,164,160,0.18), transparent 60%),
    linear-gradient(165deg, #0A1628 0%, #0e2038 55%, #0A1628 100%);
  color: #fff;
  padding: clamp(48px, 7vw, 88px) 20px clamp(40px, 6vw, 72px);
  border-radius: 0 0 36px 36px;
  box-shadow: 0 30px 80px -30px rgba(10,22,40,0.6);
}
/* tech grid — static (drifting background-position forced a full-layer repaint
   every frame; the look is identical at any frame, so we keep it still) */
.ai-hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(96,165,250,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,0.10) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 35%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 35%, transparent 78%);
}
/* glows — promoted to their own compositor layer so the pulse scales a cached
   texture instead of re-rasterizing the 70px blur each frame */
.ai-hero-glow { position: absolute; z-index: 0; border-radius: 50%; filter: blur(70px); pointer-events: none; opacity: .55; will-change: transform; }
.ai-glow-1 { width: 460px; height: 460px; top: -120px; right: -80px; background: radial-gradient(circle, rgba(46,164,160,0.55), transparent 70%); animation: aiPulse 9s ease-in-out infinite; }
.ai-glow-2 { width: 420px; height: 420px; bottom: -140px; left: -60px; background: radial-gradient(circle, rgba(212,165,55,0.40), transparent 70%); animation: aiPulse 11s ease-in-out infinite reverse; }
@keyframes aiPulse { 0%,100% { transform: scale(1); opacity: .45; } 50% { transform: scale(1.18); opacity: .65; } }
/* particle field — static (same reason as the grid: drifting background-position
   repaints the whole layer every frame) */
.ai-hero-dots {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,0.6) 1px, transparent 1.4px);
  background-size: 120px 120px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
          mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
}

.ai-hero-inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; text-align: center; }
.ai-kicker {
  display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .04em;
  color: #BFE3F2; background: rgba(46,164,160,0.16); border: 1px solid rgba(46,164,160,0.4);
  padding: 7px 16px; border-radius: 100px; backdrop-filter: blur(6px);
}
.ai-hero-title {
  font-family: var(--font-display); font-weight: 900; line-height: 1.08;
  font-size: clamp(30px, 5.2vw, 56px); margin: 18px 0 0;
  background: linear-gradient(180deg, #fff 30%, #BFE3F2 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ai-hero-sub { color: rgba(255,255,255,0.78); font-size: clamp(15px, 2.2vw, 19px); margin: 14px auto 0; max-width: 620px; }

/* floating search */
.ai-search {
  display: flex; align-items: center; gap: 6px;
  max-width: 620px; margin: 30px auto 0;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 100px; padding: 7px 7px 7px 18px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6), 0 0 0 4px rgba(46,164,160,0.10);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.ai-search:focus-within { border-color: rgba(46,164,160,0.7); box-shadow: 0 24px 60px -16px rgba(0,0,0,0.6), 0 0 0 5px rgba(46,164,160,0.22); }
.ai-search-icon { font-size: 20px; line-height: 1; flex: none; }
.ai-search input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  color: #fff; font-family: inherit; font-size: 16px; font-weight: 500; padding: 12px 6px;
}
.ai-search input::placeholder { color: rgba(255,255,255,0.55); }
.ai-search-btn {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #06221f;
  background: linear-gradient(135deg, #2EA4A0, #60A5FA);
  box-shadow: 0 8px 22px rgba(46,164,160,0.5);
  transition: transform .15s ease, box-shadow .2s ease;
}
.ai-search-btn:hover { transform: scale(1.06); box-shadow: 0 10px 28px rgba(46,164,160,0.65); }
.ai-search-btn svg { width: 20px; height: 20px; }
.ai-search-btn.is-loading { opacity: .6; pointer-events: none; }
.ai-search-note { color: rgba(255,255,255,0.6); font-size: 12.5px; margin: 12px auto 0; max-width: 560px; }

/* AI answer */
.ai-answer {
  max-width: 620px; margin: 18px auto 0; text-align: right;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px; padding: 18px 20px; backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px -20px rgba(0,0,0,0.6);
  animation: aiFadeUp .35s ease both;
}
@keyframes aiFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ai-answer-head { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 14px; color: #BFE3F2; margin-bottom: 10px; }
.ai-answer-avatar { width: 26px; height: 26px; border-radius: 50%; background: #fff; padding: 3px; }
.ai-answer-body { color: rgba(255,255,255,0.92); font-size: 15px; line-height: 1.75; }
.ai-answer-body .ai-dots span { animation: aiBlink 1.2s infinite; } .ai-answer-body .ai-dots span:nth-child(2){animation-delay:.2s} .ai-answer-body .ai-dots span:nth-child(3){animation-delay:.4s}
@keyframes aiBlink { 0%,100%{opacity:.3} 50%{opacity:1} }

/* floating calculator tiles */
.ai-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  max-width: 760px; margin: 38px auto 0;
}
.ai-tile {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; color: #fff; text-align: right;
  /* no backdrop-filter on purpose: 9 floating tiles each re-blurring the moving
     backdrop every frame was the main jank source. A slightly more opaque fill
     reads as the same frosted glass over the dark hero. */
  background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px; padding: 18px 16px;
  box-shadow: 0 12px 30px -16px rgba(0,0,0,0.5);
  animation: aiFloat 6.5s ease-in-out infinite;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.ai-tile:nth-child(2){animation-delay:-0.8s} .ai-tile:nth-child(3){animation-delay:-1.6s}
.ai-tile:nth-child(4){animation-delay:-2.4s} .ai-tile:nth-child(5){animation-delay:-3.2s} .ai-tile:nth-child(6){animation-delay:-4s}
@keyframes aiFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }
.ai-tile:hover { transform: translateY(-9px); border-color: rgba(46,164,160,0.6); background: rgba(46,164,160,0.12); box-shadow: 0 18px 44px -14px rgba(46,164,160,0.5); }
.ai-tile-icon { font-size: 26px; line-height: 1; }
.ai-tile-title { font-weight: 800; font-size: 15.5px; margin-top: 6px; }
.ai-tile-sub { font-size: 12px; color: rgba(255,255,255,0.62); }
.ai-tile-feature {
  background: linear-gradient(135deg, rgba(46,164,160,0.28), rgba(96,165,250,0.18));
  border-color: rgba(46,164,160,0.5);
}
.ai-tile-feature::after {
  content: "מומלץ"; position: absolute; top: 12px; left: 12px;
  font-size: 10.5px; font-weight: 800; color: #06221f;
  background: var(--gold); padding: 3px 9px; border-radius: 100px;
}

/* ===================================================================
   SWOT — "what else to consider" deep dive
   =================================================================== */
.swot-section { margin-top: 28px; }
.swot-head { text-align: center; max-width: 680px; margin: 0 auto 20px; }
.swot-head h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px,3vw,26px); }
.swot-head p { color: var(--muted); font-size: 14.5px; margin-top: 8px; line-height: 1.6; }
.swot-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.swot-card {
  background: var(--surface); border: 1px solid var(--hairline-2); border-radius: 20px;
  padding: 22px; box-shadow: var(--shadow-1);
}
.swot-card-title { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: 19px; margin-bottom: 14px; }
.swot-card-title .swot-emoji { font-size: 24px; }
.swot-block { margin-top: 14px; }
.swot-block h5 { font-size: 13.5px; font-weight: 800; margin: 0 0 7px; display: flex; align-items: center; gap: 6px; }
.swot-block.pros h5 { color: #1B9e7a; }
.swot-block.cons h5 { color: #c2683a; }
.swot-block.consider h5 { color: var(--teal-2); }
.swot-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.swot-list li { position: relative; padding-right: 22px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.swot-list li::before { position: absolute; right: 0; top: 1px; font-weight: 900; }
.swot-block.pros li::before { content: "✓"; color: #1B9e7a; }
.swot-block.cons li::before { content: "✕"; color: #c2683a; }
.swot-block.consider li::before { content: "◆"; color: var(--gold); font-size: 11px; top: 3px; }

/* ===================================================================
   responsive
   =================================================================== */
@media (max-width: 720px) {
  .ai-tiles { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .ai-tile { padding: 15px 13px; }
  .swot-wrap { grid-template-columns: 1fr; }
  .ai-search { margin-top: 24px; }
}
@media (max-width: 420px) {
  .ai-tiles { grid-template-columns: 1fr 1fr; }
  .ai-search input { font-size: 15px; }
}

/* ===================================================================
   Audit fixes (19.6.26): a11y focus, reduced-motion, mobile-first
   result order, conversion CTA, tap/keyboard tooltips
   =================================================================== */

/* WCAG 2.4.7 — visible keyboard focus (focus-visible so mouse stays clean) */
.calc-range:focus-visible,
.calc-seg-btn:focus-visible,
.calc-go:focus-visible,
.calc-mini-btn:focus-visible,
.calc-help:focus-visible,
.ai-search-btn:focus-visible,
.ai-tile:focus-visible,
.cmp-select:focus-visible,
.swot-bridge-cta:focus-visible,
.cmp-cta-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 8px;
}
.ai-search input:focus-visible { outline: none; } /* ring lives on the wrapper */
.calc-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--gold), 0 2px 8px rgba(46,164,160,.35); }
.calc-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--gold), 0 2px 8px rgba(46,164,160,.35); }

/* tap-to-reveal (touch) + keyboard-reveal for help tooltips — mirrors the
   existing .calc-help:hover::after in calculators.css */
.calc-help:focus-visible::after,
.calc-help[data-open]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 26px; right: 50%;
  transform: translateX(50%);
  width: max-content; max-width: min(240px, 72vw);
  background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 500; line-height: 1.45;
  padding: 10px 12px; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(10,22,40,.3);
  z-index: 40; text-align: right;
}
.calc-help[data-open] { background: var(--teal); color: #fff; }
/* smaller help glyph used inline on the IRR line */
.calc-help-sm { width: 16px; height: 16px; font-size: 10px; vertical-align: middle; }

/* mobile: show the answer (winner) BEFORE the tall input wall */
@media (max-width: 980px) {
  #cmp-root .calc-result-card { order: -1; }
}

/* button click feedback */
.result-flash { animation: resultFlash .8s ease; }
@keyframes resultFlash {
  0% { box-shadow: 0 0 0 0 rgba(46,164,160,.5); }
  100% { box-shadow: 0 0 0 16px rgba(46,164,160,0); }
}

/* conversion CTA under the result */
.cmp-cta {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  grid-column: 1 / -1;
  margin: 22px auto 0; padding: 22px 24px; max-width: 600px; text-align: center;
  background: linear-gradient(135deg, rgba(46,164,160,0.10), rgba(10,22,40,0.03));
  border: 1px solid rgba(46,164,160,0.28); border-radius: 18px;
}
.cmp-cta-text { margin: 0; font-size: 1.05rem; line-height: 1.5; color: var(--ink); }
.cmp-cta-btn { font-size: 1rem; padding: 12px 30px; }

/* SWOT closing bridge */
.swot-bridge {
  grid-column: 1 / -1; margin-top: 18px; padding: 20px 22px; text-align: center;
  background: linear-gradient(180deg, rgba(46,164,160,0.08), rgba(46,164,160,0.02));
  border: 1px solid rgba(46,164,160,0.22); border-radius: 16px;
}
.swot-bridge-line { margin: 0 0 12px; color: var(--ink); font-size: 1.02rem; line-height: 1.6; font-weight: 500; }
.swot-bridge-line em { font-style: normal; color: var(--teal-2); font-weight: 800; }
.swot-bridge-cta { display: inline-block; color: var(--teal-2); font-weight: 800; font-size: 1rem; text-decoration: none; }
.swot-bridge-cta:hover { color: var(--navy); text-decoration: underline; }
@media (max-width: 600px) { .cmp-cta, .swot-bridge { padding: 18px 16px; } .cmp-cta-text, .swot-bridge-line { font-size: 0.98rem; } }

/* respect users who prefer less motion — kill the ambient hero animations */
@media (prefers-reduced-motion: reduce) {
  .ai-hero-grid, .ai-hero-dots, .ai-glow-1, .ai-glow-2, .ai-tile,
  .result-flash, .ai-answer { animation: none !important; }
  * { scroll-behavior: auto !important; }
}

/* prevent an edge tap-tooltip from creating horizontal scroll (clip, not
   hidden, so the desktop sticky result card keeps working) */
html { overflow-x: clip; }

/* ===================================================================
   Comparison redesign (20.6.26): per-instrument colour, hero launcher
   =================================================================== */

/* each result column wears its instrument colour; winner is highlighted */
.planner-vs-col { position: relative; overflow: hidden; }
.planner-vs-col::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 4px;
  background: var(--vs-color, var(--hairline-2));
}
.planner-vs-col .planner-vs-big { color: var(--vs-color, var(--ink)); }
.planner-vs-col.is-winner {
  border-color: var(--vs-color, var(--gold));
  box-shadow: 0 8px 26px color-mix(in srgb, var(--vs-color, #2EA4A0) 26%, transparent);
}
.planner-vs-col.is-winner::after {
  content: '🏆 מנצח'; position: absolute; top: 8px; left: 8px;
  font-size: 10.5px; font-weight: 800; color: #fff;
  background: var(--vs-color, var(--gold)); padding: 3px 9px; border-radius: 100px;
}

/* winner band tinted by the winning instrument's colour */
.planner-winner {
  background: linear-gradient(180deg, color-mix(in srgb, var(--win-color, #2EA4A0) 12%, transparent), transparent);
  border-color: color-mix(in srgb, var(--win-color, #2EA4A0) 32%, transparent);
}
.planner-winner-value { color: var(--win-color, var(--teal-2)); }

/* ===================================================================
   Two-sided comparison (20.6.26): fill the right, fill the left
   =================================================================== */
.cmp-shared {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 16px 22px;
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.cmp-shared-item { display: flex; flex-direction: column; gap: 8px; }
.cmp-shared-item .calc-label { font-size: 13.5px; font-weight: 700; }
.cmp-shared-scn { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cmp-shared-scn .calc-unit-label { font-size: 13px; font-weight: 800; color: var(--ink-2); }

.cmp-sides {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;          /* both sides same height ("בגובה אחד") */
  gap: 14px;
}
.cmp-side { margin: 0; }
.cmp-side-head { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.cmp-side-tag {
  align-self: flex-start;
  font-weight: 800; font-size: 12px; letter-spacing: .03em;
  color: var(--teal-2); background: var(--bg-tint);
  padding: 4px 12px; border-radius: 100px;
}
.cmp-side-tag small { font-weight: 600; font-size: 10px; opacity: .7; }
.cmp-side[data-instr="dira"] .cmp-side-tag { color: #1B7BB8; background: rgba(27,123,184,0.10); }

/* middle column: vertically centered between the two equal-height sides,
   holding the "מול" badge + the calculate button + the match-capital helper */
.cmp-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.cmp-go-mid {
  width: auto; margin: 0; white-space: nowrap;
  padding: 15px 22px; font-size: 15.5px; box-shadow: 0 8px 22px rgba(46,164,160,0.30);
}
.cmp-vs-badge {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: var(--muted);
  background: var(--surface); border: 1px solid var(--hairline-2);
}
.cmp-match-btn {
  font-family: inherit; font-weight: 700; font-size: 12.5px; cursor: pointer;
  color: var(--teal-2); background: var(--bg-tint); border: 1px solid var(--hairline-2);
  border-radius: 100px; padding: 9px 12px; white-space: nowrap; line-height: 1.2;
  transition: border-color .15s ease, color .15s ease;
}
.cmp-match-btn:hover { border-color: var(--teal); color: var(--navy); }

/* mortgage read-out inside a property side */
.cmp-mortgage-readout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  background: var(--bg-tint); border-radius: 12px; padding: 11px 13px; margin: 2px 0 12px;
}
.cmp-readout-item { display: flex; flex-direction: column; gap: 2px; }
.cmp-readout-k { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.cmp-readout-v { font-size: 15px; font-weight: 800; color: var(--ink); }
.cmp-readout-v bdi { unicode-bidi: isolate; }

/* mortgage tracks (פריים / קל"צ / משתנה) inside a property side */
.cmp-mtracks { background: var(--bg-tint); border-radius: 12px; padding: 12px 13px; margin: 2px 0 12px; }
.cmp-mtracks-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.cmp-mtracks-title { font-size: 13px; font-weight: 800; color: var(--ink); }
.cmp-mtracks-cols { display: flex; gap: 8px; }
.cmp-mtracks-cols span { width: 78px; text-align: center; font-size: 10px; font-weight: 700; color: var(--muted); }
.cmp-mtrack-row { display: grid; grid-template-columns: 1fr 78px 78px; align-items: center; gap: 8px; margin-top: 6px; }
.cmp-mtrack-name { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.cmp-mtrack-row .calc-num-wrap.sm { width: 100%; min-width: 0; }
.cmp-mtrack-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.cmp-mtrack-foot .calc-mini-field { flex: 0 0 auto; }
.cmp-mtrack-warn { flex: 1 1 140px; font-size: 11.5px; font-weight: 700; color: #c2683a; line-height: 1.35; }

.planner-vs-invested { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

@media (max-width: 860px) {
  .cmp-shared { grid-template-columns: 1fr 1fr; }
  .cmp-shared-scn { grid-column: 1 / -1; align-items: stretch; }
  .cmp-sides { grid-template-columns: 1fr; }
  .cmp-mid { flex-direction: row; flex-wrap: wrap; padding-top: 0; justify-content: center; gap: 12px; }
  .cmp-go-mid { flex: 1 1 100%; order: -1; }   /* calc button spans full width, sits on top between the two stacked sides */
}

/* hero quick-compare launcher */
.ai-launcher {
  margin: 28px auto 0; max-width: 600px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px; padding: 16px 18px; backdrop-filter: blur(12px);
}
.ai-launcher-label { display: block; text-align: center; font-weight: 800; font-size: 14px; color: #BFE3F2; margin-bottom: 12px; }
.ai-launcher-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ai-launcher-select {
  flex: 1; min-width: 128px; font-family: inherit; font-size: 15px; font-weight: 700;
  color: #fff; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.24);
  border-radius: 12px; padding: 11px 12px; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23BFE3F2' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 12px center;
}
.ai-launcher-select option { color: #0A1628; }
.ai-launcher-vs { color: rgba(255,255,255,0.72); font-weight: 800; font-size: 13px; }
.ai-launcher-btn {
  background: linear-gradient(135deg, #2EA4A0, #60A5FA); color: #06221f;
  font-weight: 800; font-family: inherit; font-size: 15px; border: 0;
  border-radius: 12px; padding: 11px 24px; cursor: pointer; transition: filter .15s ease;
}
.ai-launcher-btn:hover { filter: brightness(1.08); }
@media (max-width: 600px) {
  .ai-launcher-select { min-width: 0; flex: 1 1 40%; }
  .ai-launcher-btn { flex: 1 1 100%; }
}
