/* The app's site: same tokens as src/lib/tokens.ts (change both together). */
/* The old Mock Interviewer look, his call 2026-11-20: grey ground, white cards, one orange. Heebo (OFL), self-hosted. */
@font-face { font-family: Heebo; font-weight: 400; font-display: swap; src: url("/fonts/Heebo_400Regular.ttf") format("truetype"); }
@font-face { font-family: Heebo; font-weight: 700; font-display: swap; src: url("/fonts/Heebo_700Bold.ttf") format("truetype"); }
@font-face { font-family: Heebo; font-weight: 800; font-display: swap; src: url("/fonts/Heebo_800ExtraBold.ttf") format("truetype"); }

:root {
  color-scheme: light;
  --ground: #EEF1F4; --surface: #fff; --ink: #1C2430; --muted: #5A6472; --line: #DDE2E8;
  --accent: #C2410C; --on-accent: #fff; --second: #FFE3CC; --on-second: #5A3A26;
  --deep: #1C2430; --on-deep: #EEF1F4; --muted-deep: #9AA4B2; --accent-text: #C2410C;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #12161C; --surface: #1C222B; --ink: #EEF1F4; --muted: #9AA4B2; --line: #2C343F;
    --accent: #C2410C; --on-accent: #fff; --second: #4A2A17; --on-second: #FFE3CC;
    --deep: #2C343F; --on-deep: #EEF1F4; --muted-deep: #B4BDC8; --accent-text: #FF8A4C;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--line) var(--ground); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 Heebo, -apple-system, system-ui, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--second); color: var(--on-second); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
main { max-width: 720px; margin: 0 auto; padding: 32px 20px 80px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 720px; margin: 0 auto; padding: 12px 20px; }
.mark { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 24px; letter-spacing: -0.02em; min-height: 44px; display: flex; align-items: center; }
.mark b { color: var(--accent-text); font-weight: 800; }
nav { display: flex; gap: 18px; white-space: nowrap; }
nav a { color: var(--muted); text-decoration: none; font-weight: 500; min-height: 44px; display: flex; align-items: center; transition: color 0.2s; }
nav a:hover { color: var(--ink); }
h1 { font-size: clamp(36px, 9vw, 48px); line-height: 1.06; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; text-wrap: balance; }
h2 { font-size: 24px; line-height: 1.2; font-weight: 800; margin: 48px 0 12px; text-wrap: balance; }
p, li { color: var(--muted); }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* The store button (Apple's official badge replaces it once downloaded with his OK). */
.store { display: inline-flex; flex-direction: column; justify-content: center; min-height: 54px; padding: 0 22px; border-radius: 12px; background: #000; color: #fff; text-decoration: none; line-height: 1.1; transition: transform 0.15s, filter 0.2s; }
.store small { font-size: 11px; }
.store strong { font-size: 20px; font-weight: 700; }
.store:hover { filter: brightness(1.25); transform: translateY(-1px); }
.store:active { transform: scale(0.97); }
.cta { display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform 0.15s, filter 0.2s; }
.cta:hover { filter: brightness(1.1); transform: translateY(-1px); }
.cta:active { transform: scale(0.97); }

details { background: var(--surface); border-radius: 18px; padding: 16px 20px; margin: 12px 0; }
summary { cursor: pointer; font-weight: 700; color: var(--ink); }
footer { display: flex; justify-content: center; gap: 18px; color: var(--muted); font-size: 14px; padding: 24px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

/* One language shows at a time (lang.js); both live in the same page so they never drift apart. */
[lang="he"] { direction: rtl; }
html[data-lang="en"] [lang="he"], html[data-lang="he"] [lang="en"] { display: none; }

/* Landing: one question, pushed deeper. */
.hero p { font-size: 18px; max-width: 34ch; margin: 0 0 22px; }
.get { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.get span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.ladder { margin-top: 56px; }
.ladder > h2 { margin: 0 0 14px; font-size: 14px; font-weight: 700; color: var(--muted); }
/* The depth meter sits on the reading-start edge and spans only the four questions. */
.steps { position: relative; padding-inline-start: 20px; --step: clamp(12px, 4vw, 44px); }
.depth { position: absolute; inset-inline-start: 0; top: 0; bottom: 12px; width: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.depth i { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(var(--d, 1)); transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.q { border-radius: 20px; padding: 18px 20px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s; }
.q strong { display: block; font-weight: 700; line-height: 1.35; color: inherit; text-wrap: balance; }
.q span { font-size: 15px; }
/* Each follow-up steps in, darkens and gets louder. */
.q1 { background: var(--surface); }
.q1 strong { font-size: 18px; }
.q1 span { color: var(--muted); }
.q2 { background: var(--second); color: var(--on-second); margin-inline-start: var(--step); }
.q2 strong { font-size: 20px; }
.q3 { background: var(--accent); color: var(--on-accent); margin-inline-start: calc(var(--step) * 2); }
.q3 strong { font-size: 22px; font-weight: 800; }
.q3 span { color: #fff; }
.q4 { background: var(--deep); color: var(--on-deep); margin-inline-start: calc(var(--step) * 3); }
.q4 strong { font-size: 24px; font-weight: 800; }
.q4 span { color: var(--muted-deep); }
.js .q { opacity: 0; transform: translateY(18px); }
.js .q.in { opacity: 1; transform: none; }
.stop { font-size: 15px; margin: 8px 0 0; }
.report { background: var(--surface); border-radius: 22px; padding: 20px; margin-top: 28px; display: grid; gap: 10px; }
.report header { padding: 0; margin: 0; max-width: none; min-height: 0; }
.report header strong { font-size: 18px; }
.report header small { font-size: 12px; color: var(--muted); }
.row { display: flex; justify-content: space-between; font-size: 16px; font-variant-numeric: tabular-nums; }
.row.weak b { color: var(--accent-text); }
.next { background: var(--second); color: var(--on-second); border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.price { margin-top: 32px; }
.price p { max-width: 46ch; margin: 0 0 16px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .js .q { opacity: 1; transform: none; }
}
