/* ============================================================
   באדג'ט inner pages, in the homepage's look.
   Loaded after styles.css and home.css. Everything is scoped to
   body.page-v2, so the old rules still apply anywhere it is missing.
   ============================================================ */

.page-v2 {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Heebo', system-ui, sans-serif;
}

/* Old decorative mockups (grey hands and phones) don't fit the new look. */
.page-v2 main.page-with-flow.faq-page::after,
.page-v2.contact-page::after,
.page-v2 .contact-page::after,
.page-v2 main::after { display: none !important; background: none !important; }
body.contact-page.page-v2 main.page-inner::before { display: none !important; }
body.page-v2 main.page-inner { overflow-x: visible; }

/* ---------- blue hero band, full width ---------- */

.page-v2 .page-hero {
  position: relative;
  margin-inline: calc(50% - 50vw);
  margin-top: 0;
  padding: clamp(130px, 14vw, 170px) max(var(--section-pad-x), calc(50vw - 560px)) clamp(56px, 7vw, 84px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(50% 70% at 90% 0%, rgba(26, 109, 255, 0.24), transparent 70%),
    radial-gradient(40% 60% at 5% 100%, rgba(106, 165, 255, 0.24), transparent 70%),
    linear-gradient(180deg, #dbe8ff 0%, #eef4ff 70%, var(--paper) 100%);
}

.page-v2 .page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 109, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 109, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(60% 80% at 50% 40%, #000, transparent 75%);
  pointer-events: none;
}

.page-v2 .page-hero > * { position: relative; }

.page-v2 .page-title {
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 auto 16px;
  max-width: 18ch;
  text-wrap: balance;
}

.page-v2 .page-lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: var(--muted);
  margin: 0 auto;
  max-width: 54ch;
  text-wrap: pretty;
}

.page-v2 .page-inner,
.page-v2 .page-flow-content {
  background: transparent;
  box-shadow: none;
  /* The old container was capped at 720px and clipped its overflow, which
     cut the full-width hero band. Each block below sets its own width. */
  max-width: none;
  overflow: visible;
  padding-inline: var(--section-pad-x);
}

/* ---------- about ---------- */

.page-v2 .about-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  max-width: 1100px;
  margin: clamp(48px, 7vw, 90px) auto;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.page-v2 .about-showcase-kicker {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  margin: 0;
  color: var(--blue);
  font-weight: 800;
  font-size: 0.9375rem;
}

.page-v2 .about-showcase-title {
  grid-column: 1;
  grid-row: 2;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-align: start;
}

.page-v2 .about-showcase-caption {
  grid-column: 1;
  grid-row: 3;
  align-self: start;
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-align: start;
}

.page-v2 .about-phone {
  grid-column: 2;
  grid-row: 1 / span 3;
  justify-self: center;
  position: relative;
  width: min(300px, 74vw);
}

.page-v2 .about-phone .story-glow { width: 150%; }

.page-v2 .about-block {
  max-width: 1100px;
  margin: 0 auto 18px;
  padding: clamp(26px, 4vw, 40px);
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(26, 109, 255, 0.08);
  box-shadow: 0 20px 50px rgba(10, 87, 224, 0.06);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: 12px 40px;
  align-items: start;
}

.page-v2 .about-block h2 {
  margin: 0;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 800;
  color: var(--ink);
}

.page-v2 .about-block h2::before {
  content: '';
  display: block;
  width: 36px;
  height: 5px;
  border-radius: 5px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--blue-3), var(--blue));
}

.page-v2 .about-block p {
  margin: 0;
  grid-column: 2;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-v2 .about-block p .btn { margin-top: 6px; }

/* ---------- faq ---------- */

.page-v2 .faq-list,
.page-v2 .faq-items { max-width: 820px; margin-inline: auto; }

.page-v2 .faq-item {
  background: #fff;
  border: 1px solid rgba(26, 109, 255, 0.1);
  border-radius: 20px;
  margin: 0 auto 12px;
  max-width: 820px;
  box-shadow: 0 10px 30px rgba(10, 87, 224, 0.05);
  transition: border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.page-v2 .faq-item[open] {
  border-color: rgba(26, 109, 255, 0.35);
  box-shadow: 0 18px 44px rgba(10, 87, 224, 0.12);
}

.page-v2 .faq-question {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}

.page-v2 .faq-question::-webkit-details-marker { display: none; }
.page-v2 .faq-question::marker { content: ''; }

.page-v2 .faq-question::after {
  content: '+';
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--blue);
  background: var(--blue-tint);
  transition: transform 0.35s var(--ease-out), background 0.3s, color 0.3s;
}

.page-v2 .faq-question::before { display: none !important; }

.page-v2 .faq-item[open] .faq-question::after {
  transform: rotate(45deg);
  background: var(--blue);
  color: #fff;
}

.page-v2 .faq-answer {
  margin: 0;
  padding: 0 26px 24px;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- contact ---------- */

.page-v2 .contact-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  max-width: 980px;
  margin: clamp(40px, 6vw, 70px) auto;
  align-items: start;
}

.page-v2 .contact-info {
  background: linear-gradient(160deg, #2d7bff, var(--blue-2));
  color: #fff;
  border-radius: 26px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(10, 87, 224, 0.28);
}

.page-v2 .contact-info::before {
  content: 'מייל ישיר';
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 8px;
}

.page-v2.lang-en .contact-info::before { content: 'Direct email'; }

.page-v2 .contact-email {
  display: inline-block;
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 800;
  text-decoration: none;
  direction: ltr;
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  overflow-wrap: anywhere;
}

.page-v2 .contact-waitlist-note {
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.page-v2 .contact-waitlist-note a {
  display: inline-block;
  margin-top: 10px;
  background: #fff;
  color: var(--blue-2);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
}

.page-v2 .contact-form {
  background: #fff;
  border-radius: 26px;
  padding: 28px;
  border: 1px solid rgba(26, 109, 255, 0.08);
  box-shadow: 0 20px 50px rgba(10, 87, 224, 0.07);
  display: grid;
  gap: 10px;
  max-width: none;
  margin: 0;
}

.page-v2 .contact-form input,
.page-v2 .contact-form textarea {
  font: inherit;
  font-size: 1rem;
  border: 1px solid #e3e8f2;
  background: #f7f9fd;
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.page-v2 .contact-form input:focus-visible,
.page-v2 .contact-form textarea:focus-visible {
  outline: none;
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 109, 255, 0.15);
}

.page-v2 .contact-form .btn-primary {
  border: none;
  border-radius: 14px;
  padding: 15px 22px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(160deg, #2d7bff, var(--blue-2));
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.page-v2 .contact-form .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(10, 87, 224, 0.3); }

.contact-form-note { margin: 4px 2px 0; font-size: 0.8125rem; color: var(--muted); line-height: 1.6; }

/* ---------- waitlist ---------- */

.page-v2.page-waitlist .contact-wrapper {
  grid-template-columns: 1fr;
  max-width: 560px;
}

.page-v2.page-waitlist .contact-form { padding: 30px; }

.page-v2 .waitlist-consent,
.page-v2 .waitlist-legal { font-size: 0.75rem; line-height: 1.65; color: #8a92a8; margin: 6px 2px 0; }
.page-v2 .waitlist-legal a { color: var(--ink-2); }

.page-v2 .waitlist-next {
  max-width: 560px;
  margin: 0 auto clamp(60px, 8vw, 100px);
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.page-v2 .waitlist-next li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(26, 109, 255, 0.08);
}

.page-v2 .waitlist-next b { display: block; font-size: 1rem; margin-bottom: 2px; }
.page-v2 .waitlist-next span { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }

.page-v2 .waitlist-next i {
  font-style: normal;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(160deg, #3d8bff, var(--blue-2));
}

.page-v2 .waitlist-thanks {
  background: #fff;
  border-radius: 26px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(10, 87, 224, 0.08);
}

/* ---------- legal pages ---------- */

.page-v2.page-legal main {
  background:
    radial-gradient(50% 380px at 90% 0%, rgba(26, 109, 255, 0.22), transparent 70%),
    linear-gradient(180deg, #dbe8ff 0, #eef4ff 340px, var(--paper) 520px);
  padding-top: clamp(120px, 12vw, 150px);
  padding-bottom: 80px;
  padding-inline: var(--section-pad-x);
}

.page-v2.page-legal .accessibility-page {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 30px 80px rgba(10, 87, 224, 0.1);
  border: 1px solid rgba(26, 109, 255, 0.08);
}

.page-v2.page-legal .accessibility-page h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-align: start;
  margin: 0 0 8px;
}

.page-v2.page-legal .accessibility-page h2 {
  font-size: 1.375rem;
  font-weight: 800;
  margin: 36px 0 10px;
  color: var(--ink);
}

.page-v2.page-legal .accessibility-page h3 { color: var(--blue-2); }
.page-v2.page-legal .accessibility-page p,
.page-v2.page-legal .accessibility-page li { line-height: 1.85; color: #3c4560; }
.page-v2.page-legal .accessibility-page a { color: var(--blue); }

/* ---------- invite band at the bottom of content pages ---------- */

.invite-band {
  max-width: none;
  width: auto;
  margin: clamp(60px, 8vw, 100px) calc(50% - 50vw) 0;
  padding: clamp(70px, 9vw, 110px) var(--section-pad-x);
  text-align: center;
  color: #fff;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 70%),
    linear-gradient(160deg, #2d7bff 0%, var(--blue-2) 55%, #0846b8 100%);
}

.invite-band h2 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 auto 14px;
  max-width: 18ch;
  color: #fff;
}

.invite-band p { color: rgba(255, 255, 255, 0.82); font-size: 1.125rem; line-height: 1.7; margin: 0 auto 28px; max-width: 46ch; }

.invite-band-btn {
  display: inline-block;
  background: #fff;
  color: var(--blue-2);
  font-weight: 800;
  font-size: 1.0625rem;
  padding: 16px 30px;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(4, 30, 90, 0.3);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.invite-band-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 50px rgba(4, 30, 90, 0.38); }

/* The invite band sits flush on the footer. */
.page-v2 main:has(.invite-band) { padding-bottom: 0; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .page-v2 .about-showcase { grid-template-columns: 1fr; }
  .page-v2 .about-showcase-kicker,
  .page-v2 .about-showcase-title,
  .page-v2 .about-showcase-caption { grid-column: 1; grid-row: auto; text-align: center; }
  .page-v2 .about-phone { grid-column: 1; grid-row: auto; margin-top: 20px; }
  .page-v2 .about-block { grid-template-columns: 1fr; }
  .page-v2 .about-block p { grid-column: 1; }
  .page-v2 .contact-wrapper { grid-template-columns: 1fr; }
}

/* ============================================================
   /tools/ calculators
   ============================================================ */

.tool-crumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.tool-crumbs a { color: var(--blue-2); text-decoration: none; }
.tool-crumbs a:hover { text-decoration: underline; }

.page-tool .tool-calc {
  max-width: 1100px;
  margin: clamp(36px, 5vw, 60px) auto;
}

.calc-card--split { grid-template-columns: 1fr; max-width: 820px; }

.money-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid #e3e8f2;
  border-radius: 16px;
  padding: 6px 18px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.money-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26, 109, 255, 0.15); background: #fff; }
.money-input span { font-size: 1.5rem; font-weight: 800; color: var(--muted); }

.money-input input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--ink);
  padding: 8px 0;
  direction: ltr;
  text-align: right;
}

.money-input input:focus { outline: none; }

.split-bar {
  display: flex;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  margin: 8px 0 18px;
  box-shadow: inset 0 0 0 1px rgba(11, 16, 32, 0.05);
}

.split-bar span {
  flex: 0 0 var(--w);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.9375rem;
  transition: opacity 0.3s;
}

.split-bar span.is-empty { opacity: 0.25; }
.split-needs { background: linear-gradient(160deg, #3d8bff, var(--blue-2)); }
.split-wants { background: linear-gradient(160deg, #8fb8ff, #5b9bff); }
.split-save { background: linear-gradient(160deg, #e6c77f, #b88d3e); }

.split-buckets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.bucket {
  background: var(--paper);
  border-radius: 18px;
  padding: 16px;
  border-top: 4px solid;
}

.bucket--needs { border-color: var(--blue-2); }
.bucket--wants { border-color: #5b9bff; }
.bucket--save { border-color: #c99c47; }
.bucket span { display: block; font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.bucket b { display: block; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 900; margin: 4px 0; font-variant-numeric: tabular-nums; }
.bucket small { color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }

.split-year { margin: 18px 0 0; text-align: center; font-size: 1.0625rem; color: var(--muted); }
.split-year b { color: var(--ink); }

.calc-visual--chart { flex-direction: column; align-items: stretch; height: 320px; gap: 12px; }

.growth-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 8px 4px 0;
  border-bottom: 2px solid #e6ebf3;
  direction: ltr;
}

.growth-bar {
  flex: 1;
  height: var(--h);
  min-height: 3px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(to top, #bcd5ff 0 var(--dep), var(--blue) var(--dep) 100%);
  transition: height 0.4s var(--ease-out);
}

.growth-legend { display: flex; justify-content: center; gap: 18px; font-size: 0.8125rem; color: var(--muted); }
.growth-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: middle; }
.lg-dep::before { background: #bcd5ff; }
.lg-growth::before { background: var(--blue); }

.tool-h2 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); font-weight: 800; margin: 34px 0 10px; color: var(--ink); }

.tool-article { max-width: 760px; margin: 0 auto; }
.tool-article p { font-size: 1.0625rem; line-height: 1.85; color: #3c4560; margin: 0 0 14px; }
.tool-note { font-size: 0.875rem !important; color: var(--muted) !important; background: var(--blue-tint); border-radius: 12px; padding: 12px 16px; }

.tool-faq { max-width: 820px; margin: 40px auto 0; }
.tool-related { max-width: 820px; margin: 48px auto 0; }

.tool-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.tool-card {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid rgba(26, 109, 255, 0.1);
  border-radius: 20px;
  padding: 20px 22px 20px 52px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(10, 87, 224, 0.05);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}

.tool-card:hover { transform: translateY(-3px); border-color: rgba(26, 109, 255, 0.35); box-shadow: 0 18px 44px rgba(10, 87, 224, 0.12); }
.tool-card b { display: block; font-size: 1.125rem; font-weight: 800; margin-bottom: 4px; }
.tool-card span { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.tool-card i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 1.25rem; color: var(--blue); }

.tool-hub { max-width: 1000px; margin: clamp(40px, 6vw, 70px) auto 0; }
.tool-cards--hub { grid-template-columns: repeat(3, 1fr); }
.tool-card--big { padding: 30px 26px 56px; min-height: 170px; }
.tool-card--big b { font-size: 1.375rem; }
.tool-card--big i { top: auto; bottom: 20px; transform: none; }
.tool-hub-note { text-align: center; color: var(--muted); margin-top: 22px; }

@media (max-width: 900px) {
  .split-buckets { grid-template-columns: 1fr; }
  .tool-cards, .tool-cards--hub { grid-template-columns: 1fr; }
  .calc-visual--chart { height: 220px; order: 0; }
}
