/* ARIA — site styles. Logical properties throughout so RTL and LTR share one sheet.
   Two surfaces: ink (where the AI team works) and paper (the human side). */

/* Page changes crossfade; the header stays put. */
@view-transition { navigation: auto; }

@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/fonts/rubik-hebrew.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/fonts/rubik-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/fonts/rubik-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Logo wordmark font, subset to the letters of "ARIA". */
@font-face { font-family: "Wordmark Mono"; font-style: normal; font-weight: 700; font-display: block; src: url("/fonts/plex-mono-wordmark.woff2") format("woff2"); }

:root {
  --ink-950: #0B0C0E;
  --ink-900: #121315;
  --ink-850: #18191C;
  --ink-800: #212226;
  --paper: #F7F7F5;
  --paper-2: #EFEFEC;
  --teal: #22D3B0;
  --teal-hi: #5BE6C2;
  --teal-ink: #0A7259;
  --amber: #F0A63C;
  --amber-ink: #8F5300;

  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(76px, 10vw, 140px);
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --header-h: 64px;
}

/* Surface tokens. Components only use these, so they work on either surface. */
body, .theme-light {
  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --fg: #111214;
  --fg-2: #43464C;
  --fg-3: #5E6168;
  --line: rgba(17, 18, 20, .12);
  --line-2: rgba(17, 18, 20, .22);
  --accent: var(--teal-ink);
  --warn: var(--amber-ink);
  --focus: var(--teal-ink);
  color-scheme: light;
}
.theme-dark {
  --bg: var(--ink-950);
  --bg-2: var(--ink-900);
  --fg: #F4F4F5;
  --fg-2: #C2C5CA;
  --fg-3: #989CA3;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .17);
  --accent: var(--teal);
  --warn: var(--amber);
  --focus: var(--teal);
  background: var(--bg);
  color: var(--fg);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  background: var(--ink-950);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Rubik, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
[lang="he"] body, body:lang(he) { line-height: 1.7; }
h1, h2, h3, h4, p, figure, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
p { text-wrap: pretty; }
::selection { background: var(--teal); color: var(--ink-950); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
button, a, [role="tab"] { touch-action: manipulation; }
button, .btn, [role="tab"] { -webkit-user-select: none; user-select: none; }
bdi { unicode-bidi: isolate; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); position: relative; }
@supports (padding: max(0px)) {
  .wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
}

.icon { width: 1.15em; height: 1.15em; flex: none; }
[dir="rtl"] .icon-dir { transform: scaleX(-1); }

/* Brand mark */
/* The robot is as tall as the two-row wordmark and centred beside it; "AI" sits under the name's end like a sticker slapped on at an angle. */
.brand { display: inline-flex; flex-direction: row; direction: ltr; align-items: center; gap: 8px; color: var(--fg); }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.wordmark-name { font-family: "Wordmark Mono", var(--mono); font-size: 22px; font-weight: 700; letter-spacing: .32em; margin-inline-end: -.32em; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .brand:hover .wordmark-name { color: var(--teal); } }
.wordmark-sub { align-self: flex-end; margin-top: 3px; padding: 2px 5px 1px; border-radius: 3px; background: #A8F0D4; color: var(--ink-950); font-family: "Wordmark Mono", var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; transform: rotate(-8deg); transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .brand:hover .wordmark-sub { transform: rotate(6deg) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .wordmark-sub { transition: none; } .brand:hover .wordmark-sub { transform: rotate(-8deg); } }
.robot { width: 28px; height: 28px; flex: none; }
.brand > .robot { width: 34px; height: 34px; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--teal); color: var(--ink-950); padding: 10px 16px; font-weight: 600; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

/* ---- Type ---- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--accent); }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: currentColor; flex: none; }
.section-title { font-size: clamp(28px, 3.7vw, 46px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; max-width: 24em; text-wrap: balance; }
[lang="he"] .section-title, [lang="he"] h1 { letter-spacing: 0; }
.section-title .line { display: block; }
.section-title .line-2 { color: var(--accent); }
.lead { font-size: clamp(17px, 1.35vw, 18.5px); color: var(--fg-2); max-width: 38em; }
.lead + .lead { margin-top: 14px; }
.lead-strong { color: var(--fg); }
.note { font-size: 15.5px; color: var(--fg-3); max-width: 52em; }
.fineprint { margin-top: 14px; font-size: 14px; color: var(--fg-3); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border-radius: var(--r);
  font: inherit; font-size: 16.5px; font-weight: 600; line-height: 1.25; text-align: center;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:active { transform: scale(.97); }
.btn .icon { width: 20px; height: 20px; }
.btn-primary { background: var(--teal); color: var(--ink-950); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-sm { min-height: 40px; padding: 8px 15px; font-size: 14.5px; border-radius: 8px; gap: 8px; }
.btn-sm .icon { width: 17px; height: 17px; }
.btn-lg { min-height: 58px; padding: 14px 28px; font-size: 17.5px; }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--teal-hi); transform: translateY(-1px); }
  .btn-primary:hover:active { transform: scale(.97); }
  .btn-ghost:hover { border-color: var(--fg-3); }
}
.btn-text {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 10px; margin-inline-start: -10px;
  background: none; border: 0; border-radius: var(--r-sm); font: inherit; font-size: 14.5px; font-weight: 600; color: var(--fg); cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.btn-text:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .btn-text:hover { background: rgba(255, 255, 255, .08); } }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.text-link { transition: transform 160ms var(--ease-out); }
.text-link:active { transform: scale(.97); }
.text-link .icon { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { text-decoration-color: currentColor; }
  .text-link:hover .icon { transform: translateX(3px); }
  [dir="rtl"] .text-link:hover .icon { transform: scaleX(-1) translateX(3px); }
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .cta-row .btn { flex: 1 1 100%; } }

/* ---- Header ---- */
.site-header { view-transition-name: site-header; position: sticky; top: 0; z-index: 40; background: var(--ink-950); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 8px 22px; min-height: var(--header-h); flex-wrap: wrap; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.site-nav a { font-size: 14.5px; font-weight: 500; padding: 8px 11px; color: var(--fg-2); border-radius: var(--r-sm); transition: color 160ms ease; }
.site-nav a[aria-current="page"] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.site-nav .lang-switch { margin-inline-start: 8px; border: 1px solid var(--line-2); padding: 6px 12px; font-size: 13.5px; }
@media (hover: hover) and (pointer: fine) { .site-nav a:hover { color: var(--fg); } }
.menu-toggle { display: none; }
.menu-bars { position: relative; width: 16px; height: 10px; border-block: 1.5px solid currentColor; transition: border-color 120ms ease; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; inset-inline: 0; top: calc(50% - .75px); height: 1.5px; background: currentColor; opacity: 0; transition: transform 200ms var(--ease-out), opacity 120ms ease; }
.menu-toggle[aria-expanded="true"] .menu-bars { border-color: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { opacity: 1; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { opacity: 1; transform: rotate(-45deg); }

@media (max-width: 1040px) {
  .header-row { gap: 8px 10px; background: var(--ink-950); } /* Keeps the row above the menu's page dimmer, so it matches the menu. */
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px;
    background: transparent; color: var(--fg); border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 14px; line-height: 1.25; cursor: pointer;
    transition: transform 160ms var(--ease-out), border-color 160ms ease;
    order: 2;
  }
  .js .menu-toggle:active { transform: scale(.97); }
  .header-cta { margin-inline-start: auto; }
  /* The toggle precedes the nav in the DOM so Tab moves from it into the open menu; order keeps it after the CTA on screen. */
  .js .header-cta { order: 1; }
  /* The menu overlays the page, so opening it never moves what you were reading or the header row.
     The sticky header can't scroll, so a menu taller than the screen scrolls inside itself. */
  .js .site-nav { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; padding: 4px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px)); margin: 0; background: var(--ink-950); border-bottom: 1px solid var(--line); max-height: calc(100vh - var(--header-h) - 8px); max-height: calc(100dvh - var(--header-h) - 8px); overflow-y: auto; overscroll-behavior: contain; }
  /* Dims the page while the menu is open. A tap here closes the menu (site.js) instead of hitting a link underneath. */
  .site-header:has(.site-nav.open)::after { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(0, 0, 0, .55); transition: opacity 200ms ease; }
  @starting-style { .site-header:has(.site-nav.open)::after { opacity: 0; } }
  .js .site-nav a:focus-visible { outline-offset: -2px; }
  .js .site-nav.open { display: flex; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
  @starting-style { .js .site-nav.open { opacity: 0; transform: translateY(-6px); } }
  .js .site-nav a { padding: 13px 2px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
  .js .site-nav a[aria-current="page"] { box-shadow: none; color: var(--teal); }
  .js .site-nav .lang-switch { margin: 12px 0 0; align-self: flex-start; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px 14px; }
  html:not(.js) .site-nav { flex-wrap: wrap; }
  @media (hover: hover) and (pointer: fine) { .js .menu-toggle:hover { border-color: var(--fg-3); } }
}
/* Below this width the full CTA label pushes Menu to a second row, so the CTA keeps only its icon.
   The sticky bar at the bottom carries the full label once the hero scrolls away. */
@media (max-width: 560px) {
  .header-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .header-cta { width: 40px; padding-inline: 0; }
  .header-cta .icon { width: 20px; height: 20px; }
  @media (pointer: coarse) { .header-cta { width: 44px; } }
}

/* ---- Sections ---- */
.section { padding-block: var(--section) 0; }
.section-tight { padding-block: clamp(56px, 7vw, 96px) 0; }
.tint { background: var(--bg-2); padding-bottom: var(--section); margin-top: var(--section); }
.theme-dark.section { padding-bottom: var(--section); margin-top: var(--section); }
.tint + .theme-dark.section, .theme-dark.section + .tint, .hero + .tint { margin-top: 0; }

/* Scroll reveal. The first rule keeps blocks hidden until site.js takes over; if it never loads, .js-fallback shows them. */
.js:not(.js-fallback):not(.reveal-ready) [data-reveal],
.reveal-ready [data-reveal]:not([data-shown]) { opacity: 0; }
.reveal-ready [data-reveal]:not([data-shown]):not([data-reveal="clip"]) { transform: translateY(18px); }
.reveal-ready [data-reveal][data-shown] { transition: opacity 640ms var(--ease-out) var(--d, 0ms), transform 640ms var(--ease-out) var(--d, 0ms); }
.reveal-ready [data-reveal="clip"]:not([data-shown]) { opacity: 1; clip-path: inset(0 0 100% 0); }
.reveal-ready [data-reveal="clip"][data-shown] { transition: clip-path 900ms var(--ease-in-out) var(--d, 0ms); }
.reveal-ready [data-reveal="clip"]:not([data-shown]) img { transform: scale(1.08); }
.reveal-ready [data-reveal="clip"][data-shown] img { transition: transform 1200ms var(--ease-out); }
@media print { [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; } }

.num { font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; color: var(--accent); }

/* ---- Hero ---- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  padding-block: clamp(32px, 4vw, 56px) clamp(64px, 8vw, 112px);
  /* The page's one glow, behind the demo window. */
  background-image: radial-gradient(75% 55% at 50% 62%, rgba(34, 211, 176, .09), transparent 72%);
}

/* The hero enters on load: CSS only, so it runs without JS and stays smooth while the page is busy. */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes settle { from { opacity: 0; transform: translateY(24px) scale(.985); } }
.hero .eyebrow, .hero h1 .line, .hero .inner-title, .hero .hero-lead, .hero .hero-mor, .hero .cta-row, .hero .fineprint { animation: rise 640ms var(--ease-out) backwards; }
.hero h1 .line, .hero .inner-title { animation-delay: 70ms; }
.hero h1 .line-2 { animation-delay: 140ms; }
.hero .hero-lead { animation-delay: 210ms; }
.hero .hero-mor { animation-delay: 280ms; }
.hero .cta-row { animation-delay: 350ms; }
.hero .fineprint { animation-delay: 420ms; }
.hero-demo { animation: settle 800ms var(--ease-out) 180ms backwards; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 48px); align-items: start; }
/* Copy sits in two columns above the demo, so the app window is the page's main visual. */
@media (min-width: 1000px) {
  .hero-copy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 5vw, 72px); align-items: end; }
  .hero .hero-side .hero-lead { margin-top: 0; }
}
.hero h1 { margin-top: 18px; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
[lang="en"] .hero h1 { font-size: clamp(30px, 3.2vw, 42px); }
.hero h1 .line { display: block; }
.hero h1 .line-2 { color: var(--teal); }
.hero-lead { margin-top: 22px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--fg); max-width: 34em; }
.hero-mor { display: flex; width: fit-content; align-items: center; gap: 14px; margin-top: 24px; padding: 12px 14px; max-width: 36em; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255, 255, 255, .04); }
.hero-mor img { width: 52px; height: 52px; border-radius: 50%; flex: none; background: #d9d9d9; }
.hero-mor p { font-size: 15.5px; line-height: 1.5; color: var(--fg); }
.hero .cta-row { margin-top: 26px; }
.hero-inner { padding-block: clamp(48px, 7vw, 96px); }
.hero-inner .inner-title { margin-top: 16px; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; max-width: 20em; text-wrap: balance; }
[lang="he"] .inner-title { letter-spacing: 0; }
.hero-inner .hero-lead { color: var(--fg-2); }
/* Used by the no-JS response page from functions/api/lead.js */
.hero-sub { margin-bottom: 24px; font-size: clamp(18px, 1.5vw, 20px); color: var(--fg-2); }
.hero-inner .cta-row { margin-top: 28px; }
/* Phones: a tighter hero keeps the main CTA on the first screen even with the browser bars showing. */
@media (max-width: 560px) {
  .hero:not(.hero-inner) { padding-top: 24px; }
  .hero h1 { margin-top: 12px; }
  .hero-mor { gap: 10px; margin-top: 16px; padding-block: 6px; padding-inline: 6px 16px; border-radius: 999px; }
  .hero-mor img { width: 40px; height: 40px; }
  .hero-mor p { font-size: 14.5px; }
  .hero-lead { margin-top: 16px; font-size: 17px; line-height: 1.55; }
  .hero .cta-row { margin-top: 18px; }
}

/* ---- Demo ---- */
.hero-demo { scroll-margin-top: calc(var(--header-h) + 12px); }
/* An app window: agent list on the start side, conversation beside it. Neutral grays set it apart from the navy page. */
.demo {
  --ink-950: #141517; --ink-900: #1A1B1E; --ink-850: #212226; --ink-800: #2D2E33;
  display: grid; grid-template-columns: 272px minmax(0, 1fr); grid-template-rows: 1fr auto; grid-template-areas: "side stage" "foot stage";
  border: 1px solid var(--line-2); border-radius: 18px;
  background: var(--ink-900);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .95);
  overflow: hidden;
}
.demo-side { grid-area: side; display: flex; flex-direction: column; min-width: 0; padding: 18px 12px 12px; background: var(--ink-950); border-inline-end: 1px solid var(--line); }
.demo-head { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-bottom: 16px; text-align: center; }
.avatar-mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 211, 176, .1); border: 1px solid rgba(34, 211, 176, .35); flex: none; }
.avatar-mark .robot { width: 32px; height: 32px; }
.demo-id { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.demo-id strong { font-size: 15px; font-weight: 600; }
.demo-id span { font-size: 13px; color: var(--fg-3); }
.demo-tag { font-size: 12px; font-weight: 600; color: var(--amber); border: 1px solid rgba(240, 166, 60, .4); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.demo-group { padding: 0 8px 8px; font-size: 12.5px; font-weight: 600; color: var(--fg-3); }

.agent-avatar { display: block; width: 28px; height: 28px; flex: none; }
.blob-eyes { transform-box: fill-box; transform-origin: center; }
@keyframes hop { 40% { transform: translateY(-3px) scale(1.06); } }
@keyframes blink { 45%, 55% { transform: scaleY(.12); } }

.demo-tabs { --tabs-gap: 4px; --tabs-pad: 0px; --dir: 1; position: relative; isolation: isolate; display: grid; grid-auto-rows: 1fr; gap: var(--tabs-gap); }
[dir="rtl"] .demo-tabs { --dir: -1; }
/* One highlight slides between the equal-size agents. --tab is set by site.js. */
.demo-tabs::before {
  content: ""; position: absolute; z-index: -1; box-sizing: border-box;
  top: 0; inset-inline: 0;
  height: calc((100% - (var(--n, 3) - 1) * var(--tabs-gap)) / var(--n, 3));
  background: var(--ink-800); border-radius: 12px;
  transform: translateY(calc((100% + var(--tabs-gap)) * var(--tab, 0)));
  transition: transform 260ms var(--ease-in-out);
}
.demo-tab {
  display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 58px; padding: 8px 10px;
  background: transparent; color: var(--fg-2); border: 0; border-radius: 12px;
  font: inherit; text-align: start; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.demo-tab:active { transform: scale(.97); }
.tab-avatar { width: 34px; height: 34px; transition: transform 200ms var(--ease-out); }
.demo-tab[aria-selected="true"] .tab-avatar { animation: hop 380ms var(--ease-out); }
.demo-tab[aria-selected="true"] .blob-eyes { animation: blink 340ms ease 180ms; }
.tab-text { display: flex; flex-direction: column; min-width: 0; }
.demo-tab .tab-name { font-size: 14.5px; white-space: nowrap; font-weight: 600; line-height: 1.35; }
.demo-tab .tab-kind { max-width: 100%; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg-3); line-height: 1.35; }
[lang="en"] .demo-tab .tab-name { font-size: 13.5px; }
.demo-tab[aria-selected="true"] { color: var(--fg); }
.demo-tab[aria-selected="true"] .tab-kind { color: var(--fg-2); }
@media (hover: hover) and (pointer: fine) {
  .demo-tab[aria-selected="false"]:hover { color: var(--fg); background: rgba(255, 255, 255, .05); }
  .demo-tab:hover .tab-avatar { transform: scale(1.07); }
}

/* All panels share one grid cell, so switching never changes the demo's height. */
.demo-stage { grid-area: stage; display: grid; min-width: 0; }
.demo-panel { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 14px; padding: 12px 20px 14px; min-width: 0; scroll-margin-top: 16px; }
.chat-top { display: flex; justify-content: center; }
.chat-title { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 8px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--ink-850); font-size: 14px; font-weight: 600; }
[dir="rtl"] .chat-title { padding: 5px 8px 5px 14px; }
.chat-title .agent-avatar { width: 24px; height: 24px; }
.demo-panel .chat { flex: 1; }
.demo-composer { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--ink-850); color: var(--fg-3); }
.composer-hint { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.composer-add, .composer-mic { display: grid; place-items: center; width: 32px; height: 32px; flex: none; }
.composer-voice { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--fg); color: var(--ink-950); }
.demo-composer .icon { width: 18px; height: 18px; }

/* Narrow screens: the agent list becomes a row above the conversation. */
@media (max-width: 760px) {
  .demo { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "side" "stage" "foot"; }
  .demo-side { padding: 10px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .demo-head { flex-direction: row; gap: 10px; padding: 0 2px 10px; text-align: start; }
  .avatar-mark { width: 34px; height: 34px; }
  .avatar-mark .robot { width: 22px; height: 22px; }
  .demo-tag { margin-inline-start: auto; }
  .demo-group { display: none; }
  .demo-tabs { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .demo-tabs::before {
    inset-block: 0; inset-inline: 0 auto; height: auto;
    width: calc((100% - (var(--n, 3) - 1) * var(--tabs-gap)) / var(--n, 3));
    transform: translateX(calc((100% + var(--tabs-gap)) * var(--tab, 0) * var(--dir)));
  }
  /* Top-aligned, so the avatars stay in line when one role wraps to two lines and another doesn't. */
  .demo-tab { flex-direction: column; justify-content: flex-start; gap: 4px; min-height: 66px; padding: 8px 4px; text-align: center; }
  .tab-text { align-items: center; max-width: 100%; }
  .demo-tab .tab-name { white-space: normal; font-size: 13.5px; }
  .tab-sep { display: none; }
  .tab-agent, .tab-role { display: block; }
  .tab-role { font-size: 12px; font-weight: 500; color: var(--fg-3); text-wrap: balance; }
  /* The selected tab directly above already names the agent. */
  .chat-top { display: none; }
  .demo-tab[aria-selected="true"] .tab-role { color: var(--fg-2); }
  .demo-tab .tab-kind { display: none; }
  .tab-avatar { width: 28px; height: 28px; }
  .demo-panel { padding: 10px 12px 12px; scroll-margin-top: 140px; }
}
@media (max-width: 480px) { .demo-id span { display: none; } }
.demo-panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.js .demo-panel { transition: opacity 220ms ease, visibility 0s linear 0s; }
.js .demo-panel:not([data-active]) { opacity: 0; visibility: hidden; transition: opacity 160ms ease, visibility 0s linear 160ms; }
/* On phones the demo is taller than the screen, so a height change on tab switch happens out of view.
   There the card fits the active scenario instead of keeping the tallest one's empty space. */
@media (max-width: 760px) {
  .js .demo-stage { position: relative; }
  .js .demo-panel:not([data-active]) { position: absolute; inset: 0 0 auto; }
}
html:not(.js) .demo-stage { display: block; }
html:not(.js) .demo-panel + .demo-panel { border-top: 1px solid var(--line); }
html:not(.js) .demo-tabs, html:not(.js) .demo-foot .btn-text, html:not(.js) [data-approve] { display: none; }

.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { min-width: 0; }
.msg p { font-size: 15px; line-height: 1.55; }
.msg-result p + p { margin-top: 8px; }
.msg-who { display: flex; align-items: center; gap: 7px; font-size: 12.5px !important; font-weight: 600; color: var(--fg-3); margin-bottom: 4px; }
.msg-who-you { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mini-mark { width: 18px; height: 18px; flex: none; }
.msg-intro { align-self: flex-start; max-width: min(100%, 620px); }
.intro-bubble { width: fit-content; padding: 8px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--ink-850); }
.msg-event { align-self: center; display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 7px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 13px; color: var(--fg-2); }
.msg-event .icon { width: 15px; height: 15px; color: var(--fg-3); }
.event-tag { font-size: 12px; font-weight: 600; color: var(--teal); }
.msg-user { align-self: flex-end; max-width: min(88%, 460px); padding: 11px 15px; border-radius: 18px; background: #3B3C42; }
.msg-team { align-self: flex-start; width: min(100%, 620px); padding: 12px 15px; border-radius: 18px; background: var(--ink-850); border: 1px solid var(--line); }

.tasks { display: flex; flex-direction: column; }
.msg-work { padding-block: 4px; }
.task { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding-block: 9px; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; padding-bottom: 2px; }
.task-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--ink-800); color: var(--fg-2); }
.task-icon .icon { width: 17px; height: 17px; }
.task-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.task-agent { font-size: 13.5px; font-weight: 600; color: var(--fg); }
.task-tool { margin-inline-start: 4px; padding: 0 6px; border-radius: 4px; font-size: 11.5px; font-weight: 500; color: var(--fg-3); border: 1px solid var(--line-2); white-space: nowrap; }
.task-status { display: grid; font-size: 13.5px; color: var(--fg-2); }
.task-status > span { grid-area: 1 / 1; align-self: center; transition: opacity 200ms ease; }
.task[data-state="work"] .s-done, .task[data-state="done"] .s-work { opacity: 0; visibility: hidden; }
.task-state { width: 20px; height: 20px; display: grid; place-items: center; }
.task-state > * { grid-area: 1 / 1; }
.spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: var(--teal); animation: spin 700ms linear infinite; }
.tick { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--teal); color: var(--ink-950); stroke-width: 2.6; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.task[data-state="done"] .spinner { display: none; }
.task[data-state="work"] .tick { opacity: 0; transform: scale(.6); }
@keyframes spin { to { transform: rotate(360deg); } }

.files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.files li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--ink-800); border: 1px solid var(--line); font-size: 13px; color: var(--fg); }
.files .icon { width: 15px; height: 15px; color: var(--teal); }
.approval { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.approval-text { display: grid; font-size: 13.5px !important; font-weight: 500; }
.approval-text > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; transition: opacity 200ms ease; }
.a-wait { color: var(--amber); }
.a-done { color: var(--teal); }
.a-done .icon { width: 16px; height: 16px; }
.approval[data-state="waiting"] .a-done, .approval[data-state="approved"] .a-wait { opacity: 0; visibility: hidden; }
.approval[data-state="approved"] .btn-approve { opacity: 0; visibility: hidden; transition: opacity 160ms ease, visibility 0s linear 160ms; }
/* Outgoing messages, each approved on its own. */
.out-msgs { margin-top: 8px; border-top: 1px solid var(--line); }
.approval.out-msg {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text btn" "state btn";
  gap: 2px 12px; margin-top: 0; padding-block: 9px; border-top: 0; border-bottom: 1px solid var(--line);
}
.out-msg-text { grid-area: text; font-size: 14px !important; line-height: 1.45 !important; color: var(--fg-2); }
.out-msg-text strong { font-weight: 600; color: var(--fg); }
.out-msg .approval-text { grid-area: state; margin-top: 0; font-size: 12.5px !important; }
.out-msg .btn-approve { grid-area: btn; }
.demo-hint { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 13px !important; color: var(--fg-3); }
.demo-hint .icon { width: 15px; height: 15px; color: var(--teal); flex: none; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.btn-approve { background: transparent; color: var(--fg); border-color: rgba(34, 211, 176, .5); min-height: 36px; font-size: 13.5px; padding-inline: 13px; }
@media (hover: hover) and (pointer: fine) { .btn-approve:hover { background: rgba(34, 211, 176, .1); } }

.demo-foot { grid-area: foot; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 12px 20px 16px; background: var(--ink-950); border-inline-end: 1px solid var(--line); }
.demo-foot .btn-text { margin-inline-start: -10px; }
.demo-foot p { font-size: 12.5px; line-height: 1.5; color: var(--fg-3); }
@media (max-width: 760px) {
  .demo-foot { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 8px 14px 10px; border-inline-end: 0; border-top: 1px solid var(--line); }
  .demo-foot p { font-size: 13px; }
}

/* Scripted playback: items wait unrevealed, then enter. Only while the script is in charge. */
.js .demo.is-playing [data-at]:not([data-shown]) { opacity: 0; transform: translateY(6px); visibility: hidden; }
.js .demo.is-playing [data-at][data-shown] { transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); }
.js:not(.js-fallback) .demo:not(.is-ready) [data-at] { opacity: 0; }

/* ---- Examples ---- */
.fit { margin-top: 22px; }
.fit-list { margin-top: 14px; font-size: 15.5px; font-weight: 600; color: var(--fg); max-width: 46em; }
.roles-head { margin-top: clamp(40px, 5vw, 64px); }
.roles-title { font-size: clamp(21px, 2.2vw, 27px); font-weight: 600; line-height: 1.3; text-wrap: balance; }
.roles-head p { margin-top: 10px; font-size: 16.5px; color: var(--fg-2); max-width: 40em; }
.role-grid { display: grid; gap: 0 clamp(28px, 4vw, 56px); margin-top: clamp(20px, 3vw, 32px); }
@media (min-width: 760px) { .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.role-grid li { display: flex; flex-direction: column; align-items: flex-start; padding-block: 24px; border-top: 1px solid var(--line-2); }
.role-grid h4 { font-size: clamp(20px, 1.9vw, 24px); font-weight: 600; line-height: 1.3; text-wrap: balance; }
.role-grid p { margin-top: 8px; font-size: 16.5px; color: var(--fg-2); max-width: 32em; }
.role-link { margin-top: 12px; font-size: 15px; }
.examples-note { max-width: none; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line-2); }

/* ---- Control ---- */
.control-grid { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 960px) { .control-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; } }
.control .section-title + .lead { margin-top: 22px; }
.how-modes { color: var(--fg); }
.how-sub { margin-top: clamp(28px, 3vw, 40px); font-size: clamp(19px, 1.7vw, 22px); font-weight: 600; line-height: 1.3; text-wrap: balance; }
.how-sub + .lead { margin-top: 10px; }
.perm-panel { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--ink-900); overflow: hidden; }
.perm-title { padding: 13px 18px; font-size: 13.5px; font-weight: 600; color: var(--fg-3); border-bottom: 1px solid var(--line); }
.perm-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.perm-list li:last-child { border-bottom: 0; }
.perm-task { font-size: 16px; }
.mode { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.mode .icon { width: 15px; height: 15px; }
.mode-auto { color: var(--teal); background: rgba(34, 211, 176, .1); }
.mode-approval { color: var(--amber); background: rgba(240, 166, 60, .1); }
/* Phones: task and status side by side, so the statuses read as one column instead of pills jumping between rows. */
@media (max-width: 560px) {
  .perm-title { padding-inline: 14px; }
  .perm-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; }
  .perm-task { font-size: 15px; line-height: 1.4; }
  .mode { padding-inline: 10px; font-size: 13px; }
}
@media (max-width: 340px) { .perm-list li { grid-template-columns: minmax(0, 1fr); gap: 6px; justify-items: start; } }

/* ---- About ---- */
.about-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); } }
.portrait { max-width: 420px; overflow: hidden; border-radius: var(--r-lg); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); background: #dcdad6; }
@media (max-width: 899px) { .portrait { max-width: 340px; } }
.about-copy .section-title { margin-bottom: 22px; }
.signature { display: flex; flex-direction: column; margin-top: 24px; padding-inline-start: 14px; border-inline-start: 2px solid var(--teal); line-height: 1.4; }
.signature strong { font-size: 17px; }
.signature span { font-size: 14.5px; color: var(--fg-3); }

/* ---- Process ---- */
.steps { display: grid; gap: 0 clamp(20px, 3vw, 36px); margin-top: clamp(32px, 4vw, 52px); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { position: relative; padding-block: 22px; border-top: 2px solid var(--line-2); }
/* A line draws across each step in order, so the sequence reads at a glance. */
.steps li::before { content: ""; position: absolute; top: -2px; inset-inline: 0; height: 2px; background: var(--accent); transform-origin: 0 0; }
[dir="rtl"] .steps li::before { transform-origin: 100% 0; }
.reveal-ready .steps [data-reveal="step"]:not([data-shown])::before { transform: scaleX(0); }
.reveal-ready .steps [data-reveal="step"][data-shown]::before { transition: transform 800ms var(--ease-in-out) var(--d, 0ms); }
.steps h3 { margin-top: 10px; font-size: 19px; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.steps p { margin-top: 8px; font-size: 15.5px; color: var(--fg-2); }
.process-more { margin-top: 18px; }

/* ---- FAQ ---- */
.faq-grid { display: grid; gap: clamp(24px, 4vw, 64px); }
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); align-items: start; } }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 20px; border-radius: 4px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { transition: opacity 160ms ease, color 160ms ease; }
.faq summary:active h3 { opacity: .65; }
.faq summary h3 { font-size: clamp(17px, 1.5vw, 19px); font-weight: 600; line-height: 1.4; text-wrap: balance; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover h3 { color: var(--accent); } }
.plus { position: relative; width: 14px; height: 14px; flex: none; color: var(--accent); transition: transform 200ms var(--ease-out); }
.plus::before, .plus::after { content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 14px; height: 2px; background: currentColor; border-radius: 1px; }
.plus::after { transform: rotate(90deg); }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--fg-2); font-size: 16.5px; max-width: 44em; }
/* Answers open smoothly where supported; older browsers simply open them at once. */
@supports selector(::details-content) and (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; opacity: 0; overflow: clip; transition: block-size 240ms var(--ease-out), opacity 200ms ease, content-visibility 240ms allow-discrete; }
  .faq details[open]::details-content { block-size: auto; opacity: 1; }
}

/* ---- Contact ---- */
.contact { margin-top: var(--section); }
.contact-grid { display: grid; gap: clamp(36px, 5vw, 72px); padding-block: clamp(64px, 8vw, 112px); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.contact-copy .section-title { margin-bottom: 20px; }
.contact-copy .cta-row { margin-top: 28px; }
.form-card { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--ink-900); padding: clamp(20px, 2.5vw, 30px); }
.form-title { font-size: 19px; font-weight: 600; margin-bottom: 18px; text-wrap: balance; }
.lead-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--fg-2); }
.optional { font-weight: 400; color: var(--fg-3); }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--ink-950); color: var(--fg);
  padding: 12px 14px; font: inherit; font-size: 16px; line-height: 1.5;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { resize: vertical; min-height: 96px; }
/* The transparent outline becomes visible in forced-colors mode, where the border color and shadow don't show. */
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid transparent; outline-offset: 2px; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(34, 211, 176, .2); }
.field input[aria-invalid="true"] { border-color: var(--amber); }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
[dir="rtl"] .field input[dir="ltr"]::placeholder { text-align: right; }
::placeholder { color: #85888F; opacity: 1; }
.field-error, .form-error { font-size: 14px; color: var(--amber); }
/* Stays in the accessibility tree while empty, so its aria-live announces when an error is written. */
.field-error:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-error { border-inline-start: 2px solid var(--amber); padding-inline-start: 12px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lead-form .fineprint { margin-top: 0; font-size: 13.5px; }
.form-success { padding: 28px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.form-success:focus { outline: none; }
.success-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: var(--ink-950); }
.success-mark .icon { width: 22px; height: 22px; stroke-width: 2.4; }
.success-title { margin-top: 10px; font-size: 20px; font-weight: 600; }
.form-success p:not(.success-title) { color: var(--fg-2); }

/* ---- Work page ---- */
.stages li { display: grid; gap: 10px clamp(20px, 4vw, 56px); padding-block: clamp(24px, 3vw, 34px); border-top: 1px solid var(--line-2); }
.stages li:last-child { border-bottom: 1px solid var(--line-2); }
@media (min-width: 900px) { .stages li { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } }
.stage-head { display: flex; align-items: baseline; gap: 14px; }
.stage-head h2 { font-size: clamp(21px, 2.1vw, 26px); font-weight: 600; line-height: 1.25; text-wrap: balance; }
.stage-body { font-size: 16.5px; color: var(--fg-2); }
.stage-output { display: flex; flex-direction: column; gap: 4px; }
.stage-output span { font-size: 13px; font-weight: 600; color: var(--fg-3); }
.stage-output strong { font-size: 16px; font-weight: 600; color: var(--accent); line-height: 1.45; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-row { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; padding-block: 40px 24px; }
.footer-desc { margin-top: 10px; font-size: 14.5px; color: var(--fg-3); max-width: 30em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 14.5px; }
.footer-nav a { color: var(--fg-2); padding-block: 6px; }
@media (hover: hover) and (pointer: fine) { .footer-nav a:hover { color: var(--fg); } }
.footer-base { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-block: 18px 30px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-3); }
.footer-tagline { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--teal); }
@media (max-width: 760px) { .footer-tagline { font-size: 12px; letter-spacing: .14em; } }
[lang="he"] .footer-tagline { font-family: inherit; font-size: 13px; letter-spacing: 0; }

/* ---- Mobile sticky CTA ---- */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .js .sticky-cta {
    display: block; position: fixed; inset-inline: 0; bottom: 0; z-index: 35;
    padding: 10px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
    background: var(--ink-950);
    border-top: 1px solid var(--line);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 280ms var(--ease-drawer), visibility 0s linear 280ms;
  }
  .js .sticky-cta[data-visible] { transform: none; visibility: visible; transition: transform 320ms var(--ease-drawer), visibility 0s; }
  .js .sticky-cta .btn { min-height: 50px; }
  /* Keeps keyboard focus clear of the bar. */
  html.js { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  /* Landscape phones: the header already carries the CTA, and a second bar would cover a third of the screen. */
  @media (max-height: 480px) { .js .sticky-cta { display: none; } }
}

/* ---- Touch: 44px minimum tap targets ---- */
@media (pointer: coarse) {
  .btn-sm, .btn-approve, .btn-text, .js .menu-toggle { min-height: 44px; }
  .brand { padding-block: 6px; } /* 44px tap target */
  .role-link, .process-more { min-height: 44px; }
  .role-link { margin-top: 2px; }
  .process-more { margin-top: 8px; }
  /* Padding widens short links like "FAQ" to 44px; the negative margin keeps the visible spacing even. */
  .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 9px; margin-inline: -9px; }
  .footer-nav { gap: 0 22px; }
  .field textarea { resize: none; }
  .site-nav a:active, .footer-nav a:active { color: var(--fg); }
}

/* ---- Reduced motion: keep fades that explain state, drop movement. ---- */
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  .btn:active, .btn-text:active, .demo-tab:active, .text-link:active, .js .menu-toggle:active, .btn-primary:hover, .btn-primary:hover:active { transform: none; }
  .hero .eyebrow, .hero h1 .line, .hero .inner-title, .hero .hero-lead, .hero .hero-mor, .hero .cta-row, .hero .fineprint, .hero-demo { animation: fade 200ms ease backwards; animation-delay: 0ms; }
  .reveal-ready [data-reveal]:not([data-shown]):not([data-reveal="clip"]) { transform: none; }
  .reveal-ready [data-reveal][data-shown] { transition: opacity 200ms ease; }
  .reveal-ready [data-reveal="clip"]:not([data-shown]) { opacity: 0; clip-path: none; }
  .reveal-ready [data-reveal="clip"][data-shown] { transition: opacity 200ms ease; }
  .reveal-ready [data-reveal="clip"]:not([data-shown]) img { transform: none; }
  .reveal-ready [data-reveal="clip"][data-shown] img { transition: none; }
  .reveal-ready .steps [data-reveal="step"]:not([data-shown])::before { transform: none; }
  .reveal-ready .steps [data-reveal="step"][data-shown]::before { transition: none; }
  .demo-tabs::before { transition: none; }
  .demo-tab[aria-selected="true"] .tab-avatar, .demo-tab[aria-selected="true"] .blob-eyes { animation: none; }
  .tab-avatar { transition: none; }
  .demo-tab:hover .tab-avatar { transform: none; }
  .faq details::details-content { transition: opacity 150ms ease, content-visibility 150ms allow-discrete; }
  .menu-bars::before, .menu-bars::after { transition: opacity 120ms ease; }
  .js .site-nav.open { transition: opacity 150ms ease; }
  @starting-style { .js .site-nav.open { transform: none; } }
  .js .demo.is-playing [data-at]:not([data-shown]) { transform: none; }
  .js .demo.is-playing [data-at][data-shown] { transition: opacity 150ms ease; }
  .spinner { animation: none; border-color: rgba(255, 255, 255, .25); border-top-color: var(--teal); }
  .task[data-state="work"] .tick { transform: none; }
  .js .sticky-cta, .js .sticky-cta[data-visible] { transition: visibility 0s; }
  .text-link .icon, .plus { transition: none; }
}
