[hidden] { display: none !important; }
/*
  Layout concept: product-page rhythm (one idea per full-width band, big type, lots of air, a sticky glass
  header that steps aside while you read), applied to an accounting ledger: paper, forest ink, one clay mark.
*/
:root {
  --bg: #fbf9f4;          /* paper */
  --band: #f2eee4;        /* alternate band */
  --card: #ffffff;
  --ink: #14201b;
  --ink-2: #33423b;
  --muted: #66736d;
  --line: #e4ded1;
  --forest: #173e33;
  --forest-2: #1f5143;
  --forest-ink: #eaf1ec;  /* text on forest */
  --mint: #e4ede5;
  --clay: #b4532a;
  --ok: #2e6b4c;
  --ok-bg: #e8f3ec;
  --warn: #8a5a12;
  --warn-bg: #f8eedb;
  --danger: #a3382a;
  --danger-bg: #f8e6e2;
  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow: 0 1px 2px rgba(20, 32, 27, .05), 0 10px 30px rgba(20, 32, 27, .06);
  --font: 'IBM Plex Sans Arabic', 'IBM Plex Sans Hebrew', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --font-he: 'IBM Plex Sans Hebrew', 'IBM Plex Sans Arabic', 'Arial Hebrew', system-ui, sans-serif;
  --header-h: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.7; font-size: 17px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--forest-2); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.25; color: var(--ink); margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
[lang="he"] { font-family: var(--font-he); }
bdi, .ltr { unicode-bidi: isolate; }
.ltr { direction: ltr; display: inline-block; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--forest); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 30; }
.skip:focus { top: 8px; }

/* ---------- header: glass bar that steps aside while scrolling down ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 249, 244, .8); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(228, 222, 209, .8); transition: transform .35s var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.08rem; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--forest); position: relative; flex: none; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--forest-ink); height: 2px; inset-inline: 6px; border-radius: 2px; }
.brand-mark::before { top: 9px; }
.brand-mark::after { top: 15px; inset-inline-end: 11px; background: var(--clay); }
.nav { display: flex; gap: 2px; align-items: center; margin-inline-start: 8px; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; font-size: .95rem; transition: background .2s, color .2s; }
.nav a:hover { background: rgba(23, 62, 51, .06); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--forest); font-weight: 600; background: rgba(23, 62, 51, .08); }
.header-actions { display: flex; gap: 8px; align-items: center; margin-inline-start: auto; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; position: relative; }
.menu-icon, .menu-icon::before, .menu-icon::after { position: absolute; inset-inline-start: 12px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-icon { top: 21px; }
.menu-icon::before, .menu-icon::after { content: ""; inset-inline-start: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 820px) {
  .menu-btn { display: inline-block; }
  .nav { position: absolute; top: var(--header-h); inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: rgba(251, 249, 244, .97); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px));
    transform-origin: top; transform: scaleY(.96); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a[aria-current="page"] { background: transparent; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 36px 0 calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: .92rem; background: var(--band); }
.footer-grid { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; margin-bottom: 6px; }
.footer-links { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 24px; border-radius: 999px; border: 1.5px solid var(--forest); background: var(--forest); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s, transform .15s var(--ease), box-shadow .2s; }
.btn:hover { background: var(--forest-2); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--forest); }
.btn-ghost:hover { background: rgba(23, 62, 51, .07); }
.btn-clay { background: var(--clay); border-color: var(--clay); }
.btn-clay:hover { background: #9d4622; }
.btn-light { background: #fff; color: var(--forest); border-color: #fff; }
.btn-light:hover { background: var(--mint); }
.btn-large { min-height: 54px; padding: 12px 30px; font-size: 1.05rem; }
.btn-small { min-height: 38px; padding: 6px 16px; font-size: .94rem; }
.text-link { font-weight: 600; color: var(--forest); text-decoration: none; padding: 10px 4px; display: inline-flex; align-items: center; gap: 6px; }
.text-link:hover { text-decoration: underline; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input, select, textarea { font: inherit; width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--forest-2); outline: none; box-shadow: 0 0 0 4px rgba(31, 81, 67, .14); }
.field { margin-bottom: 16px; }
.hint { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.error { color: var(--danger); font-weight: 600; }
.error:empty { display: none; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; accent-color: var(--forest); flex: none; }
.check-label { display: inline-flex; align-items: center; gap: 10px; font-weight: 400; cursor: pointer; min-height: 44px; }
textarea { min-height: 120px; resize: vertical; }

/* ---------- surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.flat { box-shadow: none; }
.stack > * + * { margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.section { padding: 40px 0; }
.page-loading { padding: 80px 0; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; font-size: .84rem; background: var(--mint); color: var(--forest); font-weight: 600; }
.pill-clay { background: #f6e4da; color: var(--clay); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-danger { background: var(--danger-bg); color: var(--danger); }
.page-head { padding: 48px 0 8px; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 40em; }

/* ---------- home: bands ---------- */
.band { padding: clamp(64px, 9vw, 120px) 0; }
.band-alt { background: var(--band); }
.band-dark { background: var(--forest); color: var(--forest-ink); }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.band-title { font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.2; margin: 0; max-width: 18em; }
.band-lead { color: var(--muted); font-size: 1.12rem; max-width: 36em; margin: 12px 0 0; }
.band-dark .band-lead { color: #c7d6cd; }

/* hero */
.hero-x { padding: clamp(48px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); text-align: center; overflow: hidden; }
.hero-kicker { color: var(--muted); font-size: 1.02rem; margin: 0 0 10px; }
.hero-title { font-family: var(--font-he); font-size: clamp(3.1rem, 11vw, 7.6rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0; color: var(--forest); font-weight: 700; }
.hero-sub { font-size: clamp(1.35rem, 3.2vw, 2.1rem); font-weight: 600; color: var(--ink); margin: 14px auto 0; line-height: 1.4; max-width: 20em; }
.hero-lead { color: var(--muted); font-size: 1.1rem; max-width: 34em; margin: 14px auto 0; }
.hero-actions { display: flex; gap: 12px 20px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 28px; }

/* signature: a live journal entry that grades itself */
.ledger { position: relative; max-width: 720px; margin: clamp(40px, 6vw, 64px) auto 0; text-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: 0 30px 80px -30px rgba(23, 62, 51, .35), var(--shadow); overflow: hidden; }
.ledger-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; background: var(--band); border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--muted); flex-wrap: wrap; }
.ledger-top strong { color: var(--ink); font-weight: 600; }
.ledger-body { padding: 20px 22px 22px; }
.ledger-q { font-size: 1.08rem; margin: 0 0 14px; color: var(--ink); }
.ledger-rows { list-style: none; margin: 0; padding: 0; }
.ledger-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); opacity: 0; transform: translateY(8px); animation: rowIn .5s var(--ease) forwards; }
.ledger-row:nth-child(2) { animation-delay: .12s; }
.ledger-row:nth-child(3) { animation-delay: .24s; }
@keyframes rowIn { to { opacity: 1; transform: none; } }
.ledger-acc { font-weight: 600; }
.ledger-amt { font-variant-numeric: tabular-nums; direction: ltr; font-weight: 600; min-width: 5.5em; text-align: end; }
.ledger-mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 700; background: var(--band); color: var(--muted); transition: background .25s, color .25s, transform .3s var(--ease); }
.ledger-mark.ok { background: var(--ok); color: #fff; transform: scale(1.08); }
.ledger-mark.bad { background: var(--danger-bg); color: var(--danger); }
.seg { display: inline-flex; background: var(--band); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { font: inherit; border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; cursor: pointer; color: var(--ink-2); font-weight: 600; min-height: 36px; transition: background .2s, color .2s, box-shadow .2s; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--forest); box-shadow: 0 1px 3px rgba(20, 32, 27, .15); }
.ledger-foot { display: grid; gap: 10px; margin-top: 16px; }
.beam { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: .9rem; color: var(--muted); }
.beam-track { height: 10px; border-radius: 999px; background: var(--band); position: relative; overflow: hidden; }
.beam-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; border-radius: 999px; background: var(--forest-2); transition: width .45s var(--ease); }
.beam-fill.cr { background: var(--clay); }
.beam-val { font-variant-numeric: tabular-nums; direction: ltr; min-width: 5em; text-align: end; color: var(--ink); font-weight: 600; }
.ledger-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; font-weight: 600; min-height: 32px; }
.ledger-status .score { font-variant-numeric: tabular-nums; color: var(--forest); background: var(--mint); padding: 3px 12px; border-radius: 999px; }
.ledger-status.done .score { background: var(--ok); color: #fff; }
.ledger-note { font-size: .9rem; color: var(--muted); margin: 10px 0 0; }

/* topic rail */
.rail-wrap { position: relative; }
.rail { list-style: none; margin: 0; padding: 4px 2px 20px; display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 300px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; overscroll-behavior-x: contain; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > li { scroll-snap-align: start; }
.topic-card { display: flex; flex-direction: column; height: 100%; min-height: 300px; padding: 24px; border-radius: var(--radius-l); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; }
.topic-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(23, 62, 51, .35); border-color: #d3cbb9; }
.topic-num { font-family: var(--font-he); font-size: 3.2rem; line-height: 1; font-weight: 700; color: var(--line); margin-bottom: auto; font-variant-numeric: tabular-nums; }
.topic-he { font-family: var(--font-he); font-size: 1.6rem; line-height: 1.25; font-weight: 700; color: var(--forest); margin: 20px 0 4px; }
.topic-ar { color: var(--ink-2); margin: 0 0 14px; }
.topic-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); }
.topic-meta span { background: var(--band); padding: 2px 10px; border-radius: 999px; }
.topic-card.is-preview { background: var(--forest); border-color: var(--forest); color: var(--forest-ink); }
.topic-card.is-preview .topic-num { color: rgba(255, 255, 255, .18); }
.topic-card.is-preview .topic-he { color: #fff; }
.topic-card.is-preview .topic-ar { color: #d4e1d9; }
.topic-card.is-preview .topic-meta span { background: rgba(255, 255, 255, .12); color: #e6efe9; }
.topic-free { align-self: flex-start; margin-top: 12px; background: var(--clay); color: #fff; font-size: .82rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.paddles { display: flex; gap: 8px; }
.paddle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; display: grid; place-items: center; transition: background .2s, opacity .2s; color: var(--ink); }
.paddle:hover { background: var(--mint); }
.paddle[disabled] { opacity: .35; cursor: default; }
.paddle svg { width: 18px; height: 18px; }

/* stages */
.stage-switch { display: flex; justify-content: center; margin-bottom: 28px; }
.stage-switch .seg button { padding: 10px 22px; font-size: 1rem; }
.stage-panel { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .stage-panel { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.stage-copy h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.25; margin-bottom: 12px; }
.stage-copy p { color: var(--ink-2); font-size: 1.08rem; max-width: 30em; }
.stage-copy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.stage-copy li { padding-inline-start: 26px; position: relative; color: var(--ink-2); }
.stage-copy li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .7em; width: 10px; height: 10px; border-radius: 3px; background: var(--forest-2); }
.mock { border-radius: var(--radius-l); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px; min-height: 300px; animation: mockIn .45s var(--ease); }
@keyframes mockIn { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.mock-video { aspect-ratio: 16 / 9; border-radius: 14px; background: linear-gradient(160deg, #1f5143, #12302a); position: relative; display: grid; place-items: center; }
.mock-video .play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; }
.mock-video .play::after { content: ""; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--forest); margin-inline-start: 4px; }
[dir="rtl"] .mock-video .play::after { margin-inline-start: 0; margin-inline-end: -4px; }
.mock-video .bar { position: absolute; inset-inline: 16px; bottom: 14px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); }
.mock-video .bar::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 38%; border-radius: 4px; background: #fff; }
.mock-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; }
.mock-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--band); }
.mock-list li.on { background: var(--mint); color: var(--forest); font-weight: 600; }
.mock-doc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: grid; gap: 10px; }
.mock-doc .l { height: 9px; border-radius: 5px; background: var(--band); }
.mock-doc .l.h { height: 14px; width: 55%; background: var(--forest); opacity: .85; }
.mock-doc .l.s { width: 70%; }
.mock-doc .t { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: .85rem; font-family: var(--font-he); }
.mock-doc .t span { padding: 6px 10px; border-bottom: 1px solid var(--line); }
.mock-doc .t span:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.mock-q .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

/* levels */
.levels { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .levels { grid-template-columns: repeat(3, 1fr); } }
.level { border-radius: var(--radius-l); padding: 28px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.level h3 { font-size: 1.5rem; margin: 0; }
.level .lv-he { font-family: var(--font-he); color: var(--muted); font-size: .95rem; }
.level p { color: var(--ink-2); margin: 0; }
.level .types { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.level .types span { font-size: .85rem; padding: 3px 10px; border-radius: 999px; background: var(--band); color: var(--ink-2); }
.level-meter { display: flex; gap: 4px; }
.level-meter i { width: 26px; height: 6px; border-radius: 3px; background: var(--line); }
.level-meter i.on { background: var(--forest-2); }

/* offer */
.offer-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .offer-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.price-xl { font-size: clamp(4rem, 12vw, 7.5rem); line-height: 1; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; margin: 10px 0 8px; }
.price-xl small { display: block; font-size: .22em; font-weight: 600; color: #c7d6cd; letter-spacing: 0; margin-top: 10px; }
.price-xl .cur { font-size: .55em; margin-inline-start: .08em; }
.offer-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.offer-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; color: #e3ece6; font-size: 1.04rem; }
.offer-list li::before { content: ""; width: 16px; height: 9px; margin-top: 8px; border-left: 2.5px solid #9fd0b4; border-bottom: 2.5px solid #9fd0b4; transform: rotate(-45deg); }
.offer-note { color: #b7c9be; font-size: .92rem; margin: 12px 0 0; }
/* launch price */
.offer-flag { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; font-size: .95rem; color: #d7e4dc; }
.offer-flag span { background: #f3e2b8; color: #3b2f12; font-weight: 700; padding: 3px 12px; border-radius: 999px; font-size: .86rem; }
.offer-flag.is-preview span { background: transparent; color: #f3e2b8; border: 1.5px dashed #f3e2b8; }
.price-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 28px; margin-top: 8px; }
.price-row .price-xl { margin-bottom: 0; }
.price-after { padding-bottom: 14px; }
.price-after p { margin: 0; }
.after-line { color: #fff; font-size: 1.15rem; font-weight: 600; }
.saving { margin-top: 8px !important; display: inline-block; background: rgba(159, 208, 180, .16); color: #bfe6cf; border: 1px solid rgba(159, 208, 180, .4); padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.saving-pct { font-weight: 500; opacity: .85; }
.launch-copy { margin: 22px 0 0; padding-inline-start: 16px; border-inline-start: 3px solid #9fd0b4; max-width: 36em; }
.launch-copy p { margin: 0 0 6px; color: #dfe9e2; font-size: 1.04rem; }
.launch-copy p:first-child { color: #fff; font-weight: 600; }
.launch-clock { margin-top: 24px; }
.clock-label { margin: 0 0 10px; color: #c7d6cd; font-size: .95rem; }
.clock-label time { color: #fff; font-weight: 600; }
.clock { display: flex; gap: 10px; width: fit-content; }
.clock span { display: grid; justify-items: center; min-width: 64px; padding: 10px 8px 8px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.clock b { font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.clock small { font-size: .74rem; color: #b7c9be; margin-top: 6px; }
.offer-course { color: #e3ece6; font-size: 1.04rem; margin: 0 0 20px; }
.offer-course [lang="he"] { font-weight: 700; color: #fff; }
.offer-sub { font-size: 1rem; margin: 0 0 12px; color: #fff; }
.offer-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); }
.mx-8 { margin-inline: 8px; }
@media (max-width: 520px) {
  .clock { gap: 6px; }
  .clock span { min-width: 0; flex: 1; }
  .offer-actions .btn { width: 100%; }
}

/* faq */
.faq { max-width: 820px; }
details { border-bottom: 1px solid var(--line); }
details > summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 1.08rem; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--ink); }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .25s var(--ease); margin-top: -6px; }
details[open] > summary::after { transform: rotate(-135deg); margin-top: 6px; }
details > p, details > div { color: var(--ink-2); padding-bottom: 18px; margin: 0; max-width: 46em; }

/* ---------- learning area ---------- */
.learn { display: grid; gap: 24px; padding-top: 28px; }
@media (min-width: 960px) { .learn { grid-template-columns: 290px 1fr; } }
.topic-nav { align-self: start; position: sticky; top: calc(var(--header-h) + 16px); padding: 12px; }
.topic-nav ol { list-style: none; padding: 0; margin: 0; }
.topic-nav a { display: block; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--ink-2); }
.topic-nav a:hover { background: var(--band); }
.topic-nav a[aria-current="page"] { background: var(--mint); color: var(--forest); font-weight: 600; }
.topic-toggle { display: inline-flex; }
@media (min-width: 960px) { .topic-toggle { display: none; } .topic-nav[hidden] { display: block !important; } }
@media (max-width: 959px) { .topic-nav { position: static; } }
.tabs { display: inline-flex; gap: 2px; background: var(--band); padding: 4px; border-radius: 999px; margin: 6px 0 22px; flex-wrap: wrap; }
.tabs a { padding: 8px 20px; text-decoration: none; color: var(--ink-2); border-radius: 999px; font-weight: 600; transition: background .2s, color .2s; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--forest); background: #fff; box-shadow: 0 1px 3px rgba(20, 32, 27, .15); }
.player { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: 16px; background: #0f201b; }
.player-empty { aspect-ratio: 16 / 9; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(160deg, #1f5143, #12302a); color: #e6efe9; text-align: center; padding: 24px; }
.video-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.video-list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); transition: background .2s; }
.video-list a:hover { background: var(--band); }
.video-list a[aria-current="page"] { background: var(--mint); color: var(--forest); font-weight: 600; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-top: 16px; }

/* ---------- practice ---------- */
.choice-group { display: flex; gap: 10px; flex-wrap: wrap; border: 0; padding: 0; margin: 0 0 20px; }
.choice-group legend { font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: block; padding: 11px 18px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; min-height: 46px; transition: border-color .2s, background .2s; }
.choice:hover span { border-color: #cfc7b5; }
.choice input:checked + span { border-color: var(--forest); background: var(--mint); color: var(--forest); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--clay); outline-offset: 2px; }
.attempt-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; position: sticky; top: 0; background: rgba(251, 249, 244, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: 12px 0; z-index: 3; border-bottom: 1px solid var(--line); }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.15rem; color: var(--forest); }
.timer.low { color: var(--danger); }
.save-state { font-size: .9rem; }
.save-state[data-state="saving"] { color: var(--warn); }
.save-state[data-state="saved"] { color: var(--ok); }
.save-state[data-state="error"] { color: var(--danger); font-weight: 700; }
.q-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.q-dot { width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: inherit; cursor: pointer; transition: background .2s, border-color .2s; }
.q-dot.answered { background: var(--mint); border-color: var(--forest-2); }
.q-dot.flagged { box-shadow: inset 0 -4px 0 var(--clay); }
.q-dot[aria-current="true"] { border-color: var(--forest); border-width: 2.5px; }
.question { font-size: 1.1rem; }
.question .prompt { white-space: pre-wrap; font-weight: 500; }
.option-list { display: grid; gap: 10px; margin: 16px 0; }
.option-list .choice span { padding: 13px 18px; }
.result-item { border-inline-start: 4px solid var(--line); padding-inline-start: 16px; }
.result-item.correct { border-color: var(--ok); }
.result-item.wrong { border-color: var(--danger); }
.result-item.partial { border-color: var(--warn); }
.result-item.open { border-color: var(--forest-2); }
.solution { background: var(--mint); border-radius: 12px; padding: 14px 16px; white-space: pre-wrap; }
.solution.mine { background: #fff; border: 1px dashed var(--line); }
.context { background: var(--band); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; white-space: pre-wrap; font-size: .98rem; }
.fields-grid { display: grid; gap: 12px 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 16px; }
.score-hero { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.score-hero .big { font-size: clamp(2.6rem, 7vw, 4rem); font-weight: 700; color: var(--forest); line-height: 1; font-variant-numeric: tabular-nums; }

table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap { overflow-x: auto; }
table.je { margin-top: 12px; }
table.je select, table.je input { min-height: 44px; padding: 6px 10px; }
table.je td:first-child { width: 120px; }
table.je td:nth-child(3) { width: 150px; }
table.je td:last-child { width: 52px; }
table.data td, table.data th { white-space: nowrap; padding: 4px 10px; font-size: .92rem; line-height: 1.5; }
table.data { width: auto; min-width: 60%; }
tr.ok td { background: var(--ok-bg); }
tr.part td { background: var(--warn-bg); }
tr.bad td { background: var(--danger-bg); }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
[aria-pressed="true"] { background: var(--forest); color: #fff; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--forest); }
@media (max-width: 600px) {
  table.je:not(.je-review) thead { display: none; }
  table.je:not(.je-review), table.je:not(.je-review) tbody { display: block; width: 100%; }
  table.je:not(.je-review) tr { display: grid; grid-template-columns: 92px 1fr 44px; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.je:not(.je-review) td { width: auto !important; padding: 0; border: 0; }
  table.je:not(.je-review) td:nth-child(2) { grid-column: 1 / -1; order: -1; }
  table.je:not(.je-review) select, table.je:not(.je-review) input { width: 100%; }
}

#toast { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); inset-inline: 16px; margin: 0 auto; max-width: 480px; background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 14px; opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .25s var(--ease); pointer-events: none; z-index: 40; text-align: center; }
#toast.show { opacity: 1; transform: none; }
dialog { border: 0; border-radius: var(--radius); padding: 26px; max-width: 440px; width: calc(100% - 32px); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); color: var(--ink); background: var(--card); }
dialog::backdrop { background: rgba(15, 32, 27, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

/* utilities (inline style attributes are blocked by the CSP) */
.mt-8{margin-top:8px}.mt-12{margin-top:12px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-28{margin-top:28px}.my-16{margin:16px 0}
.narrow-620{max-width:620px;margin:0 auto}.narrow-460{max-width:460px;margin:0 auto}.mw-560{max-width:560px}
.justify-start{justify-content:flex-start}.bare{border:0;padding:0}
.filters-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));align-items:end}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .ledger-row { opacity: 1; transform: none; }
}
.mw-760{max-width:760px}
body[data-page="practice"] .site-header { position: relative; transform: none; }
