/*!
 * ainable.css v1.0.0 (2026-10-01)
 * The shared Ainable design layer: tokens, base, components, motion.
 * Source of truth: projects/ainable/shared/playbook/README.md
 * Live demo:       https://ainable-playbook.vercel.app
 *
 * Include in <head>, after the Google Fonts link:
 *   <link rel="stylesheet" href="https://ainable-playbook.vercel.app/ainable.css">
 * Every class is prefixed .ai- so it never collides with a site's own CSS.
 */

/* ---------------------------------------------------------------- tokens */
:root {
  /* palette (brand sheet, 2026-09-30): ink on paper, bone on night. Nothing else. */
  --ai-ink: #0E0E10;
  --ai-paper: #F6F6F4;
  --ai-night: #0A0A0B;
  --ai-bone: #F5F5F7;
  --ai-graphite: #45454A;
  --ai-mist: #A8A8B0;

  /* functional colours: states and screenshot annotations only, never decoration */
  --ai-marker: #FF4D2E;     /* arrows + circles on guide screenshots (pending Alexander, see README Q2) */
  --ai-error: #D93D3D;
  --ai-ok: #1F8A5B;

  /* semantic tokens, light (default) */
  --ai-bg: var(--ai-paper);
  --ai-surface: #FFFFFF;
  --ai-surface-2: #EFEFEC;
  --ai-text: var(--ai-ink);
  --ai-text-2: var(--ai-graphite);
  --ai-muted: #7A7A80;
  --ai-border: rgba(14, 14, 16, .08);
  --ai-border-strong: rgba(14, 14, 16, .18);
  --ai-btn-bg: var(--ai-ink);
  --ai-btn-fg: var(--ai-paper);
  --ai-nav-bg: rgba(246, 246, 244, .86);
  --ai-focus: rgba(14, 14, 16, .55);
  --ai-shadow-sm: 0 1px 2px rgba(14, 14, 16, .05);
  --ai-shadow-md: 0 8px 24px -10px rgba(14, 14, 16, .16);
  --ai-shadow-lg: 0 24px 60px -24px rgba(14, 14, 16, .28);

  /* type */
  --ai-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ai-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --ai-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ai-fs-display: clamp(40px, 6.2vw, 80px);
  --ai-fs-h1: clamp(34px, 5vw, 60px);
  --ai-fs-h2: clamp(28px, 3.6vw, 44px);
  --ai-fs-h3: clamp(18px, 1.6vw, 21px);
  --ai-fs-lead: clamp(17px, 1.5vw, 20px);
  --ai-fs-body: 16px;
  --ai-fs-small: 14px;
  --ai-fs-label: 11px;
  --ai-fs-quote: clamp(20px, 2.2vw, 28px);

  /* spacing scale (4 px base) */
  --ai-s-1: 4px;  --ai-s-2: 8px;  --ai-s-3: 12px; --ai-s-4: 16px;
  --ai-s-5: 24px; --ai-s-6: 32px; --ai-s-7: 48px; --ai-s-8: 64px;
  --ai-s-9: 96px; --ai-s-10: 128px;
  --ai-gutter: clamp(16px, 4vw, 40px);
  --ai-section: clamp(64px, 9vw, 128px);
  --ai-max: 1120px;
  --ai-max-text: 64ch;

  /* radii */
  --ai-r-xs: 6px;    /* chips, download pills */
  --ai-r-sm: 10px;   /* buttons, inputs */
  --ai-r-md: 16px;   /* cards (brand kit default) */
  --ai-r-lg: 24px;   /* media, video, large panels */
  --ai-r-pill: 999px;

  /* motion */
  --ai-ease: cubic-bezier(.16, 1, .3, 1);        /* expo-out: reveals, hovers */
  --ai-ease-io: cubic-bezier(.65, 0, .35, 1);    /* in-out: logo shrink, accordion */
  --ai-dur-fast: .2s;
  --ai-dur: .4s;
  --ai-dur-slow: .8s;

  color-scheme: light;
}

/* dark: explicit choice wins, otherwise follow the system only when the site opts in with data-theme="auto" */
:root[data-theme="dark"] {
  --ai-bg: var(--ai-night);
  --ai-surface: #111113;
  --ai-surface-2: #17171A;
  --ai-text: var(--ai-bone);
  --ai-text-2: var(--ai-mist);
  --ai-muted: #6B6B74;
  --ai-border: rgba(245, 245, 247, .08);
  --ai-border-strong: rgba(245, 245, 247, .18);
  --ai-btn-bg: var(--ai-bone);
  --ai-btn-fg: var(--ai-night);
  --ai-nav-bg: rgba(10, 10, 11, .82);
  --ai-focus: rgba(245, 245, 247, .6);
  --ai-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --ai-shadow-md: 0 8px 24px -10px rgba(0, 0, 0, .6);
  --ai-shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --ai-bg: var(--ai-night);
    --ai-surface: #111113;
    --ai-surface-2: #17171A;
    --ai-text: var(--ai-bone);
    --ai-text-2: var(--ai-mist);
    --ai-muted: #6B6B74;
    --ai-border: rgba(245, 245, 247, .08);
    --ai-border-strong: rgba(245, 245, 247, .18);
    --ai-btn-bg: var(--ai-bone);
    --ai-btn-fg: var(--ai-night);
    --ai-nav-bg: rgba(10, 10, 11, .82);
    --ai-focus: rgba(245, 245, 247, .6);
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------------ base */
.ai-base, .ai-base body { background: var(--ai-bg); }
.ai-base body {
  margin: 0;
  font-family: var(--ai-font-body);
  font-size: var(--ai-fs-body);
  line-height: 1.55;
  color: var(--ai-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.ai-base *, .ai-base *::before, .ai-base *::after { box-sizing: border-box; }
.ai-base img, .ai-base video { max-width: 100%; height: auto; }
.ai-base ::selection { background: var(--ai-text); color: var(--ai-bg); }
.ai-base :focus-visible { outline: 2px solid var(--ai-focus); outline-offset: 3px; border-radius: 4px; }

.ai-wrap { max-width: var(--ai-max); margin-inline: auto; padding-inline: var(--ai-gutter); }
.ai-wrap--narrow { max-width: 760px; }
.ai-section { padding-block: var(--ai-section); }
.ai-section + .ai-section { border-top: 1px solid var(--ai-border); }

/* type roles: exact family / weight / size / line-height / tracking per element */
.ai-display, .ai-h1, .ai-h2 {
  font-family: var(--ai-font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  margin: 0;
  text-wrap: balance;
}
.ai-display { font-size: var(--ai-fs-display); line-height: 1.02; letter-spacing: -.03em; }
.ai-h1 { font-size: var(--ai-fs-h1); line-height: 1.06; letter-spacing: -.025em; }
.ai-h2 { font-size: var(--ai-fs-h2); line-height: 1.1; letter-spacing: -.02em; }
.ai-display em, .ai-h1 em, .ai-h2 em { font-style: italic; font-weight: 300; color: var(--ai-text-2); }
.ai-h3 { font-family: var(--ai-font-body); font-weight: 600; font-size: var(--ai-fs-h3); line-height: 1.3; letter-spacing: -.01em; margin: 0; }
.ai-lead { font-size: var(--ai-fs-lead); line-height: 1.5; color: var(--ai-text-2); max-width: var(--ai-max-text); margin: 0; text-wrap: pretty; }
.ai-body { font-size: var(--ai-fs-body); line-height: 1.6; color: var(--ai-text-2); max-width: var(--ai-max-text); }
.ai-small { font-size: var(--ai-fs-small); line-height: 1.5; color: var(--ai-text-2); }
.ai-label {
  display: inline-block;
  font-family: var(--ai-font-mono);
  font-weight: 500;
  font-size: var(--ai-fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ai-muted);
}
.ai-quote { font-family: var(--ai-font-display); font-style: italic; font-weight: 300; font-size: var(--ai-fs-quote); line-height: 1.3; letter-spacing: -.01em; margin: 0; }
.ai-code { font-family: var(--ai-font-mono); font-size: 13px; background: var(--ai-surface-2); border: 1px solid var(--ai-border); border-radius: var(--ai-r-xs); padding: 1px 6px; }
.ai-stack > * + * { margin-top: var(--ai-stack, var(--ai-s-4)); }

/* --------------------------------------------------------------- buttons */
.ai-btn {
  --_bg: var(--ai-btn-bg); --_fg: var(--ai-btn-fg); --_bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 500 15px/1 var(--ai-font-body); letter-spacing: -.005em;
  color: var(--_fg); background: var(--_bg); border: 1px solid var(--_bd);
  border-radius: var(--ai-r-sm); text-decoration: none; cursor: pointer;
  transition: transform var(--ai-dur-fast) var(--ai-ease), background var(--ai-dur-fast) var(--ai-ease),
              border-color var(--ai-dur-fast) var(--ai-ease), opacity var(--ai-dur-fast) var(--ai-ease);
  -webkit-tap-highlight-color: transparent;
}
.ai-btn:hover { transform: translateY(-1px); }
.ai-btn:active { transform: translateY(0); opacity: .9; }
.ai-btn[disabled], .ai-btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.ai-btn svg { width: 18px; height: 18px; flex: none; }
.ai-btn .ai-arrow { transition: transform var(--ai-dur) var(--ai-ease); }
.ai-btn:hover .ai-arrow { transform: translateX(3px); }
.ai-btn--secondary { --_bg: var(--ai-surface); --_fg: var(--ai-text); --_bd: var(--ai-border-strong); }
.ai-btn--secondary:hover { --_bd: var(--ai-text); }
.ai-btn--ghost { --_bg: transparent; --_fg: var(--ai-text); padding-inline: 6px; min-height: 40px; }
.ai-btn--ghost:hover { transform: none; text-decoration: underline; text-underline-offset: 4px; }
.ai-btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.ai-btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.ai-btn--block { display: flex; width: 100%; }
/* social buttons: official glyphs (assets/social), monochrome as the brands allow */
.ai-btn--social { --_bg: var(--ai-surface); --_fg: var(--ai-text); --_bd: var(--ai-border-strong); gap: 10px; }
.ai-btn--social:hover { --_bd: var(--ai-text); }
.ai-btn--social svg { fill: currentColor; width: 18px; height: 18px; }
.ai-btn--social[data-empty] { opacity: .45; pointer-events: none; border-style: dashed; }
.ai-btns { display: flex; flex-wrap: wrap; gap: var(--ai-s-3); align-items: center; }

/* ------------------------------------------------------------------ nav */
.ai-nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: var(--ai-nav-bg);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ai-dur) var(--ai-ease);
}
.ai-nav.is-scrolled { border-bottom-color: var(--ai-border); }
.ai-nav__in { display: flex; align-items: center; justify-content: space-between; gap: var(--ai-s-4); height: 64px; }
.ai-nav__logo { display: inline-flex; color: var(--ai-text); }
.ai-nav__logo svg { height: 26px; width: auto; display: block; }
/* Logo failsafe: data-ai-logo is filled by ainable.js. While it is still empty (script blocked or
   not loaded yet) the approved lockup SVG is drawn from the CDN as a mask in the current text colour. */
[data-ai-logo]:empty { display: inline-flex; }
[data-ai-logo]:empty::before {
  content: ""; display: block; height: 26px; aspect-ratio: 392 / 88; background: currentColor;
  -webkit-mask: url("/assets/brand/logo-lockup-mono-black.svg") no-repeat center / contain;
          mask: url("/assets/brand/logo-lockup-mono-black.svg") no-repeat center / contain;
}
[data-ai-logo="tile"]:empty::before { aspect-ratio: 1; -webkit-mask-image: url("/assets/brand/logo-tile.svg"); mask-image: url("/assets/brand/logo-tile.svg"); }
[data-ai-logo="wordmark"]:empty::before { aspect-ratio: 277 / 72; -webkit-mask-image: url("/assets/brand/logo-wordmark.svg"); mask-image: url("/assets/brand/logo-wordmark.svg"); }
.ai-nav__links { display: flex; gap: 2px; align-items: center; }
.ai-nav__links a:not(.ai-btn) { font: 500 14px/1 var(--ai-font-body); color: var(--ai-text-2); text-decoration: none; padding: 9px 12px; border-radius: 8px; transition: color var(--ai-dur-fast), background var(--ai-dur-fast); }
.ai-nav__links a:not(.ai-btn):hover { color: var(--ai-text); background: var(--ai-surface-2); }
@media (max-width: 720px) { .ai-nav__links a.ai-hide-sm { display: none; } }

.ai-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: var(--ai-r-sm); border: 1px solid var(--ai-border); background: var(--ai-surface);
  color: var(--ai-text); cursor: pointer; padding: 0;
}
.ai-theme-toggle svg { width: 16px; height: 16px; }
.ai-theme-toggle .ai-i-sun { display: none; }
:root[data-theme="dark"] .ai-theme-toggle .ai-i-sun { display: block; }
:root[data-theme="dark"] .ai-theme-toggle .ai-i-moon { display: none; }

/* --------------------------------------------------------------- footer */
.ai-footer { border-top: 1px solid var(--ai-border); padding-block: var(--ai-s-8) var(--ai-s-6); }
.ai-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--ai-s-6); align-items: flex-start; }
.ai-footer__sign { font-family: var(--ai-font-display); font-style: italic; font-weight: 300; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.015em; margin: var(--ai-s-4) 0 0; }
.ai-footer__logo svg { height: 24px; width: auto; color: var(--ai-text); }
.ai-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--ai-s-3); margin-top: var(--ai-s-7); padding-top: var(--ai-s-5); border-top: 1px solid var(--ai-border); }
.ai-footer__legal { display: flex; flex-wrap: wrap; gap: var(--ai-s-4); }
.ai-footer__legal a { color: var(--ai-muted); font-size: 13px; text-decoration: none; }
.ai-footer__legal a:hover { color: var(--ai-text); }

/* ---------------------------------------------------------------- cards */
.ai-grid { display: grid; gap: var(--ai-s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ai-min, 260px)), 1fr)); }
.ai-card {
  background: var(--ai-surface); border: 1px solid var(--ai-border); border-radius: var(--ai-r-md);
  padding: var(--ai-s-5); display: flex; flex-direction: column; gap: var(--ai-s-3);
}
.ai-card--hover { transition: transform var(--ai-dur) var(--ai-ease), box-shadow var(--ai-dur) var(--ai-ease), border-color var(--ai-dur) var(--ai-ease); }
.ai-card--hover:hover { transform: translateY(-3px); box-shadow: var(--ai-shadow-md); border-color: var(--ai-border-strong); }
.ai-card--muted { background: var(--ai-surface-2); border-color: transparent; }
.ai-card__num { font-family: var(--ai-font-mono); font-size: 12px; color: var(--ai-muted); letter-spacing: .08em; }
.ai-chip { display: inline-flex; align-items: center; gap: 6px; font: 500 10px/1 var(--ai-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ai-text-2); border: 1px solid var(--ai-border-strong); border-radius: var(--ai-r-pill); padding: 5px 9px; align-self: flex-start; }

/* testimonial + person cards */
.ai-person { display: flex; align-items: center; gap: var(--ai-s-3); }
.ai-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--ai-surface-2); filter: grayscale(.15); }
.ai-avatar--lg { width: 72px; height: 72px; }
.ai-person__name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.ai-person__role { font-size: 13px; color: var(--ai-muted); }
.ai-testimonial .ai-quote::before { content: "\201C"; }
.ai-testimonial .ai-quote::after { content: "\201D"; }
.ai-gap { /* a visibly marked content gap: never ship to a public page */
  border: 1px dashed var(--ai-marker); color: var(--ai-marker); border-radius: var(--ai-r-xs);
  padding: 1px 6px; font: 500 12px/1.4 var(--ai-font-mono);
}

/* screenshot card (results, proof) */
.ai-shot { margin: 0; background: var(--ai-surface); border: 1px solid var(--ai-border); border-radius: var(--ai-r-md); overflow: hidden; }
.ai-shot__frame { position: relative; background: var(--ai-surface-2); }
.ai-shot__frame img { display: block; width: 100%; height: auto; }
.ai-shot figcaption { padding: var(--ai-s-3) var(--ai-s-4); font-size: 13px; color: var(--ai-text-2); border-top: 1px solid var(--ai-border); display: flex; justify-content: space-between; gap: var(--ai-s-3); }
/* guide annotations: position with --x / --y (percent of the image), size with --w / --h */
.ai-mark { position: absolute; left: var(--x, 50%); top: var(--y, 50%); pointer-events: none; }
.ai-mark--circle {
  width: var(--w, 18%); height: var(--h, 14%); transform: translate(-50%, -50%);
  border: 3px solid var(--ai-marker); border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .55);
}
.ai-mark--arrow { width: var(--w, 12%); transform: translate(-100%, -100%) rotate(var(--r, 0deg)); transform-origin: 100% 100%; color: var(--ai-marker); }
.ai-mark--arrow svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 2px rgba(255, 255, 255, .7)); }
.ai-mark--step {
  width: 28px; height: 28px; transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--ai-marker); color: #fff; display: grid; place-items: center;
  font: 600 13px/1 var(--ai-font-body); box-shadow: 0 0 0 3px rgba(255, 255, 255, .8);
}

/* ------------------------------------------------------------------ FAQ */
.ai-faq { border-top: 1px solid var(--ai-border); }
.ai-faq details { border-bottom: 1px solid var(--ai-border); }
.ai-faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--ai-s-4);
  padding: 22px 0; font: 500 17px/1.4 var(--ai-font-body); color: var(--ai-text);
}
.ai-faq summary::-webkit-details-marker { display: none; }
.ai-faq summary::after {
  content: ""; width: 12px; height: 12px; flex: none;
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform var(--ai-dur) var(--ai-ease);
}
.ai-faq details[open] summary::after { transform: rotate(45deg); }
.ai-faq .ai-faq__a { overflow: hidden; }
.ai-faq .ai-faq__a > div { padding: 0 0 24px; color: var(--ai-text-2); max-width: var(--ai-max-text); }

/* ---------------------------------------------------------------- forms */
.ai-field { display: flex; flex-direction: column; gap: 8px; }
.ai-field label, .ai-field .ai-field__label { font: 500 14px/1.3 var(--ai-font-body); color: var(--ai-text); }
.ai-input, .ai-select, .ai-textarea {
  font: 400 16px/1.4 var(--ai-font-body); color: var(--ai-text);
  background: var(--ai-surface); border: 1px solid var(--ai-border-strong); border-radius: var(--ai-r-sm);
  padding: 13px 14px; width: 100%; min-height: 50px;
  transition: border-color var(--ai-dur-fast), box-shadow var(--ai-dur-fast);
}
.ai-textarea { min-height: 120px; resize: vertical; }
.ai-input:focus, .ai-select:focus, .ai-textarea:focus { outline: none; border-color: var(--ai-text); box-shadow: 0 0 0 3px var(--ai-border); }
.ai-input[aria-invalid="true"] { border-color: var(--ai-error); }
.ai-hint { font-size: 13px; color: var(--ai-muted); }
.ai-err { font-size: 13px; color: var(--ai-error); min-height: 1em; }
.ai-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ai-text-2); cursor: pointer; }
.ai-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ai-ink); flex: none; }
:root[data-theme="dark"] .ai-check input { accent-color: var(--ai-bone); }

/* typeform-style: one question per screen */
.ai-steps { position: relative; min-height: min(70vh, 640px); display: flex; flex-direction: column; }
.ai-steps__bar { position: sticky; top: 0; height: 3px; background: var(--ai-border); border-radius: 2px; overflow: hidden; margin-bottom: var(--ai-s-7); }
.ai-steps__bar i { display: block; height: 100%; width: 0; background: var(--ai-text); transition: width var(--ai-dur-slow) var(--ai-ease); }
.ai-step { display: none; flex-direction: column; gap: var(--ai-s-5); max-width: 640px; }
.ai-step.is-active { display: flex; animation: ai-step-in .6s var(--ai-ease) both; }
.ai-step.is-back { animation-name: ai-step-back; }
.ai-step__n { font: 500 12px/1 var(--ai-font-mono); color: var(--ai-muted); letter-spacing: .1em; }
.ai-step__q { font-family: var(--ai-font-display); font-weight: 400; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.02em; margin: 0; }
.ai-step .ai-input { font-size: clamp(18px, 2vw, 22px); border-width: 0 0 2px; border-radius: 0; background: transparent; padding: 10px 0; box-shadow: none; }
.ai-step .ai-input:focus { box-shadow: none; }
.ai-options { display: grid; gap: var(--ai-s-2); }
.ai-option {
  display: flex; align-items: center; gap: var(--ai-s-3); text-align: left; width: 100%;
  padding: 14px 16px; background: var(--ai-surface); border: 1px solid var(--ai-border-strong); border-radius: var(--ai-r-sm);
  font: 400 16px/1.35 var(--ai-font-body); color: var(--ai-text); cursor: pointer;
  transition: border-color var(--ai-dur-fast), background var(--ai-dur-fast);
}
.ai-option:hover { border-color: var(--ai-text); }
.ai-option kbd { font: 500 11px/1 var(--ai-font-mono); border: 1px solid var(--ai-border-strong); border-radius: 4px; padding: 4px 6px; color: var(--ai-muted); }
.ai-option[aria-pressed="true"] { border-color: var(--ai-text); background: var(--ai-surface-2); }
.ai-steps__nav { display: flex; align-items: center; gap: var(--ai-s-3); margin-top: var(--ai-s-2); }
.ai-steps__nav .ai-hint kbd { font-family: var(--ai-font-mono); }
@keyframes ai-step-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ai-step-back { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- video */
.ai-video {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--ai-r-lg); overflow: hidden;
  background: var(--ai-surface-2) center / cover no-repeat; border: 1px solid var(--ai-border);
  cursor: pointer; isolation: isolate;
}
.ai-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ai-video__play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
  background: var(--ai-btn-bg); color: var(--ai-btn-fg); border: 0; display: grid; place-items: center; cursor: pointer;
  transition: transform var(--ai-dur) var(--ai-ease); box-shadow: var(--ai-shadow-lg);
}
.ai-video:hover .ai-video__play { transform: scale(1.06); }
.ai-video__play svg { width: 24px; height: 24px; margin-left: 3px; }
.ai-video__cap { position: absolute; left: 16px; bottom: 14px; z-index: 1; }
.ai-video[data-empty] { cursor: default; }
.ai-video[data-empty] .ai-video__play { opacity: .25; }

/* ------------------------------------------------------------- preloader */
/* The inline head snippet adds .ai-preloading on <html> before first paint.
   Content stays hidden until ainable.js removes the class. Failsafe: if the script never
   runs (blocked, slow, failed deploy), the content shows anyway after 4.5 s (CSS only).
   The reveal and logo failsafes below cover the rest of the page the same way. */
html.ai-preloading body > *:not(.ai-preloader) { visibility: hidden; animation: ai-failsafe 0s linear 4.5s forwards; }
@keyframes ai-failsafe { to { visibility: visible; } }
.ai-preloader {
  position: fixed; inset: 0; z-index: 1000; background: var(--ai-bg); color: var(--ai-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  transition: opacity .6s var(--ai-ease), visibility 0s linear .6s;
  cursor: pointer;
}
.ai-preloader svg { width: min(460px, 78vw); height: auto; display: block; }
.ai-preloader.is-done { opacity: 0; visibility: hidden; }
.ai-preloader__skip { font: 500 12px/1 var(--ai-font-body); color: var(--ai-muted); background: none; border: 0; padding: 8px 12px; opacity: 0; animation: ai-fade .4s ease 1.2s forwards; cursor: pointer; }
@keyframes ai-fade { to { opacity: 1; } }
/* the page fades up after the preloader */
html.ai-intro-done body > *:not(.ai-preloader) { animation: ai-page-in .7s var(--ai-ease) both; }
@keyframes ai-page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- reveal */
/* copied from the v4 site: 24 px rise, 0.8 s expo-out, 80 ms stagger steps */
.ai-js [data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--ai-dur-slow) var(--ai-ease), transform var(--ai-dur-slow) var(--ai-ease);
}
.ai-js [data-reveal].is-revealed { opacity: 1; transform: none; }
/* Failsafe: the head snippet adds .ai-js before paint, but only ainable.js adds .ai-ready.
   If ainable.js never runs, every [data-reveal] element fades in by itself after 4.5 s,
   so content is never stuck at opacity 0. Once .ai-ready is on <html> this rule stops applying
   and the normal scroll reveal takes over. */
html.ai-js:not(.ai-ready) [data-reveal]:not(.is-revealed) { animation: ai-reveal-failsafe .6s var(--ai-ease) 4.5s forwards; }
@keyframes ai-reveal-failsafe { to { opacity: 1; transform: none; } }
.ai-js [data-reveal="2"] { transition-delay: .08s; }
.ai-js [data-reveal="3"] { transition-delay: .16s; }
.ai-js [data-reveal="4"] { transition-delay: .24s; }
.ai-js [data-reveal="5"] { transition-delay: .32s; }
.ai-js [data-reveal="6"] { transition-delay: .40s; }

/* --------------------------------------------------- smooth scroll (Lenis) */
/* the exact Lenis tweaks from the v4 site */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
/* v4 made every iframe inert while Lenis was on, which kills booking embeds (cal.com) and videos.
   Only inert while a scroll is actually running, so the wheel is not swallowed by the iframe. */
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* --------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ai-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html.ai-intro-done body > *:not(.ai-preloader) { animation: none; }
  .ai-step.is-active { animation: none; }
  .ai-btn, .ai-card--hover, .ai-btn .ai-arrow { transition: none; }
  .ai-btn:hover, .ai-card--hover:hover { transform: none; }
  .ai-preloader { transition: opacity .2s linear, visibility 0s linear .2s; }
}
