/* ═══════════════════════════════════════════════════════════════
   ADIOX — marketing site design system
   Dark theme only (matches the portal at portal.adiox.io).
   Type: Manrope (display) · Inter (body) · IBM Plex Mono (figures)
═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #070912;
  --bg-2: #0a0d1a;
  --surface: #0e1222;
  --surface-2: #131830;
  --surface-3: #1a2040;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);

  --ink: #eef0fb;
  --ink-2: #b4bbd6;
  --ink-3: #7f88a8;

  --violet: #8b5cf6;
  --pink: #e879f9;
  --blue: #4a9eff;
  --orange: #fb923c;
  --green: #34d399;
  --amber: #f5b942;
  --red: #f87171;

  --brand: linear-gradient(120deg, #8b5cf6 0%, #c35cf2 50%, #e879f9 100%);
  --logo: linear-gradient(90deg, #4a9eff, #8b5cf6 40%, #e879f9 70%, #fb923c);

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow: 0 24px 60px rgba(0,0,0,0.45);

  --f-display: "Manrope", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --maxw: 1180px;
  --header-h: 68px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: rgba(139,92,246,0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: var(--r-sm); background: var(--violet); color: #fff; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ─── Type ─── */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.6vw, 66px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 19px; letter-spacing: -0.015em; }
h4 { font-size: 15px; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
.lead { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--ink-2); max-width: 680px; }
.mono, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.center .lead, .lead.center { margin-left: auto; margin-right: auto; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: #c4b5fd;
}
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font-family: var(--f-display); font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 30px rgba(168,85,247,0.35), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(168,85,247,0.5), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-secondary { background: var(--surface-2); border-color: var(--line-2); color: var(--ink); }
.btn-secondary:hover { background: var(--surface-3); border-color: rgba(255,255,255,0.24); }
.btn-ghost { color: var(--ink-2); padding-left: 12px; padding-right: 12px; }
.btn-ghost:hover { color: var(--ink); background: rgba(255,255,255,0.05); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: 0.6; pointer-events: none; }
.btn .arrow { transition: transform 0.18s; }
.btn:hover .arrow { transform: translateX(3px); }
.link { color: #c4b5fd; font-weight: 600; border-bottom: 1px solid rgba(196,181,253,0.35); transition: color 0.15s, border-color 0.15s; }
.link:hover { color: #fff; border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ─── Badges ─── */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line-2); color: var(--ink-2); background: rgba(255,255,255,0.03); white-space: nowrap;
}
.badge-green { color: var(--green); border-color: rgba(52,211,153,0.4); background: rgba(52,211,153,0.08); }
.badge-amber { color: var(--amber); border-color: rgba(245,185,66,0.4); background: rgba(245,185,66,0.08); }
.badge-red { color: var(--red); border-color: rgba(248,113,113,0.4); background: rgba(248,113,113,0.08); }
.badge-violet { color: #c4b5fd; border-color: rgba(139,92,246,0.45); background: rgba(139,92,246,0.1); }
.badge-blue { color: #93c5fd; border-color: rgba(74,158,255,0.4); background: rgba(74,158,255,0.08); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ─── Header ─── */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(7,9,18,0.72); backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s, background-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(7,9,18,0.9); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; mix-blend-mode: screen; }
.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 13px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color 0.15s, background-color 0.15s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--ink); background: rgba(255,255,255,0.05); }
.nav-link.is-active { color: var(--ink); }
.nav-link .chev { width: 10px; height: 10px; transition: transform 0.2s; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-drop { position: relative; }
.drop-panel {
  position: absolute; top: calc(100% + 10px); left: -12px; width: 640px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 12px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.drop-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.drop-item { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 11px 12px; border-radius: 12px; transition: background-color 0.15s; }
.drop-item:hover { background: rgba(255,255,255,0.05); }
.drop-item b { display: block; font-family: var(--f-display); font-size: 14.5px; font-weight: 700; color: var(--ink); }
.drop-item b + span { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.drop-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; padding: 12px 12px 4px; border-top: 1px solid var(--line); font-size: 13px; }
.drop-foot a { color: #c4b5fd; font-weight: 600; }
.header-cta { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; align-items: center; justify-content: center; margin-left: auto; }
.menu-toggle:hover { background: rgba(255,255,255,0.05); }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform 0.2s, background-color 0.2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; overflow-y: auto;
  padding: 18px 24px 40px; background: var(--bg);
  display: none;
}
.mobile-nav.is-open { display: block; animation: fadeIn 0.18s ease; }
/* Slide only — the menu must be fully opaque from the first frame. */
@keyframes fadeIn { from { transform: translateY(-6px); } to { transform: none; } }
.mobile-nav h4 { font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 6px; }
.mobile-nav a.m-link { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; color: var(--ink-2); }
.mobile-nav a.m-link:hover { color: var(--ink); }
.mobile-nav .actions { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; }
body.nav-open { overflow: hidden; }

/* product icon tiles */
.ico {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: rgba(var(--c, 139,92,246), 0.12); border: 1px solid rgba(var(--c, 139,92,246), 0.3); color: rgb(var(--c, 139,92,246));
}
.ico svg { width: 18px; height: 18px; }
.ico-lg { width: 46px; height: 46px; border-radius: 13px; }
.ico-lg svg { width: 22px; height: 22px; }
.c-violet { --c: 167,139,250; } .c-amber { --c: 245,185,66; } .c-pink { --c: 232,121,249; }
.c-blue { --c: 96,165,250; } .c-green { --c: 52,211,153; } .c-orange { --c: 251,146,60; } .c-teal { --c: 45,212,191; } .c-red { --c: 248,113,113; }

/* ─── Sections ─── */
.section { padding: clamp(72px, 9vw, 112px) 0; position: relative; }
.section-tight { padding: clamp(52px, 6vw, 72px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: 14px; }
.section-head .lead { margin-top: 0; }

/* Page hero */
.page-hero { position: relative; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 640px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 300px at 20% 40%, rgba(139,92,246,0.22), transparent 70%),
    radial-gradient(460px 280px at 75% 30%, rgba(232,121,249,0.14), transparent 70%);
}
.page-hero h1 { max-width: 860px; margin-bottom: 18px; }
.page-hero .lead { margin-bottom: 30px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-current] { color: #c4b5fd; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 13.5px; color: var(--ink-3); }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

/* ─── Grids & cards ─── */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; padding: 26px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.2s, background-color 0.2s;
}
.card h3 { margin: 16px 0 8px; }
.card p { font-size: 14.5px; color: var(--ink-2); }
.card.is-link:hover { border-color: rgba(var(--c, 139,92,246), 0.5); transform: translateY(-3px); background: var(--surface-2); }
.card .more { display: inline-flex; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 600; color: rgb(var(--c, 196,181,253)); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-flat { background: transparent; }

.product-card { display: flex; flex-direction: column; }
.product-card .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.product-card .more { margin-top: auto; padding-top: 18px; }

/* feature list */
.checks { display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px;
  background: rgba(52,211,153,0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checks li b { color: var(--ink); font-weight: 600; }
.crosses li::before { background: rgba(248,113,113,0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f87171' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* Let grid children shrink below their content width (wide tables scroll inside .table-wrap instead). */
.split > *, .hero-grid > *, .grid > *, .calc > * { min-width: 0; }

/* split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.top { align-items: start; }
.split h2 { margin-bottom: 16px; }
.split .lead { margin-bottom: 22px; }

/* steps */
.steps { display: grid; gap: 14px; counter-reset: step; }
.steps.row { grid-template-columns: repeat(var(--n, 4), 1fr); }
.step { position: relative; padding: 22px 22px 22px 66px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.step::before {
  content: counter(step); position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; font-family: var(--f-mono); font-size: 13px; font-weight: 600;
  background: rgba(139,92,246,0.14); border: 1px solid rgba(139,92,246,0.4); color: #c4b5fd;
}
.step h4 { font-size: 16px; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--ink-2); }
.steps.row .step { padding: 64px 22px 22px; }
.steps.row .step::before { left: 22px; }

/* stats */
.stat-row { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.stat { padding: 24px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--f-mono); font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.stat span { font-size: 13.5px; color: var(--ink-3); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-family: var(--f-display); font-size: 13.5px; font-weight: 700; color: var(--ink); background: var(--surface-2); white-space: nowrap; }
.table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.table td { color: var(--ink-2); }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table .num { color: var(--ink); }
.table-wide { min-width: 860px; }
.table-mid { min-width: 620px; }
.table-note { margin-top: 12px; font-size: 13px; color: var(--ink-3); }

/* callouts */
.note {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 18px 20px; border-radius: var(--r); background: rgba(74,158,255,0.06); border: 1px solid rgba(74,158,255,0.25);
  font-size: 14.5px; color: var(--ink-2);
}
.note b { color: var(--ink); }
.note-amber { background: rgba(245,185,66,0.06); border-color: rgba(245,185,66,0.3); }
.note-violet { background: rgba(139,92,246,0.08); border-color: rgba(139,92,246,0.35); }
.note .ico { width: 30px; height: 30px; border-radius: 9px; }

/* ─── Portal-style mock panels (illustrations) ─── */
.panel {
  border-radius: var(--r-xl); padding: 22px; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.06);
}
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.panel-head b { display: block; font-family: var(--f-display); font-size: 16px; }
.panel-head span { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.tile { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
.tile span { display: block; font-size: 11.5px; color: var(--ink-3); }
.tile b { font-family: var(--f-mono); font-size: 16px; font-weight: 600; }
.tile b.up { color: var(--green); }
.meter + .meter { margin-top: 14px; }
.meter-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 7px; font-size: 13px; color: var(--ink-2); }
.meter-top .num { font-size: 12.5px; color: var(--ink); }
.bar { height: 7px; border-radius: 99px; background: rgba(255,255,255,0.07); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w, 50%); border-radius: inherit; background: var(--brand); }
.bar.green i { background: linear-gradient(90deg, #059669, var(--green)); }
.bar.amber i { background: linear-gradient(90deg, #b45309, var(--amber)); }
.bar.red i { background: linear-gradient(90deg, #b91c1c, var(--red)); }
.panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.panel-caption { margin-top: 12px; font-size: 12px; color: var(--ink-3); text-align: center; }

.rows { display: grid; gap: 8px; }
.row-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); font-size: 13.5px; }
.row-item b { font-family: var(--f-display); font-size: 14px; }
.row-item small { display: block; font-size: 12px; color: var(--ink-3); }
.rank { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,0.05); }
.rank.r1 { background: rgba(245,185,66,0.16); color: var(--amber); }
.rank.r2 { background: rgba(203,213,225,0.12); color: #cbd5e1; }
.rank.r3 { background: rgba(251,146,60,0.14); color: var(--orange); }

/* ─── Tabs ─── */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 26px; }
.tab { padding: 9px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-3); transition: color 0.15s, background-color 0.15s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--surface-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.tab-panel[hidden] { display: none; }

/* ─── Forms & calculators ─── */
.calc { display: grid; grid-template-columns: 1.15fr 0.85fr; border: 1px solid var(--line-2); border-radius: var(--r-xl); overflow: hidden; background: var(--surface); }
.calc-form { padding: 28px; display: grid; gap: 18px; align-content: start; }
.calc-out { padding: 28px; background: linear-gradient(180deg, rgba(139,92,246,0.1), rgba(232,121,249,0.04)); border-left: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.calc-out h3 { font-size: 13px; font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.out-big { font-family: var(--f-mono); font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.out-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,0.1); font-size: 14px; color: var(--ink-2); }
.out-line:last-child { border-bottom: 0; }
.out-line b { font-family: var(--f-mono); font-weight: 600; color: var(--ink); text-align: right; }
.out-line.total { border-top: 1px solid var(--line-2); border-bottom: 0; margin-top: 4px; padding-top: 12px; color: var(--ink); font-weight: 600; }
.out-note { font-size: 12.5px; color: var(--ink-3); }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label, .field .label { font-size: 13.5px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 10px; }
.field label .num, .field .label .num { font-weight: 500; color: #c4b5fd; }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink); font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4bbd6' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,0.25); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(248,113,113,0.18); }
.field-error { font-size: 12.5px; color: var(--red); min-height: 0; }
.field-error:empty { display: none; }
.input-affix { position: relative; }
.input-affix .input { padding-left: 30px; }
.input-affix::before { content: attr(data-prefix); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-family: var(--f-mono); font-size: 14px; pointer-events: none; }
.input-affix.suffix .input { padding-left: 14px; padding-right: 34px; }
.input-affix.suffix::before { left: auto; right: 14px; }
input[type="range"] { width: 100%; height: 30px; accent-color: #a855f7; background: transparent; cursor: pointer; }
.range-scale { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); margin-top: -4px; }
.seg { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 9px 8px; border-radius: 9px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--ink-3); transition: background-color 0.15s, color 0.15s; }
.seg input:checked + span { background: var(--surface-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: #a855f7; flex: none; }

.form-status { display: none; padding: 14px 16px; border-radius: 12px; font-size: 14.5px; }
.form-status.is-success { display: block; background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.35); color: #a7f3d0; }
.form-status.is-error { display: block; background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.35); color: #fecaca; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; animation: spin 0.7s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── FAQ ─── */
.faq { display: grid; gap: 10px; }
.faq-item { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s; }
.faq-item[open] { border-color: rgba(139,92,246,0.45); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative; padding: 18px 56px 18px 22px;
  font-family: var(--f-display); font-size: 16px; font-weight: 700; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 7px;
  background: var(--surface-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4b5fd' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; font-size: 15px; color: var(--ink-2); }
.faq-item .faq-body p + p { margin-top: 10px; }
.faq-group + .faq-group { margin-top: 44px; }
.faq-group > h2 { font-size: 22px; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.search { position: relative; max-width: 560px; }
.search .input { padding-left: 44px; min-height: 52px; border-radius: 14px; }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); }
.empty-state { display: none; padding: 40px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--ink-2); }
.empty-state.is-visible { display: block; }

/* ─── CTA band ─── */
.cta-band {
  position: relative; overflow: hidden; padding: clamp(40px, 5vw, 60px); border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(139,92,246,0.22), rgba(232,121,249,0.12) 60%, rgba(251,146,60,0.08)), var(--surface);
  border: 1px solid rgba(196,181,253,0.25);
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
.cta-band h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 10px; }
.cta-band p { color: var(--ink-2); max-width: 560px; }

/* ─── Footer ─── */
.site-footer { margin-top: 0; border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(5, 1fr); gap: 28px; }
.footer-brand p { margin-top: 14px; font-size: 14px; color: var(--ink-3); max-width: 300px; }
.footer-brand img { height: 36px; width: auto; mix-blend-mode: screen; }
.footer-col h4 { font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: 14px; color: var(--ink-2); transition: color 0.15s; }
.footer-col a:hover { color: var(--ink); }
.footer-risk { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 12.5px; line-height: 1.7; color: var(--ink-3); }
.footer-risk a { color: var(--ink-2); text-decoration: underline; }
.footer-bottom { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-3); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a:hover { color: var(--ink); }

/* ─── Reveal ─── */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ─── Legal / prose ─── */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin: 38px 0 12px; }
.prose h3 { font-size: 17px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 15.5px; }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin: 10px 0; }
.prose a { color: #c4b5fd; text-decoration: underline; }
.doc-meta { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); margin-bottom: 26px; }

/* Guide byline (E-E-A-T: who wrote it, when, on what basis) */
.byline { margin: -4px 0 20px; font-size: 13.5px; color: var(--ink-3); }
.byline a { color: var(--ink-2); text-decoration: underline; }

/* ─── At a glance (answer-first facts) ─── */
.facts { border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--surface); overflow: hidden; }
.facts-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.facts-head h2 { font-size: 15px; font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #c4b5fd; }
.facts-head span { font-size: 12.5px; color: var(--ink-3); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts-grid > div { padding: 18px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-grid > div:nth-child(3n) { border-right: 0; }
.facts-grid dt { font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-3); margin-bottom: 4px; }
.facts-grid dd { font-size: 14.5px; color: var(--ink); line-height: 1.5; }

/* ─── Glossary ─── */
.glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.glossary > div { padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.glossary > div:target { border-color: rgba(139,92,246,0.6); box-shadow: 0 0 0 3px rgba(139,92,246,0.18); }
.glossary dt { font-family: var(--f-display); font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.glossary dd { font-size: 14.5px; color: var(--ink-2); }

/* calculator band highlight (Training Room fees) */
tr[data-band] td { transition: background-color 0.15s, color 0.15s; }
tr[data-band].is-current td { background: rgba(139,92,246,0.12); color: var(--ink); }
tr[data-band].is-current td:first-child { box-shadow: inset 3px 0 0 var(--violet); }

/* ─── Responsive ─── */
@media (max-width: 1080px) {
  .main-nav, .header-cta .btn-ghost { display: none; }
  .menu-toggle { display: inline-flex; margin-left: 0; }
  .header-cta { margin-left: auto; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .steps.row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .split, .calc { grid-template-columns: 1fr; gap: 40px; }
  .calc { gap: 0; }
  .calc-out { border-left: 0; border-top: 1px solid var(--line); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .facts-grid > div:nth-child(2n) { border-right: 0; }
}
@media (max-width: 640px) {
  .facts-grid, .glossary { grid-template-columns: 1fr; }
  .facts-grid > div { border-right: 0 !important; padding: 14px 18px; }
  .facts-head { padding: 14px 18px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .g2, .g3, .g4, .steps.row, .field-row { grid-template-columns: 1fr; }
  .header-cta .btn-primary { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles .tile:last-child { grid-column: 1 / -1; }
  .card, .calc-form, .calc-out { padding: 22px; }
  .panel { padding: 18px; border-radius: var(--r-lg); }
  .faq-item summary { font-size: 15px; padding: 16px 52px 16px 18px; }
  .faq-item .faq-body { padding: 0 18px 18px; }
  .table th, .table td { padding: 12px 14px; }
  .btn-lg { min-height: 50px; padding: 13px 22px; }
  .actions .btn { flex: 1 1 auto; }
  .drop-panel { display: none; }
}
@media (max-width: 380px) {
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}
