
:root{--bg:#f3ecdd;--ink:#2b2a20;--sec:#6f6551;--muted:#8a7d63;
 --cyan:#c08a2d;--blue:#2f7d6b;--violet:#a35d6a;--magenta:#b06a72;--ok:#12b981;--amber:#f59e0b;
 --grad:linear-gradient(115deg,var(--cyan),var(--blue),var(--violet));
 --card:#ffffff;--card2:#f4ede0;--border:#e8ddc7;--border-2:#efe7d7;
 --shadow:0 18px 46px rgba(90,70,40,.14);--shadow-sm:0 6px 18px rgba(90,70,40,.10);--radius:20px;--maxw:1160px}
*{box-sizing:border-box;margin:0;padding:0}html{scroll-behavior:smooth}
a{color:inherit;text-decoration:none}
body{font-family:'Open Sans',system-ui,"Segoe UI",sans-serif;color:var(--ink);line-height:1.6;
 background:var(--bg);min-height:100vh;position:relative;overflow-x:hidden;-webkit-font-smoothing:antialiased}
body::before{content:"";position:fixed;inset:0;z-index:-2;background:
 radial-gradient(900px 640px at 50% -10%,#f8f1e2 0%,#f5eee0 45%,var(--bg) 75%),
 radial-gradient(620px 460px at 88% 8%,rgba(163,93,106,.10),transparent 60%),
 radial-gradient(620px 480px at 8% 16%,rgba(192,138,45,.12),transparent 60%),
 radial-gradient(520px 420px at 78% 92%,rgba(176,106,114,.08),transparent 60%)}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
.grad{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
::selection{background:rgba(47,125,107,.25)}
::-webkit-scrollbar{width:11px;height:11px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#d8cbb0;border-radius:99px;border:3px solid var(--bg)}
::-webkit-scrollbar-thumb:hover{background:#c3b491}
.nav{position:sticky;top:0;z-index:100;-webkit-backdrop-filter:saturate(150%) blur(14px);backdrop-filter:saturate(150%) blur(14px);
 background:rgba(252,249,240,.82);border-bottom:1px solid var(--border)}
.nav::before{content:"";display:block;height:3px;background:var(--grad)}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;height:66px;gap:12px}
.logo{font-weight:900;font-size:23px;color:var(--ink);flex:none}
/* a universal back button - the site was top-bar-only with no way to step back */
.navback{display:none;flex:none;align-items:center;justify-content:center;width:34px;height:34px;
 border-radius:999px;border:1px solid var(--border);background:#fff;color:var(--sec);cursor:pointer;
 font-size:19px;line-height:1;font-family:inherit;transition:color .15s,border-color .15s,background .15s}
.navback:hover{color:var(--blue);border-color:var(--blue);background:rgba(47,125,107,.06)}
.navback.show{display:inline-flex}
.nav-links{display:flex;gap:7px;align-items:center;font-weight:600;font-size:14px;flex-wrap:wrap;justify-content:flex-end}
.nav-links a{color:var(--sec);transition:color .18s,background .18s;white-space:nowrap;padding:7px 11px;border-radius:999px}
.nav-links a:hover{color:var(--blue);background:rgba(47,125,107,.08)}
.nav-links a.on{color:#2f7d6b;background:rgba(47,125,107,.13)}
/* grouped dropdown menus */
.navdrop{position:relative}
.navdrop-btn{display:flex;align-items:center;gap:5px;background:none;border:0;cursor:pointer;font-family:inherit;
 color:var(--sec);font-weight:600;font-size:14px;padding:7px 11px;border-radius:999px;transition:color .18s,background .18s;white-space:nowrap}
.navdrop-btn:hover{color:var(--blue);background:rgba(47,125,107,.08)}
.navdrop-btn.on{color:#2f7d6b;background:rgba(47,125,107,.13)}
.navdrop-caret{font-size:10px;transition:transform .18s}
.navdrop.open .navdrop-caret{transform:rotate(180deg)}
.navdrop-panel{position:absolute;top:calc(100% + 8px);inset-inline-start:0;min-width:196px;background:#fff;
 border:1px solid var(--border);border-radius:14px;box-shadow:0 22px 55px rgba(60,45,25,.22);padding:7px;display:none;z-index:130}
.navdrop.open .navdrop-panel{display:block}
.navdrop-panel::before{content:"";position:absolute;top:-8px;right:0;left:0;height:8px}
.navdrop-item{display:block;padding:10px 13px;border-radius:9px;color:var(--sec)!important;font-size:14px;white-space:nowrap}
.navdrop-item:hover{background:var(--card2);color:var(--ink)!important}
.navdrop-item.on{background:rgba(47,125,107,.1);color:#2f7d6b!important;font-weight:700}
@media(min-width:921px){ .navdrop:hover .navdrop-panel{display:block} .navdrop:hover .navdrop-caret{transform:rotate(180deg)} }
.cta{color:#fff!important;padding:10px 20px;border-radius:999px;font-weight:700;
 background:linear-gradient(115deg,var(--cyan),var(--violet));box-shadow:0 8px 22px rgba(47,125,107,.35)}
.navtoggle{display:none;background:#fff;border:1px solid var(--border);color:var(--ink);
 border-radius:10px;padding:7px 13px;font-size:19px;cursor:pointer;line-height:1}
@media(max-width:920px){
 .navtoggle{display:block}
 /* the open menu is absolutely positioned INSIDE the sticky bar, so it rides
    along with it: with the 11-item learning wheel expanded it ran to ~1100px on
    a ~660px phone screen, a thumb-swipe scrolled the PAGE behind it and the
    bottom items (+ the search and account controls) could never be reached.
    The menu is now its own scroller, capped at the screen height (dvh follows
    Safari's collapsing toolbar); overscroll-behavior keeps the swipe inside it. */
 .nav-links{position:absolute;top:70px;right:0;left:0;flex-direction:column;align-items:stretch;
  background:rgba(252,249,240,.98);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-bottom:1px solid var(--border);box-shadow:var(--shadow-sm);
  padding:10px 24px 16px;gap:2px;display:none;z-index:120;flex-wrap:nowrap;justify-content:flex-start;
  max-height:calc(100vh - 70px);max-height:calc(100dvh - 70px);overflow-x:hidden;overflow-y:auto;
  -webkit-overflow-scrolling:touch;overscroll-behavior:contain}
 .nav-links.open{display:flex}
 .nav-links a{padding:12px 6px;border-bottom:1px solid var(--border-2);font-size:16px;border-radius:0}
 .nav-links a:last-child{border-bottom:0}
 /* dropdowns become inline accordions inside the mobile menu */
 .navdrop{width:100%}
 .navdrop-btn{width:100%;justify-content:space-between;padding:12px 6px;font-size:16px;border-radius:0;border-bottom:1px solid var(--border-2)}
 .navdrop-panel{position:static;box-shadow:none;border:0;border-radius:0;padding:0 14px;background:rgba(244,237,224,.6)}
 .navdrop-item{border-bottom:1px solid var(--border-2)}}
/* ---- touch targets ----------------------------------------------------
   On a phone every control needs a ~44px hit area (Apple/WCAG 2.5.5). A pile
   of ours measured 15-37px: the drawer ✕, the back "→", the brand link, the
   hamburger, and the small text CTAs (".crumbs a", ".dg-skip"). The VISUAL
   size stays as designed - only the tappable box grows, via padding.
   NOTE: grow these with PADDING, never by turning them into flex containers.
   .logo is "AI<span>LS</span>" - as a flex box its two children become separate
   flex items and RTL lays them out reversed, so the brand read "LSAI". Padding
   has no such side effect. */
@media(pointer:coarse){
 .navback{width:44px;height:44px}
 .navtoggle{min-width:44px;min-height:44px;padding:11px 13px}
 .logo{display:inline-block;padding-block:6px}
 .crumbs a,.dg-skip,.taplink{display:inline-block;padding-block:12px}
 .nav-links a{min-height:44px;display:flex;align-items:center}
 /* iOS Safari ZOOMS the whole page the moment a focused control's font-size is
    under 16px, then leaves the student on a horizontally-scrolled page they did
    not ask for (/account password 13px, /review backlog inputs 14px, and every
    14px form field on the site). 16px on touch devices only - desktop
    typography is untouched. !important because the page-level rules that set
    13-14px are all more specific than a bare element selector. */
 input,select,textarea,input[type=password],input[type=email],input[type=text],
 input[type=search],input[type=number],input[type=tel],input[type=date]{font-size:16px!important}
 /* a footer link was a ~30px hit area - under the 44px minimum touch target.
    Padding (not height) so the block layout and RTL direction stay put. */
 footer a{padding:11px 0;min-height:44px;display:flex;align-items:center}
 footer .bot a{display:inline-flex}
}
/* the fixed install bar used to sit ON TOP of the page (the /capture dropzone,
   the /account referral card, the podcast + diagnostic footers). While it is
   shown the body reserves its height instead. */
body.pwabar-on{padding-bottom:96px}
main{padding:52px 0 80px}
/* section tab strip - glues sibling pages (ניהול אישי / הפורטל) into one unit */
.sectabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:20px}
.sectab{padding:8px 16px;border-radius:999px;border:1px solid var(--border);background:#fff;
 font-size:13.5px;font-weight:600;color:var(--sec);transition:color .18s,border-color .18s,background .18s}
.sectab:hover{color:#2f7d6b;border-color:rgba(47,125,107,.4)}
.sectab.on{background:rgba(47,125,107,.13);color:#2f7d6b;border-color:rgba(47,125,107,.4);font-weight:700}
@media(max-width:760px){.sectabs{gap:5px}.sectab{padding:7px 12px;font-size:12.5px}}
h1{font-size:44px;font-weight:800;line-height:1.15;margin-bottom:16px;letter-spacing:-.5px;color:var(--ink);position:relative;padding-bottom:14px}
h1::after{content:"";position:absolute;bottom:0;inset-inline-start:2px;width:64px;height:5px;border-radius:99px;background:var(--grad)}
h2{font-size:26px;font-weight:700;margin:8px 0 18px;color:var(--ink)}
.lead{color:var(--sec);font-size:18px;max-width:680px;margin-bottom:26px}
.eyebrow{display:inline-flex;align-items:center;gap:7px;color:#2f7d6b;font-weight:800;font-size:12.5px;letter-spacing:.6px;
 background:linear-gradient(115deg,rgba(192,138,45,.12),rgba(163,93,106,.12));border:1px solid rgba(47,125,107,.25);
 border-radius:99px;padding:6px 15px;margin-bottom:18px}
.eyebrow::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--grad)}
.btn{display:inline-block;padding:14px 28px;border-radius:14px;font-weight:800;font-size:15px;
 background:linear-gradient(115deg,var(--cyan),var(--blue));color:#fff;box-shadow:0 12px 28px rgba(47,125,107,.32);
 transition:transform .18s,box-shadow .18s,filter .18s}
.btn:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(47,125,107,.42);filter:brightness(1.05)}
.btn:active{transform:translateY(0)}
.btn.ghost{background:#fff;color:var(--ink);border:1px solid var(--border);box-shadow:var(--shadow-sm)}
.btn.ghost:hover{border-color:var(--blue);color:#2f7d6b;box-shadow:var(--shadow-sm);filter:none}
.grid{display:grid;gap:18px}.g3{grid-template-columns:repeat(3,1fr)}.g2{grid-template-columns:repeat(2,1fr)}
.g4{grid-template-columns:repeat(4,1fr)}
@media(max-width:880px){.g3,.g2{grid-template-columns:1fr}.g4{grid-template-columns:repeat(2,1fr)}h1{font-size:32px}}
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:22px;
 box-shadow:var(--shadow-sm);transition:transform .2s,box-shadow .2s,border-color .2s;position:relative;overflow:hidden}
.card::before{content:"";position:absolute;top:0;right:0;left:0;height:3px;background:var(--grad);opacity:0;transition:opacity .2s}
.card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#cdd9ee}
.card:hover::before{opacity:1}
.card .ico{font-size:26px;margin-bottom:10px}
.card h3{font-size:18px;font-weight:700;margin-bottom:6px;color:var(--ink)}
.card p{color:var(--sec);font-size:14px}
.tag{display:inline-block;margin-top:10px;color:var(--blue);font-size:12.5px;
 background:rgba(47,125,107,.10);border-radius:8px;padding:3px 9px}
.prose{max-width:760px}.prose p{color:var(--sec);margin:12px 0}.prose h2{color:var(--ink);margin-top:26px}
.prose ul{color:var(--sec);padding-right:22px;margin:10px 0}.prose li{margin:6px 0}
.crumbs{color:var(--muted);font-size:13px;margin-bottom:18px}.crumbs a{color:var(--blue)}
.lesson-video{position:relative;width:100%;padding-top:56.25%;border-radius:16px;overflow:hidden;
 border:1px solid var(--border);background:#000;margin:16px 0}
.lesson-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.vposter{position:absolute;inset:0;width:100%;height:100%;border:0;cursor:pointer;z-index:2;
 background-color:#000;background-position:center;background-repeat:no-repeat;background-size:contain;
 display:flex;align-items:center;justify-content:center;padding:0}
.vplay{width:72px;height:72px;border-radius:50%;background:rgba(20,14,4,.68);color:#fff;font-size:24px;
 display:flex;align-items:center;justify-content:center;border:2px solid rgba(255,255,255,.9);
 padding-inline-start:5px;transition:transform .15s}
.vposter:hover .vplay{transform:scale(1.08)}
.lesson-video-empty{aspect-ratio:16/9;width:100%;border-radius:16px;border:1px solid var(--border);
 background:var(--card2);display:flex;align-items:center;justify-content:center;color:var(--muted);margin:16px 0}
.files a{display:flex;align-items:center;gap:10px;background:var(--card2);border:1px solid var(--border);
 border-radius:12px;padding:12px 16px;margin:8px 0;color:var(--ink)}.files a:hover{border-color:var(--blue)}
/* progress meter */
.meter{background:#e6edf9;border:1px solid var(--border);border-radius:99px;height:14px;overflow:hidden;margin:10px 0}
.meter > i{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,var(--cyan),var(--blue),var(--violet));
 background-size:200% 100%;animation:meterflow 4s linear infinite;transition:width .5s}
@keyframes meterflow{to{background-position:-200% 0}}
.meter-row{display:flex;align-items:center;gap:14px;max-width:560px}
.meter-row b{font-size:22px;font-weight:800;white-space:nowrap;color:var(--ink)}
.toggle{cursor:pointer;border:1px solid var(--border);background:#fff;color:var(--ink);
 border-radius:10px;padding:7px 13px;font-family:inherit;font-weight:600;font-size:13px;margin-top:12px;transition:.2s}
.toggle:hover{border-color:var(--blue)}
.toggle.on{background:rgba(18,185,129,.12);border-color:var(--ok);color:#0e8f63}
.done-badge{position:absolute;top:14px;left:14px;width:24px;height:24px;border-radius:50%;
 background:var(--ok);color:#fff;display:none;align-items:center;justify-content:center;font-weight:900;font-size:13px}
.card.done .done-badge{display:flex}.card.done{border-color:rgba(18,185,129,.45)}
/* pricing */
.price{font-size:40px;font-weight:900;color:var(--ink)}.price small{font-size:15px;color:var(--muted);font-weight:500}
.plan{background:var(--card);border:1px solid rgba(47,125,107,.3);border-radius:var(--radius);padding:30px;max-width:420px;box-shadow:var(--shadow)}
.plan ul{list-style:none;margin:16px 0}.plan li{color:var(--sec);padding:7px 0;padding-right:26px;position:relative}
.plan li::before{content:"✓";position:absolute;right:0;color:var(--ok);font-weight:900}
/* steps */
.step{display:flex;gap:14px;align-items:flex-start}.step .n{flex:none;width:34px;height:34px;border-radius:50%;
 background:linear-gradient(115deg,var(--cyan),var(--violet));color:#fff;font-weight:900;display:flex;align-items:center;justify-content:center}
/* footer */
footer{border-top:1px solid var(--border);padding:46px 0 30px;color:var(--sec);font-size:14px;margin-top:50px;
 background:linear-gradient(180deg,#fff,#f4f8ff);position:relative}
footer::before{content:"";position:absolute;top:-1px;right:0;left:0;height:3px;background:var(--grad);opacity:.6}
footer .cols{display:flex;justify-content:space-between;flex-wrap:wrap;gap:26px;margin-bottom:24px}
footer h4{color:var(--ink);font-size:15px;margin-bottom:10px}
footer a{display:block;color:var(--sec);padding:4px 0}footer a:hover{color:var(--blue)}
footer .bot{border-top:1px solid var(--border-2);padding-top:18px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}
/* floating helpers */
.fab{position:fixed;bottom:24px;width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;
 box-shadow:0 12px 28px rgba(90,70,40,.28);cursor:pointer;z-index:200;border:0;transition:transform .2s}
.fab:hover{transform:scale(1.06)}
.fab-wa{right:24px;background:#25d366}.fab-wa svg{width:32px;height:32px}
.fab-help{left:24px;background:linear-gradient(115deg,var(--cyan),var(--violet));font-size:26px;color:#fff;padding:0}
.fab-help .alice-face{width:40px;height:40px;border-radius:50%;box-shadow:0 0 0 2px rgba(255,255,255,.7)}
.alice-id{display:flex;align-items:center;gap:9px}
.alice-id .alice-face{width:30px;height:30px;border-radius:50%;box-shadow:0 0 0 2px rgba(163,93,106,.35)}
.helpbox{position:fixed;bottom:92px;left:24px;width:340px;max-width:calc(100vw - 40px);height:440px;max-height:70vh;
 background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow);z-index:200;
 display:none;flex-direction:column;overflow:hidden}
.helpbox.open{display:flex}
.helphead{padding:14px 16px;font-weight:700;color:var(--ink);background:rgba(47,125,107,.1);border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}
.helphead span{cursor:pointer;color:var(--muted)}
.helplog{flex:1;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:9px}
.hm{max-width:88%;padding:9px 12px;border-radius:13px;font-size:14px;line-height:1.5;white-space:pre-wrap}
.hm.me{align-self:flex-start;background:#e7efff;color:var(--ink)}.hm.ai{align-self:flex-end;background:#fff;border:1px solid var(--border);color:var(--ink)}
.hm a{color:var(--blue);text-decoration:underline}
.helpchips{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.helpchips a{font-size:12px;background:rgba(47,125,107,.1);border:1px solid rgba(47,125,107,.25);border-radius:8px;padding:4px 9px;color:var(--blue)}
.helpform{display:flex;gap:6px;padding:10px;border-top:1px solid var(--border)}
.helpform input{flex:1;padding:10px;border-radius:10px;border:1px solid var(--border);background:var(--card2);color:var(--ink);font-family:inherit}
.helpform button{padding:10px 14px;border:0;border-radius:10px;background:linear-gradient(115deg,var(--cyan),var(--blue));color:#fff;font-weight:800;cursor:pointer}
/* ===== guide components (rich, informative guides) ===== */
.guide{max-width:820px}
.guide h2{color:var(--ink);font-size:24px;margin:34px 0 12px;padding-top:8px}
.guide h3{color:var(--ink);font-size:18px;margin:22px 0 8px}
.guide p{color:var(--sec);margin:11px 0;font-size:15.5px;line-height:1.75}
.guide ul,.guide ol{color:var(--sec);padding-inline-start:22px;margin:10px 0}.guide li{margin:7px 0;line-height:1.7}
.guide code{background:rgba(47,125,107,.1);border:1px solid rgba(47,125,107,.2);border-radius:6px;padding:2px 7px;font-size:13.5px;color:#2b57c9}
.glead{font-size:18.5px!important;color:#3f5170!important;line-height:1.75;border-inline-start:3px solid var(--cyan);padding-inline-start:16px;margin:6px 0 22px!important}
/* callouts */
.cal{border-radius:14px;padding:15px 18px;margin:18px 0;border:1px solid var(--border);display:flex;gap:12px;align-items:flex-start;line-height:1.65}
.cal .ci{font-size:22px;flex:none;line-height:1.2}.cal p{margin:0!important;color:#3f5170!important}
.cal.tip{background:rgba(192,138,45,.09);border-color:rgba(192,138,45,.3)}
.cal.ok{background:rgba(18,185,129,.1);border-color:rgba(18,185,129,.32)}
.cal.warn{background:rgba(245,158,11,.12);border-color:rgba(245,158,11,.35)}
.cal.note{background:rgba(163,93,106,.1);border-color:rgba(163,93,106,.3)}
/* step process */
.steps{display:flex;flex-direction:column;gap:12px;margin:18px 0}
.stp{display:flex;gap:14px;align-items:flex-start;background:var(--card);border:1px solid var(--border);border-radius:14px;padding:15px 17px;box-shadow:var(--shadow-sm)}
.stp .n{flex:none;width:34px;height:34px;border-radius:50%;background:linear-gradient(115deg,var(--cyan),var(--violet));color:#fff;font-weight:900;display:flex;align-items:center;justify-content:center}
.stp b{color:var(--ink);font-size:15.5px}.stp p{margin:4px 0 0!important;font-size:14.5px}
/* stat highlights */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:20px 0}
@media(max-width:640px){.stats{grid-template-columns:1fr}}
.stat{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:18px;text-align:center;box-shadow:var(--shadow-sm)}
.stat b{display:block;font-size:30px;font-weight:900;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.stat span{color:var(--muted);font-size:13.5px}
/* comparison table */
.gtable{width:100%;border-collapse:collapse;margin:18px 0;font-size:14.5px;border-radius:12px;overflow:hidden;border:1px solid var(--border);background:var(--card)}
.gtable th,.gtable td{padding:12px 14px;text-align:start;border-bottom:1px solid var(--border-2)}
.gtable th{background:rgba(47,125,107,.1);color:var(--ink);font-weight:700}
.gtable tr:last-child td{border-bottom:0}.gtable td{color:var(--sec)}
/* flow diagram */
.flow{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:20px 0;justify-content:center}
.flow .node{background:var(--card);border:1px solid rgba(47,125,107,.3);border-radius:12px;padding:12px 16px;font-weight:600;color:var(--ink);text-align:center;font-size:14px;box-shadow:var(--shadow-sm)}
.flow .ar{color:var(--blue);font-size:20px;animation:flowpulse 1.8s infinite}
@keyframes flowpulse{0%,100%{opacity:.4;transform:translateX(0)}50%{opacity:1;transform:translateX(-4px)}}
/* do / dont */
.dodont{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0}
@media(max-width:640px){.dodont{grid-template-columns:1fr}}
.dodont>div{border-radius:14px;padding:16px;border:1px solid var(--border)}
.dodont .do{background:rgba(18,185,129,.09);border-color:rgba(18,185,129,.3)}
.dodont .dont{background:rgba(239,68,68,.08);border-color:rgba(239,68,68,.28)}
.dodont h4{color:var(--ink);margin-bottom:8px}.dodont ul{margin:0;color:var(--sec)}
/* accordion */
.acc{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:14px 16px;margin:10px 0;box-shadow:var(--shadow-sm)}
.acc summary{cursor:pointer;font-weight:700;color:var(--ink);font-size:15px}
.acc p{margin:10px 0 0!important}
/* figure + svg diagram (kept as a dark tile so the light-inked SVGs stay legible) */
.gfig{background:#14213b;border:1px solid #24334f;border-radius:16px;padding:20px;margin:20px 0;text-align:center}
.gfig svg{max-width:100%;height:auto}.gfig figcaption{color:#93a1bd;font-size:13px;margin-top:10px}
/* scroll reveal */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}
/* ---- accessibility WIDGET (the Israeli-standard floating panel) ---- */
.a11y-btn{position:fixed;top:44%;inset-inline-end:14px;z-index:220;width:48px;height:48px;border:0;cursor:pointer;
  border-radius:50%;background:linear-gradient(135deg,#1456d0,#2f7bff);color:#fff;display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 22px rgba(20,86,208,.38);transition:transform .15s,box-shadow .15s}
.a11y-btn svg{width:26px;height:26px}
.a11y-btn:hover{transform:scale(1.08);box-shadow:0 10px 26px rgba(20,86,208,.48)}
/* focus-mode: any page can add this to <body> while the student is mid-question
   (timed or not) to hide the floating site widgets on mobile, where they sit
   at a fixed screen position and land on top of answer buttons. First used by
   the English drill/simulation; toggle via body.classList.add/remove. */
@media(max-width:760px){body.focus-mode .a11y-btn,body.focus-mode .fab{display:none!important}}
.a11y-panel{position:fixed;top:20%;inset-inline-end:66px;z-index:221;width:280px;max-width:calc(100vw - 70px);
  background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:0 24px 70px rgba(60,45,25,.35);
  display:none;overflow:hidden}
.a11y-panel.open{display:block}
.a11y-head{background:#1456d0;color:#fff;padding:12px 16px;font-weight:800;display:flex;justify-content:space-between;align-items:center}
.a11y-head button{background:none;border:0;color:#fff;font-size:16px;cursor:pointer}
.a11y-body{padding:10px;max-height:60vh;overflow:auto}
.a11y-opt{display:flex;align-items:center;gap:10px;width:100%;background:none;border:1px solid var(--border);
  border-radius:10px;padding:10px 12px;margin:5px 0;cursor:pointer;font-family:inherit;font-size:14px;color:var(--ink);text-align:start}
.a11y-opt:hover{background:var(--card2)}
.a11y-opt.on{background:rgba(20,86,208,.1);border-color:#1456d0;font-weight:700}
.a11y-opt .st{margin-inline-start:auto;font-size:11px;color:#1456d0;font-weight:800}
.a11y-foot{padding:10px 14px;border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;font-size:12.5px}
.a11y-foot a{color:#1456d0}
/* applied modes */
body.a11y-fs1{zoom:1.12} body.a11y-fs2{zoom:1.25} body.a11y-fs3{zoom:1.4}
body.a11y-contrast{filter:invert(1) hue-rotate(180deg);background:#fff}
body.a11y-contrast img,body.a11y-contrast video,body.a11y-contrast iframe,body.a11y-contrast .alice-face,body.a11y-contrast svg{filter:invert(1) hue-rotate(180deg)}
body.a11y-gray{filter:grayscale(1)}
body.a11y-contrast.a11y-gray{filter:invert(1) hue-rotate(180deg) grayscale(1)}
body.a11y-links a{text-decoration:underline!important;font-weight:700!important;color:#0d3fa0!important;background:rgba(255,238,0,.35)}
body.a11y-font,body.a11y-font *{font-family:Arial,Helvetica,sans-serif!important;letter-spacing:.4px;word-spacing:2px;line-height:1.8!important}
body.a11y-noanim *,body.a11y-noanim *::before,body.a11y-noanim *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
body.a11y-focus :is(a,button,input,select,textarea):focus{outline:4px solid #ff8f00!important;outline-offset:3px!important}
body.a11y-cursor,body.a11y-cursor *{cursor:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="44" height="44" viewBox="0 0 24 24"><path d="M4 2 L20 12 L12 13.5 L15.5 21 L12.8 22 L9.5 14.5 L4 19 Z" fill="black" stroke="white" stroke-width="1.4"/></svg>') 4 2, auto!important}
/* ---- accessibility (ת"י 5568 / WCAG 2.x AA) ---- */
.skiplink{position:absolute;top:-60px;inset-inline-start:10px;background:var(--ink);color:#fff;
  padding:10px 18px;border-radius:0 0 10px 10px;z-index:200;font-weight:700;text-decoration:none;transition:top .15s}
.skiplink:focus{top:0}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:4px}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
  .reveal{opacity:1!important;transform:none!important}
}
/* review nudge toast - the brain's gentle recommendation */
.rectoast{position:fixed;bottom:24px;left:24px;max-width:340px;background:var(--card);border:1px solid var(--border);
  border-right:4px solid var(--violet);border-radius:16px;padding:15px 17px;box-shadow:var(--shadow);z-index:70;
  transform:translateY(22px);opacity:0;transition:.35s cubic-bezier(.2,.8,.3,1);pointer-events:none}
.rectoast.show{transform:none;opacity:1;pointer-events:auto}
.rectoast h5{margin:0 0 7px;color:var(--ink);font-size:14.5px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.rectoast h5 .x{cursor:pointer;color:var(--muted);font-weight:400}
.rectoast p{margin:0 0 11px;color:var(--sec);font-size:13px;line-height:1.65}
.rectoast p b{color:var(--ink)}
.rectoast a{font-size:13px;font-weight:800;color:var(--blue);text-decoration:none}
/* ================= RESPONSIVE / MOBILE HARDENING =================
   The site is RTL, so a SINGLE child wider than the viewport pushes the whole
   document sideways and slices the right edge off every Hebrew heading, button
   and calendar column (what looked like "everything overlaps / not adapted").
   The cure is to stop anything from exceeding the phone's width at the source. */
img,svg,video,canvas,iframe{max-width:100%;height:auto}
@media(max-width:760px){
  .wrap{padding:0 14px}
  main{padding:30px 0 64px}
  h1{font-size:26px;padding-bottom:11px}
  h1::after{width:48px;height:4px}
  h2{font-size:20px}
  .lead{font-size:15.5px}
  .btn{padding:12px 18px;font-size:14px}
  /* THE key fix: no inline fixed width (width:560px / 640px / 1000px ...) may
     exceed the phone. max-width always wins over an inline width, so this caps
     every offender at once without touching the desktop layout. Harmless on the
     min-width:/max-width: substrings it also matches. */
  main [style*="width:"],footer [style*="width:"]{max-width:100%!important}
  /* fixed-width flex rows wrap down instead of shooting off the right edge */
  main [style*="display:flex"]{flex-wrap:wrap}
  /* wide tables scroll inside their own frame rather than stretching the page */
  .gtable{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
  table{max-width:100%}
  .card{padding:16px}
  .plan{padding:22px 20px}
  .g4{grid-template-columns:1fr!important}
  /* keep the floating helpers from stacking on top of each other bottom-corner */
  .fab{width:52px;height:52px;bottom:18px}
  .fab-wa{right:16px}.fab-help{left:16px}
  .helpbox{left:14px;right:14px;width:auto;max-width:none;bottom:82px}
  /* stay glued to the mid-edge on phones too - dropping it to the bottom made it
     land exactly on Alice's floating face (both fought over the bottom-left corner) */
  .a11y-btn{width:42px;height:42px;top:38%;inset-inline-end:10px}
  .a11y-panel{inset-inline-end:58px}
}
@media(max-width:380px){
  .wrap{padding:0 11px}
  h1{font-size:23px}
}

/* ===================== TOUR LAYER ===================== */
#tour-mask{position:fixed;inset:0;z-index:900;display:none}
#tour-mask.on{display:block}
/* the spotlight ring: a transparent box whose huge box-shadow dims everything to a
   clean neutral GRAY, so only the guidance bubble stands out. A quiet thin outline
   (not a loud frame) separates the revealed element from the gray. */
#tour-ring{position:fixed;border-radius:11px;pointer-events:none;
 box-shadow:0 0 0 9999px rgba(41,41,46,.72),0 0 0 1.5px rgba(255,255,255,.55);
 transition:top .3s cubic-bezier(.4,0,.2,1),left .3s cubic-bezier(.4,0,.2,1),
  width .3s cubic-bezier(.4,0,.2,1),height .3s cubic-bezier(.4,0,.2,1)}
#tour-card{position:fixed;width:340px;max-width:calc(100vw - 26px);max-height:calc(100vh - 24px);overflow-x:hidden;overflow-y:auto;
 background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:0 30px 70px rgba(30,20,6,.42);padding:15px 18px 16px;z-index:902;
 transition:top .28s cubic-bezier(.4,0,.2,1),left .28s cubic-bezier(.4,0,.2,1)}
/* a highlighted nav pill lights up solid (so it reads as a real selected button,
   not a hole revealing the cream nav background) */
.tour-lit{background:#fff!important;color:var(--ink)!important;box-shadow:0 3px 12px rgba(40,30,10,.16)!important}
/* section breakdown inside a dropdown-tab card */
#tc-items{display:none;flex-direction:column;gap:6px;margin-top:11px;padding-top:11px;border-top:1px solid var(--border-2)}
#tc-items.on{display:flex}
#tc-items .ti{font-size:12.8px;line-height:1.45;padding-inline-start:14px;position:relative}
#tc-items .ti::before{content:"";position:absolute;inset-inline-start:2px;top:8px;width:5px;height:5px;border-radius:50%;background:var(--grad)}
#tc-items .ti b{color:var(--ink);font-weight:700}
#tc-items .ti span{color:var(--sec)}
.tc-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px}
.tc-count{font-size:11.5px;font-weight:800;color:#2f7d6b;background:rgba(47,125,107,.12);
 border-radius:999px;padding:4px 11px;direction:ltr;letter-spacing:.4px}
#tour-skip{background:none;border:0;color:var(--muted);font-family:inherit;font-size:12.5px;cursor:pointer;font-weight:600;padding:4px 2px}
#tour-skip:hover{color:var(--ink);text-decoration:underline}
#tour-card h4{font-size:18px;font-weight:800;color:var(--ink);margin-bottom:8px;line-height:1.35}
#tour-card p{font-size:14.5px;color:var(--sec);line-height:1.7}
.tc-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px}
.tc-dots{display:flex;gap:5px;flex-wrap:wrap;max-width:135px}
.tc-dots i{width:7px;height:7px;border-radius:50%;background:#e3d8c0;transition:.2s}
.tc-dots i.on{background:var(--blue);transform:scale(1.3)}
.tc-btns{display:flex;gap:8px;align-items:center}
.tbtn{border:0;cursor:pointer;font-family:inherit;font-weight:800;font-size:13.5px;border-radius:11px;padding:10px 18px;transition:.18s}
.tbtn.next{background:linear-gradient(115deg,var(--cyan),var(--blue));color:#fff;box-shadow:0 8px 20px rgba(47,125,107,.32)}
.tbtn.next:hover{transform:translateY(-1px);filter:brightness(1.05)}
.tbtn.back{background:#fff;color:var(--sec);border:1px solid var(--border);padding:10px 14px}
.tbtn.back:hover{border-color:var(--blue);color:var(--blue)}
.tc-arrow{position:absolute;width:15px;height:15px;background:#fff;transform:rotate(45deg);border:1px solid var(--border)}
/* welcome (centered, no target) */
#tour-card.center{left:50%!important;top:50%!important;transform:translate(-50%,-50%);width:400px;text-align:center;padding:26px 26px 20px}
#tour-card.center .welcome-badge{width:64px;height:64px;border-radius:20px;background:linear-gradient(135deg,var(--cyan),var(--violet));
 display:flex;align-items:center;justify-content:center;font-size:32px;margin:4px auto 14px;box-shadow:0 14px 30px rgba(163,93,106,.35)}
#tour-card.center h4{font-size:23px}
#tour-card.center .tc-foot{justify-content:center;margin-top:18px}
#tour-card.center .tc-dots{display:none}
#tour-card.center .tbtn.next{padding:11px 30px;font-size:14.5px}
#tour-card.center .tc-arrow{display:none}
@media(max-width:760px){
 #tour-card{width:calc(100vw - 24px);padding:14px 16px 15px}
 #tour-card.center{width:calc(100vw - 34px)}
 #tour-card h4{font-size:17px}
 .tc-dots{max-width:110px}
 .tbtn{padding:9px 15px}
}
