/*
 * Styled after the Alta Web Design System 2.0 (altahq.com): white and indigo-50 grounds, 1px black borders,
 * radius 16 cards / 8 controls / 20 framed sections, black buttons, lilac accents, purple spark, no shadows.
 * Titles are ExtraLight with one Medium key phrase (<em>). Heebo stands in for Poppins (no Hebrew in Poppins),
 * Frank Ruhl Libre for the Domaine serif accents.
 */
:root {
  --black: #000;
  --white: #fff;
  --indigo-50: #eef2ff;
  --lilac-100: #e8daff;
  --lilac-300: #cfb3ff;
  --purple-600: #7c3aed;
  --purple-800: #5b21b6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --green: #27ae60;
  --orange: #e67e22;
  --red: #e74c3c;
  --r-chip: 4px;
  --r-control: 8px;
  --r-card: 16px;
  --r-section: 20px;
  --serif: "Frank Ruhl Libre", "Times New Roman", serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Heebo", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  text-wrap: pretty;
}
h1, h2, h3 { text-wrap: balance; }
img { max-width: 100%; display: block; }
a { color: var(--purple-800); }
.wrap { width: min(1280px, 100% - 48px); margin-inline: auto; }

/* Announcement bar (Alta's purple strip) */
.announce { background: var(--purple-600); text-align: center; padding: 9px 16px; font-size: 14px; }
.announce a { color: var(--white); text-decoration: none; font-weight: 400; }
.announce a:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 19px; color: var(--black); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: var(--r-control); }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--black); text-decoration: none; font-weight: 300; font-size: 16px; }
.nav a:hover { color: var(--purple-800); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* Buttons: black, 48 high, radius 8, light weight; hover purple 800 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--r-control); font-weight: 300; font-size: 16px; text-decoration: none;
  background: var(--black); color: var(--white); border: 1px solid var(--black); cursor: pointer; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--purple-800); border-color: var(--purple-800); }
.nav .btn, .nav .btn:hover { color: var(--white); }
.btn.ghost { background: transparent; color: var(--black); }
.btn.ghost:hover { background: var(--black); color: var(--white); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 176px; min-height: 56px;
  padding: 8px 20px; border-radius: var(--r-control); background: var(--black); color: var(--white); text-decoration: none; line-height: 1.2;
  transition: background .15s;
}
a.store:hover { background: var(--purple-800); }
.store svg { flex: none; }
.store span { display: flex; flex-direction: column; }
.store small { font-size: 12px; font-weight: 300; opacity: .8; }
.store strong { font-size: 18px; font-weight: 500; direction: ltr; text-align: start; }

/* Hero: indigo ground with Alta's faint grid */
.hero {
  padding: 80px 0 72px; overflow: hidden; border-bottom: 1px solid var(--gray-200);
  background-color: var(--indigo-50);
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, .05) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: var(--white); border: 1px solid var(--black); color: var(--black); font-weight: 400; padding: 4px 12px; border-radius: var(--r-chip); font-size: 14px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.15; margin: 20px 0; font-weight: 200; letter-spacing: -0.5px; }
em { font-style: normal; font-weight: 500; }
.hero p.lead { font-size: 20px; font-weight: 300; color: var(--gray-700); margin: 0 0 32px; max-width: 34em; }
.hero-art { position: relative; }
.hero-art .bubble {
  position: absolute; top: 6%; inset-inline-start: -6%; background: var(--white); border: 1px solid var(--black);
  border-radius: var(--r-card); padding: 12px 16px; font-weight: 400; max-width: 240px; font-size: 15px;
  animation: float 4s ease-in-out infinite; z-index: 2;
}
.hero-art img.teacher { border-radius: 50%; background: var(--lilac-300); border: 1px solid var(--black); animation: breathe 5s ease-in-out infinite; }
.trust { display: flex; flex-wrap: wrap; gap: 0; margin-top: 40px; color: var(--gray-700); font-size: 15px; }
.trust > div { padding-inline: 24px; border-inline-start: 1px solid var(--gray-200); }
.trust > div:first-child { padding-inline-start: 0; border: 0; }
.trust b { color: var(--black); font-size: 36px; font-weight: 300; line-height: 1.1; display: block; }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes breathe { 50% { transform: scale(1.02) rotate(-1deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art .bubble, .hero-art img.teacher { animation: none; } }
@media (max-width: 860px) {
  .hero { padding: 48px 0; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 320px; margin-inline: auto; }
  .hero-art .bubble { inset-inline-start: 0; }
  .trust { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .trust > div:nth-child(odd) { padding-inline-start: 0; border: 0; }
  .trust > div { padding-inline: 16px; }
  .trust b { font-size: 30px; }
  .store-badges .store { flex: 1; min-width: 140px; }
}

/* Sections: 80 / 48 padding, backgrounds alternate white and indigo-50 */
section { padding: 80px 0; }
section.alt { background: var(--indigo-50); }
@media (max-width: 720px) { section { padding: 48px 0; } }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-title .kicker { display: block; font-size: 15px; color: var(--gray-700); margin-bottom: 12px; }
.section-title h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.2; margin: 0 0 12px; font-weight: 200; }
.section-title p { color: var(--gray-700); font-weight: 300; font-size: 19px; margin: 0; }
.grid { display: grid; gap: 32px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid { gap: 16px; } .grid.three, .grid.two { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--black); border-radius: var(--r-card); padding: 28px; }
.card h3 { margin: 16px 0 6px; font-size: 22px; font-weight: 400; line-height: 1.35; }
.card p { margin: 0; color: var(--gray-700); }
.icon-dot { width: 48px; height: 48px; border-radius: var(--r-control); display: grid; place-items: center; background: var(--lilac-100); color: var(--black); }
.icon-dot svg { display: block; } /* IBM Carbon icons, black (icon/default) */

/* Promo video: framed like Alta's product showcase */
.promo { position: relative; max-width: 1080px; margin: 0 auto; border: 1px solid var(--black); border-radius: var(--r-section); overflow: hidden; background: var(--indigo-50); }
.promo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.promo-sound { position: absolute; bottom: 16px; inset-inline-start: 16px; min-height: 40px; padding: 0 16px; border-radius: var(--r-control); border: 1px solid var(--black); background: var(--white); color: var(--black); font: inherit; font-size: 15px; font-weight: 400; cursor: pointer; }
.promo-sound:hover { background: var(--black); color: var(--white); }
@media (max-width: 600px) { .promo { border-radius: var(--r-card); } .promo-sound { bottom: 10px; inset-inline-start: 10px; min-height: 34px; font-size: 13px; } }

/* Courses */
.course { border-top: 6px solid var(--c); }
.course .tag { display: inline-block; font-weight: 500; font-size: 13px; padding: 2px 8px; border-radius: var(--r-chip); background: color-mix(in srgb, var(--c) 18%, white); color: var(--black); }

/* Steps: serif numbers (Domaine accent) */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 28px; }
.step::before { counter-increment: step; content: counter(step); display: block; font-family: var(--serif); font-weight: 500; font-size: 64px; line-height: .9; color: var(--black); }

/* Teacher band: lilac, black text */
.band { background: var(--lilac-300); color: var(--black); border: 1px solid var(--black); border-radius: var(--r-section); padding: 56px; display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.band img { width: 180px; border-radius: 50%; background: var(--white); border: 1px solid var(--black); }
.band h2 { margin: 0 0 12px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 200; line-height: 1.2; }
.band p { margin: 0 0 24px; color: var(--black); font-weight: 300; font-size: 19px; }
.band .store-badges { margin-top: 4px; }
@media (max-width: 720px) { .band { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; } .band img { margin-inline: auto; width: 140px; } .band .store-badges { justify-content: center; } }

/* Pricing */
.price { font-size: 40px; font-weight: 300; line-height: 1.2; margin-top: 8px; }
.price small { font-size: 15px; color: var(--gray-500); font-weight: 400; }
.card ul { padding-inline-start: 20px; margin: 16px 0 0; color: var(--gray-700); }
.card.featured { background: var(--lilac-100); position: relative; }
.card.featured::after { content: "הכי משתלם"; position: absolute; top: 20px; inset-inline-end: 20px; background: var(--black); color: var(--white); font-size: 13px; padding: 2px 10px; border-radius: var(--r-chip); }

/* FAQ: rows with dividers */
.faq { border-top: 1px solid var(--black); }
details { border-bottom: 1px solid var(--gray-200); padding: 24px 4px; }
summary { font-weight: 400; font-size: 19px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 200; font-size: 28px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--gray-700); margin: 12px 0 0; }

/* Articles */
.article-card { text-decoration: none; color: inherit; display: block; transition: background .15s; }
.article-card:hover { background: var(--indigo-50); }
.article-card .meta { display: inline-block; font-size: 13px; font-weight: 500; padding: 2px 8px; border-radius: var(--r-chip); background: var(--lilac-100); color: var(--black); }
article.post { max-width: 760px; margin: 0 auto; padding: 56px 0 24px; }
article.post h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.2; margin: 12px 0 16px; font-weight: 200; }
article.post h2 { margin-top: 44px; font-size: 28px; font-weight: 500; }
article.post p, article.post li { color: var(--gray-700); }
article.post .lead { font-size: 20px; font-weight: 300; color: var(--gray-700); }
.callout { background: var(--indigo-50); border-inline-start: 3px solid var(--purple-600); border-radius: var(--r-control); padding: 18px 22px; margin: 28px 0; }
.cta-box { display: flex; gap: 24px; align-items: center; background: var(--lilac-300); border: 1px solid var(--black); border-radius: var(--r-card); padding: 28px; margin: 44px 0; }
.cta-box img { width: 96px; border-radius: 50%; background: var(--white); border: 1px solid var(--black); }
.cta-box h3 { margin: 0 0 6px; font-weight: 400; font-size: 22px; }
.cta-box p { margin: 0 0 14px; color: var(--black); }
@media (max-width: 600px) { .cta-box { flex-direction: column; text-align: center; } }
.disclaimer { font-size: 14px; color: var(--gray-500); border-top: 1px solid var(--gray-200); padding-top: 16px; margin-top: 44px; }

/* Legal */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 0; }
.legal h1 { font-size: 44px; font-weight: 200; margin-bottom: 4px; }
.legal h2 { font-size: 22px; font-weight: 500; margin-top: 32px; }
.legal p, .legal li { color: var(--gray-700); }

/* Footer */
footer { background: var(--black); color: #d4d4d8; padding: 56px 0 32px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer a { color: var(--white); text-decoration: none; font-weight: 300; }
footer a:hover { color: var(--lilac-300); }
footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
footer small { display: block; width: 100%; opacity: .7; border-top: 1px solid #27272a; padding-top: 20px; }

/* SEO pages: page head, breadcrumbs, question cards, sample test */
.page-head { padding: 64px 0 48px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 200; line-height: 1.2; margin: 12px 0 16px; }
.page-head .lead { font-size: 20px; font-weight: 300; color: var(--gray-700); max-width: 46em; }
.crumbs { font-size: 14px; color: var(--gray-500); }
.crumbs a { color: var(--gray-700); text-decoration: none; }
.crumbs a:hover { color: var(--purple-800); }
.qlist { display: grid; gap: 20px; }
.qcard { background: var(--white); border: 1px solid var(--black); border-radius: var(--r-card); padding: 24px 28px; }
.qnum { margin: 0; font-size: 13px; font-weight: 500; color: var(--gray-500); }
.qcard h3 { margin: 6px 0 16px; font-size: 20px; font-weight: 400; line-height: 1.5; }
.qopts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.qopts li { display: flex; gap: 12px; align-items: flex-start; color: var(--gray-700); }
.qletter { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-chip); background: var(--indigo-50); font-weight: 500; font-size: 14px; color: var(--black); }
.qopt { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 10px 12px; border: 1px solid var(--gray-200); border-radius: var(--r-control); color: var(--black); line-height: 1.5; }
.qopt:hover:not(:disabled) { border-color: var(--black); background: var(--indigo-50); }
.qopt:focus-visible { outline: 2px solid var(--purple-600); outline-offset: 2px; }
.qopt.right { background: #dcfce7; border-color: #15803d; }
.qopt.right .qletter { background: #15803d; color: var(--white); }
.qopt.wrong { background: #fee2e2; border-color: #b91c1c; }
.qopt.wrong .qletter { background: #b91c1c; color: var(--white); }
.qopt.dim { opacity: .55; cursor: default; }
.qans { margin-top: 16px; border-top: 1px solid var(--gray-200); padding: 14px 0 0; }
.qans summary { font-size: 15px; font-weight: 400; color: var(--purple-800); }
.qans summary::after { font-size: 22px; }
.qans p { margin: 8px 0 0; color: var(--gray-700); }
.quiz-score { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: var(--r-chip); background: var(--lilac-100); font-size: 15px; }
.topic-card { text-decoration: none; color: inherit; transition: background .15s; }
.topic-card:hover { background: var(--indigo-50); }
.topic-card .meta { display: inline-block; font-size: 13px; font-weight: 500; padding: 2px 8px; border-radius: var(--r-chip); background: var(--lilac-100); }
.topic-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.topic-nav a { color: var(--black); }
.topic-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.topic-chips a { display: inline-block; padding: 10px 18px; border: 1px solid var(--black); border-radius: var(--r-control); background: var(--white); color: var(--black); text-decoration: none; font-size: 16px; }
.topic-chips a:hover { background: var(--black); color: var(--white); }
@media (max-width: 600px) { .qcard { padding: 20px; } .page-head { padding: 40px 0 32px; } }
