/* Brand tokens: the same hex values as the Model Score dashboard (modeling/dashboard/brand.py),
   which are the brand's oklch values converted. Light base with ink panels, like the dashboard. */
:root {
  --ink: #0e1721;
  --ink-2: #1c2835;
  --ink-line: #2e3947;
  --ink-soft: #2e3947;
  --paper: #f2f5f9;
  --canvas: #eceff2;
  --teal: #02515f;
  --accent: #11ae5b;
  --accent-deep: #00742e;
  --hairline: #d3d8de;
  --muted: #6e7277;
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --surface: #fff;
  --check: var(--accent-deep);
  --radius: 6px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a { color: inherit; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.he {
  font-family: "Frank Ruhl Libre", "Arial Hebrew", "David", serif;
  direction: rtl;
  unicode-bidi: isolate;
}
.he .aleph { color: var(--check); }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: 0.08em; font-size: 14px; }
.brand img { width: 32px; height: 32px; }
nav.main { display: flex; gap: 24px; font-size: 15px; }
nav.main a { text-decoration: none; color: var(--fg-soft); }
nav.main a:hover { color: var(--fg); }
@media (max-width: 980px) { nav.main a:not(.cta) { display: none; } }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  background: var(--teal); color: var(--paper); text-decoration: none; font-weight: 600;
  border: 1px solid var(--teal);
}
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--hairline); }
nav.main a.cta { color: var(--paper); padding: 6px 14px; }

/* Hero */
.hero { padding: 96px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-mark { order: -1; } }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; font-weight: 600; color: var(--check); margin: 0 0 16px; }
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; margin: 0 0 20px; letter-spacing: -0.01em; }
.lede { font-size: 20px; color: var(--fg-soft); max-width: 36em; margin: 0 0 32px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-mark { text-align: center; }
.hero-mark .he { font-size: clamp(110px, 16vw, 180px); line-height: 1; font-weight: 700; position: relative; display: inline-block; }
.hero-mark .tag { margin-top: 12px; color: var(--fg-soft); font-size: 15px; letter-spacing: 0.06em; }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--canvas); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.2; margin: 0 0 16px; }
h3 { font-size: 21px; margin: 0 0 8px; }
.section-intro { color: var(--fg-soft); max-width: 44em; margin: 0 0 48px; font-size: 18px; }

/* Comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }
.panel { border-radius: 14px; padding: 32px; border: 1px solid var(--hairline); background: var(--surface); }
.panel.box { background: oklch(28% 0.01 255); color: oklch(85% 0.01 255); border-color: oklch(35% 0.01 255); }
.panel .glyph { font-size: 56px; font-weight: 700; line-height: 1; margin-bottom: 16px; }
.panel.box .glyph { color: var(--muted); }
.panel ul { padding-left: 1.2em; margin: 16px 0 0; }
.panel li { margin-bottom: 6px; }

/* Offerings */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .offers { grid-template-columns: 1fr; } }
.offer { padding: 28px; }
.offer { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 36px; display: flex; flex-direction: column; }
.offer .kicker { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--check); font-weight: 600; margin-bottom: 8px; }
.offer h3 { font-size: 26px; }
.offer p { color: var(--fg-soft); }
.checks { list-style: none; padding: 0; margin: 16px 0 24px; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px;
  border-left: 3px solid var(--check); border-bottom: 3px solid var(--check); transform: rotate(-45deg);
}
.offer .btn { margin-top: auto; align-self: flex-start; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 3px solid var(--teal); padding-top: 16px; }
.step::before { counter-increment: step; content: "0" counter(step); font-weight: 700; color: var(--check); font-size: 14px; letter-spacing: 0.1em; }
.step p { color: var(--fg-soft); font-size: 16px; margin: 6px 0 0; }

/* Story */
.story { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }
.story .words { display: flex; gap: 32px; justify-content: center; align-items: baseline; }
.story .words div { text-align: center; }
.story .words .he { font-size: 88px; font-weight: 700; line-height: 1; display: block; }
.story .words .met { color: var(--muted); }
.story .words small { display: block; margin-top: 8px; color: var(--fg-soft); font-size: 14px; }
.story blockquote { margin: 24px 0 0; font-size: 22px; font-weight: 600; border-left: 3px solid var(--check); padding-left: 16px; }

/* Placeholder marker: remove before launch */
.todo {
  background: oklch(92% 0.12 95); color: oklch(30% 0.06 80);
  padding: 1px 6px; border-radius: 4px; font-size: 0.9em; font-weight: 600;
  border: 1px dashed oklch(55% 0.12 80);
}

/* Contact */
.contact { text-align: center; }
.contact .section-intro { margin-left: auto; margin-right: auto; }

footer.site { border-top: 1px solid var(--hairline); padding: 32px 0; font-size: 14px; color: var(--fg-soft); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---- Alignment with the Model Score dashboard ---- */
h1, h2, h3 { font-weight: 600; }
.btn { border-radius: var(--radius); }
.panel, .offer { border-radius: 8px; }

/* Header: ink bar with the sidebar lockup */
header.site { background: var(--ink); border-bottom-color: var(--ink-line); backdrop-filter: none; }
.brand img { width: 34px; height: 34px; }
.brand .name { display: block; color: var(--paper); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; line-height: 1.3; }
.brand .tag { display: block; color: var(--accent); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400; }
nav.main a { color: oklch(80% 0.015 255); }
nav.main a:hover { color: var(--paper); }
nav.main a.cta { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }

/* Kickers: small caps, wide tracking, teal on light and green on ink */
.eyebrow, .offer .kicker { font-size: 11px; letter-spacing: 0.18em; color: var(--teal); }

/* Ink sections (hero and story), like the dashboard's opening card */
section.dark { background: var(--ink); color: var(--paper); --fg-soft: oklch(80% 0.015 255); --hairline: var(--ink-line); }
section.dark .eyebrow { color: var(--accent); }
section.dark .btn.ghost { color: var(--paper); border-color: var(--ink-line); }
section.dark .btn { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
section.dark .btn.ghost { background: transparent; border-color: var(--ink-line); }

/* Emet wordmark: green aleph with the checkmark set above it like a vowel point */
.he .aleph { position: relative; display: inline-block; color: var(--accent-deep); }
section.dark .he .aleph { color: var(--accent); }
.he .aleph .nikkud { position: absolute; left: 50%; transform: translateX(-50%); width: 0.3em; height: 0.3em; top: -0.26em; stroke: currentColor; }
.he .rest { color: inherit; }
.he .erased { opacity: 0.12; }
.hero-mark .he { display: inline-flex; }
.hero-mark .name { margin-top: 22px; font-size: 16px; font-weight: 600; letter-spacing: 0.24em; }
.hero-mark .tag { margin-top: 8px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.hero-mark .he { opacity: 0; animation: atw-rise 0.9s ease 0.15s forwards; }
.hero-mark .nikkud path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: atw-draw 0.6s ease 1s forwards; }
.hero-mark .name { opacity: 0; animation: atw-rise 0.8s ease 1.3s forwards; }
.hero-mark .tag { opacity: 0; animation: atw-rise 0.8s ease 1.7s forwards; }
@keyframes atw-draw { to { stroke-dashoffset: 0; } }
@keyframes atw-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-mark .he, .hero-mark .name, .hero-mark .tag { opacity: 1; animation: none; }
  .hero-mark .nikkud path { stroke-dashoffset: 0; animation: none; }
}

/* Story */
.story .words .he { display: inline-flex; }
.story .words small { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; color: var(--muted); }
section.dark .story .words small { color: oklch(70% 0.015 255); }
.story blockquote { border-left-color: var(--accent); }
.story .origin { font-style: italic; color: var(--fg-soft); margin-top: 20px; }

/* Checkmarks: the dashboard's check glyph */
.checks li::before {
  content: ""; border: 0; transform: none; left: 0; top: 4px; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 12.5L9.5 18L20 6' stroke='%2300742e' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; margin-top: 32px; max-width: none; }
.principles li { color: var(--fg-soft); }
.principles strong { color: var(--fg); }
@media (max-width: 720px) { .principles { grid-template-columns: 1fr; } }

/* Notes: green rule on canvas, as in the dashboard */
.panel.box { background: var(--ink); border-color: var(--ink-line); }
footer.site { background: var(--ink); color: oklch(80% 0.015 255); border-top-color: var(--ink-line); }

/* Track record and about */
.results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; }
@media (max-width: 860px) { .results { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .results { grid-template-columns: 1fr; } }
.result { border-top: 3px solid var(--accent); padding-top: 14px; }
.result .num { font-size: 40px; font-weight: 700; color: var(--teal); line-height: 1.1; }
.result p { color: var(--fg-soft); font-size: 16px; margin: 8px 0 0; }
.clients { margin-top: 32px; color: var(--muted); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.about { max-width: 760px; }

/* Experience timeline */
.timeline { list-style: none; padding: 0; margin: 48px 0 0; border-top: 1px solid var(--hairline); }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.timeline .when { grid-row: span 2; color: var(--teal); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.timeline .org { font-weight: 600; }
.timeline .role { color: var(--fg-soft); font-size: 16px; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; } .timeline .when { grid-row: auto; } }
.vet { margin-top: 24px; color: var(--fg-soft); }
.steps .step h3 { margin-top: 6px; }

/* The shift / morning / sources */
.morning { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .morning { grid-template-columns: 1fr; gap: 32px; } }
.note { font-size: 14px; color: var(--muted); }
.chat { background: var(--ink); color: var(--paper); border-radius: 28px; padding: 28px 24px; max-width: 420px; justify-self: center; width: 100%; box-shadow: 0 18px 40px rgba(14, 23, 33, 0.18); }
.chat .time { font-size: 13px; color: oklch(70% 0.01 255); text-align: center; margin-bottom: 16px; letter-spacing: 0.04em; }
.chat p { margin: 0 0 12px; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; max-width: 88%; }
.chat .me { background: var(--accent-deep); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.chat .ai { background: var(--ink-2); border: 1px solid var(--ink-line); border-bottom-left-radius: 4px; }
.results:has(> .result:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .results:has(> .result:nth-child(3):last-child) { grid-template-columns: 1fr; } }
h3.sub { margin: 48px 0 20px; font-size: 22px; }
sup a { color: var(--check); text-decoration: none; font-weight: 600; }
.sources { padding: 40px 0; border-top: 1px solid var(--hairline); }
.sources h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.sources ol { font-size: 13px; color: var(--muted); padding-left: 1.2em; margin: 8px 0 0; }
.sources li { margin-bottom: 4px; }
.sources a { color: var(--teal); }

/* ---- Wow pass: live phone, calculator, proof chart, golem sequence ---- */
.hero .wrap { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
.phone { justify-self: center; width: 100%; max-width: 400px; text-align: center; }
.phone .chat { text-align: left; min-height: 480px; display: flex; flex-direction: column; border: 1px solid var(--ink-line); box-shadow: 0 24px 60px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.04); }
.phone .log { flex: 1; }
.phone .note { margin-top: 14px; color: oklch(70% 0.015 255); }
.chat p { opacity: 0; transform: translateY(6px); animation: atw-rise 0.35s ease forwards; }
.chat .typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.chat .typing i { width: 6px; height: 6px; border-radius: 50%; background: oklch(70% 0.015 255); animation: atw-dot 1s infinite; }
.chat .typing i:nth-child(2) { animation-delay: 0.15s; } .chat .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes atw-dot { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.chips[hidden] { display: none; }
.chip-label { font-size: 12px; color: oklch(70% 0.015 255); margin-right: 4px; }
.chips button { font: inherit; font-size: 13px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: var(--paper); cursor: pointer; }
.chips button:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.chips button[disabled] { opacity: 0.35; cursor: default; }
@media (max-width: 860px) { .phone { order: 1; } .phone .chat { min-height: 0; } }

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--hairline); align-items: center; }
@media (max-width: 720px) { .calc { grid-template-columns: 1fr; gap: 24px; } }
.calc .section-intro { margin-bottom: 20px; }
.calc label { display: block; font-weight: 600; margin-bottom: 20px; }
.calc output { float: right; color: var(--teal); font-variant-numeric: tabular-nums; }
.calc input[type=range] { width: 100%; margin: 8px 0 0; accent-color: var(--accent-deep); }
.calc-out { background: var(--ink); color: var(--paper); border-radius: 8px; padding: 32px; }
.calc-out .big { font-size: clamp(48px, 7vw, 72px); font-weight: 700; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.calc-out p { margin: 12px 0 0; color: oklch(85% 0.01 255); }
.calc-out .note { color: oklch(65% 0.015 255); }

.proof { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; } }
.proof .section-intro { margin-bottom: 28px; }
.stats { display: flex; gap: 40px; margin-bottom: 24px; }
.stats .num { font-size: 40px; font-weight: 700; color: var(--teal); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats .lbl { font-size: 14px; color: var(--fg-soft); }
.horizons div { display: grid; grid-template-columns: 52px 1fr 48px; gap: 12px; align-items: center; margin-bottom: 8px; font-size: 14px; }
.horizons .h { color: var(--fg-soft); }
.horizons .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--teal); font-weight: 600; }
.horizons .bar { height: 8px; background: var(--hairline); border-radius: 4px; overflow: hidden; display: block; }
.horizons .bar i { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 4px; transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.proof.in .horizons .bar i { width: calc(var(--v) * 100% / 0.1); }
.backtest { margin: 0; background: var(--surface); border: 1px solid var(--hairline); border-radius: 8px; padding: 20px 20px 12px; }
.backtest svg { width: 100%; height: auto; display: block; }
.backtest .grid line { stroke: var(--hairline); stroke-width: 1; }
.backtest .axis text { font-size: 11px; fill: var(--muted); font-family: inherit; }
.backtest .actual { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.backtest .fcst { fill: none; stroke: var(--accent-deep); stroke-width: 2.2; stroke-dasharray: 5 4; stroke-linejoin: round; stroke-linecap: round; }
.backtest .train { fill: var(--canvas); }
.backtest .lab { font-size: 11px; fill: var(--muted); font-family: inherit; letter-spacing: 0.08em; text-transform: uppercase; }
.backtest .err { stroke: var(--accent); stroke-width: 1; opacity: 0; }
.proof.in .backtest .err { opacity: 0.7; transition: opacity 0.6s ease 2.4s; }
.backtest figcaption { display: flex; gap: 20px; font-size: 13px; color: var(--fg-soft); margin-top: 10px; }
.backtest .k::before { content: ""; display: inline-block; width: 22px; height: 0; border-top: 2.5px solid var(--ink); margin-right: 8px; vertical-align: middle; }
.backtest .k.fcst::before { border-top-style: dashed; border-top-color: var(--accent-deep); }
.backtest .k.fcst { color: var(--fg-soft); }

/* Golem scroll sequence: the visual sticks while the copy advances */
.golem { padding: 0; }
.golem .sticky { position: sticky; top: 64px; min-height: calc(100vh - 64px); display: flex; align-items: center; padding: 48px 0; }
.golem { min-height: 240vh; }
.golem .words { flex-direction: column; gap: 16px; align-items: center; }
.golem .mark { font-size: clamp(120px, 18vw, 220px); font-weight: 700; line-height: 1; display: inline-flex; }
.golem .mark .aleph { color: var(--accent); transition: opacity 0.3s, filter 0.3s; }
.golem .mark .aleph .nikkud path { stroke-dasharray: 30; stroke-dashoffset: calc(30 * (1 - var(--check-draw, 1))); }
.golem .mark .aleph { opacity: var(--aleph, 1); }
.golem .cap { position: relative; height: 1.4em; width: 100%; text-align: center; }
.golem .cap span { position: absolute; left: 0; right: 0; opacity: 0; transition: opacity 0.4s; }
.golem[data-stage="0"] [data-cap="emet"], .golem[data-stage="1"] [data-cap="met"], .golem[data-stage="2"] [data-cap="keep"] { opacity: 1; }
.golem .stage { transition: opacity 0.5s, transform 0.5s; opacity: 0.28; }
.golem[data-stage="0"] [data-stage="0"], .golem[data-stage="1"] [data-stage="1"], .golem[data-stage="2"] [data-stage="2"] { opacity: 1; }
.golem blockquote.stage { opacity: 0; transform: translateY(8px); }
.golem[data-stage="2"] blockquote.stage { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .golem { min-height: 0; }
  .golem .sticky { position: static; min-height: 0; padding: 88px 0; }
  .golem .stage, .golem blockquote.stage { opacity: 1; transform: none; }
  .golem .mark .aleph { opacity: 1 !important; }
  .golem .mark .aleph .nikkud path { stroke-dashoffset: 0; }
  .chat p { opacity: 1; transform: none; animation: none; }
  .horizons .bar i { transition: none; }
}
