/* Qefro landing — UI/UX Pro Max design system (Flat + Soft UI, spacious)
   Tokens from design-system/qefro/MASTER.md + pages/home.md */
:root {
  /* Design system semantic tokens */
  --color-primary: #7c3aed;
  --color-on-primary: #ffffff;
  --color-secondary: #a78bfa;
  --color-accent: #0891b2;
  --color-on-accent: #ffffff;
  --color-background: #ffffff;
  --color-foreground: #1e1b4b;
  --color-muted: #eceef9;
  --color-border: #ddd6fe;
  --color-destructive: #dc2626;
  --color-ring: #7c3aed;
  --surface-featured: #ecfeff;
  --surface-accent-soft: rgba(8, 145, 178, 0.1);
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --shadow-sm: 0 1px 2px rgba(30, 27, 75, 0.05);
  --shadow-md: 0 4px 6px rgba(30, 27, 75, 0.08);
  --shadow-lg: 0 10px 15px rgba(30, 27, 75, 0.08);
  --shadow-xl: 0 20px 25px rgba(30, 27, 75, 0.1);
  --duration: 200ms;
  --ease: ease;

  --bg: var(--color-background);
  --bg-card: #ffffff;
  --card-bg: var(--bg-card);
  --bg-elevated: #ffffff;
  --surface: var(--color-muted);
  --surface-hover: #e4e6f4;
  --border: var(--color-border);
  --border-strong: #c4b5fd;
  --text: var(--color-foreground);
  --text-sub: #4b5568;
  --text-muted: #64748b;
  --text-strong: var(--color-foreground);
  --link-hover: var(--color-foreground);
  --header-bg: rgba(255, 255, 255, 0.92);
  --header-border: rgba(221, 214, 254, 0.9);
  --nav-hover-bg: rgba(124, 58, 237, 0.06);
  --nav-hover-color: var(--color-foreground);
  --btn-ghost-bg: #ffffff;
  --btn-ghost-border: var(--color-primary);
  --btn-ghost-color: var(--color-primary);
  --btn-ghost-hover-bg: rgba(124, 58, 237, 0.06);
  --btn-ghost-hover-border: #6d28d9;
  --btn-plan-bg: var(--color-muted);
  --btn-plan-border: var(--color-border);
  --btn-plan-color: var(--color-foreground);
  --btn-plan-hover-bg: #e4e6f4;
  --section-alt-bg: var(--color-muted);
  --section-alt-border: var(--color-border);
  --section-proof-bg: #f4f4f8;
  --section-proof-border: var(--color-border);
  --stat-from: var(--color-foreground);
  --stat-to: var(--color-foreground);
  --cap-text: #4b5568;
  --cap-hover-text: var(--color-foreground);
  --cap-icon-color: var(--color-primary);
  --step-num-color: #4b5568;
  --uc-chevron: var(--color-accent);
  --uc-hover-text: #4b5568;
  --quote-text: #4b5568;
  --feat-text: #4b5568;
  --faq-btn: #4b5568;
  --faq-btn-open: var(--color-foreground);
  --faq-chevron-border: var(--color-border);
  --faq-open-bg: rgba(8, 145, 178, 0.08);
  --faq-item-bg: #ffffff;
  --price-card-bg: #ffffff;
  --price-card-border: var(--color-border);
  --price-card-hover-border: #c4b5fd;
  --price-popular-bg: #ffffff;
  --price-popular-border: rgba(8, 145, 178, 0.45);
  --price-popular-shadow: var(--shadow-lg);
  --footer-border: var(--color-border);
  --footer-muted: #64748b;
  --chat-bg: #ffffff;
  --chat-shadow: var(--shadow-xl);
  --chat-bar-text: #64748b;
  --bubble-ai-text: #4b5568;
  --bubble-ai-bg: rgba(8, 145, 178, 0.08);
  --bubble-ai-border: rgba(8, 145, 178, 0.2);
  --bubble-user-bg: var(--color-muted);
  --bubble-user-text: var(--color-foreground);
  --chat-chip-bg: #f8f8fc;
  --chat-chip-active-color: var(--color-accent);
  --mobile-panel-bg: rgba(255, 255, 255, 0.98);
  --ambient-a: rgba(8, 145, 178, 0.05);
  --ambient-b: rgba(124, 58, 237, 0.04);
  --ambient-c: rgba(167, 139, 250, 0.04);
  --ambient-grid-opacity: 0.02;
  --ambient-grid-color: rgba(30, 27, 75, 0.08);
  --hero-glow: rgba(8, 145, 178, 0.08);
  --hero-bg: #ffffff;
  --hero-fg: var(--color-foreground);
  --hero-sub: #4b5568;
  --hero-accent: var(--color-primary);
  --hero-border: var(--color-border);
  --hero-grid-line: rgba(30, 27, 75, 0.05);
  --hero-eyebrow-bg: rgba(8, 145, 178, 0.08);
  --hero-eyebrow-border: rgba(8, 145, 178, 0.28);
  --hero-eyebrow-fg: #0e7490;
  --hero-ghost-bg: #ffffff;
  --hero-ghost-border: var(--color-primary);
  --hero-ghost-fg: var(--color-primary);
  --hero-ghost-hover-bg: rgba(124, 58, 237, 0.06);
  --hero-ghost-hover-border: #6d28d9;
  --hero-check: #64748b;
  --hero-check-icon: #059669;
  --hero-pipeline-border: var(--color-border);
  --hero-pipeline-bg: #f8f8fc;
  --hero-pipeline-k: var(--color-accent);
  --hero-pipeline-v: var(--color-foreground);
  --hero-pipeline-d: #64748b;
  --hero-pipeline-arrow: #94a3b8;
  --hero-pipeline-accent-border: rgba(8, 145, 178, 0.4);
  --hero-pipeline-accent-bg: #ecfeff;
  --hero-pipeline-pulse: rgba(8, 145, 178, 0.16);
  --cta-glow: rgba(8, 145, 178, 0.1);
  --step-shadow: var(--shadow-md);
  --uc-shadow: var(--shadow-sm);
  --card-shadow: var(--shadow-sm);
  --panel-shadow: var(--shadow-md);
  --direct-answer-text: #4b5568;
  --direct-answer-strong: var(--color-foreground);
  --indigo: var(--color-primary);
  --indigo-500: var(--color-secondary);
  --indigo-600: var(--color-primary);
  --indigo-glow: rgba(8, 145, 178, 0.22);
  --emerald: #059669;
  --purple: var(--color-secondary);
  --pink: #ec4899;
  --radius: 0.625rem;
  --radius-xl: 0.75rem;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 72rem;
  --max-narrow: 42rem;
  --pad: clamp(1.25rem, 4vw, 2rem);
}

[data-theme="dark"] {
  /* Semantic tokens must flip — light #eceef9/#ffffff leaked into dark UI */
  --color-background: #080a12;
  --color-foreground: #f4f5fb;
  --color-muted: #141625;
  --color-border: rgba(255, 255, 255, 0.12);
  --color-secondary: #c4b5fd;
  --color-accent: #22d3ee;
  --color-on-accent: #082f49;
  --color-ring: #a78bfa;
  --surface-featured: rgba(8, 145, 178, 0.14);
  --surface-accent-soft: rgba(34, 211, 238, 0.1);

  --bg: var(--color-background);
  --bg-card: rgba(255, 255, 255, 0.05);
  --card-bg: var(--bg-card);
  --bg-elevated: rgba(255, 255, 255, 0.04);
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: var(--color-border);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: var(--color-foreground);
  --text-sub: #cbd5e1;
  --text-muted: #94a3b8;
  --text-strong: #ffffff;
  --link-hover: #ffffff;
  --header-bg: rgba(8, 10, 18, 0.88);
  --header-border: rgba(255, 255, 255, 0.1);
  --nav-hover-bg: rgba(255, 255, 255, 0.08);
  --nav-hover-color: #ffffff;
  --btn-ghost-bg: rgba(255, 255, 255, 0.06);
  --btn-ghost-border: rgba(255, 255, 255, 0.28);
  --btn-ghost-color: #f4f5fb;
  --btn-ghost-hover-bg: rgba(255, 255, 255, 0.12);
  --btn-ghost-hover-border: rgba(255, 255, 255, 0.45);
  --btn-plan-bg: rgba(255, 255, 255, 0.08);
  --btn-plan-border: rgba(255, 255, 255, 0.16);
  --btn-plan-color: #ffffff;
  --btn-plan-hover-bg: rgba(255, 255, 255, 0.14);
  --section-alt-bg: #0d0f18;
  --section-alt-border: rgba(255, 255, 255, 0.08);
  --section-proof-bg: #0b0d16;
  --section-proof-border: rgba(255, 255, 255, 0.08);
  --stat-from: #ffffff;
  --stat-to: #e2e8f0;
  --cap-text: #cbd5e1;
  --cap-hover-text: #ffffff;
  --cap-icon-color: #67e8f9;
  --step-num-color: #e2e8f0;
  --uc-chevron: #67e8f9;
  --uc-hover-text: #e2e8f0;
  --quote-text: #cbd5e1;
  --feat-text: #cbd5e1;
  --faq-btn: #e2e8f0;
  --faq-btn-open: #ffffff;
  --faq-chevron-border: rgba(255, 255, 255, 0.22);
  --faq-open-bg: rgba(34, 211, 238, 0.1);
  --faq-item-bg: rgba(255, 255, 255, 0.05);
  --price-card-bg: rgba(255, 255, 255, 0.05);
  --price-card-border: rgba(255, 255, 255, 0.12);
  --price-card-hover-border: rgba(255, 255, 255, 0.22);
  --price-popular-bg: rgba(8, 145, 178, 0.12);
  --price-popular-border: rgba(34, 211, 238, 0.45);
  --price-popular-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --footer-border: rgba(255, 255, 255, 0.1);
  --footer-muted: #94a3b8;
  --chat-bg: rgba(255, 255, 255, 0.05);
  --chat-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --chat-bar-text: #cbd5e1;
  --bubble-ai-text: #e2e8f0;
  --bubble-ai-bg: rgba(34, 211, 238, 0.12);
  --bubble-ai-border: rgba(34, 211, 238, 0.28);
  --bubble-user-bg: rgba(255, 255, 255, 0.08);
  --bubble-user-text: #ffffff;
  --chat-chip-bg: rgba(255, 255, 255, 0.06);
  --chat-chip-active-color: #67e8f9;
  --mobile-panel-bg: rgba(8, 10, 18, 0.97);
  --ambient-a: rgba(34, 211, 238, 0.06);
  --ambient-b: rgba(124, 58, 237, 0.08);
  --ambient-c: rgba(167, 139, 250, 0.05);
  --ambient-grid-opacity: 0.035;
  --ambient-grid-color: rgba(255, 255, 255, 0.55);
  --hero-glow: rgba(34, 211, 238, 0.12);
  --hero-bg: #07080f;
  --hero-fg: #f4f5fb;
  --hero-sub: #cbd5e1;
  --hero-accent: #c4b5fd;
  --hero-border: rgba(255, 255, 255, 0.1);
  --hero-grid-line: rgba(255, 255, 255, 0.06);
  --hero-eyebrow-bg: rgba(34, 211, 238, 0.12);
  --hero-eyebrow-border: rgba(34, 211, 238, 0.35);
  --hero-eyebrow-fg: #a5f3fc;
  --hero-ghost-bg: rgba(255, 255, 255, 0.08);
  --hero-ghost-border: rgba(255, 255, 255, 0.35);
  --hero-ghost-fg: #f4f5fb;
  --hero-ghost-hover-bg: rgba(255, 255, 255, 0.14);
  --hero-ghost-hover-border: rgba(255, 255, 255, 0.55);
  --hero-check: #cbd5e1;
  --hero-check-icon: #34d399;
  --hero-pipeline-border: rgba(255, 255, 255, 0.14);
  --hero-pipeline-bg: rgba(255, 255, 255, 0.05);
  --hero-pipeline-k: #67e8f9;
  --hero-pipeline-v: #f4f5fb;
  --hero-pipeline-d: #cbd5e1;
  --hero-pipeline-arrow: #94a3b8;
  --hero-pipeline-accent-border: rgba(34, 211, 238, 0.45);
  --hero-pipeline-accent-bg: rgba(8, 145, 178, 0.2);
  --hero-pipeline-pulse: rgba(34, 211, 238, 0.2);
  --cta-glow: rgba(34, 211, 238, 0.12);
  --step-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --uc-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --panel-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  --direct-answer-text: #cbd5e1;
  --direct-answer-strong: #ffffff;
  --indigo: #a78bfa;
  --indigo-500: #c4b5fd;
  --indigo-600: #a78bfa;
  --indigo-glow: rgba(34, 211, 238, 0.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.page-shell {
  width: 100%;
  overflow-x: clip;
  position: relative;
  z-index: 1;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; flex-shrink: 0; max-width: none; }
svg.icon { width: 1em; height: 1em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--color-accent); color: #fff; padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 3px;
}

.btn:focus-visible,
.btn-link:focus-visible,
.theme-toggle:focus-visible,
.nav-toggle:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 3px;
}

.ambient {
  position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
.ambient-blob {
  position: absolute; border-radius: 999px; filter: blur(140px); opacity: 0.85;
}
.ambient-a { top: -10rem; left: 33%; width: 900px; height: 600px; background: var(--ambient-a); }
.ambient-b { top: 33%; right: -10rem; width: 700px; height: 700px; background: var(--ambient-b); }
.ambient-c { bottom: 0; left: 0; width: 600px; height: 400px; background: var(--ambient-c); }
.ambient-grid {
  position: absolute; inset: 0; opacity: var(--ambient-grid-opacity);
  background-image:
    linear-gradient(var(--ambient-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--ambient-grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
}

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
  position: relative; z-index: 1;
}
.wrap-narrow { width: min(var(--max-narrow), calc(100% - 2 * var(--pad))); margin-inline: auto; position: relative; z-index: 1; }
.wrap-5xl { width: min(64rem, calc(100% - 2 * var(--pad))); margin-inline: auto; position: relative; z-index: 1; }

/* Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}
.site-header.is-scrolled {
  backdrop-filter: blur(28px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.site-header.is-scrolled .nav {
  min-height: 3.35rem;
}
.site-header.is-scrolled .brand img {
  width: 2.15rem;
  height: 2.15rem;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 4rem; gap: 1.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem; shrink: 0;
}
.brand img {
  width: 2.5rem; height: 2.5rem; object-fit: contain;
}
.brand img.logo-dark { display: none; }
[data-theme="dark"] .brand img.logo-light { display: none; }
[data-theme="dark"] .brand img.logo-dark { display: block; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  padding: 0.5rem 0.875rem; border-radius: 0.5rem;
  font-size: 0.875rem; color: var(--text-muted);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--nav-hover-color); background: var(--nav-hover-bg);
}
.nav-cta { display: flex; align-items: center; gap: 0.5rem; }
.theme-toggle {
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  border-radius: 0.5rem; color: var(--text-sub);
  border: 1px solid transparent;
}
.theme-toggle:hover {
  background: var(--nav-hover-bg); color: var(--nav-hover-color);
  border-color: var(--border);
}
[data-theme="dark"] .theme-toggle { color: #e2e8f0; }
[data-theme="dark"] .nav-links a { color: #cbd5e1; }
[data-theme="dark"] .btn-link { color: #e2e8f0; }
.theme-toggle svg { width: 1.125rem; height: 1.125rem; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.nav-toggle {
  display: none; width: 2.5rem; height: 2.5rem; place-items: center;
  border-radius: 0.5rem; color: var(--text-muted);
}
.nav-toggle:hover { background: var(--nav-hover-bg); color: var(--nav-hover-color); }
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 2.75rem; min-width: 2.75rem; padding: 0.625rem 1.25rem; border-radius: 0.5rem;
  font-weight: 600; font-size: 0.875rem;
  cursor: pointer;
}
.btn-lg {
  min-height: 3.25rem; padding: 1rem 2rem; border-radius: 0.625rem; font-size: 1rem;
}
.btn-primary {
  background: var(--color-accent); color: var(--color-on-accent);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--color-accent) 88%, #000);
  box-shadow: var(--shadow-md);
}
[data-theme="dark"] .btn-primary:hover {
  background: color-mix(in srgb, var(--color-accent) 85%, #fff);
}
.btn-ghost {
  background: var(--btn-ghost-bg); color: var(--btn-ghost-color);
  border: 2px solid var(--btn-ghost-border);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--btn-ghost-hover-bg);
  border-color: var(--btn-ghost-hover-border);
}
.btn-link {
  color: var(--text-muted); font-size: 0.875rem; padding: 0.5rem 0.75rem; border-radius: 0.5rem;
}
.btn-link:hover { color: var(--link-hover); background: var(--nav-hover-bg); }
.btn svg { width: 1rem; height: 1rem; max-width: none; flex-shrink: 0; }
.btn-lg svg { width: 1.125rem; height: 1.125rem; max-width: none; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 1rem; border-radius: 999px; border: 1px solid;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.badge svg { width: 0.875rem; height: 0.875rem; flex-shrink: 0; }
.badge-indigo { background: rgba(8,145,178,0.08); border-color: rgba(8,145,178,0.22); color: #0e7490; }
.badge-purple { background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.2); color: #6d28d9; }
.badge-blue { background: rgba(8,145,178,0.08); border-color: rgba(8,145,178,0.22); color: #0e7490; }
.badge-green { background: rgba(5,150,105,0.08); border-color: rgba(5,150,105,0.22); color: #047857; }
.badge-yellow { background: rgba(234,179,8,0.08); border-color: rgba(234,179,8,0.2); color: #a16207; }
[data-theme="dark"] .badge-indigo {
  background: rgba(34,211,238,0.12); border-color: rgba(34,211,238,0.35); color: #a5f3fc;
}
[data-theme="dark"] .badge-purple {
  background: rgba(167,139,250,0.14); border-color: rgba(167,139,250,0.35); color: #ddd6fe;
}
[data-theme="dark"] .badge-blue {
  background: rgba(34,211,238,0.12); border-color: rgba(34,211,238,0.35); color: #a5f3fc;
}
[data-theme="dark"] .badge-green { background: rgba(16,185,129,0.14); border-color: rgba(52,211,153,0.35); color: #6ee7b7; }
[data-theme="dark"] .badge-yellow { background: rgba(234,179,8,0.12); border-color: rgba(250,204,21,0.3); color: #fde047; }

/* Hero — theme-adaptive (light default, dark via [data-theme="dark"]) */
.hero {
  position: relative;
  padding: var(--space-3xl) var(--pad) var(--space-2xl);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, var(--hero-glow), transparent 72%),
    var(--hero-bg);
  color: var(--hero-fg);
  overflow: hidden;
  border-bottom: 1px solid var(--hero-border);
}
/* Precise engineering grid, faded at the edges */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 28%, #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 85% 70% at 50% 28%, #000 45%, transparent 100%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem; margin-bottom: 1.75rem; border-radius: 0.5rem;
  border: 1px solid var(--hero-eyebrow-border); background: var(--hero-eyebrow-bg);
  color: var(--hero-eyebrow-fg); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow svg { width: 0.85rem; height: 0.85rem; }
.hero h1 {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.hero h1 .hero-line { display: block; color: var(--hero-fg); }
.hero h1 .hero-accent { display: block; color: var(--hero-accent); }
.hero-sub {
  margin: 0 auto 1.5rem; max-width: 42rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--hero-sub); line-height: 1.7;
}
.hero h1,
.hero-sub,
.hero-diff,
.hero-checks,
.section-head h2,
.section-head p {
  cursor: default;
}
.hero-diff {
  margin: 1.75rem auto 0; max-width: 40rem;
  padding: 0.9rem 1.15rem;
  border-radius: 0.85rem;
  border: 1px solid var(--hero-pipeline-accent-border);
  background: var(--hero-pipeline-accent-bg);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--hero-pipeline-v);
  text-align: left;
}
.hero-scroll-cue {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
}
.hero-scroll-cue a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--hero-check);
  font-weight: 600;
  text-decoration: none;
}
.hero-scroll-cue a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-scroll-cue svg { width: 1rem; height: 1rem; }
.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 2rem;
}
.hero-actions .btn { width: 100%; max-width: 22rem; }
@media (min-width: 640px) {
  .hero-actions .btn { width: auto; max-width: none; }
}
.hero .btn-ghost {
  background: var(--hero-ghost-bg);
  border-color: var(--hero-ghost-border);
  color: var(--hero-ghost-fg);
  box-shadow: none;
}
.hero .btn-ghost:hover {
  background: var(--hero-ghost-hover-bg);
  border-color: var(--hero-ghost-hover-border);
}
.hero-checks {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem;
  font-size: 0.875rem; color: var(--hero-check);
}
.hero-checks span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-checks svg { width: 1rem; height: 1rem; color: var(--hero-check-icon); flex-shrink: 0; }

/* Hero pipeline motif: ingest → embed → retrieve → answer */
.pipeline {
  margin: 3rem auto 0; max-width: 52rem;
  display: flex; align-items: stretch; justify-content: center;
  flex-wrap: nowrap; gap: 0.5rem;
}
.pipeline-node {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.85rem 0.95rem; border-radius: 0.75rem;
  border: 1px solid var(--hero-pipeline-border);
  background: var(--hero-pipeline-bg);
  text-align: left;
}
.pipeline-k {
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; color: var(--hero-pipeline-k);
}
.pipeline-v {
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--hero-pipeline-v);
}
.pipeline-d { font-size: 0.72rem; color: var(--hero-pipeline-d); line-height: 1.35; }
.pipeline-arrow {
  display: grid; place-items: center; flex: 0 0 auto; color: var(--hero-pipeline-arrow);
}
.pipeline-arrow svg { width: 1rem; height: 1rem; }
.pipeline-flow { max-width: 64rem; }
.pipeline-node-accent {
  border-color: var(--hero-pipeline-accent-border);
  background: var(--hero-pipeline-accent-bg);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 900px) {
  .pipeline-flow { flex-wrap: wrap; max-width: 36rem; }
}
@media (max-width: 640px) {
  .pipeline { flex-direction: column; align-items: stretch; }
  .pipeline-arrow { transform: rotate(90deg); padding: 0.15rem 0; }
}

/* Sections */
.section { padding: var(--space-3xl) var(--pad); position: relative; z-index: 1; }
.section-alt {
  background: var(--section-alt-bg);
  border-block: 1px solid var(--section-alt-border);
}
.section-facts {
  padding: clamp(2.5rem, 5vw, 3.25rem) var(--pad);
  background: var(--section-proof-bg);
  border-bottom: 1px solid var(--section-proof-border);
}
.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head .badge { margin-bottom: 1rem; }
.section-head h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 700; letter-spacing: -0.02em;
}
.section-head p {
  margin: 0 auto; max-width: 32rem; color: var(--text-sub); font-size: 1.125rem;
}

.direct-answer {
  margin: 0 auto 2rem; max-width: 40rem; text-align: left;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--indigo);
  background: rgba(99,102,241,0.08);
  border-radius: 0 0.75rem 0.75rem 0;
  color: var(--direct-answer-text); font-size: 0.95rem;
}
.direct-answer strong { color: var(--direct-answer-strong); }

/* Architecture fact strip (replaces vanity stats) */
.facts-label {
  text-align: center; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-sub);
  margin: 0 0 2rem;
}
.facts-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem;
}
@media (min-width: 768px) { .facts-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.fact { text-align: center; position: relative; }
@media (min-width: 768px) {
  .fact + .fact::before {
    content: ""; position: absolute; left: -0.5rem; top: 50%; transform: translateY(-50%);
    width: 1px; height: 2.5rem; background: var(--border);
  }
}
.fact-v {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.2; letter-spacing: -0.015em;
  color: var(--text-strong); margin-bottom: 0.4rem;
  text-wrap: balance;
}
.fact-k { font-size: 0.8rem; color: var(--text-muted); line-height: 1.45; max-width: 15rem; margin-inline: auto; }

/* Capability cards */
.cap-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--panel-shadow);
}
.cap-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cap-grid { grid-template-columns: repeat(3, 1fr); } }
.cap-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: 1rem;
  border: 1px solid var(--border); background: var(--bg-card);
  box-shadow: var(--card-shadow);
}
.cap-card:hover { border-color: color-mix(in srgb, var(--color-accent) 40%, transparent); background: var(--surface-accent-soft); }
.cap-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--surface-accent-soft); border: 1px solid color-mix(in srgb, var(--color-accent) 30%, transparent); color: var(--cap-icon-color);
}
[data-theme="dark"] .cap-icon { color: #67e8f9; border-color: rgba(34, 211, 238, 0.35); }
.cap-icon svg { width: 1.25rem; height: 1.25rem; }
.cap-card span { font-size: 0.875rem; font-weight: 500; color: var(--cap-text); }
.cap-card:hover span { color: var(--cap-hover-text); }

/* Product screenshots */
.product-shot-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .product-shot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-shot-grid { grid-template-columns: repeat(3, 1fr); } }
.product-shot-card {
  margin: 0; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-card);
  box-shadow: var(--card-shadow);
}
.product-shot-card img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10;
  object-fit: cover; object-position: top;
  border-bottom: 1px solid var(--border);
}
.product-shot-card figcaption {
  display: grid; gap: 0.3rem; padding: 1rem 1.125rem;
}
.product-shot-card strong { font-size: 0.9375rem; color: var(--text-strong); }
.product-shot-card span { font-size: 0.8125rem; line-height: 1.55; color: var(--text-sub); }

/* Steps */
.steps-grid {
  display: grid; gap: 2rem; position: relative;
}
@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid::before {
    content: ""; position: absolute; top: 2.5rem; left: 33%; right: 33%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124,58,237,0.45), transparent);
  }
}
.step { text-align: center; position: relative; }
.step-num-wrap {
  width: 5rem; height: 5rem; margin: 0 auto 1.25rem; border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: var(--step-shadow);
}
.step-num-inner {
  width: 100%; height: 100%; border-radius: calc(1rem - 1px);
  background: var(--bg); display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  color: var(--step-num-color);
}
.step h3 {
  margin: 0 0 0.5rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 700;
}
.step p { margin: 0; font-size: 0.875rem; color: var(--text-sub); line-height: 1.65; }

/* Use cases */
.uc-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .uc-grid { grid-template-columns: repeat(2, 1fr); } }
.uc-card {
  padding: 1.5rem; border-radius: 1rem;
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--card-shadow);
}
.uc-card:hover { background: var(--surface-hover); }
.uc-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.uc-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 0.75rem;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--uc-from, #7c3aed), var(--uc-to, #a855f7));
  box-shadow: var(--uc-shadow);
}
.uc-icon svg { width: 1.25rem; height: 1.25rem; }
.uc-card h3 { margin: 0; font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.uc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.uc-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.uc-list li svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--uc-chevron);
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.uc-card:hover .uc-list li { color: var(--uc-hover-text); }

/* Use case tabs (Stitch) */
.uc-tabs {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--panel-shadow);
  overflow: hidden;
}
.uc-tablist {
  display: flex; flex-wrap: wrap; gap: 0.25rem;
  padding: 0.75rem; border-bottom: 1px solid var(--border);
  background: var(--section-alt-bg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.uc-tab {
  flex: 1 1 auto; min-width: 8rem;
  padding: 0.65rem 1rem; border-radius: 0.625rem;
  font-size: 0.8125rem; font-weight: 600; color: var(--text-muted);
}
.uc-tab:hover { color: var(--text); background: rgba(255,255,255,0.7); }
.uc-tab.is-active {
  color: var(--text-strong); background: var(--bg-card);
  box-shadow: var(--card-shadow);
}
.uc-panels { padding: 1.5rem; }
.uc-panel[hidden] { display: none; }
.uc-tab-list {
  display: grid; gap: 0.75rem;
  grid-template-columns: 1fr;
  margin: 0; padding: 0; list-style: none;
}
@media (min-width: 640px) { .uc-tab-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .uc-tab-list { grid-template-columns: repeat(4, 1fr); } }
.uc-tab-list li {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem; border-radius: 0.75rem;
  border: 1px solid var(--border); background: var(--bg-card);
  font-size: 0.875rem; font-weight: 500; color: var(--text-sub);
  box-shadow: var(--card-shadow);
}
.uc-tab-list li svg { width: 0.875rem; height: 0.875rem; color: var(--uc-chevron); flex-shrink: 0; }

/* Why Qefro — refusal vs hallucination comparison */
.compare { max-width: 60rem; margin: 0 auto 3rem; }
.compare-q {
  max-width: 34rem; margin: 0 auto 1.5rem; text-align: center;
  padding: 1rem 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-card);
  box-shadow: var(--card-shadow);
}
.compare-q-label {
  display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem;
}
.compare-q p {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-strong);
}
.compare-cols { display: grid; gap: 1.25rem; align-items: stretch; }
@media (min-width: 768px) { .compare-cols { grid-template-columns: 1fr 1fr; } }
.compare-card {
  display: flex; flex-direction: column; gap: 0.85rem;
  padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
}
.compare-bad { border-color: rgba(239, 68, 68, 0.28); background: rgba(239, 68, 68, 0.04); }
.compare-good {
  border-color: rgba(124, 58, 237, 0.38); background: rgba(124, 58, 237, 0.05);
  box-shadow: 0 14px 44px rgba(124, 58, 237, 0.1);
}
[data-theme="dark"] .compare-good { box-shadow: 0 14px 44px rgba(99, 102, 241, 0.12); }
.compare-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 700;
}
.compare-tag svg { width: 0.95rem; height: 0.95rem; }
.compare-tag-bad { color: #dc2626; }
.compare-tag-good { color: var(--indigo); }
[data-theme="dark"] .compare-tag-bad { color: #f87171; }
[data-theme="dark"] .compare-tag-good { color: #a5b4fc; }
.compare-answer {
  flex: 1; margin: 0; padding: 0.9rem 1rem; border-radius: 0.9rem;
  font-size: 0.9rem; line-height: 1.6; color: var(--text);
  background: var(--bg-card); border: 1px solid var(--border);
}
.compare-note, .compare-source {
  margin: 0; display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 500; line-height: 1.5;
}
.compare-note { color: #dc2626; }
.compare-source { color: #047857; }
[data-theme="dark"] .compare-note { color: #f87171; }
[data-theme="dark"] .compare-source { color: #6ee7b7; }
.compare-note svg, .compare-source svg { width: 0.9rem; height: 0.9rem; margin-top: 0.1rem; flex-shrink: 0; }

/* Why Qefro — trust triad */
.why-tri { display: grid; gap: 1.25rem; max-width: 60rem; margin: 0 auto; grid-template-columns: 1fr; }
@media (min-width: 768px) { .why-tri { grid-template-columns: repeat(3, 1fr); } }
.why-item {
  padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--card-shadow);
}
.why-item-head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.65rem; }
.why-ico {
  width: 2.25rem; height: 2.25rem; border-radius: 0.6rem; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(124, 58, 237, 0.1); border: 1px solid rgba(124, 58, 237, 0.2); color: var(--cap-icon-color);
}
.why-ico svg { width: 1.1rem; height: 1.1rem; }
.why-item h3 { margin: 0; font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.why-item p { margin: 0; font-size: 0.85rem; color: var(--text-sub); line-height: 1.6; }

/* Trust */
.trust-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-card {
  padding: 1.5rem; border-radius: 1rem; text-align: center;
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--card-shadow);
}
.trust-card:hover {
  border-color: rgba(16,185,129,0.25); background: rgba(16,185,129,0.04);
}
.trust-icon {
  width: 3rem; height: 3rem; margin: 0 auto 1rem; border-radius: 0.75rem;
  display: grid; place-items: center;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); color: var(--emerald);
}
.trust-icon svg { width: 1.25rem; height: 1.25rem; }
.trust-card h3 { margin: 0 0 0.5rem; font-size: 0.875rem; font-weight: 600; }
.trust-card p { margin: 0; font-size: 0.75rem; color: var(--text-sub); line-height: 1.6; }

/* Testimonials */
.t-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .t-grid { grid-template-columns: repeat(3, 1fr); } }
.t-card {
  display: flex; flex-direction: column; height: 100%;
  padding: 1.5rem; border-radius: 1rem;
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--card-shadow);
}
.t-card:hover { border-color: var(--border-strong); }
.t-stars { display: flex; gap: 0.125rem; margin-bottom: 1rem; color: #facc15; }
.t-stars svg { width: 0.875rem; height: 0.875rem; fill: currentColor; }
.t-quote { flex: 1; margin: 0 0 1.5rem; font-size: 0.875rem; color: var(--quote-text); line-height: 1.65; }
.t-person { display: flex; align-items: center; gap: 0.75rem; }
.t-avatar {
  width: 2.25rem; height: 2.25rem; border-radius: 999px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--av-from, #7c3aed), var(--av-to, #a855f7));
}
.t-person strong { display: block; font-size: 0.875rem; }
.t-person span { font-size: 0.75rem; color: var(--text-muted); }

/* Pricing */
.price-grid {
  display: grid; gap: 1.25rem; align-items: start;
}
@media (min-width: 768px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .price-grid { grid-template-columns: repeat(4, 1fr); } }
.price-card {
  position: relative; display: flex; flex-direction: column;
  padding: 1.75rem; border-radius: 1rem;
  border: 1px solid var(--price-card-border); background: var(--price-card-bg);
  box-shadow: var(--card-shadow);
}
.price-card[data-price-cta] { cursor: pointer; }
.price-card.is-popular {
  transform: scale(1.02);
  background: var(--price-popular-bg);
  border-color: var(--price-popular-border);
  box-shadow: var(--price-popular-shadow);
}
.price-pop {
  position: absolute; top: -0.875rem; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.875rem; border-radius: 0.5rem;
  background: var(--color-accent); color: #fff; font-size: 0.75rem; font-weight: 700;
  box-shadow: var(--shadow-md); white-space: nowrap;
}
.price-pop svg { width: 0.75rem; height: 0.75rem; }
.price-card h3 { margin: 0 0 0.25rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.price-amount {
  display: flex; align-items: baseline; gap: 0.25rem; margin: 0.5rem 0;
  font-family: var(--font-display); font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em;
}
.price-amount span { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); font-family: var(--font-sans); }
.price-billed { margin: 0 0 0.75rem; font-size: 0.75rem; color: var(--text-muted); }
.billing-toggle {
  display: flex; width: fit-content; gap: 0.25rem; margin: 0 auto 1.75rem; padding: 0.25rem;
  border: 1px solid var(--border); border-radius: 999px; background: var(--price-card-bg);
}
.billing-toggle button {
  border: 0; background: transparent; color: var(--text-muted); cursor: pointer;
  min-height: 2.5rem; padding: 0.55rem 1.25rem; border-radius: 999px;
  font-size: 0.875rem; font-weight: 600;
}
.billing-toggle button:hover { color: var(--text-strong); }
.billing-toggle button.is-active {
  background: var(--color-accent); color: #fff;
  box-shadow: var(--shadow-sm);
}
.billing-toggle button:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
}
.billing-toggle button span {
  margin-left: 0.4rem; font-size: 0.625rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.price-desc { margin: 0 0 1.5rem; font-size: 0.875rem; color: var(--text-muted); }
.price-best {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--hero-pipeline-k, var(--text-sub));
}
.price-fair-use {
  margin: 0.75rem 0 1rem !important;
  font-size: 0.75rem !important;
}
.price-fair-use a { text-decoration: underline; text-underline-offset: 2px; }
.price-feats { display: grid; gap: 0.65rem; margin: 0 0 1.75rem; flex: 1; }
.price-feats li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--feat-text);
}
.price-feats svg {
  width: 1rem;
  height: 1rem;
  color: var(--emerald);
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.price-feat-body {
  flex: 1;
  min-width: 0;
  line-height: 1.45;
}
.price-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.price-card .btn { width: 100%; }
.price-card:not(.is-popular) .btn-plan {
  background: var(--btn-plan-bg); border: 1px solid var(--btn-plan-border); color: var(--btn-plan-color);
}
.price-card:not(.is-popular) .btn-plan:hover { background: var(--btn-plan-hover-bg); }

/* FAQ */
.faq-list { display: grid; gap: 0.75rem; max-width: 42rem; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: 1rem; overflow: hidden;
  background: var(--faq-item-bg); box-shadow: var(--card-shadow);
}
.faq-item.is-open {
  border-color: rgba(99,102,241,0.3); background: var(--faq-open-bg);
}
.faq-item button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; text-align: left; font-weight: 600; font-size: 0.9rem; color: var(--faq-btn);
}
.faq-item.is-open button { color: var(--faq-btn-open); }
.faq-chevron {
  width: 1.5rem; height: 1.5rem; border-radius: 999px; flex-shrink: 0;
  display: grid; place-items: center; border: 1px solid var(--faq-chevron-border); color: var(--text-muted);
}
.faq-item.is-open .faq-chevron {
  border-color: rgba(99,102,241,0.5); background: rgba(99,102,241,0.2); color: #818cf8;
}
.faq-a { display: none; padding: 0 1.5rem 1.25rem; color: var(--text-muted); font-size: 0.875rem; line-height: 1.65; }
.faq-item.is-open .faq-a { display: block; }

/* Page hero (inner pages) */
.page-hero {
  padding: clamp(4rem, 8vw, 6rem) var(--pad) 2rem; text-align: center; position: relative; z-index: 1;
  overflow: hidden;
}
/* Subtle grid motif, matching the homepage hero (theme-aware) */
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--ambient-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--ambient-grid-color) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: var(--ambient-grid-opacity);
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 0%, #000 35%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 85% at 50% 0%, #000 35%, transparent 100%);
}
.page-hero-inner {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.page-hero-inner .badge {
  margin-bottom: 0.25rem;
}
.page-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em;
}
.breadcrumbs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem;
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.25rem;
}
.breadcrumbs a:hover { color: var(--link-hover); }
.prose { max-width: 42rem; margin-inline: auto; text-align: left; color: var(--text-sub); }
.prose h2 {
  font-family: var(--font-display); color: var(--text-strong); letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem; font-size: 1.5rem;
}
.prose h3 {
  font-family: var(--font-display); color: var(--text-strong); letter-spacing: -0.02em;
  margin: 1.5rem 0 0.5rem; font-size: 1.15rem;
}
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0.5rem 0 1rem; padding-left: 1.1rem; list-style: disc; }
.prose li { margin: 0.35rem 0; }
.prose a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--color-foreground); }

/* Final CTA */
.cta-final {
  padding: var(--space-3xl) var(--pad); text-align: center; position: relative; overflow: hidden;
  background: var(--section-alt-bg);
  border-top: 1px solid var(--border);
  color: var(--text);
}
.cta-final h2 { color: var(--text-strong); }
.cta-final p { color: var(--text-sub); }
.cta-final-glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 300px; background: var(--cta-glow);
  border-radius: 999px; filter: blur(100px); pointer-events: none;
}
.cta-final h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em;
  color: var(--text-strong);
}
.cta-final p { margin: 0 auto 2rem; max-width: 32rem; color: var(--text-sub); font-size: 1.125rem; }
.cta-final .hero-actions { margin-bottom: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--footer-border);
  padding: 3rem var(--pad) 2rem; position: relative; z-index: 1;
}
.footer-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 2rem; margin-bottom: 2.5rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.875rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--link-hover); }
.footer-bottom {
  border-top: 1px solid var(--footer-border); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  font-size: 0.75rem; color: var(--footer-muted);
}

/* Chat demo mock */
.chat-demo {
  border: 1px solid var(--border); border-radius: 1.25rem;
  background: var(--chat-bg); overflow: hidden;
  box-shadow: var(--chat-shadow);
}
.chat-demo-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 600; color: var(--chat-bar-text);
}
.chat-demo-bar i {
  width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--emerald);
  box-shadow: 0 0 8px rgba(16,185,129,0.6);
}
.chat-demo-body { padding: 1.25rem; display: grid; gap: 0.85rem; min-height: 220px; }
.bubble {
  max-width: 85%; padding: 0.75rem 1rem; border-radius: 1rem;
  font-size: 0.875rem; line-height: 1.55;
}
.bubble-ai {
  background: var(--bubble-ai-bg); border: 1px solid var(--bubble-ai-border); color: var(--bubble-ai-text);
  border-bottom-left-radius: 0.25rem;
}
.bubble-user {
  margin-left: auto; background: var(--bubble-user-bg); border: 1px solid var(--border); color: var(--bubble-user-text);
  border-bottom-right-radius: 0.25rem;
}
.chat-suggestions {
  display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 1.25rem 1.25rem;
}
.chat-suggestions button {
  padding: 0.45rem 0.85rem; border-radius: 999px; font-size: 0.75rem;
  border: 1px solid var(--border); background: var(--chat-chip-bg); color: var(--text-sub);
}
.chat-suggestions button:hover,
.chat-suggestions button.is-active {
  border-color: rgba(99,102,241,0.4); background: rgba(99,102,241,0.12); color: var(--chat-chip-active-color);
}

/* Widget demo hint */
.widget-demo-hint { text-align: left; }
.demo-split {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 960px) {
  .demo-split { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.demo-copy .badge { margin-bottom: 1rem; }
.demo-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800; letter-spacing: -0.02em;
}
.demo-copy > p {
  margin: 0 0 1.5rem; color: var(--text-sub); line-height: 1.7;
}
button.demo-chat {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
button.demo-chat:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 4px;
  border-radius: 1.25rem;
}
button.demo-chat:hover .chat-mock {
  border-color: var(--hero-pipeline-accent-border);
}
.demo-chip {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-sub);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.demo-chip:hover { color: var(--color-accent); }
.chat-mock {
  background: var(--chat-bg);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--chat-shadow);
  overflow: hidden;
}
.chat-mock-head {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(124,58,237,0.06), transparent);
}
.chat-mock-avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
  display: grid; place-items: center;
  background: rgba(124,58,237,0.12); color: var(--indigo);
}
.chat-mock-avatar svg { width: 1.25rem; height: 1.25rem; }
.chat-mock-head strong { display: block; font-size: 0.9375rem; }
.chat-mock-head span { font-size: 0.75rem; color: var(--text-muted); }
.chat-mock-body {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 1.25rem; min-height: 14rem;
}
.chat-bubble {
  max-width: 88%; padding: 0.75rem 1rem; border-radius: 1rem;
  font-size: 0.8125rem; line-height: 1.55;
}
.chat-bubble.ai {
  align-self: flex-start;
  background: var(--bubble-ai-bg);
  border: 1px solid var(--bubble-ai-border);
  color: var(--bubble-ai-text);
}
.chat-bubble.user {
  align-self: flex-end;
  background: var(--bubble-user-bg);
  color: var(--bubble-user-text);
}
.chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 1.25rem;
}
.chat-typing span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.45;
  animation: chat-dot 1s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-dot {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}
.chat-source {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.15rem 0 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  width: fit-content;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(8, 145, 178, 0.08);
  border: 1px solid rgba(8, 145, 178, 0.2);
}
.chat-source-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--color-accent);
}
.chat-source-check {
  color: var(--emerald);
  font-weight: 700;
}
.arch-lines {
  display: block;
  width: min(16rem, 70%);
  height: 2.5rem;
  margin: 0 auto;
  color: var(--hero-pipeline-arrow);
}
@media (prefers-reduced-motion: reduce) {
  .chat-typing span { animation: none; opacity: 0.7; }
}
.chat-mock-input {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  margin: 0 1rem 1rem; padding: 0.75rem 1rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--chat-chip-bg); color: var(--chat-bar-text); font-size: 0.8125rem;
}
.chat-mock-input .chat-mock-send {
  width: 2rem; height: 2rem; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--indigo); color: #fff; flex-shrink: 0;
}
.chat-mock-input .chat-mock-send svg { width: 0.875rem; height: 0.875rem; }
.widget-demo-card {
  display: flex; align-items: flex-start; gap: 1rem; text-align: left;
  padding: 1.25rem 1.5rem; border-radius: 1rem;
  border: 1px solid var(--border); background: var(--bg-card);
  box-shadow: var(--card-shadow);
}
.widget-demo-icon {
  width: 3rem; height: 3rem; border-radius: 0.9rem; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.2); color: var(--cap-icon-color);
}
.widget-demo-icon svg { width: 1.5rem; height: 1.5rem; }
.widget-demo-card strong {
  display: block; margin-bottom: 0.35rem; font-size: 1rem; color: var(--text-strong);
}
.widget-demo-card p {
  margin: 0; font-size: 0.9rem; color: var(--text-sub); line-height: 1.6;
}
.widget-demo-suggestions {
  margin: 1rem 0 0; font-size: 0.85rem; color: var(--text-muted);
}
.widget-demo-suggestions span { color: var(--text-sub); font-weight: 500; }

/* Keep demo widget pinned above mobile browser chrome */
#ai-widget-container {
  position: fixed !important;
  z-index: 2147483000 !important;
  pointer-events: auto;
}
#ai-widget-container.bottom-right {
  right: max(12px, env(safe-area-inset-right)) !important;
  bottom: max(12px, env(safe-area-inset-bottom)) !important;
}
#ai-widget-container.bottom-left {
  left: max(12px, env(safe-area-inset-left)) !important;
  bottom: max(12px, env(safe-area-inset-bottom)) !important;
}
@media (max-width: 640px) {
  .ai-widget-trigger {
    width: 60px !important;
    height: 60px !important;
  }
}

.reveal { opacity: 1; transform: none; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .chat-typing span { animation: none; opacity: 0.7; }
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg);
}
.contact-grid {
  display: grid;
  gap: 1rem;
}
.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.contact-form .input,
.contact-form textarea.input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.contact-alt {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Scenario cards — more than a chatbot */
.scenario-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .scenario-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .scenario-grid { grid-template-columns: repeat(4, 1fr); } }
.scenario-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex; flex-direction: column; gap: 1rem;
}
.scenario-card:hover {
  border-color: rgba(124, 58, 237, 0.35);
}
.scenario-ask {
  margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--text); line-height: 1.4;
}
.scenario-ask span {
  display: block; margin-bottom: 0.35rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--indigo);
}
.scenario-flow {
  display: flex; flex-direction: column; gap: 0.35rem;
  font-size: 0.82rem; color: var(--text-sub); line-height: 1.35;
}
.scenario-flow .scenario-arrow {
  color: var(--indigo); font-weight: 600; opacity: 0.75;
}

/* Outcome feature columns */
.outcome-grid {
  display: grid; gap: 1.25rem;
}
@media (min-width: 640px) { .outcome-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .outcome-grid { grid-template-columns: repeat(4, 1fr); } }
.outcome-card {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.outcome-card h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em;
}
.outcome-card ul {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 0.55rem;
}
.outcome-card li {
  position: relative; padding-left: 1rem;
  font-size: 0.9rem; color: var(--text-sub);
}
.outcome-card li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem;
  width: 0.35rem; height: 0.35rem; border-radius: 50%;
  background: var(--indigo);
}

.integrations-note {
  margin: 1.5rem 0 0; text-align: center;
  font-size: 0.875rem; color: var(--text-sub);
}
.integrations-note a:not(.btn) { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
[data-theme="dark"] .integrations-note a:not(.btn) { color: #67e8f9; }
.integrations-note .btn { text-decoration: none; }

/* Developer identify() split */
.dev-split {
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 900px) {
  .dev-split { grid-template-columns: 1fr 1.05fr; gap: 3rem; }
}
.dev-copy .badge { margin-bottom: 1rem; }
.dev-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700; letter-spacing: -0.02em;
}
.dev-copy p {
  margin: 0; color: var(--text-sub); font-size: 1.05rem; line-height: 1.6;
}
.dev-copy code {
  font-family: var(--font-mono); font-size: 0.9em;
  padding: 0.1em 0.35em; border-radius: 0.35rem;
  background: rgba(124, 58, 237, 0.1); color: var(--indigo);
}
.code-panel {
  margin: 0; padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0f1220;
  color: #e2e8f0;
  overflow-x: auto;
  font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.65;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}
.code-panel code { font: inherit; color: inherit; white-space: pre; }
[data-theme="light"] .code-panel {
  background: #111827; border-color: #1f2937;
}

/* Approach comparison */
.approach-compare {
  display: grid; gap: 1.25rem;
}
@media (min-width: 768px) { .approach-compare { grid-template-columns: 1fr 1fr; } }
.approach-card {
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg);
}
.approach-card h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
}
.approach-card ul {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 0.6rem;
}
.approach-card li {
  font-size: 0.92rem; color: var(--text);
  padding-left: 1.15rem; position: relative;
}
.approach-card li::before {
  content: "✓"; position: absolute; left: 0; color: var(--indigo); font-weight: 700;
}
.approach-card li.muted {
  color: var(--text-muted);
}
.approach-card li.muted::before {
  content: "–"; color: var(--text-muted); font-weight: 500;
}
.approach-card-featured {
  border-color: rgba(124, 58, 237, 0.4);
  background: linear-gradient(165deg, rgba(124, 58, 237, 0.1), var(--card-bg));
  box-shadow: 0 14px 36px rgba(124, 58, 237, 0.1);
}

.vision-copy {
  margin: 1.25rem auto 0; max-width: 36rem;
  color: var(--text-sub); font-size: 1.05rem; line-height: 1.65;
}

.trust-band {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg);
}
.trust-band span {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-muted);
}
.trust-band span:not(:last-child)::after {
  content: "·"; margin-left: 1.25rem; color: var(--border);
  font-weight: 400;
}
@media (max-width: 640px) {
  .trust-band span:not(:last-child)::after { display: none; }
}

.mobile-panel {
  display: none; border-top: 1px solid var(--header-border);
  padding: 1rem 1.25rem 1.25rem; background: var(--mobile-panel-bg);
}
.mobile-panel a {
  display: block; padding: 0.65rem 1rem; border-radius: 0.75rem;
  font-size: 0.875rem; color: var(--text-muted);
}
.mobile-panel a:hover { color: var(--link-hover); background: var(--nav-hover-bg); }
.mobile-panel-tools {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0 0.75rem; margin-top: 0.5rem;
  border-top: 1px solid var(--header-border);
}
.site-header.is-open .mobile-panel { display: block; }

.compare-advantage {
  font-weight: 700;
  color: var(--emerald);
}
  margin: 3.25rem auto 0;
  max-width: 44rem;
  display: grid;
  gap: 1.25rem;
  text-align: center;
}
.arch-hub {
  margin: 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--hero-pipeline-accent-border);
  background: var(--hero-pipeline-accent-bg);
  box-shadow: var(--shadow-sm);
}
.arch-hub-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--hero-pipeline-v);
}
.arch-hub-sub {
  font-size: 0.75rem;
  color: var(--hero-pipeline-d);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.arch-diagram-flow {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  gap: 0.85rem;
}
.arch-diagram-flow .arch-hub {
  position: relative;
}
.arch-diagram-flow .arch-hub::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.85rem;
  width: 2px;
  height: 0.85rem;
  transform: translateX(-50%);
  background: var(--hero-pipeline-border);
}
.arch-flow-label {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--hero-pipeline-d);
}
.arch-channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  position: relative;
}
.arch-channels::before {
  content: "";
  position: absolute;
  top: -0.85rem;
  left: 25%;
  right: 25%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hero-pipeline-border), transparent);
}
.arch-channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid var(--hero-pipeline-border);
  background: var(--hero-pipeline-bg);
  color: var(--hero-pipeline-v);
}
.arch-channel-accent {
  border-color: var(--hero-pipeline-accent-border);
  background: var(--hero-pipeline-accent-bg);
}
.arch-channel-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.2rem;
  border-radius: 0.5rem;
  color: var(--hero-pipeline-k);
  background: var(--hero-eyebrow-bg);
}
.arch-channel-icon svg { width: 1.05rem; height: 1.05rem; }
[data-theme="dark"] .arch-channel-icon { color: #67e8f9; }
.arch-channel strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--hero-pipeline-v);
}
.arch-channel span {
  font-size: 0.72rem;
  color: var(--hero-pipeline-d);
}
.arch-foundation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.arch-foundation span {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: 0.02em;
}
[data-theme="dark"] .arch-foundation span {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
}
@media (max-width: 640px) {
  .arch-channels { grid-template-columns: 1fr; }
  .arch-channels::before { display: none; }
  .arch-diagram-flow .arch-hub::after { display: none; }
}

/* Configure once → deploy everywhere */
.deploy-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: stretch;
  max-width: 48rem;
  margin: 0 auto;
}
.deploy-col {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--card-shadow);
}
.deploy-col-accent {
  border-color: var(--hero-pipeline-accent-border);
  background: var(--hero-pipeline-accent-bg);
}
.deploy-col h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.deploy-col ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.deploy-col li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--text-sub);
}
.deploy-col svg {
  width: 1rem;
  height: 1rem;
  color: var(--emerald);
  flex-shrink: 0;
}
.deploy-arrow {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  align-self: center;
}
.deploy-arrow svg { width: 1.35rem; height: 1.35rem; }
@media (max-width: 720px) {
  .deploy-flow { grid-template-columns: 1fr; }
  .deploy-arrow { transform: rotate(90deg); }
}

/* Product UI mocks (Admin Console + Internal Portal) */
.product-mock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.product-mock {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.product-mock figcaption {
  display: grid;
  gap: 0.15rem;
}
.product-mock figcaption strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}
.product-mock figcaption span {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.mock-ui {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  min-height: 14rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.mock-sidebar {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 0.85rem 0.65rem;
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.mock-sidebar span {
  padding: 0.4rem 0.55rem;
  border-radius: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}
.mock-sidebar span.is-active {
  background: var(--hero-pipeline-accent-bg);
  color: var(--hero-pipeline-v);
  border: 1px solid var(--hero-pipeline-accent-border);
}
.mock-main { padding: 0.85rem; display: grid; gap: 0.75rem; }
.mock-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}
.mock-toolbar strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}
.mock-toolbar em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.mock-rows { display: grid; gap: 0.45rem; }
.mock-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.78rem;
}
.mock-rows b { font-weight: 700; color: var(--text); }
.mock-rows span { color: var(--text-muted); }
.mock-chat { display: grid; gap: 0.55rem; align-content: start; }
.mock-bubble {
  max-width: 92%;
  padding: 0.65rem 0.8rem;
  border-radius: 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
}
.mock-bubble.user {
  justify-self: end;
  background: var(--hero-pipeline-accent-bg);
  border: 1px solid var(--hero-pipeline-accent-border);
  color: var(--hero-pipeline-v);
}
.mock-bubble.ai {
  justify-self: start;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-sub);
}
.mock-sources {
  font-size: 0.7rem;
  color: var(--text-muted);
  padding-left: 0.15rem;
}
@media (max-width: 900px) {
  .product-mock-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .mock-ui { grid-template-columns: 1fr; }
  .mock-sidebar {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

/* Trusted / industry placeholders */
.logo-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.logo-placeholder {
  padding: 0.55rem 1rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-sub);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
[data-theme="dark"] .logo-placeholder {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

/* Three experiences */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.exp-card {
  padding: var(--space-md);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.exp-card-featured {
  border-color: var(--price-popular-border);
  background: var(--surface-featured);
  box-shadow: var(--shadow-md);
}
[data-theme="dark"] .exp-card-featured {
  color: var(--text);
}
[data-theme="dark"] .exp-card-featured > p,
[data-theme="dark"] .exp-card-featured li {
  color: var(--text-sub);
}
.exp-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  color: var(--color-accent);
  background: var(--surface-accent-soft);
}
[data-theme="dark"] .exp-icon { color: #67e8f9; }
.exp-icon svg { width: 1.2rem; height: 1.2rem; }
.exp-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.exp-card > p {
  margin: 0 0 1.15rem;
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.6;
}
.exp-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.exp-card li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--cap-text);
}
.exp-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--indigo);
  opacity: 0.7;
}
@media (max-width: 900px) {
  .exp-grid { grid-template-columns: 1fr; }
}

/* AI Workspaces */
.workspace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.workspace-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.workspace-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.workspace-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.5;
}
@media (max-width: 900px) {
  .workspace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .workspace-grid { grid-template-columns: 1fr; }
}

/* Channel cards */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.channel-card {
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.channel-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  color: var(--color-accent);
  background: var(--surface-accent-soft);
}
[data-theme="dark"] .channel-icon { color: #67e8f9; }
.channel-icon svg { width: 1.15rem; height: 1.15rem; }
.channel-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.channel-card p {
  margin: 0;
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.6;
}
.channel-card code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--text-strong);
}
@media (max-width: 900px) {
  .channel-grid { grid-template-columns: 1fr; }
}

/* Feature comparison table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--card-shadow);
}
.compare-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.compare-table th,
.compare-table td {
  padding: 0.95rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--text-strong);
  background: var(--surface);
}
.compare-table th:nth-child(3),
.compare-table td:nth-child(3) {
  color: var(--color-accent);
  font-weight: 600;
  background: var(--surface-accent-soft);
}
[data-theme="dark"] .compare-table th:nth-child(3),
[data-theme="dark"] .compare-table td:nth-child(3) {
  color: #67e8f9;
}
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-caption {
  caption-side: bottom;
  padding-top: 1rem;
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.compare-caption a {
  color: var(--text-sub);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.workspace-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.75rem;
}
.workspace-pill {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--text-sub);
}
.trust-strip .logo-placeholder {
  max-width: 16rem;
}
.compare-table td:first-child {
  color: var(--text-strong);
  font-weight: 500;
}
.compare-table td:nth-child(2) { color: var(--text-sub); }
[data-theme="dark"] .compare-table th:nth-child(3),
[data-theme="dark"] .compare-table td:nth-child(3) {
  color: #c4b5fd;
}

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-link { display: none; }
  .nav-toggle { display: grid; }
  .price-card.is-popular { transform: none; }
  .uc-list { grid-template-columns: 1fr; }
  .section { padding: 4rem var(--pad); }
  .hero { padding-top: clamp(4.5rem, 10vw, 6rem); }
}

/* ── Depth / hover polish (lightweight, CSS-only) ─────────────────── */
.hero-grid { z-index: -1; }