/* ==========================================================================
   SmartFlow — site stylesheet
   Brand source: brand-kit/hats/smartflow/brand.json + DESIGN.md
   Design overhaul 2026-08-06 (post-critique, design-triggers + huashu-design):
   subtle electric-blue accent, 5-size type scale, Archivo display (variable
   width+weight axes) over Open Sans body, one orchestrated page-load motion
   pass. One black band per page max; no accent inside body text/headings/
   backgrounds — accent is reserved for CTA / focal figure node / interaction.
   ========================================================================== */

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-Variable.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/Archivo-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color — near-monochrome. One accent, used sparingly (spice, not paint). */
  --white:        #FFFFFF;
  --cream:        #ECEBE6;   /* deepened from #F3F3F1 — the old value was ~2% off white and vanished on mobile in daylight; now a perceptible tonal step */
  --ink:          #111111;
  --black-band:   #0A0A0A;
  --sandy:        #E2E2E0;   /* hairlines on light, rest-state borders */
  --muted:        #78787D;   /* brand token, used for 17px+ text only */
  --muted-sm:     #6E6E73;   /* AA-safe derivative for sub-17px text */

  --accent:        #2563EB;  /* on white — 5.2:1. CTA fill, hover, focus ring, figure focal node. */
  --accent-dark:   #1D4ED8;  /* CTA hover/active */
  --accent-on-dark:#60A5FA;  /* on #0A0A0A — 8.5:1; #2563EB alone is only ~3.2:1 there */
  --accent-soft:   rgba(37,99,235,0.08); /* hover washes only */

  /* Band tints — 30% "identity" tier (Trigger 05): soft backgrounds are unlimited,
     they carry the rhythm without spending the scarce saturated-accent budget. */
  --tint-blue:     #F4F7FF;  /* cool tint band */
  --tint-warm:     #FBF1EF;  /* warm tint band — pairs with the coral surprise accent */

  /* Warm "surprise" accent (Editorial Soft palette) — the ≤2×-per-page off-palette
     spice that makes the page read "designed by a person," not "template". */
  --accent-warm:   #C0392B;  /* on white ~5.0:1 (AA); coral family, used on ≤2 existing words */

  /* On the black band — verified-legible scale, do not go darker */
  --on-terra-label:    #D8D8DC;
  --on-terra-body:     #C8C8CC;
  --on-terra-emphasis: #FFFFFF;
  --on-terra-divider:  #3A3A3C;

  /* Layout */
  --maxw:    1120px;
  --prose:   720px;
  --gutter:  44px;
  --gutter-sm: 20px;
  --radius:  2px;

  /* Type — two families, five sizes total (design-triggers §5 hard cap) */
  --font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', monospace;

  --size-micro: 12px;  /* kickers, captions, nav, fine print, buttons, table heads */
  --size-body:  16px;  /* paragraphs, lists, table cells, CTA label, wordmark */
  --size-lead:  20px;  /* standfirsts, h3, FAQ summary */
  --size-h2:    clamp(28px, 2.2vw + 20px, 40px);
  --size-h1:    clamp(42px, 3.25vw + 18px, 72px);

  /* Spacing rhythm */
  --hero-pad: clamp(80px, 12vw, 150px);
  --section-pad: clamp(64px, 10vw, 130px);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---- Reset -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--size-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
b, strong { font-weight: 600; } /* emphasis = weight jump, never a second family */
ul, ol { padding-left: 20px; margin: 0 0 16px; }
li + li { margin-top: 6px; }

/* ---- Skip link ------------------------------------------------------------ */

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: var(--size-micro);
  font-weight: 600;
  z-index: 100;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ---- Focus states ---------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 1px;
}
.btn:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.band-black :focus-visible { outline-color: var(--accent-on-dark); }

/* ---- Layout helpers -------------------------------------------------------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.prose { max-width: var(--prose); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* No blanket inter-section rule — a 1px line between every section is the
   grammar of a Word/Docs page. Rhythm comes from tonal bands + padding instead.
   A hairline is added back only where two plain (band-less) sections meet, so
   pages that don't alternate backgrounds still get separation. */
section { padding: var(--section-pad) 0; }
section.hero { padding-top: var(--hero-pad); padding-bottom: var(--hero-pad); }
section:not([class*="band"]) + section:not([class*="band"]) { border-top: 1px solid var(--sandy); }

.band-cream { background: var(--cream); }
.band-tint  { background: var(--tint-blue); }
.band-warm  { background: var(--tint-warm); }
.band-black {
  background: var(--black-band);
  color: var(--on-terra-body);
  border-bottom: none;
}
.band-black h2, .band-black h3 { color: var(--white); }
.band-black b, .band-black strong { color: var(--on-terra-emphasis); }
.band-black .eyebrow { color: var(--on-terra-label); }
.band-black .hairline { border-color: var(--on-terra-divider); }
.band-black .fig-caption { color: var(--on-terra-label); border-top-color: var(--on-terra-divider); }
.band-black .card { border-color: var(--on-terra-divider); }
.band-black a { text-decoration-color: var(--on-terra-divider); }
.band-black .prose a:hover, .band-black p a:hover { text-decoration-color: var(--accent-on-dark); }

/* Saturated closing band — the decision point gets the page's one loud colour.
   White body on #2563EB = 5.2:1 (AA). Button inverts to white-on-blue. */
.band-accent { background: var(--accent); color: #fff; }
.band-accent h2 { color: #fff; }
.band-accent .thesis { color: #fff; }
.band-accent .thesis-alert { color: #FEF3C7; }
.band-accent .lead { color: rgba(255,255,255,0.90); }
.band-accent .btn { background: #fff; color: var(--accent); }
.band-accent .btn:hover { background: var(--cream); transform: scale(1.02); }
.band-accent .risk { color: rgba(255,255,255,0.82); }
.band-accent :focus-visible { outline-color: #fff; }
.band-accent { padding: clamp(56px, 7vw, 88px) 0; }
.band-accent .lead.prose { max-width: 900px; }
.band-accent .lead.prose,
.band-accent .lead + p { margin-inline: auto; text-align: center; }
.band-accent .lead + p { margin-bottom: 0; }

/* ---- Typography ------------------------------------------------------------- */
/* Display (h1/h2): Archivo, heavy weight, width axis pushed for physical
   presence — "bigger and wider" without loosening tracking, which stays
   tight and negative (the correct convention at display sizes). */

h1 {
  font-family: var(--font-display);
  font-size: var(--size-h1);
  font-weight: 800;
  font-variation-settings: 'wdth' 112;
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 0 20px;
}
h2 {
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-weight: 700;
  font-variation-settings: 'wdth' 108;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
h3 {
  font-size: var(--size-lead);
  font-weight: 600;
  margin: 28px 0 10px;
}
h3.phase-heading {
  font-size: var(--size-h2);
  font-weight: 800;
}
.accent-strong { color: var(--accent); }
p { margin: 0 0 16px; font-size: var(--size-body); }
.lead {
  font-size: var(--size-lead);
  color: var(--muted);
  font-weight: 400;
  line-height: 1.55;
}
.eyebrow {
  display: block;
  color: var(--muted-sm);
  font-size: var(--size-micro);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.mono-caption {
  font-family: var(--mono);
  font-size: var(--size-micro);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Buttons / CTA ----------------------------------------------------------- */
/* The CTA is the one saturated object on screen — design-triggers §3:
   "CTA = the most prominent colour on the canvas, always." */

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--size-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s var(--ease-out);
}
.btn:hover { background: var(--accent-dark); transform: scale(1.02); }
.risk {
  color: var(--muted-sm);
  font-size: var(--size-micro);
  margin-top: 12px;
}
.cta-block { text-align: center; padding: 20px 0 0; }
.cta-block .cta-copy { margin-inline: auto; }
.cta-block .risk { margin-top: 14px; }

#cal-inline-15min,
#cal-inline-15min-he {
  min-width: 320px;
  width: 100%;
  height: 640px;
  overflow: auto;
}

.hero-video {
  display: block;
  width: 100%;
  max-width: 720px;
  margin-top: 40px;
  border: 1px solid var(--sandy);
  border-radius: var(--radius);
  background: #000;
}

/* Hero: two-column on desktop (copy left, video right), stacked on mobile.
   The lead drops from muted grey to ink — a hero pitch shouldn't whisper. */
.hero .lead { color: var(--ink); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; min-width: 0; }
.hero-grid > * { min-width: 0; }
.hero-grid .hero-copy > :last-child { margin-bottom: 0; }
.hero-grid .hero-video { margin-top: 0; max-width: 100%; }
.hero-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 8px; }
.cta-secondary {
  font-size: var(--size-micro);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-sm);
  text-decoration: none;
  transition: color .2s var(--ease-out);
}
.cta-secondary:hover { color: var(--accent); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* Warm "surprise" accent — applied to ≤2 already-present words (חוק 0 held). */
.wince { color: var(--accent-warm); font-weight: 600; }

/* Two-shape identity grid (section "This is you") */
.shape-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 44px); margin-top: 8px; }
.shape-grid h3 { margin-top: 0; }
@media (max-width: 760px) { .shape-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Wide figures — pull the flow diagrams out of the prose column so they read
   as the section's visual anchor, not an inline footnote. */
.fig--wide { max-width: none; }
.fig--wide svg { max-width: 760px; margin: 0 auto; }

/* ---- Header / nav -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sandy);
  z-index: 20;
}
.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand-lockup {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  gap: 2px;
  direction: ltr;          /* lock logo LTR so RTL pages don't mirror the SVG */
  unicode-bidi: isolate;
}
.brand-lockup .logo-mark {
  height: 54px;
  width: auto;
}
.brand-lockup .descriptor {
  display: block;
  color: var(--muted-sm);
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--size-micro);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}
.nav-links a:not(.btn) {
  text-decoration: none;
  font-size: var(--size-micro);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: color .2s var(--ease-out);
}
.nav-links a:not(.btn):hover { color: var(--accent); }
.nav-links a[aria-current="page"]:not(.btn) {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.nav-links .btn { padding: 9px 18px; font-size: var(--size-micro); }

/* ---- Nav dropdown (Products) ---------------------------------------------------- */

.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-size: var(--size-micro);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: color .2s var(--ease-out);
  cursor: pointer;
}
.nav-dropdown-toggle:hover { color: var(--accent); }
.nav-dropdown-toggle[aria-current="page"] {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.nav-dropdown-toggle .chevron {
  width: 10px;
  height: 10px;
  transition: transform .2s var(--ease-out);
  flex-shrink: 0;
}
.nav-dropdown.open .nav-dropdown-toggle .chevron {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--sandy);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 8px 0;
  margin-top: 4px;
  z-index: 30;
}
/* invisible bridge between toggle and menu — prevents gap loss */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
[dir="rtl"] .nav-dropdown-menu {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}
/* dropdown visibility now handled by click-toggle JS only — hover rules removed */
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: var(--size-micro);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-dropdown-menu a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.nav-dropdown-menu a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}


/* ---- Footer ----------------------------------------------------------------------- */

.site-footer {
  padding: 44px 0 90px;
}
.site-footer .wrap {
  color: var(--muted-sm);
  font-size: var(--size-micro);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.7;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
}
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a {
  text-decoration: none;
  color: var(--muted-sm);
  transition: color .2s var(--ease-out);
}
.footer-nav a:hover { color: var(--accent); }

/* ---- Table ------------------------------------------------------------------------- */

table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: var(--size-body); }
th, td { text-align: left; padding: 13px 14px 13px 0; border-bottom: 1px solid var(--sandy); vertical-align: top; }
/* Headers read as actual headers now (bold, near body size) rather than a tiny caption —
   the prior 12px muted uppercase treatment was too light against the bold 16px body rows below it. */
th { color: var(--ink); font-weight: 700; font-size: var(--size-lead); letter-spacing: -0.005em; }
th:not(:first-child) { color: var(--muted); font-weight: 400; }
.band-black th { color: var(--on-terra-label); }
.band-black td { border-bottom-color: var(--on-terra-divider); }

/* ---- Cards / commitments ------------------------------------------------------------ */

.card {
  border: 1px solid var(--sandy);
  border-radius: var(--radius);
  padding: 24px;
  margin: 18px 0;
  transition: transform .25s var(--ease-out), border-color .25s var(--ease-out);
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.band-black .card:hover { border-color: var(--accent-on-dark); }
.card p:last-child { margin-bottom: 0; }
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card-grid .card { margin: 0; }
.commit {
  border: 1px solid var(--sandy);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 16px 0;
  transition: border-color .25s var(--ease-out);
}
.commit:hover { border-color: var(--accent); }
.band-black .commit { border-color: var(--on-terra-divider); }
.band-black .commit:hover { border-color: var(--accent-on-dark); }

/* ---- Cascade (numbered sequence, hairline-separated — replaces boxed cards for odd counts) ---- */

.cascade { margin-top: 8px; }
.cascade-step {
  display: grid;
  grid-template-columns: clamp(88px, 12vw, 150px) 1fr;
  gap: clamp(20px, 3vw, 40px);
  padding: 32px 0;
  border-top: 1px solid var(--sandy);
  transition: background-color .25s var(--ease-out);
  align-items: start;
}
.cascade-step:last-child { border-bottom: 1px solid var(--sandy); }
.cascade-step:hover { background: var(--accent-soft); }
.cascade-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 112;
  color: var(--accent);
  line-height: 0.9;
  letter-spacing: -0.02em;
  padding-top: 0;
}
.cascade-step h3 { margin: 0 0 8px; }
.cascade-step p { margin: 0; color: var(--muted); max-width: var(--prose); }
@media (max-width: 640px) {
  .cascade-step { grid-template-columns: 1fr; gap: 6px; }
}

/* ---- Statement / thesis / quote ------------------------------------------------------ */
/* Reuses the H2 display size — a fifth distinct absolute value would break
   the type-scale cap; hierarchy here comes from centering + max-width instead. */

.thesis {
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-weight: 700;
  font-variation-settings: 'wdth' 108;
  color: var(--ink);
  max-width: var(--prose);
  margin: 0 auto;
  text-align: center;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.statement {
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-weight: 700;
  font-variation-settings: 'wdth' 108;
  color: var(--ink);
  max-width: var(--prose);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ---- Figures ---------------------------------------------------------------------------- */

.fig { margin: 34px 0; }
.fig svg { width: 100%; height: auto; }
.fig-caption {
  font-family: var(--mono);
  font-size: var(--size-micro);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-sm);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--sandy);
}

/* ---- Photo placeholder (about) ----------------------------------------------------------- */

.photo-placeholder {
  aspect-ratio: 4 / 5;
  max-width: 340px;
  border: 1px dashed var(--sandy);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  border-radius: var(--radius);
  margin: 24px 0 32px;
}
.photo-placeholder span {
  font-family: var(--mono);
  font-size: var(--size-micro);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-sm);
  line-height: 1.6;
}

/* ---- Booking / Cal.com placeholder (contact) ------------------------------------------------ */

.booking-placeholder {
  border: 1px dashed var(--sandy);
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(32px, 6vw, 56px) 24px;
  text-align: center;
  color: var(--muted-sm);
  font-size: var(--size-micro);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 20px 0;
}

/* ---- FAQ (native details/summary) --------------------------------------------------------- */

.faq-item {
  border-bottom: 1px solid var(--sandy);
  padding: 18px 0;
}
.faq-item summary {
  font-weight: 600;
  font-size: var(--size-lead);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  transition: color .2s var(--ease-out);
}
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-weight: 300;
  flex-shrink: 0;
  color: var(--muted-sm);
}
.faq-item[open] summary::after { content: '\2212'; color: var(--accent); }
.faq-item p { margin-top: 12px; color: var(--ink); }

/* ---- Links inside prose ---------------------------------------------------------------------- */

.prose a, p a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--sandy);
  transition: text-decoration-color .2s var(--ease-out), color .2s var(--ease-out);
}
.prose a:hover, p a:hover { text-decoration-color: var(--accent); color: var(--accent); }

/* ---- Motion: one orchestrated page load --------------------------------------------------- */
/* Progressive enhancement: hidden-until-visible state only applies once the
   boot script has added .js to <html>. No JS (or reduced-motion) = everything
   renders visible immediately, nothing is ever stuck hidden. Targets section
   elements directly (no per-element markup needed) — the whole section fades
   up as one block on scroll-into-view, once. */

html.js main > section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
html.js main > section.visible { opacity: 1; transform: none; }
html.js main > section.hero { opacity: 1; transform: none; } /* hero is visible on load, never hidden */

@media (prefers-reduced-motion: reduce) {
  /* Static fallback: motion-sensitive users see the finished state immediately. */
  html.js main > section { opacity: 1; transform: none; transition: none; }
  .btn, .card, .commit, .cascade-step { transition: none; }
  .hero .btn::after, .band-accent .btn::after { animation: none; }
}

/* ---- Cursor-follow circle (desktop, fine-pointer only; see JS gate) -------------------------------- */

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 18px 8px var(--accent-soft), 0 0 2px 1px var(--accent-soft);
  pointer-events: none;
  z-index: 60;
  will-change: transform;
  opacity: 0;
  transition: opacity .3s var(--ease-out);
}
.cursor-dot.active { opacity: 1; }

/* ---- Multiplayer cursors: agents + humans trailing the real mouse -------------------- */
/* Fixed to the viewport, like the .cursor-dot scroll-follow glow. JS (shared:motion, same
   gate as .cursor-dot) creates 9 of these and eases each toward the real mouse with its own
   offset + lag, so they cluster into a little team that follows the pointer instead of
   scattering over the text. Desktop-only, decorative. */

.agent-cursors {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 55;
}
.agent-cursor {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity .5s var(--ease-out);
  will-change: transform;
}
.agent-cursor.visible { opacity: 1; }
.agent-cursor-inner {
  display: flex;
  align-items: center;
  gap: 6px;
}
.agent-cursor svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
}
.agent-cursor .label {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: .02em;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.agent-cursor--bot .label { background: var(--accent, #2563EB); color: #fff; }
.agent-cursor--bot svg { color: var(--accent, #2563EB); width: 25px; height: 25px; }  /* robot 30% bigger */
.agent-cursor--human .label { background: #fff; color: #0A0A0A; }
.agent-cursor--human svg {
  color: #0A0A0A;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)) drop-shadow(0 0 2px rgba(255,255,255,.9));
}

/* Touch screens have no mouse cursor. On narrow or coarse-pointer devices, this hero
   choreography makes the agents-plus-human collaboration visible without tracking a finger. */
.cursor-collaboration,
.mobile-cursor-demo { display: none; }
@media (max-width: 640px), (pointer: coarse) {
  .agent-cursors { display: none !important; }
  .cursor-collaboration {
    display: block;
    padding: 0 0 clamp(36px, 8vw, 56px);
  }
  .mobile-cursor-demo {
    display: block;
    position: relative;
    width: min(100%, 340px);
    height: 220px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(37,99,235,.28);
    border-radius: 16px;
    background:
      linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
      #0B1530;
    background-size: 24px 24px;
    box-shadow: 0 14px 30px rgba(12,24,51,.18);
    isolation: isolate;
    pointer-events: none;
  }
  .mobile-cursor-demo__caption {
    position: absolute;
    inset-block-start: 12px;
    inset-inline: 14px;
    color: #C7D8FF;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: center;
    text-transform: uppercase;
  }
  .mobile-cursor-demo__hub {
    position: absolute;
    left: 50%;
    top: 57%;
    z-index: 1;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 9px rgba(96,165,250,.14);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .mobile-team-cursor {
    position: absolute;
    left: 50%;
    top: 57%;
    z-index: 2;
    padding: 6px 10px 6px 23px;
    border-radius: 999px;
    background: #fff;
    color: #151515;
    box-shadow: 0 5px 16px rgba(0,0,0,.28);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    opacity: .25;
    transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy)));
    animation: mobile-cursor-converge 6.8s cubic-bezier(.4,0,.2,1) infinite;
  }
  .mobile-team-cursor--human { background: #FFF1BF; color: #4A3200; }
  .mobile-team-cursor::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2563EB;
    box-shadow: 0 0 0 3px rgba(37,99,235,.14);
    transform: translateY(-50%);
  }
  .mobile-team-cursor--human::before {
    background: #D18B00;
    box-shadow: 0 0 0 3px rgba(209,139,0,.18);
  }
  .mobile-team-cursor:not(.mobile-team-cursor--human) { background: #DBEAFE; color: #163A8A; }
  .mobile-team-cursor--1 { --sx: -160px; --sy: -56px; --mx: -91px; --my: -38px; --ex: 150px; --ey: -62px; }
  .mobile-team-cursor--2 { --sx: 150px; --sy: -62px; --mx: 72px; --my: -40px; --ex: -150px; --ey: -60px; }
  .mobile-team-cursor--3 { --sx: -150px; --sy: 62px; --mx: -80px; --my: 38px; --ex: 150px; --ey: 64px; }
  .mobile-team-cursor--4 { --sx: 156px; --sy: 66px; --mx: 72px; --my: 40px; --ex: -150px; --ey: 66px; }
  .mobile-team-cursor--5 { --sx: 0px; --sy: 110px; --mx: 0px; --my: 65px; --ex: 0px; --ey: -102px; }
  @keyframes mobile-cursor-converge {
    0%, 8% { opacity: .25; transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))); }
    18% { opacity: 1; }
    42%, 62% { opacity: 1; transform: translate(calc(-50% + var(--mx)), calc(-50% + var(--my))); }
    72% { opacity: 1; }
    88%, 100% { opacity: .25; transform: translate(calc(-50% + var(--ex)), calc(-50% + var(--ey))); }
  }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .mobile-cursor-demo__hub,
  .mobile-team-cursor { animation: none; }
  .mobile-team-cursor { opacity: 1; transform: translate(calc(-50% + var(--mx)), calc(-50% + var(--my))); }
}

/* ---- CTA idle pulse: motion that points at the ONE thing that matters -------------- */
/* Additive to the cursor glow (kept). A slow ring on the primary buttons only. */
.hero .btn, .band-accent .btn { position: relative; overflow: visible; }
.hero .btn::after, .band-accent .btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45);
  animation: cta-pulse 3.2s var(--ease-out) infinite;
  pointer-events: none;
}
.band-accent .btn::after { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
@keyframes cta-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.hero-commitments { display:flex; flex-wrap:wrap; gap:8px 18px; margin:20px 0 0; color:var(--muted); font-size:var(--size-small); }
.hero-commitments span { display:inline-flex; align-items:center; gap:8px; }
.hero-commitments span::before { content:'✓'; color:var(--accent); font-weight:700; }
@media (max-width:640px) { .hero-commitments { gap:8px 12px; } }

/* ---- Diagram stroke-draw: connectors draw in when the section scrolls into view --- */
/* Solid connectors only — the dashed "rejected" arrows keep their meaning.
   Large fixed dash (>any path here) so a path never repeats or leaves a gap. */
@media (prefers-reduced-motion: no-preference) {
  html.js .fig path:not([stroke-dasharray]) {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    transition: stroke-dashoffset 1.2s var(--ease-out);
  }
  html.js main > section.visible .fig path:not([stroke-dasharray]) { stroke-dashoffset: 0; }
}

/* ---- Responsive -------------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ---- Mobile nav hamburger -------------------------------------------------------- */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 640px) {
  :root { --gutter: var(--gutter-sm); }
  .brand-lockup .descriptor { display: none; }

  .nav-toggle { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 10px; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 8px 0 12px;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 0;
    border-bottom: 1px solid var(--sandy);
  }
  .nav-links .btn { margin-top: 8px; text-align: center; }

  /* Dropdown in mobile nav */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 12px 0;
    border-bottom: 1px solid var(--sandy);
    width: 100%;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin-top: 0;
    padding: 0 0 0 16px;
    min-width: auto;
  }
  [dir="rtl"] .nav-dropdown-menu {
    transform: none;
    padding: 0 16px 0 0;
  }
  .nav-dropdown-menu a {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--sandy);
  }
  .nav-dropdown .nav-dropdown-menu { display: block; }

  .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }

  /* Table mobile stack */
  table, thead, tbody, th, td, tr { display: block; }
  thead { position: absolute; left: -9999px; }
  tr { padding: 14px 0; border-bottom: 1px solid var(--sandy); }
  td { padding: 4px 0; border: none; }
  td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    font-size: var(--size-micro);
    color: var(--muted-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
  }

  section { padding: clamp(48px, 14vw, 90px) 0; }
  section.hero { padding-top: clamp(56px, 16vw, 110px); padding-bottom: clamp(48px, 14vw, 90px); }
}

/* ---- Figure overflow fix ---------------------------------------------------------- */

.fig { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fig svg { min-width: 0; }

/* ---- Cursor dot: gate behind prefers-reduced-motion -------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .cursor-dot { display: none; }
}

/* ---- Screen-reader only (visually hidden, announced) --------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Print reset --------------------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .cursor-dot, .agent-cursors, .skip-link, .nav-toggle { display: none; }
  main > section { opacity: 1 !important; transform: none !important; }
  .btn { border: 1px solid var(--ink); background: transparent; color: var(--ink); }
  body { font-size: 12pt; }
}

/* ---- Workflow proof cases --------------------------------------------------------- */
.workflow-examples { display: grid; gap: 24px; margin-top: 32px; }
.case-study {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid var(--sandy);
  border-radius: var(--radius);
  background: var(--paper);
}
.case-study--chief { background: var(--cream); }
.case-study--chief .case-study-copy { order: 2; }
.case-study--chief .case-study-visual { order: 1; }
.case-study h3 { font-family: var(--font-display); font-size: var(--size-lead); line-height: 1.18; margin: 8px 0 18px; }
.case-study-visual {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  background: var(--ink);
  color: #fff;
}
.workflow-lane { list-style: none; margin: 0 0 20px; padding: 0; counter-reset: flow; }
.workflow-lane li { counter-increment: flow; position: relative; padding: 10px 0 10px 42px; border-top: 1px solid var(--sandy); font-size: var(--size-body); }
.workflow-lane li::before { content: counter(flow, decimal-leading-zero); position: absolute; left: 0; top: 12px; color: var(--accent); font-family: var(--mono); font-size: var(--size-micro); font-weight: 700; }
.workflow-lane li:last-child { border-bottom: 1px solid var(--sandy); }
.case-study--clinical { display: block; padding-inline: clamp(24px, 4vw, 52px); background: var(--paper); }
.case-study--clinical .workflow-lane { max-width: var(--prose); }
.case-study--full { display: block; padding-inline: clamp(24px, 4vw, 52px); background: var(--paper); }
.case-study--full .case-study-copy, .case-study--full .workflow-lane { max-width: var(--prose); }
.workflow-result { margin: 0; color: var(--ink); }
.workflow-quote { max-width: var(--prose); margin: 24px 0 0; padding: 16px 0 0; border-top: 1px solid var(--sandy); color: var(--ink); font-size: var(--size-lead); line-height: 1.45; }
.workflow-quote cite { display: block; margin-top: 12px; color: var(--muted); font-family: var(--font-body); font-size: var(--size-body); font-style: normal; }

/* Visual proof stays concrete without exposing a customer's tools, data or brand. */
.carousel-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-height: 0; padding: clamp(16px, 3vw, 28px); background: linear-gradient(135deg, #10233d, #1d5271); }
.carousel-shot { min-width: 0; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; background: #0d1d32; box-shadow: 0 14px 30px rgba(0,0,0,.2); }
.carousel-shot img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #e7dac7; }
.carousel-shot figcaption { padding: 9px 12px; color: rgba(255,255,255,.84); font-family: var(--mono); font-size: var(--size-micro); letter-spacing: .04em; }
.case-visual-note { margin: 0; color: rgba(255,255,255,.76); font-size: var(--size-micro); line-height: 1.4; }
.carousel-gallery .case-visual-note { grid-column: 1 / -1; padding: 0 2px; }

.inbox-transform { min-height: 0; background: #fff; color: var(--ink); border: 1px solid #cfd3d8; box-shadow: 0 18px 46px rgba(17,17,17,.12); }
.inbox-appbar { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 0; background: #0f172a; color: #fff; font-size: var(--size-micro); }
.inbox-appbar__mark { display: grid; place-items: center; align-self: stretch; width: 44px; flex: 0 0 44px; background: var(--accent); font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.inbox-appbar > span:last-child { margin-inline-start: auto; color: #aeb8c7; font-family: var(--mono); }
.inbox-comparison { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); min-height: 374px; }
.inbox-state { min-width: 0; padding: 18px; }
.inbox-state--before { background: linear-gradient(145deg, #f8fafc, #e9edf2); }
.inbox-state--after { background: #f7faf8; }
.inbox-state__head { display: flex; justify-content: space-between; gap: 8px; align-items: center; color: var(--muted-sm); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.inbox-state__head strong { padding: 4px 7px; background: var(--ink); color: #fff; }
.inbox-state h4 { margin: 10px 0 14px; font-family: var(--font-display); font-size: 17px; line-height: 1.15; }
.mail-scatter { position: relative; height: 286px; }
.mail-card { position: absolute; left: var(--x); top: var(--y); width: 84%; padding: 9px 11px; overflow: hidden; border: 1px solid #c9cfd7; background: #fff; box-shadow: 0 7px 18px rgba(15,23,42,.12); transform: rotate(var(--r)); }
.mail-card b, .mail-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-card b { font-size: 11px; line-height: 1.3; }
.mail-card b::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-inline-end: 6px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.mail-card small { color: #687182; font-size: 9px; }
.mail-card--1 { --x: 1%; --y: 2px; --r: -2deg; }
.mail-card--2 { --x: 14%; --y: 47px; --r: 2.2deg; }
.mail-card--3 { --x: 4%; --y: 94px; --r: -1deg; }
.mail-card--4 { --x: 15%; --y: 141px; --r: 1.5deg; }
.mail-card--5 { --x: 0%; --y: 190px; --r: -2.4deg; }
.mail-card--6 { --x: 13%; --y: 239px; --r: 1deg; }
.inbox-flow { display: grid; place-items: center; background: #0f172a; color: var(--accent-on-dark); }
.inbox-flow span { font-size: 26px; animation: inbox-pulse 1.8s var(--ease-out) infinite; }
@keyframes inbox-pulse { 50% { transform: translateX(5px); opacity: .65; } }
.inbox-destinations { display: grid; gap: 8px; }
.inbox-destination { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 10px; border: 1px solid #dbe1df; border-inline-start-width: 3px; background: #fff; box-shadow: 0 4px 11px rgba(17,17,17,.05); }
.inbox-destination > span { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: currentColor; }
.inbox-destination b, .inbox-destination small { display: block; }
.inbox-destination b { color: var(--ink); font-size: 11px; line-height: 1.25; }
.inbox-destination small { margin-top: 2px; color: #5f6663; font-size: 9px; line-height: 1.35; }
.inbox-destination > strong { color: var(--ink); font-family: var(--mono); font-size: 10px; }
.inbox-destination--priority { color: #dc4c47; border-inline-start-color: #dc4c47; }
.inbox-destination--later { color: var(--accent); border-inline-start-color: var(--accent); }
.inbox-destination--calendar { color: #b58b20; border-inline-start-color: #b58b20; }
.inbox-destination--filed { color: #4e8f70; border-inline-start-color: #4e8f70; }
.inbox-transform .case-visual-note { margin: 0; padding: 12px 14px; border-top: 1px solid var(--sandy); background: #fff; color: var(--ink); }
[dir="rtl"] .case-study--chief .case-study-copy { order: 1; }
[dir="rtl"] .case-study--chief .case-study-visual { order: 2; }
[dir="rtl"] .inbox-appbar { padding: 0 0 0 14px; }
[dir="rtl"] .inbox-flow span { transform: scaleX(-1); }
[dir="rtl"] .mail-card { left: auto; right: var(--x); }
[dir="rtl"] .mail-card--1 { --r: 2deg; }
[dir="rtl"] .mail-card--2 { --r: -2.2deg; }
[dir="rtl"] .mail-card--3 { --r: 1deg; }
[dir="rtl"] .mail-card--4 { --r: -1.5deg; }
[dir="rtl"] .mail-card--5 { --r: 2.4deg; }
[dir="rtl"] .mail-card--6 { --r: -1deg; }

.process-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.process-choice { padding: 18px 20px; border-top: 1px solid var(--sandy); border-bottom: 1px solid var(--sandy); }
.process-choice strong, .process-choice span { display: block; }
.process-choice strong { margin-bottom: 5px; font-family: var(--font-display); font-size: var(--size-body); }
.process-choice span { color: var(--muted); font-size: var(--size-small); line-height: 1.45; }

@media (max-width: 900px) {
  .case-study { grid-template-columns: 1fr; gap: 24px; }
  .case-study--chief .case-study-copy, .case-study--chief .case-study-visual { order: initial; }
  .case-study-visual { min-height: 0; }
  .carousel-gallery { grid-template-columns: 1fr; }
  .inbox-comparison { grid-template-columns: 1fr; }
  .inbox-flow { min-height: 48px; }
  .inbox-flow span { transform: rotate(90deg); }
  [dir="rtl"] .inbox-flow span { transform: rotate(90deg); }
  .process-picker { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .workflow-lane li { padding-left: 38px; }
  .carousel-gallery { padding: 16px; }
  .inbox-state { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .inbox-flow span { animation: none; }
}
