/* Brain Ops prototype: shared design system
   Palette roles follow Ran's approved accent rule:
   mint on dark, violet on light, neutral text everywhere else. */

:root {
  --ink: #141629;
  --ink-2: #1b1e36;
  --ink-3: #262a48;
  --ink-line: #34385a;
  --paper: #f7f8fc;
  --white: #ffffff;
  --line: #dcdeea;
  --muted: #5a5f76;
  --muted-dark: #b9bdd2;
  --violet: #6541ea;
  --violet-hover: #5030c5;
  --violet-soft: #eeeaff;
  --mint: #50e3c2;
  --mint-soft: #50e3c21f;
  --amber: #f2b13c;

  --font: "Rubik", "Arial Hebrew", Arial, sans-serif;
  --wrap: min(1200px, 100% - 2 * var(--gutter));
  --gutter: clamp(16px, 4vw, 48px);
  --slope: clamp(28px, 5vw, 84px);
  --radius: 18px;
  --radius-sm: 10px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 24px 60px #1416291a, 0 4px 14px #1416290d;
}
html[data-font="plex"] { --font: "IBM Plex Sans Hebrew", "Arial Hebrew", Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--mint); }
.skip-link {
  position: absolute; top: 10px; inset-inline-start: 16px; z-index: 200;
  padding: 10px 18px; border-radius: var(--radius-sm);
  background: var(--mint); color: var(--ink); font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline-color: var(--ink); }
main:focus { outline: none; }

.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Review bar (prototype only) ---------- */
.review-bar {
  position: relative; z-index: 60;
  background: #0c0d1a; color: #c9cce0;
  font-size: 13px; line-height: 1.3;
}
.review-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-block: 8px; }
.review-bar strong { color: var(--mint); font-weight: 600; }
.review-bar label { display: inline-flex; align-items: center; gap: 6px; }
.review-bar select, .review-bar button {
  background: #1d2038; color: #fff; border: 1px solid #3a3e60; border-radius: 6px;
  padding: 3px 8px; font-size: 13px; font-family: inherit;
}
.review-bar .spacer { flex: 1; }
.review-note {
  display: none;
  font-size: 13px; line-height: 1.45; font-weight: 500;
  background: #fff6dc; color: #5b4300; border: 1px dashed #d8a838;
  border-radius: 8px; padding: 6px 10px; margin-block: 10px;
}
html.show-notes .review-note { display: block; }
.dark .review-note { background: #2e2a1a; color: #f5d98c; border-color: #8b7232; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  color: #fff;
  border-bottom: 1px solid #ffffff10;
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; position: relative; flex: none; }
.brand img { height: 26px; width: auto; }
.brand .eye {
  position: absolute; top: 49%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; box-shadow: 0 0 0 0 #50e3c200; pointer-events: none;
}
.brand .eye.l { left: 66.05%; }
.brand .eye.r { left: 81%; }
.brand.wake .eye, .brand:hover .eye { animation: eye-glow 1.6s var(--ease-out); }
@keyframes eye-glow {
  0% { box-shadow: 0 0 0 0 #50e3c2aa; }
  60% { box-shadow: 0 0 0 9px #50e3c200; }
  100% { box-shadow: 0 0 0 9px #50e3c200; }
}
.nav { display: flex; gap: 26px; margin-inline-start: 18px; }
.nav a { text-decoration: none; font-size: 16px; color: #d5d8ea; padding-block: 6px; position: relative; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; background: var(--mint); border-radius: 2px;
}
.header-end { margin-inline-start: auto; display: flex; align-items: center; gap: 16px; }
.lang { font-size: 14px; color: #d5d8ea; text-decoration: none; letter-spacing: .04em; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; margin-inline-end: -8px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease-out), opacity .2s; }
.menu-btn span + span { margin-top: 5px; }
.mobile-menu { display: none; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .18s var(--ease-out), background-color .18s, box-shadow .18s;
}
.btn:active { transform: scale(.97); }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-violet { background: var(--violet); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
@media (hover: hover) and (pointer: fine) {
  .btn-mint:hover { box-shadow: 0 0 0 6px #50e3c22b; }
  .btn-violet:hover { background: var(--violet-hover); }
}
.pointer {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 15px; font-weight: 500; padding-block: 8px;
  border-bottom: 1px solid currentColor; border-bottom-color: #ffffff40;
}
.light .pointer { border-bottom-color: #14162940; }
.pointer:hover { border-bottom-color: currentColor; }

.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: .01em; color: var(--violet); margin-bottom: 14px; display: block; }
.dark .eyebrow, .dark-2 .eyebrow { color: var(--mint); }

/* ---------- Sections and diagonal motif ---------- */
section { position: relative; }
.dark { background: var(--ink); color: #fff; }
.dark-2 { background: var(--ink-2); color: #fff; }
.light { background: var(--paper); color: var(--ink); }
.white { background: var(--white); color: var(--ink); }
.pad { padding-block: clamp(72px, 9vw, 128px); }
.pad-sm { padding-block: clamp(48px, 6vw, 80px); }

/* One slope, applied only at major background changes */
.slope::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: var(--slope);
  background: var(--next, var(--paper));
  clip-path: polygon(0 100%, 100% 0, 100% 101%, 0 101%);
  pointer-events: none; z-index: 1;
}
.slope { padding-bottom: calc(clamp(72px, 9vw, 128px) + var(--slope) * .6); }
.to-paper { --next: var(--paper); }
.to-ink { --next: var(--ink); }
.to-white { --next: var(--white); }

.h2 { font-size: clamp(32px, 4.2vw, 54px); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.dark .lead, .dark-2 .lead { color: var(--muted-dark); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lead { margin-top: 18px; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }

/* ---------- Home hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 88px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 20% 30%, #6541ea1c, transparent 70%),
    linear-gradient(#ffffff06 1px, transparent 1px) 0 0 / 100% 56px;
  mask-image: linear-gradient(#000, transparent 85%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.hero h1 .accent { color: var(--mint); }
.hero .sub { font-size: clamp(19px, 1.7vw, 23px); color: #e7e9f4; margin-top: 22px; font-weight: 500; }
.hero .support { margin-top: 14px; color: var(--muted-dark); max-width: 52ch; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }
.hero .pointers { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Film controls ---------- */
.stage-ui { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.chapters { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); align-items: start; gap: 10px; list-style: none; padding: 0; margin: 0; } /* start: a two-line label must not push its bar out of line */
.chapters button { width: 100%; display: flex; flex-direction: column; justify-content: flex-start; background: none; border: 0; padding: 6px 0 0; text-align: start; color: #9ea3c0; font-size: 13px; line-height: 1.3; } /* top-aligned: with the 44px touch height a button would centre short labels and drop their bar */
.chapters button .bar { display: block; height: 3px; border-radius: 3px; background: #ffffff1f; overflow: hidden; margin-bottom: 8px; }
.chapters button .bar i { display: block; height: 100%; width: 0; background: var(--mint); }
.chapters button[aria-current="true"] { color: #fff; }
/* the last two chapters are the Brain Ops part: one label spans them above their bars */
.chapters li:not(.chap-group) { grid-row: 2; }
.chap-group { grid-row: 1; grid-column: 3 / 5; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--mint); white-space: nowrap; }
.chap-group::before, .chap-group::after { content: ""; flex: 1; height: 1px; background: #50e3c266; }
.chap-group.chap-now { grid-column: 1 / 3; color: #9ea3c0; }
.chap-group.chap-now::before, .chap-group.chap-now::after { background: #ffffff2e; }
.play { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #ffffff12; border: 1px solid #ffffff22; display: grid; place-items: center; color: #fff; }
.play svg { width: 16px; height: 16px; }
.stage-caption { font-size: 13px; color: #8a8fa8; margin-top: 10px; }

/* ---------- Proof strip ---------- */
.proof { display: grid; grid-template-columns: 1fr 2.6fr 1.3fr; gap: 18px; align-items: stretch; }
.proof-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.proof-num { font-size: clamp(40px, 4.4vw, 56px); font-weight: 700; line-height: 1; color: var(--ink); letter-spacing: -.03em; }
.proof-num sup { font-size: .5em; color: var(--violet); }
.proof-label { font-weight: 600; margin-top: 10px; }
.proof-sub { color: var(--muted); font-size: 15px; margin-top: 4px; }
.logos { display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; justify-items: center; gap: 22px 18px; height: 100%; }
.logos img { grid-column: span 2; }
.logos img:nth-child(4) { grid-column: 2 / span 2; }
.logos img:nth-child(5) { grid-column: 4 / span 2; }
.logos img { height: 22px; width: auto; max-width: 100%; object-fit: contain; }
.logos img.amdocs { height: 24px; }
.logos img.lusha { height: 24px; }
.logos img.lsports { height: 26px; }
.logos img.iai { height: 32px; }
.proof-note { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* ---------- Frictions ---------- */
.frictions { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.friction { padding: 34px 0 10px; padding-inline-end: 32px; }
.friction + .friction { border-inline-start: 1px solid var(--line); padding-inline-start: 32px; }
.friction h3 { font-size: clamp(22px, 2vw, 27px); margin-top: 22px; }
.friction p { color: var(--muted); margin-top: 10px; }
.glyph { height: 92px; position: relative; }
.bridge { margin-top: clamp(40px, 5vw, 64px); font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; max-width: 26ch; line-height: 1.25; }
.bridge em { font-style: normal; color: var(--violet); }

/* glyph 1: lead waiting */
.g-lead .msg { position: absolute; inset-inline-start: 0; top: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 14px; font-size: 14px; box-shadow: var(--shadow); }
.g-lead .clock { position: absolute; inset-inline-start: 0; top: 64px; font-size: 13px; color: #a26c00; background: #fff4d6; border-radius: 99px; padding: 2px 10px; font-variant-numeric: tabular-nums; }
/* glyph 2: knowledge with one person */
.g-know { display: flex; align-items: center; gap: 10px; }
.g-know .person { width: 52px; height: 52px; border-radius: 50%; background: var(--violet-soft); display: grid; place-items: center; font-weight: 700; color: var(--violet); position: relative; }
.g-know .chip { position: absolute; font-size: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; white-space: nowrap; animation: orbit 6s ease-in-out infinite; }
.g-know .chip:nth-child(2) { inset-inline-start: 64px; top: 4px; animation-delay: -1s; }
.g-know .chip:nth-child(3) { inset-inline-start: 80px; top: 34px; animation-delay: -3s; }
.g-know .chip:nth-child(4) { inset-inline-start: 58px; top: 64px; animation-delay: -4.5s; }
@keyframes orbit { 50% { transform: translateY(-5px); } }
/* glyph 3: approvals queue */
.g-queue { display: flex; align-items: flex-end; gap: 12px; }
.g-queue .stack { position: relative; width: 120px; height: 80px; }
.g-queue .card { position: absolute; inset-inline-start: 0; width: 110px; height: 26px; border-radius: 7px; background: var(--white); border: 1px solid var(--line); font-size: 11px; padding: 4px 8px; color: var(--muted); }
.g-queue .card:nth-child(1) { top: 52px; }
.g-queue .card:nth-child(2) { top: 36px; inset-inline-start: 4px; }
.g-queue .card:nth-child(3) { top: 20px; inset-inline-start: 8px; }
.g-queue .card:nth-child(4) { top: 4px; inset-inline-start: 12px; animation: drop 3.6s var(--ease-out) infinite; }
@keyframes drop { 0% { transform: translateY(-14px); opacity: 0; } 25%, 100% { transform: none; opacity: 1; } }
.g-queue .boss { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--mint); display: grid; place-items: center; font-weight: 700; font-size: 14px; }

/* ---------- AI section ---------- */
.ai-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.pain-lines { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; color: #dfe2f0; }
.pain-lines span { display: block; }
.values { display: grid; gap: 14px; }
.value { border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 20px 22px; background: #ffffff05; }
.value h3 { font-size: 20px; }
.value p { color: var(--muted-dark); font-size: 15px; margin-top: 6px; }
.value .k { color: var(--mint); font-size: 13px; font-weight: 600; display: block; margin-bottom: 6px; }

.scrolly { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4vw, 64px); }
.scrolly-steps { padding-block: clamp(40px, 10vh, 120px) clamp(120px, 30vh, 320px); }
.scrolly-step { min-height: clamp(320px, 52vh, 560px); display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .4s; }
.scrolly-step.active { opacity: 1; }
.scrolly-step .k { color: var(--mint); font-weight: 600; font-size: 14px; }
.scrolly-step h3 { font-size: clamp(24px, 2.4vw, 32px); margin-top: 8px; }
.scrolly-step p { color: var(--muted-dark); margin-top: 10px; max-width: 40ch; }
.scrolly-media { position: sticky; top: 96px; height: fit-content; }
.media-frame { position: relative; aspect-ratio: 1672 / 941; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px #00000066; border: 1px solid #ffffff14; }
.media-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .8s var(--ease-out), transform 1.6s var(--ease-out); }
.media-frame img.on { opacity: 1; transform: none; }
.media-progress { display: flex; gap: 6px; margin-top: 14px; }
.media-progress i { flex: 1; height: 3px; background: #ffffff1f; border-radius: 3px; transition: background-color .4s; }
.media-progress i.on { background: var(--mint); }

.statement { font-size: clamp(26px, 3.1vw, 42px); line-height: 1.3; font-weight: 600; max-width: 30ch; letter-spacing: -.015em; }
.statement em { font-style: normal; color: var(--mint); }
.light .statement em, .white .statement em { color: var(--violet); }

/* ---------- monday stories ---------- */
.story-switch { display: inline-flex; padding: 5px; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 99px; margin-bottom: 28px; }
.story-switch button { border: 0; background: none; padding: 10px 20px; border-radius: 99px; font-weight: 600; font-size: 15px; color: var(--muted); transition: background-color .25s, color .25s; }
.story-switch button[aria-selected="true"] { background: var(--ink); color: #fff; }
.story { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.story[hidden] { display: none; }
.story .plogo { height: 40px; width: auto; max-width: 220px; object-fit: contain; object-position: right center; margin-bottom: 18px; display: block; }
.story .plogo.crm { height: 30px; margin-bottom: 28px; mix-blend-mode: multiply; } /* wider logo: lower height keeps its wordmark level with work management; multiply drops the white backdrop */
[dir="ltr"] .story .plogo { object-position: left center; }
.story h3 { font-size: clamp(26px, 2.6vw, 36px); }
.story .body { color: var(--muted); margin-top: 12px; }
.states { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; }
.states button {
  width: 100%; text-align: start; background: none; border: 1px solid transparent; border-radius: 14px;
  padding: 14px 18px; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: start;
  transition: background-color .25s, border-color .25s;
}
.states button .dot { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 1px; transition: all .25s; }
.states button .t { font-weight: 600; font-size: 17px; }
.states button .d { color: var(--muted); font-size: 15px; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease-out); }
.states button .d > span { overflow: hidden; }
.states button[aria-selected="true"] { background: var(--white); border-color: var(--line); box-shadow: var(--shadow); }
.states button[aria-selected="true"] .dot { border-color: var(--violet); background: var(--violet); color: #fff; }
.states button[aria-selected="true"] .d { grid-template-rows: 1fr; }
/* autoplay timer: a thin bar under the active step fills until the next one */
.states button[aria-selected="true"]::after { content: ""; grid-column: 1 / -1; height: 2px; margin-top: 8px; border-radius: 2px; background: var(--violet); transform: scaleX(0); transform-origin: right; }
[dir="ltr"] .states button[aria-selected="true"]::after { transform-origin: left; }
.story.auto .states button[aria-selected="true"]::after { animation: step-fill 4.5s linear forwards; }
@keyframes step-fill { to { transform: scaleX(1); } }
/* Phones: the three steps become one compact row and only the active description shows, so story and image fit one screen. */
@media (max-width: 860px) {
  .story .plogo { height: 32px; margin-bottom: 12px; }
  .story .plogo.crm { height: 24px; margin-bottom: 20px; }
  .story .body { margin-top: 8px; font-size: 16px; }
  .story { row-gap: 20px; }
  .states { --d-h: 68px; position: relative; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 16px; padding-bottom: var(--d-h); }
  .states button { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 6px; padding: 10px 6px; }
  .states button .dot { grid-row: auto; }
  .states button .t { font-size: 14px; line-height: 1.25; }
  .states button .d { display: none; position: absolute; inset-inline: 0; top: calc(100% - var(--d-h)); padding: 10px 4px 0; text-align: start; font-size: 15px; line-height: 1.5; }
  .states button[aria-selected="true"] .d { display: block; }
}
.story-media { position: relative; aspect-ratio: 1448 / 1086; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease-out); }
.story-media img.on { opacity: 1; }
.disclosure { font-size: 14px; color: var(--muted); margin-top: 18px; }
.who-decides { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--violet); background: var(--violet-soft); padding: 6px 12px; border-radius: 99px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; font-weight: 600; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .3s var(--ease-out), background-color .2s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; inset: 50% 8px auto; height: 2px; margin-top: -1px; background: var(--ink); border-radius: 2px; }
.faq summary .pm::after { transform: rotate(90deg); transition: transform .3s var(--ease-out); }
.faq details[open] summary .pm { background: var(--violet); border-color: var(--violet); }
.faq details[open] summary .pm::before, .faq details[open] summary .pm::after { background: #fff; }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq .ans { color: var(--muted); padding-bottom: 22px; max-width: 62ch; }
/* FAQ on the dark closing block, shared with contact */
.dark .faq details { border-bottom-color: var(--ink-line); }
.dark .faq summary .pm { border-color: var(--ink-line); background: transparent; } /* .pm is also the phone-bubble class, which paints it white */
.dark .faq summary .pm::before, .dark .faq summary .pm::after { background: #fff; }
.dark .faq details[open] summary .pm { background: var(--mint); border-color: var(--mint); }
.dark .faq details[open] summary .pm::before, .dark .faq details[open] summary .pm::after { background: var(--ink); }
.dark .faq .ans { color: var(--muted-dark); }
.contact.joined { padding-top: 0; }
.contact.joined .contact-grid { border-top: 1px solid var(--ink-line); padding-top: clamp(56px, 7vw, 96px); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact h2 { font-size: clamp(34px, 4vw, 54px); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip-btn { border: 1px solid #ffffff2e; background: #ffffff08; border-radius: 99px; padding: 10px 16px; font-size: 15px; transition: background-color .2s, border-color .2s, color .2s; }
.chip-btn[aria-pressed="true"] { background: var(--mint); border-color: var(--mint); color: var(--ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .chip-btn:hover { border-color: #ffffff66; } }
.picker { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 22px; padding: 28px; }
/* Booking: Google Calendar appointment page. Embedded on wide screens; phones get a button that
   opens it full screen, where Google's own mobile layout works better than a nested frame. */
/* text on the start side, the calendar beside it */
.contact-split { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.contact.joined .contact-split { border-top: 1px solid var(--ink-line); padding-top: clamp(56px, 7vw, 96px); }
.book-intro { margin-top: clamp(28px, 3vw, 40px); padding-top: clamp(24px, 2.6vw, 32px); border-top: 1px solid var(--ink-line); }
.book-intro h3 { font-size: clamp(22px, 2.2vw, 28px); }
.book-intro > p:not(.mail-direct) { color: var(--muted-dark); margin-top: 8px; }
.book-btn { display: none; margin-top: 20px; }
.book-intro > p.book-privacy { margin-top: 14px; font-size: 13px; }
.book-privacy a { color: inherit; text-underline-offset: 3px; }
.booking { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--ink-line); }
.booking-frame { overflow: hidden; }
/* Google's page opens with the host's name and avatar; the frame starts just below that row (about 62px) */
/* 860px tall: Google's booking form (about 750px with its button) opens centred in the frame and must fit whole, below the cropped row */
.booking iframe { display: block; width: 100%; height: 860px; margin-top: -62px; border: 0; }
.booking-open { display: block; padding: 10px 18px; border-top: 1px solid #eef0f6; text-align: end; font-size: 13px; color: var(--violet); }
@media (max-width: 1080px) { .contact-split { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .booking { display: none; } /* not loaded on phones: a hidden lazy frame never requests the page */
  .book-btn { display: inline-flex; width: 100%; }
}
.picker h3 { font-size: 20px; margin-bottom: 14px; }
.picker .fine { font-size: 14px; color: var(--muted-dark); margin-top: 18px; }
.picker .btn { margin-top: 22px; }

/* ---------- Footer ---------- */
.site-footer { background: #0e0f1e; color: #b9bdd2; padding-block: 56px 40px; font-size: 15px; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: center; }
.site-footer img { height: 30px; width: auto; }
.footer-brand { display: grid; gap: 10px; justify-items: start; }
.site-footer .tagline { font-size: 14px; color: #d5d8ea; }
.site-footer .tagline span { color: var(--mint); font-size: 12px; margin-inline: 6px; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .fine { margin-top: 32px; padding-top: 22px; border-top: 1px solid #ffffff12; font-size: 13px; color: #8a8fa8; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer .legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer .legal-links a:hover { color: #fff; }
.cookie-settings { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.cookie-settings:hover { color: #fff; }
.consent {
  position: fixed; z-index: 60; bottom: 16px; inset-inline-start: 16px;
  width: min(520px, calc(100% - 32px)); padding: 18px 20px;
  background: var(--ink-2); color: #fff; border: 1px solid var(--ink-line); border-radius: var(--radius-sm);
  box-shadow: 0 18px 48px #0007; font-size: 15px; line-height: 1.55;
}
.consent p { color: var(--muted-dark); }
.consent a { color: #fff; text-underline-offset: 3px; }
.consent :focus-visible { outline-color: var(--mint); }
.consent-actions { display: flex; gap: 10px; margin-top: 14px; }
.consent-actions .btn { flex: 1; }
.consent-no { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #ffffff55; }

/* ---------- Solutions page ---------- */
.page-hero { padding-top: clamp(64px, 8vw, 120px); overflow: hidden; }
.page-hero h1 { font-size: clamp(38px, 5vw, 70px); line-height: 1.08; max-width: 18ch; text-wrap: balance; letter-spacing: -.025em; }
.page-hero .lead { margin-top: 24px; font-size: clamp(19px, 1.7vw, 22px); }
.page-hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 36px; }
.page-hero .ghost-word { position: absolute; inset-inline-end: -2vw; bottom: 8%; font-size: 22vw; font-weight: 800; line-height: .8; color: #ffffff05; pointer-events: none; letter-spacing: -.05em; }

.chapter-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
/* eyebrow across both columns: the side text then starts level with the headline */
.chapter-head.split { align-items: start; row-gap: 0; }
.chapter-head .ch-eyebrow { grid-column: 1 / -1; }
.prep-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: clamp(36px, 4vw, 56px); }
.prep { border-radius: var(--radius); padding: 22px 24px; background: #ffffff06; border: 1px solid var(--ink-line); }
.prep .row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.prep h3 { font-size: 20px; }
.prep .ready { font-size: 13px; color: var(--mint); white-space: nowrap; font-weight: 600; }
.prep .human { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #ffffff22; color: var(--muted-dark); font-size: 15px; display: flex; gap: 10px; }
.prep .human b { color: #fff; font-weight: 600; white-space: nowrap; }
.domains { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.domains span { border: 1px solid var(--ink-line); border-radius: 99px; padding: 6px 14px; font-size: 14px; color: #dfe2f0; }
.wide-media { border-radius: var(--radius); overflow: hidden; border: 1px solid #ffffff14; box-shadow: 0 30px 80px #00000055; }
.wide-caption { color: var(--muted-dark); font-size: 15px; margin-top: 14px; max-width: 70ch; }

.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: baseline; }
.points li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); transform: translateY(-2px); }
.dark .points li::before { background: var(--mint); }
.portfolio { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 64px); align-items: center; margin-bottom: clamp(64px, 8vw, 110px); }
.portfolio img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* method timeline */
.method { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.method::before { content: ""; position: absolute; inset-inline: 0; top: 27px; height: 2px; background: var(--line); }
.method .line { position: absolute; inset-inline-start: 0; top: 27px; height: 2px; width: 0; background: var(--violet); transition: width 1.6s var(--ease-out); }
.method.in .line { width: 100%; }
.step { position: relative; display: flex; flex-direction: column; }
.step .artifact { margin-top: auto; }
.step p { margin-bottom: 20px; }
.step .num { width: 56px; height: 56px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 18px; transition: border-color .4s, background-color .4s, color .4s; }
.method.in .step .num { border-color: var(--violet); background: var(--violet); color: #fff; }
.method.in .step:nth-child(3) .num { transition-delay: .4s; }
.method.in .step:nth-child(4) .num { transition-delay: .9s; }
.step h3 { font-size: 23px; margin-top: 22px; }
.step p { color: var(--muted); margin-top: 8px; }
.artifact { margin-top: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 14px; }
.artifact .ar { display: flex; justify-content: space-between; gap: 12px; padding-block: 6px; border-bottom: 1px solid #eef0f6; }
.artifact .ar:last-child { border-bottom: 0; }
.artifact .ar span:last-child { color: var(--muted); }
.artifact .bar { height: 6px; border-radius: 6px; background: #eef0f6; margin-top: 4px; overflow: hidden; }
.artifact .bar i { display: block; height: 100%; background: var(--violet); border-radius: 6px; }
.artifact .pill { font-size: 12px; padding: 1px 8px; border-radius: 99px; font-weight: 600; }
.pill.ok { background: #c6f7ea; color: #185b48; }
.pill.wait { background: #fff0c2; color: #6c4b00; }
.pill.ready { background: #e8e1ff; color: #4f329e; }
/* way of working on the dark closing block */
.dark .method::before { background: var(--ink-line); }
.dark .method .line { background: var(--mint); }
.dark .step .num { background: var(--ink); border-color: var(--ink-line); color: #fff; }
.dark .method.in .step .num { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.dark .step p { color: var(--muted-dark); }
.dark .artifact { background: var(--ink-2); border-color: var(--ink-line); color: #fff; }
.dark .artifact .ar { border-bottom-color: #ffffff12; }
.dark .artifact .ar span:last-child:not(.pill) { color: var(--muted-dark); }
.cta-joined { padding-top: 0; }
.cta-joined > .wrap { border-top: 1px solid var(--ink-line); padding-top: clamp(40px, 5vw, 64px); }

/* ---------- About page ---------- */
.about-hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.video-slot {
  position: relative; aspect-ratio: 1 / 1; border-radius: 24px; overflow: hidden;
  background: radial-gradient(80% 60% at 70% 20%, #6541ea44, transparent 70%), linear-gradient(170deg, #262a48, #15172b);
  border: 1px solid #ffffff1a; display: grid; place-items: center; text-align: center; padding: 24px;
}
.video-slot .playbig { width: 84px; height: 84px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; margin-inline: auto; box-shadow: 0 0 0 14px #50e3c21f; animation: breathe 3.2s ease-in-out infinite; }
.video-slot .playbig svg { width: 28px; height: 28px; margin-inline-start: -4px; }
@keyframes breathe { 50% { box-shadow: 0 0 0 22px #50e3c20d; } }
.video-slot p { margin-top: 22px; color: #dfe2f0; font-weight: 600; }
.video-slot small { display: block; color: var(--muted-dark); margin-top: 6px; }
.story-cols { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.story-cols-wrap > .eyebrow { margin-bottom: 18px; }
.story-cols .body p + p { margin-top: 18px; }
.story-cols .body { font-size: 18px; color: #33374d; }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.principle { padding: 30px 0; padding-inline-end: 32px; border-bottom: 1px solid var(--line); }
.principle:nth-child(even) { padding-inline: 32px 0; border-inline-start: 1px solid var(--line); }
.principle h3 { font-size: 22px; }
.principle p { color: var(--muted); margin-top: 8px; }
.independent { margin-top: 26px; font-size: 15px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof .logos-card { grid-column: 1 / -1; order: 2; }
  .scrolly { grid-template-columns: 1fr; }
  .scrolly-media { order: -1; top: 60px; z-index: 2; background: var(--ink); padding-block: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .scrolly-media .review-note { display: none !important; }
  .scrolly-steps { padding-block: 4vh 10vh; }
  .scrolly-step { min-height: clamp(240px, 40vh, 380px); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav, .header-end .btn, .header-end .lang { display: none; }
  .menu-btn { display: block; }
  .header-end { gap: 6px; }
  .header-end .lang-m { display: inline; }
  .site-header .wrap { height: 60px; }
  .brand img { height: 22px; }
  .mobile-menu { display: block; position: fixed; inset: 60px 0 auto 0; background: var(--ink); color: #fff; padding: 12px var(--gutter) 28px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease-out), visibility 0s .25s; border-bottom: 1px solid #ffffff14; z-index: 49; }
  .menu-open .mobile-menu { opacity: 1; transform: none; visibility: visible; transition: opacity .2s, transform .25s var(--ease-out); }
  .mobile-menu a:not(.btn) { display: block; padding: 14px 0; font-size: 20px; text-decoration: none; border-bottom: 1px solid #ffffff10; }
  .mobile-menu .btn { margin-top: 20px; width: 100%; }
  .menu-open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .frictions { grid-template-columns: 1fr; }
  .friction, .friction + .friction { padding: 28px 0; border-inline-start: 0; border-bottom: 1px solid var(--line); }
  .ai-intro, .story, .faq-grid, .contact-grid, .chapter-head, .portfolio, .about-hero .wrap, .story-cols { grid-template-columns: 1fr; }
  .story .story-media { order: -1; }
  .prep-list { grid-template-columns: 1fr; }
  .method { grid-template-columns: 1fr; gap: 36px; }
  /* one column: the step number sits beside its title */
  .step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .step .num { width: 40px; height: 40px; font-size: 16px; }
  .step h3 { margin-top: 0; }
  .step p, .step .artifact { grid-column: 1 / -1; }
  .method::before, .method .line { display: none; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(even) { padding-inline: 0; border-inline-start: 0; }
  .video-slot { aspect-ratio: 16 / 11; }
}
@media (max-width: 560px) {
  .proof { grid-template-columns: 1fr; }
  .chapters button { font-size: 12px; }
  .story-switch { display: flex; }
  .story-switch button { flex: 1; padding: 10px 8px; font-size: 14px; }
  .hero .actions .btn { width: 100%; }
}
@media (min-width: 861px) { .header-end .lang-m { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Logo intro (home, once per visit) ---------- */
.intro-screen { display: none; }
html.intro .intro-screen { display: block; position: fixed; inset: 0; z-index: 200; cursor: pointer; }
.intro-bg { position: absolute; inset: 0; background: radial-gradient(55% 45% at 50% 50%, #1f2242, var(--ink) 70%); }
.intro-logo { position: fixed; transform-origin: 50% 50%; will-change: transform, opacity, filter; opacity: 0; }
.intro-logo img { width: 100%; height: 100%; }
.intro-logo .pupil {
  position: absolute; top: 50.1%; width: 2.55%; aspect-ratio: 1; border-radius: 50%;
  background: var(--mint); transform: translate(-50%, -50%);
}
.intro-logo .pupil.l { left: 66.16%; }
.intro-logo .pupil.r { left: 81.22%; }
.intro-logo.look .pupil { animation: owl-look 1.25s cubic-bezier(.45,0,.2,1) forwards; }
@keyframes owl-look {
  0%   { transform: translate(-50%, -50%); }
  22%  { transform: translate(-185%, -50%); }
  52%  { transform: translate(-185%, -50%); }
  72%  { transform: translate(-50%, -50%); }
  82%  { transform: translate(-50%, -50%) scaleY(1); }
  88%  { transform: translate(-50%, -50%) scaleY(.12); }
  94%, 100% { transform: translate(-50%, -50%) scaleY(1); }
}
html.intro .site-header .brand { visibility: hidden; }
/* hero content waits for the logo, then settles in */
html.intro .site-header .nav, html.intro .header-end,
html.intro .hero h1, html.intro .hero .sub, html.intro .hero .support, html.intro .hero .hero-pointers,
html.intro .hero .actions, html.intro .hero .film-wrap { opacity: 0; transform: translateY(14px); }
html.intro-reveal .site-header .nav, html.intro-reveal .header-end,
html.intro-reveal .hero h1, html.intro-reveal .hero .sub, html.intro-reveal .hero .support, html.intro-reveal .hero .hero-pointers,
html.intro-reveal .hero .actions, html.intro-reveal .hero .film-wrap { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
html.intro-reveal .hero h1 { transition-delay: .05s; }
html.intro-reveal .hero .sub { transition-delay: .15s; }
html.intro-reveal .hero .support, html.intro-reveal .hero .hero-pointers { transition-delay: .22s; }
html.intro-reveal .hero .actions { transition-delay: .3s; }
html.intro-reveal .hero .film-wrap { transition-delay: .2s; }

/* ---------- Touch targets: 44px hit areas on touch screens, same visual size ---------- */
@media (pointer: coarse), (max-width: 860px) {
  .site-header .brand { padding-block: 11px; }
  .header-end .lang-m { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px; }
  .menu-btn { padding: 14px 12px; margin-inline-end: -12px; }
  .chapters button { min-height: 44px; }
  .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .proof-note a { display: inline-block; padding-block: 10px; }
}

/* ---------- English-only layout fits (Hebrew is untouched by these) ---------- */
@media (min-width: 861px) {
  [dir="ltr"] .stuck .section-head { max-width: 980px; }                     /* the lead line stays on one row */
  [dir="ltr"] .stuck .section-head .lead { max-width: none; }
  [dir="ltr"] #ai .statement em { display: inline-block; } /* the closing phrase moves to its own line as a whole */
  [dir="ltr"] .ph-cap h3 { font-size: clamp(18px, 1.6vw, 22px); text-wrap: balance; } /* even rows within the phone width */
  [dir="ltr"] [aria-labelledby="me-h"] .section-head,
  [dir="ltr"] [aria-labelledby="pr-h"] .section-head { max-width: none; }    /* one-line section titles */
}
@media (min-width: 1081px) {
  [dir="ltr"] .sol-hero-grid > .paths { align-self: start; margin-top: 30px; } /* cards level with the headline */
  [dir="ltr"] .sol-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }  /* headline on three rows from 1100 to 1920px */
  [dir="ltr"] .sol-hero h1 { max-width: none; font-size: clamp(36px, 4vw, 56px); }
  [dir="ltr"] .stuck .section-head { max-width: none; }                       /* two-line headline */
  [dir="ltr"] .chapter-head:has(#xp-h) { grid-template-columns: 1.4fr 1fr; }  /* two-line heading */
  [dir="ltr"] .ab-float.f1 { inset-inline-end: -84px; }                       /* clear of the face */
  [dir="ltr"] .ab-float.f2 { inset-inline-end: -96px; }
}
[dir="ltr"] .sol-hero h1 { max-width: none; }                                 /* full row width, fewer lines on phones too */
.h2.two-lines .t-narrow { display: none; }
@media (max-width: 860px) {
  [dir="ltr"] .ph-cap h3 { max-width: 15ch; text-wrap: balance; }            /* all three captions on two even rows */
  [dir="ltr"] .sol-hero h1 { font-size: clamp(30px, 8.7vw, 36px); }          /* three rows on phones */
  [dir="ltr"] .h2.two-lines .t-wide { display: none; }                        /* shorter headline on phones */
  [dir="ltr"] .h2.two-lines .t-narrow { display: inline; }
  [dir="ltr"] .ab-float { padding: 8px 12px; }                                 /* smaller tags at the photo's corners, clear of the face */
  [dir="ltr"] .ab-float b { font-size: 18px; }
  [dir="ltr"] .ab-float span { font-size: 11.5px; }
  [dir="ltr"] .ab-float.f1 { top: -12px; inset-inline-end: -14px; }
  [dir="ltr"] .ab-float.f1 span { max-width: 13ch; }
  [dir="ltr"] .ab-float.f2 { bottom: -34px; inset-inline-end: -14px; }
  [dir="ltr"] .ab-float.f2 span { max-width: 30ch; }
}
