/* Ledger Pilot front page (site-src/pages/front.html). Direction "product-cinema", with the month-close
   scene from "living-ui" and the teal moving-over moment from "depth-and-rhythm".
   Three planes: a light ground, blue stage plates, and the white product screens on them.
   Every horizontal move starts at the right edge, where a Hebrew line starts. */

:root {
  --ink: #0d1b2a;
  --ink-2: #334155;
  --ink-3: #475569;
  --muted: #64748b;
  --ground-1: #eef2fb;
  --ground-2: #ecfeff;
  --ground-3: #f6f8fb;
  --navy: #1e3a8a;
  --deep: #13263b;
  --night: #0d1b2a;
  --cyan: #06b6d4;
  --teal: #0e7490;
  --teal-dark: #155e75;
  --books: #1e3a8a;
  --docs: #0e7490;
  --payroll: #92400e;
  --office: #047857;
  --amber-bg: #fffbeb;
  --amber: #92400e;
  --header-h: 64px;
  --wrap: 1180px;
  --stage: 1320px;
  --ease-cam: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --plate-bg: radial-gradient(55% 65% at 72% 0%, rgba(6, 182, 212, 0.3), transparent 62%),
    linear-gradient(160deg, #1e3a8a 0%, #13263b 55%, #0d1b2a 100%);
  --overlap: clamp(56px, 8vw, 132px);
}
@media (max-width: 760px) { :root { --header-h: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 400 18px/1.7 Heebo, Arial, sans-serif; color: var(--ink); background: var(--ground-3); overflow-x: clip; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap-wide { width: min(100% - 32px, var(--stage)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px;
  background: var(--night); color: #fff; text-decoration: none; }
.skip-link:focus { top: 10px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 12px;
  background: var(--teal); color: #fff; font: 600 17px/1.2 Heebo, Arial, sans-serif; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(13, 27, 42, 0.12), 0 10px 22px -12px rgba(14, 116, 144, 0.7);
  transition: background-color 160ms ease-out, transform 160ms ease-out; }
.btn:hover { background: var(--teal-dark); }
.btn:active { transform: scale(0.97); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 15px; border-radius: 10px; }
.text-link { color: var(--teal); font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.text-link:hover { color: var(--teal-dark); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; height: var(--header-h); background: rgba(246, 248, 251, 0.96);
  box-shadow: 0 1px 0 rgba(13, 27, 42, 0.07); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.site-nav { display: flex; gap: 26px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 16px; font-weight: 500; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 18px; }
.login-link { color: var(--ink-2); font-size: 16px; font-weight: 500; text-decoration: none; }
.login-link:hover { color: var(--ink); }
@media (max-width: 760px) {
  .site-nav { display: none; }
  .brand { font-size: 17px; }
  .brand-mark { width: 30px; height: 30px; }
}
@media (max-width: 400px) { .login-link { display: none; } }

/* ---------- section scaffolding ---------- */
.section { padding-block: clamp(56px, 7vw, 96px); }
.section-head { margin-block-end: clamp(24px, 3vw, 40px); }
.section-head h2, .h2 { margin: 0; font: 700 clamp(32px, 4.2vw, 60px)/1.06 Heebo, Arial, sans-serif; letter-spacing: -0.015em; color: var(--ink); }
.lede { margin: 14px 0 0; max-width: 62ch; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--ink-2); }

/* =========================================================
   1. The stage (hero)
   ========================================================= */
.hero { position: relative; z-index: 2; padding-block-start: clamp(24px, 3.2vw, 44px);
  background: linear-gradient(180deg, var(--ground-1) 0%, var(--ground-2) 100%); }
.eyebrow { margin: 0 0 12px; color: var(--teal); font-weight: 600; font-size: 17px; }
.hero-title { margin: 0; font: 300 clamp(38px, 5.2vw, 80px)/1.04 Heebo, Arial, sans-serif; letter-spacing: -0.025em; color: var(--ink); }
/* One block per line, no hidden <br>: a phone never glues two words together. */
.hero-title .line { display: block; overflow: clip; padding-block-end: 0.1em; margin-block-end: -0.1em; }
.hero-title .line > span { display: inline-block; }
.hero-title .heavy { font-weight: 800; color: var(--navy); }
.hero-sub { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; margin-block-start: clamp(16px, 1.8vw, 26px); }
.deck { margin: 0; max-width: 44ch; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.6; color: var(--ink-2); }
.hero-cta { display: grid; justify-items: end; gap: 10px; }
.hero-cta .cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 22px; }
.offer { margin: 0; font-size: 15px; color: var(--ink-3); }
@media (max-width: 860px) {
  .hero-sub { grid-template-columns: 1fr; }
  .hero-cta, .hero-cta .cta-row { justify-items: start; justify-content: flex-start; }
}

.hero-plate { position: relative; z-index: 3; width: min(100% - 32px, var(--stage)); margin: clamp(20px, 2.4vw, 32px) auto calc(-1 * var(--overlap));
  padding: clamp(14px, 2.4vw, 32px) clamp(14px, 3vw, 40px) clamp(14px, 2vw, 22px); border-radius: 28px; perspective: 1800px;
  background: var(--plate-bg); box-shadow: 0 50px 90px -60px rgba(13, 27, 42, 0.75); }
.lens-wrap { position: relative; max-width: 1080px; margin-inline: auto; }
.screen { position: relative; border-radius: 14px; overflow: hidden; background: var(--ground-3); transform-origin: 50% 100%;
  box-shadow: 0 1px 2px rgba(13, 27, 42, 0.2), 0 50px 90px -40px rgba(0, 0, 0, 0.7); }
.hero-cam { aspect-ratio: 2 / 1; }
@media (max-width: 640px) { .hero-cam { aspect-ratio: 3 / 4; } }
.plate-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; max-width: 1080px; margin: 14px auto 0; }
.plate-note { margin: 0; font-size: 14px; color: #b6c3d1; }
.lens-toggle { font: 500 15px/1 Heebo, Arial, sans-serif; color: #f1f5f9; background: transparent; cursor: pointer;
  border: 1px solid rgba(241, 245, 249, 0.35); border-radius: 999px; padding: 10px 16px;
  transition: background-color 160ms ease-out, border-color 160ms ease-out; }
.lens-toggle[aria-pressed='true'] { background: rgba(6, 182, 212, 0.18); border-color: var(--cyan); }
.lens-toggle:active { transform: scale(0.97); }

/* The headline rises at once, on its own: it never waits for the image, so the text paints first. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .line > span { animation: lp-rise 720ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .js .hero-title .line + .line > span { animation-delay: 90ms; }
  /* clip-path inset() is physical. Under dir=rtl the wipe opens from the right edge, where a Hebrew line starts. */
  .js .screen { clip-path: inset(0 0 0 100% round 14px); transform: rotateX(8deg) translateY(24px);
    transition: clip-path 760ms var(--ease-cam) 120ms, transform 1200ms cubic-bezier(0.16, 1, 0.3, 1) 120ms; }
  html.js[dir='ltr'] .screen { clip-path: inset(0 100% 0 0 round 14px); }
  html.js .hero.is-on .screen { clip-path: inset(0 0 0 0 round 14px); transform: none; }
  /* Failsafe: if the script never runs, the stage still opens. */
  .js .hero:not(.is-on) .screen { animation: lp-failsafe 1ms linear 2.5s forwards; }
}
@keyframes lp-rise { from { transform: translateY(108%); } }
@keyframes lp-failsafe { to { clip-path: inset(0 0 0 0 round 14px); transform: none; } }

/* ---------- the camera (shared by the stage, the lens, the theater and the viewer) ---------- */
.cam { position: relative; overflow: hidden; background: var(--ground-3); }
.cam .shot { position: absolute; inset: 0; }
/* Region numbers are measured from the capture's physical left edge (the capture is already RTL),
   so the plane is anchored with left, not inset-inline-start, and nothing is mirrored. */
.cam-plane { position: absolute; top: 0; left: 0; width: 100%; transform-origin: 0 0; transition: transform 900ms var(--ease-cam); }
.cam-plane.is-instant { transition: none; }
.cam-plane > img { display: block; width: 100%; height: auto; }

/* The iris lives inside the plane, in capture coordinates: it rides the same transform as the image,
   so it never lags, never blinks, and costs no layout. */
.iris { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: 0; transition: opacity 300ms ease-out; }
.iris.is-on { opacity: 1; }
.iris-dim { fill: #0b1622; fill-opacity: 0.975; }
.iris-ring { fill: none; stroke: var(--cyan); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* The lifted card: the same capture, clipped to the card. The drop-shadow sits on the parent so it follows the clip. */
.hero-cam .base { transition: filter 600ms ease-out; }
.hero-cam.is-lifted .base { filter: saturate(0.6) brightness(0.93); }
.cut { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  transform-origin: calc((var(--x) + var(--w) / 2) * 1%) calc((var(--y) + var(--h) / 2) * 1%);
  filter: drop-shadow(0 18px 24px rgba(13, 27, 42, 0.32));
  transition: opacity 240ms ease-out, transform 640ms var(--ease-out); }
.cut img { display: block; width: 100%; height: auto;
  clip-path: inset(calc(var(--y) * 1%) calc((100 - var(--x) - var(--w)) * 1%) calc((100 - var(--y) - var(--h)) * 1%) calc(var(--x) * 1%) round 10px); }
.cut .edge { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%);
  border: calc(1.5px / var(--cam-s, 1)) solid rgba(6, 182, 212, 0.95); border-radius: 10px; }
.hero-cam.is-lifted .cut { opacity: 1; transform: scale(1.035); }

.notes { list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) {
  .notes { position: absolute; inset: 0; pointer-events: none; }
  /* Placed in physical pixels from the camera's left edge, like the regions. */
  .notes li { position: absolute; top: 0; left: 0; width: max-content; max-width: 250px; padding: 11px 15px; border-radius: 10px;
    background: rgba(13, 27, 42, 0.95); color: #f1f5f9; font-size: 15px; line-height: 1.45; box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.6);
    opacity: 0; transform: translate(var(--nx, 0px), calc(var(--ny, 0px) + 8px));
    transition: opacity 260ms ease-out, transform 380ms var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms + 200ms); }
  /* The note sits left of the card, so its connector leaves from its inline-end edge toward the card. */
  .notes li::before { content: ''; position: absolute; top: 50%; inset-inline-end: 100%; width: 24px; height: 1.5px; background: var(--cyan); }
  .notes li::after { content: ''; position: absolute; top: calc(50% - 3px); inset-inline-end: calc(100% + 21px); width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
  .hero-cam.is-lifted + .notes li { opacity: 1; transform: translate(var(--nx, 0px), var(--ny, 0px)); }
}
@media (max-width: 899px) {
  .notes { display: grid; gap: 8px; margin-block-start: 12px; counter-reset: note; }
  .notes li { position: relative; padding: 10px 14px 10px 14px; padding-inline-start: 40px; border-radius: 10px; background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9; font-size: 15px; line-height: 1.45; counter-increment: note; }
  .notes li::before { content: counter(note); position: absolute; inset-inline-start: 12px; top: 10px; width: 20px; height: 20px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(6, 182, 212, 0.25); color: #a5f3fc; font-size: 12px; font-weight: 700; line-height: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cam .base, .cut, .notes li, .iris { transition: none; }
  .hero-cam.is-lifted .cut { transform: none; }
  .cam-plane { transition: none; }
}

/* =========================================================
   2. Same month, twice (contrast)
   ========================================================= */
.contrast { background: var(--ground-3); padding-block: calc(var(--overlap) + clamp(48px, 6vw, 88px)) clamp(56px, 7vw, 96px); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(18px, 3vw, 48px);
  align-items: center; padding: clamp(18px, 2.6vw, 32px); border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(13, 27, 42, 0.05); }
.row-text { display: grid; gap: 14px; align-content: start; }
.row h3 { margin: 0; font: 700 clamp(21px, 1.8vw, 26px)/1.25 Heebo, Arial, sans-serif; color: var(--ink); }
.row p { margin: 0; font-size: 17px; line-height: 1.6; }
.row .tag-line { display: block; margin-block-end: 2px; font-size: 13px; font-weight: 700; letter-spacing: 0.01em; }
.before { color: var(--ink-2); padding-inline-start: 16px; }
.before > .tag-line { color: var(--muted); }
.row .after { display: grid; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--ground-2); color: var(--ink); }
.after .tag-line { color: var(--teal); }
.after .jump { font-size: 16px; justify-self: start; }
.row .crop { justify-self: end; }
.row.no-proof { grid-template-columns: 1fr; }
@media (min-width: 861px) {
  .row.no-proof .row-text { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-areas: 'q after' 'before after'; column-gap: clamp(18px, 3vw, 48px); }
  .row.no-proof h3 { grid-area: q; }
  .row.no-proof .before { grid-area: before; }
  .row.no-proof .after { grid-area: after; align-self: start; }
}
/* A legible crop of a real capture, in CSS only. --x --y --w --h are percent of the capture from its physical
   left edge (the capture is already RTL), so the image is placed with left and a physical translate.
   The width cap keeps it at one capture pixel per CSS pixel or less. Phones get their own, narrower region. */
.crop { --cx: var(--x); --cy: var(--y); --cw: var(--w); --car: var(--ar);
  position: relative; display: block; overflow: hidden; margin: 0; aspect-ratio: var(--car); width: min(100%, calc(var(--cw) * 20px));
  border-radius: 10px; background: var(--ground-3); box-shadow: 0 0 0 1px rgba(13, 27, 42, 0.06), 0 18px 32px -22px rgba(13, 27, 42, 0.45); }
.crop img { position: absolute; top: 0; left: 0; max-width: none; height: auto; width: calc(10000% / var(--cw));
  transform: translate(calc(var(--cx) * -1%), calc(var(--cy) * -1%)); }
@media (max-width: 640px) {
  .crop { --cx: var(--xm, var(--x)); --cy: var(--ym, var(--y)); --cw: var(--wm, var(--w)); --car: var(--arm, var(--ar)); }
}
@media (max-width: 860px) { .row { grid-template-columns: 1fr; } .row .crop { justify-self: start; } }
@media (max-width: 640px) {
  .row { padding: 18px 14px; }
  .before { padding-inline-start: 4px; }
}

/* Scroll-driven where supported: the proof opens from the reading edge while the old way recedes. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .row .crop { animation: lp-wipe-rtl linear both; animation-timeline: view(); animation-range: entry 15% cover 40%; }
    [dir='ltr'] .row .crop { animation-name: lp-wipe-ltr; }
    .row .before { animation: lp-recede linear both; animation-timeline: view(); animation-range: entry 30% cover 45%; }
  }
}
@keyframes lp-wipe-rtl { from { clip-path: inset(0 0 0 100% round 10px); } to { clip-path: inset(0 0 0 0 round 10px); } }
@keyframes lp-wipe-ltr { from { clip-path: inset(0 100% 0 0 round 10px); } to { clip-path: inset(0 0 0 0 round 10px); } }
@keyframes lp-recede { to { color: var(--muted); } }
/* Without scroll timelines (Firefox): the same move, once, on entry. */
@media (prefers-reduced-motion: no-preference) {
  .io-rows .row .crop { clip-path: inset(0 0 0 100% round 10px); transition: clip-path 620ms var(--ease-cam); }
  html.io-rows[dir='ltr'] .row .crop { clip-path: inset(0 100% 0 0 round 10px); }
  html.io-rows .row.is-in .crop { clip-path: inset(0 0 0 0 round 10px); }
  .io-rows .row .before { transition: color 400ms ease-out 200ms; }
  .io-rows .row.is-in .before { color: var(--muted); }
}

/* =========================================================
   3. One document (the light table)
   ========================================================= */
.onedoc { background: #fff; }
/* Rebuilt UI lives only here, on a gridded light table, and always under the amber tag. Real captures never sit on it. */
.doc-demo { border-radius: 22px; padding: clamp(16px, 3vw, 32px); background-color: var(--ground-1);
  background-image: linear-gradient(rgba(30, 58, 138, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 58, 138, 0.07) 1px, transparent 1px);
  background-size: 24px 24px; box-shadow: inset 0 0 0 1px rgba(30, 58, 138, 0.08); }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block-end: 20px; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 6px; background: var(--amber-bg); color: var(--amber); font-size: 14px; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(146, 64, 14, 0.18); }
.stepper { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.stepper button, .play { display: inline-flex; align-items: center; gap: 8px; font: 500 15px/1 Heebo, Arial, sans-serif; padding: 8px 14px 8px 14px;
  border-radius: 999px; border: 1px solid #cbd5e1; background: #fff; color: var(--ink-2); cursor: pointer;
  transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out; }
.stepper .n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ground-1); color: var(--navy);
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper button[aria-current='step'] { background: var(--night); border-color: var(--night); color: #f1f5f9; }
.stepper button[aria-current='step'] .n { background: var(--cyan); color: var(--night); }
.play { margin-inline-start: auto; }
.play svg { width: 14px; height: 14px; fill: currentColor; }
.demo-body { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.doc, .work > * { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; }
.doc { padding: 20px; box-shadow: 0 24px 40px -28px rgba(13, 27, 42, 0.45); }
.doc h3 { margin: 4px 0 12px; font: 700 20px/1.3 Heebo, Arial, sans-serif; }
.src { margin: 0; font-size: 13px; color: var(--teal); font-weight: 600; }
.fields { margin: 0; display: grid; gap: 4px; }
.fields > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) 56px; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; }
.fields > div:nth-child(odd) { background: var(--ground-3); }
.fields dt { color: var(--muted); font-size: 14px; }
.fields dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.conf { height: 4px; border-radius: 2px; background: #e2e8f0; overflow: hidden; }
.conf i { display: block; height: 100%; background: var(--teal); transform: scaleX(var(--c, 0.94)); transform-origin: 100% 50%; }
[dir='ltr'] .conf i { transform-origin: 0 50%; }
.work { display: grid; gap: 14px; }
.checks { list-style: none; margin: 0; padding: 14px 16px; display: grid; gap: 8px; }
.checks li { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.checks svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--office); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 16; stroke-dashoffset: 0; }
.entry { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.entry caption { caption-side: top; text-align: start; padding: 12px 14px 4px; font-size: 14px; color: var(--ink-3); }
.chip { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--amber-bg); color: var(--amber); font-weight: 700; margin-inline-end: 6px; }
.entry th, .entry td { padding: 8px 14px; text-align: start; border-block-end: 1px solid #f1f5f9; }
.entry th { font-size: 14px; font-weight: 600; color: var(--muted); }
.entry th:not(:first-child), .entry td:not(:first-child) { text-align: end; white-space: nowrap; width: 1%; }
.entry tfoot td { font-weight: 700; color: var(--office); border: 0; }
.decide { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px 14px; }
.approve { font: 600 16px/1 Heebo, Arial, sans-serif; padding: 13px 24px; border: 0; border-radius: 10px; background: var(--teal); color: #fff; cursor: pointer;
  transition: background-color 160ms ease-out; }
.approve:hover { background: var(--teal-dark); }
.approve[aria-disabled='true'] { background: #cbd5e1; color: var(--ink-3); cursor: default; }
.approve.is-done { background: #d1fae5; color: #065f46; }
.approve:not([aria-disabled='true']):active { transform: scale(0.97); }
.status { margin: 0; flex: 1 1 220px; font-size: 15px; color: var(--ink-2); }
.trail { list-style: none; margin: 0; padding: 10px 14px; display: grid; gap: 6px; font-size: 15px; }
.trail li { display: flex; justify-content: space-between; gap: 12px; }
.trail span { color: var(--muted); }
.doc-col { display: grid; gap: 22px; align-content: start; }
.proof { margin: 0; display: grid; gap: 10px; justify-items: start; clip-path: inset(0 0 0 0); }
.proof figcaption { font-size: 15px; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 760px) {
  .demo-body { grid-template-columns: 1fr; }
  .play { margin-inline-start: 0; }
  /* On one column the real proof comes after the approval, where the eye already is. */
  .doc-col { display: contents; }
  .entry th, .entry td { padding: 8px 10px; }
  .fields > div { grid-template-columns: 5.6em minmax(0, 1fr) 44px; }
  .work { order: 1; }
  .proof { order: 2; }
}

/* Staged states. is-s1 to is-s6 accumulate. Without the script (no is-live) the demo shows its finished state. */
.is-live:not(.is-s1) .doc { opacity: 0; transform: translateY(14px); }
.is-live:not(.is-s2) .fields dd { opacity: 0.35; filter: blur(3px); }
.is-live:not(.is-s2) .conf i { transform: scaleX(0); }
.is-live:not(.is-s3) .checks li { color: #94a3b8; }
.is-live:not(.is-s3) .checks svg { stroke-dashoffset: 16; }
.is-live:not(.is-s4) .entry caption, .is-live:not(.is-s4) .entry tbody tr, .is-live:not(.is-s4) .entry tfoot, .is-live:not(.is-s4) .trail .t1 { opacity: 0; }
.is-live:not(.is-s6) .trail .t2 { opacity: 0; }
.is-live:not(.is-s6) .proof { clip-path: inset(0 0 0 100%); }
[dir='ltr'] .is-live:not(.is-s6) .proof { clip-path: inset(0 100% 0 0); }
@media (prefers-reduced-motion: no-preference) {
  .doc { transition: opacity 360ms ease-out, transform 480ms var(--ease-out); }
  .fields dd { transition: opacity 260ms ease-out, filter 260ms ease-out; transition-delay: calc(var(--i) * 170ms); }
  .conf i { transition: transform 420ms var(--ease-out); transition-delay: calc(var(--i) * 170ms + 120ms); }
  .checks li { transition: color 200ms ease-out; transition-delay: calc(var(--i) * 220ms); }
  .checks svg { transition: stroke-dashoffset 320ms ease-out; transition-delay: calc(var(--i) * 220ms); }
  .entry tbody tr { transition: opacity 260ms ease-out; transition-delay: calc(var(--i) * 160ms); }
  .entry caption, .entry tfoot, .trail li { transition: opacity 260ms ease-out; }
  .entry tfoot { transition-delay: 500ms; }
  .proof { transition: clip-path 620ms var(--ease-cam) 300ms; }
  /* One ring when the draft reaches the approval, then stillness: no looping pulse. */
  .is-s5:not(.is-s6) .approve { animation: lp-ask 900ms ease-out 1; }
}
@keyframes lp-ask { from { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.55); } to { box-shadow: 0 0 0 14px rgba(6, 182, 212, 0); } }

/* @scenes-start */
/* =========================================================
   3. Chapters: the assistant, tax, payroll, office policy
   Rebuilt UI sits only on the gridded light table, always under the amber tag.
   Real captures sit beside it, named as such.
   ========================================================= */
.feature { background: #fff; }
.feature-tax { background: var(--ground-1); }
.kicker-line { margin: 0 0 10px; display: inline-flex; align-items: center; gap: 10px; color: var(--tone); font-weight: 700; font-size: 16px; }
.kicker-line::before { content: ''; width: 22px; height: 3px; border-radius: 2px; background: var(--tone); }
.feature .lede { max-width: 70ch; }

.scene { position: relative; border-radius: 22px; padding: clamp(14px, 2.6vw, 28px); background-color: var(--ground-1);
  background-image: linear-gradient(rgba(30, 58, 138, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 58, 138, 0.07) 1px, transparent 1px);
  background-size: 24px 24px; box-shadow: inset 0 0 0 1px rgba(30, 58, 138, 0.08); }
.feature-tax .scene { background-color: var(--ground-3); }
.scene-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-block-end: 18px; }
.scene-note { margin: 0; font-size: 15px; color: var(--ink-3); }
.scene-body { display: grid; gap: 18px; align-items: start; }
.scene .st { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.st.late { background: #fee2e2; color: #991b1b; }
.st.near { background: var(--amber-bg); color: var(--amber); box-shadow: inset 0 0 0 1px rgba(146, 64, 14, 0.15); }
.st.ready { background: #dbeafe; color: #1e3a8a; }
.st.done { background: #d1fae5; color: #065f46; }
.st.na { background: #f1f5f9; color: var(--muted); }
.st.open { background: #f1f5f9; color: var(--ink-2); }

/* the chat (rebuilt) */
.chat { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 40px -30px rgba(13, 27, 42, 0.45); }
.chat-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 16px; background: var(--night); color: #f1f5f9; font-size: 15px; }
.chat-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2); }
.chat-ctx { margin-inline-start: auto; color: #b6c3d1; font-size: 13px; }
.chat-log { display: grid; gap: 12px; padding: 16px; align-content: start; }
.msg { margin: 0; max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 16px; line-height: 1.5; }
/* The person writes from the inline-end side; the assistant answers from the reading edge. */
.msg.me { justify-self: end; background: var(--navy); color: #fff; border-end-end-radius: 4px; }
.msg.bot { justify-self: start; background: var(--ground-1); color: var(--ink); border-end-start-radius: 4px; }
.swap { display: grid; }
.swap > * { grid-area: 1 / 1; }
.act-card, .act-done, .answer { justify-self: stretch; border-radius: 14px; border: 1px solid #cbd5e1; background: #fff; padding: 14px 16px; }
.act-card { border-color: rgba(14, 116, 144, 0.35); box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.08); }
.act-title { margin: 0 0 8px; font-weight: 700; font-size: 16px; }
.act-rows { margin: 0; display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.act-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-block-end: 1px dashed #e2e8f0; font-size: 15px; }
.act-rows dt { color: var(--muted); }
.act-rows dd { margin: 0; font-weight: 600; text-align: end; }
.act-rows .sum dd { color: var(--navy); }
.act-note { margin: 10px 0 0; font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.act-btns { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fake-btn { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 15px; line-height: 1.2; }
.fake-btn.go { background: var(--teal); color: #fff; }
.fake-btn.ghost { box-shadow: inset 0 0 0 1px #cbd5e1; color: var(--ink-2); }
.act-done { align-self: start; border-color: #a7f3d0; background: #f0fdf4; }
.act-done p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.act-done .done-title, .office-out, .board-log { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #065f46; }
.act-done .done-title { margin-block-end: 4px; font-size: 16px; }
.done-title svg, .office-out svg, .board-log svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* the assistant scene */
.agent-body { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); }
.audit { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 16px; }
.audit-title { margin: 0 0 10px; font-weight: 700; font-size: 15px; color: var(--ink); }
.audit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.audit-list li { display: grid; grid-template-columns: 3.6em minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 7px 10px; border-radius: 8px; background: var(--ground-3); }
.audit-list li:nth-child(4) { margin-block-start: 8px; }
.audit-list b { color: var(--teal); font-weight: 700; }
.audit-list span { color: var(--ink-2); }
.audit-list time { color: var(--muted); font-variant-numeric: tabular-nums; }
.audit-note { margin: 12px 0 0; font-size: 14px; color: var(--ink-3); }

/* the tax scene */
.tax-body { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.tax-side { display: grid; gap: 12px; }
.board-wrap { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow-x: auto; }
.board { width: 100%; border-collapse: collapse; font-size: 14px; }
.board caption { caption-side: top; text-align: start; padding: 12px 14px 6px; font-weight: 700; font-size: 15px; color: var(--ink); }
.board th, .board td { padding: 8px 8px; text-align: start; border-block-end: 1px solid #f1f5f9; vertical-align: middle; }
.board thead th { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.board tbody th { font-weight: 600; white-space: nowrap; }
.board small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.board td.flip .swap { justify-items: start; }
.scene.is-s2 .board td.flip .st.done { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(6, 182, 212, 0.55); }
.board-log { margin: 0; font-size: 14px; font-weight: 600; }
.alert-card { background: var(--night); color: #f1f5f9; border-radius: 14px; padding: 14px 16px; }
.alert-card p { margin: 0; }
.alert-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #a5f3fc; font-weight: 600; }
.bell { width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; }
.alert-card .alert-body { margin-block: 4px 6px; font-size: 16px; font-weight: 600; }
.alert-link { font-size: 14px; color: #a5f3fc; text-decoration: underline; text-underline-offset: 4px; }
.answer p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); }
.sources { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.sources li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 12px; border-radius: 10px; background: var(--ground-3); }
.src-name { font-weight: 700; font-size: 14px; }
.src-meta { grid-column: 1; font-size: 13px; color: var(--ink-3); }
.ver { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ver.ok { background: #d1fae5; color: #065f46; }
.ver.no { background: var(--amber-bg); color: var(--amber); box-shadow: inset 0 0 0 1px rgba(146, 64, 14, 0.18); }
.answer .answer-foot { margin-block-start: 10px; font-size: 13px; color: var(--muted); }
.feature-tax .lens { margin-block-start: clamp(24px, 3vw, 36px); }
.feature-tax .lens .cam { background: #fff; }

/* the payroll scene */
.pay-body { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); }
.pay-side { display: grid; gap: 12px; align-content: start; }
.chat-mini .chat-log { --flow-h: 290px; }
.emps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.emp { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0;
  transition: border-color 240ms ease-out, box-shadow 240ms ease-out; }
.emp b { font-size: 15px; }
.emp > span:not(.emp-state) { grid-column: 1; font-size: 13px; color: var(--muted); }
.emp-state { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.emp.is-picked { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15); }
.scene.is-live:not(.is-s1) .emp.is-picked { border-color: #e2e8f0; box-shadow: none; }
.pay-main { display: grid; gap: 12px; align-content: start; }
.file-chip, .masav { margin: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px dashed rgba(14, 116, 144, 0.5); font-size: 15px; }
.file-ico { flex: none; width: 22px; height: 26px; border-radius: 4px; background: linear-gradient(135deg, transparent 70%, rgba(4, 120, 87, 0.35) 70%), #d1fae5; box-shadow: inset 0 0 0 1.5px #047857; }
.masav { border-style: solid; border-color: #a7f3d0; background: #f0fdf4; }
.masav span:last-child { display: grid; font-size: 14px; color: var(--ink-3); }
.masav b { color: var(--ink); font-size: 15px; }
.hours-wrap { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow-x: auto; }
.hours { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 8px 10px; text-align: start; border-block-end: 1px solid #f1f5f9; white-space: nowrap; }
.hours th { font-size: 13px; color: var(--muted); font-weight: 600; }
.hours tr.more td { color: var(--muted); font-size: 13px; }
.pay-main .act-btns { margin: 0; }
.run { display: grid; gap: 10px; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; }
.run-title { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; font-size: 15px; }
.run-title b { color: #065f46; font-size: 16px; }
.run-title span { color: #991b1b; font-weight: 600; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pills li { padding: 4px 10px; border-radius: 999px; background: #d1fae5; color: #065f46; font-size: 13px; font-weight: 600; }
.pills li::after { content: ' · נרשם'; font-weight: 400; }
.blocked { margin: 0; display: block; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: var(--ink-2); font-size: 14px;
  border-inline-start: 3px solid #dc2626; }
.blocked b { display: block; margin-block-end: 2px; color: #991b1b; font-size: 15px; }

/* the policy scene */
.policy-body { gap: 14px; }
.policy-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 14px; align-items: start; }
.policy-row .bank-rows li { grid-template-columns: minmax(0, 1fr) auto; }
.policy-row .b-res { grid-column: 1 / -1; }
.policy-row .audit-row dl { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.office, .bank, .audit-row { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 16px; }
.office { display: grid; gap: 10px; align-content: start; }
.office p, .bank p, .audit-row p { margin: 0; }
.office-name { font-weight: 700; font-size: 16px; }
.toggle-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; color: var(--ink-2); }
.toggle { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: var(--teal); transition: background-color 260ms ease-out; }
.toggle i { position: absolute; top: 3px; inset-inline-end: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: inset-inline-end 260ms var(--ease-out); }
/* Off: the knob rests at the reading edge, on the right under dir=rtl; on, it travels to the inline end. */
.toggle.is-off { background: #cbd5e1; }
.toggle.is-off i { inset-inline-end: 19px; }
.office .jrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px;
  background: var(--ground-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.office .swap { min-height: 40px; align-items: center; }
.office .act-btns { margin: 0; }
.office-out { font-size: 15px; }
.office .office-log { font-size: 13px; color: var(--ink-3); padding-block-start: 8px; border-block-start: 1px dashed #e2e8f0; }
.bank .bank-head { margin-block-end: 10px; }
.bank-head b { margin-inline-end: auto; color: var(--ink); font-size: 16px; }
.bank-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bank-rows li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.55fr) minmax(0, 1fr); gap: 6px 12px; align-items: center; padding: 9px 12px;
  border-radius: 10px; background: var(--ground-3); font-size: 14px; }
.b-kind { color: var(--muted); }
.scene .b-res .st { white-space: normal; }
.audit-row .audit-title { margin-block-end: 8px; }
.audit-row dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.audit-row dl > div { padding: 8px 10px; border-radius: 10px; background: var(--ground-3); }
.audit-row dt { font-size: 13px; color: var(--muted); }
.audit-row dd { margin: 0; font-size: 15px; font-weight: 600; }
.policy-line { margin: clamp(22px, 3vw, 32px) 0 0; font: 700 clamp(21px, 2vw, 26px)/1.35 Heebo, Arial, sans-serif; color: var(--ink); max-width: 44ch; }

/* real screens beside the rebuilt ones */
.real { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr); gap: 16px 28px; align-items: center; margin-block-start: clamp(24px, 3vw, 36px); }
.real .crop { justify-self: stretch; width: min(100%, calc(var(--cw) * 20px)); }
.real.wide { grid-template-columns: minmax(0, 1fr); }
.real.wide .crop { justify-self: start; max-width: 1000px; }
.real.wide .real-note { max-width: 70ch; }
.real-note { margin: 0; font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.real-note b { display: block; color: var(--ink); margin-block-end: 2px; }

.points { list-style: none; margin: clamp(26px, 3.4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; counter-reset: pt; }
.points li { position: relative; padding: 16px 18px; padding-inline-start: 52px; border-radius: 14px; background: var(--ground-3); color: var(--ink-2); font-size: 16px; line-height: 1.6; counter-increment: pt; }
.feature-tax .points li, .control .points li { background: #fff; }
.points li::before { content: counter(pt); position: absolute; inset-inline-start: 16px; top: 16px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--tone); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.points b { display: block; margin-block-end: 2px; color: var(--ink); font-size: 17px; }

@media (max-width: 960px) {
  .agent-body, .tax-body, .pay-body, .policy-row { grid-template-columns: 1fr; }
  .pay-side { display: contents; }
  .pay-body .chat-mini { order: 2; }
  .real { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .points, .offices, .audit-row dl { grid-template-columns: 1fr; }
  .bank-rows li { grid-template-columns: 1fr; }
  .board .opt, .hours .opt { display: none; }
  .msg { max-width: 94%; font-size: 15px; }
  .chat-log { padding: 12px; }
  .points li { padding-inline-start: 46px; }
  .points li::before { inset-inline-start: 12px; }
  .scene-bar .play { margin-inline-start: 0; }
}

/* Chats run like chats: a message that has not been sent yet is not there, and the log grows up from the bottom
   inside a fixed height, so nothing below it moves. */
.chat-log.flow { display: flex; flex-direction: column; justify-content: flex-end; min-height: var(--flow-h, 0px); }
.flow > .msg.me { align-self: flex-end; }
.flow > .msg.bot { align-self: flex-start; }
.flow > .swap, .flow > .answer, .flow > .act-card { align-self: stretch; }
.scene-agent .chat-log { --flow-h: 480px; }
.scene-tax .chat-log { --flow-h: 470px; }
@media (max-width: 760px) {
  .scene-agent .chat-log { --flow-h: 560px; }
  .scene-tax .chat-log { --flow-h: 600px; }
  .chat-mini .chat-log { --flow-h: 330px; }
}
.scene:not(.is-live) [data-out] { display: none; }
.scene.is-live:not(.is-s1) .flow [data-in='1'],
.scene.is-live:not(.is-s2) .flow [data-in='2'],
.scene.is-live:not(.is-s3) .flow [data-in='3'],
.scene.is-live:not(.is-s4) .flow [data-in='4'],
.scene.is-live:not(.is-s5) .flow [data-in='5'],
.scene.is-live:not(.is-s6) .flow [data-in='6'],
.scene.is-live:not(.is-s7) .flow [data-in='7'],
.scene.is-live:not(.is-s8) .flow [data-in='8'] { display: none; }
.scene.is-live.is-s1 .flow [data-out='1'],
.scene.is-live.is-s2 .flow [data-out='2'],
.scene.is-live.is-s3 .flow [data-out='3'],
.scene.is-live.is-s4 .flow [data-out='4'],
.scene.is-live.is-s5 .flow [data-out='5'],
.scene.is-live.is-s6 .flow [data-out='6'],
.scene.is-live.is-s7 .flow [data-out='7'],
.scene.is-live.is-s8 .flow [data-out='8'] { display: none; }

/* Staged states. is-s1 to is-sN accumulate; without the script (no is-live) every scene shows its finished state. */
.scene.is-live:not(.is-s1) [data-in='1']:not(.type),
.scene.is-live:not(.is-s2) [data-in='2']:not(.type),
.scene.is-live:not(.is-s3) [data-in='3']:not(.type),
.scene.is-live:not(.is-s4) [data-in='4']:not(.type),
.scene.is-live:not(.is-s5) [data-in='5']:not(.type),
.scene.is-live:not(.is-s6) [data-in='6']:not(.type),
.scene.is-live:not(.is-s7) [data-in='7']:not(.type),
.scene.is-live:not(.is-s8) [data-in='8']:not(.type) { opacity: 0; visibility: hidden; transform: translateY(8px); }
/* Typing is a wipe from the reading edge: the right under dir=rtl, where a Hebrew line starts. */
.scene.is-live:not(.is-s1) .type[data-in='1'],
.scene.is-live:not(.is-s2) .type[data-in='2'],
.scene.is-live:not(.is-s3) .type[data-in='3'],
.scene.is-live:not(.is-s4) .type[data-in='4'],
.scene.is-live:not(.is-s5) .type[data-in='5'],
.scene.is-live:not(.is-s6) .type[data-in='6'],
.scene.is-live:not(.is-s7) .type[data-in='7'],
.scene.is-live:not(.is-s8) .type[data-in='8'] { clip-path: inset(0 0 0 100% round 14px); }
.scene.is-live.is-s1 [data-out='1'],
.scene.is-live.is-s2 [data-out='2'],
.scene.is-live.is-s3 [data-out='3'],
.scene.is-live.is-s4 [data-out='4'],
.scene.is-live.is-s5 [data-out='5'],
.scene.is-live.is-s6 [data-out='6'],
.scene.is-live.is-s7 [data-out='7'],
.scene.is-live.is-s8 [data-out='8'] { opacity: 0; visibility: hidden; transform: translateY(-6px); }
.scene.is-live:not(.is-s1) [data-on='1'],
.scene.is-live:not(.is-s2) [data-on='2'],
.scene.is-live:not(.is-s3) [data-on='3'],
.scene.is-live:not(.is-s4) [data-on='4'],
.scene.is-live:not(.is-s5) [data-on='5'],
.scene.is-live:not(.is-s6) [data-on='6'],
.scene.is-live:not(.is-s7) [data-on='7'],
.scene.is-live:not(.is-s8) [data-on='8'] { background: #cbd5e1; }
.scene.is-live:not(.is-s1) .toggle[data-on='1'] i,
.scene.is-live:not(.is-s2) .toggle[data-on='2'] i,
.scene.is-live:not(.is-s3) .toggle[data-on='3'] i,
.scene.is-live:not(.is-s4) .toggle[data-on='4'] i,
.scene.is-live:not(.is-s5) .toggle[data-on='5'] i,
.scene.is-live:not(.is-s6) .toggle[data-on='6'] i,
.scene.is-live:not(.is-s7) .toggle[data-on='7'] i,
.scene.is-live:not(.is-s8) .toggle[data-on='8'] i { inset-inline-end: 19px; }
.scene.is-live.is-s1 [data-press='1'],
.scene.is-live.is-s2 [data-press='2'],
.scene.is-live.is-s3 [data-press='3'],
.scene.is-live.is-s4 [data-press='4'],
.scene.is-live.is-s5 [data-press='5'],
.scene.is-live.is-s6 [data-press='6'],
.scene.is-live.is-s7 [data-press='7'],
.scene.is-live.is-s8 [data-press='8'] { filter: brightness(0.9); }
@media (prefers-reduced-motion: no-preference) {
  .scene.is-live [data-in], .scene.is-live [data-out] { transition: opacity 320ms ease-out, transform 420ms var(--ease-out), visibility 0s linear 0s;
    transition-delay: calc(var(--d, 0) * 110ms); }
  .scene.is-live .type[data-in] { transition: clip-path 1000ms steps(20, end); }
  .scene.is-live .pills li { transition: opacity 240ms ease-out, transform 300ms var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms + 120ms); }
  .scene.is-live:not(.is-s5) .pills li { opacity: 0; transform: scale(0.85); }
.scene.is-s1:not(.is-s2) [data-press='1'],
.scene.is-s2:not(.is-s3) [data-press='2'],
.scene.is-s3:not(.is-s4) [data-press='3'],
.scene.is-s4:not(.is-s5) [data-press='4'],
.scene.is-s5:not(.is-s6) [data-press='5'],
.scene.is-s6:not(.is-s7) [data-press='6'],
.scene.is-s7:not(.is-s8) [data-press='7'],
.scene.is-s8:not(.is-s9) [data-press='8'] { animation: lp-press 560ms ease-out 1 both; }
  .scene.is-live .flow [data-in] { animation: lp-pop 380ms var(--ease-out) both; }
  .scene.is-live .flow .type[data-in] { animation: lp-type 1000ms steps(20, end) both; }
  .scene.is-reset, .scene.is-reset * { transition: none !important; animation: none !important; }
}
@keyframes lp-pop { from { opacity: 0; transform: translateY(10px); } }
@keyframes lp-type { from { clip-path: inset(0 0 0 100% round 14px); } to { clip-path: inset(0 0 0 0 round 14px); } }
@keyframes lp-press { 0% { transform: none; box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.6); } 35% { transform: scale(0.94); } 100% { transform: none; box-shadow: 0 0 0 12px rgba(6, 182, 212, 0); } }
@media (prefers-reduced-motion: reduce) {
  .toggle, .toggle i, .emp { transition: none; }
}

/* Documents, in one line: the old one-document scene, smaller and quieter. */
.section.onedoc { padding-block: clamp(44px, 5vw, 72px); background: var(--ground-3); }
.onedoc-grid { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.onedoc .section-head h2 { font-size: clamp(28px, 3vw, 40px); }
.onedoc .lede { font-size: 17px; }
.onedoc-more { margin: 12px 0 0; font-size: 15px; color: var(--ink-3); }
.onedoc .doc-demo { padding: clamp(12px, 2vw, 20px); }
.onedoc .demo-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.onedoc .doc { padding: 16px; }
.onedoc .fields > div { padding: 6px 8px; }
.onedoc .checks { padding: 10px 14px; font-size: 15px; }
.onedoc .entry { font-size: 15px; }
@media (max-width: 1080px) { .onedoc-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .onedoc .demo-body { grid-template-columns: 1fr; } }
.feature.control { background: var(--ground-1); }
.tg-state { font-weight: 600; color: var(--ink); }
/* @scenes-end */

/* =========================================================
   Month close (from the living-ui direction, in this page's language):
   nine checks run in sequence, a blocker is fixed in place, then the
   bookkeeping side locks the month and the CPA closes the period.
   ========================================================= */
.feature-close { background: #fff; }
.close-body { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr); }
.mc { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: clamp(14px, 2.4vw, 24px); box-shadow: 0 24px 40px -30px rgba(13, 27, 42, 0.45); }
.mc p { margin: 0; }
.mc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 16px; margin-block-end: 12px; }
.mc-kicker { font-size: 13px; color: var(--muted); }
.mc-title { margin: 2px 0 0; font: 700 clamp(18px, 1.6vw, 21px)/1.3 Heebo, Arial, sans-serif; color: var(--ink); }
.mc-state { display: flex; align-items: center; gap: 8px; }
.mc-lock { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.mc-shackle { transform: translateY(-3px); }
.mc.is-locked .mc-shackle { transform: none; }
.mc.is-locked .mc-lock { stroke: var(--office); }
.mc-status { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap;
  background: #fee2e2; color: #991b1b; }
.mc-status[data-state='ready'] { background: #dbeafe; color: #1e3a8a; }
.mc-status[data-state='bk'] { background: var(--amber-bg); color: var(--amber); box-shadow: inset 0 0 0 1px rgba(146, 64, 14, 0.15); }
.mc-status[data-state='closed'] { background: #d1fae5; color: #065f46; }
.mc.is-running .mc-status { visibility: hidden; }
.mc-checks { list-style: none; margin: 0; padding: 0; display: grid; }
.mc-ck { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; padding: 9px 2px; border-block-end: 1px solid #f1f5f9; }
.mc-ico { position: relative; width: 20px; height: 20px; border-radius: 50%; background: #d1fae5; }
.mc-ico::after { content: ''; position: absolute; inset: 5px 4px 7px; border: solid #047857; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.mc-ck[data-result='warn'] .mc-ico { background: var(--amber-bg); box-shadow: inset 0 0 0 1px rgba(146, 64, 14, 0.2); }
.mc-ck[data-result='warn'] .mc-ico::after { inset: 4px 9px; border-width: 0 0 0 2px; border-color: var(--amber); transform: none; }
.mc-ck[data-result='block'] .mc-ico { background: #fee2e2; }
.mc-ck[data-result='block'] .mc-ico::after { inset: 9px 5px; border-width: 2px 0 0; border-color: #b91c1c; transform: none; }
.mc-name { font-size: 15px; color: var(--ink); line-height: 1.45; }
.mc-res { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; background: #d1fae5; color: #065f46; }
.mc-ck[data-result='warn'] .mc-res { background: var(--amber-bg); color: var(--amber); }
.mc-ck[data-result='block'] .mc-res { background: #fee2e2; color: #991b1b; }
.mc-ck[data-result='pass'] .mc-open, .mc-ck[data-result='pass'] .mc-fix { display: none; }
.mc-open { font: 600 13px/1 Heebo, Arial, sans-serif; color: var(--teal); background: #fff; border: 1px solid #cbd5e1; border-radius: 999px; padding: 6px 12px; cursor: pointer;
  transition: border-color 160ms ease-out, background-color 160ms ease-out; }
.mc-open:hover { border-color: var(--teal); }
.mc-open[aria-expanded='true'] { background: var(--ground-2); border-color: var(--teal); }
.mc-fix { grid-column: 2 / -1; padding: 6px 0 4px; font-size: 14px; color: var(--ink-2); }
.mc-fix p { margin: 0 0 8px; line-height: 1.55; }
.mc-pair { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-pair span { padding: 4px 10px; border-radius: 8px; background: var(--ground-3); font-variant-numeric: tabular-nums; }
.mc.is-running .mc-ck:not(.is-done) .mc-ico, .mc.is-running .mc-ck:not(.is-done) .mc-res, .mc.is-running .mc-ck:not(.is-done) .mc-open { visibility: hidden; }
.mc.is-running .mc-ck:not(.is-done) .mc-name { color: #94a3b8; }
.mc-btn { font: 600 15px/1.2 Heebo, Arial, sans-serif; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--teal); background: var(--teal); color: #fff; cursor: pointer;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, opacity 160ms ease-out, transform 160ms ease-out; }
.mc-btn:hover:not(:disabled) { background: var(--teal-dark); border-color: var(--teal-dark); }
.mc-btn:active:not(:disabled) { transform: scale(0.97); }
.mc-btn:disabled { cursor: not-allowed; opacity: 0.45; }
.mc-btn-ghost { background: #fff; color: var(--teal); }
.mc-btn-ghost:hover:not(:disabled) { background: var(--ground-2); color: var(--teal-dark); }
.mc-fix .mc-btn { padding: 8px 14px; font-size: 14px; }
.mc-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block-start: 16px; }
.mc-step { display: grid; gap: 8px; align-content: start; justify-items: start; padding: 14px; border-radius: 12px; background: var(--ground-3); }
.mc-who { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.mc-who .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mc-note { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.mc-reason { margin-block-start: 14px; padding-block-start: 14px; border-block-start: 1px dashed #e2e8f0; }
.mc-reason label { display: block; margin-block-end: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.mc-reason-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-reason input { flex: 1 1 220px; min-width: 0; font: 400 15px/1.4 Heebo, Arial, sans-serif; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 10px; color: var(--ink); background: #fff; }
.scene-close.is-live .mc-audit .audit-list:empty::before { content: 'הבדיקות רצות...'; display: block; padding: 7px 10px; border-radius: 8px; background: var(--ground-3); color: var(--muted); }
.mc-audit .audit-list li:nth-child(4) { margin-block-start: 0; }
.mc-demo-note { margin: 12px 0 0; max-width: 80ch; font-size: 14px; color: var(--muted); }
.scene-close .play[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .mc-shackle { transition: transform 360ms var(--ease-out); }
  .mc-ck.is-done .mc-ico, .mc-ck.is-done .mc-res { animation: lp-settle 240ms var(--ease-out) both; }
  .mc-audit .audit-list li.is-new { animation: lp-pop 380ms var(--ease-out) both; }
}
@keyframes lp-settle { from { transform: scale(0.85); opacity: 0.4; } }
@media (max-width: 960px) { .close-body { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .mc-ck { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .mc-open { grid-column: 2; justify-self: start; }
  .mc-steps { grid-template-columns: 1fr; }
}

/* =========================================================
   4. The theater (pinned chapters)
   ========================================================= */
.chapters { background: #fff; }
.theater { position: relative; isolation: isolate; color: #f1f5f9; padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 72px); view-timeline: --theater block; }
.theater::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 36% at 72% 0%, rgba(6, 182, 212, 0.2), transparent 62%), linear-gradient(180deg, var(--deep) 0%, var(--night) 40%); }
/* The plate from the stage widens into the full-bleed theater as it enters. Transform only, on the background layer.
   Static and full-bleed where scroll timelines are missing. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .theater::before { animation: lp-theater linear both; animation-timeline: --theater; animation-range: entry 0% entry 70%; }
  }
}
@keyframes lp-theater { from { transform: scaleX(0.93); border-radius: 28px; } to { transform: none; border-radius: 0; } }
.chapters-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 32px; padding-block-end: 8px; }
.chapters-head h2 { margin: 0; font: 700 clamp(32px, 4.2vw, 60px)/1.06 Heebo, Arial, sans-serif; letter-spacing: -0.015em; }
.chapters-head .lede { color: #b6c3d1; margin-block-start: 10px; }
.roles { display: flex; gap: 6px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; }
.roles::-webkit-scrollbar { display: none; }
.roles a { flex: none; padding: 9px 16px; border-radius: 999px; color: #b6c3d1; text-decoration: none; font-size: 15px; border: 1px solid rgba(182, 195, 209, 0.25);
  transition: background-color 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out; }
.roles a:hover { color: #f1f5f9; border-color: rgba(182, 195, 209, 0.55); }
.roles a[aria-current='true'] { color: var(--night); background: #a5f3fc; border-color: #a5f3fc; }

.reel { display: grid; width: min(100%, var(--stage)); margin-inline: auto; }
.reel > .stage, .reel > .steps { grid-area: 1 / 1; }
.stage { position: sticky; top: var(--header-h); align-self: start; height: calc(100vh - var(--header-h));
  display: grid; grid-template-rows: minmax(0, 1fr) auto auto; padding: 16px clamp(16px, 3vw, 40px) 14px; }
@supports (height: 100svh) { .stage { height: calc(100svh - var(--header-h)); } }
.stage .cam { border-radius: 16px; background: #0b1622; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(148, 163, 184, 0.12); }
.stage .shot { visibility: hidden; overflow: hidden; }
/* The wipe is a pair of opposite translations (the frame slides in, its content slides back), so it runs on the compositor. */
.shot-in { position: absolute; inset: 0; }
.stage .shot.is-top { visibility: visible; z-index: 1; }
.stage .shot.is-entering { visibility: visible; z-index: 2; }
.reel-meta { display: flex; align-items: center; gap: 16px; height: 44px; color: #b6c3d1; font-size: 15px; font-variant-numeric: tabular-nums; }
.counter { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.counter b { font-weight: 200; font-size: 30px; line-height: 1; color: #f1f5f9; font-variant-numeric: tabular-nums; }
.bar { flex: 1; height: 2px; border-radius: 2px; background: rgba(182, 195, 209, 0.25); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--cyan); transform: scaleX(0.2); transform-origin: 0 50%; transition: transform 600ms var(--ease-cam); }
[dir='rtl'] .bar i { transform-origin: 100% 50%; }  /* fills from the right, the way a Hebrew line reads */

/* Room after the last chapter: its cut lands while the stage is still pinned. */
.steps { list-style: none; margin: 0; padding: 0 0 18vh; position: relative; z-index: 4; pointer-events: none; }
.step { min-height: 85vh; display: flex; flex-direction: column; justify-content: flex-end; padding-inline: clamp(28px, 4vw, 64px); scroll-margin-top: var(--header-h); }
@supports (height: 100svh) { .step { min-height: 85svh; } }
.caption .role { margin: 0 0 6px; color: #67e8f9; font-size: 14px; font-weight: 600; }
.caption h3 { margin: 0 0 8px; font: 700 clamp(22px, 2.1vw, 28px)/1.2 Heebo, Arial, sans-serif; color: #fff; }
.caption p { margin: 0 0 10px; color: #d5dee8; font-size: 17px; line-height: 1.6; }
.caption a { color: #a5f3fc; font-weight: 600; text-underline-offset: 4px; }
/* Without the script, each caption rides over the stage inside its own chapter. */
.step .caption { position: sticky; bottom: 80px; align-self: flex-start; max-width: 450px; margin-block-end: 80px; padding: 20px 24px; pointer-events: auto;
  border-radius: 14px; background: rgba(13, 27, 42, 0.94); border: 1px solid rgba(148, 163, 184, 0.2); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.7); }
/* With the script, the captions move into one dock under the screen and change like subtitles, in place. */
.dock { display: grid; padding: 12px 2px 0; }
.dock .caption { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-areas: 'role text' 'title text' 'title link'; column-gap: clamp(20px, 3vw, 48px); align-content: start;
  opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity 240ms ease-out, transform 320ms var(--ease-out); }
.dock .caption.is-active, .dock .caption:focus-within { opacity: 1; transform: none; pointer-events: auto; }
.dock .caption .role { grid-area: role; }
.dock .caption h3 { grid-area: title; margin: 0; }
.dock .caption > p:not(.role) { grid-area: text; margin: 0 0 6px; }
.dock .caption a { grid-area: link; justify-self: start; }
@media (max-width: 640px) {
  .stage { padding: 8px 12px 12px; }
  .reel-meta { height: 36px; }
  .reel-meta .label { display: none; }
  .counter b { font-size: 24px; }
  .step { padding-inline: 12px; }
  .step .caption { bottom: 12px; margin-block-end: 12px; max-width: none; align-self: stretch; }
  .dock { padding-block-start: 8px; }
  .dock .caption { grid-template-columns: 1fr; grid-template-areas: 'role' 'title' 'text' 'link'; }
  .dock .caption h3 { font-size: 21px; margin-block-end: 6px; }
  .caption p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .bar i, .dock .caption, .roles a { transition: none; }
  /* A cut with a short dissolve, never a travel. */
  .stage .shot.is-top { animation: lp-dissolve 150ms ease-out; }
}
@keyframes lp-dissolve { from { opacity: 0; } }

/* =========================================================
   5. Every action signed by name (control)
   ========================================================= */
.control { background: var(--ground-1); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block-end: 18px; }
.side { padding: clamp(18px, 2.4vw, 28px); border-radius: 18px; background: #fff; }
.side h3 { margin: 0 0 12px; display: flex; align-items: center; gap: 10px; font: 700 21px/1.3 Heebo, Arial, sans-serif; }
.side h3::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--tone); }
.side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.side li { position: relative; padding-inline-start: 22px; color: var(--ink-2); font-size: 17px; }
.side li::before { content: ''; position: absolute; inset-inline-start: 2px; top: 0.72em; width: 8px; height: 2px; border-radius: 2px; background: var(--tone); }
.side-system { --tone: var(--cyan); }
.side-office { --tone: var(--navy); background: var(--night); color: #f1f5f9; }
.side-office li { color: #d5dee8; }
.side-office li::before { background: #a5f3fc; }
.side-office h3::before { background: #a5f3fc; }
.two-people { margin: 0 0 28px; font-size: 16px; color: var(--ink-3); }
.lens { margin: 0; }
.lens .cam { aspect-ratio: 2 / 1; border-radius: 16px; box-shadow: 0 1px 2px rgba(13, 27, 42, 0.08), 0 30px 60px -34px rgba(13, 27, 42, 0.5); }
@media (max-width: 640px) { .lens .cam { aspect-ratio: 1 / 1; } }
.lens figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-block-start: 14px; }
.lens-label { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font: 500 15px/1 Heebo, Arial, sans-serif; padding: 10px 15px; border-radius: 999px; border: 1px solid #cbd5e1;
  background: #fff; color: var(--ink); cursor: pointer; transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out; }
.chips button:hover { border-color: var(--ink-3); }
.chips button[aria-pressed='true'] { background: var(--night); border-color: var(--night); color: #f1f5f9; }
.chips button:active { transform: scale(0.97); }
.lens-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.claims { list-style: none; margin: clamp(28px, 3.4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.claims li { padding: 18px 20px; border-radius: 16px; background: #fff; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.claims b { display: block; margin-block-end: 4px; color: var(--ink); font-size: 18px; }
.control-more { margin: 22px 0 0; }
@media (max-width: 960px) { .claims { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .split, .claims { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .chips button:active, .btn:active, .lens-toggle:active { transform: none; } }

/* =========================================================
   6. Contact sheet
   ========================================================= */
.sheet { background: var(--ground-3); }
.sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.domain { position: relative; padding: clamp(18px, 2.2vw, 26px); border-radius: 18px; background: #fff; overflow: hidden;
  transition: opacity 220ms ease-out, filter 220ms ease-out; }
.domain::before { content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px; background: var(--tone); }
.domain h3 { margin: 0 0 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font: 700 23px/1.2 Heebo, Arial, sans-serif; }
.domain h3 a { color: var(--tone); text-decoration: none; }
.domain h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.caps { margin: 0 0 18px; padding-inline-start: 18px; columns: 2; column-gap: 24px; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.caps li { break-inside: avoid; }
.caps li::marker { color: var(--tone); }
.frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.frames.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.frame-btn { padding: 0; border: 0; background: none; font: inherit; text-align: start; cursor: zoom-in; border-radius: 12px; color: var(--ink-2); }
.frame-name { display: block; margin-block-start: 7px; font-size: 14px; line-height: 1.35; }
.thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 1.6; border-radius: 10px; background: var(--ground-3);
  box-shadow: 0 0 0 1px rgba(13, 27, 42, 0.08), 0 14px 28px -20px rgba(13, 27, 42, 0.5); transition: box-shadow 200ms ease-out, transform 200ms ease-out; }
.thumb img { position: absolute; top: 0; left: 0; max-width: none; height: auto; width: calc(10000% / var(--w));
  transform: translate(calc(var(--x) * -1%), calc(var(--y) * -1%)); }
/* Focus pull: the domain being looked at stays sharp, the others step back. */
@media (hover: hover) {
  .sheet-grid:has(.domain:hover) .domain:not(:hover) { opacity: 0.55; filter: saturate(0.4); }
  .frame-btn:hover .thumb { transform: translateY(-2px); box-shadow: 0 0 0 1.5px var(--tone), 0 18px 32px -20px rgba(13, 27, 42, 0.55); }
}
.sheet-grid:has(.domain:focus-within) .domain:not(:focus-within) { opacity: 0.55; filter: saturate(0.4); }
.forms { margin-block-start: clamp(28px, 3.4vw, 44px); padding: clamp(22px, 3vw, 36px); border-radius: 18px; background: #fff; }
.forms-title { margin: 0; font-weight: 700; font-size: 18px; }
.forms-list { list-style: none; margin: 14px 0 12px; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px clamp(22px, 3.4vw, 48px); }
.forms-list li { font-weight: 200; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.forms-list li.word { font-size: clamp(24px, 2.6vw, 36px); }
.forms-note { margin: 0; font-size: 16px; color: var(--ink-3); }
@media (max-width: 860px) { .sheet-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .caps { columns: 1; } .frames { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.viewer { width: min(1200px, 94vw); max-height: 94vh; padding: 16px; border: 0; border-radius: 18px; background: var(--night); color: #f1f5f9; overflow: auto; }
.viewer::backdrop { background: rgba(13, 27, 42, 0.74); }
.viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 12px; }
.viewer-head p { margin: 0; font-weight: 700; font-size: 18px; }
.viewer-close { font: 500 15px/1 Heebo, Arial, sans-serif; color: #f1f5f9; background: transparent; border: 1px solid rgba(241, 245, 249, 0.35);
  border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.viewer-cam { aspect-ratio: 16 / 10; border-radius: 12px; }
@media (max-width: 640px) { .viewer-cam { aspect-ratio: 1 / 1; } }
.viewer-note { margin: 10px 0 0; font-size: 14px; color: #b6c3d1; }
@media (prefers-reduced-motion: no-preference) {
  .viewer::backdrop { transition: opacity 240ms ease-out; opacity: 1; }
  @starting-style { .viewer[open]::backdrop { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .domain, .thumb { transition: none; }
  .frame-btn:hover .thumb { transform: none; }
}

/* =========================================================
   7. Moving over: the page's one bold, full-bleed teal moment
   (from the depth-and-rhythm direction). The line between the
   three steps is drawn from the right edge, where a Hebrew line starts.
   ========================================================= */
.section.move { position: relative; isolation: isolate; overflow: clip; color: #fff; padding-block: clamp(80px, 11vw, 150px);
  background: linear-gradient(160deg, #0e7490 0%, #0c6a84 55%, #155e75 100%); }
.move::before { content: ''; position: absolute; z-index: -1; inset-block-start: -30%; inset-inline-end: -10%; width: 70%; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(6, 182, 212, 0.45), rgba(6, 182, 212, 0) 70%); }
.move :focus-visible { outline-color: #fff; }
.move .kicker-line { --tone: #cffafe; }
.move .section-head h2 { color: #fff; font-size: clamp(38px, 5.4vw, 72px); }
.move .lede { color: #e0fbff; max-width: 60ch; }
.move-steps { list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.move-steps li { position: relative; }
/* One segment per gap, from this step's circle to the next one's. */
.move-steps li:not(:last-child)::after { content: ''; position: absolute; top: 21px; height: 2px; inset-inline-start: 56px; inset-inline-end: -20px;
  border-radius: 2px; background: rgba(255, 255, 255, 0.75); transform-origin: 100% 50%; }
[dir='ltr'] .move-steps li:not(:last-child)::after { transform-origin: 0 50%; }
.move-n { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--teal-dark);
  font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18); }
.move-steps h3 { margin: 18px 0 8px; font: 700 clamp(20px, 1.8vw, 24px)/1.3 Heebo, Arial, sans-serif; color: #fff; }
.move-steps p { margin: 0; font-size: 17px; line-height: 1.65; color: #e0fbff; max-width: 36ch; }
.move-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-block-start: clamp(32px, 4vw, 48px); }
.formats-title { margin: 0; font-size: 15px; font-weight: 600; color: #cffafe; }
.move .formats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.move .formats li { padding: 6px 13px; border-radius: 10px; background: rgba(13, 27, 42, 0.22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); color: #fff; font-size: 15px; font-weight: 600; }
.move .move-note { flex-basis: 100%; margin: 4px 0 0; font-size: 16px; color: #e0fbff; }
.move-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-block-start: clamp(28px, 3.4vw, 40px); }
.move-cta p { margin: 0; font-size: 15px; color: #e0fbff; }
.move .text-link { color: #fff; }
.move .text-link:hover { color: #cffafe; }
.btn-light { background: #fff; color: var(--teal-dark); box-shadow: 0 1px 2px rgba(13, 27, 42, 0.18), 0 12px 24px -14px rgba(13, 27, 42, 0.6); }
.btn-light:hover { background: #ecfeff; }
@media (max-width: 860px) {
  .move-steps { grid-template-columns: 1fr; gap: 28px; }
  .move-steps li { padding-inline-start: 64px; }
  .move-n { position: absolute; inset-inline-start: 0; top: 0; }
  .move-steps h3 { margin-block-start: 8px; }
  .move-steps li:not(:last-child)::after { inset-inline-start: 21px; inset-inline-end: auto; top: 52px; bottom: -20px; width: 2px; height: auto; transform-origin: 50% 0; }
}
/* Drawn once when the steps come into view, segment after segment; without the script, or with reduced motion, it is simply there. */
@media (prefers-reduced-motion: no-preference) {
  .move-steps.is-armed li { opacity: 0; transform: translateY(12px); transition: opacity 420ms ease-out, transform 520ms var(--ease-out); transition-delay: calc(var(--i) * 520ms); }
  .move-steps.is-armed li:not(:last-child)::after { transform: scaleX(0); transition: transform 560ms var(--ease-cam); transition-delay: calc(var(--i) * 520ms + 260ms); }
  .move-steps.is-armed.is-drawn li { opacity: 1; transform: none; }
  .move-steps.is-armed.is-drawn li:not(:last-child)::after { transform: none; }
  @media (max-width: 860px) {
    .move-steps.is-armed li:not(:last-child)::after { transform: scaleY(0); }
  }
}

/* =========================================================
   8. Questions
   ========================================================= */
.faq { background: #fff; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: var(--ground-3); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px;
  font-weight: 700; font-size: 19px; line-height: 1.4; border-radius: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #cbd5e1; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px;
  background: var(--ink); transition: transform 220ms var(--ease-out); }
.faq-icon::after { transform: rotate(90deg); }
.faq details[open] .faq-icon::after { transform: rotate(0deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); font-size: 17px; max-width: 64ch; }
.faq details a { display: inline-block; margin: 0 22px 20px; }
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    :root { interpolate-size: allow-keywords; }
    .faq details::details-content { block-size: 0; overflow: clip; transition: block-size 220ms var(--ease-out), content-visibility 220ms allow-discrete; }
    .faq details[open]::details-content { block-size: auto; }
  }
}
@media (prefers-reduced-motion: reduce) { .faq-icon::before, .faq-icon::after { transition: none; } }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* =========================================================
   9. Go deeper, then the closing band
   ========================================================= */
.deeper { background: var(--ground-3); padding-block: clamp(48px, 6vw, 80px) clamp(40px, 5vw, 64px); }
.deeper h2 { margin: 0 0 20px; font: 700 clamp(26px, 2.6vw, 34px)/1.2 Heebo, Arial, sans-serif; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; height: 100%; padding: 22px 22px 18px; border-radius: 18px; background: #fff;
  color: var(--ink); text-decoration: none; box-shadow: inset 0 4px 0 var(--tone), 0 1px 2px rgba(13, 27, 42, 0.05);
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease-out; }
.tile .kicker { font-size: 14px; font-weight: 600; color: var(--tone); }
.tile strong { font-size: 21px; line-height: 1.3; }
.tile span.body { color: var(--ink-2); font-size: 16px; }
.tile .arrow { justify-self: end; width: 28px; height: 28px; color: var(--tone); transition: transform 200ms var(--ease-out); }
.tile .arrow svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .tile:hover { transform: translateY(-3px); box-shadow: inset 0 4px 0 var(--tone), 0 18px 32px -22px rgba(13, 27, 42, 0.45); }
  .tile:hover .arrow { transform: translateX(-4px); }
}
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } }

.closing { overflow: clip; padding-block: clamp(64px, 8vw, 112px) 0; background: linear-gradient(180deg, var(--ground-2) 0%, #dbeafe 100%); color: var(--ink); }
.closing-copy { max-width: 780px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.closing h2 { margin: 0 0 14px; font: 700 clamp(32px, 4.4vw, 60px)/1.08 Heebo, Arial, sans-serif; letter-spacing: -0.015em; }
.closing-copy p { margin: 0 auto; font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.closing .actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 26px; margin-block-start: 24px; }
.closing-plate { width: min(100% - 32px, 1080px); margin-inline: auto; padding: clamp(12px, 2.4vw, 32px) clamp(12px, 2.4vw, 32px) 0; border-radius: 26px 26px 0 0;
  background: var(--plate-bg); }
/* overflow: clip, not hidden: hidden would make .window a scroll container, and view() would follow it instead of the page. */
.closing .window { overflow: clip; border-radius: 12px 12px 0 0; aspect-ratio: 16 / 10; background: var(--ground-3);
  box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, 0.6); }
/* transform-origin sits on the client table of this capture (physical %, the capture is already RTL). */
.closing .window img { display: block; width: 100%; height: auto; transform-origin: 41% 60%; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .closing .window img { animation: lp-pullback linear both; animation-timeline: view(); animation-range: entry 10% cover 50%; }
  }
}
@keyframes lp-pullback { from { transform: scale(1.8); } to { transform: scale(1); } }
/* Without scroll timelines (Firefox): the same pull-back once, when the window is half in view. */
@supports not (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .closing .window img { transition: transform 1400ms var(--ease-cam); }
    .closing .window img.is-near { transform: scale(1.8); }
  }
}

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: #cbd5e1; padding-block: clamp(48px, 6vw, 72px) 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px 36px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 19px; }
.footer-about { margin: 12px 0 0; max-width: 36ch; font-size: 15px; color: #94a3b8; }
.footer-col h2 { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: #cbd5e1; text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.copyright { margin: 36px 0 0; padding-block-start: 20px; border-block-start: 1px solid rgba(148, 163, 184, 0.16); font-size: 14px; color: #94a3b8; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .footer-grid { gap: 24px 20px; } .footer-grid > :first-child { grid-column: 1 / -1; } .footer-col a { font-size: 14px; } }
