:root {
  --pink: #9333EA;
  --violet: #6D28D9;
  --violet-deep: #4C1D95;
  --cyan: #82E5FF;
  --grad: linear-gradient(115deg, #8E2DE2 0%, #4A00E0 100%);
  --grad-soft: linear-gradient(115deg, #A855F7 0%, #7C3AED 55%, #4A00E0 100%);
  --cream: #FBF8FE;
  --cream-deep: #F3EBFE;
  --ink: #241E3C;
  --muted: #625C7C;
  --line: #E8E0F7;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(76, 29, 149, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Heebo', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-weight: 400;
}
body.bg-cream { background: var(--cream); }
h1, h2, h3, .brand, .price-now { font-family: 'Rubik', sans-serif; color: var(--violet); }
a { color: var(--violet); text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.icon { display: inline-flex; vertical-align: middle; }
.icon svg { width: 1.15em; height: 1.15em; }

/* ---------- header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--violet); font-size: 1.25rem; font-weight: 700; }
.brand-icon { color: var(--pink); }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a { color: var(--ink); font-size: .95rem; }
.site-header nav a:hover { color: var(--pink); }
.nav-user { color: var(--violet); font-size: .9rem; font-weight: 500; }
.nav-minor { opacity: .7; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: 'Heebo', sans-serif;
  font-size: 1rem; font-weight: 500;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-cta {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 6px 22px rgba(124, 58, 237, .35);
  font-weight: 700;
}
.btn-ghost { border-color: var(--violet); color: var(--violet); background: transparent; }
.btn-ghost:hover { background: var(--violet); color: var(--white); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .7); color: var(--white); background: transparent; }
.btn-ghost-light:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-small { padding: 8px 18px; font-size: .9rem; background: var(--grad); color: var(--white); font-weight: 700; }
.btn-big { padding: 15px 36px; font-size: 1.1rem; }
/* על רקע הגרדיאנט הכפתור הראשי הופך ללבן כדי לבלוט */
.price-card .btn-cta, .final-cta .btn-cta, .course-head .btn-cta {
  background: var(--white); color: var(--violet);
  box-shadow: 0 6px 22px rgba(20, 10, 60, .25);
}

/* ---------- hero ---------- */
.hero { background: var(--grad-soft); color: var(--white); padding: 84px 0 96px; }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.hero-kicker { color: var(--cyan); letter-spacing: .06em; font-size: .95rem; margin-bottom: 14px; font-weight: 500; }
.hero h1 { color: var(--white); font-size: 3.4rem; font-weight: 900; line-height: 1.15; margin-bottom: 20px; }
.hero-sub { font-size: 1.2rem; color: rgba(255, 255, 255, .88); max-width: 34em; margin-bottom: 30px; font-weight: 300; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero .btn-cta { background: var(--white); color: var(--violet); box-shadow: 0 6px 22px rgba(20, 10, 60, .25); }
.hero-facts { display: flex; gap: 26px; flex-wrap: wrap; color: rgba(255, 255, 255, .8); font-size: .95rem; }
.hero-facts .icon { color: var(--cyan); margin-inline-end: 6px; }
.hero-card {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius);
  padding: 34px 30px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.nili-circle {
  width: 132px; height: 132px; margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid rgba(255, 255, 255, .8);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.nili-circle svg { width: 100%; height: 100%; display: block; }
.nili-name { font-family: 'Rubik', sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--cyan); }
.nili-role { color: rgba(255, 255, 255, .8); font-size: .95rem; margin-bottom: 18px; }
.nili-quote { font-family: 'Rubik', sans-serif; font-size: 1.1rem; color: var(--white); line-height: 1.8; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-title { font-size: 2.2rem; font-weight: 700; text-align: center; margin-bottom: 14px; }
.section-title.right { text-align: right; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 36px; }

.pain { background: var(--cream); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.15rem; margin-bottom: 12px; line-height: 1.5; color: var(--ink); }
.card p { color: var(--muted); font-size: .98rem; }

.method-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.step { display: flex; gap: 18px; margin-top: 30px; }
.step-num {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad); color: var(--white);
  font-family: 'Rubik', sans-serif; font-size: 1.4rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.25rem; margin-bottom: 6px; }
.step p { color: var(--muted); }
.method-side { background: var(--grad-soft); color: var(--white); border-radius: var(--radius); padding: 32px 28px; }
.method-side h3 { color: var(--cyan); font-size: 1.3rem; margin-bottom: 16px; }
.how-list { list-style: none; }
.how-list li { padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); font-size: .97rem; font-weight: 300; }
.how-list li:last-child { border-bottom: 0; }
.how-list .icon { color: var(--cyan); margin-inline-end: 10px; }

/* ---------- syllabus ---------- */
.syllabus { background: var(--cream); }
.syl-item { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.syl-item summary {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; cursor: pointer; list-style: none;
}
.syl-item summary::-webkit-details-marker { display: none; }
.syl-item[open] summary { border-bottom: 1px solid var(--line); background: var(--cream); }
.syl-num {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  background: var(--cream-deep); color: var(--violet);
  font-family: 'Rubik', sans-serif; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.syl-title { font-weight: 500; flex: 1; }
.syl-meta { color: var(--muted); font-size: .88rem; display: flex; align-items: center; gap: 6px; }
.tag-free { background: var(--pink); color: var(--white); border-radius: 999px; padding: 2px 12px; font-weight: 700; font-size: .8rem; }
.syl-body { padding: 18px 74px 20px 20px; color: var(--muted); }
.syl-body ul { margin-top: 10px; padding-inline-start: 20px; }
.syl-body li { margin: 4px 0; }

/* ---------- pricing ---------- */
.pricing-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.price-card {
  background: var(--grad-soft); color: var(--white);
  border-radius: var(--radius); padding: 40px 36px;
  box-shadow: 0 14px 44px rgba(63, 94, 251, .30);
  text-align: center;
}
.price-kicker { color: var(--cyan); letter-spacing: .08em; margin-bottom: 8px; font-weight: 500; }
.price-row { display: flex; align-items: baseline; justify-content: center; gap: 16px; margin-bottom: 22px; }
.price-row.center { justify-content: center; }
.price-old { color: rgba(255, 255, 255, .55); text-decoration: line-through; font-size: 1.3rem; }
.price-now { color: var(--white); font-size: 3.2rem; font-weight: 900; }
.price-list { list-style: none; text-align: right; margin: 0 auto 26px; max-width: 24em; }
.price-list li { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); font-weight: 300; }
.price-list li:last-child { border-bottom: 0; }
.price-list .icon { color: var(--cyan); margin-inline-end: 10px; }
.price-guarantee { margin-top: 18px; color: rgba(255, 255, 255, .85); font-size: .9rem; }
.price-guarantee .icon { color: var(--cyan); margin-inline-end: 6px; }
.price-side p { color: var(--muted); margin-bottom: 22px; max-width: 30em; }

/* ---------- faq ---------- */
.faq { background: var(--cream); }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 0 20px; }
.faq summary { padding: 16px 0; cursor: pointer; font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding: 0 0 18px; color: var(--muted); }

.final-cta { background: var(--grad-soft); text-align: center; }
.final-cta h2 { color: var(--white); font-size: 2rem; margin-bottom: 26px; }

/* ---------- footer ---------- */
.site-footer { background: #1B1E38; color: #9BA0B8; padding: 34px 0; font-size: .88rem; }
.footer-brand { color: var(--white); margin-bottom: 8px; }
.footer-brand .icon { color: var(--pink); margin-inline-end: 8px; }
.footer-note { max-width: 46em; }

/* ---------- auth ---------- */
.auth { display: flex; justify-content: center; padding: 70px 24px; }
.auth-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 42px 38px; width: 100%; max-width: 460px; text-align: center;
}
.auth-card h1 { font-size: 1.8rem; margin-bottom: 8px; }
.auth-sub { color: var(--muted); margin-bottom: 24px; }
.auth-card form { text-align: right; }
.auth-card label { display: block; margin-bottom: 16px; font-size: .92rem; font-weight: 500; color: var(--ink); }
.auth-card input {
  width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--cream);
}
.auth-card input:focus { outline: none; border-color: var(--violet); background: var(--white); }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-switch { margin-top: 18px; color: var(--muted); font-size: .92rem; }
.auth-switch a { color: var(--pink); font-weight: 500; }
.form-error { background: #FDEFF2; color: #B2274A; border: 1px solid #F6C8D3; border-radius: 10px; padding: 10px 14px; margin-bottom: 18px; font-size: .92rem; }
.dev-note { background: #FFF7E6; color: #7A5A12; border: 1px solid #F0DFAE; border-radius: 10px; padding: 10px 14px; margin-bottom: 18px; font-size: .92rem; }
.code-input { text-align: center; font-size: 1.6rem; letter-spacing: .5em; font-weight: 700; direction: ltr; }
.resend-form { margin-top: 14px; }
.link-btn { background: none; border: none; color: var(--violet); cursor: pointer; font: inherit; font-size: .92rem; text-decoration: underline; }
.try-home-sub { color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.buy-card { max-width: 520px; }
.buy-card .price-list { text-align: right; color: var(--ink); }
.buy-card .price-list li { border-color: var(--line); }
.buy-card .price-list .icon { color: var(--violet); }
.buy-card .price-row .price-now { color: var(--violet); }
.buy-card .price-old { color: var(--muted); }
.pay-box { margin-top: 10px; }
.pay-note { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }

/* ---------- course area ---------- */
.course-head { background: var(--grad-soft); color: var(--white); padding: 54px 0 44px; }
.course-head h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 6px; }
.course-head p { color: rgba(255, 255, 255, .88); margin-bottom: 20px; }
.progress { height: 10px; background: rgba(255, 255, 255, .25); border-radius: 999px; overflow: hidden; max-width: 480px; }
.progress-fill { height: 100%; background: var(--cyan); border-radius: 999px; transition: width .4s ease; }
.progress-label { color: var(--white); font-size: .88rem; margin: 8px 0 18px; }
.upsell { margin-top: 16px; color: rgba(255, 255, 255, .88); font-size: .95rem; }
.upsell a { color: var(--cyan); font-weight: 500; text-decoration: underline; }

.lesson-list { padding: 44px 0 80px; }
.lesson-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 15px 20px; margin-bottom: 10px;
  transition: transform .12s ease, box-shadow .12s ease;
}
a.lesson-row:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.lesson-row.locked { opacity: .55; }
.ls-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ls-icon svg { width: 18px; height: 18px; }
.ls-done { background: var(--violet); color: var(--white); }
.ls-open { background: var(--pink); color: var(--white); }
.ls-locked { background: var(--cream-deep); color: var(--muted); }
.ls-num { color: var(--muted); font-size: .85rem; width: 64px; flex: 0 0 auto; }
.ls-title { font-weight: 500; flex: 1; }
.ls-meta { color: var(--muted); font-size: .85rem; }

/* ---------- lesson page ---------- */
.lesson-view { padding: 46px 0 90px; }
.back-link { color: var(--muted); font-size: .9rem; }
.lesson-header { margin: 18px 0 26px; }
.lesson-tag { color: var(--pink); font-size: .9rem; font-weight: 500; }
.lesson-header h1 { font-size: 2.3rem; margin: 6px 0 10px; }
.lesson-desc { color: var(--muted); max-width: 40em; }
.player { background: var(--grad-soft); border-radius: var(--radius); margin-bottom: 30px; }
.player-placeholder { aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: rgba(255, 255, 255, .85); }
.player-icon { width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, .18); border: 1.5px solid var(--white); color: var(--white); display: flex; align-items: center; justify-content: center; }
.player-icon svg { width: 32px; height: 32px; }
.player-text { color: var(--white); font-family: 'Rubik', sans-serif; font-size: 1.3rem; }
.player-sub { font-size: .92rem; }
.lesson-chapters { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 18px; }
.lesson-chapters h2, .try-home h2 { font-size: 1.25rem; margin-bottom: 12px; }
.lesson-chapters ol { padding-inline-start: 22px; }
.lesson-chapters li { margin: 8px 0; }
.try-home { background: #F6EFFF; border: 1px solid #E3D2F9; border-radius: var(--radius); padding: 26px 28px; margin-bottom: 26px; }
.try-home .icon { color: var(--pink); margin-inline-end: 8px; }
.lesson-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.done-badge { color: var(--violet); font-weight: 500; }
.done-badge .icon { color: var(--pink); margin-inline-end: 6px; }

/* ---------- certificate ---------- */
.cert-wrap { display: flex; justify-content: center; padding: 60px 24px; }
.cert { text-align: center; }
.cert-border {
  background: var(--white); border: 2px solid var(--violet); border-radius: 6px;
  outline: 1px solid var(--line); outline-offset: 8px;
  padding: 60px 70px; max-width: 640px; margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.cert-icon { color: var(--pink); margin-bottom: 10px; }
.cert-icon svg { width: 44px; height: 44px; }
.cert-school { letter-spacing: .14em; color: var(--muted); font-size: .85rem; margin-bottom: 18px; }
.cert h1 { font-size: 2.4rem; margin-bottom: 20px; }
.cert-line { color: var(--muted); }
.cert-name { font-family: 'Rubik', sans-serif; font-size: 2.1rem; font-weight: 700; color: var(--ink); margin: 8px 0; }
.cert-course { font-family: 'Rubik', sans-serif; font-size: 1.5rem; color: var(--pink); margin: 8px 0 18px; }
.cert-details { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.cert-quote { font-family: 'Rubik', sans-serif; font-style: italic; color: var(--violet); }

/* ---------- legal pages ---------- */
.legal-wrap { padding: 56px 0 80px; }
.legal { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 44px 46px; max-width: 820px; }
.legal h1 { font-size: 2rem; margin-bottom: 18px; }
.legal h2 { font-size: 1.2rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink); font-size: .97rem; }
.legal ul { padding-inline-start: 22px; margin: 8px 0; }
.legal a { color: var(--violet); text-decoration: underline; }

/* ---------- footer links ---------- */
.footer-links { margin-top: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #C9C2E8; text-decoration: underline; }

/* ---------- accessibility widget ---------- */
.acc-widget { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 90; }
.acc-toggle {
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--violet); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(76, 29, 149, .35);
}
.acc-toggle svg { width: 28px; height: 28px; }
.acc-panel[hidden] { display: none; }
.acc-panel {
  position: absolute; bottom: 62px; inset-inline-start: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 14px; width: 210px;
  display: flex; flex-direction: column; gap: 6px;
}
.acc-title { font-weight: 700; color: var(--violet); margin-bottom: 4px; }
.acc-panel button {
  text-align: right; background: var(--cream); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; cursor: pointer; font: inherit; font-size: .9rem;
}
.acc-panel button:hover { background: var(--cream-deep); }
.acc-panel .acc-reset { color: #A13333; }
.acc-panel a { font-size: .85rem; color: var(--violet); text-decoration: underline; margin-top: 4px; }

/* מצבי נגישות */
html.acc-font-1 { font-size: 112.5%; }
html.acc-font-2 { font-size: 125%; }
html.acc-contrast { filter: contrast(1.25); }
html.acc-contrast body { background: #fff; }
html.acc-grayscale { filter: grayscale(1); }
html.acc-contrast.acc-grayscale { filter: contrast(1.25) grayscale(1); }
html.acc-links a { text-decoration: underline !important; }
html.acc-motion *, html.acc-motion *::before, html.acc-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

@media print {
  .site-header, .site-footer, .no-print { display: none; }
  .cert-border { box-shadow: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero h1 { font-size: 2.4rem; }
  .hero-inner, .method-inner, .pricing-inner { grid-template-columns: 1fr; gap: 36px; }
  .cards3 { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .cert-border { padding: 40px 26px; }
  .syl-body { padding: 18px 20px; }
  .nav-user { display: none; }
}
