/* אופי לבתי ספר. הצבעים והגופנים הם אלה של אתר המורים (edu-app/web/ofi.css), במצב בהיר בלבד. */

@font-face { font-family: "Assistant"; font-weight: 400 800; font-display: swap;
  src: url(/fonts/assistant-hebrew.woff2) format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Assistant"; font-weight: 400 800; font-display: swap;
  src: url(/fonts/assistant-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Varela Round"; font-weight: 400; font-display: swap;
  src: url(/fonts/varela-round-hebrew.woff2) format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Varela Round"; font-weight: 400; font-display: swap;
  src: url(/fonts/varela-round-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #F2F7FC;
  --surface: #FFFFFF;
  --ink: #16324A;
  --muted: #52708B;
  --faint: #8AA5BC;
  --line: #D8E7F4;
  --line-soft: #E9F2FA;
  --accent: #3E8EDE;
  --accent-deep: #2B6FB4;
  --accent-soft: #DCEBFA;
  --accent-ink: #1B4F87;
  --ok: #1B7F58;
  --ok-soft: #E4F4ED;
  --warn: #A8641A;
  --warn-soft: #FBF0DF;
  --crit: #B03A32;
  --beak: #E8941F;
  --cell-ok: #5DB98D;
  --cell-mid: #EDB458;
  --cell-bad: #D65A4F;
  --r-sm: 8px;
  --r: 13px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(22,50,74,.05), 0 4px 14px rgba(22,50,74,.05);
  --shadow-lift: 0 2px 6px rgba(22,50,74,.08), 0 18px 40px rgba(22,50,74,.12);
  --display: "Varela Round", "Assistant", system-ui, sans-serif;
  --body: "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.65 var(--body); overflow-x: hidden; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.25; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent-deep); }
:focus-visible { outline: 3px solid #8CC1F0; outline-offset: 2px; border-radius: 4px; }
.defs { position: absolute; }
.m { font-family: var(--body); font-weight: 700; unicode-bidi: isolate; white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 28px; } }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); z-index: 10; }
.skip:focus { top: 12px; }

/* כותרת עליונה */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.owl { width: 36px; height: 36px; flex: none; }
.owl--sm { width: 24px; height: 24px; }
.brand__name { font-family: var(--display); font-size: 1.35rem; }
.brand__tag { color: var(--muted); font-size: .95rem; padding-top: 3px; }
.nav { display: none; gap: 22px; margin-inline-start: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--ink); }
.top .btn { margin-inline-start: auto; }
@media (min-width: 960px) { .nav { display: flex; } .top .btn { margin-inline-start: 0; } }

/* כפתורים */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 12px; border: 1.5px solid var(--accent-deep);
  background: var(--accent-deep); color: #fff; font: 700 1.02rem/1 var(--body); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn--ghost { background: transparent; color: var(--accent-ink); border-color: var(--line); background: var(--surface); }
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.btn--light { background: #fff; color: var(--accent-ink); border-color: #fff; }
.btn--light:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.btn--static { pointer-events: none; }

.eyebrow { color: var(--accent-deep); font-weight: 700; font-size: .95rem; margin-bottom: 10px; }
.lead { color: var(--muted); font-size: 1.12rem; }

/* פתיח */
.hero { padding: 48px 0 64px; }
.hero__in { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 6vw, 2.9rem); margin-bottom: 18px; }
.hero h1 .soft { color: var(--accent-deep); }
.hero .lead { max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__visual { margin: 0; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 48px; }
  .hero__in { grid-template-columns: 1.2fr .8fr; gap: 48px; }
  .hero + .band { padding-top: 48px; }
}

.win { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lift); overflow: hidden; max-width: 470px; margin-inline: auto; }
.win__bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); background: var(--bg); color: var(--muted); font-size: .92rem; }
.win__bar b { font-weight: 600; }
.win__body { padding: 18px 16px 20px; display: grid; gap: 12px; }

.bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 1rem; line-height: 1.5; }
.bubble--me, .bubble--kid { justify-self: start; background: var(--accent-soft); color: var(--accent-ink); border-start-start-radius: 4px; }
.bubble--ofi { justify-self: end; background: var(--surface); border: 1px solid var(--line); border-start-end-radius: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .hero .lesson { animation: rise .6s .35s both cubic-bezier(.2,.7,.2,1); }
  .hero .bubble--me { animation: rise .5s .1s both cubic-bezier(.2,.7,.2,1); }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.lesson { width: 100%; max-width: 100%; padding: 16px; }
.lesson__title { font-family: var(--display); font-size: 1.15rem; margin-bottom: 10px; }
.lesson__label { color: var(--muted); font-size: .85rem; font-weight: 700; margin: 12px 0 6px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .97rem; counter-increment: s; }
.steps li:last-child { border-bottom: 0; }
.steps li span::before { content: counter(s) ". "; color: var(--faint); }
.steps i { font-style: normal; color: var(--muted); white-space: nowrap; }
.sheets { display: flex; gap: 8px; flex-wrap: wrap; }
.sheet { padding: 6px 12px; border-radius: 999px; font-size: .9rem; font-weight: 600; }
.sheet::before { content: "דף "; font-weight: 400; }
.sheet--1 { background: var(--ok-soft); color: var(--ok); }
.sheet--2 { background: var(--accent-soft); color: var(--accent-ink); }
.sheet--3 { background: var(--warn-soft); color: var(--warn); }
.saved { margin-top: 14px; color: var(--ok); font-size: .88rem; font-weight: 600; }
.saved::before { content: "✓ "; }

/* מקטעים */
.band { padding: 64px 0; }
.band--white { background: var(--surface); border-block: 1px solid var(--line-soft); }
@media (min-width: 900px) { .band { padding: 96px 0; } }
.sec-head { max-width: 46em; margin-bottom: 8px; }
.sec-head h2, .two h2, .band--accent h2 { font-size: clamp(1.6rem, 4.4vw, 2.3rem); margin-bottom: 14px; }

.row { display: grid; gap: 28px; margin-top: 48px; align-items: center; }
.row__text h3 { font-size: 1.35rem; margin-bottom: 8px; }
.row__text p + h3 { margin-top: 30px; }
.row__text p + p { margin-top: 10px; }
.row__text p { max-width: 36em; }
.row__visual { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .row { grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 72px; }
  .row--flip .row__visual { order: -1; }
}

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px; }
.card__title { font-family: var(--display); font-size: 1.1rem; margin-bottom: 12px; }
.card__note { margin-top: 14px; color: var(--muted); font-size: .92rem; }

.units { list-style: none; margin: 0; padding: 0; }
.units li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.units li:last-child { border-bottom: 0; }
.tag { flex: none; font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--line-soft); color: var(--muted); }
.tag--ok { background: var(--ok-soft); color: var(--ok); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { display: grid; gap: 2px; }
.stat b { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1.1; }
.stat small { font-size: 1rem; color: var(--faint); }
.stat span { color: var(--muted); font-size: .9rem; line-height: 1.3; }
.stat--warn b { color: var(--crit); }
.hard { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .95rem; }
.hard .m { color: var(--ink); }

.map__grid { display: grid; grid-template-columns: minmax(48px, auto) repeat(4, 1fr); gap: 6px; align-items: center; }
.map__h { font-size: .78rem; line-height: 1.2; color: var(--muted); font-weight: 600; text-align: center; align-self: end; padding-bottom: 4px; }
.map__h--hot { color: var(--crit); }
.map__n { font-size: .92rem; }
.c { display: block; height: 24px; border-radius: 6px; }
.c.ok { background: var(--cell-ok); }
.c.mid { background: var(--cell-mid); }
.c.bad { background: var(--cell-bad); }
.map__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; font-size: .88rem; color: var(--muted); }
.legend { display: inline-flex; align-items: center; gap: 6px; }
.legend .c { width: 14px; height: 14px; border-radius: 4px; }
.suggest { flex-basis: 100%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; padding: 8px 12px; border-radius: var(--r-sm); }

.report dl { margin: 0; }
.report dl div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.report dt { color: var(--muted); font-weight: 600; font-size: .92rem; }
.report dd { margin: 0; font-size: .97rem; }
.report__foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.report__foot small { color: var(--muted); font-size: .88rem; }

/* תלמידים */
.two { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .two { grid-template-columns: 1.1fr .9fr; gap: 72px; } }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 28px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--ok-soft); box-shadow: inset 0 0 0 5px var(--ok-soft), inset 0 0 0 16px var(--ok); transform: scale(.75); }
.phone { margin: 0 auto; width: 100%; max-width: 360px; padding: 10px; border-radius: 34px; background: var(--ink); box-shadow: var(--shadow-lift); }
.phone__in { display: grid; gap: 10px; padding: 22px 14px; border-radius: 26px; background: var(--bg); }
.phone .bubble { font-size: .97rem; }

/* לפי גיל */
.ladder { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 16px; }
.rung { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 20px; box-shadow: var(--shadow); }
.rung__grade { font-family: var(--display); font-size: 1.9rem; color: var(--accent-deep); line-height: 1.1; margin-bottom: 8px; }
.rung h3 { font-size: 1.2rem; margin-bottom: 6px; }
.rung p:last-child { color: var(--muted); }
@media (min-width: 820px) {
  .ladder { grid-template-columns: repeat(3, 1fr); align-items: end; }
  .rung:nth-child(1) { min-height: 210px; }
  .rung:nth-child(2) { min-height: 240px; }
  .rung:nth-child(3) { min-height: 270px; }
}
.notes { margin-top: 24px; display: grid; gap: 10px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--accent-soft); color: var(--accent-ink); }
@media (min-width: 820px) { .notes { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* הנהלה */
.grid3 { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 820px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.tile { padding: 22px 20px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line-soft); }
.tile h3 { font-size: 1.2rem; margin-bottom: 8px; }
.tile p { color: var(--muted); }
.aside { margin-top: 24px; color: var(--muted); }

/* יצירת קשר */
.band--accent { background: var(--accent-ink); color: #fff; }
.band--accent .lead { color: #D5E6F7; }
.two--contact { align-items: start; }
.form { display: grid; gap: 14px; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form .full { grid-column: 1 / -1; }
.form .opt { font-weight: 400; color: #BFD6EE; }
.form input, .form select, .form textarea { width: 100%; font: 400 1rem/1.4 var(--body); color: var(--ink); background: #fff; border: 2px solid transparent; border-radius: 10px; padding: 11px 12px; min-height: 48px; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: #8CC1F0; }
.form [aria-invalid="true"] { border-color: #F2A39C; }
.form__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form__status { font-weight: 600; }
.form__status.is-error { color: #FFD0CB; }
.form__privacy { color: #BFD6EE; font-size: .9rem; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form.is-sent .form__foot .btn { display: none; }

.foot { padding: 28px 0 40px; color: var(--muted); }
.foot__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand--foot .owl { width: 28px; height: 28px; }
.brand--foot .brand__name { font-size: 1.1rem; }
