:root {
  --paper: #fbf8f1; --paper2: #f3eee2; --ink: #1d2433; --muted: #5d6474; --line: #e4dccb;
  --navy: #1b2f4b; --gold: #b8892b; --gold-btn: #966e1e; --gold-btn2: #85621a; --gold2: #d6a84a; --gold-text: #8a6516; --card: #fff;
  --ins: #1b7a3d; --ins-bg: #dff3e5; --del: #b3261e; --del-bg: #fbe3e1; --ok-soft: #bfe3cb; --bad-soft: #f2c4c0; --src: #6b3fb0; --wrd: #1f5fa8;
  --serif: Georgia, "Times New Roman", serif; --ui: "Segoe UI", system-ui, -apple-system, sans-serif; --heb: "David", "Frank Ruehl", "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root { --gold-text: #d6a84a; --paper: #14171d; --paper2: #1b1f27; --ink: #ecebe6; --muted: #a8adb8; --line: #2d323c; --navy: #0f1a2b; --card: #1c2029;
    --ins: #7fd49c; --ins-bg: #1d3626; --del: #f08a82; --del-bg: #3e2423; --ok-soft: #2f5a3d; --bad-soft: #6a3330; --src: #c3a4f0; --wrd: #8fbaf0; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--ui); }
a { color: inherit; }
[dir="rtl"] body, html[dir="rtl"] { font-family: var(--heb); }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.top nav > a:not(.btn) { text-decoration: none; color: var(--muted); font-size: 15px; }
.top nav > a:not(.btn):hover { color: var(--ink); }
.lang { border: 1px solid var(--line); background: none; border-radius: 20px; padding: 4px 12px; cursor: pointer; color: var(--muted); font: inherit; font-size: 14px; }
.btn { display: inline-block; text-decoration: none; border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; }
.btn.gold { background: var(--gold-btn); color: #fff; box-shadow: 0 4px 14px rgba(184,137,43,.35); }   /* white on this deeper gold reads at 4.6:1 (the brand gold was 3.2:1) */
.btn.gold:hover { background: var(--gold-btn2); }
.btn.ghost { border-color: var(--line); }
.btn.big { padding: 14px 28px; font-size: 17px; }
main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
section { padding: clamp(40px, 7vw, 84px) 0; }
h1, h2, h3 { font-family: var(--serif); letter-spacing: -.01em; line-height: 1.15; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-family: var(--heb); }
h1 { font-size: clamp(34px, 5.4vw, 58px); margin: 8px 0 18px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); text-align: center; margin: 0 0 28px; }
.center { text-align: center; } .muted { color: var(--muted); }
.eyebrow { color: var(--gold-text);   /* small gold words: darker gold reads at 5:1 (was 3:1) */ font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; margin: 0; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 34em; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
.note { color: var(--muted); font-size: 14px; }
.hero-art { display: flex; align-items: center; justify-content: center; gap: 14px; }
.wave { display: flex; align-items: center; gap: 4px; height: 120px; padding: 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.wave i { display: block; width: 5px; border-radius: 3px; background: var(--gold); animation: pulse 1.4s ease-in-out infinite; }
.wave i:nth-child(odd) { background: var(--navy); }
.wave i:nth-child(1) { height: 30%; } .wave i:nth-child(2) { height: 60%; animation-delay: .1s; } .wave i:nth-child(3) { height: 80%; animation-delay: .2s; } .wave i:nth-child(4) { height: 45%; animation-delay: .3s; }
.wave i:nth-child(5) { height: 70%; animation-delay: .4s; } .wave i:nth-child(6) { height: 35%; animation-delay: .5s; } .wave i:nth-child(7) { height: 90%; animation-delay: .6s; } .wave i:nth-child(8) { height: 55%; animation-delay: .7s; }
.wave i:nth-child(9) { height: 40%; animation-delay: .8s; } .wave i:nth-child(10) { height: 75%; animation-delay: .9s; } .wave i:nth-child(11) { height: 50%; animation-delay: 1s; } .wave i:nth-child(12) { height: 65%; animation-delay: 1.1s; }
.wave i:nth-child(13) { height: 30%; animation-delay: 1.2s; } .wave i:nth-child(14) { height: 45%; animation-delay: 1.3s; }
@keyframes pulse { 50% { transform: scaleY(.55); } }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; } }
.arrow { color: var(--gold); font-size: 26px; }
.sefer-page { position: relative; width: min(300px, 60vw); aspect-ratio: 6 / 9; background: #fffdf7; color: #222; border-radius: 4px; padding: 22px 20px; direction: rtl; font-family: var(--heb);
  box-shadow: 0 1px 0 #e9e2d0, 0 18px 40px rgba(27,47,75,.18), 8px 8px 0 -2px #efe7d3; transform: rotate(-2deg); }
.sefer-page .run { display: flex; justify-content: space-between; font-size: 9px; border-bottom: 1px solid #333; padding-bottom: 2px; margin-bottom: 10px; }
.sefer-page .title { text-align: center; font-weight: 700; font-size: 18px; }
.sefer-page .sub-title { text-align: center; font-size: 11px; margin-bottom: 10px; }
.sefer-page .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 9px; }
.sefer-page .ln { display: block; height: 5px; margin: 0 0 5px; background: #cfc9bb; border-radius: 2px; }
.sefer-page .ln.short { width: 62%; }
.sefer-page b { font-size: 9px; }
.sefer-page .foot { position: absolute; bottom: 30px; left: 20px; right: 20px; border-top: 1px solid #999; padding-top: 5px; }
.sefer-page .foot .ln { height: 3px; margin-bottom: 4px; }
.sefer-page .pg { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.step .ic { font-size: 30px; }
.step h3 { margin: 10px 0 8px; font-size: 22px; }
.step p { margin: 0; color: var(--muted); }
.why { padding-top: 0; }
.why .grid3 > div { border-top: 3px solid var(--gold); padding-top: 14px; }
.why p { color: var(--muted); margin: 6px 0 0; }
.pricing { background: var(--paper2); border-radius: 24px; padding-left: clamp(16px, 3vw, 36px); padding-right: clamp(16px, 3vw, 36px); }
.toggle { display: flex; justify-content: center; gap: 4px; margin: 22px auto 26px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; width: max-content; max-width: 100%; }
.toggle button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 14px; color: var(--muted); }
.toggle button.on { background: var(--navy); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--gold); position: relative; }
.plan.best::before { content: attr(data-badge); position: absolute; top: -12px; inset-inline-start: 24px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 22px; }
.plan .price { font-family: var(--serif); font-size: 42px; font-weight: 700; margin: 10px 0 2px; }
.plan .price small { font-size: 15px; color: var(--muted); font-family: var(--ui); font-weight: 400; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 20px; flex: 1; }
.plan li { padding: 7px 0; border-top: 1px solid var(--line); }
.plan li::before { content: "✓ "; color: var(--gold); font-weight: 700; }
.plan .btn { text-align: center; }
.pricing h3.center { margin-top: 36px; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.price-rules { max-width: 760px; margin: 8px auto 0; }
.price-rules ul { margin: 12px 0; padding-inline-start: 22px; line-height: 1.6; }
.price-rules li { margin: 6px 0; }
.pack { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.pack b { display: block; font-size: 17px; }
.pack .amt { color: var(--muted); font-size: 14px; }
.pack .pp { margin-top: 8px; font-size: 15px; }
.pack .pp span { color: var(--muted); font-size: 13px; }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 10px 0 0; }
.final { text-align: center; }
footer { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; padding: 30px 16px 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
/* steps: the Library band */
.lib { display: flex; gap: 16px; align-items: flex-start; margin-top: 20px; background: var(--card); border: 1px dashed var(--gold2); border-radius: 16px; padding: 20px 24px; }
.lib-ic { font-size: 28px; line-height: 1; }
.lib b { font-family: var(--serif); font-size: 19px; }
html[dir="rtl"] .lib b { font-family: var(--heb); }
.lib p { margin: 4px 0 0; color: var(--muted); }
.sub { max-width: 46em; margin: -14px auto 30px; }

/* the five levels */
.scale { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.scale i { flex: 1; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--line), var(--gold)); }
html[dir="rtl"] .scale i { background: linear-gradient(270deg, var(--line), var(--gold)); }
.lv-mode { display: flex; justify-content: center; gap: 4px; margin: 0 auto 18px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; width: max-content; max-width: 100%; }
.lv-mode button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 14px; color: var(--muted); }
.lv-mode button.on { background: var(--navy); color: #fff; }
.lv-pane[hidden] { display: none; }
.lv-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.lv { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 18px; position: relative; }
.lv .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--paper2); color: var(--navy); font: 700 17px var(--serif); border: 1px solid var(--line); }
.lv:nth-child(2) .n { background: color-mix(in srgb, var(--gold) 15%, var(--card)); }
.lv:nth-child(3) .n { background: color-mix(in srgb, var(--gold) 30%, var(--card)); }
.lv:nth-child(4) .n { background: color-mix(in srgb, var(--gold) 55%, var(--card)); color: #fff; }
.lv.lv5 .n { background: var(--gold); color: #fff; border-color: var(--gold); }
.lv.lv5 { border: 2px solid var(--gold); }
.lv h3 { font-size: 19px; margin: 12px 0 6px; }
.lv p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips span { font-size: 12.5px; border: 1px solid var(--gold2); color: var(--ink); border-radius: 999px; padding: 2px 9px; background: color-mix(in srgb, var(--gold) 8%, var(--card)); }
@media (prefers-color-scheme: dark) { .lv .n { color: var(--ink); } }

/* the editing demo */
.demo { padding-top: 0; }
.win { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(27,47,75,.12); overflow: hidden; font-family: var(--ui); }
.win-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--navy); color: #fff; }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.3); }
.win-title { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-badge { font-size: 12px; font-weight: 700; background: var(--gold); color: #fff; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.win-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--paper2); }
.pill { font-size: 13px; font-weight: 600; color: var(--navy); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; }
@media (prefers-color-scheme: dark) { .pill { color: var(--ink); } }
.count { font-size: 13.5px; color: var(--muted); }
.count.ok { color: var(--ins); font-weight: 700; }
.grow { flex: 1; }
.tbtn { font: 600 13.5px var(--ui); border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.tbtn:hover { border-color: var(--gold); }
.win-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.paper { padding: 26px 32px; background: var(--card); }
.dtext { margin: 0; font: 18px/2 var(--serif); }
html[dir="rtl"] .dtext { font: 21px/1.95 var(--heb); text-align: justify; }
.chg { border-radius: 3px; padding: 1px 2px; text-decoration-thickness: 1.5px; }
.chg.del { color: var(--del); background: var(--del-bg); text-decoration: line-through; }
.chg.ins { color: var(--ins); background: var(--ins-bg); text-decoration: underline; text-underline-offset: 3px; }
.cg.acc .chg.del, .cg.rej .chg.ins { display: none; }
.cg.acc .chg.ins { color: inherit; background: none; text-decoration: none; box-shadow: inset 0 -2px 0 var(--ok-soft); }
.cg.rej .chg.del { color: inherit; background: none; text-decoration: none; box-shadow: inset 0 -2px 0 var(--bad-soft); }
.cc { display: inline-flex; gap: 2px; margin-inline: 3px; vertical-align: 2px; }
.cb { width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; font: 700 13px/1 var(--ui); color: var(--muted); display: inline-grid; place-items: center; transition: background .15s, color .15s, border-color .15s; }
.cb.acc:hover, .cb.acc[aria-pressed="true"] { background: var(--ins-bg); color: var(--ins); border-color: var(--ins); }
.cb.rej:hover, .cb.rej[aria-pressed="true"] { background: var(--del-bg); color: var(--del); border-color: var(--del); }
.cg.acc .cc, .cg.rej .cc { opacity: .75; }
.cg.acc .cb.rej, .cg.rej .cb.acc { display: none; }
.cb:focus-visible, .tbtn:focus-visible, .opts button:focus-visible, .lang:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold2); outline-offset: 2px; }
.qanchor { border-bottom: 2px dotted var(--wrd); background: color-mix(in srgb, var(--wrd) 10%, transparent); border-radius: 2px; }
.qanchor.src { border-color: var(--src); background: color-mix(in srgb, var(--src) 10%, transparent); }
.qanchor.answered { border-bottom-style: solid; background: none; }
.qnum { display: inline-grid; place-items: center; min-width: 16px; height: 16px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 10px/1 var(--ui); margin-inline-start: 2px; vertical-align: super; }
@media (prefers-color-scheme: dark) { .qnum { background: var(--gold); } }
.queries { border-inline-start: 1px solid var(--line); background: var(--paper); padding: 16px; }
.queries h3 { font: 700 12px var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
html[dir="rtl"] .queries h3 { font-family: var(--ui); letter-spacing: 0; font-size: 14px; }
.qc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; transition: opacity .2s; }
.qc.resolved { opacity: .7; }
.qt { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; display: flex; align-items: center; gap: 4px; }
.qt .qnum { vertical-align: 0; margin: 0; }
.qt.src { color: var(--src); } .qt.wrd { color: var(--wrd); }
.qq { margin: 6px 0 10px; font-size: 14.5px; line-height: 1.5; }
html[dir="rtl"] .qq { font-family: var(--heb); font-size: 17px; }
.opts { display: flex; flex-direction: column; gap: 6px; }
.opts button { text-align: start; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px; padding: 6px 10px; cursor: pointer; font: 13.5px var(--ui); }
html[dir="rtl"] .opts button { font: 16px var(--heb); }
.opts button:hover { border-color: var(--gold); }
.opts button.on { border-color: var(--ins); background: var(--ins-bg); color: var(--ins); font-weight: 600; }
.opts button.on::before { content: "✓ "; }
.points { margin-top: 30px; }
.points > div { border-top: 3px solid var(--navy); padding-top: 14px; }
@media (prefers-color-scheme: dark) { .points > div { border-color: var(--gold2); } }
.points p { color: var(--muted); margin: 6px 0 0; }

/* typesetting */
.pub { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.pub h2 { text-align: start; margin: 8px 0 10px; }
.pub-text > .muted { margin: 0 0 18px; font-size: 17px; }
.feats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.feats li { padding-inline-start: 26px; position: relative; }
.feats li::before { content: "◆"; position: absolute; inset-inline-start: 0; top: 1px; color: var(--gold); font-size: 13px; }
.feats b { display: block; }
.feats span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.pub-art { position: relative; direction: ltr; display: flex; justify-content: center; align-items: center; min-height: 380px; }
.cover { width: min(190px, 40vw); aspect-ratio: 6 / 9; background: linear-gradient(160deg, #22406a, #13233b); border-radius: 3px 8px 8px 3px; padding: 12px; box-shadow: -6px 0 0 #0d1828 inset, 0 18px 40px rgba(27,47,75,.3); transform: rotate(-5deg) translateX(22px); z-index: 1; direction: rtl; font-family: var(--heb); }
.cv-in { height: 100%; border: 1.5px solid #c99a3c; border-radius: 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #e9c877; gap: 8px; padding: 10px; }
.cv-in small { font-size: 13px; letter-spacing: .1em; }
.cv-in b { font-size: 27px; line-height: 1.1; }
.cv-in span { font-size: 12px; color: #d9c8a0; line-height: 1.5; }
.cv-in em { font-style: normal; font-size: 10px; }
.en-page { position: relative; width: min(250px, 52vw); aspect-ratio: 6 / 9; background: #fffdf7; color: #222; border-radius: 4px; padding: 20px 20px; direction: ltr; text-align: left; font-family: var(--serif); box-shadow: 0 1px 0 #e9e2d0, 0 18px 40px rgba(27,47,75,.18); transform: rotate(3deg) translateX(-6px); z-index: 2; }
.en-page .run { display: flex; justify-content: space-between; font-size: 8px; letter-spacing: .12em; border-bottom: 1px solid #333; padding-bottom: 2px; margin-bottom: 12px; }
.en-page .et { text-align: center; font-size: 15px; font-weight: 700; font-variant: small-caps; }
.en-page .he-line { text-align: center; direction: rtl; font-family: var(--heb); font-size: 12px; margin: 3px 0 10px; }
.en-page .et2 { font-size: 10px; font-weight: 700; margin: 8px 0 6px; }
.en-page .ln { display: block; height: 4px; margin: 0 0 6px; background: #cfc9bb; border-radius: 2px; }
.en-page .ln.short { width: 58%; }
.en-page .foot { position: absolute; bottom: 30px; left: 20px; right: 20px; border-top: 1px solid #999; padding-top: 5px; }
.en-page .foot .ln { height: 3px; margin-bottom: 4px; }
.en-page .pg { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 10px; }

@media (max-width: 1000px) {
  .lv-list { grid-template-columns: repeat(3, 1fr); }
  .win-body { grid-template-columns: 1fr; }
  .queries { border-inline-start: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
  .queries h3 { grid-column: 1 / -1; margin: 0; }
  .queries #dmQs { display: contents; }
  .qc { margin: 0; }
}
@media (max-width: 860px) {
  .pub { grid-template-columns: 1fr; }
  .pub-art { min-height: 0; padding: 10px 0 20px; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; transform: scale(.85); }
  .grid3, .plans, .packs { grid-template-columns: 1fr; }
  .top nav > a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
  .lv-list { grid-template-columns: 1fr; }
  .lv { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; padding: 16px; }
  .lv .n { grid-row: span 2; }
  .lv h3 { margin: 4px 0 2px; }
  .lv .chips { grid-column: 2; }
  .feats { grid-template-columns: 1fr; }
  .queries { grid-template-columns: 1fr; }
  .paper { padding: 18px 16px; }
  .dtext { font-size: 17px; line-height: 2.05; }
  html[dir="rtl"] .dtext { font-size: 19px; text-align: start; }
  .win-bar { padding: 10px 12px; } .dots { display: none; }
  .win-tools { padding: 10px 12px; gap: 8px; }
  .count { order: 5; width: 100%; }
  .tbtn { padding: 5px 10px; }
  .lib { padding: 16px; }
  .scale { font-size: 12px; }
}
@media (max-width: 420px) { .wave, .arrow { display: none; } .top nav .btn.ghost { display: none; } }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
.levels, .pub { padding-top: clamp(16px, 3vw, 32px); }

/* tidy-up: the hero title keeps its two lines; the phone header stays on one row */
.hero h1 { font-size: clamp(34px, 3.5vw, 46px); }
.brand span { white-space: nowrap; }
@media (max-width: 640px) {
  .top { padding: 10px 14px; }
  .top nav { flex-wrap: nowrap; gap: 8px; }
  .top nav #ctaTop { display: none; }
  .top nav .btn.ghost { display: inline-block; padding: 7px 14px; font-size: 14px; }
  .brand { font-size: 16px; }
}
@media (max-width: 420px) { .top nav .btn.ghost { display: inline-block; } }
/* phones: the language switch stays in the header (it is the only way to switch on the landing pages) */
@media (max-width: 860px) { .top nav > a.lang { display: inline-block; padding: 4px 10px; } }

/* "Try it": the visitor's own text as real sefer pages */
.tryit { padding-top: clamp(24px, 4vw, 48px); }
.tryit .eyebrow { margin-bottom: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ty-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 auto 18px; max-width: 900px; }
.ty-choice { display: flex; align-items: center; gap: 14px; text-align: start; padding: 12px; background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: 14px; cursor: pointer; font: inherit; }
.ty-choice img { width: 64px; height: 96px; object-fit: cover; border-radius: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.15); background: #fff; flex: none; }
.ty-choice b { display: block; font-size: 17px; }
.ty-choice small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; margin-top: 3px; }
.ty-choice:hover { border-color: var(--gold2); }
.ty-choice.on { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.ty-form { max-width: 900px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.ty-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.ty-fields label span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 3px; }
.ty-form input:not([type=file]), .ty-form textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.ty-form textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.ty-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.ty-file { position: relative; overflow: hidden; }
.ty-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ty-file:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.ty-fname { color: var(--muted); font-size: 14px; }
.btn:disabled { opacity: .6; cursor: progress; }
.ty-msg { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); min-height: 1.4em; }
.ty-msg.bad { color: var(--del); }
.ty-out { margin-top: 22px; }
.ty-pages { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 14px 22px; -webkit-overflow-scrolling: touch; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ty-pages[aria-busy="true"] { opacity: .55; }
.ty-pg { flex: none; width: min(420px, 80vw); height: auto; scroll-snap-align: center; background: #fff; border-radius: 3px; box-shadow: 0 1px 0 #e9e2d0, 0 4px 14px rgba(27,47,75,.16); }
.ty-pg:first-child { margin-inline-start: auto; } .ty-pg:last-child { margin-inline-end: auto; }
.ty-cta { text-align: center; margin: 12px auto 0; max-width: 40em; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
@media print { .tryit .ty-out, .tryit .ty-pages { display: none !important; } }
@media (max-width: 860px) {
  .ty-choices { grid-template-columns: 1fr; gap: 10px; }
  .ty-choice { padding: 10px; }
  .ty-choice img { width: 44px; height: 66px; }
}
@media (max-width: 640px) {
  .ty-fields { grid-template-columns: 1fr; }
  .ty-form { padding: 14px; }
  .ty-actions .btn { flex: 1 1 100%; text-align: center; }
}

/* ---------- transcription built for shiurim, how it works, a lomdus shiur, reviews, landing pages ---------- */
/* Hebrew text in David from the site itself; "optional" means it is used only if it is already there (no layout shift) */
@font-face { font-family: "YAK David"; src: url(/fonts/yak/YAKDavidText-Regular.woff2?v=a2nRM5XjRRO_) format("woff2"), url(/fonts/yak/YAKDavidText-Regular.ttf?v=x-7FrmADnVYK) format("truetype"); font-display: optional; size-adjust: 83%; }
@font-face { font-family: "YAK David"; src: url(/fonts/yak/YAKDavidText-Bold.woff2?v=ZdkBw2I2dS0-) format("woff2"), url(/fonts/yak/YAKDavidText-Bold.ttf?v=ENI3hXvAvIVF) format("truetype"); font-weight: 700; font-display: optional; size-adjust: 86%; }
:root { --heb: "YAK David", "David", "Frank Ruehl", "Times New Roman", serif; }
.lang { text-decoration: none; display: inline-block; }
.sub.wide { max-width: 52em; }
.shiur { padding-bottom: clamp(24px, 4vw, 48px); }
.sh-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sh-grid li { background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid var(--gold); border-radius: 12px; padding: 16px 18px; }
.sh-grid b { display: block; font-family: var(--serif); font-size: 18px; margin-bottom: 4px; }
html[dir="rtl"] .sh-grid b { font-family: var(--heb); font-size: 20px; }
.sh-grid span { color: var(--muted); }
.sh-note { max-width: 46em; margin: 22px auto 4px; font-style: italic; }
.more { color: var(--gold); font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
.grid4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid4 .step { padding: 22px; }
.grid4 .step h3 { font-size: 20px; }
.cost { font-family: var(--serif); font-size: 19px; margin: 22px 0 0; }
html[dir="rtl"] .cost { font-family: var(--heb); font-size: 21px; }
.lomdus { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.lomdus h2 { text-align: start; }
.lm-day { list-style: none; margin: 0; padding: 0; border-inline-start: 3px solid var(--gold); }
.lm-day li { position: relative; padding: 4px 0 18px; padding-inline-start: 22px; }
.lm-day li::before { content: ""; position: absolute; inset-inline-start: -8px; top: 9px; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); border: 2px solid var(--paper); }
.lm-day b { display: block; font-size: 17px; }
.lm-day span { color: var(--muted); }
.reviews .rv-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.rv { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.rv p { margin: 0 0 12px; font-family: var(--serif); font-size: 17px; }
.rv figcaption { font-size: 14px; color: var(--muted); }
.rv cite { font-style: normal; font-weight: 700; color: var(--ink); }
.ft-pages { width: 100%; display: flex; gap: 8px 18px; justify-content: center; flex-wrap: wrap; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.ft-pages a { text-decoration: none; } .ft-pages a:hover { text-decoration: underline; }
footer a { text-decoration: none; } footer a:hover { text-decoration: underline; }
@media (max-width: 1000px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .sh-grid { grid-template-columns: 1fr 1fr; } .lomdus { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .sh-grid, .grid4 { grid-template-columns: 1fr; } }

/* landing pages (/shiur-transcription and the others) */
.lp { max-width: 820px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) 16px; }
.lp h1 { font-size: clamp(32px, 4.6vw, 48px); }
.lp h2 { text-align: start; font-size: clamp(23px, 3vw, 30px); margin: 40px 0 12px; }
.lp p, .lp li { font-size: 17px; }
.lp ul { padding-inline-start: 1.2em; } .lp li { margin-bottom: 6px; }
.lp .crumbs { font-size: 14px; color: var(--muted); margin: 0 0 6px; } .lp .crumbs a { text-decoration: none; }
.lp .faq { margin-top: 10px; }
.lp-cta { margin: 44px 0 10px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px 20px; }
.lp-cta h2 { text-align: center; margin-top: 0; }
.lp-cta .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.lp-related { margin-top: 30px; color: var(--muted); }
.lp-related a { margin-inline-end: 14px; }
/* phones: the footer and breadcrumb links are easy to tap (40 px high), not 22 px lines of text */
@media (max-width: 700px) {
  footer { gap: 0 10px; } .ft-pages { gap: 0 12px; }
  footer a, .lp .crumbs a { display: inline-block; padding: 10px 4px; line-height: 20px; }
}
/* 3.7.0: the weekly sheet (gilyon) section */
.gilyon { max-width: 1100px; margin: 0 auto; padding: 64px 20px; text-align: center; }
.gilyon .gy-feats { grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: start; margin-top: 26px; }
@media (max-width: 900px) { .gilyon .gy-feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gilyon .gy-feats { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- (3.18) the public home page: the Part A look
   (navy and brass on warm off-white, Inter / Frank Ruhl Libre — the fonts the Word add-in page serves publicly at
   /word/fonts) and every 3.18 tool with a real screen of the app (shot318-*.jpg) */
@font-face { font-family: 'Inter'; src: url('/word/fonts/Inter-400.woff2') format('woff2'), url('/word/fonts/Inter-400.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/word/fonts/Inter-600.woff2') format('woff2'), url('/word/fonts/Inter-600.woff') format('woff'); font-weight: 500 700; font-display: swap; }
@font-face { font-family: 'Frank Ruhl Libre'; src: url('/word/fonts/FrankRuhlLibre-700.woff2') format('woff2'), url('/word/fonts/FrankRuhlLibre-700.woff') format('woff'); font-weight: 600 900; font-display: swap; }
@font-face { font-family: 'Frank Ruhl Libre'; src: url('/word/fonts/FrankRuhlLibre-400.woff2') format('woff2'), url('/word/fonts/FrankRuhlLibre-400.woff') format('woff'); font-weight: 400; font-display: swap; }
:root { --paper: #F7F5F0; --paper2: #EFEADF; --ink: #1D2433; --muted: #5C6270; --line: #E6E1D6; --navy: #172D50; --gold: #B18745; --gold2: #C9A267;
  --gold-text: #8C6A33; --gold-btn: #172D50; --gold-btn2: #0F2240; --brass: #B18745;
  --serif: "Frank Ruhl Libre", Georgia, serif; --ui: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif; --heb: "Frank Ruhl Libre", "David", serif;
  --shadow318: 0 1px 2px rgba(23,45,80,.06), 0 18px 40px -12px rgba(23,45,80,.22); }
@media (prefers-color-scheme: dark) {
  :root { --paper: #0E1A2E; --paper2: #13233D; --ink: #E8EDF5; --muted: #A9B4C6; --line: #263A5A; --navy: #0B1526; --card: #13233D; --gold: #D8B77C; --gold2: #D8B77C; --gold-text: #D8B77C; --gold-btn: #D8B77C; --gold-btn2: #E6CA97; }
  .btn.gold { color: #0E1A2E; }
}
html[dir="rtl"] body { font-family: var(--ui); }
.btn.gold { box-shadow: 0 6px 16px -6px rgba(23,45,80,.45); border-bottom: 2px solid var(--brass); }
h1, h2 { font-weight: 700; }
.top { border-bottom: 1px solid var(--line); }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow318); background: var(--card, #fff); }
.shot figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; text-align: center; }
.hero318 { grid-template-columns: 1fr 1.15fr; padding-top: clamp(28px, 5vw, 56px); }
.hero318 h1 { color: var(--navy); }
@media (prefers-color-scheme: dark) { .hero318 h1, .feat318 h2, .tools318 h2 { color: var(--ink); } }
.hero318 .note { margin-top: 12px; }
.hero-shot img { transform: perspective(1600px) rotateY(-4deg); transform-origin: left center; }
html[dir="rtl"] .hero-shot img { transform: perspective(1600px) rotateY(4deg); transform-origin: right center; }
.tools318 .tl-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.tl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tl-list a { display: flex; flex-direction: column; text-decoration: none; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card, #fff); border-inline-start: 3px solid var(--brass); }
.tl-list a:hover { border-color: var(--brass); }
.tl-list b { color: var(--navy); font-weight: 600; } .tl-list span { color: var(--muted); font-size: 14px; }
@media (prefers-color-scheme: dark) { .tl-list b { color: var(--ink); } }
.feat318 { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.feat318.flip .ft-text { order: 2; }
.feat318 h2 { text-align: start; margin: 8px 0 12px; color: var(--navy); }
.feat318 .ft-text > .muted { font-size: 17px; margin: 0 0 16px; }
.feat318 .shot.narrow { max-width: 330px; justify-self: center; }
.ticks { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-inline-start: 26px; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--brass); font-weight: 700; }
.shots2 { position: relative; padding-bottom: 40px; }
.shots2 .shot.small { position: absolute; width: 46%; inset-inline-end: -10px; bottom: 0; }
.trio318 .card318 { background: var(--card, #fff); border: 1px solid var(--line); border-top: 3px solid var(--brass); border-radius: 12px; padding: 18px 20px; }
.trio318 .card318 b { display: block; font-size: 18px; margin-bottom: 4px; color: var(--navy); }
@media (prefers-color-scheme: dark) { .trio318 .card318 b { color: var(--ink); } }
.trio318 .card318 p { margin: 0; color: var(--muted); }
.gilyon .gy-shot { max-width: 180px; margin: 0 auto 8px; }
@media (max-width: 860px) {
  .hero318, .feat318, .tools318 .tl-wrap { grid-template-columns: 1fr; }
  .feat318.flip .ft-text { order: 0; }
  .hero-shot img, html[dir="rtl"] .hero-shot img { transform: none; }
  .shots2 { padding-bottom: 0; } .shots2 .shot.small { position: static; width: 70%; margin: 14px auto 0; }
}
/* (3.18) the tutorials: three cards, each opens a click-through page (/tutorials/…) */
.tut318-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.tut318-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; background: var(--card, #fff); border: 1px solid var(--line); border-top: 3px solid var(--brass); border-radius: 12px; overflow: hidden; padding-bottom: 14px; }
.tut318-card:hover { border-color: var(--brass); }
.tut318-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.tut318-card b { padding: 0 16px; color: var(--navy); font-size: 17px; }
.tut318-card span { padding: 0 16px; color: var(--muted); font-size: 14px; }
@media (prefers-color-scheme: dark) { .tut318-card b { color: var(--ink); } }
