/* acetflo.com marketing site. Plain CSS, no build step, no third-party requests. */

:root {
  color-scheme: light;
  --ink: #16141f;
  --ink-2: #45424f;
  --muted: #6e6a79;
  --bg: #fbf9f6;
  --surface: #ffffff;
  --line: #ebe6df;
  --line-2: #f2eee8;
  --brand: #4f46e5;
  --brand-hover: #4038d4;
  --brand-ink: #3a32b8;
  --brand-soft: #eeedfd;
  --lavender: #f1f0fe;
  --peach: #fff0e6;
  --peach-ink: #b24e17;
  --mint: #e6f5ee;
  --mint-ink: #1d7449;
  --sky: #e8f1fc;
  --sky-ink: #1f5fa8;
  --sun: #fff6d6;
  --sun-ink: #8a6a00;
  --rose: #fde9ec;
  --rose-ink: #b0283f;
  --night: #16132a;
  --night-2: #221e3d;
  --surface-2: #fcfbfa;
  --header-bg: rgba(251, 249, 246, .86);
  --hover: rgba(22, 20, 31, .05);
  --input-bg: #ffffff;
  --hairline: rgba(22, 20, 31, .06);
  --stage-a: #e3e0ff;
  --stage-b: #f3ecff;
  --av1: #ffd9c2; --av2: #cfe8ff; --av3: #d9f2e3; --av4: #e8e1ff; --av5: #ffe9a8;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(22, 20, 31, 0.06), 0 1px 1px rgba(22, 20, 31, 0.04);
  --shadow: 0 12px 32px -12px rgba(22, 20, 31, 0.18), 0 2px 6px rgba(22, 20, 31, 0.05);
  --shadow-lg: 0 40px 80px -30px rgba(31, 26, 80, 0.35), 0 8px 24px -8px rgba(22, 20, 31, 0.12);
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Inter var", Inter, "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
}

/* Dark theme: follows the system unless the visitor picked one (data-theme, set by theme.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #f3f1fa; --ink-2: #c6c2d4; --muted: #9a96ab;
    --bg: #100e17; --surface: #1a1824; --surface-2: #16141f; --line: #2d2a3a; --line-2: #24212f;
    --brand: #6c63ff; --brand-hover: #7d75ff; --brand-ink: #b3adff; --brand-soft: #27234f;
    --lavender: #1c1a33; --peach: #2a1d16; --peach-ink: #ffb088; --mint: #142a20; --mint-ink: #74d6a2;
    --sky: #142337; --sky-ink: #8fc3ff; --sun: #2b2412; --sun-ink: #f2cd5c; --rose: #2f1620; --rose-ink: #ff94a8;
    --night: #1a1735; --night-2: #252147;
    --header-bg: rgba(16, 14, 23, .82); --hover: rgba(255, 255, 255, .07); --input-bg: #13111b; --hairline: rgba(255, 255, 255, .06);
    --stage-a: #2a2560; --stage-b: #1f1b3d;
    --av1: #5a3524; --av2: #1f3d5c; --av3: #1d3f2c; --av4: #352c62; --av5: #4d4116;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 12px 32px -12px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 8px 24px -8px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f3f1fa; --ink-2: #c6c2d4; --muted: #9a96ab;
  --bg: #100e17; --surface: #1a1824; --surface-2: #16141f; --line: #2d2a3a; --line-2: #24212f;
  --brand: #6c63ff; --brand-hover: #7d75ff; --brand-ink: #b3adff; --brand-soft: #27234f;
  --lavender: #1c1a33; --peach: #2a1d16; --peach-ink: #ffb088; --mint: #142a20; --mint-ink: #74d6a2;
  --sky: #142337; --sky-ink: #8fc3ff; --sun: #2b2412; --sun-ink: #f2cd5c; --rose: #2f1620; --rose-ink: #ff94a8;
  --night: #1a1735; --night-2: #252147;
  --header-bg: rgba(16, 14, 23, .82); --hover: rgba(255, 255, 255, .07); --input-bg: #13111b; --hairline: rgba(255, 255, 255, .06);
  --stage-a: #2a2560; --stage-b: #1f1b3d;
  --av1: #5a3524; --av2: #1f3d5c; --av3: #1d3f2c; --av4: #352c62; --av5: #4d4116;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 12px 32px -12px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 8px 24px -8px rgba(0, 0, 0, .4);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.08; letter-spacing: -0.028em; font-weight: 750; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -0.035em; }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.02em; }
h4 { font-size: 1.05rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--font); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .6); }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: #16141f; }
.btn-light:hover { background: #eeedfd; color: #16141f; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--brand-ink); display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 21px; letter-spacing: -0.04em; }
.logo:hover { color: var(--ink); }
.logo svg { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 520; font-size: 15.5px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--hover); color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-cta .signin { color: var(--ink); text-decoration: none; font-weight: 560; font-size: 15.5px; padding: 8px 12px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s ease, background-color .2s ease; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav { gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .nav-links, .nav-cta { display: none; }
  .nav-open .nav-panel { display: flex; }
}
.nav-panel { display: contents; }
@media (max-width: 920px) {
  .nav-panel { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 8px; padding: 12px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-open .nav-panel .nav-links, .nav-open .nav-panel .nav-cta { display: flex; }
  .nav-panel .nav-links { flex-direction: column; }
  .nav-panel .nav-links a { padding: 12px; font-size: 17px; }
  .nav-panel .nav-cta { margin: 8px 0 0; flex-direction: column; align-items: stretch; }
  .nav-panel .nav-cta .btn { width: 100%; }
  .nav-panel .nav-cta .signin { text-align: center; }
}

/* ── Sections ────────────────────────────────────────────────────────────── */
section { padding-block: clamp(72px, 10vw, 128px); }
.section-tight { padding-block: clamp(48px, 7vw, 80px); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 18px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; color: var(--brand-ink); margin-bottom: 16px; letter-spacing: .01em; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tint-lavender { background: var(--lavender); }
.tint-peach { background: var(--peach); }
.tint-white { background: var(--surface); }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--ink-2); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(48px, 6vw, 72px); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero h1 .hl { color: var(--brand); }
.hero .lead { margin-top: 24px; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.checks { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: var(--ink-2); }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks li { position: relative; }
.checks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--mint); flex: none; }
.checks li::after { content: ""; position: absolute; left: 5px; top: 50%; width: 8px; height: 4px; border-left: 2px solid var(--mint-ink); border-bottom: 2px solid var(--mint-ink); transform: translateY(-70%) rotate(-45deg); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .lead { max-width: 56ch; }
}

.stage { position: relative; padding: 28px 0 48px; }
.stage-blob { position: absolute; inset: 0 -6% 0 6%; border-radius: 48px; background: radial-gradient(120% 90% at 80% 10%, var(--stage-a) 0%, var(--stage-b) 40%, var(--peach) 100%); }
@media (max-width: 960px) { .stage-blob { inset: 0 -4%; } }

/* App window mock */
.app { position: relative; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--hairline); overflow: hidden; font-size: 13px; color: var(--ink); line-height: 1.4; }
.app-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.app-url { margin-left: 10px; flex: 1; max-width: 260px; padding: 4px 10px; border-radius: 6px; background: var(--line-2); color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-body { display: grid; grid-template-columns: 148px minmax(0, 1fr); min-height: 300px; }
.app-side { border-right: 1px solid var(--line-2); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; background: var(--surface-2); }
.app-side b { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 2px 6px 12px; }
.app-side b svg { width: 18px; height: 18px; }
.app-side span { padding: 6px 8px; border-radius: 7px; color: var(--muted); font-size: 12.5px; }
.app-side span.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.app-main { padding: 16px 18px; min-width: 0; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.app-head strong { font-size: 15px; letter-spacing: -0.01em; }
.app-search { flex: 1; max-width: 180px; height: 28px; border-radius: 7px; border: 1px solid var(--line); background: var(--input-bg); color: var(--muted); font-size: 11.5px; display: flex; align-items: center; padding: 0 9px; }
.app-table { width: 100%; border-collapse: collapse; }
.app-table th { text-align: left; font-weight: 550; color: var(--muted); font-size: 11.5px; padding: 6px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.app-table td { padding: 9px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; vertical-align: middle; }
.app-table tr:last-child td { border-bottom: 0; }
.app-table .dev { font-weight: 600; }
.app-table .sub { display: block; color: var(--muted); font-family: var(--mono); font-size: 10.5px; font-weight: 400; }
.app-body { grid-template-columns: minmax(0, 1fr); }
.app-side { display: none; }
@media (max-width: 560px) {
  .app-table .opt, .app-search { display: none; }
}
@media (max-width: 440px) {
  .app-table .own { display: none; }
}

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--mint); color: var(--mint-ink); }
.pill.bad { background: var(--rose); color: var(--rose-ink); }
.pill.warn { background: var(--sun); color: var(--sun-ink); }
.pill.info { background: var(--sky); color: var(--sky-ink); }
.src { display: inline-flex; gap: 3px; }
.src em { font-style: normal; font-size: 10px; font-weight: 650; padding: 2px 6px; border-radius: 5px; background: var(--line-2); color: var(--ink-2); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 9.5px; font-weight: 700; margin-right: 6px; vertical-align: middle; color: var(--ink); }
.av1 { background: var(--av1); } .av2 { background: var(--av2); } .av3 { background: var(--av3); } .av4 { background: var(--av4); } .av5 { background: var(--av5); }

/* Floating cards */
.float { position: absolute; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--hairline); padding: 14px 16px; font-size: 13px; color: var(--ink); line-height: 1.4; }
.float small { display: block; color: var(--muted); font-size: 11.5px; }
.float-merge { right: -18px; top: -30px; width: 228px; }
.float-flow { left: -28px; bottom: -12px; width: 268px; }
.float .row { display: flex; align-items: center; gap: 10px; }
.float .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float .ico svg { width: 18px; height: 18px; }
.ico-brand { background: var(--brand-soft); color: var(--brand); }
.ico-peach { background: var(--peach); color: var(--peach-ink); }
.ico-mint { background: var(--mint); color: var(--mint-ink); }
.ico-sky { background: var(--sky); color: var(--sky-ink); }
.ico-sun { background: var(--sun); color: var(--sun-ink); }
.ico-rose { background: var(--rose); color: var(--rose-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.chips em { font-style: normal; font-size: 10.5px; font-weight: 600; padding: 3px 7px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); }
.flow-step { display: flex; gap: 10px; align-items: flex-start; }
.flow-step + .flow-step { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.flow-step .ico { width: 28px; height: 28px; border-radius: 8px; }
.flow-step .ico svg { width: 15px; height: 15px; }
@media (max-width: 1100px) { .float-merge { right: 8px; } .float-flow { left: 8px; } }
@media (max-width: 560px) {
  .stage { padding-bottom: 12px; }
  .float { position: relative; inset: auto; width: auto; margin: 12px 8px 0; }
}

/* ── Integrations strip ─────────────────────────────────────────────────── */
.logos { padding-block: 40px 8px; }
.logos p { text-align: center; color: var(--muted); font-size: 15px; font-weight: 520; margin-bottom: 22px; }
.logo-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; list-style: none; margin: 0; padding: 0; }
.logo-cloud li { padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 650; font-size: 15px; letter-spacing: -0.01em; }

/* ── Tabs ────────────────────────────────────────────────────────────────── */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab { appearance: none; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 10px 18px; font: 600 15.5px/1.2 var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color .15s, border-color .15s, color .15s; }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tab svg { width: 18px; height: 18px; }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: center; background: var(--surface); border-radius: var(--radius-lg); padding: clamp(24px, 4.5vw, 56px); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.panel[hidden] { display: none; }
.panel h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.03em; }
.panel > div > p { margin-top: 14px; }
@media (max-width: 860px) { .panel { grid-template-columns: minmax(0, 1fr); } }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 10px; width: 8px; height: 4px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.ticks strong { color: var(--ink); font-weight: 650; }

/* Generic UI card used in illustrations */
.ui { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px; font-size: 13.5px; color: var(--ink); line-height: 1.45; }
.ui-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 650; margin-bottom: 12px; }
.ui-title small { color: var(--muted); font-weight: 500; font-size: 12px; }
.ui-list { list-style: none; margin: 0; padding: 0; }
.ui-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.ui-list li:first-child { border-top: 0; padding-top: 2px; }
.ui-list .grow { flex: 1; min-width: 0; }
.ui-list small { display: block; color: var(--muted); font-size: 12px; }
.ui-list .mono { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.ui-stack { position: relative; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg); }
.ui-stack .ui + .ui { margin-top: 14px; }
.ui-offset { margin-left: clamp(0px, 6%, 48px); }
.bg-lavender { background: var(--lavender); }
.bg-peach { background: var(--peach); }
.bg-mint { background: var(--mint); }
.bg-sky { background: var(--sky); }
.bg-sun { background: var(--sun); }

.merge { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.1fr); gap: 12px; align-items: center; }
.merge .srcs { display: grid; gap: 8px; }
.merge .srcs div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font-size: 12.5px; box-shadow: var(--shadow-sm); }
.merge .srcs b { display: block; font-size: 12px; }
.merge .srcs code { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.merge .arrow { color: var(--brand); font-size: 22px; font-weight: 700; }
@media (max-width: 480px) {
  .merge { grid-template-columns: minmax(0, 1fr); }
  .merge .arrow { transform: rotate(90deg); justify-self: center; }
}
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 12.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 550; }

.audit-line { font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: var(--ink-2); }
.audit-line b { color: var(--ink); font-weight: 650; }
.hash { color: var(--muted); }

/* ── Zigzag feature rows ───────────────────────────────────────────────── */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 10vw, 128px); }
.feature.flip > :first-child { order: 2; }
.feature.top { align-items: start; }
.feature h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.feature .lead { margin-top: 18px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip > :first-child { order: 0; }
}

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 16px; top: 18px; bottom: 18px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 8px 0; }
.timeline .ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 4px var(--surface); }
.timeline .ico svg { width: 16px; height: 16px; }
.timeline small { display: block; color: var(--muted); font-size: 12px; }

.sig { margin-top: 12px; border: 1.5px dashed var(--line); border-radius: 12px; padding: 10px 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sig svg { width: 150px; height: 46px; color: var(--ink); }
.sig small { color: var(--muted); font-size: 11.5px; text-align: right; }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding-top: 6px; }
.bars div { flex: 1; border-radius: 7px 7px 3px 3px; background: var(--brand-soft); position: relative; }
.bars div.on { background: var(--brand); }
.b1 { height: 92%; } .b2 { height: 74%; } .b3 { height: 58%; } .b4 { height: 44%; } .b5 { height: 30%; } .b6 { height: 18%; }
.bar-labels { display: flex; gap: 10px; margin-top: 6px; }
.bar-labels span { flex: 1; text-align: center; font-size: 11px; color: var(--muted); }
.meter { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.m-86 { width: 86%; } .m-104 { width: 100%; background: var(--peach-ink) !important; } .m-61 { width: 61%; }

/* ── Cards grids ─────────────────────────────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1040px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-2 { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.card .ico svg { width: 22px; height: 22px; }
.card p { font-size: 15.5px; }
.card .link-arrow { margin-top: auto; padding-top: 6px; font-size: 15px; }
.team-card { border: 0; padding: 30px; border-radius: var(--radius-lg); min-height: 260px; }
.team-card h3 { font-size: 1.45rem; }
.team-card.bg-lavender { background: var(--lavender); }
.team-card.bg-sky { background: var(--sky); }
.team-card.bg-peach { background: var(--peach); }
.team-card.bg-mint { background: var(--mint); }
.team-card .who { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

.mini { display: flex; gap: 14px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--line); }
.mini .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.mini .ico svg { width: 20px; height: 20px; }
.mini p { font-size: 15.5px; margin-top: 4px; }

/* ── Dark security band ─────────────────────────────────────────────────── */
.band-dark { background: var(--night); color: #c9c5df; position: relative; overflow: hidden; }
.band-dark h2, .band-dark h3, .band-dark h4 { color: #fff; }
.band-dark .eyebrow { color: #a9a3ff; }
.band-dark .lead, .band-dark .section-head p { color: #c9c5df; }
.band-dark a.link-arrow { color: #c3beff; }
.band-dark::before { content: ""; position: absolute; width: 720px; height: 720px; right: -240px; top: -320px; border-radius: 50%; background: radial-gradient(circle, rgba(99, 91, 255, .35), transparent 65%); pointer-events: none; }
.layers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; position: relative; }
@media (max-width: 760px) { .layers { grid-template-columns: minmax(0, 1fr); } }
.layer { background: var(--night-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); padding: 26px; display: flex; gap: 16px; }
.layer .num { flex: none; width: 36px; height: 36px; border-radius: 10px; background: rgba(169, 163, 255, .16); color: #c3beff; display: grid; place-items: center; font-weight: 750; font-size: 15px; }
.layer p { font-size: 15.5px; margin-top: 6px; }

/* ── Deployment options ─────────────────────────────────────────────────── */
.deploy { border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); background: var(--surface); }
.deploy.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.deploy .tag { align-self: flex-start; font-size: 12.5px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); }
.deploy ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; font-size: 15.5px; }
.deploy li { padding-left: 24px; position: relative; }
.deploy li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 10px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.deploy .btn { margin-top: auto; align-self: flex-start; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { max-width: 860px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative; font-weight: 650; font-size: 1.12rem; color: var(--ink); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 24px; max-width: 72ch; }
.faq details > div p + p { margin-top: 12px; }

/* ── CTA band ────────────────────────────────────────────────────────────── */
.cta-band { padding-block: clamp(56px, 8vw, 96px); }
.cta-box { background: var(--brand); border-radius: 36px; padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 80px); color: #e6e4ff; text-align: center; position: relative; overflow: hidden; }
.cta-box::before, .cta-box::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.cta-box::before { width: 420px; height: 420px; left: -140px; bottom: -240px; background: rgba(255, 255, 255, .09); }
.cta-box::after { width: 300px; height: 300px; right: -90px; top: -150px; background: rgba(255, 196, 160, .28); }
.cta-box h2 { color: #fff; max-width: 16ch; margin-inline: auto; position: relative; }
.cta-box p { margin: 18px auto 0; max-width: 52ch; font-size: 1.15rem; position: relative; }
.cta-box .hero-actions { justify-content: center; position: relative; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { padding-block: 64px 40px; border-top: 1px solid var(--line); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-size: 14px; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-grid .about p { margin-top: 14px; max-width: 34ch; color: var(--muted); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-grid .about { grid-column: 1 / -1; } }

/* ── Inner pages ─────────────────────────────────────────────────────────── */
.page-hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 72px); text-align: center; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); max-width: 18ch; margin-inline: auto; }
.page-hero .lead { margin: 22px auto 0; max-width: 60ch; }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -13px; left: 26px; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 650; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.5rem; }
.plan .for { font-size: 15px; color: var(--muted); min-height: 3em; }
.plan .price { font-size: 1.9rem; font-weight: 750; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.plan .price small { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.plan ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 9px; font-size: 15px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 6px; border-left: 2px solid var(--mint-ink); border-bottom: 2px solid var(--mint-ink); transform: rotate(-45deg); }
.plan .btn { margin-top: 4px; }
.plan hr { border: 0; border-top: 1px solid var(--line-2); margin: 4px 0; width: 100%; }

.compare-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line-2); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--ink); }
.compare thead th { font-size: 15px; color: var(--ink); font-weight: 700; background: var(--surface-2); position: sticky; top: 0; }
.compare tbody th { font-weight: 520; }
.compare .group th { background: var(--line-2); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.yes { display: inline-block; position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); vertical-align: middle; }
.yes::after { content: ""; position: absolute; left: 6px; top: 7px; width: 9px; height: 4.5px; border-left: 2.2px solid var(--mint-ink); border-bottom: 2.2px solid var(--mint-ink); transform: rotate(-45deg); }
.no { color: var(--muted); }

.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 56px 0 14px; }
.prose h3 { margin: 32px 0 8px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--line-2); padding: 2px 6px; border-radius: 6px; }
.todo { border: 2px dashed var(--peach-ink); background: var(--peach); color: var(--peach-ink); border-radius: var(--radius); padding: 18px 22px; font-weight: 550; }

.signin-box { max-width: 520px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 44px); box-shadow: var(--shadow); text-align: left; }
.signin-box label { display: block; font-weight: 650; color: var(--ink); margin-bottom: 10px; }
.workspace { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--input-bg); transition: border-color .15s, box-shadow .15s; }
.workspace:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.workspace input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 14px 16px; font: 500 17px var(--font); color: var(--ink); background: transparent; }
.workspace span { display: flex; align-items: center; padding: 0 16px; background: var(--line-2); color: var(--muted); font-weight: 550; white-space: nowrap; }
.signin-box .btn { width: 100%; margin-top: 18px; }
.signin-box .hint { margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.form-error { color: var(--rose-ink); font-size: 14.5px; margin-top: 10px; min-height: 1.4em; }

/* Small additions */
.sub-count { color: var(--muted); font-weight: 500; }
.after-layers { margin-top: 32px; position: relative; }
.ui-list .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.ui-list .ico svg { width: 16px; height: 16px; }

@media (max-width: 640px) { .team-card { min-height: 0; } }
.center-actions { justify-content: center; }

/* ── Theme toggle ───────────────────────────────────────────────────────── */
.theme-toggle { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: inline-grid; place-items: center; flex: none; transition: border-color .15s; }
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .to-light { display: none; }
:root[data-theme="dark"] .theme-toggle .to-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .to-light { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .to-dark { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .to-light { display: block; }
}
@media (max-width: 920px) {
  .theme-toggle { margin-left: auto; }
  .nav-toggle { margin-left: 0; order: 1; }
}

/* ── Integration marks ──────────────────────────────────────────────────── */
.mark { width: 22px; height: 22px; flex: none; display: inline-grid; place-items: center; }
.mark svg { width: 100%; height: 100%; }
.mark.img img { width: 100%; height: 100%; display: block; }
/* Monochrome marks take the text colour, so they work in both themes. */
.mark.mask { background: var(--ink); -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; }
.mark.personio { --mark: url("/assets/logos/personio.png"); }
.logo-cloud li { display: inline-flex; align-items: center; gap: 10px; }

.int-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .int-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .int-grid { grid-template-columns: minmax(0, 1fr); } }
.int-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.int-card h3 { font-size: 1.15rem; }
.int-card > p { font-size: 15px; color: var(--muted); }
.int-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.int-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink); font-weight: 600; font-size: 14.5px; line-height: 1.25; min-width: 0; }
.int-list .mark { width: 28px; height: 28px; }
.int-list .more { color: var(--muted); font-weight: 550; background: transparent; border-style: dashed; border-color: var(--line); }
.int-card.wide { grid-column: span 2; }
.int-card.wide .int-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.int-card.full { grid-column: 1 / -1; }
.int-card.full .int-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mark.generic { border-radius: 8px; background: var(--brand-soft); color: var(--brand-ink); padding: 5px; }
@media (max-width: 960px) {
  .int-card.wide { grid-column: 1 / -1; }
  .int-card.full .int-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .int-card.wide .int-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
