/* Layout: a quiet night-lesson page. One oversized Hebrew word sits behind the hero phone;
   forest greens and mint lead; marigold adds a quiet warmth behind the phones. */
:root {
  --ink: #0A0F0B;        /* page */
  --deep: #0E140F;       /* app background, used for bands */
  --panel: #151C17;      /* cards */
  --line: #232B25;       /* hairlines */
  --text: #F1F3EE;       /* primary text */
  --soft: #A9B5AC;       /* secondary text */
  --mute: #929F95;       /* captions */
  --mint: #A8DFC1;       /* primary accent, buttons */
  --on-mint: #0A0F0B;
  --marigold: #F5B83D;   /* small decorative details only */
  --marigold-soft: #F8D18A; /* lighter gold for occasional fine details */
  --sage: #8FB39C;
  --moss: #1B3729;       /* learner bubble green */
  --rose: #F0B9B3;
  --mint-glow: rgba(168, 223, 193, 0.22);
  --mint-faint: rgba(168, 223, 193, 0.10);
  --mint-stroke: rgba(168, 223, 193, 0.16);
  --marigold-glow: rgba(248, 209, 138, 0.24);
  --marigold-faint: rgba(248, 209, 138, 0.08);
  --marigold-line: rgba(248, 209, 138, 0.38);
  --veil: rgba(10, 15, 11, 0.72);
  --bezel-hi: #3A423C;
  --bezel-lo: #121713;
  --bezel-edge: rgba(255, 255, 255, 0.07);
  --shadow: rgba(0, 0, 0, 0.6);

  --display: "Frank Ruhl Libre", "Times New Roman", Georgia, serif;
  --body: "Hanken Grotesk", "Assistant", -apple-system, "Segoe UI", system-ui, sans-serif;
  --hebrew: "Frank Ruhl Libre", "Assistant", "Arial Hebrew", serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --step-3: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem);
  --step-4: clamp(2.8rem, 1.6rem + 4.8vw, 5.2rem);

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 var(--step-0)/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--ink);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
[lang="he"] { font-family: var(--hebrew); }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--marigold); box-shadow: 0 0 0 4px var(--marigold-faint); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--veil);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; min-height: 72px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 0.9375rem; color: var(--soft); }
.nav-links a { text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--mint);
  color: var(--on-mint);
  font: 600 0.9875rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s, box-shadow .16s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px var(--mint-glow); }
.btn--small { min-height: 44px; height: auto; padding: 0 16px; font-size: 0.875rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
/* A dark → mint → marigold horizon, concentrated behind the app preview. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(10, 15, 11, 0.96) 42%, transparent 74%),
    linear-gradient(180deg, var(--ink) 6%, #18372B 38%, var(--mint) 66%, var(--marigold) 86%, var(--ink) 100%);
  -webkit-mask-image: radial-gradient(ellipse 72% 78% at 76% 78%, #000 12%, rgba(0, 0, 0, 0.85) 48%, transparent 90%);
  mask-image: radial-gradient(ellipse 72% 78% at 76% 78%, #000 12%, rgba(0, 0, 0, 0.85) 48%, transparent 90%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 112px);
}
.hero-copy { display: grid; gap: 26px; min-width: 0; position: relative; z-index: 2; }
.hero h1 { font-size: var(--step-4); line-height: 1.02; font-weight: 300; }
.hero h1 em { font-style: normal; font-weight: 500; color: var(--mint); }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--soft); max-width: 34ch; }
.fine { font-size: var(--step--1); color: var(--mute); }

.waitlist { display: grid; gap: 10px; max-width: 470px; }
.field {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color .16s;
}
.field:focus-within { border-color: var(--sage); }
.field input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 400 1rem var(--body);
}
.field input::placeholder { color: var(--mute); }
.field input:focus { outline: none; }
.status { min-height: 1.4em; font-size: var(--step--1); color: var(--soft); padding-left: 18px; }
.status[data-state="ok"] { color: var(--mint); }
.status[data-state="error"] { color: var(--rose); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 600px; }
.giant {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -52%);
  font-family: var(--hebrew);
  font-weight: 300;
  font-size: clamp(9rem, 24vw, 22rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--mint-stroke);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.glow { display: none; }

/* ---------- Phone frame ---------- */
.phone {
  --w: 300px;
  position: relative;
  width: var(--w);
  max-width: 100%;
  padding: calc(var(--w) * .033);
  border-radius: calc(var(--w) * .165);
  background: linear-gradient(155deg, var(--bezel-hi), var(--bezel-lo) 45%, var(--bezel-lo) 70%, var(--bezel-hi));
  box-shadow: 0 0 0 1px var(--bezel-edge), 0 50px 90px -30px var(--shadow), 0 20px 40px -20px var(--shadow);
  margin: 0;
}
.phone img { width: 100%; border-radius: calc(var(--w) * .135); }
.phone::after {
  content: "";
  position: absolute;
  top: calc(var(--w) * .064);
  left: 50%;
  width: calc(var(--w) * .29);
  height: calc(var(--w) * .085);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
.phone--hero { --w: clamp(250px, 25vw, 318px); z-index: 1; }

/* Cover only the photographed orb; the original screen remains the fallback. */
.voice-preview { position: relative; overflow: hidden; border-radius: calc(var(--w) * .135); }
.voice-orb {
  position: absolute;
  left: 18.6364%;
  top: 31.1498%;
  width: 62.7273%;
  aspect-ratio: 1;
  background: #0e140f;
  pointer-events: none;
}
.voice-orb canvas { display: block; width: 100%; height: 100%; }
.voice-orb img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }

.word-card {
  position: absolute;
  z-index: 3;
  left: max(0px, calc(50% - 250px));
  bottom: 13%;
  display: grid;
  gap: 2px;
  padding: 16px 22px 16px 18px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--marigold-line);
  box-shadow: 0 24px 50px -20px var(--shadow);
}
.word-card .he { font-size: 2.1rem; line-height: 1.1; text-align: right; }
.word-card .tr { font-size: 0.8125rem; color: var(--mute); text-align: right; }
.word-card .en { font-size: 0.9375rem; color: var(--text); margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.word-card .en svg { flex: none; color: var(--marigold-soft); }

/* ---------- Fact strip ---------- */
.facts { border-block: 1px solid var(--line); background: var(--deep); }
.facts ul {
  list-style: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-block: 0;
}
.facts li { display: grid; gap: 4px; padding: 26px 24px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong { font-weight: 600; font-size: 0.9875rem; }
.facts span { font-size: var(--step--1); color: var(--mute); line-height: 1.45; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding-block: clamp(80px, 11vw, 144px); }
.section-head { display: grid; gap: 18px; max-width: 680px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head h2 { font-size: var(--step-3); line-height: 1.08; font-weight: 300; }
.section-head .eyebrow::before { content: ""; width: 24px; height: 1px; flex: none; background: var(--marigold-line); }
.section-head p { color: var(--soft); font-size: var(--step-1); line-height: 1.55; }

/* How it works */
.steps { display: grid; gap: clamp(72px, 10vw, 128px); }
.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.step:nth-child(even) .step-text { order: 2; }
.step-text { display: grid; gap: 16px; max-width: 460px; min-width: 0; }
.step-num {
  font-family: var(--display);
  font-weight: 300;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--mint);
  display: flex;
  align-items: center;
  gap: 18px;
  font-variant-numeric: lining-nums;
}
.step-num::after { content: ""; height: 1px; width: 64px; background: var(--marigold-line); }
.step h3 { font-size: var(--step-2); line-height: 1.15; }
.step p { color: var(--soft); }
.step-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 40px;
  border-radius: 32px;
  overflow: clip;
  background: radial-gradient(ellipse at 50% 60%, var(--marigold-faint), transparent 70%);
}
.step-visual .phone { --w: clamp(220px, 22vw, 280px); }
.pair { display: flex; justify-content: center; align-items: flex-end; }
.pair .phone:first-child { transform: translateX(14%) translateY(-6%) rotate(-4deg); opacity: .78; }
.pair .phone:last-child { transform: translateX(-14%); z-index: 1; }
.quote {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--moss);
  font-size: 0.9375rem;
}
.quote small { color: var(--sage); font-size: 0.8125rem; }

/* Practice rail */
.practice { background: var(--deep); border-block: 1px solid var(--line); }
.rail {
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px var(--gutter-r) 28px var(--gutter);
  margin: 0 auto;
  max-width: 1180px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.rail figure { flex: none; display: grid; gap: 18px; margin: 0; scroll-snap-align: start; }
.rail .phone { --w: 208px; }
.rail figcaption { display: grid; gap: 2px; padding-left: 6px; }
.rail figcaption strong { font-weight: 600; font-size: 0.9875rem; }
.rail figcaption span { color: var(--mute); font-size: var(--step--1); }

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}
.skills-intro { display: grid; gap: 18px; align-content: start; position: sticky; top: 120px; }
.skills-intro h2 { font-size: var(--step-3); line-height: 1.08; font-weight: 300; }
.skills-intro p:last-child { color: var(--soft); font-size: var(--step-1); line-height: 1.55; max-width: 34ch; }
.skill-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.skill-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.skill-list h3 { font-family: var(--body); font-size: 1.125rem; font-weight: 600; letter-spacing: 0; }
.skill-list p { color: var(--mute); font-size: 0.9375rem; margin-top: 2px; }
.skill-list .he { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); color: var(--sage); line-height: 1; }
.skill-list li:first-child { padding-top: 0; }
.skill-list { border-top: 0; }

/* Privacy */
.privacy-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(32px, 6vw, 72px);
  border-radius: 32px;
  background: linear-gradient(160deg, var(--panel), var(--deep));
  border: 1px solid var(--line);
}
.privacy-card h2 { font-size: var(--step-3); line-height: 1.08; font-weight: 300; }
.privacy-points { display: grid; gap: 28px; }
.privacy-points div { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; }
.privacy-points svg { grid-row: span 2; color: var(--mint); margin-top: 2px; }
.privacy-points strong { font-weight: 600; }
.privacy-points p { color: var(--soft); font-size: 0.9875rem; }

/* Final CTA */
.final { position: relative; overflow: hidden; text-align: center; }
.final .wrap { display: grid; justify-items: center; gap: 22px; }
.final .he-big { font-size: clamp(3.6rem, 2rem + 8vw, 8.5rem); font-weight: 300; line-height: 1; color: var(--text); }
.final .tr { color: var(--mute); font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; }
.final h2 { font-size: var(--step-2); margin-top: 18px; }
.final p.sub { color: var(--soft); max-width: 44ch; }
.final .waitlist { width: 100%; justify-items: stretch; text-align: left; }
.final::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 20%;
  width: 760px;
  height: 760px;
  max-width: 140%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--marigold-faint), transparent 65%);
  pointer-events: none;
}

footer { border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 32px; color: var(--mute); font-size: var(--step--1); }
.foot .brand { color: var(--text); font-size: 0.9375rem; }
.foot .spacer { margin-left: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero::before {
    background:
      linear-gradient(180deg, var(--ink) 0%, var(--ink) 56%, transparent 72%),
      linear-gradient(180deg, var(--ink) 10%, #18372B 46%, var(--mint) 68%, var(--marigold) 87%, var(--ink) 100%);
    -webkit-mask-image: radial-gradient(ellipse 100% 52% at 50% 78%, #000 12%, rgba(0, 0, 0, 0.85) 50%, transparent 100%);
    mask-image: radial-gradient(ellipse 100% 52% at 50% 78%, #000 12%, rgba(0, 0, 0, 0.85) 50%, transparent 100%);
  }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-copy { justify-items: start; }
  .hero-visual { min-height: 0; padding-block: 24px 8px; }
  .word-card { left: 0; bottom: 8%; }
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .skills-grid, .privacy-card { grid-template-columns: minmax(0, 1fr); }
  .skills-intro { position: static; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .step { grid-template-columns: minmax(0, 1fr); }
  .step:nth-child(even) .step-text { order: 0; }
  .facts li { padding: 20px 16px; }
  .facts li:nth-child(odd) { padding-left: 0; }
}
@media (max-width: 480px) {
  .field { flex-direction: column; border-radius: 24px; }
  .field .btn { width: 100%; }
  .word-card { padding: 12px 16px 12px 14px; }
  .word-card .he { font-size: 1.7rem; }
  .facts ul { grid-template-columns: minmax(0, 1fr); }
  .facts li, .facts li:nth-child(odd) { border-left: 0; padding: 18px 0; }
  .facts li:nth-child(n+2) { border-top: 1px solid var(--line); }
  .pair .phone:first-child { transform: translateX(18%) translateY(-6%) rotate(-4deg); }
  .pair .phone:last-child { transform: translateX(-18%); }
  .step-visual .phone { --w: 200px; }
  .step-visual .pair .phone { --w: 172px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow { animation: none; }
  .btn { transition: none; }
}

/* Launch readiness: preserve the selected palette and page composition. */
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 100; padding: 10px 16px; background: var(--mint); color: var(--on-mint); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.nav-links a, .foot a { display: inline-flex; align-items: center; min-height: 44px; }
.btn { min-height: 44px; height: auto; padding-block: 14px; white-space: normal; text-align: center; }
.btn:active { transform: scale(.96); }
.beta-note { display: grid; gap: 10px; max-width: 470px; }
.beta-note .btn { justify-self: start; }
.preview-note { margin-top: 20px; font-size: var(--step--1); color: var(--mute); }
.privacy-intro { display: grid; gap: 18px; align-content: start; }
.policy-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.policy-links a { color: var(--mint); text-underline-offset: 5px; min-height: 44px; display: inline-flex; align-items: center; }
.legal { max-width: 780px; padding-block: clamp(48px, 8vw, 96px); }
.legal h1 { font-size: var(--step-3); line-height: 1.12; margin-bottom: 20px; }
.legal h2 { font-family: var(--body); font-size: 1.3rem; font-weight: 600; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--soft); }
.legal p + p { margin-top: 16px; }
.legal li + li { margin-top: 8px; }
.legal a { color: var(--mint); text-underline-offset: 4px; overflow-wrap: anywhere; }
.legal .lede { max-width: none; }
.legal .notice { padding: 18px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); margin: 24px 0; }
.legal ul, .legal ol { padding-left: 24px; }
.foot .brand { flex-shrink: 0; }
@media (max-width: 480px) {
  .nav-inner { gap: 8px 12px; }
  .brand { font-size: .9375rem; }
  .nav .btn { font-size: .8125rem; padding-inline: 12px; }
  .skill-list li { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .skill-list .he { justify-self: start; }
  .privacy-card { padding: 26px 20px; border-radius: 26px; }
  .privacy-points div { grid-template-columns: 28px minmax(0, 1fr); gap: 4px 12px; }
  .final .he-big { font-size: clamp(2.75rem, 12vw, 4rem); }
  .foot .spacer { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .btn:hover, .btn:active { transform: none; } }

/* Waitlist uses the existing field, mint button and text tokens. */
.waitlist { text-align: left; position: relative; }
.final .waitlist { margin: 24px auto; }
.consent { display: flex; gap: 10px; align-items: flex-start; color: var(--soft); font-size: var(--step--1); min-height: 44px; padding-block: 8px; cursor: pointer; }
.consent input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--mint); }
.waitlist a { text-decoration: underline; text-underline-offset: 3px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status[data-error="true"] { color: #ffc4c4; }
.btn:disabled { opacity: .65; cursor: wait; transform: none; }
[data-remove-panel] { margin-block: 24px; }
@media (max-width: 480px) {
  .waitlist .field { flex-direction: column; border-radius: 24px; }
  .waitlist .field input { flex: auto; width: 100%; }
  .waitlist .field .btn { width: 100%; }
}

.section-head { grid-template-columns: minmax(0, 1fr); }
.section-head h2 { overflow-wrap: anywhere; }
