/* FinanKids landing: 1:1 static replica of get.finankidz.com (Bubble).
   Every value is measured from the live page (see docs/SPEC.md and tools/measure.mjs).
   Mobile-first. Bubble "> N" rules flip at min-width N+1 (391, 577, 769, 993, 1201); "< N" rules flip at min-width N
   (380, 390, 430: measured on live, e.g. the stats gap is 10px at exactly 380). */

/* FONTS:BEGIN (generated by tools/fetch-fonts.py; the same woff2 files Google Fonts serves) */
/* Noto Sans Hebrew 600 hebrew */
@font-face {font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('assets/fonts/noto-sans-hebrew-600-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* Noto Sans Hebrew 600 latin */
@font-face {font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('assets/fonts/noto-sans-hebrew-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Poppins 400 latin */
@font-face {font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/poppins-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Poppins 600 latin */
@font-face {font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Roboto 900 latin */
@font-face {font-family: 'Roboto';
  font-style: normal;
  font-weight: 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('assets/fonts/roboto-900-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Secular One 400 hebrew */
@font-face {font-family: 'Secular One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/secular-one-400-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* Secular One 400 latin */
@font-face {font-family: 'Secular One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/secular-one-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* FONTS:END */

:root {
  --green: #00B856;
  --purple: #8C56F8;
  --yellow: #FFC800;
  --star: #FACC29;
  --slate: #525C7A;
  --slate-70: rgba(82, 92, 122, 0.7);
  --navy: #0F286B;
  --gray-500: #8A8A8A;
  --gray-400: #A6A6A6;
  --gray-300: #C7C7C7;
  --gray-200: #E6E6E6;
  --surface-muted: #EDF0F3;
  --ink: #1A1A1A;
  --charcoal: #363436;
  --header-btn-shadow: rgb(30, 108, 48);
  --font-default: "Secular One", "Noto Sans Hebrew", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { direction: rtl; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-default);
  font-size: 16px;
  line-height: 1;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-weight: inherit; font-size: inherit; }

.green { color: var(--green); }
.yellow { color: var(--yellow); }

/* ============ HEADER (Top_NavaBar): fixed, 80px ============ */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  height: 80px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 2px var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand block (header + footer): "FinanKids" over the tagline */
.brand { display: flex; flex-direction: column; text-align: center; }
.brand-name {
  align-self: flex-end;          /* live: the wordmark hugs the block's LEFT edge (matters at 577-992, where the tagline is wider) */
  font-family: Roboto, sans-serif;
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
  color: var(--green);
  padding: 0 10px;
  white-space: pre;
}
.brand-tagline {
  font-family: "Noto Sans Hebrew", sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  color: var(--charcoal);
}
@media (min-width: 577px) { .brand-name { padding: 0; } }
@media (min-width: 993px) { .brand-name { font-size: 36px; } }
/* fixed mode (SPEC B11): wordmark centered over the tagline at every width */
[data-replica="fixed"] .brand-name { align-self: center; }

/* Header button "להורדה": 3D shadow, icon LEFT of label */
.header-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 44px;
  padding: 0 16px;
  margin-left: 4px;
  border-radius: 16px;
  background: var(--green);
  box-shadow: 0 5px 0 var(--header-btn-shadow);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  transition: background .2s ease;
}
.header-cta .icon { width: 20px; height: 20px; fill: currentColor; }
@media (min-width: 993px) { .header-cta { padding: 0 20px; } }

/* ============ HERO ============ */
.hero {
  margin-top: 93px;              /* hero top edge: y=93 below 396px, y=77 from 396 up (SPEC §3.1) */
  padding: 42px 24px 20px;
  background: linear-gradient(to bottom, #FFFFFF, rgba(170, 170, 170, 0.2));
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
/* Not one of the Bubble breakpoints: live's stray SEO-title text node (396px wide at 16px Helvetica) fits on one line from here */
@media (min-width: 396px)  { .hero { margin-top: 77px; } }
@media (min-width: 1201px) { .hero { padding: 18px; } }

.hero-title { text-align: center; color: var(--green); line-height: 1; }
.hero-title span { display: block; white-space: pre; }
.hero-l1, .hero-l3 { font-size: 36px; font-weight: 500; letter-spacing: -1px; }
.hero-l2 { font-size: 46px; font-weight: 900; letter-spacing: -2px; }
@media (min-width: 769px) {
  .hero-l1, .hero-l3 { font-size: 54px; }
  .hero-l2 { font-size: 75px; }
}

picture { display: contents; }
.hero-img {
  width: 100%;
  min-width: 320px;
  max-width: 500px;
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: 4px;
  object-fit: fill;
}

.hero-sub-group { margin: 12px 0; text-align: center; }
.hero-sub {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.5px;
  color: var(--slate);
  white-space: pre-line;
}
.hero-sub strong { font-weight: 700; color: var(--green); }
.hero-sub2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.5px;
  color: var(--green);
}
@media (min-width: 391px) {
  .hero-sub { font-size: 20px; }
  .hero-sub2 { font-size: 22px; }
}

/* Whole CTA block is one link (Bubble "Group X") */
.hero-cta-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.store-badges {
  width: 260px;
  height: 40px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.store-badges img { width: 120px; height: 120px; border-radius: 4px; flex: 0 0 auto; }

.hero-cta {
  width: 100%;
  max-width: 768px;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 99px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .2s ease;
}
.hero-cta .icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }

/* fixed mode (SPEC B8): the QR block Bubble keeps hidden, shown under the CTA on desktop so visitors can install */
.hero-qr { display: none; }
@media (min-width: 993px) {
  [data-replica="fixed"] .hero-qr {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--slate);
    font-size: 16px;
    line-height: 1.4;
    text-align: right;
  }
  [data-replica="fixed"] .hero-qr img { width: 100px; height: 100px; border-radius: 8px; box-shadow: 0 0 8px rgba(0, 0, 0, 0.1); }
  [data-replica="fixed"] .hero-qr strong { display: block; font-weight: 700; color: var(--green); }
}

/* ============ LOGOS STRIP (RG Logos) ============ */
.logos {
  width: 340px;
  max-width: 340px;
  height: 100px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.logos::-webkit-scrollbar { display: none; }
.logos img { width: 100px; height: 100px; flex: 0 0 auto; object-fit: contain; border-radius: 4px; }
@media (min-width: 577px) { .logos { width: 400px; max-width: 100%; } }
/* fixed mode (SPEC B4): below 400px scale the logos to 80px so all four fit without a swipe */
@media (max-width: 399px) {
  [data-replica="fixed"] .logos { width: 320px; height: 80px; overflow: visible; }
  [data-replica="fixed"] .logos img { width: 80px; height: 80px; }
}

/* ============ CONTAINER A ============ */
.container {
  width: calc(100% - 16px);
  max-width: 992px;
  margin: 0 auto;
  padding: 0 16px 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 32px;
}
@media (min-width: 993px) { .container { padding: 0 32px 16px; } }

/* ---- Stats tiles (Group Trust) ---- */
.stats { display: flex; justify-content: center; gap: 8px; }
@media (min-width: 380px) { .stats { gap: 10px; } }
.stat {
  flex: 1 1 0;
  min-height: 60px;
  padding: 20px 14px;
  border-radius: 16px;
  background: var(--surface-muted);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}
@media (min-width: 1201px) { .stat { padding: 18px; } }
.stat-num { font-size: 36px; font-weight: 600; line-height: 1; color: var(--green); }
.stat-label { font-size: 18px; line-height: 1; color: var(--slate); }

/* ---- "למה הורים בוחרים בפיננקידס" ---- */
.why-title {
  align-self: center;
  width: fit-content;
  min-width: 200px;
  max-width: 100%;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--purple);
  text-align: center;
}

/* ---- Benefits card (Group Plan premium) ---- */
.member-card {
  align-self: center;
  width: 300px;
  min-width: 300px;
  max-width: 340px;
  padding: 28px 24px;
  border: 3px solid var(--purple);
  border-radius: 20px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
@media (min-width: 390px) { .member-card { padding: 28px; } }
.member-body { display: flex; flex-direction: column; gap: 8px; }
.member-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.member-titles { display: flex; flex-direction: column; text-align: right; }
.member-name { font-size: 22px; font-weight: 600; line-height: 1; color: var(--purple); }
.member-sub { font-family: Poppins, sans-serif; font-size: 14px; line-height: 1.5; color: var(--gray-500); }
.member-icon { position: relative; width: 40px; height: 40px; flex: 0 0 40px; color: var(--purple); }
.member-icon .hex { position: absolute; inset: 0; width: 40px; height: 40px; fill: currentColor; }
.member-icon .glyph { position: absolute; left: 12px; top: 12px; width: 16px; height: 16px; fill: currentColor; }
.benefit { display: flex; align-items: center; gap: 4px; }
.benefit-text { font-size: 16px; line-height: 1.4; color: var(--ink); text-align: right; }
.benefit.green .benefit-text { color: var(--green); }
.check {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.4em;
  font-size: 16px;
  color: var(--green);
  background: #fff;
  border-radius: 8px;
}
.check svg { width: 1em; height: 1em; fill: currentColor; }
.check.lg { font-size: 18px; }

/* ---- Compare header ---- */
.compare-head {
  align-self: center;
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.compare-title { font-size: 36px; font-weight: 700; line-height: 1; letter-spacing: -1px; color: var(--purple); }
.compare-title > span { display: block; }
.compare-sub { max-width: 672px; font-size: 16px; line-height: 1.5; color: var(--gray-500); }

/* ---- Compare columns (RG notifications) ---- */
.compare { display: flex; justify-content: center; gap: 20px; max-height: 220px; }
.compare-strip {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: row-reverse;   /* + direction:ltr => first DOM child (today) sits on the RIGHT */
  direction: ltr;                /* and the scroll origin matches Bubble's LTR layout */
  justify-content: flex-start;   /* row-reverse => main-start is the RIGHT edge: content hugs it, overflow spills LEFT (unreachable, SPEC B3) */
  overflow-x: auto;
  scrollbar-width: none;
}
.compare-strip::-webkit-scrollbar { display: none; }
.compare-col {
  direction: rtl;
  flex: 0 0 auto;
  margin: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 14px;
}
.compare-col.fk { background: rgba(255, 200, 0, 0.4); }
.ncard {
  min-width: 280px;
  height: 64px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
@media (min-width: 430px) { .ncard { min-width: 300px; } }
.ncard-row { display: flex; align-items: center; gap: 8px; height: 40px; }
.avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 2px 2px 4px #AAAAAA;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: fill; }
.fk .avatar { border-radius: 8px; }
.ncard-text { display: flex; flex-direction: column; text-align: right; }
.ncard-title { font-size: 16px; font-weight: 600; line-height: 1; letter-spacing: -1px; color: var(--slate); white-space: pre; }
.ncard-sub { font-size: 14px; line-height: 1.5; color: var(--gray-500); white-space: pre; }

/* fixed mode (SPEC B3): stack the columns below 650px, "today" first */
@media (max-width: 649px) {
  [data-replica="fixed"] .compare { max-height: none; }
  [data-replica="fixed"] .compare-strip { flex-direction: column; align-items: center; overflow: visible; }
}

/* ---- How it works ---- */
.how {
  padding: 16px;
  border-radius: 20px;
  background: var(--surface-muted);
  box-shadow: 0 6px 0 var(--gray-300);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
@media (min-width: 390px)  { .how { padding: 24px; } }
@media (min-width: 1201px) { .how { padding: 18px; } }
.how-title {
  min-width: 200px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -1px;
  color: var(--green);
  text-align: center;
}
@media (min-width: 391px) { .how-title { font-size: 22px; } }
@media (min-width: 769px) { .how-title { font-size: 36px; } }
.how-body { width: 100%; }
.how-steps {
  margin-right: 24px;
  min-width: 200px;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.5px;
  color: var(--slate-70);
  text-align: right;
  list-style: none;
}
@media (min-width: 391px) { .how-steps { line-height: 1.5; letter-spacing: 0; } }

/* ---- Testimonials ---- */
.testimonials { padding: 0 16px; display: flex; flex-direction: column; align-items: center; }
.testi-head { width: fit-content; max-width: 100%; margin-bottom: 32px; text-align: center; }
.testi-title { font-size: 36px; font-weight: 700; line-height: 1.4; letter-spacing: -1px; color: var(--purple); }
.testi-sub { max-width: 672px; font-size: 16px; line-height: 1.5; color: var(--gray-500); }
.testi-grid { width: 100%; max-width: 896px; display: flex; flex-direction: column; gap: 24px; }
.testi-card {
  padding: 28px;
  border: 3px solid var(--purple);
  border-radius: 16px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  text-align: right;
}
.testi-who { margin-bottom: 16px; }
.testi-name { font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--navy); }
.testi-role { font-size: 14px; line-height: 1.4; color: var(--purple); }
.testi-quote { margin-bottom: 16px; font-size: 16px; line-height: 1.5; color: var(--slate); }
.testi-stars { display: flex; }
.testi-stars span { width: 30px; height: 30px; padding: 5px; display: block; color: var(--star); }
.testi-stars svg { width: 20px; height: 20px; fill: currentColor; }

/* ---- FAQ (Group Q&A) ---- */
.faq {
  padding: 0 0 16px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
@media (min-width: 1201px) { .faq { padding: 18px; } }
.faq { scroll-margin-top: 96px; }   /* clears the fixed 80px header when the footer link jumps here */
.faq-title {
  width: fit-content;
  max-width: 100%;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -1px;
  color: var(--purple);
  text-align: center;
}
@media (min-width: 993px) { .faq-title { font-size: 54px; } }
.faq-list { width: 100%; display: flex; flex-direction: column; }
.faq-item { padding-top: 6px; }
.faq-item:first-child { padding-top: 0; }
.faq-q {
  width: 100%;
  display: flex;
  flex-direction: row-reverse;   /* text first in DOM, chevron lands on its RIGHT and wraps below on narrow screens */
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.faq-q-text { font-size: 20px; font-weight: 500; line-height: 1.4; letter-spacing: -1px; color: var(--slate); }
.faq-icon {
  width: 20px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: transform .3s ease, color .5s;
}
.faq-icon svg { width: 20px; height: 20px; fill: currentColor; }
.faq-a-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-a-wrap > div { overflow: hidden; }
.faq-a {
  margin: 6px 0;
  padding: 0 16px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--slate-70);
  text-align: center;
  white-space: pre-line;
}
.faq-item.open .faq-a-wrap { grid-template-rows: 1fr; }
[data-replica="fixed"] .faq-item.open .faq-icon { transform: rotate(180deg); }   /* SPEC B1 */

/* ============ FOOTER ============ */
.site-footer { padding: 20px 8px; display: flex; flex-direction: column; }
.footer-row { display: flex; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 4px 12px; justify-content: space-between; }
.footer-col { display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 577px) { .footer-col { gap: 8px; } }
.footer-col a { font-size: 14px; line-height: 1.5; color: var(--gray-500); text-align: right; white-space: pre; transition: color .2s; }
.footer-col a.faq-link { line-height: 1.4; }
.footer-col a:hover { color: var(--ink); }
.footer-copy {
  display: none;
  flex: 1 1 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--gray-300);
  text-align: center;
  white-space: pre-line;
}
.footer-copy-mobile { margin-top: 20px; font-size: 14px; line-height: 1.4; color: var(--gray-300); text-align: center; }
@media (min-width: 577px) {
  .footer-copy { display: block; }
  .footer-copy-mobile { display: none; }
}
.footer-social { margin-top: 4px; display: flex; justify-content: center; gap: 16px; }
.footer-social a { height: 21px; display: flex; align-items: center; color: var(--green); }
.footer-social svg { height: 14px; fill: currentColor; }
.footer-social .i-fb { width: 9px; }
.footer-social .i-ig { width: 12px; }

/* ============ MOTION ============ */
/* faithful mode: the live page's Velocity motion (SPEC §5), kept as the 1:1 reference. */
[data-replica="faithful"].js .hero:not(.is-in) { opacity: 0; }
[data-replica="faithful"].js .hero.is-in { opacity: 1; animation: expandIn 700ms ease 100ms both; }
@keyframes expandIn {
  from { opacity: 0; transform: scale(0.625); }
  to   { opacity: 1; transform: scale(1); }
}
[data-replica="faithful"].js .hero-cta { animation: tada 5s ease-in-out 1.2s infinite; }
@keyframes tada {
  0%   { transform: scale(1) rotate(0); }
  2%   { transform: scale(0.9) rotate(-3deg); }
  4%   { transform: scale(1.1) rotate(3deg); }
  6%   { transform: scale(1.1) rotate(-3deg); }
  8%   { transform: scale(1.1) rotate(3deg); }
  10%  { transform: scale(1.1) rotate(-3deg); }
  12%  { transform: scale(1.1) rotate(3deg); }
  14%  { transform: scale(1.1) rotate(-3deg); }
  16%  { transform: scale(1.1) rotate(3deg); }
  18%  { transform: scale(1.1) rotate(-3deg); }
  20%, 100% { transform: scale(1) rotate(0); }
}

/* fixed mode (SPEC B12): three compositor-only animations (transform/opacity), no JS, nothing hidden that the visitor
   needs on the first frame. The live hero expand-in kept the whole first screen invisible for ~0.3s and unreadable for
   ~1s on a 4x-throttled phone, and blank for good if script.js failed; the tada looped forever. */
[data-replica="fixed"] .hero-cta { position: relative; overflow: hidden; isolation: isolate; }
[data-replica="fixed"] .hero-cta::after {           /* the "coin shine" sheen, parked off the left edge at rest */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 40%;
  background: linear-gradient(100deg, transparent 15%, rgba(255, 255, 255, 0.55) 50%, transparent 85%);
  transform: translateX(-10%);
  pointer-events: none;
}
[data-replica="fixed"] .header-cta { transition: background .2s ease, transform .12s ease, box-shadow .12s ease; }
[data-replica="fixed"] .hero-cta { transition: background .2s ease, transform .12s ease; }
[data-replica="fixed"] .header-cta:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--header-btn-shadow); }
[data-replica="fixed"] .hero-cta-block:active .hero-cta { transform: scale(0.97); }
[data-replica="fixed"] a:focus-visible, [data-replica="fixed"] button:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  /* 1. Headline rise: the three lines settle into place, staggered. The photo (the LCP element) and CTA are never hidden. */
  [data-replica="fixed"] .hero-title span { animation: fk-rise 440ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  [data-replica="fixed"] .hero-title .hero-l2 { animation-delay: 60ms; }
  [data-replica="fixed"] .hero-title .hero-l3 { animation-delay: 120ms; }

  /* 2. Coin shine: a sheen crosses the CTA right-to-left (Hebrew reading direction) twice, then stops, all motion done
        within 4s of load (WCAG 2.2.2). It replays once on hover / keyboard focus. */
  [data-replica="fixed"] .hero-cta::after { animation: fk-shine 2.4s cubic-bezier(0.4, 0, 0.2, 1) 0.6s 2 both; }
  [data-replica="fixed"] .hero-cta-block:hover .hero-cta::after,
  [data-replica="fixed"] .hero-cta-block:focus-visible .hero-cta::after { animation: fk-shine-once 0.9s cubic-bezier(0.4, 0, 0.2, 1) both; }

  /* 3. Notification pop-in: the compare cards arrive like push notifications as the section scrolls in, the kids'
        demands first, then the FinanKids answers. Scroll-driven CSS; browsers without it just show the cards. */
  @supports (animation-timeline: view()) {
    [data-replica="fixed"] .compare { view-timeline: --fk-compare block; }
    [data-replica="fixed"] .ncard { animation: fk-pop linear both; animation-timeline: --fk-compare; }
    [data-replica="fixed"] .today .ncard:nth-child(1) { animation-range: entry 0% entry 45%; }
    [data-replica="fixed"] .today .ncard:nth-child(2) { animation-range: entry 10% entry 55%; }
    [data-replica="fixed"] .today .ncard:nth-child(3) { animation-range: entry 20% entry 65%; }
    [data-replica="fixed"] .fk .ncard:nth-child(1)    { animation-range: entry 40% entry 85%; }
    [data-replica="fixed"] .fk .ncard:nth-child(2)    { animation-range: entry 50% entry 95%; }
    [data-replica="fixed"] .fk .ncard:nth-child(3)    { animation-range: entry 60% entry 100%; }
    /* stacked on phones (B3): each card has its own row, so each follows its own position in the viewport */
    @media (max-width: 649px) {
      [data-replica="fixed"] .today .ncard,
      [data-replica="fixed"] .fk .ncard { animation-timeline: view(); animation-range: entry 10% entry 90%; }
    }
  }
}
@keyframes fk-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fk-shine { 0% { transform: translateX(360%); } 40%, 100% { transform: translateX(-10%); } }
@keyframes fk-shine-once { from { transform: translateX(360%); } to { transform: translateX(-10%); } }
@keyframes fk-pop {
  from { opacity: 0; transform: translateY(16px) scale(0.94); animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-replica="faithful"].js .hero:not(.is-in) { opacity: 1; }
  [data-replica="faithful"].js .hero.is-in, [data-replica="faithful"].js .hero-cta { animation: none; }
  .faq-a-wrap, .faq-icon, .header-cta, .hero-cta { transition: none; }
}

/* ============ ACCESSIBILITY (SPEC B13) ============ */
/* IS 5568 / WCAG 2.0 AA. The default look is the brand's; "ניגודיות גבוהה" switches every text color to an AA palette
   (WCAG technique G174 for 1.4.3). Values are the lightest shade of each brand hue that clears 4.5:1 on its worst
   background (white, #EDF0F3 tiles, the hero gradient, the yellow compare column). */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 1200;
  padding: 10px 16px;
  border-radius: 12px;
  background: #7C4CDB;
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; outline: 3px solid #1A1A1A; outline-offset: 2px; }
main:focus { outline: none; }

/* collapsed FAQ answers leave the accessibility tree too (they were only clipped visually) */
.faq-a-wrap { visibility: hidden; transition: grid-template-rows .3s ease, visibility 0s linear .3s; }
.faq-item.open .faq-a-wrap { visibility: visible; transition: grid-template-rows .3s ease, visibility 0s; }

.footer-a11y { display: none; }
[data-replica="fixed"] .footer-a11y { display: inline; }
.footer-a11y a { color: var(--slate); text-decoration: underline; text-underline-offset: 3px; }
.footer-copy-mobile .footer-a11y { display: none; }
[data-replica="fixed"] .footer-copy-mobile .footer-a11y { display: block; margin-top: 6px; }

/* --- high contrast (AA palette) --- */
html[data-a11y-contrast] {
  --green: #007B3A;
  --purple: #7C4CDB;
  --yellow: #836700;
  --slate-70: #525C7A;
  --gray-500: #6A6A6A;
  --gray-400: #6A6A6A;
  --gray-300: #6A6A6A;
  --header-btn-shadow: #00471F;
}
/* --- highlighted links --- */
html[data-a11y-links] a:not(.a11y-link) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px !important; }
html[data-a11y-links] .header-cta, html[data-a11y-links] .hero-cta, html[data-a11y-links] .stat { outline: 3px solid var(--ink); outline-offset: 2px; }
/* --- readable font --- */
html[data-a11y-font] body, html[data-a11y-font] body :not(svg):not(path):not(use) { font-family: Arial, "Noto Sans Hebrew", sans-serif !important; letter-spacing: 0 !important; }
/* --- stop animations --- */
html[data-a11y-motion] *, html[data-a11y-motion] *::before, html[data-a11y-motion] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
/* --- bigger text: content scales, lines that never wrapped are allowed to --- */
html[data-a11y-text="115"] main, html[data-a11y-text="115"] .site-footer { zoom: 1.15; }
html[data-a11y-text="130"] main, html[data-a11y-text="130"] .site-footer { zoom: 1.3; }
html[data-a11y-text] .hero-title span, html[data-a11y-text] .ncard-title, html[data-a11y-text] .ncard-sub,
html[data-a11y-text] .footer-col a, html[data-a11y-text] .brand-name { white-space: normal; }
html[data-a11y-text] .ncard { min-width: 0; height: auto; }
html[data-a11y-text] .compare { max-height: none; }
html[data-a11y-text] .compare-strip { flex-direction: column; align-items: stretch; overflow: visible; }
html[data-a11y-text] .hero-img { min-width: 0; }
/* blocks with fixed widths shrink with the enlarged text instead of pushing it off screen */
html[data-a11y-text] .member-card { width: auto; min-width: 0; }
html[data-a11y-text] .logos { width: auto; max-width: 100%; height: auto; flex-wrap: wrap; justify-content: center; overflow: visible; }
html[data-a11y-text] .store-badges { width: auto; gap: 8px; }
html[data-a11y-text] .store-badges img { width: 104px; height: 104px; }
html[data-a11y-text] .member-head { flex-wrap: wrap; gap: 8px; }
html[data-a11y-text] .footer-row, html[data-a11y-text] .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px 24px; }
html[data-a11y-text] .stat { min-width: 0; }
html[data-a11y-text] .how-steps { min-width: 0; margin-right: 0; }
html[data-a11y-text] .faq-q-text, html[data-a11y-text] .testi-quote, html[data-a11y-text] .compare-sub { overflow-wrap: anywhere; }
/* --- big cursor --- */
html[data-a11y-cursor], html[data-a11y-cursor] * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M4 2l26 20-12 2 7 13-5 2-7-13-9 8z' fill='%231A1A1A' stroke='%23fff' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto !important;
}
html[data-a11y-cursor] a, html[data-a11y-cursor] a *, html[data-a11y-cursor] button, html[data-a11y-cursor] button * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M4 2l26 20-12 2 7 13-5 2-7-13-9 8z' fill='%237C4CDB' stroke='%23fff' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, pointer !important;
}

/* --- the menu: FinanKids purple, the header button's 3D bottom edge, the benefits card's frame --- */
.a11y-trigger {
  margin-inline-start: auto;      /* RTL: pushes itself and the download button to the left edge; the download button keeps its place */
  margin-left: 10px;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #7C4CDB;
  color: #fff;
  box-shadow: 0 5px 0 #4B2A99;
  transition: transform .12s ease, box-shadow .12s ease;
}
.a11y-trigger svg { width: 28px; height: 28px; fill: currentColor; }
.a11y-trigger:active, .a11y-trigger[aria-expanded="true"] { transform: translateY(3px); box-shadow: 0 2px 0 #4B2A99; }
.a11y-trigger:focus-visible, .a11y-panel :focus-visible { outline: 3px solid #1A1A1A; outline-offset: 3px; }
@media (max-width: 359px) { .a11y-trigger { width: 38px; height: 38px; flex-basis: 38px; margin-left: 6px; } .a11y-trigger svg { width: 24px; height: 24px; } }

.a11y-panel {
  position: fixed;
  left: 14px;
  top: 90px;
  z-index: 1100;
  width: min(340px, calc(100vw - 28px));
  max-height: calc(100dvh - 104px);
  overflow-y: auto;
  padding: 20px;
  border: 3px solid #7C4CDB;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(28, 16, 64, 0.18);
  color: #1A1A1A;
  font-family: var(--font-default);
  text-align: right;
  zoom: 1 !important;
}
.a11y-panel[hidden] { display: none; }
@media (min-width: 769px) { .a11y-panel { left: 20px; } }
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.a11y-title { font-size: 22px; line-height: 1.2; font-weight: 600; color: #7C4CDB; }
.a11y-lead { margin-bottom: 14px; font-size: 14px; line-height: 1.4; color: #525C7A; }
.a11y-close {
  width: 36px; height: 36px; flex: 0 0 36px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: #EDF0F3;
  color: #1A1A1A;
}
.a11y-close svg { width: 18px; height: 18px; fill: currentColor; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-opt {
  position: relative;
  min-height: 84px;
  padding: 12px 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: #EDF0F3;
  color: #1A1A1A;
  font-size: 15px;
  line-height: 1.25;
  text-align: center;
  transition: background .15s ease, border-color .15s ease;
}
.a11y-opt svg { width: 26px; height: 26px; fill: #525C7A; }
.a11y-opt:hover { background: #E3E7EC; }
.a11y-opt[aria-pressed="true"] { background: #E3F5EB; border-color: #007B3A; color: #00552A; }
.a11y-opt[aria-pressed="true"] svg { fill: #007B3A; }
.a11y-opt[aria-pressed="true"]::after {           /* a check badge: state is shown by shape, not only by color */
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #007B3A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath fill='%23fff' d='M382-208 122-468l90-90 170 170 366-366 90 90-456 456Z'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.a11y-level { font-size: 12px; line-height: 1; color: #525C7A; }
.a11y-opt[aria-pressed="true"] .a11y-level { color: #00552A; }
.a11y-foot { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a11y-reset {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 99px;
  background: #007B3A;
  color: #fff;
  font-size: 15px;
  box-shadow: 0 3px 0 #00471F;
}
.a11y-reset:active { transform: translateY(2px); box-shadow: 0 1px 0 #00471F; }
.a11y-link { font-size: 15px; color: #525C7A; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .a11y-trigger, .a11y-opt { transition: none; } }
@media print { .a11y-trigger, .a11y-panel, .skip-link { display: none !important; } }

/* ---- accessibility statement page (accessibility.html) ---- */
/* no original to match here, so the AA palette is the default */
body.statement-page { --green: #007B3A; --purple: #7C4CDB; --yellow: #836700; --slate-70: #525C7A; --gray-500: #6A6A6A; --gray-400: #6A6A6A; --gray-300: #6A6A6A; }
.statement-page .brand { text-decoration: none; }
.statement-page .brand-name { align-self: center; }
.statement-home {
  height: 44px;
  padding: 0 16px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  border-radius: 16px;
  background: #007B3A;
  box-shadow: 0 5px 0 #00471F;
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
}
.statement {
  max-width: 720px;
  margin: 0 auto;
  padding: 112px 20px 48px;
  color: #1A1A1A;
  font-size: 17px;
  line-height: 1.7;
}
.statement h1 { margin-bottom: 16px; font-size: 36px; line-height: 1.2; font-weight: 700; letter-spacing: -1px; color: #7C4CDB; text-wrap: balance; }
.statement h2 { margin: 36px 0 10px; font-size: 24px; line-height: 1.3; font-weight: 700; color: #007B3A; text-wrap: balance; }
.statement p { margin-bottom: 12px; }
.statement ul { margin: 0 0 12px; padding-right: 22px; }
.statement li { margin-bottom: 6px; }
.statement li::marker { color: #007B3A; }
.statement kbd { padding: 1px 6px; border: 1px solid #C7C7C7; border-bottom-width: 3px; border-radius: 6px; background: #F6F7F9; font-family: Arial, sans-serif; font-size: 14px; }
.statement-contact { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 16px; padding: 18px 20px; border: 3px solid #7C4CDB; border-radius: 16px; }
.statement-contact dt { color: #525C7A; }
.statement-contact dd { margin: 0; }
.statement-contact a { color: #7C4CDB; text-decoration: underline; text-underline-offset: 3px; }
.statement mark.todo { padding: 0 4px; border-radius: 4px; background: #FFE58A; color: #1A1A1A; }
.statement-date { margin-top: 28px; color: #525C7A; font-size: 15px; }
.statement-footer { padding: 20px; text-align: center; color: #525C7A; font-size: 14px; border-top: 1px solid #E6E6E6; }
