/* TalkIvrit landing page. Colours and fonts follow the Dibur app (src/styles.css). */

@font-face { font-family: 'Rubik'; font-style: normal; font-display: swap; font-weight: 300 900; src: url('/fonts/rubik-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: 'Rubik'; font-style: normal; font-display: swap; font-weight: 300 900; src: url('/fonts/rubik-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: 'Frank Ruhl Libre'; font-style: normal; font-display: swap; font-weight: 300 900; src: url('/fonts/frank-ruhl-libre-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: 'Frank Ruhl Libre'; font-style: normal; font-display: swap; font-weight: 300 900; src: url('/fonts/frank-ruhl-libre-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; }

:root {
  --paper: #f4f0e6;
  --card: #fffdf8;
  --ink: #12201a;
  --muted: #5a645d;
  --line: #ddd5c3;
  --stage: #101914;
  --stage-card: #18241d;
  --on-stage: #f4f0e6;
  --on-stage-muted: #c5cbc4;
  --lime: #c9ef5b;
  --lime-hover: #d9f78a;
  --green: #1d5c45;
  --notice: #fbf0d4;
  --notice-line: #e8d49c;
  --focus: #1d5c45;
  --font-ui: 'Rubik', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-display: 'Frank Ruhl Libre', 'David', Georgia, serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1511;
    --card: #16211b;
    --ink: #f4f0e6;
    --muted: #b4bdb5;
    --line: #2b3a31;
    --notice: #2a2413;
    --notice-line: #5c4c1f;
    --focus: #c9ef5b;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-ui); font-size: 1.0625rem; line-height: 1.6; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 0.25rem; }
h1, h2, h3 { line-height: 1.15; }

.wrap { max-width: 68rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 48rem) { .wrap { padding-inline: 2rem; } }

/* Dark band: header and hero */
.stage { background: var(--stage); color: var(--on-stage); --focus: #c9ef5b; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 600; font-size: 1.25rem; }
.brand svg { width: 2.25rem; height: 2.25rem; flex: none; }
.lang-link { border: 1px solid rgb(244 240 230 / 0.4); border-radius: 999px; padding: 0.35rem 0.95rem; text-decoration: none; font-size: 0.9375rem; }
.lang-link:hover { border-color: var(--lime); }

.hero { display: grid; gap: 2.5rem; align-items: center; padding-block: 2rem 4rem; }
@media (min-width: 56rem) { .hero { grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; padding-block: 3rem 5rem; } }
.eyebrow { margin: 0 0 1rem; color: var(--lime); font-size: 0.875rem; font-weight: 500; }
h1 { margin: 0 0 1.25rem; font-family: var(--font-display); font-weight: 600; font-size: 2.5rem; }
@media (min-width: 48rem) { h1 { font-size: 3.5rem; } }
@media (min-width: 64rem) { h1 { font-size: 4rem; } }
.lead { margin: 0 0 2rem; max-width: 36rem; color: var(--on-stage-muted); font-size: 1.1875rem; }
.cta { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.6rem; border-radius: 999px; background: var(--lime); color: #12201a; font-weight: 600; font-size: 1.0625rem; text-decoration: none; }
.cta:hover { background: var(--lime-hover); }
.cta svg { width: 1.15em; height: 1.15em; }
[dir='rtl'] .cta svg { transform: scaleX(-1); }
.cta-note { margin: 1rem 0 0; max-width: 34rem; color: var(--on-stage-muted); font-size: 0.9375rem; }

/* Example conversation */
.sample { display: grid; gap: 0.9rem; margin: 0; padding: 1.25rem; border: 1px solid rgb(244 240 230 / 0.14); border-radius: 1.25rem; background: var(--stage-card); }
.sample figcaption { color: var(--on-stage-muted); font-size: 0.8125rem; }
.turn { max-width: 90%; }
.turn.tutor { justify-self: start; }
.turn.learner { justify-self: end; text-align: end; }
.bubble { width: fit-content; max-width: 100%; margin: 0; padding: 0.65rem 1rem; border-radius: 1.1rem; font-size: 1.0625rem; line-height: 1.5; text-align: start; }
.learner .bubble { margin-inline-start: auto; }
.tutor .bubble { background: #fffdf8; color: #12201a; border-end-start-radius: 0.35rem; }
.learner .bubble { background: var(--lime); color: #12201a; border-end-end-radius: 0.35rem; }
.gloss { margin: 0.3rem 0.5rem 0; color: var(--on-stage-muted); font-size: 0.8125rem; }

/* Light sections */
.section { padding-block: 3.5rem; }
.section + .section { padding-top: 0; }
.section-title { margin: 0 0 0.75rem; font-family: var(--font-display); font-weight: 600; font-size: 2rem; }
.section-lead { margin: 0 0 2rem; max-width: 42rem; color: var(--muted); }

.steps { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li, .feature { padding: 1.4rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--card); }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: 0.85rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 600; }
.steps h3, .feature h3 { margin: 0 0 0.4rem; font-size: 1.1875rem; }
.steps p, .feature p { margin: 0; color: var(--muted); }

.features { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .features { grid-template-columns: repeat(2, 1fr); } }
.icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 1rem; border-radius: 0.75rem; background: var(--lime); color: #12201a; }
.icon svg { width: 1.35rem; height: 1.35rem; }

.notice { max-width: 48rem; padding: 1.5rem; border: 1px solid var(--notice-line); border-radius: 1rem; background: var(--notice); }
.notice h2 { margin: 0 0 0.6rem; font-size: 1.25rem; }
.notice p { margin: 0 0 0.6rem; }
.notice p:last-child { margin-bottom: 0; }

.site-footer { padding-block: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink); }

/* 404 */
.not-found { padding-block: 5rem; }
.not-found p { margin: 0 0 1rem; }
