/* The app's own fonts (app/static/vendor/fonts), so the front page loads nothing from another site. */
@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/static/vendor/fonts/assistant-hebrew.woff2") format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/static/vendor/fonts/assistant-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Heebo'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/static/vendor/fonts/heebo-hebrew.woff2") format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Heebo'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/static/vendor/fonts/heebo-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* The front page's tokens, the same colours as the app. Hebrew prose RTL, all math LTR. */
:root { color-scheme: light;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgba(48, 43, 39, .04), 0 8px 24px -8px rgba(48, 43, 39, .12);
  --header-bg: rgba(250, 249, 245, .82);
  --paper: #faf9f5;
  --paper-deep: #f1ece3;
  --card: #fffcf7;
  --ink: #302b27;
  --muted: #70665c;
  --accent: #a94d31;
  --accent-soft: #f4e5db;
  --line: #ded5c8;
  --success: #43634d;
  --error: #a3362e;
  --serif: 'Heebo', Arial, sans-serif;
  --sans: 'Assistant', Arial, sans-serif;
  --radius: 16px; }
:root[data-theme='dark'] { color-scheme: dark;
  --paper: #262320;
  --paper-deep: #302b27;
  --card: #2d2824;
  --ink: #f3ece2;
  --muted: #c2b5a7;
  --accent: #e59c7e;
  --accent-soft: #493129;
  --line: #50453c;
  --success: #acd0ac;
  --error: #ffb2a6;
  --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 10px 30px -10px rgba(0, 0, 0, .5);
  --header-bg: rgba(38, 35, 32, .82); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.125rem/1.7 var(--sans); direction: rtl; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
button, input, select { font: inherit; }
img, svg { max-width: 100%; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.18; margin: 0 0 1rem; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6vw, 5.2rem); letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-inline-start: 1.4rem; }
small, .small { font-size: .93rem; }
.muted { color: var(--muted); }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .95rem; margin-bottom: 1rem; }
.container { width: min(1160px, calc(100% - 3rem)); margin-inline: auto; }
.section { padding-block: 4.5rem; }
.section + .section { border-top: 1px solid var(--line); }
.skip-link { position: fixed; top: -6rem; right: 1rem; z-index: 100; padding: .7rem 1rem; background: var(--card); }
.skip-link:focus { top: 1rem; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 20; }
@media (min-width: 701px) {
  .site-header { position: sticky; top: 0; background: var(--header-bg); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
}
.nav { display: flex; align-items: center; gap: 1.6rem; min-height: 68px; flex-wrap: wrap; padding-block: .6rem; }
.brand { text-decoration: none; color: var(--ink); font: 600 1.5rem var(--serif); white-space: nowrap; }
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 1.3rem; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-size: 1rem; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current='page'] { color: var(--accent); text-decoration: underline; }
.nav-tools { margin-inline-start: auto; display: flex; align-items: center; gap: .65rem; }
.icon-button, .text-button { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 8px; padding: .4rem .75rem; transition: background-color .2s, border-color .2s, transform .15s var(--ease-out); }
.icon-button:hover { background: var(--paper-deep); }
.text-button:hover { background: var(--accent-soft); }
.icon-button:active, .text-button:active { transform: scale(.97); }
[data-theme-toggle] { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; flex-shrink: 0; }
[data-theme-toggle] svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.text-button { border-color: transparent; color: var(--accent); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .5rem; padding: .7rem 1.35rem; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: var(--paper); text-decoration: none; font-weight: 700; line-height: 1.4; transition: transform .2s var(--ease-out), box-shadow .2s, filter .2s; }
.button:hover { filter: brightness(.95); text-decoration: none; box-shadow: 0 6px 18px -8px var(--accent); }
.button:active { transform: scale(.97); }
.button .arrow { display: inline-block; transition: transform .25s var(--ease-out); }
.button:hover .arrow { transform: translateX(-4px); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button[aria-disabled='true'] { background: var(--paper-deep); border-color: var(--line); color: var(--muted); cursor: default; box-shadow: none; transform: none; filter: none; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-block: 1.5rem; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; align-items: center; padding-block: 5rem; }
.hero .lead { max-width: 33rem; font-size: 1.3rem; color: var(--muted); }
.hero h1 em { color: var(--accent); font-style: normal; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); padding-block: 1.8rem; }
.fact { padding-inline: 1.5rem; border-inline-end: 1px solid var(--line); }
.fact:last-child { border: 0; }
.fact strong { display: block; font: 500 2rem var(--serif); }
.fact span { color: var(--muted); font-size: 1rem; }
.paper-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.coming-soon { max-width: 740px; margin: 3rem auto 5rem; }
.coming-soon h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); margin-top: 1.2rem; }
.coming-soon .actions { margin-bottom: 0; }
.site-footer { padding-block: 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-brand { color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 600; }
.site-footer p { margin-top: 1rem; margin-bottom: 0; }
.math, .katex, .katex-display { direction: ltr; unicode-bidi: isolate; }
.math { display: inline-block; max-width: 100%; }
.katex-display { display: block; max-width: 100%; overflow-x: auto; overflow-y: hidden; padding-block: .25rem; }
.katex { display: inline-block; max-width: 100%; white-space: nowrap; overflow-x: auto; overflow-y: hidden; vertical-align: middle; padding-block: .1em; font-size: 1.08em; text-align: left; }
.math-status { padding: 1rem; color: var(--error); }
@media (max-width: 1000px) {
  .hero { gap: 2.5rem; }
  .nav { gap: 1rem; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 1rem; }
  .container { width: calc(100% - 2rem); }
  .section { padding-block: 3rem; }
  .nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem .5rem; }
  .brand { font-size: 1.45rem; }
  .nav-tools { gap: .25rem; }
  .nav-tools button { font-size: .9rem; padding: .35rem .5rem; }
  .nav-links { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .nav-links { order: 3; width: 100%; gap: 1.4rem; }
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding-block: 3rem; }
  .facts { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0; }
  .fact:nth-child(2) { border: 0; }
  .paper-panel { padding: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* The AI tutor link stands out in the nav on every page. */
.nav-links a.nav-tutor { color: var(--accent); font-weight: 700; }
