/* =============================================================================
   4everyone — Public marketing site
   Design system. Dark-first, light mode supported. Tokens per launch kit
   (03-design-direction.md). Premium, restrained, software-native.
   ============================================================================= */

/* Self-hosted Inter (variable) — no external font requests / no third-country
   transfer (GDPR). Files in /assets/fonts. latin covers DE/ES (Latin-1). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Color tokens (launch-kit default set) */
  --bg-primary: #07080d;
  --surface-elevated: #11131c;
  --surface-soft: #181b27;
  --text-primary: #f5f7fb;
  --text-secondary: #a8afbf;
  --text-muted: #737b8c;
  --accent-primary: #8b5cf6;
  --accent-secondary: #38bdf8;
  --accent-trust: #22c55e;
  --accent-warning: #f59e0b;
  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);

  --logo: url("/assets/brand/logo-mark-dark.png");
  --glow: radial-gradient(60% 60% at 50% 0%, rgba(139, 92, 246, 0.20), transparent 70%);
  /* Restrained violet→sky gradient — used ONLY for the hero phrase (per launch-kit tokens). */
  --c-accent-grad: linear-gradient(100deg, #8b5cf6 0%, #38bdf8 100%);

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --fs-display: clamp(2.6rem, 6vw, 4.6rem);
  --fs-h1: clamp(2.2rem, 5vw, 3.6rem);
  --fs-h2: clamp(1.8rem, 3.6vw, 2.7rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.45rem);
  --fs-lead: clamp(1.08rem, 1.7vw, 1.32rem);
  --fs-body: 1.01rem;

  /* Layout */
  --maxw: 1160px;
  --maxw-narrow: 760px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --shadow-card: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
  --ease: cubic-bezier(0.22, 0.72, 0.2, 1);
}

/* Light mode — preserve premium feel, strong contrast, defined borders */
:root[data-theme="light"] {
  --bg-primary: #fbfbfd;
  --surface-elevated: #ffffff;
  --surface-soft: #f2f3f8;
  --text-primary: #0d0f18;
  --text-secondary: #454b5c;
  --text-muted: #6b7284;
  --border-subtle: rgba(13, 15, 24, 0.10);
  --border-strong: rgba(13, 15, 24, 0.16);
  --logo: url("/assets/brand/logo-mark-light.png");
  --glow: radial-gradient(60% 60% at 50% 0%, rgba(139, 92, 246, 0.12), transparent 70%);
  --shadow-card: 0 24px 60px -34px rgba(23, 27, 48, 0.34);
}

/* ---------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-sans); font-size: var(--fs-body);
  line-height: 1.65; color: var(--text-primary); background: var(--bg-primary);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 650; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }
.narrow { max-width: var(--maxw-narrow); }

.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; }
:where(a, button, input, textarea, select, [tabindex]):focus-visible { outline: 2px solid var(--accent-secondary); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 1rem; top: -3.5rem; z-index: 200; background: var(--accent-primary); color: #fff; padding: 0.6rem 1rem; border-radius: 10px; transition: top 0.2s var(--ease); }
.skip-link:focus { top: 1rem; }

.accent { color: var(--accent-primary); }
.text-secondary { color: var(--text-secondary); }
.grad-text { background: var(--c-accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.8rem 1.5rem; font: inherit; font-size: 1rem; font-weight: 600;
  border-radius: 12px; border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-primary { background: var(--accent-primary); color: #fff; box-shadow: 0 14px 34px -14px rgba(139, 92, 246, 0.9); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -16px rgba(139, 92, 246, 1); }
.btn-secondary { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--accent-secondary); }
.btn-lg { min-height: 56px; padding: 1rem 2rem; font-size: 1.06rem; }
.btn-link { color: var(--accent-secondary); font-weight: 600; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; }
.btn-link:hover { color: var(--accent-primary); }
.btn-link svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.btn-link:hover svg { transform: translateX(3px); }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg-primary) 82%, transparent);
  backdrop-filter: blur(16px); border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--border-subtle); }
.nav { display: flex; align-items: center; gap: 1.2rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; flex: none; }
/* Frameless wordmark — transparent PNG, flows with the header, theme-aware */
.brand-logo {
  display: block; height: 34px; width: 172px;
  background: var(--logo) left center / contain no-repeat;
}
.brand .brand-fallback { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; }
.brand .brand-fallback b { color: var(--accent-primary); }
.nav-links { display: flex; align-items: center; gap: 1.7rem; margin-left: 1.4rem; }
.nav-links a { color: var(--text-secondary); font-size: 0.96rem; font-weight: 500; transition: color 0.2s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-primary); }
.nav-right { display: flex; align-items: center; gap: 0.7rem; margin-left: auto; }

/* Language dropdown (extensible: add locales in build/layout.mjs) */
.lang-dd { position: relative; }
.lang-dd-btn { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; padding: 0.4rem 0.7rem; border-radius: 999px; border: 1px solid var(--border-subtle); background: var(--surface-soft); color: var(--text-secondary); font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.lang-dd-btn:hover { color: var(--text-primary); border-color: var(--border-strong); }
.lang-dd-flag { font-size: 1.05rem; line-height: 1; flex: none; }
.lang-dd-cur { letter-spacing: 0.03em; }
.lang-dd-btn > svg:last-child { width: 13px; height: 13px; flex: none; transition: transform 0.2s var(--ease); }
.lang-dd[data-open="true"] .lang-dd-btn > svg:last-child { transform: rotate(180deg); }
.lang-dd-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 120px; list-style: none; margin: 0; padding: 6px; background: var(--surface-elevated); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow-md); z-index: 120; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s; }
.lang-dd[data-open="true"] .lang-dd-menu { opacity: 1; visibility: visible; transform: none; }
.lang-dd-menu a { display: flex; align-items: center; justify-content: space-between; gap: 0.9rem; padding: 0.5rem 0.7rem; border-radius: 8px; font-size: 0.92rem; color: var(--text-secondary); min-height: 44px; }
.lang-dd-menu a:hover { background: var(--surface-soft); color: var(--text-primary); }
.lang-dd-menu a[aria-current="true"] { color: var(--text-primary); font-weight: 600; }
.dd-lang { display: inline-flex; align-items: center; gap: 0.55rem; }
.dd-flag { font-size: 1.05rem; line-height: 1; }
.dd-code { letter-spacing: 0.03em; }
.dd-check { display: inline-flex; }
.dd-check svg { width: 16px; height: 16px; color: var(--accent-primary); }

.theme-toggle, .nav-toggle {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--border-subtle); border-radius: 11px;
  cursor: pointer; color: var(--text-primary);
}
.theme-toggle svg, .nav-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
.nav-toggle { display: none; }
.nav-cta { display: inline-flex; }
.nav-cta-mobile { display: none; }

/* ---------------------------------------------------------------- Sections */
.section { padding-block: var(--section-y); position: relative; }
.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-secondary); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.6; }
.section-head.center .eyebrow { justify-content: center; }
.section-title { font-size: var(--fs-h2); }
.section-lead { color: var(--text-secondary); font-size: var(--fs-lead); margin-top: 1.1rem; }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -25% 0 auto 0; height: 640px; background: var(--glow); pointer-events: none; }
.hero .container { position: relative; }
.hero-eyebrow { color: var(--text-secondary); font-size: 0.88rem; font-weight: 600; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.9rem; border: 1px solid var(--border-subtle); border-radius: 999px; background: var(--surface-elevated); }
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-trust); }
.hero-title { font-size: var(--fs-display); max-width: 15ch; margin-top: 1.6rem; }
.hero-sub { color: var(--text-secondary); font-size: var(--fs-lead); max-width: 54ch; margin-top: 1.4rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy .hero-title { max-width: 16ch; }

/* Trust strip */
.trust-strip { display: flex; flex-wrap: wrap; gap: 0.8rem 1.8rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--border-subtle); }

/* ---------------------------------------------------------------- Chat mock (hero centerpiece) */
.chat-mock {
  border-radius: 20px; border: 1px solid var(--border-strong); overflow: hidden;
  background: var(--surface-elevated);
  box-shadow: 0 0 0 1px rgba(139,92,246,0.14), 0 40px 90px -40px rgba(139,92,246,0.5), var(--shadow-card);
}
.chat-topbar { display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--border-subtle); background: var(--surface-soft); }
.win-dots { display: inline-flex; gap: 5px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.chat-title { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.chat-badge { margin-left: auto; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); border: 1px dashed var(--border-strong); border-radius: 999px; padding: 0.25rem 0.6rem; }

.chat-scroll { padding: 1.2rem; display: grid; gap: 0.9rem; }
/* Conversation section inside the window (divided by a hairline) */
.chat-thread { display: grid; gap: 0.85rem; padding: 0 0.1rem 0.9rem; border-bottom: 1px solid var(--border-subtle); }
.chat-msg { max-width: 92%; }
.chat-msg p { margin: 0; }
.chat-msg.user { justify-self: end; background: var(--accent-primary); color: #fff; padding: 0.7rem 0.95rem; border-radius: 14px 14px 4px 14px; font-size: 0.95rem; box-shadow: 0 10px 24px -14px rgba(139,92,246,0.9); }
.chat-msg.ai { justify-self: start; width: 100%; max-width: 100%; background: var(--surface-soft); border: 1px solid var(--border-subtle); padding: 0.9rem 1rem; border-radius: 4px 14px 14px 14px; }
.chat-ai-head { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 0.5rem; }
.ai-dot { width: 16px; height: 16px; border-radius: 5px; background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); }
.chat-ai-intro { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 0.7rem; }

.build-steps { display: grid; gap: 0.5rem; }
.build-steps li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--text-muted); }
.step-mark { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); position: relative; transition: border-color 0.3s var(--ease), background 0.3s var(--ease); }
.build-steps li.active .step-mark { border-color: var(--accent-secondary); border-right-color: transparent; animation: spin 0.7s linear infinite; }
.build-steps li.done { color: var(--text-primary); }
.build-steps li.done .step-mark { border-color: var(--accent-trust); background: var(--accent-trust); animation: none; }
.build-steps li.done .step-mark::after { content: ""; position: absolute; inset: 0; background: no-repeat center/10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10l4 4 8-9'/%3E%3C/svg%3E"); }
@keyframes spin { to { transform: rotate(360deg); } }

.live-chip { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.9rem; padding: 0.4rem 0.75rem; border-radius: 999px; background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.35); color: var(--text-primary); font-size: 0.82rem; opacity: 0; transform: translateY(6px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.composer-panel.built .live-chip { opacity: 1; transform: none; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-trust); box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
.live-url { font-family: var(--font-mono); color: var(--text-secondary); }

/* Composer panel — ONE unified chat window around thread + tabs + input */
.composer-panel { display: flex; flex-direction: column; gap: 0.85rem; padding: 1.1rem; border: 1px solid var(--border-strong); border-radius: 20px; background: var(--surface-elevated); box-shadow: 0 0 0 1px rgba(139,92,246,0.16), 0 40px 90px -46px rgba(139,92,246,0.55), var(--shadow-card); }
.cp-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cp-tab { display: inline-flex; align-items: center; gap: 0.42rem; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); padding: 0.42rem 0.75rem; border-radius: 10px; border: 1px solid var(--border-subtle); background: var(--surface-elevated); }
.cp-tab svg { width: 15px; height: 15px; color: var(--text-muted); }
.cp-tab b { font-weight: 700; color: var(--text-primary); background: var(--surface-soft); border-radius: 999px; padding: 0.05rem 0.42rem; font-size: 0.72rem; }
.cp-input-wrap { position: relative; }
.cp-input-wrap .composer-field { min-height: 2.6em; }
.cp-foot { display: flex; flex-wrap: wrap; gap: 1.3rem; padding: 0 0.25rem; }
.cp-foot-item { display: inline-flex; align-items: center; gap: 0.42rem; font-size: 0.86rem; font-weight: 600; color: var(--text-muted); }
.cp-foot-item svg { width: 15px; height: 15px; }
.cp-foot-item.is-accent { color: var(--accent-primary); }
.chip-drop { max-width: 168px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Inner input box (nested inside the window) */
.composer { border: 1px solid var(--border-subtle); border-radius: 14px; padding: 0.85rem; background: var(--bg-primary); }
.composer-field { width: 100%; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--text-primary); padding: 0.35rem 0.1rem; }
.composer-field::placeholder { color: var(--text-muted); opacity: 1; }
.composer-field:focus { outline: none; }
.composer-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-top: 0.5rem; }
.suggest-label { font-size: 0.8rem; color: var(--text-muted); margin-right: 0.1rem; }
button.chip { font-family: inherit; cursor: default; }
.suggest-chip { cursor: pointer; transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease); }
.suggest-chip:hover, .suggest-chip:focus-visible { border-color: var(--accent-primary); color: var(--text-primary); background: color-mix(in srgb, var(--accent-primary) 12%, transparent); }
.composer-bar { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.7rem; }
.composer-attach { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--border-subtle); background: transparent; color: var(--text-muted); cursor: pointer; }
.composer-attach svg { width: 17px; height: 17px; }
.chip { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); padding: 0.36rem 0.7rem; border-radius: 999px; border: 1px solid var(--border-subtle); background: var(--surface-soft); white-space: nowrap; }
.chip-i { display: inline-flex; color: var(--accent-secondary); }
.chip-i svg { width: 12px; height: 12px; }
.chip-active { color: var(--text-primary); border-color: var(--border-strong); }
.chip-drop { color: var(--text-muted); }
.chip-drop svg { width: 13px; height: 13px; }
.composer-send { width: 40px; height: 40px; flex: none; margin-left: auto; display: grid; place-items: center; border-radius: 11px; border: 0; background: var(--accent-primary); color: #fff; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(139,92,246,0.9); transition: transform 0.18s var(--ease); text-decoration: none; }
.composer-send:hover { transform: translateY(-1px); }
.composer-send svg { width: 19px; height: 19px; }
/* Hide the task chip on very small panels to avoid crowding */
@media (max-width: 420px) { .chip-drop { display: none; } }
.trust-strip li { display: flex; align-items: center; gap: 0.55rem; color: var(--text-secondary); font-size: 0.92rem; }
.trust-strip .check { color: var(--accent-trust); flex: none; }

/* ---------------------------------------------------------------- Generic grids/cards */
.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface-elevated); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 1.8rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card.hover:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.card p { color: var(--text-secondary); font-size: 0.98rem; }
.card .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--surface-soft); border: 1px solid var(--border-subtle); color: var(--accent-primary); font-weight: 700; margin-bottom: 1.1rem; }

/* Icon (geometric, restrained — no emoji) */
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-soft); border: 1px solid var(--border-subtle); margin-bottom: 1.1rem; color: var(--accent-secondary); }
.ico svg { width: 22px; height: 22px; }

/* Use-case cards with illustrative mini mock-ups */
.uc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.4rem; }
.uc-card { display: flex; flex-direction: column; background: var(--surface-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.25s var(--ease), border-color 0.25s var(--ease); }
.uc-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
/* Browser-style window frame around each visual (SVG mock or uploaded screenshot) */
.uc-frame { margin: 1.1rem 1.1rem 0; border: 1px solid var(--border-subtle); border-radius: 12px; overflow: hidden; background: var(--surface-elevated); box-shadow: 0 18px 40px -24px rgba(0,0,0,0.72); }
.uc-chrome { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--surface-soft); border-bottom: 1px solid var(--border-subtle); }
.uc-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.uc-dot:nth-child(1) { background: #ff5f57; } .uc-dot:nth-child(2) { background: #febc2e; } .uc-dot:nth-child(3) { background: #28c840; }
.uc-url { margin-left: 8px; flex: 1 1 auto; min-width: 0; text-align: center; font-size: 0.62rem; letter-spacing: 0.01em; color: var(--text-muted); background: var(--bg-primary); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 3px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-screen { position: relative; background: var(--surface-elevated); }
.uc-canvas .mock-svg, .uc-shot { display: block; width: 100%; height: auto; }
.uc-shot { display: none; }
.uc-screen.has-shot .uc-shot { display: block; }
.uc-screen.has-shot .uc-canvas { display: none; }
.uc-body { padding: 1.1rem 1.3rem 1.4rem; }
.uc-body h3 { font-size: 1.06rem; margin-bottom: 0.3rem; }
.uc-body p { color: var(--text-secondary); font-size: 0.93rem; }

/* Use-case list (interface-inspired list rows) */
.uc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; margin-top: 1.6rem; }
.uc-list li { display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1.1rem; background: var(--surface-elevated); border: 1px solid var(--border-subtle); border-radius: 12px; color: var(--text-secondary); font-size: 0.96rem; }
.uc-list .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-primary); flex: none; }

/* Feature grid (product / for-teams) */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2.4rem; }
.feature { padding: 1.5rem 1.4rem; background: var(--surface-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius); transition: transform 0.25s var(--ease), border-color 0.25s var(--ease); }
.feature:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.feature .ico { width: 40px; height: 40px; margin-bottom: 0.9rem; }
.feature .ico svg { width: 20px; height: 20px; }
.feature h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.feature p { color: var(--text-secondary); font-size: 0.92rem; }

/* FAQ accordion */
.faq { margin-top: 2.2rem; border-top: 1px solid var(--border-subtle); }
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0.2rem; font-size: 1.05rem; font-weight: 600; color: var(--text-primary); min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-primary); }
.faq-ico { flex: none; color: var(--text-muted); transition: transform 0.25s var(--ease); }
.faq-ico svg { width: 20px; height: 20px; display: block; }
.faq-item[open] .faq-ico { transform: rotate(180deg); color: var(--accent-primary); }
.faq-a { padding: 0 0.2rem 1.2rem; }
.faq-a p { color: var(--text-secondary); font-size: 0.98rem; max-width: 64ch; }

/* Header sign-in link */
.nav-login { color: var(--text-secondary); font-size: 0.94rem; font-weight: 550; padding: 0.4rem 0.2rem; min-height: 44px; display: inline-flex; align-items: center; transition: color 0.2s var(--ease); }
.nav-login:hover { color: var(--text-primary); }

/* ---------------------------------------------------------------- Demo placeholder */
.demo-frame {
  position: relative; margin-top: 2.4rem; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-strong); background: var(--surface-elevated);
  box-shadow: var(--shadow-card);
}
.demo-chrome { display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border-subtle); background: var(--surface-soft); }
.demo-chrome i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.demo-chrome .addr { margin-left: 0.6rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }
.demo-stage { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 1.5rem; text-align: center;
  background:
    linear-gradient(160deg, var(--surface-elevated), var(--bg-primary));
}
.demo-stage::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--border-subtle) 1px, transparent 1px), linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(72% 72% at 50% 42%, #000 40%, transparent 100%); opacity: 0.5; }
.demo-inner { position: relative; display: grid; gap: 1rem; justify-items: center; max-width: 40ch; }
.demo-badge { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); border: 1px dashed var(--border-strong); border-radius: 999px; padding: 0.3rem 0.75rem; }
.demo-play { width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer; background: var(--accent-primary); color: #fff; display: grid; place-items: center; box-shadow: 0 20px 46px -16px rgba(139,92,246,0.9); transition: transform 0.2s var(--ease); }
.demo-play:hover { transform: scale(1.06); }
.demo-play svg { width: 26px; height: 26px; margin-left: 3px; }
.demo-caption { color: var(--text-secondary); font-size: 0.94rem; }

/* ---------------------------------------------------------------- Split / audience blocks */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.audience-block { padding: 1.6rem 1.7rem; border-left: 2px solid var(--border-subtle); }
.audience-block:hover { border-left-color: var(--accent-primary); }
.audience-block h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.audience-block p { color: var(--text-secondary); font-size: 0.96rem; }

/* Compare (trust) */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.compare .col { border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 1.5rem; }
.compare .col.us { border-color: rgba(139,92,246,0.4); background: rgba(139,92,246,0.06); }
.compare h4 { font-size: 1rem; margin-bottom: 1rem; }
.compare li { display: flex; gap: 0.6rem; color: var(--text-secondary); font-size: 0.94rem; padding-block: 0.35rem; }
.compare .mark { flex: none; font-weight: 700; }
.compare .col.them .mark { color: var(--text-muted); }
.compare .col.us .mark { color: var(--accent-trust); }

/* ---------------------------------------------------------------- Bottom CTA band */
.cta-band { position: relative; }
.cta-card {
  border-radius: var(--radius-lg); border: 1px solid var(--border-strong); overflow: hidden;
  padding: clamp(2.4rem, 6vw, 4rem); text-align: center;
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(139,92,246,0.22), transparent 55%),
    radial-gradient(80% 140% at 100% 100%, rgba(56,189,248,0.16), transparent 55%),
    var(--surface-elevated);
}
.cta-card h2 { font-size: var(--fs-h2); max-width: 20ch; margin-inline: auto; }
.cta-card p { color: var(--text-secondary); font-size: var(--fs-lead); margin-top: 1rem; max-width: 48ch; margin-inline: auto; }
.cta-card .btn { margin-top: 1.8rem; }

/* ---------------------------------------------------------------- Forms (request access) */
.form-card { background: var(--surface-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.4rem); }
.form-grid { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); }
.field .req { color: var(--accent-primary); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem; font: inherit; font-size: 16px; color: var(--text-primary);
  background: var(--bg-primary); border: 1px solid var(--border-strong); border-radius: 12px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
:root[data-theme="light"] .field input, :root[data-theme="light"] .field select, :root[data-theme="light"] .field textarea { background: var(--surface-soft); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(139,92,246,0.22); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }

.consent { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.4rem 0; }
.consent input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent-primary); }
.consent label { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }
.form-status { min-height: 1.4em; font-size: 0.94rem; margin-top: 0.2rem; }
.form-status[data-state="ok"] { color: var(--accent-trust); }
.form-status[data-state="err"] { color: #ff8f8f; }
.form-foot { font-size: 0.84rem; color: var(--text-muted); margin-top: 0.4rem; }
/* Honeypot — hidden from users, catches bots. Off-screen (not display:none). */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- Legal / prose */
.prose { max-width: var(--maxw-narrow); }
.prose h1 { font-size: var(--fs-h1); }
.prose h2 { font-size: var(--fs-h3); margin-top: 2rem; margin-bottom: 0.6rem; }
.prose p { color: var(--text-secondary); margin-top: 1rem; }
.legal-stand { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }
.prose ul { list-style: disc; padding-left: 1.35rem; margin-top: 0.8rem; }
.prose li { color: var(--text-secondary); margin-top: 0.4rem; }
.prose a { color: var(--accent-secondary); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-primary); }
.prose em { color: var(--text-muted); font-style: italic; }
.legal-note {
  display: flex; gap: 0.8rem; align-items: flex-start; margin-top: 1.6rem;
  padding: 1rem 1.2rem; border-radius: var(--radius); font-size: 0.94rem;
  background: rgba(245, 158, 11, 0.10); border: 1px solid rgba(245, 158, 11, 0.35); color: var(--text-primary);
}
.legal-note .badge { flex: none; color: var(--accent-warning); font-weight: 700; }

/* ---------------------------------------------------------------- Footer */
.site-footer { border-top: 1px solid var(--border-subtle); padding-block: 3rem 2.4rem; margin-top: 2rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-logo { display: block; height: 30px; width: 152px; background: var(--logo) left center / contain no-repeat; }
.footer-desc { color: var(--text-secondary); font-size: 0.92rem; margin-top: 0.8rem; max-width: 32ch; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 2.6rem; }
.footer-col h4 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.9rem; }
.footer-col a { display: block; color: var(--text-secondary); font-size: 0.92rem; padding: 0.28rem 0; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 0.85rem; }

/* ---------------------------------------------------------------- Reveal / motion */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.stagger.is-visible > * { animation: rise 0.6s var(--ease) backwards; }
.stagger.is-visible > *:nth-child(2) { animation-delay: 0.07s; }
.stagger.is-visible > *:nth-child(3) { animation-delay: 0.14s; }
.stagger.is-visible > *:nth-child(4) { animation-delay: 0.21s; }
.stagger.is-visible > *:nth-child(5) { animation-delay: 0.28s; }
.stagger.is-visible > *:nth-child(6) { animation-delay: 0.35s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-copy .hero-title { max-width: 18ch; }
  .hero-visual { max-width: 520px; }
  .uc-cards { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-login { display: none; }
  .nav-toggle { display: grid; }
  .site-header[data-menu="open"] .nav-links {
    display: flex; position: absolute; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0.2rem; margin: 0; padding: 1rem clamp(1.1rem, 4vw, 2.2rem) 1.4rem;
    background: var(--surface-elevated); border-bottom: 1px solid var(--border-subtle);
  }
  .site-header[data-menu="open"] .nav-links a { padding: 0.7rem 0; min-height: 44px; display: flex; align-items: center; font-size: 1.02rem; }
  .site-header[data-menu="open"] .nav-links .btn { justify-content: flex-start; margin-top: 0.4rem; }
  .site-header[data-menu="open"] .nav-cta-mobile { display: inline-flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .uc-list { grid-template-columns: 1fr; }
  .uc-cards { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .stagger.is-visible > * { animation: none !important; }
}

/* =============================================================================
   Admin analytics dashboard (/admin)
   ============================================================================= */
.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem clamp(1.1rem, 4vw, 2.2rem); border-bottom: 1px solid var(--border-subtle); background: var(--surface-elevated); }
.admin-controls { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; align-items: center; margin-bottom: 1.4rem; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; background: var(--surface-soft); border: 1px solid var(--border-subtle); border-radius: 12px; }
.seg button { border: 0; background: transparent; color: var(--text-secondary); font: inherit; font-size: 0.88rem; font-weight: 600; padding: 0.45rem 0.8rem; border-radius: 9px; min-height: 40px; cursor: pointer; }
.seg button.is-active { background: var(--accent-primary); color: #fff; }
.admin-month { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--text-secondary); }
.admin-month select { font: inherit; font-size: 16px; padding: 0.45rem 0.6rem; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--bg-primary); color: var(--text-primary); min-height: 40px; }
.admin-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.9rem; }
.kpi { background: var(--surface-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 1rem 1.1rem; }
.kpi-v { display: block; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.kpi-l { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 1.4rem; }
.admin-h { font-size: 1.02rem; margin-bottom: 0.9rem; }
.lg-bar, .lg-line { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; background: var(--accent-primary); opacity: 0.55; }
.lg-line { height: 3px; border-radius: 2px; background: var(--accent-secondary); opacity: 1; }
.barlist { display: grid; gap: 0.7rem; }
.barlist li { list-style: none; }
.bl-row { display: flex; justify-content: space-between; gap: 0.8rem; font-size: 0.9rem; margin-bottom: 0.28rem; }
.bl-label { color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-n { color: var(--text-primary); font-weight: 600; white-space: nowrap; }
.bl-sub { color: var(--text-muted); font-weight: 400; font-size: 0.8rem; }
.bl-bar { display: block; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); min-width: 2px; }
.admin-goals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.goal { border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 1rem 1.1rem; }
.goal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.7rem; }
.goal-name { font-weight: 600; }
.goal-total { font-size: 1.25rem; font-weight: 700; }
.goal-sub { margin-top: 0.7rem; display: grid; gap: 0.4rem; }
@media (max-width: 900px) { .admin-kpis { grid-template-columns: repeat(3, 1fr); } .admin-grid, .admin-goals { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .admin-kpis { grid-template-columns: repeat(2, 1fr); } }
