/* ContractCube website. Self-hosted font, no external requests (CSP: default-src 'self'). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Metric-matched fallback so the swap to Inter does not shift the layout. */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Segoe UI'), local('Arial'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --font: 'Inter', 'Inter Fallback', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', Consolas, 'SF Mono', Menlo, monospace;
  --bg: #f8fafc;
  --bg-2: #f1f5f9;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --sunken: #eef2f6;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --ink: #0b1220;
  --ink-2: #1e293b;
  --muted: #475569;
  --faint: #5b6b82;
  --brand: #0f766e;
  --brand-2: #115e59;
  --brand-soft: #ccfbf1;
  --indigo: #4f46e5;
  --indigo-soft: #e0e7ff;
  --accent: #b45309;
  --good: #15803d;
  --good-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --bad: #b91c1c;
  --bad-soft: #fee2e2;
  --grad: linear-gradient(120deg, #0f766e 0%, #0e7490 45%, #4f46e5 100%);
  --grad-text: linear-gradient(100deg, #0f766e 10%, #4f46e5 90%);
  --glow-1: rgba(20, 184, 166, 0.18);
  --glow-2: rgba(99, 102, 241, 0.16);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px -8px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, 0.05), 0 30px 60px -20px rgba(15, 23, 42, 0.25);
  --glass: rgba(255, 255, 255, 0.72);
  --radius: 16px;
  --radius-sm: 10px;
  --focus: 0 0 0 3px rgba(79, 70, 229, 0.35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #060a13;
    --bg-2: #0a1020;
    --panel: #0d1424;
    --panel-2: #111a2e;
    --sunken: #0a1120;
    --line: #1c2740;
    --line-2: #2a3a5a;
    --ink: #eef2f8;
    --ink-2: #d5deea;
    --muted: #a3b1c6;
    --faint: #8b9ab0;
    --brand: #2dd4bf;
    --brand-2: #5eead4;
    --brand-soft: rgba(45, 212, 191, 0.12);
    --indigo: #a5b4fc;
    --indigo-soft: rgba(129, 140, 248, 0.14);
    --accent: #fbbf24;
    --good: #4ade80;
    --good-soft: rgba(74, 222, 128, 0.12);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, 0.12);
    --bad: #f87171;
    --bad-soft: rgba(248, 113, 113, 0.12);
    --grad-text: linear-gradient(100deg, #5eead4 10%, #a5b4fc 90%);
    --glow-1: rgba(20, 184, 166, 0.16);
    --glow-2: rgba(99, 102, 241, 0.2);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 40px 80px -24px rgba(0, 0, 0, 0.8);
    --glass: rgba(10, 16, 32, 0.72);
    --focus: 0 0 0 3px rgba(165, 180, 252, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #060a13;
  --bg-2: #0a1020;
  --panel: #0d1424;
  --panel-2: #111a2e;
  --sunken: #0a1120;
  --line: #1c2740;
  --line-2: #2a3a5a;
  --ink: #eef2f8;
  --ink-2: #d5deea;
  --muted: #a3b1c6;
  --faint: #8b9ab0;
  --brand: #2dd4bf;
  --brand-2: #5eead4;
  --brand-soft: rgba(45, 212, 191, 0.12);
  --indigo: #a5b4fc;
  --indigo-soft: rgba(129, 140, 248, 0.14);
  --accent: #fbbf24;
  --good: #4ade80;
  --good-soft: rgba(74, 222, 128, 0.12);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.12);
  --bad: #f87171;
  --bad-soft: rgba(248, 113, 113, 0.12);
  --grad-text: linear-gradient(100deg, #5eead4 10%, #a5b4fc 90%);
  --glow-1: rgba(20, 184, 166, 0.16);
  --glow-2: rgba(99, 102, 241, 0.2);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 40px 80px -24px rgba(0, 0, 0, 0.8);
  --glass: rgba(10, 16, 32, 0.72);
  --focus: 0 0 0 3px rgba(165, 180, 252, 0.45);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-2); }
img, svg { max-width: 100%; }
img { height: auto; }
::selection { background: color-mix(in srgb, var(--indigo) 25%, transparent); }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.025em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2.25rem, 5.6vw, 4rem); margin: 0 0 20px; letter-spacing: -0.04em; font-weight: 750; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); margin: 0 0 14px; letter-spacing: -0.035em; }
h3 { font-size: 1.125rem; margin: 0 0 8px; letter-spacing: -0.015em; font-weight: 650; }
h4 { font-size: 1rem; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 420px) { .wrap { padding: 0 16px; } }
.narrow, .wrap.narrow { max-width: 800px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mono { font-family: var(--mono); font-size: 0.95em; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--panel); color: var(--ink); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }
.js-only { display: none !important; }
.js .js-only { display: inline-flex !important; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
header.site .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.06rem; letter-spacing: -0.02em; flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo img { width: 30px; height: 30px; display: block; }
nav.main { display: flex; gap: 2px; margin-left: 8px; }
nav.main a { color: var(--muted); text-decoration: none; font-size: 0.925rem; font-weight: 500; padding: 7px 11px; border-radius: 8px; transition: color 0.15s, background 0.15s; }
nav.main a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
nav.main a[aria-current='page'] { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; padding: 2px; background: var(--panel); }
.lang a { font-size: 0.76rem; font-weight: 650; letter-spacing: 0.04em; color: var(--muted); text-decoration: none; padding: 5px 8px; border-radius: 7px; line-height: 1.2; }
.lang a[aria-current='true'] { background: var(--ink); color: var(--bg); }
.lang a:hover:not([aria-current='true']) { color: var(--ink); }
.icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; padding: 0; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme='dark'] .theme-toggle .i-sun { display: block; }
:root[data-theme='dark'] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme='light']) .theme-toggle .i-moon { display: none; }
}
.menu { display: none; position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 12px); width: min(320px, calc(100vw - 32px));
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px;
  display: flex; flex-direction: column;
}
.menu-panel a { padding: 10px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 500; }
.menu-panel a:hover, .menu-panel a[aria-current='page'] { background: var(--sunken); }
.menu-panel .btn { margin-top: 8px; }
.menu-panel .btn.brand, .menu-panel .btn.brand:hover { color: #fff; }
@media (max-width: 1080px) {
  nav.main { display: none; }
  .menu { display: block; }
  .head-actions .hide-md { display: none; }
}
@media (max-width: 400px) {
  header.site .wrap { gap: 8px; }
  .head-actions { gap: 6px; }
  .head-actions .btn.sm { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 11px; padding: 11px 18px; min-height: 44px;
  font: inherit; font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s;
  text-align: center;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn.primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-sm); }
.btn.primary:hover { color: var(--bg); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.brand { background: var(--grad); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 24px -10px rgba(79, 70, 229, 0.6); }
.btn.brand:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 30px -12px rgba(79, 70, 229, 0.7); }
.btn.ghost { border-color: var(--line-2); color: var(--ink); background: var(--panel); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { border-color: var(--faint); color: var(--ink); transform: translateY(-1px); }
.btn.link { padding-left: 4px; padding-right: 4px; color: var(--ink); background: none; }
.btn.link:hover { color: var(--brand); }
.btn.sm { min-height: 36px; padding: 7px 13px; font-size: 0.875rem; border-radius: 9px; }
.btn.lg { min-height: 52px; padding: 14px 22px; font-size: 1rem; border-radius: 13px; }
.btn.block { width: 100%; }
.btn:disabled, .btn[aria-disabled='true'] { opacity: 0.55; cursor: not-allowed; transform: none; }
a.btn:not([href]) { cursor: default; opacity: 0.75; transform: none; }

/* ---------- sections ---------- */
section { padding: 88px 0; position: relative; }
section.tight { padding: 56px 0; }
section.flush-top { padding-top: 0; }
@media (max-width: 640px) { section { padding: 64px 0; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 650; color: var(--brand); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; max-width: 100%;
  border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 0.84rem; font-weight: 500; text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.pill b { font-weight: 650; color: #fff; background: var(--grad); border-radius: 999px; padding: 2px 8px; font-size: 0.74rem; letter-spacing: 0.02em; flex-shrink: 0; }
.pill:hover { color: var(--ink); }
.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.125rem; color: var(--muted); margin: 0; }
.lead { font-size: clamp(1.075rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 660px; line-height: 1.6; }
.bg-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- page hero (inner pages) ---------- */
.hero { padding: 80px 0 48px; position: relative; overflow: hidden; isolation: isolate; }
.hero.center { text-align: center; }
.hero.center .lead { margin-left: auto; margin-right: auto; }
.hero .cta, .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; align-items: center; }
.hero.center .cta { justify-content: center; }
.hero::before, .home-hero::before {
  content: ''; position: absolute; inset: -200px 0 auto 0; height: 720px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 300px at 15% 20%, var(--glow-1), transparent 70%),
    radial-gradient(640px 320px at 85% 10%, var(--glow-2), transparent 70%);
}
.grid-bg::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- home hero ---------- */
.home-hero { padding: 64px 0 32px; position: relative; overflow: hidden; isolation: isolate; }
.home-hero .wrap { text-align: center; }
.home-hero h1 { max-width: 940px; margin: 24px auto 22px; }
.home-hero .lead { margin: 0 auto; max-width: 700px; }
.home-hero .cta { justify-content: center; margin-top: 32px; }
.hero-note { margin-top: 20px; color: var(--faint); font-size: 0.875rem; display: flex; gap: 6px 18px; flex-wrap: wrap; justify-content: center; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 15px; height: 15px; color: var(--good); }
.hero-visual { margin: 60px auto 0; max-width: 1080px; position: relative; }
.hero-visual::before {
  content: ''; position: absolute; inset: 8% 6% -4% 6%; z-index: -1; filter: blur(60px); opacity: 0.45;
  background: var(--grad); border-radius: 40px;
}
@media (max-width: 520px) { .home-hero .cta .btn { width: 100%; } }

/* ---------- app mock ---------- */
.app-mock {
  position: relative; text-align: left; border-radius: 18px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  font-size: 13px; line-height: 1.4; color: var(--ink);
}
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: block; }
.mock-url { flex: 1; max-width: 360px; margin: 0 auto; text-align: center; font-size: 11.5px; color: var(--faint); background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 4px 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mock-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 440px; }
.mock-side { border-right: 1px solid var(--line); padding: 14px 10px; background: var(--panel-2); display: flex; flex-direction: column; gap: 2px; }
.mock-side .ws { display: flex; align-items: center; gap: 8px; padding: 6px 8px 14px; font-weight: 650; font-size: 12.5px; }
.mock-side .ws i { width: 22px; height: 22px; border-radius: 6px; background: var(--grad); display: block; }
.mock-side span { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 7px; color: var(--muted); font-size: 12.5px; border: 1px solid transparent; }
.mock-side span svg { width: 15px; height: 15px; }
.mock-side span.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-sm); border-color: var(--line); }
.mock-side .cnt { margin-left: auto; font-size: 10.5px; background: var(--indigo-soft); color: var(--indigo); border-radius: 999px; padding: 0 6px; font-weight: 650; }
.mock-main { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mock-top { display: flex; align-items: center; gap: 12px; }
.mock-top b { font-size: 16px; letter-spacing: -0.02em; display: block; }
.mock-top .sub { color: var(--faint); font-size: 11.5px; }
.mock-search { margin-left: auto; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; color: var(--faint); font-size: 11.5px; background: var(--panel-2); min-width: 0; }
.mock-search svg { width: 13px; height: 13px; }
.mock-search kbd { font-family: var(--font); font-size: 10px; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; background: var(--panel); }
.mock-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; background: var(--panel); min-width: 0; }
.kpi .l { color: var(--faint); font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v { font-size: 19px; font-weight: 700; letter-spacing: -0.03em; margin-top: 3px; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 10.5px; margin-top: 2px; font-weight: 600; color: var(--faint); }
.kpi .d.up { color: var(--good); }
.kpi .d.warn { color: var(--warn); }
.mock-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; min-width: 0; }
.mock-card { border: 1px solid var(--line); border-radius: 11px; padding: 12px; background: var(--panel); min-width: 0; }
.mock-card .h { margin: 0 0 10px; font-size: 12px; font-weight: 650; display: flex; justify-content: space-between; gap: 8px; color: var(--ink); }
.mock-card .h em { font-style: normal; font-weight: 500; color: var(--faint); }
.pipe { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; }
.pipe i { display: block; height: 100%; }
.pipe .p1 { background: #0f766e; width: 58%; }
.pipe .p2 { background: #f59e0b; width: 14%; }
.pipe .p3 { background: #6366f1; width: 18%; }
.pipe .p4 { background: var(--line-2); width: 10%; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 3px; display: block; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 92px; margin-top: 14px; padding-top: 4px; border-top: 1px dashed var(--line); }
.bars i { flex: 1; border-radius: 4px 4px 1px 1px; background: linear-gradient(to top, color-mix(in srgb, #6366f1 45%, transparent), #6366f1); display: block; }
.bars i:nth-child(3n) { background: linear-gradient(to top, color-mix(in srgb, #0f766e 45%, transparent), #14b8a6); }
.bars-x { display: flex; gap: 6px; font-size: 9.5px; color: var(--faint); margin-top: 4px; }
.bars-x span { flex: 1; text-align: center; }
.dl { display: flex; flex-direction: column; gap: 6px; }
.dl-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); }
.dl-row .ic { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.dl-row .ic svg { width: 14px; height: 14px; }
.dl-row .t { font-weight: 600; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-row .s { color: var(--faint); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { font-size: 10.5px; font-weight: 650; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.tag.red { background: var(--bad-soft); color: var(--bad); }
.tag.amber { background: var(--warn-soft); color: var(--warn); }
.tag.teal { background: var(--brand-soft); color: var(--brand); }
.tag.indigo { background: var(--indigo-soft); color: var(--indigo); }
.ic.red { background: var(--bad-soft); color: var(--bad); }
.ic.amber { background: var(--warn-soft); color: var(--warn); }
.ic.teal { background: var(--brand-soft); color: var(--brand); }
.ic.indigo { background: var(--indigo-soft); color: var(--indigo); }
.mock-toast {
  position: absolute; right: -24px; bottom: 44px; width: 300px; z-index: 2;
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; font-size: 12.5px; text-align: left;
}
.mock-toast .ic { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; }
.mock-toast .ic svg { width: 16px; height: 16px; }
.mock-toast b { display: block; font-size: 12.5px; }
.mock-toast span { color: var(--muted); font-size: 11.5px; }
.mock-chip {
  position: absolute; left: -26px; top: 132px; z-index: 2;
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; box-shadow: var(--shadow-lg);
  font-size: 12px; display: flex; align-items: center; gap: 8px; font-weight: 600; text-align: left;
}
.mock-chip svg { width: 16px; height: 16px; color: var(--good); }
.mock-caption { text-align: center; color: var(--faint); font-size: 0.8rem; margin-top: 18px; }
@media (max-width: 1160px) { .mock-toast { right: 12px; } .mock-chip { left: 12px; } }
@media (max-width: 880px) {
  .mock-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .mock-side { display: none; }
  .mock-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-grid { grid-template-columns: minmax(0, 1fr); }
  .mock-chip { display: none; }
  .mock-toast { position: relative; right: auto; bottom: auto; width: auto; margin: 14px 0 0; }
}
@media (max-width: 480px) {
  .mock-main { padding: 14px 12px; }
  .mock-search { display: none; }
  .kpi .v { font-size: 16px; }
}

/* ---------- trust strip ---------- */
.trust { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.trust li { display: flex; align-items: center; gap: 11px; font-size: 0.9rem; color: var(--ink-2); font-weight: 600; line-height: 1.3; }
.trust li small { display: block; font-weight: 400; color: var(--faint); font-size: 0.8rem; margin-top: 2px; }
.trust .ti { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--panel); border: 1px solid var(--line); color: var(--brand); box-shadow: var(--shadow-sm); }
.trust .ti svg { width: 19px; height: 19px; }
@media (max-width: 1000px) { .trust ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .trust ul { grid-template-columns: minmax(0, 1fr); } }

/* ---------- grids and cards ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm); position: relative; min-width: 0;
}
.card > p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card.glass { background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.card.hover { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.fi { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--brand); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); flex-shrink: 0; }
.fi svg { width: 21px; height: 21px; }
.fi.indigo { color: var(--indigo); background: var(--indigo-soft); border-color: color-mix(in srgb, var(--indigo) 20%, transparent); }
.fi.amber { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 22%, transparent); }
.note { display: inline-block; margin-top: 10px; font-size: 0.76rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { padding: 28px 24px 24px; }
.step .num { font-size: 0.8rem; font-weight: 700; color: var(--indigo); letter-spacing: 0.08em; margin-bottom: 16px; display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; }
.step .num i { display: inline-flex; width: 30px; height: 30px; border-radius: 9px; align-items: center; justify-content: center; font-style: normal; background: var(--grad); color: #fff; letter-spacing: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* feature groups (home) */
.fgroup { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; padding: 64px 0; border-top: 1px solid var(--line); }
.fgroup:first-of-type { border-top: 0; padding-top: 8px; }
.fgroup.flip .fg-text { order: 2; }
.fg-text .eyebrow { margin-bottom: 10px; }
.fg-text h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; margin-bottom: 12px; }
.fg-text > p { color: var(--muted); font-size: 1.05rem; }
.fg-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.fg-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; color: var(--muted); font-size: 0.95rem; }
.fg-list li b { color: var(--ink); font-weight: 600; }
.fg-list svg { width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }
.fg-visual { min-width: 0; }
@media (max-width: 900px) {
  .fgroup { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 48px 0; }
  .fgroup.flip .fg-text { order: 0; }
}
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 20px; position: relative; overflow: hidden; }
.panel::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px 200px at 100% 0%, var(--glow-2), transparent 70%), radial-gradient(400px 200px at 0% 100%, var(--glow-1), transparent 70%); pointer-events: none; }
.panel > * { position: relative; }
.panel-title { font-size: 0.75rem; font-weight: 650; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 12px; display: flex; justify-content: space-between; gap: 10px; }
.panel + .panel { margin-top: 12px; }
.timeline { display: grid; gap: 10px; }
.tl { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 0.9rem; }
.tl .date { font-variant-numeric: tabular-nums; font-weight: 650; font-size: 0.82rem; color: var(--muted); }
.tl .what { font-weight: 600; min-width: 0; }
.tl .what small { display: block; font-weight: 400; color: var(--faint); font-size: 0.8rem; }
@media (max-width: 480px) { .tl { grid-template-columns: minmax(0, 1fr) auto; } .tl .date { grid-column: 1 / -1; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--panel-2); border-radius: 999px; padding: 6px 12px; font-size: 0.85rem; font-weight: 550; color: var(--ink-2); }
.chip svg { width: 15px; height: 15px; color: var(--brand); }
.kv-mini { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 16px; font-size: 0.9rem; margin: 0; }
.kv-mini dt { color: var(--muted); }
.kv-mini dd { margin: 0; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.meter { height: 8px; border-radius: 999px; background: var(--sunken); overflow: hidden; border: 1px solid var(--line); margin: 6px 0 4px; }
.meter i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.meter i.w72 { width: 72%; }
.sig { border: 1px dashed var(--line-2); border-radius: 12px; padding: 14px; display: grid; gap: 10px; font-size: 0.86rem; background: var(--panel-2); }
.sig .row-s { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.sig .hand { font-size: 1.6rem; font-style: italic; font-weight: 300; letter-spacing: -0.02em; color: var(--indigo); font-family: 'Segoe Script', 'Brush Script MT', cursive; line-height: 1.2; }
.code {
  font-family: var(--mono); font-size: 0.8rem; line-height: 1.7; background: #0b1220; color: #d5deea; border-radius: 12px; padding: 16px 18px; overflow-x: auto; border: 1px solid #1c2740; white-space: pre; margin: 0;
}
.code .k { color: #a5b4fc; }
.code .s { color: #5eead4; }
.code .c { color: #94a3b8; }

/* ---------- comparison ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 0.93rem; }
table.compare th, table.compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.compare thead th { font-size: 1rem; background: var(--panel-2); vertical-align: bottom; }
table.compare thead th small { display: block; font-weight: 450; color: var(--faint); font-size: 0.8rem; margin-top: 2px; }
table.compare tbody th { font-weight: 550; color: var(--muted); width: 28%; }
table.compare td { color: var(--ink-2); }
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: 0; }
table.compare .y { color: var(--good); font-weight: 650; }
table.compare .n { color: var(--faint); }
table.compare svg { width: 17px; height: 17px; vertical-align: -3px; margin-right: 4px; }
.scroll-hint { display: none; font-size: 0.8rem; color: var(--faint); margin-top: 8px; text-align: center; }
@media (max-width: 720px) { .scroll-hint { display: block; } }

/* ---------- pricing ---------- */
.price { font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 750; letter-spacing: -0.04em; line-height: 1.05; margin: 8px 0 8px; font-variant-numeric: tabular-nums; }
.price .small, .price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-box { max-width: 560px; margin: 0 auto; text-align: center; }
.price-cards, .price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)) !important; gap: 20px; align-items: stretch; text-align: left; }
.price-card, .price-grid > .card { display: flex; flex-direction: column; padding: 30px; }
.price-card > .btn:first-of-type, .price-grid > .card > .btn:first-of-type { margin-top: auto; }
.price-card.featured, .price-grid > .card:first-child { background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: var(--shadow-lg); }
.badge-top { position: absolute; top: -12px; left: 30px; background: var(--grad); color: #fff; border-radius: 999px; padding: 3px 12px; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.02em; }
ul.checks { list-style: none; padding: 0; margin: 18px 0 24px; text-align: left; }
ul.checks li { padding: 7px 0 7px 30px; position: relative; color: var(--ink-2); font-size: 0.95rem; }
ul.checks li::before {
  content: ''; position: absolute; left: 0; top: 10px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--good-soft) no-repeat center / 11px 11px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.4 4.9 8.7 9.6 3.6' fill='none' stroke='%2316a34a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
ul.checks.small li { font-size: 0.875rem; padding-top: 5px; padding-bottom: 5px; }
ul.checks.small li::before { top: 7px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin: 16px 0; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.95rem; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); margin: 16px 0; }
.table-wrap .table { border: 0; margin: 0; border-radius: 0; }
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table th { color: var(--ink); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.table td { color: var(--muted); }
@media (max-width: 600px) {
  .table th { white-space: normal; }
  .table, .table tbody, .table tr, .table th, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .table tr:last-child { border-bottom: 0; }
  .table th, .table td { border: 0 !important; padding: 3px 16px; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0; margin-bottom: 10px; box-shadow: var(--shadow-sm); transition: border-color 0.15s; }
.faq details { margin: 0; }
details[open] { border-color: var(--line-2); }
details summary { cursor: pointer; font-weight: 600; list-style: none; padding: 18px 52px 18px 20px; position: relative; color: var(--ink); }
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details summary:focus-visible { border-radius: 14px; }
details > p, details > div { color: var(--muted); margin: 0; padding: 0 20px 18px; }
.faq-cols { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .faq-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.faq-group { margin-top: 36px; }
.faq-group:first-child { margin-top: 0; }
.faq-group > h2 { font-size: 1.15rem; margin-bottom: 14px; letter-spacing: -0.015em; }

/* ---------- final CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: 76px 32px; text-align: center; color: #fff;
  background: radial-gradient(800px 300px at 20% 0%, rgba(45, 212, 191, 0.35), transparent 60%), radial-gradient(800px 300px at 80% 100%, rgba(129, 140, 248, 0.45), transparent 60%), #0b1220;
  border: 1px solid #1c2740; isolation: isolate;
}
.cta-band::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.cta-band h2 { color: #fff; max-width: 760px; margin: 0 auto 14px; }
.cta-band p { color: #c7d2e3; max-width: 620px; margin: 0 auto; font-size: 1.1rem; }
.cta-band .cta { justify-content: center; }
.cta-band .btn.primary { background: #fff; color: #0b1220; }
.cta-band .btn.primary:hover { color: #0b1220; }
.cta-band .btn.ghost { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.22); }
.cta-band .btn.ghost:hover { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.cta-band .small { color: #aab6c8; margin-top: 18px; }
@media (max-width: 600px) { .cta-band { padding: 52px 20px; border-radius: 22px; } .cta-band .btn { width: 100%; } }

/* ---------- features page ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 30px; }
.toc a { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 7px 14px; text-decoration: none; color: var(--ink-2); font-size: 0.88rem; font-weight: 550; box-shadow: var(--shadow-sm); }
.toc a:hover { border-color: var(--line-2); color: var(--ink); }
.toc svg { width: 16px; height: 16px; color: var(--brand); }
.fsec { padding: 64px 0; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
.fsec-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 28px; max-width: 760px; }
.fsec-head .fi { margin: 0; width: 48px; height: 48px; }
.fsec-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 6px; }
.fsec-head p { color: var(--muted); margin: 0; }
.feature h3 { display: flex; align-items: center; gap: 10px; }
.feature h3 svg { width: 19px; height: 19px; color: var(--brand); flex-shrink: 0; }
.honest { border-left: 3px solid var(--indigo); background: var(--indigo-soft); border-radius: 0 12px 12px 0; padding: 14px 18px; color: var(--ink-2); font-size: 0.92rem; margin-top: 16px; }
.honest strong { color: var(--ink); }

/* ---------- docs ---------- */
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.docs-nav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; font-size: 0.9rem; max-height: calc(100vh - 110px); overflow: auto; }
.docs-nav b { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin: 0 0 8px 10px; }
.docs-nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.docs-nav a:hover { color: var(--ink); background: var(--sunken); }
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; max-height: none; }
  .docs-nav b { width: 100%; margin-left: 0; }
  .docs-nav a { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 5px 12px; font-size: 0.85rem; }
}
.prose { font-size: 1.02rem; line-height: 1.75; color: var(--ink-2); max-width: 760px; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 56px 0 14px; scroll-margin-top: 84px; display: flex; align-items: center; gap: 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h2 .fi { width: 36px; height: 36px; border-radius: 10px; margin: 0; }
.prose h2 .fi svg { width: 18px; height: 18px; }
.prose h3 { margin: 28px 0 8px; font-size: 1.1rem; }
.prose p, .prose li { color: var(--muted); }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--brand); font-weight: 650; }
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--sunken); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.prose strong { color: var(--ink); }
kbd { font-family: var(--mono); font-size: 0.82em; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: var(--panel); color: var(--ink); white-space: nowrap; }
.callout { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 14px 16px; font-size: 0.94rem; color: var(--muted); margin: 18px 0; }
.callout svg { width: 20px; height: 20px; color: var(--indigo); margin-top: 2px; }
.callout.warn svg { color: var(--warn); }
.callout p { margin: 0; }
.legal { max-width: 800px; }
.legal h2 { font-size: 1.25rem; margin: 40px 0 10px; letter-spacing: -0.015em; }
.legal p { color: var(--muted); }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--faint); font-size: 0.88rem; }

/* ---------- download ---------- */
.dl-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 860px) { .dl-hero { grid-template-columns: minmax(0, 1fr); } }
.dl-card { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.dl-card .os { display: flex; align-items: center; gap: 14px; }
.dl-card .os .fi { margin: 0; width: 52px; height: 52px; border-radius: 14px; }
.dl-card .os .fi svg { width: 26px; height: 26px; }
.dl-card h2 { font-size: 1.5rem; margin: 0; letter-spacing: -0.025em; }
.dl-card p { margin: 0; }
.dl-card .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.dl-card.featured { background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: var(--shadow-lg); }
.soon { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.88rem; }
.soon svg { width: 16px; height: 16px; }
ol.steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
ol.steps-list li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; color: var(--muted); }
ol.steps-list li::before { content: counter(s); width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--sunken); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 0.9rem; }
ol.steps-list li b { color: var(--ink); display: block; }

/* ---------- forms ---------- */
form .row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
label.field, div.field { display: flex; flex-direction: column; gap: 7px; font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; color: var(--ink-2); min-width: 0; }
label.field span.hint, .hint { font-weight: 400; color: var(--faint); font-size: 0.82rem; }
input[type='text'], input[type='email'], input[type='tel'], input[type='date'], input[type='number'], input[type='file'], select, textarea {
  font: inherit; font-weight: 400; font-size: 0.97rem; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); width: 100%; min-height: 44px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type='file'] { padding: 9px 12px; }
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 0.85; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--indigo) 35%, var(--line-2)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--indigo); box-shadow: var(--focus); }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; background-size: 12px; }
input[type='radio'], input[type='checkbox'] { accent-color: var(--indigo); width: 17px; height: 17px; flex-shrink: 0; margin: 0; }
.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-group label { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 15px; background: var(--panel); font-weight: 550; cursor: pointer; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; flex: 1 1 200px; min-width: 0; flex-wrap: wrap; }
.radio-group label:hover { border-color: color-mix(in srgb, var(--indigo) 40%, var(--line-2)); }
.radio-group label:has(input:checked) { border-color: var(--indigo); background: color-mix(in srgb, var(--indigo) 6%, var(--panel)); box-shadow: 0 0 0 1px var(--indigo) inset; }
.radio-group label:has(input:focus-visible) { box-shadow: var(--focus); }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 0.92rem; margin: 12px 0; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 3px; }
.err { color: var(--bad); font-size: 0.85rem; font-weight: 500; }
.err:empty { display: none; }
.alert { border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); background: var(--sunken); margin: 12px 0; font-size: 0.94rem; }
.alert.bad { border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: var(--bad-soft); color: var(--bad); }
.alert.good { border-color: color-mix(in srgb, var(--good) 35%, transparent); background: var(--good-soft); color: var(--ink); }
form.card { padding: 30px; }
form.card h3 { font-size: 1rem; margin-top: 8px; }
@media (max-width: 520px) { form.card, .card { padding: 20px; } }
.order-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; margin-top: 28px; }
@media (max-width: 920px) { .order-layout { grid-template-columns: minmax(0, 1fr); } .summary { position: static !important; } }
.summary { position: sticky; top: 88px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 0.95rem; color: var(--muted); }
.summary .line span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 550; text-align: right; }
.summary .total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.summary .total span:last-child { font-weight: 750; }
.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 18px; font-size: 0.95rem; margin: 0; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 520px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .kv dd { margin-bottom: 10px; } }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 650; padding: 4px 11px; border-radius: 999px; background: var(--indigo-soft); color: var(--indigo); border: 1px solid color-mix(in srgb, var(--indigo) 22%, transparent); }
.badge:empty { display: none; }
.form-page { padding-top: 56px; }
.form-page h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.trust-mini { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 0.85rem; color: var(--faint); }
.trust-mini span { display: inline-flex; gap: 6px; align-items: center; }
.trust-mini svg { width: 15px; height: 15px; color: var(--good); }
.side-stack { display: grid; gap: 16px; }

/* legacy reminder mock rows */
.screens { border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); padding: 22px; box-shadow: var(--shadow); }
.mock-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; font-size: 0.92rem; }
.mock-row .when { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 64px 0 36px; margin-top: 56px; color: var(--muted); font-size: 0.9rem; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-grid h2 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin: 0 0 14px; font-weight: 650; }
.foot-grid nav { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.foot-brand p { margin-top: 14px; max-width: 340px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; font-size: 0.84rem; color: var(--faint); }
.foot-bottom a { color: var(--faint); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 120px 0 80px; }
.nf .code-num { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; margin-bottom: 12px; }
.nf .cta { justify-content: center; }

/* ---------- motion ---------- */
.reveal-on .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal-on .reveal.in { opacity: 1; transform: none; }
.reveal-on .reveal.d1 { transition-delay: 0.08s; }
.reveal-on .reveal.d2 { transition-delay: 0.16s; }
.reveal-on .reveal.d3 { transition-delay: 0.24s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.mock-toast, .mock-chip { animation: floaty 6s ease-in-out infinite; }
.mock-chip { animation-delay: -3s; }
@media (max-width: 880px) { .mock-toast { animation: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-on .reveal { opacity: 1; transform: none; transition: none; }
  .mock-toast, .mock-chip { animation: none; }
  .btn, .btn:hover, .card.hover, .card.hover:hover { transition: none; transform: none; }
}

/* ---------- print ---------- */
@media print {
  header.site, footer.site, .cta-band, .menu { display: none !important; }
  body { background: #fff; color: #000; }
}
.fsec:first-child { border-top: 0; }
.card h3 > svg { width: 19px; height: 19px; vertical-align: -3px; margin-right: 6px; color: var(--brand); }
.feature h3 > svg { margin-right: 0; }
.form-page.hero { overflow: visible; }
.form-page .order-layout form h3 > svg, .summary h3 > svg { color: var(--indigo); }
#success .fi { margin-bottom: 14px; }
.pack-table td { font-variant-numeric: tabular-nums; }
.pill svg { width: 15px; height: 15px; flex-shrink: 0; }
@media (max-width: 560px) { .pill .pt { display: none; } .pill { padding-right: 8px; } }
.reveal-on .reveal.now { transition: none; }
.radio-group label > span.small { flex-basis: 100%; padding-left: 27px; margin-top: -4px; }

/* ---------- free tools (/tools, /ro/instrumente) ---------- */
.tool [hidden] { display: none !important; }
.tool-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.tool-layout.wide { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 920px) { .tool-layout { grid-template-columns: minmax(0, 1fr); } }
.tool-card { padding: 28px; }
.tool-card h2 { font-size: 1.15rem; margin: 0 0 18px; display: flex; gap: 10px; align-items: center; }
.tool-card h2 svg { width: 20px; height: 20px; color: var(--brand); }
.tool-result { min-height: 120px; }
.tool-result:focus { outline: none; }
.tool-label { margin: 0; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); }
.tool-big { font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.15; margin: 6px 0 8px; color: var(--ink); }
.tool-state { display: inline-flex; font-weight: 650; font-size: 0.9rem; border-radius: 999px; padding: 4px 12px; margin: 0 0 14px; }
.tool-state.ok { background: var(--good-soft); color: var(--good); }
.tool-state.warn { background: var(--warn-soft); color: var(--warn); }
.tool-state.bad { background: var(--bad-soft); color: var(--bad); }
.tool-sub { font-size: 0.95rem; margin: 20px 0 8px; }
.tool-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 0.93rem; color: var(--muted); }
.tool-list b { color: var(--ink-2); font-weight: 600; }
.tool-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.tool-figures > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.tool-figures span { display: block; font-size: 0.8rem; color: var(--faint); }
.tool-figures b { display: block; font-size: 1.2rem; font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; }
.tool-figures .hl { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background: color-mix(in srgb, var(--brand) 8%, var(--panel)); }
@media (max-width: 560px) { .tool-figures { grid-template-columns: minmax(0, 1fr); } }
.tool-table td.num, .tool-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tool-table small { display: block; }
@media (max-width: 600px) {
  .tool-table thead { display: none !important; }
  .tool-table td[data-label] { display: grid !important; grid-template-columns: minmax(0, 45%) minmax(0, 1fr); gap: 8px; text-align: left !important; white-space: normal; }
  .tool-table td[data-label]::before { content: attr(data-label); color: var(--faint); font-size: 0.85rem; }
}
.pen-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; padding-bottom: 6px; border-bottom: 1px dashed var(--line); margin-bottom: 12px; }
.pen-row label.field { margin-bottom: 8px; }
.pen-row .pen-remove { margin-bottom: 8px; }
@media (max-width: 760px) { .pen-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pen-row .pen-remove { justify-self: start; } }
.tool-inline { display: flex; gap: 10px; align-items: center; }
.tool-inline input, .tool-inline select { flex: 1 1 auto; min-width: 0; }
.tool-inline .unit { color: var(--muted); font-weight: 500; white-space: nowrap; }
.tool-check { font-size: 0.88rem; font-weight: 550; margin: -8px 0 12px; }
.tool-check.ok { color: var(--good); }
.tool-check.bad { color: var(--bad); }
.tool-flag { display: inline-flex; font-size: 0.8rem; font-weight: 650; border-radius: 999px; padding: 3px 10px; }
.tool-flag.ok { background: var(--good-soft); color: var(--good); }
.tool-flag.bad { background: var(--bad-soft); color: var(--bad); }
.tool-company-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.tool-company-head h3 { margin: 0; font-size: 1.2rem; }
.tool-conv { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: end; }
.tool-conv label.field { margin-bottom: 0; }
.tool-conv .btn { min-height: 44px; }
@media (max-width: 560px) { .tool-conv { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } .tool-conv .field:first-child { grid-column: 1 / -1; } }
.tool-conv-result { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; margin: 18px 0 4px; font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; min-height: 1.5em; }
.bnr-rates { margin: 0; }
.tool-rates-wrap { max-height: 560px; overflow: auto; border-radius: 14px; }
.dropzone { display: grid; place-items: center; text-align: center; gap: 10px; border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 36px 20px; background: var(--panel-2); transition: border-color 0.15s, background 0.15s; }
.dropzone.over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--panel)); }
.dropzone > svg { width: 34px; height: 34px; color: var(--brand); }
.dropzone p { margin: 0; color: var(--muted); }
.dropzone input[type='file'] { max-width: 360px; }
.tool-privacy { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); background: var(--good-soft); border: 1px solid color-mix(in srgb, var(--good) 30%, transparent); border-radius: 12px; padding: 12px 14px; margin: 16px 0 0; }
.tool-privacy svg { width: 18px; height: 18px; color: var(--good); flex-shrink: 0; margin-top: 2px; }
.tool-example { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 18px 20px; margin: 18px 0; }
.tool-example h3 { margin-top: 0; }
.tool-example p:last-child { margin-bottom: 0; }
.tool-example .table { margin: 10px 0 0; font-size: 0.9rem; }
.tools-grid .card { display: flex; flex-direction: column; }
.tools-grid .card h2 { font-size: 1.15rem; margin: 0 0 8px; }
.tools-grid .card p { flex: 1 1 auto; }
.tools-grid .card a.more { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.tools-grid .card a.more svg { width: 16px; height: 16px; }

/* e-Factura invoice */
.invoice { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin-top: 18px; color: var(--ink-2); font-size: 0.95rem; box-shadow: var(--shadow-sm); }
.inv-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 16px; margin-bottom: 20px; }
.inv-type { margin: 0; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); font-weight: 650; }
.inv-number { margin: 2px 0 0; font-size: 1.6rem; font-weight: 750; color: var(--ink); overflow-wrap: anywhere; }
.inv-meta { display: grid; grid-template-columns: auto auto; gap: 4px 16px; margin: 0; font-size: 0.9rem; }
.inv-meta dt { color: var(--faint); }
.inv-meta dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.inv-parties { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-bottom: 22px; }
@media (max-width: 640px) { .inv-parties { grid-template-columns: minmax(0, 1fr); } .invoice { padding: 18px; } }
.inv-party { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.inv-party h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin: 0 0 6px; }
.inv-party p { margin: 2px 0; overflow-wrap: anywhere; }
.inv-party .inv-name { font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.inv-lines-wrap { overflow-x: auto; }
.inv-lines, .inv-vat { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.inv-lines th, .inv-lines td, .inv-vat th, .inv-vat td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.inv-lines thead th, .inv-vat thead th { background: var(--panel-2); font-size: 0.8rem; color: var(--muted); font-weight: 650; }
.inv-lines .num, .inv-vat .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-item { display: block; font-weight: 600; color: var(--ink); }
.inv-desc { display: block; color: var(--muted); font-size: 0.85rem; }
.inv-vat caption { text-align: left; font-weight: 650; padding: 0 0 6px; color: var(--ink); }
.inv-sum { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 24px; margin-top: 22px; align-items: start; }
@media (max-width: 640px) { .inv-sum { grid-template-columns: minmax(0, 1fr); } }
.inv-totals { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 0; margin: 0; }
.inv-totals dd { padding-left: 14px; }
.inv-totals dt { color: var(--muted); }
.inv-totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.inv-totals .grand { border-top: 2px solid var(--ink); padding-top: 8px; font-size: 1.1rem; font-weight: 750; color: var(--ink); }
.inv-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; margin-top: 22px; }
.inv-foot h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin: 0 0 6px; }
.inv-foot p { margin: 2px 0; overflow-wrap: anywhere; }
.inv-generated { margin: 24px 0 0; font-size: 0.78rem; color: var(--faint); }
@media (max-width: 600px) {
  .inv-lines thead { display: none; }
  .inv-lines tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .inv-lines td { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); border: 0; padding: 3px 0; text-align: left !important; white-space: normal !important; }
  .inv-lines td::before { content: attr(data-label); color: var(--faint); font-size: 0.82rem; }
}

@media print {
  .no-print { display: none !important; }
  .reveal-on .reveal { opacity: 1 !important; transform: none !important; }
  .tool-card, .invoice { box-shadow: none; }
  .tool-layout { grid-template-columns: minmax(0, 1fr); }
  body.page-tool-efactura main > section:not(.tool) { display: none !important; }
  body.has-invoice .efa-pick { display: none !important; }
  .invoice { border: 0; padding: 0; margin: 0; color: #000; }
  .inv-lines thead th, .inv-vat thead th, .inv-party { background: #f3f4f6 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.tool .radio-group .rl { flex: 1 1 0; min-width: 0; }
