/* Doxentriq — doxentriq.com
   Static site stylesheet. No external fonts or third-party requests. */

:root {
  --bg: #f6f9f7;
  --bg-elev: #ffffff;
  --bg-soft: #edf3ef;
  --ink: #0f1f19;
  --ink-2: #2f4239;
  --muted: #5a6c64;
  --line: #dae4de;
  --line-strong: #c5d3cb;
  --brand: #1b7656;
  --brand-strong: #125a41;
  --brand-ink: #ffffff;
  --accent: #23b57c;
  --accent-soft: #dcf4e9;
  --warn: #8a5a06;
  --warn-soft: #fff3d9;
  --bad: #b42332;
  --code-bg: #0b1612;
  --code-ink: #d6ece2;
  --code-muted: #7f998d;
  --code-key: #8fe3bd;
  --code-str: #f3d38a;
  --shadow-sm: 0 1px 2px rgba(15, 31, 25, .06);
  --shadow: 0 1px 2px rgba(15, 31, 25, .05), 0 12px 32px -8px rgba(15, 31, 25, .14);
  --radius: 14px;
  --radius-lg: 20px;
  --header-h: 64px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09120f;
    --bg-elev: #0f1c17;
    --bg-soft: #0c1814;
    --ink: #e6f1eb;
    --ink-2: #bdd0c6;
    --muted: #8aa197;
    --line: #1d3029;
    --line-strong: #2a4238;
    --brand: #36c58d;
    --brand-strong: #5fd9a8;
    --brand-ink: #03140d;
    --accent: #3ddc97;
    --accent-soft: rgba(61, 220, 151, .12);
    --warn: #f0c46c;
    --warn-soft: rgba(240, 196, 108, .1);
    --bad: #ff7b86;
    --code-bg: #060e0b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 16px 40px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #09120f;
  --bg-elev: #0f1c17;
  --bg-soft: #0c1814;
  --ink: #e6f1eb;
  --ink-2: #bdd0c6;
  --muted: #8aa197;
  --line: #1d3029;
  --line-strong: #2a4238;
  --brand: #36c58d;
  --brand-strong: #5fd9a8;
  --brand-ink: #03140d;
  --accent: #3ddc97;
  --accent-soft: rgba(61, 220, 151, .12);
  --warn: #f0c46c;
  --warn-soft: rgba(240, 196, 108, .1);
  --bad: #ff7b86;
  --code-bg: #060e0b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 16px 40px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); letter-spacing: -.035em; }
h3 { font-size: 1.12rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: var(--mono); }
:not(pre) > code { font-size: .88em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: .08em .38em; overflow-wrap: anywhere; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; background: var(--bg-elev); color: var(--ink); padding: 10px 14px; border-radius: 10px; border: 2px solid var(--brand); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .container { padding-inline: 24px; } }

section { position: relative; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.center .eyebrow::before { display: none; }
.gradient-text {
  background: linear-gradient(100deg, var(--brand) 0%, var(--accent) 55%, #6fd3c2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: 12px;
  font-weight: 650; font-size: .98rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { background: var(--brand-strong); color: var(--brand-ink); }
.btn-ghost { background: var(--bg-elev); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; border-radius: 10px; }
.btn-light { background: #ffffff; color: #0b2a1f; }
.btn-light:hover { background: #e9fbf2; color: #0b2a1f; }
.btn-outline-light { background: transparent; color: #e6f1eb; border-color: rgba(230, 241, 235, .3); }
.btn-outline-light:hover { border-color: #e6f1eb; color: #fff; }

/* ---------- Announcement bar ---------- */
.announce {
  background: linear-gradient(90deg, #0f3d2e, #145c43 50%, #0f3d2e);
  color: #e3f6ec; font-size: .9rem; text-align: center;
}
.announce a { color: #ffffff; display: block; padding: 9px 16px; text-decoration: none; }
.announce a:hover { text-decoration: underline; }
.announce strong { color: #8ff0c4; font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, background-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.18rem; letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand img, .brand svg { width: 32px; height: 32px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a { display: block; padding: 8px 11px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 550; }
.main-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.main-nav a[aria-current="true"] { color: var(--brand); background: var(--accent-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: transparent; border: 1px solid var(--line); color: var(--ink-2);
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--ink); background: var(--bg-elev); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: block; }
:root[data-theme="dark"] .theme-icon-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-dark { display: block; }
  :root:not([data-theme="light"]) .theme-icon-light { display: none; }
}
.nav-toggle { display: none; }
.gh-btn .gh-label-short { display: none; }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-grid; }
  .main-nav {
    position: fixed; inset: calc(var(--header-h) + var(--announce-h, 0px)) 0 auto 0; margin: 0;
    background: var(--bg-elev); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 16px 16px; display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-header.nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px; font-size: 1rem; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 520px) {
  .gh-btn .gh-label { display: none; }
  .gh-btn .gh-label-short { display: inline; }
  .brand { font-size: 1.08rem; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 340px at 18% 12%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(520px 320px at 85% 20%, color-mix(in srgb, #4fb8d6 16%, transparent), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  -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%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.pill {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 6px 12px 6px 6px; border-radius: 999px; font-size: .86rem; font-weight: 600;
  background: var(--bg-elev); border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.pill .tag { background: var(--accent-soft); color: var(--brand); padding: 3px 9px; border-radius: 999px; font-size: .76rem; font-weight: 750; letter-spacing: .02em; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 600px; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .9rem; padding: 0; margin: 0; list-style: none; }
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--brand); }

/* App window mock */
.window {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow), 0 40px 80px -40px color-mix(in srgb, var(--brand) 45%, transparent);
  overflow: hidden; min-width: 0;
}
.window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.window-bar .dots { display: flex; gap: 6px; }
.window-bar .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.window-bar .url { flex: 1; min-width: 0; text-align: center; font-size: .78rem; color: var(--muted); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window-body { padding: 18px; display: grid; gap: 14px; }
.msg { max-width: 92%; padding: 11px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.5; }
.msg-user { justify-self: end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 4px; }
.msg-bot { justify-self: start; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); border-bottom-left-radius: 4px; }
.msg-bot code { font-size: .8em; }
.msg-who { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .75; margin-bottom: 3px; }
.pipeline { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pipeline-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; font-size: .8rem; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.pipeline ol { list-style: none; margin: 0; padding: 6px 0; display: grid; grid-template-columns: 1fr 1fr; }
.pipeline li { display: flex; align-items: center; gap: 9px; padding: 6px 14px; font-size: .84rem; color: var(--ink-2); min-width: 0; }
.pipeline li span.n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipeline li small { margin-left: auto; color: var(--muted); font-size: .74rem; white-space: nowrap; }
@media (max-width: 480px) { .pipeline ol { grid-template-columns: 1fr; } }
.tick {
  flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--brand);
}
.tick svg { width: 11px; height: 11px; }
.release-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 60%, var(--bg-elev)); }
.release-card .meta { flex: 1; min-width: 160px; }
.release-card strong { display: block; font-size: .95rem; }
.release-card code { font-size: .74rem; color: var(--muted); background: none; border: 0; padding: 0; }
.release-card .btn { min-height: 38px; font-size: .86rem; padding: 0 14px; }
.mfa-note { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--muted); }
.mfa-note svg { width: 13px; height: 13px; }

.js .anim-step { opacity: .25; transition: opacity .35s ease; }
.js .anim-step .tick { background: var(--bg-soft); color: transparent; transition: background-color .3s ease, color .3s ease; }
.js .anim-step.done { opacity: 1; }
.js .anim-step.done .tick { background: var(--accent-soft); color: var(--brand); }
.js .anim-release { opacity: .35; transition: opacity .5s ease; }
.js .anim-release.done { opacity: 1; }

/* ---------- Tech strip ---------- */
.tech-strip { padding-block: 28px 8px; }
.tech-strip p { text-align: center; color: var(--muted); font-size: .84rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.tech-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 0; list-style: none; }
.tech-list li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink-2); font-size: .88rem; font-weight: 600; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; min-width: 0;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.card h3 { margin-bottom: 8px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--accent-soft); color: var(--brand);
}
.icon svg { width: 22px; height: 22px; }
.card-problem .icon { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }

.solution-line {
  margin-top: 36px; padding: 22px 24px; border-radius: var(--radius); display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  background: linear-gradient(100deg, color-mix(in srgb, var(--accent-soft) 100%, transparent), transparent); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
}
.solution-line p { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--ink); flex: 1; min-width: 240px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { position: relative; padding: 26px 22px 24px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.step-num { font-family: var(--mono); font-size: .82rem; font-weight: 700; color: var(--brand); display: inline-block; padding: 3px 9px; border-radius: 8px; background: var(--accent-soft); margin-bottom: 14px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
.stages { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding: 0; list-style: none; }
.stages li { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .8rem; padding: 7px 12px; border-radius: 10px; background: var(--bg-elev); border: 1px solid var(--line); color: var(--ink-2); }
.stages li b { color: var(--brand); font-weight: 700; }
.stages-caption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 14px; }

/* ---------- Feature grid ---------- */
.feature-card h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-block; font-size: .68rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); }
.templates-line { margin-top: 28px; text-align: center; color: var(--muted); }
.templates-line code { margin: 2px; display: inline-block; }

/* ---------- Dark security section ---------- */
.section-dark {
  --ink: #e6f1eb; --ink-2: #bdd0c6; --muted: #8fa79c; --line: #1f342b; --line-strong: #2c473b; --bg-elev: #0f1c17; --bg-soft: #0c1814;
  --brand: #3ddc97; --accent-soft: rgba(61, 220, 151, .12);
  background: radial-gradient(900px 500px at 85% 0%, rgba(61, 220, 151, .12), transparent 60%), #07110d;
  color: var(--ink);
}
.section-dark h2, .section-dark h3 { color: #f2faf6; }
.security-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 960px) { .security-grid { grid-template-columns: minmax(0, 1fr); } }
.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.principles li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.principles li:last-child { border-bottom: 0; }
.principles .icon { width: 36px; height: 36px; border-radius: 10px; margin: 0; }
.principles .icon svg { width: 18px; height: 18px; }
.principles h3 { margin: 4px 0 4px; font-size: 1.02rem; }
.principles p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Code blocks */
.code {
  background: var(--code-bg); color: var(--code-ink); border: 1px solid rgba(143, 227, 189, .14); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); min-width: 0;
}
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid rgba(143, 227, 189, .12); font-family: var(--mono); font-size: .78rem; color: var(--code-muted); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-size: .84rem; line-height: 1.7; tab-size: 2; }
.code .k { color: var(--code-key); }
.code .s { color: var(--code-str); }
.code .c { color: var(--code-muted); }
.code .p { color: #77d3f0; user-select: none; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; font-size: .76rem; font-family: var(--font); font-weight: 600;
  background: rgba(255, 255, 255, .06); color: #cfe7dc; border: 1px solid rgba(255, 255, 255, .12);
}
.copy-btn:hover { background: rgba(255, 255, 255, .12); }
.copy-btn svg { width: 13px; height: 13px; }
.illustrative { font-size: .8rem; color: var(--muted); margin-top: 10px; }

/* ---------- DMS reference ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; color: var(--ink-2); }
.checklist .tick { width: 22px; height: 22px; margin-top: 2px; }
.checklist .tick svg { width: 12px; height: 12px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.doc-table th { text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.doc-table td { padding: 10px; border-bottom: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.doc-table td:first-child { white-space: normal; }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-name { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink); }
.doc-name svg { width: 16px; height: 16px; color: var(--brand); flex: none; }
.chip { display: inline-block; font-size: .72rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); }
.chip-ok { background: var(--accent-soft); border-color: transparent; color: var(--brand); }
.search-mock { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: .88rem; background: var(--bg); }
.search-mock svg { width: 16px; height: 16px; }
.table-scroll { overflow-x: auto; }

/* ---------- Architecture ---------- */
.arch { display: grid; gap: 12px; }
.arch-layer {
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev);
}
@media (max-width: 760px) { .arch-layer { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.arch-label strong { display: block; font-size: .98rem; }
.arch-label span { font-size: .82rem; color: var(--muted); }
.arch-nodes { display: flex; flex-wrap: wrap; gap: 8px; }
.node { display: inline-flex; flex-direction: column; padding: 9px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); min-width: 0; }
.node b { font-size: .88rem; font-weight: 650; color: var(--ink); }
.node small { font-size: .74rem; color: var(--muted); }
.node-ext { border-style: dashed; }
.arch-layer.trusted { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 45%, var(--bg-elev)); }
.arch-layer.sandbox { border: 2px dashed color-mix(in srgb, var(--warn) 55%, var(--line)); background: color-mix(in srgb, var(--warn-soft) 70%, var(--bg-elev)); }
.arch-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; color: var(--muted); font-size: .85rem; }
.arch-legend span { display: inline-flex; align-items: center; gap: 8px; }
.arch-legend i { width: 16px; height: 12px; border-radius: 4px; border: 1px solid var(--line); display: inline-block; }
.arch-legend .l-trusted { background: var(--accent-soft); border-color: var(--brand); }
.arch-legend .l-sandbox { background: var(--warn-soft); border: 2px dashed var(--warn); }
.arch-legend .l-ext { border: 1px dashed var(--muted); }

/* ---------- Comparison ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .93rem; }
.compare th, .compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--ink-2); }
.compare thead th { font-size: .86rem; font-weight: 700; color: var(--ink); background: var(--bg-soft); vertical-align: bottom; }
.compare thead th.us { background: var(--brand); color: var(--brand-ink); }
.compare td.us { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); font-weight: 650; }
.compare tbody tr:last-child td { border-bottom: 0; }
.yes, .no, .part { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .86rem; }
.yes { color: var(--brand); }
.no { color: var(--muted); }
.part { color: var(--warn); }
.yes svg, .no svg, .part svg { width: 16px; height: 16px; }
.footnote { color: var(--muted); font-size: .84rem; margin-top: 14px; }

/* ---------- Install ---------- */
.req-card { padding: 20px; }
.req-card h3 { font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.req-card h3 svg { width: 20px; height: 20px; color: var(--brand); }
.req-card p { font-size: .92rem; }
.tabs { margin-top: 28px; }
.tablist { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tab {
  padding: 9px 14px; border-radius: 10px; background: transparent; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: .9rem;
}
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tabpanel[hidden] { display: none; }
.callout {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; margin-top: 20px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); color: var(--ink-2); font-size: .95rem;
}
.callout svg { width: 22px; height: 22px; color: var(--warn); }
.callout p { margin: 0; }

/* ---------- Status ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 40px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 22px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.04em; line-height: 1.1; color: var(--brand); }
.stat span { color: var(--muted); font-size: .9rem; }
.status-col h3 { display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot-done { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.dot-wip { background: #e8a93a; box-shadow: 0 0 0 4px rgba(232, 169, 58, .18); }
.dot-plan { background: var(--line-strong); box-shadow: 0 0 0 4px var(--bg-soft); }
.status-col ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-2); font-size: .94rem; }
.status-col li { margin-bottom: 8px; }
.status-col li::marker { color: var(--muted); }
.status-link { margin-top: 26px; text-align: center; }

/* ---------- Company ---------- */
.company {
  border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--bg-elev), color-mix(in srgb, var(--accent-soft) 70%, var(--bg-elev)));
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center;
}
@media (max-width: 860px) { .company { grid-template-columns: minmax(0, 1fr); } }
.company h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.company p { color: var(--ink-2); }
.services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.services li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; min-width: 0; }
.services svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
@media (max-width: 420px) { .services { grid-template-columns: 1fr; } }
.company-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; transition: border-color .2s ease; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 650; font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.cta-band {
  border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 56px); text-align: center; color: #e6f1eb;
  background: radial-gradient(600px 300px at 50% 0%, rgba(61, 220, 151, .28), transparent 70%), linear-gradient(160deg, #0f3d2e, #07110d);
  position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; max-width: 720px; margin-inline: auto; }
.cta-band p { color: #b9d3c7; max-width: 620px; margin: 0 auto 28px; font-size: 1.1rem; }
.cta-band .hero-ctas { justify-content: center; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 56px; margin-top: clamp(64px, 9vw, 112px); background: var(--bg-soft); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-about p { color: var(--muted); max-width: 380px; margin-top: 14px; }
.site-footer h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a, .link-btn { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover, .link-btn:hover { color: var(--brand); text-decoration: underline; }
.link-btn { background: none; border: 0; padding: 0; font-size: inherit; text-align: left; }
.legal-bar { margin-top: 44px; padding-block: 22px 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: var(--muted); font-size: .84rem; }
.legal-bar p { margin: 0; }
.company-id { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* ---------- Legal pages ---------- */
.legal-hero { padding-block: clamp(40px, 6vw, 72px) 24px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.legal-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.legal-hero p { color: var(--muted); margin: 0; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-block: 48px 24px; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: .9rem; }
@media (max-width: 900px) { .toc { position: static; } }
.toc h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 7px; color: var(--muted); }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }
.prose { max-width: 760px; color: var(--ink-2); }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; padding-top: .2em; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; font-size: 1.08rem; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 12px 0 20px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--ink); font-weight: 650; }
.info-box { padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev); margin: 16px 0 24px; }
.info-box p { margin: 0 0 4px; }
.info-box p:last-child { margin: 0; }
.todo { background: var(--warn-soft); color: var(--warn); border-radius: 4px; padding: 0 4px; font-weight: 650; }

/* ---------- Cookie consent ---------- */
.cc-banner {
  position: fixed; z-index: 120; left: 16px; right: 16px; bottom: 16px; margin-inline: auto; max-width: 980px;
  background: var(--bg-elev); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .35); padding: 20px 22px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center;
  animation: cc-in .35s ease both;
}
@keyframes cc-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .cc-banner { grid-template-columns: minmax(0, 1fr); } }
.cc-banner h2 { font-size: 1.02rem; margin: 0 0 6px; letter-spacing: -.01em; }
.cc-banner p { margin: 0; font-size: .9rem; color: var(--ink-2); line-height: 1.55; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-actions .btn { min-height: 40px; font-size: .9rem; padding: 0 16px; flex: 1 1 auto; }
.cc-dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--bg-elev); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.cc-dialog::backdrop { background: rgba(4, 12, 9, .55); backdrop-filter: blur(2px); }
.cc-dialog form { padding: 24px; }
.cc-dialog h2 { font-size: 1.25rem; margin-bottom: 8px; }
.cc-dialog > form > p { color: var(--ink-2); font-size: .92rem; }
.cc-cat { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-cat-head strong { font-size: .98rem; }
.cc-cat p { margin: 6px 0 0; font-size: .86rem; color: var(--muted); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background-color .2s ease; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(18px); }
.switch input:disabled { opacity: .6; cursor: not-allowed; }
.cc-dialog .cc-actions { margin-top: 18px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.notfound .code-big { font-family: var(--mono); font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; margin-bottom: 12px; }

@media print {
  .site-header, .announce, .cc-banner, .cc-dialog, .site-footer .footer-grid, .toc { display: none !important; }
  body { background: #fff; color: #000; }
  .legal-layout { display: block; }
}
