/* Mishnah Max — promo site. The look is the app's own as it ships in Nov 2026
   (MishnahMax/Theme.swift): white paper on the dawn backdrop, wine as the one
   strong colour, gold hairlines, MonoLabel's mono eyebrows, the reader's
   sentence-number tile, Home's stat and seder cards, and the opening story's
   wine ground. Real UI in a real frame, one piece of it lifted off the screen.
   One stylesheet serves both directions: layout uses logical properties, and
   --dir flips the few transforms that need it. reader.css builds on it. */

:root {
  /* Theme.swift, white paper */
  --paper: #FFFFFF;
  --card: #F5F4F1;
  --fill: #ECEAE5;
  --rule: #DDD9D1;
  --fade: #FAFAF8;
  --ink-300: #AAA399;
  --ink-500: #756C62;
  --ink-700: #433930;
  --ink-900: #1B1713;
  --wine: #5C2318;
  --wine-2: #6B2D20;
  --wine-3: #3A1810;
  --gold: #C9A13A;
  --olive: #6B7A3E;
  --indigo: #3A3766;
  --cream: #F4ECDA;
  /* the dawn backdrop */
  --sky: #EEF1F7;
  --blush: #F9EEE6;
  /* the opening story's wine ground (top, bottom) and its pictures' window */
  --night-top: #3B1710;
  --night-bottom: #1F0D09;
  --window-top: #37160F;
  --window-bottom: #2B120B;
  --gold-on-wine: #D6B054;
  /* the reader's tap highlight */
  --lit: #F1E6C9;
  --lit-line: #D9B865;

  /* Names reader.css was written against, kept so it reads the new paper. */
  --parch-0: var(--paper);
  --parch-1: var(--card);
  --parch-2: var(--fill);
  --parch-3: var(--rule);

  /* New York on Apple devices (ui-serif), Newsreader elsewhere. Until
     Newsreader arrives, Georgia sized to match it (fonts.css), the text one
     for text and the display one for the big headlines. */
  --serif: ui-serif, "Newsreader", "Newsreader Fallback", Georgia, "Times New Roman", serif;
  --serif-display: ui-serif, "Newsreader", "Newsreader Display Fallback", Georgia, "Times New Roman", serif;
  --hebrew: "Frank Ruhl Libre", "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --body: var(--serif);

  --dir: 1;
  --gutter: clamp(16px, 5vw, 72px);
  --header-h: 68px;
  --radius: 18px;
  --shadow-soft: 0 1px 2px rgba(27, 23, 19, 0.04), 0 14px 34px -16px rgba(92, 35, 24, 0.22);
  --shadow-lift: 0 2px 6px rgba(70, 48, 36, 0.10), 0 30px 60px -24px rgba(70, 48, 36, 0.38);
  color-scheme: light;
}

[dir="rtl"] {
  --dir: -1;
  --body: var(--hebrew);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
video { display: block; max-width: 100%; height: auto; }

a { color: inherit; }
a:focus-visible,
button:focus-visible,
summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

:lang(he) { font-family: var(--hebrew); }
:lang(en) { font-family: var(--serif); }
:is(h1, .section-head h2, .feature h2, .cta h2):lang(en) { font-family: var(--serif-display); }

h1, h2, h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
[dir="rtl"] :is(h1, h2, h3) { letter-spacing: 0; font-weight: 600; }

em { font-style: italic; color: var(--wine); }
/* Hebrew has no italic: the accent is the colour alone. */
[dir="rtl"] em,
em:lang(he) { font-style: normal; }

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--wine);
  color: var(--paper);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 15px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* --- the dawn backdrop: Theme.swift's PageBackdrop .dawn -------------------- */

.dawn {
  background:
    radial-gradient(ellipse 80% 45% at 50% 100%, rgba(201, 161, 58, 0.22), rgba(201, 161, 58, 0) 70%),
    linear-gradient(180deg, var(--sky) 0%, var(--blush) 55%, var(--paper) 100%);
}

/* --- small parts -------------------------------------------------------------- */

/* MonoLabel: SF Mono, tracked, uppercase; Hebrew gets the modern face. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wine);
}
[dir="rtl"] .eyebrow { font-family: var(--sans); font-size: 14px; letter-spacing: 0; font-weight: 600; text-transform: none; }
.eyebrow .rule { flex: 0 0 34px; height: 1px; background: var(--gold); }
.eyebrow--center { justify-content: center; }

.lede {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--ink-700);
  max-width: 36em;
}

.note,
.fine {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-500);
}
[dir="rtl"] :is(.note, .fine) { font-family: var(--sans); font-size: 13px; letter-spacing: 0; }

.points {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink-700);
}
.points li { display: flex; gap: 12px; align-items: baseline; }
.points li::before {
  content: "";
  flex: 0 0 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-2px);
}

.badge { display: inline-block; line-height: 0; border-radius: 9px; }
.badge img { height: 48px; width: auto; }
.badge--small img { height: 34px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.button--ghost {
  color: var(--wine);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(92, 35, 24, 0.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.button--ghost:hover { background: var(--paper); border-color: var(--wine); }
/* The app's wine button ("Begin learning", "Next sentence"). Stands in for the
   App Store badge until the listing is live. */
.button--wine {
  color: var(--cream);
  background: linear-gradient(180deg, var(--wine-2), var(--wine));
  border: 0;
  box-shadow: 0 10px 22px -12px rgba(92, 35, 24, 0.8);
  cursor: pointer;
}
.button--wine:hover { background: linear-gradient(180deg, #7A3526, var(--wine-2)); }
.button--small { min-height: 36px; padding: 0 16px; font-size: 14px; }

/* --- the launch-notice form ------------------------------------------------------ */

.notify-form { display: grid; gap: 10px; width: 100%; max-width: 520px; text-align: start; }
/* The honeypot: bots fill every field in the HTML; people never see this one.
   display:none, not an off-screen offset, which on an RTL page widens the scroll area. */
.notify-form__hp { display: none; }
.notify-form__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
}
[dir="rtl"] .notify-form__label { font-family: var(--sans); font-size: 14px; letter-spacing: 0; font-weight: 600; text-transform: none; }
.notify-form__row { display: flex; gap: 10px; }
.notify-form__input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink-900);
  font: 17px/1.2 var(--sans);
  box-shadow: inset 0 1px 2px rgba(27, 23, 19, 0.04);
}
.notify-form__input::placeholder { color: var(--ink-300); }
.notify-form__input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.notify-form__submit { min-height: 52px; border-radius: 16px; flex: none; }
.notify-form__fine { margin: 2px 0 0; font-family: var(--sans); font-size: 13.5px; color: var(--ink-500); }
.notify-form__fine a { color: var(--wine); }
.cta .notify-form { margin: 4px auto 6px; }
.cta__lede { max-width: 32em; margin-inline: auto; text-align: center; }
@media (max-width: 480px) {
  .notify-form__row { flex-direction: column; }
}

.notify-page main,
.notfound-page main { min-height: calc(100vh - 220px); }
.notify {
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 48px) var(--gutter) 96px;
}
.notify__card {
  display: grid;
  gap: 20px;
  justify-items: start;
  width: min(100%, 640px);
  padding: clamp(28px, 5vw, 52px);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 30px;
  box-shadow: var(--shadow-lift);
}
.notify__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--wine-2), var(--wine-3));
  color: var(--cream);
  font: 700 25px/1 var(--hebrew);
  box-shadow: 0 8px 18px -8px rgba(58, 24, 16, 0.7);
}
.notify h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.04; }
.notify__card p { margin: 0; }
.notify__web {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  width: 100%;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-500);
}
.arrow { display: inline-block; transition: transform 0.25s ease; }
a:hover > .arrow { transform: translateX(calc(4px * var(--dir))); }

/* The reader's sentence-number tile: wine, rounded, a serif numeral. */
.num-tile {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(180deg, var(--wine-2), var(--wine));
  color: var(--paper);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
  box-shadow: 0 6px 14px -6px rgba(92, 35, 24, 0.6);
}

.section-head {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; }
.section-head .lede { margin-inline: auto; }

/* --- Liquid Glass ------------------------------------------------------------- */
/* The app's glass (.glassEffect(.regular) in SharedComponents.swift): frosted
   white over whatever passes beneath, a bright rim along the top edge, a
   hairline and a soft shadow. With a pointer, a light follows it across the
   surface and, in a bar, a lens glides under the item pointed at (site.js and
   reader.js set --mx/--my, .is-lit and the lens). */

.glass {
  position: relative;
  background: rgba(255, 255, 255, 0.58);
  -webkit-backdrop-filter: blur(22px) saturate(1.9);
  backdrop-filter: blur(22px) saturate(1.9);
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.95),
    inset 0 -1px 0.5px rgba(255, 255, 255, 0.4),
    0 0 0 0.5px rgba(27, 23, 19, 0.11),
    0 1px 2px rgba(27, 23, 19, 0.05),
    0 10px 28px -12px rgba(70, 48, 36, 0.38);
}
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(130px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 72%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.glass.is-lit::after { opacity: 1; }
.glass-lens {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--lw, 0);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 0.5px rgba(27, 23, 19, 0.06), 0 4px 12px -6px rgba(27, 23, 19, 0.3);
  transform: translateX(var(--lx, 0));
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.5s cubic-bezier(0.25, 1.3, 0.45, 1),
    width 0.5s cubic-bezier(0.25, 1.3, 0.45, 1),
    opacity 0.2s ease;
}
.glass-lens.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .glass-lens { transition: opacity 0.2s ease; }
}

/* --- header ------------------------------------------------------------------ */
/* Clear, as the app's bars are: only the glass shows. Once the page scrolls
   under it, a fade of paper rises behind (the app's scroll-edge effect). */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  margin-bottom: calc(-1 * var(--header-h));
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -22px 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.74) 58%, rgba(255, 255, 255, 0) 100%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent);
  mask-image: linear-gradient(180deg, #000 58%, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.site-header.is-solid::before { opacity: 1; }
/* site.js watches this: once it scrolls out of view, the fade comes up. */
.header-sentinel {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 1px;
  height: 8px;
  pointer-events: none;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-900);
}
.brand__icon { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 6px rgba(58, 24, 16, 0.25); }
.brand__icon--blank { display: inline-block; background: var(--wine); }
.brand__name { font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }

/* The iPhone page's section links: one glass pill, the lens under the
   pointer. */
.site-nav { flex: 1; display: flex; justify-content: center; }
.site-nav ul { margin: 0; padding: 0; list-style: none; }
.site-nav__links { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; }
.site-nav__links li { position: relative; z-index: 1; }
.site-nav__links a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s, scale 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.site-nav__links a:hover { color: var(--ink-900); }
.site-nav__links:not(.has-lens) a:hover { background: rgba(255, 255, 255, 0.75); }
.site-nav__links a:active { scale: 0.94; transition-duration: 0.2s, 0.2s, 0.1s; }
.site-nav__links li:first-child a { color: var(--wine); font-weight: 600; }

.site-nav__menu { display: none; position: relative; }
.site-nav__menu summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
}
.site-nav__menu summary::-webkit-details-marker { display: none; }
.burger,
.burger::before,
.burger::after {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--ink-900);
  border-radius: 2px;
}
.burger { position: relative; }
.burger::before,
.burger::after { content: ""; position: absolute; inset-inline-start: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.site-nav__menu ul {
  position: absolute;
  inset-inline-end: 0;
  top: 54px;
  min-width: 220px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  backdrop-filter: blur(24px) saturate(1.8);
  border-radius: 20px;
  box-shadow: inset 0 1px 0.5px #fff, 0 0 0 0.5px rgba(27, 23, 19, 0.12), var(--shadow-lift);
  display: grid;
}
.site-nav__menu ul a { display: block; padding: 12px 14px; border-radius: 12px; font-family: var(--sans); font-size: 16px; color: var(--ink-900); text-decoration: none; }
.site-nav__menu ul a:hover { background: rgba(27, 23, 19, 0.05); }

/* The language and the account (or the App Store badge), in glass of their own. */
.site-header__end {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  padding-inline-start: 15px;
  border-radius: 999px;
}
.lang-switch {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
  text-decoration: none;
  white-space: nowrap;
}
.lang-switch:lang(he) { font-family: var(--hebrew); font-size: 16px; }
.lang-switch:hover { color: var(--wine); }
.site-header__end .badge img { height: 36px; }

@media (max-width: 960px) {
  .site-nav__links { display: none; }
  .site-nav { order: 3; flex: 0; }
  .site-nav__menu { display: block; }
  .site-header__inner { gap: 10px; }
  .site-header__end { margin-inline-start: auto; }
}
@media (max-width: 420px) {
  .site-header__end .badge,
  .site-header__end .button { display: none; }
  .site-header:not(.reader-header) .site-header__end { padding-inline-end: 15px; }
}
.brand__name,
.site-header .button { white-space: nowrap; }

/* --- hero --------------------------------------------------------------------- */

.hero { padding: calc(var(--header-h) + 56px) var(--gutter) 120px; overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  max-width: 1240px;
  margin: 0 auto;
}
.hero__copy { display: grid; gap: 20px; justify-items: start; }
.wordmark {
  margin: 4px 0 -6px;
  font-family: var(--hebrew);
  font-size: clamp(38px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1;
  color: var(--wine);
}
.hero h1 {
  font-size: clamp(46px, 6.2vw, 86px);
  line-height: 1.0;
  letter-spacing: -0.025em;
}
[dir="rtl"] .hero h1 { line-height: 1.12; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }

/* The hero's phones arrive one after the other, then rest. */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero__copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero__copy > :nth-child(4) { animation-delay: 0.2s; }
  .hero__copy > :nth-child(5) { animation-delay: 0.28s; }
  .hero__copy > :nth-child(6) { animation-delay: 0.34s; }
  .hero .device--back { animation: rise-back 1.2s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero .device--front { animation: rise 1.1s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero .popout { animation: lift 0.9s 0.9s cubic-bezier(0.2, 0.8, 0.2, 1.05) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes rise-back {
  from { opacity: 0; transform: translateY(40px) rotate(calc(9deg * var(--dir))); }
}
@keyframes lift {
  from { opacity: 0; transform: translate(-50%, -46%) rotate(0deg) scale(0.94); }
}

@media (max-width: 900px) {
  .hero { padding-top: calc(var(--header-h) + 28px); padding-bottom: 96px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* --- devices ------------------------------------------------------------------- */

.device { margin: 0; }
.device__box {
  position: relative;
  filter: drop-shadow(0 30px 34px rgba(70, 48, 36, 0.20)) drop-shadow(0 6px 10px rgba(70, 48, 36, 0.10));
}
.device__screen { position: absolute; overflow: hidden; background: var(--paper); }
.device__media { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device__bezel { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.device__placeholder {
  position: absolute;
  inset: 3% 6%;
  display: grid;
  place-items: center;
  border-radius: 40px;
  background: var(--card);
  border: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-500);
  text-align: center;
  padding: 12px;
}
/* The lifted piece: centred over its own spot, a little larger, tilted.
   Its x/y are the frame's, which never mirrors, so they stay physical. */
.popout {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1%);
  max-width: none;
  transform: translate(-50%, -50%) rotate(calc(var(--rot) * 1deg));
  filter: drop-shadow(0 26px 28px rgba(70, 48, 36, 0.30)) drop-shadow(0 4px 8px rgba(70, 48, 36, 0.14));
  z-index: 4;
}
.loose-card {
  position: absolute;
  z-index: 4;
  width: 60%;
  inset-inline-end: -2%;
  top: 30%;
  transform: rotate(calc(var(--rot) * 1deg * var(--dir)));
  filter: drop-shadow(0 26px 28px rgba(70, 48, 36, 0.28)) drop-shadow(0 4px 8px rgba(70, 48, 36, 0.12));
}

/* A stage holds one phone, two (the second behind), or a phone and a card. */
.stage {
  position: relative;
  width: min(100%, 600px);
  aspect-ratio: 600 / 700;
  margin-inline: auto;
}
.stage .device { position: absolute; top: 0; }
.stage .device--front { width: 56%; left: 50%; transform: translateX(-50%); z-index: 2; }
.stage--pair .device--front { left: auto; transform: none; inset-inline-start: 4%; }
.stage--pair .device--back {
  width: 48%;
  inset-inline-end: 2%;
  top: 8%;
  z-index: 1;
  transform: rotate(calc(5deg * var(--dir)));
  opacity: 0.98;
}
.stage--card .device--front { left: auto; transform: none; inset-inline-start: 6%; }
/* iPhone Duo: folded it is wider than an iPhone, unfolded it lies on its side. */
.stage--duo-closed .device--front { width: 76%; }
.stage--duo { aspect-ratio: 1856 / 1348; }
.stage--duo .device--front { width: 100%; }
.hero .stage { width: min(100%, 640px); }
@media (max-width: 900px) {
  .stage, .hero .stage { width: min(100%, 470px); }
}

/* --- facts: Home's stat cards ---------------------------------------------------- */

.facts { position: relative; z-index: 3; margin-top: -64px; padding: 0 var(--gutter); }
.facts__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
}
.fact {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.fact__icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.fact__icon--0 { background: #EFE0D9; color: var(--wine); }
.fact__icon--1 { background: #F4E9CC; color: #9C7A1E; }
.fact__icon--2 { background: #E3E8D6; color: var(--olive); }
.fact__icon--3 { background: #E3E2EE; color: var(--indigo); }
.fact__n { margin: 0; font-family: var(--serif); font-size: 32px; line-height: 1; letter-spacing: -0.02em; }
.fact__n--accent { font-style: italic; color: var(--wine); }
[dir="rtl"] .fact__n--accent { font-style: normal; font-family: var(--hebrew); font-weight: 600; }
.fact__label {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-500);
}
[dir="rtl"] .fact__label { font-family: var(--sans); font-size: 13px; letter-spacing: 0; }
@media (max-width: 860px) {
  .facts__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- the live sentence (its parts are styled by reader.css) ----------------------- */

.live { padding: 120px var(--gutter) 110px; }
.live__page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 26px clamp(18px, 3.4vw, 44px) 30px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
}
.live__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.live__bar span:first-child { color: var(--wine); }
[dir="rtl"] .live__bar { font-family: var(--sans); font-size: 14px; letter-spacing: 0; }
.live__rule { flex: 1; height: 1px; background: var(--rule); }
.live__units .unit { border-top: 0; padding-top: 14px; }
.live__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin: 8px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-500);
}
.live__more { color: var(--wine); font-weight: 600; text-decoration: none; }
.live__note {
  max-width: 640px;
  margin: 26px auto 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-500);
}
@media (min-width: 980px) {
  /* Text on one side, the picture beside it, as the iPad lays a sentence out. */
  .live .unit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: repeat(7, auto) 1fr;
    column-gap: 48px;
  }
  .live .unit > * { grid-column: 1; }
  .live .unit > .scene { grid-column: 2; grid-row: 1 / -1; align-self: start; margin-top: 4px; }
}

/* --- features -------------------------------------------------------------------- */

.feature { padding: 120px var(--gutter); }
.feature:nth-child(even) { background: var(--fade); }
.feature__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 72px;
  max-width: 1180px;
  margin: 0 auto;
}
.feature--flip .feature__copy { order: 2; }
.feature__copy { display: grid; gap: 20px; }
.feature__head { display: flex; align-items: center; gap: 14px; }
.feature h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.05; }
.feature .fine { margin-top: 8px; }
@media (max-width: 900px) {
  .feature { padding: 88px var(--gutter); }
  .feature__inner { grid-template-columns: 1fr; gap: 44px; }
  .feature--flip .feature__copy { order: 0; }
}

/* --- extras ----------------------------------------------------------------------- */

.extras { padding: 40px var(--gutter) 110px; }
.extras__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1080px;
  margin: 0 auto;
}
.extra { padding: 26px 0 0; border-top: 1px solid var(--gold); }
.extra h3 { font-size: 22px; margin-bottom: 8px; }
.extra p { margin: 0; font-family: var(--sans); font-size: 16px; color: var(--ink-700); }
@media (max-width: 860px) {
  .extras__grid { grid-template-columns: 1fr; }
}

/* --- the six sedarim: Home's seder cards -------------------------------------------- */

.sedarim { padding: 110px var(--gutter) 120px; background: linear-gradient(180deg, var(--paper), var(--blush) 140%); }
.sedarim__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.seder-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 20px 22px 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--t1), var(--t2));
  border: 1px solid rgba(170, 163, 153, 0.35);
  color: var(--ink-900);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.seder-card:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px var(--accent); }
.seder-card__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-500);
}
[dir="rtl"] .seder-card__label { font-family: var(--sans); font-size: 13px; letter-spacing: 0; }
.seder-card__he { margin-top: 10px; font-family: var(--hebrew); font-size: 34px; font-weight: 700; line-height: 1.1; }
.seder-card__name { font-family: var(--serif); font-size: 22px; font-weight: 500; margin-top: 2px; }
.seder-card__theme { font-family: var(--sans); font-size: 14px; font-style: italic; color: var(--ink-700); margin-top: 2px; }
[dir="rtl"] .seder-card__theme { font-style: normal; }
.seder-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-700);
}
[dir="rtl"] .seder-card__foot { font-family: var(--sans); font-size: 13px; letter-spacing: 0; }
.seder-card__open { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--accent); }
.seder-card:hover .arrow { transform: translateX(calc(4px * var(--dir))); }
@media (max-width: 860px) {
  .sedarim__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .seder-card { min-height: 176px; padding: 16px; }
  .seder-card__he { font-size: 28px; }
  .seder-card__theme { font-size: 13px; }
  /* Two to a row on a phone, as on Home: the card is the link, so its count is enough. */
  .seder-card__open { display: none; }
  .seder-card__foot span { white-space: nowrap; }
}

/* --- every screen ------------------------------------------------------------------- */

.screens { padding: 120px var(--gutter); }
.screens__stage {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr 0.42fr;
  align-items: end;
  gap: clamp(16px, 2.6vw, 36px);
  max-width: 1240px;
  margin: 0 auto;
}
.screens__slot--duo { display: grid; justify-items: center; gap: 16px; }
.screens__slot--duo .device { width: 100%; }
/* Without a Duo capture: the iPad and the iPhone, and the Duo's badge under them. */
.screens__stage--two { grid-template-columns: 1.6fr 0.5fr; max-width: 980px; align-items: center; }
.duo-badge.duo-badge--solo { display: table; margin: 30px auto 0; }
.duo-badge {
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-700);
}
[dir="rtl"] .duo-badge { font-family: var(--sans); font-size: 13px; letter-spacing: 0; }
.screens__captions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1080px;
  margin: 48px auto 0;
}
[dir="rtl"] .screens__captions .label { font-family: var(--sans); font-size: 14px; letter-spacing: 0; font-weight: 600; }
.screens__captions .label {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--wine);
}
.screens__captions p:not(.label) { margin: 0; font-family: var(--sans); font-size: 16px; color: var(--ink-700); }
@media (max-width: 860px) {
  .screens__stage,
  .screens__stage--two { grid-template-columns: 1fr; justify-items: center; }
  .screens__slot--iphone { width: 46%; }
  .screens__captions { grid-template-columns: 1fr; }
}

/* --- the story: the opening pages of the app, on their wine ground -------------------- */

.story {
  padding: 110px 0 100px;
  background: linear-gradient(180deg, var(--night-top), var(--night-bottom));
  color: var(--cream);
}
.story .section-head { padding: 0 var(--gutter); }
.story .eyebrow { color: var(--gold-on-wine); }
.story .eyebrow .rule { background: var(--gold-on-wine); opacity: 0.7; }
.story h2 { color: var(--cream); }
.story h2 em { color: var(--gold-on-wine); }
.story .lede { color: rgba(244, 236, 218, 0.72); }

.story__track {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 6px calc(50% - min(270px, 43vw)) 10px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  outline: none;
}
/* Arrow keys page through the story when the track has focus; show where it is. */
.story__track:focus-visible { outline: 2px solid var(--gold-on-wine); outline-offset: 4px; border-radius: 12px; }
.story__track::-webkit-scrollbar { display: none; }
.beat {
  flex: 0 0 min(540px, 86vw);
  scroll-snap-align: center;
  transition: opacity 0.4s;
}
.js .beat:not(.is-current) { opacity: 0.38; }
.beat__pic {
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(180deg, var(--window-top), var(--window-bottom));
  aspect-ratio: 720 / 675;
}
.beat__pic img { width: 100%; height: 100%; object-fit: cover; }
.beat__text { padding: 26px 8px 0; }
.beat__kicker {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold-on-wine);
}
[dir="rtl"] .beat__kicker { font-family: var(--sans); font-size: 14px; letter-spacing: 0; }
.beat h3 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; color: var(--cream); }
.beat p:not(.beat__kicker) { margin: 12px 0 0; font-size: 18px; line-height: 1.55; color: rgba(244, 236, 218, 0.78); }

.story__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 36px;
  padding: 0 var(--gutter);
}
.story__dots { display: flex; gap: 8px; }
.story__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(244, 236, 218, 0.28);
  transition: width 0.3s, background-color 0.3s;
}
.story__dot.is-current { width: 26px; background: var(--gold-on-wine); }
.story__btn {
  display: none;
  min-height: 46px;
  min-width: 112px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.js .story__btn { display: inline-block; }
.story__btn--next { background: var(--cream); color: var(--wine-3); }
.story__btn--prev { background: rgba(244, 236, 218, 0.1); color: var(--cream); }
.story__btn:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 480px) {
  .story__controls { gap: 12px; }
  .story__btn { min-width: 0; padding: 0 16px; }
  .story__dots { gap: 6px; }
}

/* --- pricing ------------------------------------------------------------------------ */

.pricing { padding: 120px var(--gutter); }
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}
.plan {
  padding: 32px 32px 30px;
  border-radius: 26px;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-soft);
}
.plan__tag {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
}
[dir="rtl"] .plan__tag { font-family: var(--sans); font-size: 14px; letter-spacing: 0; }
.plan h3 { font-size: 30px; }
.plan .points { font-size: 15.5px; }
.plan__note { margin: 22px 0 0; font-family: var(--sans); font-size: 14px; color: var(--ink-500); }
.plan--pro {
  background: radial-gradient(120% 80% at 80% 0%, rgba(214, 176, 84, 0.18), transparent 60%),
    linear-gradient(160deg, var(--wine-2), var(--wine-3));
  border-color: transparent;
  color: var(--cream);
}
.plan--pro .plan__tag { color: var(--gold-on-wine); }
.plan--pro .points { color: rgba(244, 236, 218, 0.86); }
.plan--pro .points li::before { background: var(--gold-on-wine); }
.plan--pro .plan__note { color: rgba(244, 236, 218, 0.6); }
@media (max-width: 760px) {
  .plans { grid-template-columns: 1fr; }
}

/* --- faq ---------------------------------------------------------------------------- */

.faq { padding: 110px var(--gutter); background: var(--fade); }
.faq__list { max-width: 820px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary {
  position: relative;
  padding: 22px 0;
  padding-inline-end: 40px;
  font-size: 21px;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 300;
  color: var(--wine);
  transition: transform 0.25s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { margin: 0 0 24px; font-family: var(--sans); font-size: 16.5px; line-height: 1.6; color: var(--ink-700); }
.faq__item a { color: var(--wine); font-weight: 600; text-decoration: none; }

/* --- the last word ------------------------------------------------------------------ */

.cta { display: grid; justify-items: center; gap: 26px; padding: 130px var(--gutter) 150px; text-align: center; }
.cta h2 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; }
.cta__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }

/* --- footer ------------------------------------------------------------------------- */

.site-footer { padding: 56px var(--gutter) 64px; background: var(--paper); border-top: 1px solid var(--rule); }
.site-footer__inner { display: grid; gap: 18px; max-width: 1080px; margin: 0 auto; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--sans);
  font-size: 15px;
}
.site-footer__links a { color: var(--ink-700); text-decoration: none; }
.site-footer__links a:hover { color: var(--wine); }
.site-footer__fine { margin: 0; font-family: var(--sans); font-size: 13.5px; color: var(--ink-500); max-width: 60em; }

/* --- arrival ------------------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
