/* site/site.css — the one stylesheet of the website: a light marketing look for / (body.landing) and the app's dark
   tokens for /auth and /dashboard (body.app). RTL first: logical properties everywhere, dir comes from <html>. */
:root { --max: 1240px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 700; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 .8em; }
img { max-width: 100%; height: auto; display: block; }
button, .btn, input, select { font: inherit; }
ul.points { list-style: none; margin: 0; padding: 0; }
ul.points li { position: relative; padding-inline-start: 22px; margin: 0 0 10px; }
ul.points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }

/* language pairs: every text exists twice; the other language is hidden by <html data-lang> */
html[data-lang="he"] [lang="en"] { display: none !important; }
html[data-lang="en"] [lang="he"] { display: none !important; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #1b1a17; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.big { padding: 14px 26px; font-size: 18px; }
.btn.sm { padding: 5px 12px; font-size: 13px; }
.btn.danger:hover { border-color: var(--bad); color: var(--bad); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; }

/* ---- the top bar ---- */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .in { max-width: var(--max); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { font-weight: 700; letter-spacing: .02em; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.top nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }
.top .grow { flex: 1; }
#lang { border-radius: 999px; padding: 5px 10px; font-size: 13px; }

/* ---- landing ---- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section.block { padding: 56px 0; border-bottom: 1px solid var(--line); }
section.block:last-of-type { border-bottom: 0; }
.hero { padding: 64px 0 48px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 34em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
.hero .eyebrow { display: inline-block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.shot { border-radius: var(--radius); overflow: hidden; background: #0b0c0e; box-shadow: var(--shadow); border: 1px solid var(--line); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.shot figcaption, .shot .cap { padding: 8px 12px; font-size: 13px; color: var(--muted); background: var(--card); border-top: 1px solid var(--line); }
figure { margin: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 12px; }
.shots { display: grid; grid-template-columns: 1fr 1fr 280px; grid-template-rows: auto auto; gap: 16px; margin-top: 22px; align-items: start; }
.shots .phone { grid-row: 1 / span 2; grid-column: 3; align-self: center; }
.phone { max-width: 260px; margin: 0 auto; border-radius: 30px; padding: 10px; background: #111; border: 1px solid #333; box-shadow: var(--shadow); }
.phone img { border-radius: 22px; aspect-ratio: 390 / 844; object-fit: cover; }
.phone .cap { border-radius: 0 0 18px 18px; background: #111; color: #bbb; border: 0; text-align: center; }
.rule { font-size: 14px; color: var(--muted); border-inline-start: 3px solid var(--accent); padding-inline-start: 12px; margin-top: 20px; }
.video-ph { border: 2px dashed var(--line); border-radius: var(--radius); padding: 20px; text-align: center; color: var(--muted); background: var(--card); aspect-ratio: 16 / 10; display: grid; place-items: center; font-size: 14px; }
.video-ph strong { display: block; color: var(--ink); margin-bottom: 6px; }
.price .num { font-size: 28px; font-weight: 700; color: var(--accent-ink); }
.price ul.points li { margin-bottom: 14px; }
.foot { padding: 40px 0 60px; color: var(--muted); font-size: 14px; }
.foot .in { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center; margin: 40px 0 0; }
.cta-band h2 { margin-bottom: 8px; }

/* ---- app pages (auth, dashboard) ---- */
body.app .top { background: rgba(20, 22, 26, .92); }
body.app .card { padding: 16px; }
.center { max-width: 440px; margin: 10vh auto 0; padding: 0 20px; }
.form { display: grid; gap: 10px; }
.form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
input[type=text], input[type=email], input[type=date], input[type=number], select { background: color-mix(in srgb, var(--card) 70%, var(--bg)); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; min-width: 0; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.status { font-size: 13px; color: var(--muted); min-height: 1.4em; }
.status.bad { color: var(--bad); }
.status.ok { color: var(--ok); }
.demo-badge { position: fixed; bottom: 12px; inset-inline-start: 12px; z-index: 9; background: #4a3a12; color: #ffd97a; border: 1px solid #7a5f1a; border-radius: 999px; padding: 6px 12px; font-size: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.dash { max-width: var(--max); margin: 0 auto; padding: 20px; display: grid; gap: 28px; }
.dash section h2 { display: flex; align-items: center; gap: 12px; font-size: 20px; margin-bottom: 12px; }
.dash section h2 .count { font-size: 13px; color: var(--muted); font-weight: 400; }
.dash section h2 .grow { flex: 1; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.card .title { font-weight: 600; margin-bottom: 4px; }
.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); margin-inline-end: 6px; }
.tag.shared { border-color: #3b5a8a; color: #9dc0f0; }
.tag.mine { border-color: #5a7a3b; color: #b8e09d; }
.tag.warn { border-color: #7a5f1a; color: #ffd97a; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px 3px 4px; color: var(--muted); }
.chip .sw { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #444; background-size: cover; }
.chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.event { display: grid; gap: 12px; }
.event .head { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: baseline; }
.event .head .title { font-size: 18px; }
.designs { display: grid; gap: 8px; }
.design { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: color-mix(in srgb, var(--card) 60%, var(--bg)); }
.design .name { font-weight: 600; }
.design .acts { display: flex; flex-wrap: wrap; gap: 6px; }
.design .share { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 8px; display: grid; gap: 6px; }
.link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.link code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.link.revoked { opacity: .5; text-decoration: line-through; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.newevent { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; align-items: end; }
.newevent label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.newevent .venues { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; }
.newevent .venues label { display: inline-flex; gap: 6px; align-items: center; }
.newevent .acts { grid-column: 1 / -1; }
.empty { color: var(--muted); font-size: 14px; padding: 8px 0; }

/* ---- phone ---- */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .hero { grid-template-columns: 1fr; padding: 36px 0 32px; gap: 24px; }
  .grid3, .grid2, .shots { grid-template-columns: 1fr; }
  .shots .phone { grid-row: auto; }
  section.block { padding: 36px 0; }
  .top nav { display: none; }
  .newevent { grid-template-columns: 1fr; }
  .design { grid-template-columns: 1fr; }
  .center { margin-top: 6vh; }
}
@media print { .top, .demo-badge, #lang { display: none; } }

/* UI v2: one visual system across the product and studio. */
body { background: var(--bg); }
h1, h2, h3 { letter-spacing: 0; font-weight: 500; }
.btn { min-height: 44px; border-radius: var(--radius-sm); font-size: 14px; }
.btn.sm { min-height: 40px; }
.top .in { min-height: 76px; }
.brand { direction: ltr; font-weight: 500; letter-spacing: -.03em; font-size: 20px; }
.brand .dot { border-radius: 2px; transform: rotate(45deg); width: 8px; height: 8px; }
.hero { padding: 76px 0 64px; grid-template-columns: .85fr 1.15fr; gap: 48px; }
h1 { font-size: clamp(40px, 4.7vw, 68px); line-height: 1.12; max-width: 11em; }
.hero .lead { font-size: 18px; line-height: 1.85; margin-top: 24px; }
.hero .eyebrow { background: none; padding: 0; letter-spacing: 0; font-weight: 500; }
.hero .btn.big { font-size: 15px; padding: 14px 20px; }
.hero-scene { position: relative; height: 560px; border-radius: 24px; background: #0b0c0e; }
.hero-scene > img { height: 100%; object-fit: cover; }
#heroCanvas { position: absolute; inset: 0 0 60px; }
#heroCanvas canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.hero-scene.scene-ready > img { opacity: 0; }
.hero-scene figcaption { position: absolute; inset: auto 0 0; min-height: 60px; display: flex; align-items: center; font-size: 12px; }
#heroPlay { position: absolute; top: 16px; inset-inline-end: 16px; min-height: 44px; border: 1px solid #ffffff40; background: #17191de8; color: #f3f0e8; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
section.block { padding: 80px 0; }
section.block > h2 { font-size: 34px; margin-bottom: 28px; }
.card { border-radius: var(--radius); box-shadow: none; padding: 28px; }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); }
.shots { grid-template-columns: 1fr 1fr 240px; margin-top: 32px; }
.video-ph { border-width: 1px; background: var(--accent-soft); min-height: 200px; }
.video-ph::before { content: '▷'; font-size: 36px; color: var(--accent-ink); }
.price .num { font-size: 48px; font-weight: 500; margin-bottom: 16px; }
.cta-band { padding: 48px 24px; background: var(--accent-soft); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
body.app .top { background: var(--panel); }
body.app .center { max-width: 520px; margin: 12vh auto 0; }
body.app .center > .card { padding: 40px; border-radius: var(--radius-lg); }
.center h2 { font-size: 32px; margin-bottom: 18px; }
.center .form { margin-top: 28px; gap: 18px; }
.center .form input { min-height: 52px; }
.form label, .newevent label { color: var(--ink); }
.dash { padding-top: 48px; padding-bottom: 100px; gap: 40px; }
.dash-intro h1 { font-size: 34px; max-width: none; }
.dash-intro p { color: var(--muted); margin-top: 10px; }
.dash section h2 { font-size: 24px; }
.cards { gap: 16px; }
.venue-thumb { height: 128px; border-radius: 10px; background: var(--bg); margin-bottom: 16px; display: grid; place-items: center; overflow: hidden; }
.venue-thumb svg { width: 85%; height: 100px; }
.venue-thumb polygon { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.provenance { margin-top: 12px; font-size: 11px; color: var(--warn); overflow-wrap: anywhere; }
#catChips { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
#catChips .chip { border-radius: 12px; padding: 12px; flex-direction: column; align-items: start; color: var(--ink); min-height: 98px; }
#catChips .sw, #catChips img { width: 38px; height: 38px; border-radius: 8px; }
.event { padding: 24px !important; }
.design { padding: 16px; border-radius: 12px; }
.empty { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); line-height: 1.8; }
.demo-badge { font-size: 11px; border-radius: 8px; max-width: calc(100vw - 24px); }
#loading { display: grid; gap: 16px; }
#loading::after { content: ''; display: block; height: 180px; border-radius: 12px; background: var(--surface-raised); animation: breathe 1.4s ease-in-out infinite alternate; }
@keyframes breathe { to { opacity: .4; } }
.site-toast { position: fixed; bottom: 60px; inset-inline-end: 20px; z-index: 10; padding: 12px 20px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-float); max-width: calc(100vw - 40px); }
.site-toast.bad { border-color: var(--bad); }
summary { cursor: pointer; padding: 10px 0; min-height: 44px; }
@media (max-width: 760px) {
  .top .in { min-height: 68px; gap: 10px; padding: 10px 16px; }
  .top .brand { font-size: 18px; }
  .wrap, .dash { padding-inline: 20px; }
  .hero { display: flex; flex-direction: column; padding-top: 40px; gap: 28px; }
  .hero > div { width: 100%; }
  .hero h1 { font-size: 44px; }
  .hero .lead { font-size: 16px; margin-top: 18px; }
  .hero-scene { width: 100%; height: 380px; }
  .shots { grid-template-columns: 1fr; }
  .shots .phone { grid-column: auto; }
  section.block { padding: 48px 0; }
  section.block > h2 { font-size: 28px; }
  .card { padding: 22px; }
  body.app .center { margin-top: 48px; }
  body.app .center > .card { padding: 26px; }
  #who { flex-basis: 100%; order: 2; overflow-wrap: anywhere; }
  .dash { padding-top: 32px; }
  .dash-intro h1 { font-size: 28px; }
  .dash section h2 { font-size: 21px; }
  .design .acts .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ---- aulam brand (vault: BRAND-PLAYBOOK, EV-D43 palette · EV-D44 type · EV-D45 logo) ----
   Tokens sit on <body> so they win over src/ui/theme.css, which site.js loads after this file (the app keeps its own
   theme until the app rebrand). Graphite on model board, one wine element per screen; the honesty colors are facts,
   not brand: REAL teal solid, ESTIMATED amber dashed, SIMULATED violet dotted, always with a word. */
body.landing, body.app {
  --font: 'IBM Plex Sans Hebrew', 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', 'IBM Plex Sans Hebrew', ui-monospace, Menlo, monospace;
  --radius-sm: 4px; --radius: 6px; --radius-lg: 8px;
  --shadow: none; --shadow-float: 0 12px 40px #0000002e;
}
body.landing {
  color-scheme: light;
  --bg: #F5F4F0; --panel: #FFFFFF; --card: #FFFFFF; --surface-raised: #FFFFFF;
  --ink: #1F2328; --muted: #5A5F66; --line: #D9D3C7;
  --accent: #7A2331; --accent-ink: #7A2331; --accent-soft: #F3E8E9; --on-accent: #FFFFFF;
  --ok: #0F6B66; --warn: #8F5A10; --sim: #6B4FA0; --bad: #A12F24;
}
body.app, .stage {
  color-scheme: dark;
  --bg: #16181B; --panel: #1F2226; --card: #1F2226; --surface-raised: #272A2F;
  --ink: #ECEAE5; --muted: #A6AAB0; --line: #34383E;
  --accent: #E3919C; --accent-ink: #E3919C; --accent-soft: #3A262A; --on-accent: #16181B;
  --ok: #5CC2B8; --warn: #E0A84A; --sim: #B9A2F0; --bad: #F08F85;
}
body.landing, body.app { font-family: var(--font); }
h1, h2, h3 { font-weight: 600; }
.btn { border-radius: var(--radius-sm); }
.btn.primary { color: var(--on-accent); }
.btn.primary:hover { filter: none; background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
:focus-visible { outline-color: var(--accent); }
.brand { font-family: 'IBM Plex Sans', var(--font); font-weight: 600; font-size: 22px; letter-spacing: -.02em; direction: ltr; unicode-bidi: isolate; }
.tag, .chip, #lang { border-radius: var(--radius-sm); }
.tag.shared { border-color: #3E6E86; color: #9CC6D8; }
.tag.mine { border-color: var(--ok); color: var(--ok); }
.tag.warn { border-color: var(--warn); color: var(--warn); border-style: dashed; }
.provenance { font-family: var(--mono); }
.link code { font-family: var(--mono); }
.demo-badge { background: #3A2E14; color: #E0A84A; border: 1px dashed #8F5A10; border-radius: var(--radius-sm); }
.venue-thumb polygon { stroke-dasharray: 5 4; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---- the landing: a light opening, then the dark stage where the hall builds itself (site/story.js) ---- */
body.landing .top { background: color-mix(in srgb, var(--bg) 86%, transparent); }
body.landing .top nav a { font-size: 14px; }
.intro { padding-block: 13vh 9vh; display: grid; justify-items: start; gap: 22px; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
html[lang="he"] .eyebrow { letter-spacing: .02em; }
.intro h1 { font-size: clamp(46px, 7.4vw, 108px); line-height: 1.04; letter-spacing: -.025em; max-width: 12ch; margin: 0; font-weight: 600; text-wrap: balance; }
.rule-dim { width: min(560px, 84%); height: 24px; overflow: visible; }
.rule-dim path { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.4s var(--ease-out) .25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.intro .lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.7; color: var(--muted); max-width: 34em; margin: 0; }
.intro .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; margin-top: 4vh; font: 500 13px/1 var(--mono); color: var(--muted); text-decoration: none; }
.scroll-cue svg { width: 12px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

.stage { position: relative; background: var(--bg); color: var(--ink); }
.stage-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.stage-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity 600ms var(--ease-out); }
.stage.scene-ready .stage-still { opacity: 0; }
#storyCanvas { position: absolute; inset: 0; }
#storyCanvas canvas { display: block; width: 100% !important; height: 100% !important; }
.stage-pin::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to left, color-mix(in srgb, var(--bg) 80%, transparent) 0, transparent 46%), linear-gradient(to top, color-mix(in srgb, var(--bg) 60%, transparent), transparent 22%); }
html[dir="ltr"] .stage-pin::after { background: linear-gradient(to right, color-mix(in srgb, var(--bg) 80%, transparent) 0, transparent 46%), linear-gradient(to top, color-mix(in srgb, var(--bg) 60%, transparent), transparent 22%); }

#storyDims { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--dims, 0); pointer-events: none; z-index: 1; }
#storyDims .dim { fill: none; stroke-width: 1.6; stroke-linecap: square; }
#storyDims .dim.real { stroke: var(--ok); }
#storyDims .dim.est { stroke: var(--warn); stroke-dasharray: 7 5; }
#storyDimLabels { position: absolute; inset: 0; opacity: var(--dims, 0); pointer-events: none; z-index: 1; }
.dim-label { position: absolute; top: 0; left: 0; white-space: nowrap; font: 500 13px/1 var(--mono); font-variant-numeric: tabular-nums; padding: 6px 9px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--bg) 88%, transparent); border: 1.5px solid currentColor; }
.dim-label.real { color: var(--ok); }
.dim-label.est { color: var(--warn); border-style: dashed; }
.dim-label.area { font-size: 17px; padding: 9px 13px; }

.phone-mock { position: absolute; z-index: 1; inset-inline-end: 9vw; bottom: 7vh; width: 228px; margin: 0; opacity: var(--phone, 0); transform: translateY(calc((1 - var(--phone, 0)) * 90px)) rotate(-2deg); pointer-events: none; }
.phone-mock .wa { background: #D9FDD3; color: #111B21; border-radius: 10px 10px 10px 2px; padding: 10px 12px; margin-bottom: 14px; display: grid; gap: 3px; font: 13px/1.35 system-ui, sans-serif; box-shadow: var(--shadow-float); }
.phone-mock .wa span { color: #54656F; font-size: 12px; }
.phone-mock .wa .url { direction: ltr; text-align: end; font-size: 11px; }
.phone-frame { border-radius: 34px; padding: 8px; background: #0B0C0E; border: 1px solid #3A3E44; box-shadow: var(--shadow-float); }
.phone-screen { position: relative; border-radius: 27px; overflow: hidden; aspect-ratio: 390 / 844; background: #16181B; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-screen img:not([src]) { visibility: hidden; }
.ps-top { position: absolute; inset: 0 0 auto; padding: 22px 12px 18px; display: grid; gap: 2px; background: linear-gradient(#16181Bf0, #16181B00); color: #ECEAE5; font-size: 11px; }
.ps-top b { font-size: 14px; font-weight: 600; }
.ps-top span { color: #A6AAB0; }
.ps-chips { position: absolute; inset: auto 8px 12px; display: flex; justify-content: center; gap: 5px; }
.ps-chips > span { font-size: 10px; padding: 5px 8px; border-radius: 4px; background: #16181Bd9; color: #ECEAE5; border: 1px solid #34383E; }
.ps-chips > span:first-child { border-color: #E3919C; color: #E3919C; }

.story-ticks { position: absolute; z-index: 2; inset-inline-end: 22px; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.story-ticks button { display: block; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.story-ticks button::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--muted); border-radius: 1px; transition: background var(--motion-fast), border-color var(--motion-fast); }
.story-ticks li.is-active button::before { background: var(--accent); border-color: var(--accent); }
.stage-note { position: absolute; z-index: 1; bottom: 14px; inset-inline-end: 22px; margin: 0; font: 11px/1 var(--mono); color: var(--muted); }

.steps { position: relative; z-index: 2; margin-top: -100svh; }
.step { height: 100svh; display: flex; align-items: center; padding-inline: max(20px, 5vw); }
.step-card { max-width: 440px; padding: 28px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--bg) 74%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); opacity: .18; transform: translateY(18px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); display: grid; gap: 12px; }
.step.is-active .step-card { opacity: 1; transform: none; }
.step-card h2 { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.step-card p { color: var(--muted); font-size: 17px; line-height: 1.7; margin: 0; }
.step-card .fine { font-size: 13px; }
.kicker { font-size: 12px; letter-spacing: .08em; color: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; }
.tier { font: 500 12px/1 var(--mono); padding: 6px 10px; border-radius: var(--radius-sm); border: 1.5px solid currentColor; }
.tier.real { color: var(--ok); } .tier.est { color: var(--warn); border-style: dashed; } .tier.sim { color: var(--sim); border-style: dotted; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 4px 0 0; }
.stats div { border-top: 1px solid var(--line); padding-top: 10px; }
.stats div.est { border-top: 1.5px dashed var(--warn); }
.stats dt { font-size: 12px; color: var(--muted); }
.stats dd { margin: 4px 0 0; font-size: 32px; font-weight: 500; line-height: 1; }
.tiers { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.tiers li { display: grid; grid-template-columns: 48px auto 1fr; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.tiers b { font: 500 13px/1 var(--mono); }
.tiers svg { width: 48px; height: 8px; }
.tiers path { fill: none; stroke-width: 2.4; stroke-linecap: round; }
.tiers .real b { color: var(--ok); } .tiers .real path { stroke: var(--ok); }
.tiers .est b { color: var(--warn); } .tiers .est path { stroke: var(--warn); stroke-dasharray: 7 5; }
.tiers .sim b { color: var(--sim); } .tiers .sim path { stroke: var(--sim); stroke-dasharray: 1.5 5; }

#how h2, #pilot h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.015em; }
.how { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.how li { border-top: 1.5px solid var(--ink); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.how .n { color: var(--accent); font-size: 13px; }
.how h3 { font-size: 21px; margin: 0; }
.how p { color: var(--muted); margin: 0; }
#pilot .cta-band { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 72px) 24px; display: grid; justify-items: center; gap: 16px; text-align: center; }
#pilot .cta-band p { max-width: 38em; margin: 0; }
#pilot .have { font-size: 14px; color: var(--muted); }
.foot .brand { font-size: 18px; }

@media (max-width: 760px) {
  .intro { padding-block: 9vh 6vh; }
  .intro h1 { font-size: 50px; }
  .step { align-items: flex-end; padding: 0 14px 7svh; }
  .step-card { max-width: none; width: 100%; padding: 20px; gap: 10px; }
  .step-card p { font-size: 15px; }
  .stats dd { font-size: 26px; }
  .stage-pin::after { background: linear-gradient(to top, color-mix(in srgb, var(--bg) 88%, transparent) 0, transparent 55%); }
  html[dir="ltr"] .stage-pin::after { background: linear-gradient(to top, color-mix(in srgb, var(--bg) 88%, transparent) 0, transparent 55%); }
  .story-ticks { top: 92px; transform: none; inset-inline-end: 8px; gap: 2px; }
  .phone-mock { width: 132px; inset-inline: auto; bottom: auto; left: 50%; top: 96px; transform: translate(-50%, calc((1 - var(--phone, 0)) * 60px)); }
  .ps-top { padding: 12px 8px 10px; font-size: 8px; } .ps-top b { font-size: 10px; } .ps-chips > span { font-size: 7px; padding: 3px 5px; }
  .phone-mock .wa { font-size: 10px; padding: 7px 8px; margin-bottom: 8px; }
  .phone-mock .wa span { font-size: 9px; }
  .dim-label { font-size: 11px; padding: 4px 6px; }
  .dim-label.area { font-size: 13px; }
  .how { grid-template-columns: 1fr; }
  .stage-note { bottom: auto; top: 76px; inset-inline-end: auto; inset-inline-start: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .rule-dim path { animation: none; stroke-dashoffset: 0; }
  .scroll-cue svg { animation: none; }
  .step-card { transition: none; }
}

html[lang="he"] .kicker, html[lang="he"] .scroll-cue, html[lang="he"] .stage-note, html[lang="he"] .tier, html[lang="he"] .tiers b, html[lang="he"] .dim-label { letter-spacing: 0; }
body.on-stage .top { background: color-mix(in srgb, #16181B 82%, transparent); border-bottom-color: #34383E; color: #ECEAE5; }
body.on-stage .top nav a { color: #A6AAB0; } body.on-stage .top nav a:hover { color: #ECEAE5; }
body.on-stage .top .btn { background: transparent; color: #ECEAE5; border-color: #34383E; }

/* ======== brand directions under review (2026-10-01): ?brand=board · ?brand=laser ========
   Both answer the same critique of the first build: too many hues at once (graphite UI, pink accent on dark, teal +
   amber labels, and the scene's own gold and LED blue), a light page and a dark stage that read as two brands, and
   template tells (tracked mono eyebrows, glass cards). Each direction keeps one accent and one world. */

/* shared by both: plain type for words, mono only for numbers */
html[data-brand] .eyebrow, html[data-brand] .scroll-cue, html[data-brand] .kicker, html[data-brand] .stage-note { font-family: var(--font); text-transform: none; letter-spacing: 0; }
html[data-brand] .eyebrow { font-size: 15px; }
html[data-brand] .kicker { font-size: 14px; font-weight: 500; }
html[data-brand] .tier, html[data-brand] .tiers b { font-family: var(--font); font-weight: 600; letter-spacing: 0; }
html[data-brand] .step-card { background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; box-shadow: none; }
html[data-brand] .stats div, html[data-brand] .how li { border-top-width: 1px; }

/* ---- BOARD: the maquette. One light world; the hall sits in a frame like a model on a board. Deep wine only. ---- */
html[data-brand="board"] body.landing, html[data-brand="board"] body.app, html[data-brand="board"] .stage {
  color-scheme: light;
  --bg: #F4F0E8; --panel: #FFFFFF; --card: #FFFFFF; --surface-raised: #FFFFFF;
  --ink: #1E1B18; --muted: #6A645B; --line: #DDD5C7;
  /* the laser accent (EV-D47): #F04A1A for lines and fills (3.2:1 on ivory, ink text on it 4.65:1), #B5360D for text (5.3:1) */
  --accent: #F04A1A; --accent-ink: #B5360D; --accent-soft: #FBE6DE; --on-accent: #1E1B18;
  --ok: #0F6B66; --warn: #B5360D; --sim: #6B4FA0;
  --display: 'Frank Ruhl Libre', 'IBM Plex Sans Hebrew', Georgia, serif;
}
html[data-brand="board"] .stage { --scene-bg: #E7E0D3; }
html[data-brand="board"] .intro h1, html[data-brand="board"] .step-card h2, html[data-brand="board"] #how h2, html[data-brand="board"] #pilot h2, html[data-brand="board"] .how h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
html[data-brand="board"] .intro h1 { font-size: clamp(50px, 7.8vw, 116px); line-height: 1; }
html[data-brand="board"] body.on-stage .top { background: color-mix(in srgb, #F4F0E8 88%, transparent); color: var(--ink); border-bottom-color: var(--line); }
html[data-brand="board"] body.on-stage .top nav a { color: var(--muted); }
html[data-brand="board"] body.on-stage .top .btn { color: var(--ink); border-color: var(--line); }
html[data-brand="board"] .stage-pin::after { display: none; }
html[data-brand="board"] #storyCanvas, html[data-brand="board"] #storyDims, html[data-brand="board"] #storyDimLabels, html[data-brand="board"] .stage-still {
  inset: 96px 44vw 8vh 4vw; width: auto; height: auto; }   /* Hebrew: words on the right, the model on the left */
html[dir="ltr"][data-brand="board"] #storyCanvas, html[dir="ltr"][data-brand="board"] #storyDims, html[dir="ltr"][data-brand="board"] #storyDimLabels, html[dir="ltr"][data-brand="board"] .stage-still {
  inset: 96px 4vw 8vh 44vw; }
html[data-brand="board"] #storyCanvas { border-radius: 4px; overflow: hidden; outline: 1px solid var(--line); outline-offset: 10px; }
html[data-brand="board"] #storyDims, html[data-brand="board"] #storyDimLabels { position: absolute; }
html[data-brand="board"] .dim-label { background: #F4F0E8E6; }
html[data-brand="board"] .step { padding-inline: 4vw 60vw; }
html[dir="ltr"][data-brand="board"] .step { padding-inline: 4vw 60vw; }
html[data-brand="board"] .step-card { max-width: 30vw; }
html[data-brand="board"] .phone-mock { inset-inline-start: auto; inset-inline-end: calc(4vw + 28px); bottom: calc(8vh + 28px); }
html[data-brand="board"] .story-ticks { inset-inline-end: 1.2vw; }
html[data-brand="board"] .story-ticks button::before { border-color: var(--muted); }
html[data-brand="board"] .stage-note { bottom: 3vh; inset-inline-end: 4vw; }

/* ---- LASER LINE: one dark world, ivory type, a single accent: the red-orange of a laser measure. ----
   The honesty labels keep their words and line styles; on the site they share the page's two inks instead of
   adding three hues (real = ivory solid, estimated = laser dashed, simulated = muted dotted). */
html[data-brand="laser"] body.landing, html[data-brand="laser"] .stage {
  color-scheme: dark;
  --bg: #0F0E0D; --panel: #1A1816; --card: #1A1816; --surface-raised: #24211E;
  --ink: #F1ECE2; --muted: #A39B8F; --line: #2E2A26;
  --accent: #FF5A2A; --accent-ink: #FF5A2A; --accent-soft: #2A1710; --on-accent: #0F0E0D;
  --ok: #F1ECE2; --warn: #FF5A2A; --sim: #A39B8F;
}
html[data-brand="laser"] .stage { --scene-bg: #0F0E0D; }
html[data-brand="laser"] .top, html[data-brand="laser"] body.on-stage .top { background: color-mix(in srgb, #0F0E0D 86%, transparent); border-bottom-color: #2E2A26; color: #F1ECE2; }
html[data-brand="laser"] .top nav a { color: #A39B8F; }
html[data-brand="laser"] .top .btn, html[data-brand="laser"] body.on-stage .top .btn { background: transparent; color: #F1ECE2; border-color: #2E2A26; }
html[data-brand="laser"] .intro h1 { font-weight: 700; letter-spacing: -.035em; font-size: clamp(50px, 8vw, 124px); line-height: .98; }
html[data-brand="laser"] .rule-dim path { stroke-width: 2; filter: drop-shadow(0 0 6px #FF5A2A99); }
html[data-brand="laser"] #storyDims .dim { stroke-width: 2; filter: drop-shadow(0 0 4px #FF5A2A80); }
html[data-brand="laser"] #storyDims .dim.real { filter: none; }
html[data-brand="laser"] .dim-label { background: #0F0E0DE6; }
html[data-brand="laser"] .btn { background: transparent; color: var(--ink); border-color: #3A3530; }
html[data-brand="laser"] .btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
html[data-brand="laser"] #pilot .cta-band { background: #1A1816; border-color: #2E2A26; }
html[data-brand="laser"] .how li { border-top-color: #F1ECE2; }
html[data-brand="laser"] .step-card h2 { font-weight: 700; letter-spacing: -.02em; }
html[data-brand="laser"] .story-ticks li.is-active button::before { box-shadow: 0 0 6px #FF5A2A; }

@media (max-width: 760px) {
  html[data-brand="board"] #storyCanvas, html[data-brand="board"] #storyDims, html[data-brand="board"] #storyDimLabels, html[data-brand="board"] .stage-still,
  html[dir="ltr"][data-brand="board"] #storyCanvas, html[dir="ltr"][data-brand="board"] #storyDims, html[dir="ltr"][data-brand="board"] #storyDimLabels, html[dir="ltr"][data-brand="board"] .stage-still { inset: 84px 14px 46svh 14px; }
  html[data-brand="board"] #storyCanvas { outline-offset: 6px; }
  html[data-brand="board"] .step, html[dir="ltr"][data-brand="board"] .step { padding: 0 18px 5svh; align-items: flex-end; }
  html[data-brand="board"] .step-card { max-width: none; min-height: 38svh; }
  html[data-brand="board"] .phone-mock { inset-inline: auto; left: 50%; bottom: auto; top: 110px; }
  html[data-brand="board"] .stage-note { display: none; }
  html[data-brand="board"] .intro h1, html[data-brand="laser"] .intro h1 { font-size: 54px; }
  html[data-brand="laser"] .step-card { padding-top: 12px; }
}
html[data-brand="laser"] .step-card { background: #0F0E0DD9; padding: 26px 28px; border-radius: 4px; }
html[data-brand="board"] #storyDims, html[data-brand="board"] #storyDimLabels { overflow: hidden; }   /* the lines stay on the model, even while they fade */
/* <svg> and <img> are replaced elements: with width:auto they keep their intrinsic size instead of stretching between
   left and right, and in RTL the left offset is dropped. Give the board's drawing layer explicit geometry. */
html[data-brand="board"] #storyDims, html[data-brand="board"] .stage-still { inset: auto; top: 96px; left: 4vw; width: 52vw; height: calc(100svh - 96px - 8vh); }
html[dir="ltr"][data-brand="board"] #storyDims, html[dir="ltr"][data-brand="board"] .stage-still { left: 44vw; }
@media (max-width: 760px) {
  html[data-brand="board"] #storyDims, html[data-brand="board"] .stage-still, html[dir="ltr"][data-brand="board"] #storyDims, html[dir="ltr"][data-brand="board"] .stage-still { top: 84px; left: 14px; width: calc(100% - 28px); height: calc(54svh - 84px); }
}
@media (max-width: 760px) {
  html[data-brand="board"] #storyDims, html[data-brand="board"] #storyDimLabels { overflow: hidden; }
  html[data-brand="board"] .step-card { align-content: start; }
}

/* Board + laser (EV-D47): text in the accent uses the deeper ink; the drawn lines glow a little, like a laser measure */
html[data-brand="board"] .kicker, html[data-brand="board"] .how .n, html[data-brand="board"] a:not(.btn):hover { color: var(--accent-ink); }
html[data-brand="board"] .rule-dim path { stroke-width: 2; filter: drop-shadow(0 0 4px #F04A1A66); }
html[data-brand="board"] #storyDims .dim.est { stroke: var(--accent); filter: drop-shadow(0 0 3px #F04A1A55); }
html[data-brand="board"] .dim-label.est, html[data-brand="board"] .tier.est, html[data-brand="board"] .tiers .est b { color: var(--accent-ink); }
html[data-brand="board"] .tiers .est path { stroke: var(--accent); }
html[data-brand="board"] .stats div.est { border-top-color: var(--accent); }
html[data-brand="board"] .btn.primary:hover { background: #FF5A2A; border-color: #FF5A2A; }
/* the studio pages (sign in, dashboard) on the same board */
html[data-brand="board"] body.app .top { background: color-mix(in srgb, #F4F0E8 90%, transparent); border-bottom-color: var(--line); color: var(--ink); }
html[data-brand="board"] body.app .dash-intro h1, html[data-brand="board"] body.app .center h2, html[data-brand="board"] body.app .dash section h2 { font-family: var(--display); font-weight: 700; }
html[data-brand="board"] body.app .card, html[data-brand="board"] body.app .design { background: var(--card); }
html[data-brand="board"] .tag.shared { border-color: #3E6E86; color: #2F5A70; }
html[data-brand="board"] .demo-badge { background: #FBE6DE; color: #8A2A0A; border-color: #F04A1A; }
html[data-brand="board"] .venue-thumb { background: #EDE7DC; }
html[data-brand="board"] .venue-thumb polygon { fill: #FBE6DE; stroke: var(--accent); }
html[data-brand="board"] input[type=text], html[data-brand="board"] input[type=email], html[data-brand="board"] input[type=date], html[data-brand="board"] input[type=number], html[data-brand="board"] select { background: #FFFFFF; }
html[data-brand="board"] .site-toast { background: #FFFFFF; }

/* ======== Gallery (vault EV-D48, 2026-10-01): the owner's pick from the look chooser ========
   White and black, no accent colour: the hall is the only colour on the page. Heebo throughout, pill buttons, soft
   cards. Keeps Board's framed-model stage. These values supersede the Board + laser ones above (same selectors, later). */
html[data-brand="board"] body.landing, html[data-brand="board"] body.app, html[data-brand="board"] .stage {
  color-scheme: light;
  --bg: #FFFFFF; --panel: #F7F7F5; --card: #FFFFFF; --surface-raised: #FFFFFF;
  --ink: #111111; --muted: #5C5C5C; --line: #E3E3E0;
  --accent: #111111; --accent-ink: #111111; --accent-soft: #EFEFED; --on-accent: #FFFFFF;
  --ok: #111111; --warn: #111111; --sim: #5C5C5C; --bad: #A12F24;
  --font: 'Heebo', 'Noto Sans Hebrew', system-ui, sans-serif; --display: 'Heebo', 'Noto Sans Hebrew', system-ui, sans-serif;
  --mono: 'Heebo', ui-monospace, Menlo, monospace;
  --radius-sm: 999px; --radius: 18px; --radius-lg: 24px;
}
html[data-brand="board"] .stage { --scene-bg: #F4F4F2; }
html[data-brand="board"] .intro h1, html[data-brand="board"] .step-card h2, html[data-brand="board"] #how h2, html[data-brand="board"] #pilot h2, html[data-brand="board"] .how h3,
html[data-brand="board"] body.app .dash-intro h1, html[data-brand="board"] body.app .center h2, html[data-brand="board"] body.app .dash section h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; }
html[data-brand="board"] .intro h1 { line-height: .98; }
html[data-brand="board"] .brand { font-family: 'Heebo', sans-serif; font-weight: 800; letter-spacing: -.04em; }
html[data-brand="board"] .btn { border-radius: 999px; }
html[data-brand="board"] .btn.primary { background: #111111; border-color: #111111; color: #FFFFFF; }
html[data-brand="board"] .btn.primary:hover { background: #333333; border-color: #333333; }
html[data-brand="board"] .rule-dim path { stroke: #111111; stroke-width: 1.5; filter: none; }
html[data-brand="board"] #storyDims .dim, html[data-brand="board"] #storyDims .dim.est { stroke: #111111; filter: none; }
html[data-brand="board"] .dim-label, html[data-brand="board"] .dim-label.est, html[data-brand="board"] .dim-label.real { color: #111111; background: #FFFFFFE6; border-radius: 999px; font-variant-numeric: tabular-nums; }
html[data-brand="board"] .tier, html[data-brand="board"] .tier.est, html[data-brand="board"] .tier.real, html[data-brand="board"] .tiers b, html[data-brand="board"] .tiers .est b { color: #111111; border-radius: 999px; }
html[data-brand="board"] .tier.sim, html[data-brand="board"] .tiers .sim b { color: #5C5C5C; }
html[data-brand="board"] .tiers .real path, html[data-brand="board"] .tiers .est path { stroke: #111111; }
html[data-brand="board"] .tiers .sim path { stroke: #5C5C5C; }
html[data-brand="board"] .stats div.est { border-top-color: #111111; }
html[data-brand="board"] .kicker, html[data-brand="board"] .how .n, html[data-brand="board"] a:not(.btn):hover { color: #111111; }
html[data-brand="board"] .story-ticks li.is-active button::before { background: #111111; border-color: #111111; border-radius: 999px; }
html[data-brand="board"] .story-ticks button::before { border-radius: 999px; }
html[data-brand="board"] #storyCanvas { border-radius: 24px; outline: 0; box-shadow: 0 0 0 1px #E3E3E0; }
html[data-brand="board"] #pilot .cta-band, html[data-brand="board"] .card, html[data-brand="board"] .design { border-radius: 24px; }
html[data-brand="board"] .demo-badge { background: #111111; color: #FFFFFF; border: 0; border-radius: 999px; }
html[data-brand="board"] .venue-thumb { background: #F4F4F2; border-radius: 18px; }
html[data-brand="board"] .venue-thumb polygon { fill: #FFFFFF; stroke: #111111; }
html[data-brand="board"] .tag, html[data-brand="board"] .chip { border-radius: 999px; }
html[data-brand="board"] .tag.shared { border-color: #111111; color: #111111; }
html[data-brand="board"] .phone-screen { border-radius: 27px; }
html[data-brand="board"] .ps-chips > span:first-child { border-color: #FFFFFF; color: #FFFFFF; }
html[data-brand="board"] input[type=text], html[data-brand="board"] input[type=email], html[data-brand="board"] input[type=date], html[data-brand="board"] input[type=number], html[data-brand="board"] select { border-radius: 999px; padding-inline: 16px; }
html[data-brand="board"] .eyebrow { color: #5C5C5C; }
html[data-brand="board"] body.on-stage .top, html[data-brand="board"] .top, html[data-brand="board"] body.app .top { background: color-mix(in srgb, #FFFFFF 90%, transparent); border-bottom-color: #E3E3E0; color: #111111; }
html[data-brand="board"] .dim-label { background: #FFFFFFE6; }
