/* Sealforge — merged site (proposal C).
   The vitrine's design (light and dark themes, quiet animations) for every page: public site, guides, checkout,
   customer area and back office. No inline style anywhere (CSP style-src 'self'): colours and delays are classes. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ================================================================== tokens */
:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --bg-soft: #f4f2ed;
  --surface: #ffffff;
  --surface-2: #f7f6f2;
  --ink: #0d1424;
  --ink-2: #333c4e;
  --muted: #667085;
  --line: #e6e3dc;
  --line-strong: #d4d0c6;
  --accent: #e8622c;
  --accent-ink: #b9461a;
  --accent-soft: #fdeee6;
  --navy: #1b2a4a;
  --focus: #2563eb;
  --seal: #2563eb;
  --shadow: 0 1px 2px rgb(16 24 40 / .05), 0 12px 32px -12px rgb(16 24 40 / .18);
  --shadow-lg: 0 2px 6px rgb(16 24 40 / .06), 0 40px 80px -30px rgb(27 42 74 / .35);
  --glow: radial-gradient(60% 60% at 50% 40%, rgb(232 98 44 / .16), transparent 70%);
  /* Category colours, as in the app */
  --c-first: #0284c7; --c-last: #7e22ce; --c-email: #0e7490; --c-phone: #4338ca; --c-iban: #4d7c0f;
  --c-address: #c2410c; --c-company: #047857; --c-secret: #b91c1c; --c-ssn: #b45309; --c-birth: #be185d;
  /* Status colours (customer area, back office) */
  --ok-bg: #dcfce7; --ok-ink: #166534; --info-bg: #e0f2fe; --info-ink: #075985; --warn-bg: #fef3c7; --warn-ink: #92400e;
  --bad-bg: #fee2e2; --bad-ink: #991b1b; --violet-bg: #ede9fe; --violet-ink: #5b21b6; --neutral-bg: #f1f0ec; --neutral-ink: #57534e;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1160px;
  --font: "Inter", system-ui, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #070b16; --bg-soft: #0b1120; --surface: #0f1729; --surface-2: #131c31; --ink: #f2f4f8; --ink-2: #c9d0dc;
    --muted: #8d97aa; --line: #1c2740; --line-strong: #2a3756; --accent: #f07a45; --accent-ink: #ff9a6b;
    --accent-soft: rgb(240 122 69 / .12); --navy: #c9d3ea; --focus: #60a5fa; --seal: #60a5fa;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px -12px rgb(0 0 0 / .6);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / .4), 0 40px 90px -30px rgb(0 0 0 / .8);
    --glow: radial-gradient(60% 60% at 50% 40%, rgb(240 122 69 / .14), transparent 70%);
    --c-first: #38bdf8; --c-last: #c084fc; --c-email: #22d3ee; --c-phone: #818cf8; --c-iban: #a3e635;
    --c-address: #fb923c; --c-company: #34d399; --c-secret: #f87171; --c-ssn: #fbbf24; --c-birth: #f472b6;
    --ok-bg: rgb(34 197 94 / .14); --ok-ink: #86efac; --info-bg: rgb(56 189 248 / .14); --info-ink: #7dd3fc; --warn-bg: rgb(234 179 8 / .14); --warn-ink: #fde68a;
    --bad-bg: rgb(239 68 68 / .14); --bad-ink: #fca5a5; --violet-bg: rgb(139 124 246 / .16); --violet-ink: #c4b5fd; --neutral-bg: rgb(255 255 255 / .06); --neutral-ink: #aab4c5;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070b16; --bg-soft: #0b1120; --surface: #0f1729; --surface-2: #131c31; --ink: #f2f4f8; --ink-2: #c9d0dc;
  --muted: #8d97aa; --line: #1c2740; --line-strong: #2a3756; --accent: #f07a45; --accent-ink: #ff9a6b;
  --accent-soft: rgb(240 122 69 / .12); --navy: #c9d3ea; --focus: #60a5fa; --seal: #60a5fa;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px -12px rgb(0 0 0 / .6);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / .4), 0 40px 90px -30px rgb(0 0 0 / .8);
  --glow: radial-gradient(60% 60% at 50% 40%, rgb(240 122 69 / .14), transparent 70%);
  --c-first: #38bdf8; --c-last: #c084fc; --c-email: #22d3ee; --c-phone: #818cf8; --c-iban: #a3e635;
  --c-address: #fb923c; --c-company: #34d399; --c-secret: #f87171; --c-ssn: #fbbf24; --c-birth: #f472b6;
  --ok-bg: rgb(34 197 94 / .14); --ok-ink: #86efac; --info-bg: rgb(56 189 248 / .14); --info-ink: #7dd3fc; --warn-bg: rgb(234 179 8 / .14); --warn-ink: #fde68a;
  --bad-bg: rgb(239 68 68 / .14); --bad-ink: #fca5a5; --violet-bg: rgb(139 124 246 / .16); --violet-ink: #c4b5fd; --neutral-bg: rgb(255 255 255 / .06); --neutral-ink: #aab4c5;
}

/* Category colour of a value or a chip: class instead of an inline style. */
.c-first { --c: var(--c-first); } .c-last { --c: var(--c-last); } .c-email { --c: var(--c-email); } .c-phone { --c: var(--c-phone); }
.c-iban { --c: var(--c-iban); } .c-address { --c: var(--c-address); } .c-company { --c: var(--c-company); } .c-secret { --c: var(--c-secret); }
.c-ssn { --c: var(--c-ssn); } .c-birth { --c: var(--c-birth); }

/* ================================================================== base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
main { flex: 1; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
code, kbd, .mono { font-family: var(--mono); font-size: .92em; }
.sha { word-break: break-all; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.wrap, .container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.narrow, .container.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.faint { color: var(--muted); opacity: .85; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 1.2em; height: 1.2em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: currentColor; stroke: none; }
.link, .prose a, .lead a, .hint a, .callout a, .card p a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
.link:hover, .prose a:hover, .lead a:hover { text-decoration-color: currentColor; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.stack { display: grid; gap: 1rem; }
.divider { height: 1px; background: var(--line); border: 0; margin: 1.6rem 0; }
.inline-form { display: inline; }

/* ================================================================== nav */
.nav {
  position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled, body.app .nav { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 18px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; }
.brand b { color: var(--accent); font-weight: 600; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { padding: 8px 11px; border-radius: 8px; font-size: 15px; color: var(--ink-2); transition: color .2s, background .2s, opacity .45s; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.nav-links .only-menu { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, transform .2s; flex: none;
}
.theme-toggle:hover { border-color: var(--line-strong); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.menu-btn { display: none; }
/* Language: one square button, the size of the theme one, naming the other language (EN on French pages, FR on English). */
.lang-switch { font: 600 12.5px/1 var(--mono); letter-spacing: .04em; }
.lang-switch:hover { color: var(--ink); }
.dev-banner { padding: 7px 16px; background: var(--warn-bg); color: var(--warn-ink); font: 600 12.5px/1.3 var(--mono); text-align: center; border-bottom: 1px solid var(--line); }
.dev-banner a { text-decoration: underline; }

/* ================================================================== buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 20px;
  border-radius: 12px; font: 600 15px/1 var(--font); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s; white-space: nowrap;
}
.btn:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; border-color: transparent; box-shadow: 0 8px 24px -10px var(--accent); }
.btn-primary:hover { box-shadow: 0 14px 30px -12px var(--accent); border-color: transparent; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-dark:hover { border-color: var(--ink); }
.btn-danger { background: var(--surface); color: var(--bad-ink); border-color: color-mix(in srgb, var(--bad-ink) 35%, var(--line)); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; gap: 8px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ================================================================== hero (home) */
.hero { position: relative; padding: 72px 0 40px; isolation: isolate; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: -120px 0 auto; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 18% 30%, rgb(232 98 44 / .16), transparent 70%),
    radial-gradient(35% 45% at 85% 20%, rgb(56 189 248 / .14), transparent 70%),
    radial-gradient(40% 50% at 60% 80%, rgb(192 132 252 / .10), transparent 70%);
  filter: blur(10px); animation: aurora 18s var(--ease) infinite alternate;
}
@keyframes aurora { to { transform: translate3d(0, 30px, 0) scale(1.06); filter: blur(20px) hue-rotate(-12deg); } }
/* "Seal flow" behind the home hero (from staging): raw data drifts in, crosses a seal ring, leaves as sealed blocks. */
/* The animation is dimmed where the text sits (left column; the whole hero once the columns stack), so no glyph crosses a line of text at full strength. */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / .22) 0 46%, #000 62%); mask-image: linear-gradient(90deg, rgb(0 0 0 / .22) 0 46%, #000 62%); }
[data-seal-hero] h1, [data-seal-hero] .lead, [data-seal-hero] .hero-meta { text-shadow: 0 0 24px var(--bg), 0 0 8px var(--bg); }
[data-seal-hero] h1 em { text-shadow: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
/* One label style above every title (hero and section): mono capitals in a bordered pill, no dot. */
.eyebrow, .section-head .kicker {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink); padding: 7px 13px; border-radius: 99px; margin-bottom: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.eyebrow i, .eyebrow .dot { display: none; }
.section-head .kicker, .section-head .eyebrow { margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -.035em; }
.hero h1 em, .page-hero h1 em, .grad { font-style: normal; background: linear-gradient(100deg, var(--accent), #f5a524 60%, var(--accent)); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 560px; margin: 22px 0 30px; text-wrap: pretty; }
/* Home: the description is two short paragraphs, then the question field, then the buttons. */
[data-seal-hero] .lead { margin-bottom: 0; }
[data-seal-hero] .lead + .lead { margin-top: 14px; }
[data-seal-hero] .hero-cta { margin-top: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: var(--muted); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--c-company); }

/* The live anonymization card */
.live {
  position: relative; border-radius: var(--radius-lg); background: #0b1120; color: #e2e8f0; padding: 0;
  box-shadow: var(--shadow-lg); border: 1px solid rgb(255 255 255 / .06); overflow: hidden;
  --c-first: #38bdf8; --c-last: #c084fc; --c-email: #22d3ee; --c-phone: #818cf8; --c-iban: #a3e635; --c-company: #34d399;
}
.live::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgb(255 255 255 / .05), transparent 30%); }
.live-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid rgb(255 255 255 / .06); font: 500 12.5px/1 var(--font); color: #94a3b8; }
.live-bar .dots { display: flex; gap: 6px; margin-right: 6px; }
.live-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #1e293b; }
.live-bar .strategy { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: #e2e8f0; background: #131c31; border: 1px solid #1e293b; padding: 6px 10px; border-radius: 8px; }
.live-bar .strategy b { color: #38bdf8; font-weight: 600; transition: opacity .3s; }
.live-pane { padding: 20px 22px; }
.live-label { font: 600 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #64748b; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.live-label .who { color: #94a3b8; letter-spacing: .04em; }
.live-text { font: 400 15.5px/1.75 var(--font); min-height: 84px; }
.live-text .v { position: relative; border-radius: 5px; padding: 1px 4px; margin: 0 -1px; transition: background .5s, color .5s, box-shadow .5s; white-space: nowrap; }
.live-text .v[data-cat] { background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: inset 0 -2px 0 var(--c); }
.live-text .v.token { font-family: var(--mono); font-size: 13.5px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: none; }
.live-text .v.fake { color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); box-shadow: none; }
.live-text .caret { display: inline-block; width: 2px; height: 1.1em; vertical-align: -3px; background: #f07a45; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.live-divider { position: relative; height: 1px; background: rgb(255 255 255 / .06); }
.live-divider span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px;
  font: 600 11.5px/1 var(--font); color: #f07a45; background: #0b1120; border: 1px solid #2a1c17; padding: 7px 12px; border-radius: 99px; white-space: nowrap;
}
.live-divider span svg { width: 14px; height: 14px; }
.live-divider .scan { position: absolute; inset: -1px 0; background: linear-gradient(90deg, transparent, #f07a45, transparent); opacity: 0; }
.live.scanning .live-divider .scan { animation: scan 1.1s var(--ease); }
@keyframes scan { 0% { opacity: 0; transform: scaleX(.1); } 40% { opacity: 1; } 100% { opacity: 0; transform: scaleX(1); } }
.live-out .live-text { color: #cbd5e1; }
.live-legend { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 22px 18px; }
.chip { font: 600 11px/1 var(--font); padding: 5px 8px; border-radius: 6px; color: var(--c, var(--accent-ink)); background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); }
.live-legend .chip { opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .4s var(--ease); }
.live-legend .chip.on { opacity: 1; transform: none; }
.float-note {
  position: absolute; right: -18px; bottom: -22px; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); font-size: 13px; display: flex; gap: 10px; align-items: center;
}
.float-note svg { width: 20px; height: 20px; color: var(--c-company); }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: -60px; background: var(--glow); z-index: -1; }

/* ================================================================== logos strip */
.works { padding: 36px 0 8px; }
.works p { text-align: center; font-size: 13px; color: var(--muted); letter-spacing: .02em; margin-bottom: 16px; }
.works ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.works li { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/1 var(--font); color: var(--ink-2); padding: 10px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.works li svg { width: 16px; height: 16px; color: var(--muted); }

/* ================================================================== sections */
section { position: relative; }
.section { padding: 112px 0; }
.section-tight { padding: 56px 0; }
.section.soft, .band { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section.pt-0 { padding-top: 40px; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); text-wrap: balance; }
.section-head p { color: var(--ink-2); font-size: 18px; max-width: 640px; margin: 18px auto 0; text-wrap: pretty; }
.section-head.left p { margin-left: 0; }
.lead { color: var(--ink-2); font-size: 18px; }

/* Inner page hero: the home hero's aurora, centred. */
.page-hero { position: relative; isolation: isolate; padding: 72px 0 40px; text-align: center; overflow: clip; }
.page-hero::before { height: 520px; }
.page-hero .wrap { max-width: 860px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.04; letter-spacing: -.035em; }
.page-hero .lead { max-width: 640px; margin: 20px auto 0; font-size: 19px; }
.page-hero .hero-cta { justify-content: center; margin-top: 28px; }
.page-hero .hero-meta { justify-content: center; }
.page-hero.left { text-align: left; }
.page-hero.left .wrap { max-width: var(--max); }
.page-hero + .section { padding-top: 48px; }
.page-hero + .section-tight { padding-top: 24px; }

/* ================================================================== flow (how it works) */
.flow { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; position: relative; }
.flow-line { position: absolute; left: 8%; right: 8%; top: 46px; height: 2px; z-index: 0; }
.flow-line svg { width: 100%; height: 8px; overflow: visible; }
.flow-line path { stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 4 6; fill: none; }
.flow-line .pulse { fill: var(--accent); filter: drop-shadow(0 0 8px var(--accent)); opacity: 0; }
.flow.run .flow-line .pulse { animation: travel 3.2s var(--ease) infinite; }
@keyframes travel { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateX(var(--w, 900px)); opacity: 0; } }
.step { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.step-n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 600 15px/1 var(--display); background: var(--bg-soft); border: 1px solid var(--line); margin-bottom: 18px; }
.flow .step:nth-child(4) .step-n, .step-n.hot { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 16px; }
.step p:last-child { margin-bottom: 0; }
.step .sample { font: 400 13.5px/1.7 var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--ink-2); min-height: 92px; }
.sample .t { color: var(--c); font-weight: 600; }
.steps-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* ================================================================== video player */
.player {
  position: relative; border-radius: 18px; overflow: hidden; background: #0f172a; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); aspect-ratio: 16 / 10;
}
.player video { width: 100%; height: 100%; object-fit: cover; background: #0f172a; }
.player .start {
  position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgb(2 6 23 / .1), rgb(2 6 23 / .55));
  border: 0; cursor: pointer; color: #fff; transition: opacity .4s;
}
.player .start span { display: inline-flex; align-items: center; gap: 12px; font: 600 16px/1 var(--font); padding: 14px 20px 14px 14px; border-radius: 99px; background: rgb(15 23 42 / .72); backdrop-filter: blur(10px); border: 1px solid rgb(255 255 255 / .12); }
.player .start i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); box-shadow: 0 0 0 8px rgb(240 122 69 / .25); transition: transform .3s var(--ease); }
.player .start:hover i { transform: scale(1.08); }
.player .start svg { width: 18px; height: 18px; margin-left: 3px; }
.player.playing .start { opacity: 0; pointer-events: none; }
.player .cc {
  position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); max-width: 82%; text-align: center; pointer-events: none;
  font: 500 17px/1.45 var(--font); color: #fff; background: rgb(2 6 23 / .74); padding: 8px 14px; border-radius: 10px; backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s;
}
.player .cc.on { opacity: 1; }
.player .bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  background: linear-gradient(0deg, rgb(2 6 23 / .8), transparent); opacity: 0; transition: opacity .3s; color: #fff; }
.player.playing:hover .bar, .player.paused .bar, .player:focus-within .bar { opacity: 1; }
.player .bar button { background: none; border: 0; color: inherit; cursor: pointer; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; }
.player .bar button:hover { background: rgb(255 255 255 / .12); }
.player .bar svg { width: 18px; height: 18px; }
.player .track { position: relative; flex: 1; height: 5px; border-radius: 3px; background: rgb(255 255 255 / .22); cursor: pointer; }
.player .track b { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: inherit; width: 0; }
.player .track i { position: absolute; top: -3px; width: 2px; height: 11px; background: rgb(255 255 255 / .7); border-radius: 1px; }
.player .time { font: 500 12.5px/1 var(--mono); opacity: .85; min-width: 84px; text-align: right; }
.player .bar .cc-btn[aria-pressed="false"] { opacity: .55; }
.player .lang { position: absolute; top: 14px; right: 14px; z-index: 3; display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px;
  background: rgb(15 23 42 / .72); backdrop-filter: blur(8px); border: 1px solid rgb(255 255 255 / .14); }
.player .lang button { border: 0; background: none; color: #cbd5e1; font: 600 12.5px/1 var(--font); padding: 7px 10px; border-radius: 7px; cursor: pointer; transition: background .2s, color .2s; }
.player .lang button[aria-pressed="true"] { background: #f2f4f8; color: #0b1120; }
.player .lang button:hover:not([aria-pressed="true"]) { color: #fff; }
.chapters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.chapters button {
  font: 500 14px/1 var(--font); color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 99px;
  padding: 10px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all .25s var(--ease);
}
.chapters button span { font: 500 12px/1 var(--mono); color: var(--muted); }
.chapters button:hover { border-color: var(--line-strong); color: var(--ink); }
.chapters button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chapters button.on span { color: inherit; opacity: .7; }
.soon { display: grid; place-items: center; text-align: center; color: #94a3b8; padding: 30px; height: 100%; font-size: 15px; }
.soon b { display: block; color: #e2e8f0; font: 600 18px/1.3 var(--display); margin: 10px 0 6px; }

/* ================================================================== features */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }
.features.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.features.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.feature { position: relative; display: block; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; overflow: hidden; }
.feature::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120px 120px at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 70%); opacity: 0; transition: opacity .3s; }
.feature:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.feature:hover::before { opacity: 1; }
.feature > * { position: relative; }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); border: 1px solid var(--line); margin-bottom: 18px; color: var(--accent-ink); }
.feature .ic svg { width: 20px; height: 20px; }
.feature .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 14px; }
.feature p:last-child { margin-bottom: 0; }
.feature .more, .more { font: 600 14px/1 var(--font); color: var(--accent-ink); display: inline-flex; align-items: center; gap: 6px; }
.feature .more svg, .more svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.feature:hover .more svg, .more:hover svg { transform: translateX(3px); }

/* ================================================================== demos (tabs) */
.demos { background: var(--bg-soft); border-block: 1px solid var(--line); }
.tabs { display: flex; justify-content: center; gap: 6px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); width: fit-content; margin: 0 auto 32px; position: relative; flex-wrap: wrap; }
.tabs button { position: relative; z-index: 1; border: 0; background: none; font: 600 14.5px/1 var(--font); color: var(--muted); padding: 12px 16px; border-radius: 11px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: color .25s; }
.tabs button svg { width: 16px; height: 16px; }
.tabs button[aria-selected="true"] { color: var(--bg); }
.tabs .tab-pill { position: absolute; z-index: 0; top: 6px; height: calc(100% - 12px); border-radius: 11px; background: var(--ink); transition: left .45s var(--ease), width .45s var(--ease), top .45s var(--ease); }
.demo-panel { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.demo-side h3 { font-size: 24px; margin-bottom: 10px; }
.demo-side > p { color: var(--ink-2); font-size: 15.5px; }
.compare { display: grid; gap: 10px; margin: 18px 0; }
.compare div { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 14px; }
.compare b { display: block; font: 600 11.5px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.compare code { font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.compare code .t { color: var(--c-last); font-weight: 600; }
.compare .model { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.demo-list { display: grid; gap: 64px; }
.demo-row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.demo-row:nth-child(even) > :first-child { order: 2; }

/* ================================================================== guides */
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
.guide-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.guide-card .n { font: 600 12px/1 var(--mono); color: var(--accent-ink); }
.guide-card h3 { font-size: 18px; }
.guide-card p { color: var(--ink-2); font-size: 15.5px; margin: 0; flex: 1; }
.guide-card .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font: 500 12px/1 var(--font); color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); padding: 5px 8px; border-radius: 6px; }

/* ================================================================== pricing */
.period { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 12px; }
.sort { display: grid; justify-items: center; gap: 10px; margin-bottom: 36px; }
.sort .switch { flex-wrap: wrap; justify-content: center; }
.sort-hint { max-width: 720px; margin: 0; text-align: center; font-size: 14px; color: var(--muted); }
.switch { display: inline-flex; gap: 4px; padding: 5px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.switch button, .switch a { border: 0; background: none; padding: 10px 16px; border-radius: 9px; font: 600 14px/1 var(--font); color: var(--muted); cursor: pointer; }
.switch button[aria-pressed="true"], .switch .is-on { background: var(--ink); color: var(--bg); }
.switch em { font-style: normal; color: var(--c-company); margin-left: 6px; font-size: 12px; }
.switch button[aria-pressed="true"] em { color: inherit; opacity: .8; }
.plan .badge-top[hidden] { display: none; }
.plan .badge-top { max-width: calc(100% - 40px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switch .switch-label { align-self: center; padding: 0 4px 0 10px; font: 600 13px/1 var(--font); color: var(--muted); }
.plan .privacy { display: flex; align-items: center; gap: 8px; margin: -10px 0 18px; font-size: 13px; color: var(--ink-2); }
.plan .privacy .dots { display: inline-flex; gap: 3px; flex: none; }
.plan .privacy .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.plan .privacy .dots i.on { background: var(--c-company); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); position: relative; }
.plan.featured { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 30px 60px -30px rgb(232 98 44 / .35); }
.plan .badge-top { position: absolute; top: -12px; left: 28px; font: 600 12px/1 var(--font); background: var(--accent); color: #fff; padding: 6px 10px; border-radius: 99px; }
.plan h3 { font-size: 20px; }
.plan .for { color: var(--muted); font-size: 14px; margin: 6px 0 20px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.price strong { font: 600 44px/1 var(--display); letter-spacing: -.03em; }
.price span { color: var(--muted); font-size: 14px; }
.plan .note { color: var(--muted); font-size: 13px; min-height: 20px; margin-bottom: 20px; }
.plan .note b { color: var(--c-company); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); flex: 1; }
.plan li { display: flex; gap: 10px; }
.plan li svg { flex: none; width: 18px; height: 18px; color: var(--c-company); margin-top: 2px; }
.plan .btn { justify-content: center; }
.plan .btn + .btn { margin-top: 8px; }
.price strong, .plan .note { transition: opacity .25s; }
.plans.swap .price strong, .plans.swap .plan .note { opacity: 0; }
.plan .seats { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.plan .extra { color: var(--muted); font-size: 12.5px; margin: 0 0 18px; }
.plan .extra.tight { margin-bottom: 4px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.stepper button { width: 34px; height: 34px; border: 0; background: var(--surface-2); color: var(--ink); font-size: 18px; cursor: pointer; }
.stepper button:hover { background: var(--bg-soft); }
.stepper input { width: 56px; height: 34px; border: 0; background: transparent; color: var(--ink); text-align: center; font: 600 15px var(--mono); -moz-appearance: textfield; appearance: textfield; padding: 0; border-radius: 0; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { box-shadow: none; }
.price-foot { text-align: center; color: var(--muted); font-size: 14px; max-width: 760px; margin: 28px auto 0; }

.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.compare-table th, .compare-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; }
.compare-table thead th { position: sticky; top: 0; background: var(--surface); font: 600 15px/1.2 var(--display); z-index: 1; }
.compare-table tbody tr:hover td { background: var(--surface-2); }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table .fam td { padding-top: 22px; font: 600 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); background: var(--bg-soft); }
.compare-table .yes { color: var(--c-company); font-weight: 700; } .compare-table .no { color: var(--muted); }
.compare-table td .badge { margin-left: 6px; }

/* Stage badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px; font: 600 11px/1.2 var(--font); letter-spacing: .03em; white-space: nowrap; background: var(--neutral-bg); color: var(--neutral-ink); }
.stage-available { background: var(--ok-bg); color: var(--ok-ink); }
.stage-preview { background: var(--info-bg); color: var(--info-ink); }
.stage-planned { background: var(--violet-bg); color: var(--violet-ink); }

/* ================================================================== faq */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .3s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font: 600 17px/1.35 var(--display); display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 24px; height: 24px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .35s var(--ease); }
.faq summary i::before { content: "+"; font: 500 16px/1 var(--font); color: var(--muted); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq .a { padding: 0 22px 20px; color: var(--ink-2); font-size: 15.5px; }
.faq .a p:last-child { margin: 0; }
.faq-tools { display: grid; gap: 14px; margin-bottom: 28px; }
.faq-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.faq-cats a { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 500; transition: border-color .2s, color .2s; }
.faq-cats a:hover { border-color: var(--line-strong); color: var(--ink); }
.faq-group { margin-top: 44px; }
.faq-group h2 { font-size: 22px; margin-bottom: 16px; scroll-margin-top: 96px; }

/* ================================================================== final cta + footer */
.cta-final { padding: 40px 0 120px; }
.cta-box { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 40px; text-align: center; background: #0b1120; color: #f2f4f8; border: 1px solid #1c2740; }
.cta-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 50% 0%, rgb(240 122 69 / .28), transparent 70%), radial-gradient(40% 60% at 80% 100%, rgb(56 189 248 / .14), transparent 70%); }
.cta-box > * { position: relative; }
.cta-box h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 14px; }
.cta-box p { color: #aab4c5; font-size: 18px; margin-bottom: 30px; }
.cta-box .btn-ghost { background: transparent; color: #f2f4f8; border-color: #2a3756; }
.cta-box .hero-cta { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--muted); font-size: 14px; margin-top: auto; }
footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
footer h4 { font: 600 13px/1 var(--font); color: var(--ink); margin-bottom: 14px; letter-spacing: .02em; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
footer a:hover { color: var(--ink); }
footer .tagline { margin-top: 14px; max-width: 320px; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }

/* ================================================================== guide pages */
.doc-hero { padding: 56px 0 32px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs a:hover { color: var(--ink); }
.doc-hero h1 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 14px; }
.doc-hero .lead { color: var(--ink-2); font-size: 18px; max-width: 720px; margin: 0; }
.doc-hero .meta { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.doc-hero .hero-cta { margin-top: 22px; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding: 48px 0 96px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.toc b { display: block; font: 600 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-left-color: var(--accent); }
.toc .others { margin-top: 28px; }
.video-block { margin-bottom: 56px; }
.steps { counter-reset: step; display: grid; gap: 56px; }
.gstep { counter-increment: step; scroll-margin-top: 96px; }
.gstep h2 { font-size: 24px; display: flex; gap: 14px; align-items: baseline; margin-bottom: 12px; }
.gstep h2::before { content: counter(step); flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 600 15px/1 var(--display); background: var(--accent-soft); color: var(--accent-ink); transform: translateY(-4px); }
.gstep .body { color: var(--ink-2); font-size: 16.5px; }
.gstep .body ul, .gstep .body ol { padding-left: 20px; }
.gstep .body li { margin-bottom: 6px; }
kbd { border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: var(--surface); font-size: 13px; }
.gstep .body code, .prose code { background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: 14px; }
.gstep .body pre { background: #0b1120; color: #e2e8f0; border-radius: 12px; padding: 16px 18px; overflow-x: auto; font: 400 13.5px/1.6 var(--mono); border: 1px solid #1c2740; }
.gstep .body pre code { background: none; border: 0; padding: 0; color: inherit; }
.shot { margin: 18px 0 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface-2); }
.shot img { width: 100%; height: auto; }
.shot figcaption { font-size: 13.5px; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.shot .img-dark { display: none; }
:root[data-theme="dark"] .shot .img-dark { display: block; }
:root[data-theme="dark"] .shot .img-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot .img-dark { display: block; }
  :root:not([data-theme="light"]) .shot .img-light { display: none; }
}
.callout { margin-top: 18px; border-radius: 14px; padding: 16px 18px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; color: var(--ink-2); }
.callout b { color: var(--ink); }
.callout.tip { border-color: color-mix(in srgb, var(--c-first) 35%, var(--line)); }
.callout.warn { border-color: color-mix(in srgb, var(--c-ssn) 45%, var(--line)); }
.impact { margin-top: 64px; border-radius: 20px; padding: 28px; background: #0b1120; color: #e2e8f0; border: 1px solid #1c2740; scroll-margin-top: 96px; }
.impact h2 { font-size: 22px; margin-bottom: 6px; color: #fff; }
.impact > p { color: #aab4c5; font-size: 15px; }
.impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.impact-card { border: 1px solid #1c2740; background: #0f1729; border-radius: 14px; padding: 18px; }
.impact-card h3 { font-size: 16px; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #fff; }
.impact-card h3 svg { width: 18px; height: 18px; color: #f07a45; }
.impact-card ul { margin: 0; padding-left: 18px; color: #c9d0dc; font-size: 14.5px; }
.impact-card li { margin-bottom: 6px; }
.impact-card code { background: #131c31; border: 1px solid #1c2740; padding: 1px 5px; border-radius: 5px; font-size: 13px; color: #c084fc; }
.doc-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; }
.doc-nav a { flex: 1; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--surface); transition: border-color .2s; }
.doc-nav a:hover { border-color: var(--line-strong); }
.doc-nav small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.doc-nav b { font: 600 16px/1.3 var(--display); }
.doc-nav .next { text-align: right; }
table.mini { width: 100%; border-collapse: collapse; font-size: 15px; margin: 6px 0 4px; }
table.mini td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.mini td:first-child { white-space: nowrap; width: 1%; color: var(--ink); }
table.mini tr:last-child td { border-bottom: 0; }

/* ================================================================== split rows, checks, code (integrations, enterprise, security) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.split + .split { margin-top: clamp(64px, 8vw, 112px); }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 14px; }
.split .lead { margin-bottom: 22px; }
.checks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 12px; color: var(--ink-2); font-size: 15.5px; }
.checks li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--c-company); }
.code { margin: 0; padding: 18px 20px; border-radius: 14px; background: #0b1120; border: 1px solid #1c2740; font: 400 13.5px/1.7 var(--mono); color: #cbd5e1; overflow-x: auto; white-space: pre; box-shadow: var(--shadow-lg); }
.code.code-wrap { white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: none; }
.code .c { color: #64748b; } .code .k { color: #c4b5fd; } .code .s { color: #86efac; } .code .t { color: #ff9a6b; } .code .n { color: #7dd3fc; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tools span { font: 500 12.5px/1 var(--mono); padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.panel { position: relative; padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); }
.panel.dark { background: #0b1120; border-color: #1c2740; color: #e2e8f0; }
.panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font: 600 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.arch { width: 100%; height: auto; }
.arch text { font-family: var(--mono); }
.arch .dash { stroke-dasharray: 6 8; animation: dash 1.2s linear infinite; }
.arch .dash.slow { animation-duration: 2.4s; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.road-col { padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.road-col h3 { margin-bottom: 8px; }
.road-item { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.road-item:first-of-type { border-top: 0; }
.road-item svg { width: 16px; height: 16px; margin-top: 4px; color: var(--muted); }
.road-item b { display: block; font-weight: 600; font-size: 15px; }
.road-item span { color: var(--muted); font-size: 14px; }

/* ================================================================== forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field small, .hint { color: var(--muted); font-size: 13px; }
.input, input:not([type]), input[type="text"], input[type="email"], input[type="number"], input[type="search"], input[type="date"], input[type="url"], input[type="tel"], select, textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font: 400 15px/1.4 var(--font); transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }
.code-input { font: 600 28px/1 var(--mono) !important; letter-spacing: .5em; text-align: center; padding: 14px !important; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.grow-field { flex: 1 1 16rem; min-width: 0; max-width: 26rem; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; transition: border-color .2s, background .2s; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { margin-top: 4px; }
.choice b { display: block; }
.choice span { color: var(--muted); font-size: 14px; }
.choices { display: grid; gap: 10px; }
.choices.cols-2 { grid-template-columns: 1fr 1fr; }
.alert { display: flex; gap: 10px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 15px; margin-bottom: 18px; }
.alert svg { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.alert-ok { border-color: color-mix(in srgb, var(--ok-ink) 30%, transparent); background: var(--ok-bg); color: var(--ok-ink); }
.alert-warn { border-color: color-mix(in srgb, var(--warn-ink) 30%, transparent); background: var(--warn-bg); color: var(--warn-ink); }
.alert-error { border-color: color-mix(in srgb, var(--bad-ink) 30%, transparent); background: var(--bad-bg); color: var(--bad-ink); }
.alert-info { border-color: color-mix(in srgb, var(--info-ink) 30%, transparent); background: var(--info-bg); color: var(--info-ink); }
.alert-error:empty, .validation-summary-valid { display: none; }
.alert ul { margin: 0; padding-left: 18px; }

/* ================================================================== sign in, contact, checkout */
.auth { position: relative; isolation: isolate; display: grid; place-items: center; padding: 64px 20px 96px; }
.auth::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(40% 50% at 30% 20%, rgb(232 98 44 / .14), transparent 70%), radial-gradient(35% 45% at 75% 30%, rgb(56 189 248 / .12), transparent 70%); }
.auth-card { position: relative; width: 100%; max-width: 460px; padding: 34px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 30px; margin-bottom: 10px; }
.auth-card h2 { font-size: 22px; margin-bottom: 18px; }
.auth-card .brand { margin-bottom: 22px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.summary { position: sticky; top: 96px; }
.summary-line { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; color: var(--muted); font-size: 15px; }
.summary-line b { color: var(--ink); font-weight: 600; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; margin-top: 10px; border-top: 1px solid var(--line-strong); }
.summary-total b { font: 600 30px/1 var(--display); }
.discount { color: var(--c-company) !important; }

/* ================================================================== customer area and back office */
body.app main { background: var(--bg); }
.app-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding: 32px 0 72px; align-items: start; }
.app-side { position: sticky; top: 96px; display: grid; gap: 2px; }
.app-side h4 { margin: 18px 12px 8px; font: 600 11.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.app-side h4:first-child { margin-top: 4px; }
.app-side a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; transition: background .2s, color .2s; }
.app-side a svg { width: 18px; height: 18px; color: var(--muted); }
.app-side a:hover { background: var(--surface); color: var(--ink); }
.app-side a.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 8px 11px; }
.app-side a.is-on svg { color: var(--accent); }
.app-side .count { margin-left: auto; padding: 1px 7px; border-radius: 99px; background: var(--accent); color: #fff; font: 600 11px/1.5 var(--mono); }
.app-main { min-width: 0; }
.app-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.app-head h1 { font-size: clamp(26px, 2.6vw, 34px); margin: 0; letter-spacing: -.025em; }
.app-head p { margin: 6px 0 0; color: var(--muted); }
.card { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 2px rgb(16 24 40 / .04); overflow-x: auto; }
.card + .card { margin-top: 18px; }
.card h2 { font-size: 20px; letter-spacing: -.01em; margin-bottom: 10px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card ol { padding-left: 20px; }
.card.center .hero-cta, .center > .hero-cta { justify-content: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.cards > .card + .card { margin-top: 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2, .card-head h3 { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.kpi small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi b { display: block; margin: 6px 0 3px; font: 600 28px/1.1 var(--display); letter-spacing: -.02em; }
.kpi span { font-size: 12.5px; color: var(--muted); }
.kpi span.up { color: var(--ok-ink); } .kpi span.down { color: var(--bad-ink); }
.kpi.accent { background: #0b1120; border-color: #1c2740; color: #f2f4f8; }
.kpi.accent small, .kpi.accent span { color: #aab4c5; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { padding: 10px 12px; text-align: left; font: 600 11.5px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table a.row-link { font-weight: 600; }
.table a.row-link:hover { color: var(--accent-ink); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font: 600 12px/1.3 var(--font); white-space: nowrap; background: var(--neutral-bg); color: var(--neutral-ink); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.ok { background: var(--ok-bg); color: var(--ok-ink); } .pill.info { background: var(--info-bg); color: var(--info-ink); } .pill.warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill.bad { background: var(--bad-bg); color: var(--bad-ink); } .pill.muted { background: var(--neutral-bg); color: var(--neutral-ink); } .pill.violet { background: var(--violet-bg); color: var(--violet-ink); }
.key-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #0b1120; color: #fff6ec; font: 600 15px/1.3 var(--mono); letter-spacing: .04em; border: 1px solid #1c2740; }
.key-box code { flex: 1; min-width: 14rem; overflow-wrap: anywhere; }
.key-box .btn { background: rgb(255 255 255 / .08); color: #fff; border-color: rgb(255 255 255 / .15); }
.meter { height: 8px; border-radius: 99px; background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #f5a524); }
.meter.w0 > i { width: 0; } .meter.w10 > i { width: 10%; } .meter.w20 > i { width: 20%; } .meter.w30 > i { width: 30%; } .meter.w40 > i { width: 40%; } .meter.w50 > i { width: 50%; }
.meter.w60 > i { width: 60%; } .meter.w70 > i { width: 70%; } .meter.w80 > i { width: 80%; } .meter.w90 > i { width: 90%; } .meter.w100 > i { width: 100%; }
.dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; margin: 0; font-size: 15px; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.empty > svg { width: 38px; height: 38px; margin: 0 auto 12px; color: var(--muted); }
.thread { display: grid; gap: 14px; }
.msg { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.msg.staff { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); }
.msg.note { border-style: dashed; border-color: color-mix(in srgb, var(--warn-ink) 45%, var(--line)); background: var(--warn-bg); }
.msg-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13.5px; color: var(--muted); }
.msg-head b { color: var(--ink); }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.chart { width: 100%; height: 160px; }
.chart .bar { fill: url(#barGrad); }
.chart text { font: 10px var(--mono); fill: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.filters input, .filters select { width: auto; min-width: 12rem; padding: 9px 12px; }
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.subtabs a { padding: 11px 15px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.subtabs a.is-on { color: var(--ink); border-bottom-color: var(--accent); }
.welcome { position: relative; overflow: hidden; padding: 28px; border-radius: 22px; background: #0b1120; border: 1px solid #1c2740; color: #f2f4f8; margin-bottom: 20px; }
.welcome::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 90% at 100% 0%, rgb(240 122 69 / .3), transparent 70%), radial-gradient(40% 70% at 0% 100%, rgb(56 189 248 / .12), transparent 70%); pointer-events: none; }
.welcome > * { position: relative; }
.welcome h2 { font-size: 26px; margin-bottom: 6px; color: #fff; }
.welcome p { color: #aab4c5; margin: 0; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 20px; }
.quick a { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-radius: 12px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); color: #fff; font-weight: 600; font-size: 14.5px; transition: background .2s; }
.quick a:hover { background: rgb(255 255 255 / .12); }
.quick svg { width: 18px; height: 18px; color: #ff9a6b; }
.app-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.app-step { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); counter-increment: s; }
.app-step::before { content: "0" counter(s); display: block; margin-bottom: 8px; font: 600 12px/1 var(--mono); color: var(--accent-ink); }
.app-step h3 { font-size: 15px; margin-bottom: 4px; }
.app-step p { color: var(--muted); margin: 0; font-size: 14px; }
.review { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.review > div { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.review > .after { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 50%, var(--surface)); }
.review small { display: block; font: 600 11.5px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.review b { display: block; font: 600 26px/1.1 var(--display); letter-spacing: -.02em; }
.review span { color: var(--muted); font-size: 14px; }

/* ================================================================== legal */
.prose { color: var(--ink-2); }
.prose h2 { font-size: 26px; margin: 48px 0 12px; color: var(--ink); scroll-margin-top: 96px; }
.prose h3 { font-size: 18px; margin: 26px 0 8px; color: var(--ink); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }

/* ================================================================== presentation (slides) */
.deck-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.deck { display: grid; gap: 28px; }
.slide {
  position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; padding: clamp(22px, 4.2%, 52px) clamp(24px, 5%, 64px);
  background: #0b1120; color: #e2e8f0; border: 1px solid #1c2740; box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  container-type: inline-size; scroll-margin-top: 90px;
}
.slide::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(45% 60% at 100% 0%, rgb(240 122 69 / .18), transparent 70%), radial-gradient(40% 55% at 0% 100%, rgb(56 189 248 / .10), transparent 70%); }
.slide > * { position: relative; }
.slide .s-kicker { font: 600 1.35cqi/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: #ff9a6b; margin-bottom: 1.4cqi; }
.slide h2 { font-size: 4.1cqi; line-height: 1.08; color: #fff; letter-spacing: -.03em; max-width: 80%; }
.slide h2 em { font-style: normal; background: linear-gradient(100deg, #f07a45, #f5a524); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slide .s-lead { font-size: 1.85cqi; line-height: 1.5; color: #aab4c5; margin: 1.8cqi 0 0; max-width: 70%; }
.slide .s-body { flex: 1; display: grid; align-content: center; margin-top: 2.4cqi; min-height: 0; }
.slide .s-cols { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 1.6cqi; }
.slide .s-cols.c2 { --cols: 2; } .slide .s-cols.c4 { --cols: 4; }
.slide .s-card { border: 1px solid #1c2740; background: rgb(15 23 41 / .85); border-radius: 1.4cqi; padding: 1.8cqi; }
.slide .s-card h3 { font-size: 1.95cqi; color: #fff; margin-bottom: .8cqi; display: flex; align-items: center; gap: .8cqi; }
.slide .s-card h3 svg { width: 2.2cqi; height: 2.2cqi; color: #f07a45; }
.slide .s-card p, .slide .s-card li { font-size: 1.45cqi; line-height: 1.5; color: #c9d0dc; margin: 0; }
.slide .s-card ul { margin: 0; padding-left: 1.6cqi; display: grid; gap: .5cqi; }
.slide .s-mono { font: 400 1.5cqi/1.7 var(--mono); }
.slide .s-mono .t { color: #c084fc; font-weight: 600; }
.slide .s-mono .r { color: #86efac; font-weight: 600; }
.slide .s-label { display: block; font: 600 1.1cqi/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: #64748b; margin-bottom: 1cqi; }
.slide .s-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 2cqi; font: 500 1.2cqi/1 var(--font); color: #64748b; }
.slide .s-foot b { font-family: var(--mono); color: #94a3b8; font-weight: 600; }
.slide .s-brand { display: flex; align-items: center; gap: 1cqi; font: 600 1.8cqi/1 var(--display); color: #fff; margin-bottom: auto; }
.slide .s-brand svg { width: 3.2cqi; height: 3.2cqi; }
.slide.title h2 { font-size: 5.2cqi; max-width: 78%; }
.slide.title .s-lead { font-size: 1.7cqi; max-width: 84%; margin-top: 1.4cqi; }
.slide.title .s-foot { margin-top: 1.4cqi; }
.slide.title .s-body { align-content: end; }
.slide .s-table { width: 100%; border-collapse: collapse; font-size: 1.5cqi; }
.slide .s-table td, .slide .s-table th { padding: 1.05cqi 1.2cqi; border-bottom: 1px solid #1c2740; text-align: left; }
.slide .s-table th { font: 600 1.1cqi/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.slide .s-table td:first-child { color: #fff; font-weight: 600; }
.slide .s-price { font: 600 3.4cqi/1 var(--display); color: #fff; letter-spacing: -.03em; margin: .6cqi 0 .4cqi; }
.slide .s-price small { font: 500 1.3cqi/1 var(--font); color: #94a3b8; letter-spacing: 0; }

/* ================================================================== reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.d1 { --i: 1; } .d2 { --i: 2; } .d3 { --i: 3; } .d4 { --i: 4; }

/* Theme switch: circular reveal (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0)); animation: vt-grow .6s var(--ease) forwards; }
@keyframes vt-grow { to { clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 50%) var(--vt-y, 0)); } }

/* ================================================================== responsive */
@media (max-width: 1160px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 12px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links .only-menu { display: block; }
  .nav-actions { margin-left: auto; }
  .menu-btn { display: grid; }
  .nav-actions .hide-sm { display: none; }
}
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-canvas { -webkit-mask-image: none; mask-image: none; opacity: .3; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-panel, .demo-row { grid-template-columns: minmax(0, 1fr); }
  .demo-row:nth-child(even) > :first-child { order: 0; }
  .float-note { right: 12px; }
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  footer .wrap { grid-template-columns: 1fr 1fr 1fr; }
  footer .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split.reverse > :first-child { order: 0; }
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .app-side { position: static; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .app-side h4 { grid-column: 1 / -1; }
  .roadmap { grid-template-columns: minmax(0, 1fr); }
  .slide .s-cols { --cols: 2; }
}
@media (max-width: 860px) {
  .flow, .plans, .guides, .steps-3, .app-steps { grid-template-columns: minmax(0, 1fr); }
  .flow-line { display: none; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .impact-grid, .review { grid-template-columns: minmax(0, 1fr); }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
}
@media (max-width: 640px) {
  .grid-2, .choices.cols-2 { grid-template-columns: minmax(0, 1fr); }
  .slide { aspect-ratio: auto; min-height: 56vw; }
  .slide .s-cols { --cols: 1; }
  .slide h2, .slide.title h2 { max-width: none; }
  .slide .s-lead { max-width: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .narrow, .container, .container.narrow { width: calc(100% - 32px); }
  .nav .wrap { gap: 10px; }
  .brand small { display: none; }
  .features, .features.three, .features.two { grid-template-columns: minmax(0, 1fr); }
  .tabs { width: 100%; }
  .tabs button { flex: 1 1 45%; justify-content: center; padding: 11px 8px; font-size: 13.5px; }
  .hero { padding-top: 40px; }
  .live-text { font-size: 14px; }
  .float-note { display: none; }
  .player .cc { font-size: 13.5px; bottom: 54px; }
  .cta-box { padding: 48px 22px; }
  footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .auth-card { padding: 24px; }
  .card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ================================================================== desktop app section (from the commercial site) */
/* Mono, bordered eyebrow and a warm gradient on the second half of the title. */
.grad-warm {
  background: linear-gradient(100deg, var(--ink) 5%, var(--accent-ink) 40%, var(--accent) 70%, #f5a524 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
:root[data-theme="dark"] .grad-warm { background-image: linear-gradient(100deg, #fff 10%, #fff6ec 30%, #ff8a3d 65%, #f5b342 95%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .grad-warm { background-image: linear-gradient(100deg, #fff 10%, #fff6ec 30%, #ff8a3d 65%, #f5b342 95%); }
}

/* Big centred hero (presentation page): larger title and the commercial site's faint grid behind it. */
.page-hero.big { padding: 88px 0 56px; }
.page-hero.big h1 { font-size: clamp(44px, 6.6vw, 82px); line-height: 1.02; letter-spacing: -.04em; margin-top: 4px; }
.page-hero.big .lead { max-width: 560px; }
.bg-grid { position: relative; isolation: isolate; }
.bg-grid::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* The wink right of the brand: the letters come in, stay 2 s, then crack and break off from right to left while the
   bubble behind them is wiped away in step (site.js sets --dx/--dy/--rot per letter and the wipe's duration). Once per visit. */
@property --wipe { syntax: "<percentage>"; inherits: false; initial-value: 125%; }
.nav .brand.has-quote { position: relative; }
.brand-quote {
  position: absolute; left: calc(100% + 12px); top: 50%; z-index: 2; translate: 0 -50%; white-space: nowrap; pointer-events: none;
  font: 600 italic 13px/1 var(--display); letter-spacing: .01em; color: var(--accent); padding: 7px 12px; opacity: 0;
}
.brand-quote::before {
  /* No outline. On phones it is a feathered patch of the page colour (the phrase hangs over the hero); none in the header. */
  content: ""; position: absolute; inset: -2px 0; z-index: -1; border-radius: 99px; filter: blur(6px);
  --wipe: 125%; mask-image: linear-gradient(to right, #000 calc(var(--wipe) - 28px), transparent var(--wipe));
}
.brand-quote.on { opacity: 1; }
/* The menu links under the phrase step aside while it is shown and come back as it breaks up. */
.nav-links a.quote-under { opacity: 0; }
.brand-quote.fading::before { --wipe: 0%; transition: --wipe var(--wipe-ms, 1.6s) linear var(--wipe-delay, .2s); }
.brand-quote .ql { display: inline-block; animation: ql-in .4s var(--ease) both; }
.brand-quote .ql.off { animation: ql-out .9s cubic-bezier(.45, 0, .8, .55) both; }
@keyframes ql-in { from { opacity: 0; transform: translateY(7px) scale(.7); filter: blur(4px); } }
@keyframes ql-out {
  0% { opacity: 1; transform: none; filter: blur(0); }
  22% { transform: translate(calc(var(--dx, 12px) * .08), -3px) rotate(calc(var(--rot, 40deg) * .18)); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 12px), var(--dy, -10px)) rotate(var(--rot, 40deg)) scale(.55); filter: blur(2.5px); }
}
:root[data-quote="off"] .brand-quote, body.app .brand-quote, .no-js .brand-quote { display: none; }
/* Phones: no room right of the wordmark (language and theme buttons), so the bubble hangs just under it. */
@media (max-width: 560px) {
  .brand-quote { font-size: 11.5px; padding: 6px 10px; left: 30px; top: calc(100% + 10px); translate: none; }
  .brand-quote::before { background-color: var(--bg); }
}

/* Four plans side by side on a wide screen, two by two below. */
.plans.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plans.four .plan { padding: 24px 20px; }
.plan.soon.priced .price strong { font-size: 40px; color: var(--ink); }
@media (max-width: 1180px) {
  .plans.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .plans.four { grid-template-columns: minmax(0, 1fr); }
}

/* The online service: prepaid packs of units, and what every pack includes. */
.plan.pack .badge-top { background: var(--ink); color: var(--bg); }
.pack-facts { max-width: 760px; margin: 28px auto 0; }

/* An offer presented in a few lines, with a link to its prices (the online service on the home page). */
.offer-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding: 24px 28px; border-radius: var(--radius-lg); border: 1px dashed var(--line); background: var(--surface-2); }
.offer-banner h3 { font-size: 20px; margin: 10px 0 6px; }
.offer-banner p { color: var(--ink-2); font-size: 15px; margin: 0; max-width: 760px; }
.offer-banner .btn { flex: none; }
.eyebrow .badge { margin-left: 8px; }
@media (max-width: 860px) {
  .offer-banner { flex-direction: column; align-items: flex-start; }
}

/* An offer announced but not sold yet. */
.plan.soon { border-style: dashed; background: var(--surface-2); }
.plan.soon .badge-top { background: var(--ink); color: var(--bg); }
.plan.soon .price strong { font-size: 30px; color: var(--muted); }

/* ================================================================== small shared pieces */
.tag { display: inline-flex; align-items: center; gap: 6px; }
.tag svg { width: 14px; height: 14px; }
.hero-center { text-align: center; max-width: 860px; margin-inline: auto; }
.hero-center .lead { margin-inline: auto; }
.hero-center .hero-cta, .hero-center .hero-meta { justify-content: center; }
.entity-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.chip b { font-weight: 600; }
.section-head h1 { font-size: clamp(30px, 4vw, 44px); }
.auth-card .eyebrow { margin-bottom: 16px; }
.auth-card > .muted { margin-top: 10px; }

/* Printing the presentation gives the PDF: one slide per landscape page. */
@media print {
  @page { size: 297mm 167mm; margin: 0; }
  html, body { background: #0b1120 !important; }
  .nav, footer, .dev-banner, .doc-hero, .cta-final, .page-hero, .no-print { display: none !important; }
  .section-tight, .page-hero + .section-tight { padding: 0 !important; }
  .deck { gap: 0; }
  .deck-wrap { width: 100% !important; }
  .slide { break-after: page; break-inside: avoid; contain: size layout paint; border-radius: 0; border: 0; box-shadow: none; width: 297mm; height: 167mm; min-height: 0; aspect-ratio: auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .slide .s-cols { --cols: 3 !important; }
  .slide .s-cols.c2 { --cols: 2 !important; }
  .slide .s-cols.c4 { --cols: 4 !important; }
  .slide h2, .slide.title h2 { max-width: 80% !important; }
  .slide h2 em { background: none; color: #f07a45; -webkit-text-fill-color: #f07a45; }
}

/* ================================================================== central administration demo (Enterprise page)
   A dark "window" in both themes, like the hero panels; steps change with site.js, and animate once visible. */
.admin-demo { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.ad-head { text-align: center; max-width: 660px; margin: 0 auto 18px; }
.ad-head h3 { font-size: 26px; margin: 8px 0; }
.ad-head p { color: var(--muted); margin: 0; }
.ad-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.ad-nav button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font: 600 14px/1 var(--font); padding: 9px 14px 9px 9px; border-radius: 99px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.ad-nav button b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: var(--ink-2); font-size: 12px; }
.ad-nav button:hover { border-color: var(--line-strong); color: var(--ink); }
.ad-nav button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ad-nav button[aria-selected="true"] b { background: var(--accent); color: #fff; }
.ad-step { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.ad-step[hidden] { display: none; }
.no-js .ad-step[hidden] { display: grid; margin-bottom: 28px; }
.ad-cap { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.ad-cap b { display: block; font: 600 20px/1.25 var(--display); color: var(--ink); margin-bottom: 8px; }
.ad-mock { border: 1px solid #1c2740; border-radius: 14px; overflow: hidden; background: #0b1120; color: #e2e8f0; box-shadow: var(--shadow-lg); }
.ad-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #111a2e; border-bottom: 1px solid #1c2740; font: 600 12px/1 var(--font); color: #94a3b8; }
.ad-bar i { width: 9px; height: 9px; border-radius: 50%; background: #334155; }
.ad-bar span { margin-left: 8px; }
.ad-body { padding: 16px; display: grid; gap: 14px; font-size: 13.5px; }
.ad-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ad-row > b { color: #cbd5e1; margin-right: 4px; }
.ad-row.col { flex-direction: column; align-items: flex-start; gap: 9px; }
.ad-row.end { justify-content: flex-end; }
.ad-mock .chip { display: inline-flex; align-items: center; gap: 5px; color: var(--c, #cbd5e1); background: color-mix(in srgb, var(--c, #94a3b8) 18%, transparent); }
.ad-mock .chip .i { width: 12px; height: 12px; }
.ad-mock .c-last { --c: #c084fc; } .ad-mock .c-secret { --c: #f87171; } .ad-mock .c-email { --c: #22d3ee; }
.ad-ck { display: flex; align-items: center; gap: 9px; color: #cbd5e1; }
.ad-ck i { position: relative; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #475569; flex: none; }
.ad-ck.on i { background: #2563eb; border-color: #2563eb; }
.ad-ck.on i::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ad-ck.hot { color: #fbbf24; } .ad-ck.hot i { border-color: #f59e0b; }
.ad-mock .btn.sm { padding: 8px 12px; font-size: 12.5px; }
.ad-mock .btn-ghost { background: #111a2e; color: #cbd5e1; border-color: #1c2740; }
.ad-mock .compare div { background: #111a2e; border-color: #1c2740; }
.ad-mock .compare b { color: #94a3b8; }
.ad-mock .compare code { color: #e2e8f0; }
.ad-mock .compare .model { border-color: #2563eb; }
.tok { font: 600 12.5px/1 "JetBrains Mono", monospace; color: #c084fc; }
.tok::before { content: "[["; } .tok::after { content: "]]"; }
.ad-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: #94a3b8; font-size: 12.5px; }
.ad-note .i { width: 14px; height: 14px; margin-top: 2px; color: #fbbf24; }
.ad-state { color: #38bdf8; font-weight: 600; }
.ad-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: #475569; color: #fff; font-weight: 600; }
.ad-btn.off { opacity: .55; cursor: not-allowed; }
.ad-row small { color: #fbbf24; }
.ad-toast { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #b45309; background: rgb(245 158 11 / .12); border-radius: 10px; color: #fde68a; font-size: 12.5px; }
.ad-code { position: relative; padding: 14px 14px 48px; border-radius: 10px; background: #111a2e; font: 13px/1.5 "JetBrains Mono", monospace; }
.ad-code mark.fp { background: rgb(4 120 87 / .55); color: #6ee7b7; padding: 1px 4px; border-radius: 4px; }
.ad-menu { position: absolute; left: 62px; top: 38px; padding: 8px 12px; border-radius: 8px; background: #1e293b; border: 1px solid #334155; color: #e2e8f0; font: 600 12.5px/1 var(--font); box-shadow: 0 8px 20px rgb(0 0 0 / .4); }
.ad-queue { display: grid; gap: 8px; padding: 12px; border-radius: 10px; border: 1px solid #1c2740; background: #111a2e; }
.ad-queue > b { color: #94a3b8; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.ad-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ad-item > span:first-child { flex: 1 1 180px; color: #cbd5e1; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ad-mock .table-scroll { background: transparent; border-color: #1c2740; }
.ad-table th, .ad-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #1c2740; white-space: nowrap; }
.ad-table th { color: #94a3b8; font-weight: 600; }
.ad-table tr:last-child td { border-bottom: 0; }
.ad-mock .badge.ok { display: inline-flex; align-items: center; gap: 5px; background: rgb(22 163 74 / .2); color: #86efac; padding: 5px 9px; border-radius: 99px; font: 600 12px/1 var(--font); }
.ad-foot { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.ad-foot .btn.sm { padding: 9px 14px; font-size: 13.5px; }
.ad-dots { display: flex; gap: 7px; }
.ad-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: background .25s, transform .25s; }
.ad-dots i.on { background: var(--accent); transform: scale(1.35); }
@keyframes ad-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ad-step.on .a1 { animation: ad-in .5s .35s var(--ease) both; }
.ad-step.on .a2 { animation: ad-in .5s 1.1s var(--ease) both; }
.ad-step.on .a3 { animation: ad-in .5s 1.9s var(--ease) both; }
@media (max-width: 860px) { .ad-step { grid-template-columns: 1fr; } .admin-demo { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { .ad-step.on .a1, .ad-step.on .a2, .ad-step.on .a3 { animation: none; } }
/* Architecture and deployment options (Enterprise page) */
.features.four { margin-top: 0; }
.dep-table { min-width: 880px; }
.dep-table th, .dep-table td { text-align: left; vertical-align: top; }
.dep-table td:first-child { white-space: nowrap; }
.dep-table .sub { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.note-soft { color: var(--muted); font-size: 13.5px; }
.checks.dep-checks { margin-top: 2.5rem; }
.note-soft { margin-top: 1.5rem; }

/* Ask Seal: documentation assistant on the FAQ page */
.ask { margin-bottom: 28px; }
.ask h2 { margin-top: 0; }
/* Compact form (home hero): the field sits on the line of the buttons; answers and notices take the full width underneath. */
/* In the hero, the compact form closes the description: a last sentence in the same text, then the field on its own line. */
.hero-ask { display: flex; max-width: 560px; margin-top: 14px; font-size: 18px; }
.ask-mini { display: contents; }
.ask-mini > .ask-form { flex: 1 1 250px; gap: 8px; min-width: 0; align-items: center; }
.ask-mini > .ask-form label { flex: 1 1 100%; margin: 0; font: inherit; color: var(--ink-2); }
.ask-mini > .ask-form input { flex: 1 1 0; }
.ask-mini > .ask-form .btn { flex: none; padding-inline: 14px; }
/* The conversation itself: a dialog over the page, full screen on a phone; only the log scrolls. */
.ask-dialog { width: min(640px, 100% - 32px); max-height: min(720px, 100dvh - 48px); padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.ask-dialog[open] { display: flex; flex-direction: column; gap: 14px; }
.ask-dialog::backdrop { background: rgb(4 7 15 / .62); }
.ask-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ask-dialog-head h2 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.ask-dialog-head .btn { font-size: 20px; line-height: 1; }
.ask-dialog .ask-log { flex: 1 1 auto; min-height: 0; margin: 0; overflow-y: auto; align-content: start; }
.ask-dialog .ask-msg { background: var(--surface-2); }
.ask-dialog .hint { margin: 0; }
@media (max-width: 640px) {
  .ask-dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; padding: 18px 16px; }
}
.ask-log { display: grid; gap: 12px; margin: 16px 0; }
.ask-log:empty { display: none; }
.ask-msg { margin: 0; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 15.5px; white-space: pre-wrap; }
.ask-me { border-color: var(--line-strong); }
.ask-msg strong { color: var(--ink); }
.ask-sources { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.ask-msg .btn { margin-top: 10px; }
.ask-diagram { display: block; margin-top: 12px; border-radius: var(--radius); }
.ask-diagram img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.ask-form { display: flex; gap: 10px; flex-wrap: wrap; }
.ask-form input { flex: 1 1 260px; min-width: 0; }
