/* WiseFinance – landing page (/home). Builds on wf.css tokens only.
   Figma "אתר פיננסים" landing: deep navy, sky→teal gradient highlights,
   thin light borders, ~16px radii. */

.hide-sm { display: inline-flex; }
.show-sm { display: none; }
@media (max-width: 860px) {
  .hide-sm { display: none; }
  .show-sm { display: inline-grid; }
  .home-nav { display: none; }
}

.home-nav { margin-inline: auto; }
.home-nav a[aria-current="page"] { color: var(--brand); }

/* mobile menu */
.mobile-menu { border-top: 1px solid var(--border); background: var(--bg); box-shadow: var(--shadow-md); }
.mobile-menu-inner { display: flex; flex-direction: column; padding-block: var(--sp-3) var(--sp-5); }
.mobile-menu-inner > a {
  padding: 14px 4px; color: var(--text); text-decoration: none; font-weight: var(--fw-medium);
  border-bottom: 1px solid var(--border);
}
.mobile-menu-actions { display: grid; gap: var(--sp-2); margin-top: var(--sp-4); }

/* shared bits */
.grad-text { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .grad-text { background: linear-gradient(90deg, #0E86A6, #12979B); -webkit-background-clip: text; background-clip: text; }
@media (forced-colors: active) { .grad-text { color: CanvasText; background: none; } }
.pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  color: var(--brand); font-size: var(--fs-sm); font-weight: var(--fw-medium);
}
.pill .fa-solid { font-size: 13px; }
.tile-icon {
  width: 44px; height: 44px; flex: none; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--grad-primary); color: #FFFFFF;
  box-shadow: 0 8px 20px -10px rgba(20, 144, 177, 0.7);
}
.tile-icon .fa-solid { font-size: 18px; }

.section { padding-block: var(--sp-20); }
.section-head { max-width: 680px; margin-bottom: var(--sp-10); }
.section-head.center, .section-title.center { margin-inline: auto; text-align: center; }
.section-head.center .pill { margin-bottom: var(--sp-4); }
.section-title { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); font-weight: var(--fw-bold); letter-spacing: -0.02em; line-height: 1.2; }
.section-lead { margin-top: var(--sp-4); color: var(--text-2); font-size: var(--fs-lg); line-height: 1.65; }

/* ---------- hero ---------- */
/* kept compact so the drifting bank logos already peek in on first load (Figma note) */
.hero { position: relative; padding-block: var(--sp-12) var(--sp-8); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 55% at 8% 30%, rgba(28, 160, 164, 0.16), transparent 70%),
    radial-gradient(35% 50% at 95% 90%, rgba(20, 144, 177, 0.12), transparent 70%);
}
:root[data-theme="light"] .hero::before { opacity: 0.6; }
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--sp-16); align-items: center;
}
.hero-title {
  margin-top: var(--sp-6);
  font-size: var(--fs-hero); font-weight: var(--fw-bold);
  line-height: 1.08; letter-spacing: -0.03em;
}
.hero-lead { margin-top: var(--sp-6); max-width: 36rem; font-size: var(--fs-lg); line-height: 1.7; color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-8); }
.hero-points { list-style: none; margin: var(--sp-8) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); font-size: var(--fs-sm); color: var(--text-2); }
.hero-points li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.hero-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* hero card – the signature: a balance with sky→teal bars */
.hero-visual { position: relative; }
.hero-card {
  position: relative;
  padding: var(--sp-6);
  border: 1px solid var(--border-strong); border-radius: var(--r-xl);
  background: var(--bg);
  box-shadow: 0 30px 80px -40px rgba(20, 144, 177, 0.45);
}
:root[data-theme="light"] .hero-card { background: var(--surface); box-shadow: var(--shadow-lg); }
.hc-head { display: flex; justify-content: space-between; align-items: center; }
.hc-label { font-size: var(--fs-sm); color: var(--text-muted); }
.hc-trend { color: var(--teal); font-size: 18px; }
.hc-big { margin-top: var(--sp-2); font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(2rem, 1.4rem + 1.8vw, 2.75rem); letter-spacing: -0.02em; text-align: right; }
.hc-bars { height: 120px; margin-block: var(--sp-6); display: flex; align-items: flex-end; justify-content: space-around; gap: var(--sp-3); }
.hc-bars span {
  width: min(28px, 9%); height: var(--h); border-radius: 8px 8px 4px 4px;
  background: var(--grad-accent-v);
  transform-origin: bottom; animation: wf-grow 900ms var(--ease) both;
}
.hc-bars span:nth-child(2) { animation-delay: 60ms; } .hc-bars span:nth-child(3) { animation-delay: 120ms; }
.hc-bars span:nth-child(4) { animation-delay: 180ms; } .hc-bars span:nth-child(5) { animation-delay: 240ms; }
.hc-bars span:nth-child(6) { animation-delay: 300ms; } .hc-bars span:nth-child(7) { animation-delay: 360ms; }
@keyframes wf-grow { from { transform: scaleY(0.05); } }
.hc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.hc-tile {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: var(--sp-4) var(--sp-2); border-radius: var(--r-md);
  background: var(--surface-2); text-align: center;
}
.hc-tile .fa-solid { color: var(--brand); font-size: 16px; margin-bottom: 2px; }
.hc-tile-label { font-size: var(--fs-xs); color: var(--text-muted); }
.hc-tile-val { font-weight: var(--fw-bold); font-size: var(--fs-sm); }

/* ---------- providers: two rows of logos drifting sideways in opposite directions ---------- */
.providers { padding-block: var(--sp-6) var(--sp-10); border-top: 1px solid var(--border); }
.providers-title { text-align: center; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-muted); }
.logo-marquee {
  max-width: 1200px; margin: var(--sp-5) auto 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
/* each track holds its logos twice, so sliding it by half its width loops seamlessly */
.logo-track {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: var(--sp-4); width: max-content;
  animation: wf-marquee 38s linear infinite;
}
.logo-track--reverse { animation-direction: reverse; animation-duration: 30s; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track li {
  flex: none; width: 148px; height: 60px; padding: 8px 14px;
  display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--r-md); background: #FFFFFF;
}
.logo-track img { max-width: 100%; max-height: 40px; object-fit: contain; }
@keyframes wf-marquee { to { transform: translateX(50%); } }

/* ---------- pain ---------- */
.pain-text { max-width: 680px; margin: var(--sp-8) auto 0; text-align: center; font-size: var(--fs-lg); line-height: 1.7; color: var(--text-2); }
.pain-text p + p { margin-top: var(--sp-3); }
.pain-text strong { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.pain-quote { font-weight: var(--fw-bold); color: var(--text); }
.pain-punch { margin-top: var(--sp-5); text-align: center; font-weight: var(--fw-bold); font-size: var(--fs-lg); }

/* ---------- meet ---------- */
.meet { background: color-mix(in srgb, var(--surface) 60%, var(--bg)); border-block: 1px solid var(--border); }
.meet .section-head { margin-inline: auto; text-align: center; }
.meet-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-12); align-items: center; }
.meet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-6); }
.meet-list li { display: flex; gap: var(--sp-4); align-items: flex-start; }
.meet-list h3 { font-size: var(--fs-md); }
.meet-list p { margin-top: 4px; font-size: var(--fs-sm); color: var(--text-muted); }
.meet-visual { position: relative; padding-bottom: var(--sp-8); }
.mock { border: 1px solid var(--border-strong); border-radius: var(--r-lg); background: var(--bg); overflow: hidden; }
:root[data-theme="light"] .mock { background: var(--surface); box-shadow: var(--shadow-md); }
.mock-bar { display: flex; gap: 6px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.mock-bar span:first-child { background: var(--teal); }
.mock-body { padding: var(--sp-5); display: grid; gap: var(--sp-4); }
.mock-head { display: flex; justify-content: space-between; align-items: flex-start; }
.mock-head > div { display: flex; flex-direction: column; }
.mock-head .fa-solid { color: var(--brand); font-size: 22px; }
.mock-label { font-size: var(--fs-xs); color: var(--text-muted); }
.mock-big { font-family: var(--font-display); font-size: 1.75rem; font-weight: var(--fw-bold); text-align: right; }
.mock-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: var(--fs-sm); color: var(--text-2); }
.mock-row b { font-weight: var(--fw-semibold); color: var(--text); }
.mock-track { grid-column: 1 / -1; height: 6px; border-radius: var(--r-pill); background: var(--track); overflow: hidden; }
.mock-track span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--grad-accent); }
.mock-float {
  position: absolute; inset-inline-end: -12px; bottom: 0;
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md);
  background: var(--surface-raised); border: 1px solid var(--border-strong); box-shadow: var(--shadow-md);
}
.mock-float .tile-icon { width: 36px; height: 36px; border-radius: 50%; }
.mock-float .tile-icon .fa-solid { font-size: 14px; }
.mock-float span:last-child { display: flex; flex-direction: column; font-size: var(--fs-sm); }
.mock-float small { color: var(--text-muted); font-size: var(--fs-xs); }

/* ---------- features: check cards ---------- */
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); max-width: 1000px; margin-inline: auto; }
.check-card {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-5); border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.check-card:hover { border-color: color-mix(in srgb, var(--teal) 60%, transparent); transform: translateY(-2px); }
.check { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad-primary); color: #FFFFFF; font-size: 12px; }
.check-card h3 { font-size: var(--fs-md); }
.check-card p { margin-top: 4px; font-size: var(--fs-sm); color: var(--text-muted); }
.features-cta { margin-top: var(--sp-10); text-align: center; }

/* ---------- life after ---------- */
.life { background: radial-gradient(50% 60% at 50% 0%, rgba(28, 160, 164, 0.10), transparent 70%); }
.life-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); max-width: 900px; margin-inline: auto; }
.life-card { padding: var(--sp-6); border: 1px solid var(--border-strong); border-radius: var(--r-lg); background: var(--surface); text-align: center; }
.life-card .fa-solid { font-size: 28px; color: var(--brand); }
.life-card h3 { margin-top: var(--sp-3); font-size: var(--fs-md); }
.life-card p { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--text-muted); }

/* ---------- who ---------- */
.who { border-top: 1px solid var(--border); }
.who-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--sp-12); align-items: center; }
.who-copy > p { margin-top: var(--sp-4); color: var(--text-2); line-height: 1.75; }
.values { list-style: none; margin: var(--sp-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.values li {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  padding: var(--sp-4); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
}
.values .fa-solid { color: var(--brand); font-size: 20px; }
.quote-card { margin: 0; padding: var(--sp-8); border: 1px solid var(--border-strong); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-md); }
.quote-card blockquote { margin: 0; font-size: var(--fs-lg); line-height: 1.7; color: var(--text); }
.quote-card figcaption { margin-top: var(--sp-6); display: flex; align-items: center; gap: var(--sp-3); font-weight: var(--fw-semibold); }
.quote-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-primary); color: #FFFFFF; font-weight: var(--fw-bold); }

/* ---------- CTA ---------- */
.cta-section { position: relative; overflow: hidden; }
.cta-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(30% 60% at 10% 60%, rgba(16, 185, 129, 0.10), transparent 70%),
    radial-gradient(30% 60% at 90% 30%, rgba(20, 144, 177, 0.14), transparent 70%);
}
.cta {
  position: relative; max-width: 620px; margin-inline: auto;
  padding: var(--sp-12) var(--sp-8); text-align: center;
  border: 1px solid var(--border-strong); border-radius: var(--r-xl);
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-4);
}
:root[data-theme="light"] .cta { background: var(--surface); box-shadow: var(--shadow-md); }
.cta h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); font-weight: var(--fw-bold); }
.cta > p:not(.pill):not(.cta-note) { color: var(--text-2); max-width: 44ch; }
.cta .btn { margin-top: var(--sp-2); }
.cta-note { font-size: var(--fs-xs); color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 760px; }
.faq-list { display: grid; gap: var(--sp-3); }
.faq-item { border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--bg); }
:root[data-theme="light"] .faq-item { background: var(--surface); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5); font-weight: var(--fw-semibold); font-size: var(--fs-sm);
  border-radius: inherit;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px;
  color: var(--text-muted); transition: transform var(--dur-2) var(--ease); flex: none;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.faq-item p { padding: 0 var(--sp-5) var(--sp-5); color: var(--text-2); font-size: var(--fs-sm); line-height: 1.7; }

/* ---------- footer ---------- */
/* the footer stays deep navy in both themes, as in the Figma */
.site-footer {
  --text: #EEF2F7; --text-2: #C3CBD8; --text-muted: #9AA6B8; --border: rgba(255, 255, 255, 0.12); --brand: #3CC6CF;
  padding-block: var(--sp-12) var(--sp-6); background: #111827; color: var(--text); border-top: 1px solid var(--border);
}
.site-footer .wf-logo-word { color: var(--text); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: var(--sp-8); }
.footer-brand p { margin-top: var(--sp-3); max-width: 36ch; font-size: var(--fs-sm); color: var(--text-muted); }
.footer-links { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-links h3 { font-size: var(--fs-sm); margin-bottom: var(--sp-1); }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { margin-top: var(--sp-10); padding-top: var(--sp-5); border-top: 1px solid var(--border); display: flex; justify-content: center; flex-wrap: wrap; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--text-muted); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .meet-grid, .who-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-10); }
  .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .section { padding-block: var(--sp-12); }
  .hero { padding-block: var(--sp-10); }
  .life-grid, .check-grid { grid-template-columns: minmax(0, 1fr); }
  .logo-track li { width: 120px; height: 52px; }
  .hc-tiles { gap: var(--sp-2); }
  .hc-tile { padding: var(--sp-3) 4px; }
  .hc-tile-val { font-size: var(--fs-xs); }
  .mock-float { inset-inline-end: 8px; }
  .cta { padding: var(--sp-8) var(--sp-5); }
  .hero-actions .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .hc-bars span { animation: none; }
  /* no drifting: show each logo once, wrapped */
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
  .logo-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; padding-inline: var(--sp-4); }
  .logo-track .dup { display: none; }
  .check-card:hover { transform: none; }
}
