/* DARBEEN design system v1 — tokens, base, components.
   Motion follows Emil Kowalski's rules (site-darbeen/.claude/skills/animate):
   transform/opacity only, strong ease-out, UI < 300ms, modals/drawers are the exception,
   hover motion gated to fine pointers, reduced motion = gentler, not zero. */

:root {
  /* Color — culturally neutral, ink on paper, one accent (D-024) */
  --ink: #0c0d10;
  --ink-2: #2a2d34;
  --ink-3: #5b606b;
  --ink-4: #8a8f99;
  --line: #e4e4e1;
  --line-2: #d3d3cf;
  --paper: #f7f7f4;
  --paper-2: #efefeb;
  --white: #ffffff;
  --accent: #2b4fe0;
  --accent-ink: #1d3bb3;
  --accent-soft: #e8ecfd;
  --creative: #b8406e;
  --ai: #2b4fe0;
  --digital: #0c7f63;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --ok: #0c7f63;
  --ok-soft: #e6f4ef;
  --night: #0c0d10;
  --night-2: #16181d;
  --night-line: #2a2d34;
  --night-ink: #f2f2ee;
  --night-ink-2: #a9adb6;

  /* Type — system stack: fast, private, covers Latin, Cyrillic and Armenian */
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", "Noto Sans", "Noto Sans Armenian", Arial, sans-serif;
  --font-display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", "Noto Sans", "Noto Sans Armenian", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --fs-hero: clamp(2.5rem, 1.5rem + 5vw, 5.5rem);

  /* Space & shape */
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --maxw-text: 680px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(12, 13, 16, 0.06), 0 1px 1px rgba(12, 13, 16, 0.04);
  --shadow-2: 0 12px 32px -12px rgba(12, 13, 16, 0.22), 0 2px 6px rgba(12, 13, 16, 0.06);

  /* Motion tokens (from the animate skill — do not approximate) */
  --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);
  --dur-press: 160ms;
  --dur-fast: 150ms;
  --dur-ui: 200ms;
  --dur-modal: 250ms;
  --dur-drawer: 420ms;
  --dur-reveal: 600ms;

  --header-h: 64px;
  color-scheme: light;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
html:lang(hy) body { line-height: 1.7; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 650; text-wrap: balance; }
html:lang(hy) h1, html:lang(hy) h2, html:lang(hy) h3 { letter-spacing: -0.005em; line-height: 1.2; }
html:lang(ru) h1, html:lang(ru) h2 { letter-spacing: -0.015em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.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; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Layout */
.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--line { border-top: 1px solid var(--line); }
.section--night { background: var(--night); color: var(--night-ink); }
.section--white { background: var(--white); }
.stack > * + * { margin-top: var(--stack, 1rem); }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Type helpers */
.eyebrow { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: 8px; }
html:lang(hy) .eyebrow { letter-spacing: 0.03em; }
.section--night .eyebrow { color: var(--night-ink-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.h-hero { font-size: var(--fs-hero); font-weight: 680; letter-spacing: -0.035em; line-height: 1.0; }
html:lang(hy) .h-hero, html:lang(ru) .h-hero { font-size: clamp(2.2rem, 1.3rem + 4.2vw, 4.6rem); line-height: 1.08; letter-spacing: -0.02em; }
.h-1 { font-size: var(--fs-2xl); }
.h-2 { font-size: var(--fs-xl); }
.h-3 { font-size: var(--fs-lg); letter-spacing: -0.01em; }
.lead { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
html:lang(hy) .lead, html:lang(ru) .lead { max-width: 46ch; }
.section--night .lead { color: var(--night-ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.xsmall { font-size: var(--fs-xs); }
.prose { max-width: var(--maxw-text); }
.prose h2 { font-size: var(--fs-lg); margin: 2.2em 0 0.6em; letter-spacing: -0.01em; }
.prose h3 { font-size: var(--fs-md); margin: 1.6em 0 0.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 0.3em 0; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: rgba(247, 247, 244, 0.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--dur-ui) ease; }
.site-header[data-scrolled] { border-bottom-color: var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.wordmark { font-family: var(--font-display); font-weight: 760; letter-spacing: 0.14em; font-size: 1.0625rem; text-decoration: none; color: var(--ink); padding: 8px 0; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-size: var(--fs-sm); color: var(--ink-2); padding: 8px 12px; border-radius: var(--r-pill); transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease; white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); background: var(--paper-2); } }
.header-actions { display: flex; align-items: center; gap: 8px; }
.site-header .menu-toggle { display: none; }
@media (max-width: 1180px) {
  .nav, .header-actions .lang-switch { display: none; }
  .site-header .menu-toggle { display: inline-flex; margin-left: auto; }
  .header-actions .btn--quote { display: none; }
}

/* Language switch */
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); }
.lang-switch a { font-size: var(--fs-xs); font-weight: 600; text-decoration: none; padding: 5px 10px; border-radius: var(--r-pill); color: var(--ink-3); transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease; }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .lang-switch a:not([aria-current="true"]):hover { color: var(--ink); } }

/* Buttons */
.btn { --btn-bg: var(--ink); --btn-fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r-pill); border: 1px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation; transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn--accent { --btn-bg: var(--accent); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-2); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--night-ghost { --btn-bg: transparent; --btn-fg: var(--night-ink); border-color: var(--night-line); }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: var(--fs-md); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: var(--fs-xs); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --btn-bg: var(--ink-2); }
  .btn--accent:hover { --btn-bg: var(--accent-ink); }
  .btn--ghost:hover { --btn-bg: var(--paper-2); border-color: var(--line-2); }
  .btn--light:hover { --btn-bg: var(--paper-2); }
  .btn--night-ghost:hover { --btn-bg: var(--night-2); }
}
.btn .arrow { transition: transform var(--dur-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(3px); } }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; color: var(--ink); }
.link-arrow .arrow { transition: transform var(--dur-ui) var(--ease-out); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white); cursor: pointer; touch-action: manipulation; transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-fast) ease; }
.icon-btn:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--paper-2); } }

/* Mobile menu (sheet) */
.mobile-menu { position: fixed; inset: 0; z-index: 60; display: grid; }
.mobile-menu__backdrop { position: absolute; inset: 0; background: rgba(12, 13, 16, 0.32); opacity: 1; transition: opacity var(--dur-modal) var(--ease-out); }
.mobile-menu__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; overflow-y: auto; overscroll-behavior: contain; transform: translateX(0); transition: transform var(--dur-drawer) var(--ease-drawer); }
.mobile-menu[data-state="closed"] .mobile-menu__backdrop { opacity: 0; }
.mobile-menu[data-state="closed"] .mobile-menu__panel { transform: translateX(100%); }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: 48px; margin-bottom: 8px; }
.mobile-menu__nav { display: grid; }
.mobile-menu__nav a { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu__nav a[aria-current="page"] { color: var(--accent); }
.mobile-menu .lang-switch { align-self: flex-start; margin-top: 16px; }
.mobile-menu .btn { margin-top: 16px; }

/* Hero */
.hero { padding: clamp(56px, 10vw, 140px) 0 clamp(48px, 7vw, 96px); }
.hero__inner { display: grid; gap: clamp(24px, 3vw, 36px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__triad { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: var(--fs-sm); color: var(--ink-3); margin-top: 8px; }
.hero__triad span { display: inline-flex; align-items: center; gap: 8px; }
.hero__triad i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.tagline { font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.02em; color: var(--ink-3); }

/* Module cards */
.module-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 32px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; min-height: 100%; transition: border-color var(--dur-ui) ease, box-shadow var(--dur-ui) ease, transform var(--dur-ui) var(--ease-out); }
.module-card:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) { .module-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); } .module-card:hover .arrow { transform: translateX(3px); } }
.module-card__index { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-4); }
.module-card__name { font-size: var(--fs-xl); }
.module-card__name b { font-weight: 650; }
.module-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--ink-2); }
.module-card li { display: flex; gap: 10px; }
.module-card li::before { content: ""; flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--mod, var(--ink)); margin-top: 0.7em; }
.module-card .link-arrow { margin-top: auto; padding-top: 8px; }
.mod-creative { --mod: var(--creative); }
.mod-ai { --mod: var(--ai); }
.mod-digital { --mod: var(--digital); }
.mod-mark { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--mod); }

/* Service groups */
.service-group { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 4vw, 56px); padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); }
.service-group:last-child { border-bottom: 1px solid var(--line); }
.service-group h3 { font-size: var(--fs-xl); }
.service-group p { color: var(--ink-2); max-width: 44ch; margin-top: 12px; }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.service-list li { border-bottom: 1px solid var(--line); }
.service-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; text-decoration: none; font-size: var(--fs-sm); color: var(--ink-2); transition: color var(--dur-fast) ease; }
.service-list a .arrow { color: var(--ink-4); transition: transform var(--dur-ui) var(--ease-out), color var(--dur-fast) ease; }
@media (hover: hover) and (pointer: fine) { .service-list a:hover { color: var(--ink); } .service-list a:hover .arrow { transform: translateX(3px); color: var(--mod, var(--ink)); } }
.service-group .group-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .service-group { grid-template-columns: 1fr; } .service-list { grid-template-columns: 1fr; } }

/* Feature / principle cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.5vw, 28px); display: grid; gap: 10px; align-content: start; }
.card h3 { font-size: var(--fs-lg); }
.card p { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.card__num { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-4); }
.section--night .card { background: var(--night-2); border-color: var(--night-line); }
.section--night .card p { color: var(--night-ink-2); }

/* Demo cards */
.demo-card { display: grid; grid-template-rows: auto 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; transition: box-shadow var(--dur-ui) ease, border-color var(--dur-ui) ease; }
@media (hover: hover) and (pointer: fine) { .demo-card:hover { box-shadow: var(--shadow-2); border-color: var(--line-2); } .demo-card:hover .arrow { transform: translateX(3px); } }
.demo-card__visual { aspect-ratio: 16 / 9; background: var(--paper-2); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.demo-card__body { padding: clamp(20px, 2.5vw, 28px); display: grid; gap: 10px; align-content: start; }
.demo-card__body p { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; padding: 4px 10px; border-radius: var(--r-pill); background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); width: fit-content; }
.badge--demo { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.badge--concept { background: #f6e9ef; color: #8a2f53; border-color: transparent; }
.badge--live { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge--fallback { background: #fff4e5; color: #8a4b00; border-color: transparent; }

/* Mini UI mockups inside demo visuals (pure CSS, no images) */
.mock { position: absolute; inset: 14% 10% 0; background: var(--white); border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; box-shadow: var(--shadow-1); padding: 14px; display: grid; gap: 10px; align-content: start; }
.mock__bar { display: flex; gap: 6px; }
.mock__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.mock__line { height: 8px; border-radius: 4px; background: var(--paper-2); }
.mock__line--w60 { width: 60%; } .mock__line--w40 { width: 40%; } .mock__line--w80 { width: 80%; }
.mock__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock__tile { aspect-ratio: 4 / 3; border-radius: 8px; background: var(--paper-2); }
.mock__bubble { max-width: 70%; padding: 8px 10px; border-radius: 12px; font-size: 0.6875rem; line-height: 1.3; background: var(--paper-2); color: var(--ink-2); }
.mock__bubble--me { margin-left: auto; background: var(--ink); color: #fff; }

/* Steps / process */
.steps { counter-reset: step; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--ink-4); padding-top: 2px; }
.step h3 { font-size: var(--fs-md); font-weight: 650; letter-spacing: -0.005em; }
.step p { margin: 6px 0 0; color: var(--ink-2); font-size: var(--fs-sm); max-width: 60ch; }

/* CTA band */
.cta-band { border-radius: var(--r-lg); background: var(--night); color: var(--night-ink); padding: clamp(32px, 6vw, 72px); display: grid; gap: 20px; }
.cta-band .lead { color: var(--night-ink-2); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Forms */
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--ink-4); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-3); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 12px 14px; font-size: 16px; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-md); transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease; appearance: none; -webkit-appearance: none; }
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b606b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field[data-invalid] .input, .field[data-invalid] .select, .field[data-invalid] .textarea { border-color: var(--danger); }
.field__error { font-size: var(--fs-xs); color: var(--danger); min-height: 0; }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--white); font-size: var(--fs-sm); cursor: pointer; user-select: none; -webkit-user-select: none; transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out); }
.choice span:active { transform: scale(0.97); }
.choice input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: var(--fs-sm); color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--r-md); padding: 14px 16px; font-size: var(--fs-sm); }
.form-status[data-kind="error"] { background: var(--danger-soft); color: var(--danger); }
.form-status[data-kind="ok"] { background: var(--ok-soft); color: var(--ok); }
.form-success { display: grid; gap: 12px; padding: clamp(24px, 4vw, 40px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.form-success .lead-id { font-family: var(--font-mono); font-size: var(--fs-sm); background: var(--paper-2); padding: 4px 10px; border-radius: 6px; width: fit-content; }
.turnstile-slot:empty { display: none; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 600ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Quote layout */
.quote-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.quote-aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 20px; }
@media (max-width: 900px) { .quote-layout { grid-template-columns: 1fr; } .quote-aside { position: static; } }

/* Footer */
.site-footer { background: var(--night); color: var(--night-ink-2); padding: clamp(56px, 8vw, 96px) 0 calc(96px + env(safe-area-inset-bottom)); font-size: var(--fs-sm); }
.site-footer a { color: var(--night-ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { text-decoration: underline; } }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.footer-top h2 { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-ink-2); margin-bottom: 14px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-brand .wordmark { color: var(--night-ink); }
.footer-brand p { max-width: 34ch; margin-top: 12px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer-bottom .lang-switch { background: transparent; border-color: var(--night-line); }
.footer-bottom .lang-switch a { color: var(--night-ink-2); }
.footer-bottom .lang-switch a[aria-current="true"] { background: var(--night-ink); color: var(--night); }
@media (max-width: 860px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* Notice / callout */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-2); }
.notice strong { color: var(--ink); font-weight: 600; }

/* FAQ (details) */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: var(--fs-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform var(--dur-ui) var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq__a { padding: 0 0 20px; color: var(--ink-2); max-width: 70ch; }

/* Scroll reveal — marketing surfaces only, fires once (RECIPES: Scroll reveal) */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.js .reveal[data-visible] { opacity: 1; transform: none; }
.js .reveal-group > * { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js .reveal-group[data-visible] > * { opacity: 1; transform: none; }
.js .reveal-group[data-visible] > *:nth-child(2) { transition-delay: 50ms; }
.js .reveal-group[data-visible] > *:nth-child(3) { transition-delay: 90ms; }
.js .reveal-group[data-visible] > *:nth-child(4) { transition-delay: 120ms; }
.js .reveal-group[data-visible] > *:nth-child(5) { transition-delay: 145ms; }
.js .reveal-group[data-visible] > *:nth-child(n+6) { transition-delay: 165ms; }

/* Hero entrance — once per page load, stagger 60ms */
.js .hero-in > * { opacity: 0; transform: translateY(10px); animation: rise 450ms var(--ease-out) forwards; }
.js .hero-in > *:nth-child(2) { animation-delay: 40ms; }
.js .hero-in > *:nth-child(3) { animation-delay: 80ms; }
.js .hero-in > *:nth-child(4) { animation-delay: 115ms; }
.js .hero-in > *:nth-child(5) { animation-delay: 145ms; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* DARBEEN Assistant widget */
.da-launcher { position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; border-radius: var(--r-pill); border: 0; background: var(--ink); color: #fff; font-size: var(--fs-sm); font-weight: 600; box-shadow: var(--shadow-2); cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: transform var(--dur-press) var(--ease-out), opacity var(--dur-ui) var(--ease-out); }
.da-launcher:active { transform: scale(0.96); }
.da-launcher[data-hidden] { opacity: 0; transform: scale(0.9); pointer-events: none; }
.da-launcher__dot { width: 8px; height: 8px; border-radius: 50%; background: #7fe0b5; box-shadow: 0 0 0 3px rgba(127, 224, 181, 0.18); }
/* Small screens: get the floating button out of the way while a form field is focused */
@media (max-width: 560px) { body:has(.form :focus) .da-launcher { opacity: 0; transform: scale(0.9); pointer-events: none; } }
@media (max-width: 480px) { .da-launcher { padding: 0 16px; } .da-launcher__label { display: none; } .da-launcher { width: 52px; justify-content: center; padding: 0; } }
.da-panel { position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 55; width: min(400px, calc(100vw - 32px)); height: min(640px, calc(100dvh - 32px)); display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 24px 64px -16px rgba(12, 13, 16, 0.32); overflow: hidden; transform-origin: bottom right; transition: opacity var(--dur-modal) var(--ease-out), transform var(--dur-modal) var(--ease-out); }
.da-panel[data-state="closed"] { opacity: 0; transform: scale(0.96) translateY(8px); pointer-events: none; visibility: hidden; transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out), visibility 0s linear var(--dur-ui); }
@media (max-width: 560px) {
  .da-panel { right: 0; bottom: 0; left: 0; width: 100%; height: min(88dvh, 720px); border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 0; transform-origin: bottom center; transition: transform var(--dur-drawer) var(--ease-drawer), opacity var(--dur-ui) var(--ease-out); padding-bottom: env(safe-area-inset-bottom); }
  .da-panel[data-state="closed"] { opacity: 1; transform: translateY(100%); transition: transform var(--dur-modal) var(--ease-out), visibility 0s linear var(--dur-modal); }
}
.da-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 18px; border-bottom: 1px solid var(--line); }
.da-head__title { display: grid; line-height: 1.2; }
.da-head__title strong { font-size: var(--fs-sm); letter-spacing: 0.04em; }
.da-head__title span { font-size: var(--fs-xs); color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.da-head__actions { margin-left: auto; display: flex; gap: 4px; }
.da-head .icon-btn { width: 36px; height: 36px; border: 0; background: transparent; }
@media (hover: hover) and (pointer: fine) { .da-head .icon-btn:hover { background: var(--paper-2); } }
.da-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.da-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: var(--fs-sm); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; animation: msg-in 260ms var(--ease-out); }
.da-msg--bot { background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.da-msg--me { margin-left: auto; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.da-msg--note { max-width: 100%; background: transparent; padding: 0; color: var(--ink-3); font-size: var(--fs-xs); text-align: center; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.da-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.da-links a, .da-links button { font-size: var(--fs-xs); font-weight: 600; text-decoration: none; padding: 6px 10px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line-2); color: var(--ink); cursor: pointer; transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-fast) ease; }
.da-links a:active, .da-links button:active { transform: scale(0.97); }
.da-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.da-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); animation: dot 1s ease-in-out infinite; }
.da-typing i:nth-child(2) { animation-delay: 0.15s; } .da-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
.da-quick { display: flex; gap: 6px; overflow-x: auto; padding: 0 18px 12px; scrollbar-width: none; touch-action: pan-x; }
.da-quick::-webkit-scrollbar { display: none; }
.da-quick button { flex: none; font-size: var(--fs-xs); font-weight: 600; min-height: 34px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--white); cursor: pointer; white-space: nowrap; touch-action: manipulation; transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-fast) ease; }
.da-quick button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .da-quick button:hover, .da-links a:hover, .da-links button:hover { background: var(--paper-2); } }
.da-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--white); }
.da-form textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; padding: 11px 14px; font-size: 16px; line-height: 1.35; border: 1px solid var(--line-2); border-radius: 22px; background: var(--paper); }
.da-form textarea:focus { outline: none; border-color: var(--accent); background: var(--white); }
.da-send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform var(--dur-press) var(--ease-out), opacity var(--dur-fast) ease; }
.da-send:active { transform: scale(0.94); }
.da-send[disabled] { opacity: 0.35; cursor: default; }
.da-foot { padding: 0 14px 10px; font-size: 0.6875rem; color: var(--ink-4); text-align: center; }
.da-lead { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); font-size: var(--fs-sm); animation: msg-in 260ms var(--ease-out); }
.da-lead .input, .da-lead .select, .da-lead .textarea { min-height: 42px; padding: 9px 12px; border-radius: 10px; }
.da-lead .textarea { min-height: 80px; }
.da-lead label { font-size: var(--fs-xs); font-weight: 600; display: grid; gap: 4px; }
.da-lead .consent { font-size: var(--fs-xs); grid-template-columns: 18px 1fr; gap: 8px; }
.da-lead .consent input { width: 16px; height: 16px; }
.da-lead__actions { display: flex; gap: 8px; }

/* Assistant demo page */
.demo-chat { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .demo-chat { grid-template-columns: 1fr; } }
.scenario-list { display: grid; gap: 8px; }
.scenario { text-align: left; display: grid; gap: 4px; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white); cursor: pointer; transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out); }
.scenario:active { transform: scale(0.99); }
.scenario[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.scenario strong { font-size: var(--fs-sm); }
.scenario span { font-size: var(--fs-xs); color: var(--ink-3); }
.chat-frame { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; height: min(640px, 80dvh); overflow: hidden; }
.chat-frame .da-log { padding: 20px; }
.chat-frame__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-frame__head strong { font-size: var(--fs-sm); }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 16px; }

/* Reduced motion: keep opacity/color, drop movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-group > * { transform: none; transition: opacity 300ms ease; }
  .js .hero-in > * { transform: none; animation: fade 300ms ease forwards; }
  .da-msg, .da-lead { animation: fade 200ms ease; }
  .mobile-menu__panel, .da-panel { transition: opacity var(--dur-ui) ease; }
  .mobile-menu[data-state="closed"] .mobile-menu__panel { transform: none; opacity: 0; }
  .da-panel[data-state="closed"] { transform: none; }
  .btn:active, .icon-btn:active, .choice span:active, .da-launcher:active, .module-card:active { transform: none; }
  .da-log { scroll-behavior: auto; }
}

@media print {
  .site-header, .site-footer, .da-launcher, .da-panel, .mobile-menu { display: none !important; }
  body { background: #fff; }
}
