/* ==========================================================================
   Docium — Design System
   Pure CSS, no build step. Organised: tokens → base → layout → components → pages

   Principles: one accent colour, flat surfaces, hairline borders, small radii,
   serif display type for headlines, sans for everything else. No gradients.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f6f3;
  --bg-muted: #efede8;
  --ink: #12141d;
  --ink-2: #33364a;
  --muted: #62657a;
  --line: #e6e4de;
  --line-2: #d2d0c9;

  --brand: #3d38c7;
  --brand-600: #2f2aa6;
  --brand-50: #f1f1fb;
  --brand-100: #dfdff6;
  --accent: #0f7b6c;
  --accent-50: #e7f3f0;
  --amber: #b9730b;
  --rose: #c8364f;
  --sky: #2a6fb0;

  --dark: #12141d;
  --dark-2: #1b1e2b;
  --dark-line: rgba(255, 255, 255, 0.12);

  /* Kept as tokens because markup references them; both are flat now. */
  --grad: linear-gradient(var(--brand), var(--brand));
  --grad-text: none;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --radius-xl: 12px;

  --shadow-xs: 0 1px 2px rgba(18, 20, 29, 0.05);
  --shadow-sm: 0 1px 3px rgba(18, 20, 29, 0.07);
  --shadow: 0 8px 24px -12px rgba(18, 20, 29, 0.16), 0 1px 2px rgba(18, 20, 29, 0.05);
  --shadow-lg: 0 32px 64px -32px rgba(18, 20, 29, 0.28), 0 2px 6px rgba(18, 20, 29, 0.05);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --container: 1160px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 { margin: 0 0 0.5em; color: var(--ink); }
h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-variant-numeric: lining-nums;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.2vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.12; }
h3, h4, h5 { font-family: var(--font); font-weight: 600; line-height: 1.3; letter-spacing: -0.012em; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; color: var(--muted); }

::selection { background: var(--brand-100); color: var(--ink); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-sm { max-width: 860px; }
.section { padding: 104px 0; position: relative; }
.section-sm { padding: 72px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--dark); color: #fff; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.64); }

.section-head { max-width: 680px; margin: 0 0 56px; text-align: left; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { font-size: 1.0625rem; max-width: 600px; }
.section-head p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse > :first-child { order: 2; }

.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: block;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.section-dark .eyebrow { color: rgba(255,255,255,.55); }

/* Emphasis inside headlines: serif italic in the accent colour (was a gradient). */
.gradient-text { color: var(--brand); }
h1 .gradient-text, h2 .gradient-text { font-style: italic; }
.section-dark .gradient-text { color: #c5c6ff; }
.lead { font-size: 1.125rem; line-height: 1.65; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.005em; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(2px); }
.btn-lg { --h: 50px; padding: 0 22px; font-size: 1rem; }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 0.875rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2d3d; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--bg-muted); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,0.28); background: transparent; }
.btn-outline-light:hover { border-color: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .7; cursor: default; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9375rem; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .15s; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.link-arrow:hover { border-color: var(--ink); }
.link-arrow:hover svg { transform: translateX(2px); }

/* ---------- Badges / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.875rem; font-weight: 500; color: var(--ink-2);
}
.pill:hover { color: var(--ink); }
.pill svg { width: 14px; height: 14px; flex: none; }
.pill .tag { border: 1px solid var(--line-2); color: var(--ink); font-size: 0.6875rem; font-weight: 600; padding: 2px 7px; border-radius: var(--radius-sm); letter-spacing: 0.06em; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 600; background: var(--bg-muted); color: var(--ink-2); white-space: nowrap; }
.badge.green { background: var(--accent-50); color: var(--accent); }
.badge.amber { background: #faf0dc; color: #8a5a0a; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-color: var(--line); }
.nav .container { height: 100%; display: flex; align-items: center; gap: 36px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.logo-mark { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; flex: 1; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: var(--radius); border: 0; background: none;
  font-size: 0.9rem; font-weight: 500; color: var(--ink-2);
  transition: color .15s;
}
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links > li > a.active { color: var(--ink); }
.nav-links > li > a.active { font-weight: 600; }
.nav-links .chev { width: 13px; height: 13px; transition: transform .2s; opacity: .55; }
.has-menu:hover .chev, .has-menu:focus-within .chev { transform: rotate(180deg); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .signin { font-size: 0.9rem; font-weight: 500; color: var(--ink-2); padding: 8px 12px; }
.nav-cta .signin:hover { color: var(--ink); }

.mega {
  position: absolute; top: calc(100% + 10px); left: -16px;
  width: 600px; padding: 8px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .16s, transform .16s var(--ease), visibility .16s;
}
.mega::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-menu:hover .mega, .has-menu:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega a { display: flex; gap: 12px; padding: 12px; border-radius: var(--radius); transition: background .15s; }
.mega a:hover { background: var(--bg-soft); }
.mega .mi { flex: none; width: 20px; height: 20px; margin-top: 2px; display: grid; place-items: center; color: var(--ink); }
.mega .mi svg { width: 18px; height: 18px; }
.mega strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-bottom: 1px; }
.mega span { display: block; font-size: 0.8125rem; color: var(--muted); line-height: 1.45; }

.burger { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--line-2); background: #fff; place-items: center; }
.burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; transition: background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s; }
.burger span::before { top: -5px; } .burger span::after { top: 5px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { top: 0; transform: rotate(45deg); }
.nav-open .burger span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 99; background: #fff;
  padding: 16px 28px 28px; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.nav-open .mobile-menu { opacity: 1; transform: none; visibility: visible; }
.mobile-menu .m-group { border-bottom: 1px solid var(--line); padding: 12px 0; }
.mobile-menu .m-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 600; color: var(--muted); padding: 8px 0; }
.mobile-menu a { display: block; padding: 9px 0; font-weight: 500; font-size: 1rem; }
.mobile-menu .btn { display: flex; margin-top: 12px; color: #fff; }
.mobile-menu .btn-ghost { color: var(--ink); }
.no-scroll { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 88px; }
.hero-bg, .grid-lines, .demo-glow { display: none; }

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 72px; align-items: end; }
.hero h1 { margin: 28px 0 0; }
.hero .eyebrow { margin-bottom: 0; }
.hero .eyebrow + h1 { margin-top: 18px; }
.hero .lead { margin: 0 0 28px; font-size: 1.125rem; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-top: 22px; font-size: 0.8125rem; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--accent); }

.page-hero { padding: 88px 0 64px; position: relative; text-align: center; }
.page-hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); margin: 0 auto 20px; max-width: 860px; }
.page-hero .lead { max-width: 640px; margin: 0 auto 32px; }
.page-hero .hero-actions { justify-content: center; }
.page-hero .eyebrow { margin-bottom: 20px; }

/* ---------- App mockup (interactive hero demo) ---------- */
.demo-wrap { position: relative; margin: 64px auto 0; }
.app {
  border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg); overflow: hidden; text-align: left;
}
.app-bar { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.dots { display: flex; gap: 6px; }
.dots i, .dots i:nth-child(n) { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.app-url { flex: 1; max-width: 400px; margin: 0 auto; height: 26px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; white-space: nowrap; overflow: hidden; }
.app-url svg { width: 11px; height: 11px; flex: none; }
.app-body { display: grid; grid-template-columns: 208px 300px 1fr; min-height: 520px; }
.app-side { border-right: 1px solid var(--line); padding: 16px 10px; background: var(--bg-soft); }
.app-side .ws { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; font-weight: 600; font-size: 0.8125rem; }
.app-side .ws i { width: 22px; height: 22px; border-radius: var(--radius-sm); background: var(--ink); display: block; }
.app-side .s-label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .08em; color: #8b8d9b; font-weight: 600; padding: 14px 8px 6px; }
.app-side .s-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--radius-sm); font-size: 0.8125rem; color: var(--ink-2); font-weight: 500; }
.app-side .s-item svg { width: 15px; height: 15px; opacity: .7; }
.app-side .s-item.active { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); font-weight: 600; }
.app-side .s-item .cnt { margin-left: auto; font-size: 0.6875rem; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }

.app-form { border-right: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.app-form .f-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.app-form .f-head strong { font-size: 0.875rem; }
.progress { height: 3px; border-radius: 2px; background: var(--bg-muted); overflow: hidden; }
.progress i { display: block; height: 100%; width: 40%; background: var(--brand); transition: width .5s var(--ease); }
.fld label { display: block; font-size: 0.75rem; font-weight: 500; color: var(--ink-2); margin-bottom: 5px; }
.fld input, .fld select {
  width: 100%; height: 36px; padding: 0 10px; border-radius: var(--radius); border: 1px solid var(--line-2); background: #fff;
  font-size: 0.8125rem; transition: border-color .15s, box-shadow .15s; outline: none;
}
.fld input:focus, .fld select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.8125rem; font-weight: 500; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.switch { position: relative; width: 34px; height: 20px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-xs); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(14px); }
.switch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.app-form .btn { margin-top: auto; }

.app-doc { background: var(--bg-muted); padding: 28px; position: relative; overflow: hidden; }
.paper {
  background: #fff; border: 1px solid var(--line); border-radius: 2px; box-shadow: 0 6px 20px -12px rgba(18,20,29,.25);
  padding: 34px 38px; font-size: 0.78rem; line-height: 1.75; color: #33364a; min-height: 100%;
  font-family: Georgia, "Times New Roman", serif;
}
.paper h5 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; text-align: center; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.paper .sub { text-align: center; font-size: 0.6875rem; color: #8b8d9b; margin-bottom: 18px; font-family: var(--font); }
.paper p { color: #33364a; margin-bottom: 10px; }
.var {
  background: var(--brand-50); color: var(--brand-600); border-radius: 2px; padding: 0 3px;
  box-shadow: inset 0 -1px 0 var(--brand-100); transition: background .3s;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.var.flash { background: #fff3c9; }
.clause-opt { border-left: 2px solid var(--brand-100); padding-left: 10px; transition: opacity .35s, max-height .45s var(--ease); overflow: hidden; max-height: 200px; }
.clause-opt.hide { opacity: 0; max-height: 0; margin: 0; }
.sig-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 22px; font-family: var(--font); }
.sig { border-top: 1px solid var(--line-2); padding-top: 8px; font-size: 0.6875rem; color: var(--muted); }
.sig .sigbox { height: 30px; display: flex; align-items: flex-end; font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 1.05rem; color: var(--ink); }

/* Toast shown after "Generate & send" */
.float-card {
  position: absolute; background: var(--ink); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 10px 14px 10px 10px; display: flex; align-items: center; gap: 10px; font-size: 0.8125rem; z-index: 3;
  animation: fadeUp .35s var(--ease);
}
.float-card strong { display: block; font-size: 0.8125rem; font-weight: 600; }
.float-card span { color: rgba(255,255,255,.65); font-size: 0.75rem; }
.float-card .fi { width: 28px; height: 28px; border-radius: var(--radius-sm); display: grid; place-items: center; flex: none; background: rgba(255,255,255,.12); color: #fff; }
.float-card .fi svg { width: 15px; height: 15px; }
.fc-3 { right: 24px; bottom: 24px; }

/* ---------- Logos ---------- */
.logos { padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos p { font-size: 0.75rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.marquee-track { display: grid; grid-template-columns: repeat(8, auto); justify-content: space-between; gap: 18px 28px; }
.logo-item { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.0625rem; color: #7d7f8e; letter-spacing: -0.02em; white-space: nowrap; }
.logo-item[aria-hidden="true"] { display: none; }
.logo-item svg { width: 20px; height: 20px; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
  transition: border-color .2s;
  position: relative;
}
.card:hover { border-color: var(--line-2); }
.card p { margin-bottom: 0; font-size: 0.9375rem; }
.card h3 { margin-bottom: 8px; }
.icon {
  width: 40px; height: 40px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); margin-bottom: 20px;
}
.icon svg { width: 20px; height: 20px; }
.icon.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.section-soft .icon:not(.dark) { background: #fff; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento .card { overflow: hidden; display: flex; flex-direction: column; }
.b-span-4 { grid-column: span 4; } .b-span-3 { grid-column: span 3; } .b-span-2 { grid-column: span 2; }
.b-visual { margin-top: 24px; flex: 1; display: flex; align-items: flex-end; }

/* bento visuals */
.v-logic { width: 100%; display: grid; gap: 8px; }
.v-logic .rule { display: flex; align-items: center; gap: 10px; font-size: 0.8125rem; padding: 9px 12px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); font-weight: 500; }
.v-logic .rule b { font-weight: 600; color: var(--brand); }
.v-logic .rule .k { font-family: var(--font-mono); font-size: 0.6875rem; padding: 1px 6px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); }
.v-logic .rule:nth-child(2) { margin-left: 24px; } .v-logic .rule:nth-child(3) { margin-left: 48px; }

.v-sign { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.signer { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; font-size: 0.8125rem; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 0.6875rem; font-weight: 600; color: #fff; flex: none; }
.signer .st { margin-left: auto; }

.v-chart { width: 100%; display: flex; align-items: flex-end; gap: 8px; height: 130px; border-bottom: 1px solid var(--line-2); }
.v-chart i { flex: 1; border-radius: 2px 2px 0 0; background: var(--brand-100); transform-origin: bottom; animation: grow 1s var(--ease) both; }
.v-chart i:nth-child(odd) { background: var(--brand-100); }
.v-chart i:last-child { background: var(--brand); }
@keyframes grow { from { transform: scaleY(0); } }

.v-ai { width: 100%; border-radius: var(--radius); background: var(--dark); color: #c9cbd8; padding: 14px 16px; font-size: 0.78rem; line-height: 1.6; font-family: var(--font-mono); }
.v-ai .prompt { color: #fff; margin-bottom: 6px; }
.v-ai .caret { display: inline-block; width: 6px; height: 13px; background: #fff; vertical-align: middle; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.v-int { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.v-int span { aspect-ratio: 1; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.8125rem; }

/* ---------- Tabs ---------- */
.tabs-center { text-align: left; }
.tabs-nav { display: flex; gap: 28px; border-bottom: 1px solid var(--line-2); margin: 0 0 48px; flex-wrap: wrap; }
.tab-btn { border: 0; background: transparent; padding: 12px 0; margin-bottom: -1px; border-bottom: 2px solid transparent; font-weight: 500; font-size: 0.9375rem; color: var(--muted); transition: color .15s, border-color .15s; }
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.tab-panel { display: none; animation: fadeUp .4s var(--ease); }
.tab-panel.active { display: block; }
.tab-panel h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.check-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 0.9375rem; }
.check-list li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f7b6c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/16px no-repeat;
}
.section-dark .check-list li { color: rgba(255,255,255,.85); }
.section-dark .check-list li::before { filter: brightness(2.2); }

/* Panel visual (generic window) */
.panel {
  border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow);
  padding: 22px; position: relative;
}
.panel-soft { background: #fff; }
.panel .ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.panel .ph strong { font-size: 0.875rem; }
.row-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 8px; font-size: 0.8125rem; background: #fff; }
.row-item .doc-ic { width: 26px; height: 32px; border-radius: 2px; background: #fff; border: 1px solid var(--line-2); position: relative; flex: none; }
.row-item .doc-ic::after { content: ""; position: absolute; left: 5px; right: 5px; top: 7px; height: 1px; background: var(--line-2); box-shadow: 0 5px 0 var(--line-2), 0 10px 0 var(--line-2), 0 15px 0 var(--line-2); }
.row-item strong { display: block; font-size: 0.8125rem; font-weight: 600; }
.row-item small { color: var(--muted); font-size: 0.75rem; }
.row-item .badge { margin-left: auto; }

/* Interview designer mock */
.builder .b-page { font-size: 0.6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.builder .ph + .b-page { margin-top: 0; }
.builder .grip { flex: none; width: 6px; height: 14px; background: radial-gradient(circle, var(--line-2) 1px, transparent 1.5px) 0 0 / 3px 5px; }
.builder .row-item.selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.builder .row-item.nested, .builder .q-rule { margin-left: 24px; }
.builder .q-rule { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.78rem; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; padding: 2px 0; }
.builder .q-rule b { font-weight: 600; color: var(--brand); }
.builder .q-rule .k { font-family: var(--font-mono); font-size: 0.6875rem; padding: 1px 6px; border-radius: var(--radius-sm); background: var(--brand-50); color: var(--brand-600); }
.builder .q-add { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 10px 12px; font-size: 0.8125rem; font-weight: 500; color: var(--muted); text-align: center; }

/* ---------- Template library ---------- */
.tpl-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); background: #fff; border-radius: var(--radius); padding: 7px 12px; font-size: 0.875rem; font-weight: 500; color: var(--ink-2); transition: border-color .15s, background .15s, color .15s; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tpl-search { position: relative; flex: 0 1 280px; }
.tpl-search svg { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.tpl-search input { width: 100%; height: 38px; padding: 0 12px 0 34px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; font-size: 0.875rem; outline: none; transition: border-color .15s, box-shadow .15s; }
.tpl-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.tpl-count { font-size: 0.8125rem; color: var(--muted); margin-bottom: 20px; }
.tpl-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s; }
.tpl-card:hover { border-color: var(--ink); }
.tpl-card[hidden] { display: none; }
.tpl-thumb { height: 128px; background: var(--bg-soft); border-bottom: 1px solid var(--line); display: grid; place-items: end center; overflow: hidden; }
.tpl-paper { width: 148px; height: 104px; background: #fff; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 2px 2px 0 0; padding: 14px 14px 0; transition: transform .25s var(--ease); }
.tpl-card:hover .tpl-paper { transform: translateY(-4px); }
.tpl-paper::before { content: ""; display: block; width: 56%; height: 3px; margin: 0 auto 11px; background: var(--ink-2); }
.tpl-paper::after { content: ""; display: block; height: 70px; background: repeating-linear-gradient(var(--line-2) 0 2px, transparent 2px 9px); }
.tpl-body { padding: 20px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.tpl-body .badge { align-self: flex-start; margin-bottom: 12px; }
.tpl-body h3 { font-size: 1rem; margin-bottom: 6px; }
.tpl-body p { font-size: 0.875rem; margin: 0 0 18px; flex: 1; }
.tpl-meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--muted); }
.tpl-meta b { color: var(--ink); font-weight: 600; }
.tpl-empty { display: none; padding: 56px 0 8px; text-align: center; color: var(--muted); }
.tpl-empty.show { display: block; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.step { position: relative; padding-top: 20px; border-top: 1px solid var(--ink); }
.section-dark .step { border-top-color: rgba(255,255,255,.35); }
.step .num { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; color: var(--muted); margin-bottom: 36px; }
.step .num::before { content: "0"; }
.section-dark .step .num { color: rgba(255,255,255,.55); }
.step h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.step p { font-size: 0.9375rem; margin: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.stat { padding: 32px 28px 30px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .n { font-family: var(--font-display); font-size: clamp(2.2rem, 3.6vw, 3.1rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; margin-bottom: 12px; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.stat p { margin: 0; font-size: 0.875rem; }
.section-dark .stats, .section-dark .stat { border-color: var(--dark-line); }
.section-dark .stat .n { color: #fff; }

/* ---------- Testimonials ---------- */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 24px; height: 100%; }
.quote-card .stars { display: none; }
.quote-card blockquote { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--ink); flex: 1; }
.person { display: flex; align-items: center; gap: 12px; }
.person .avatar { width: 36px; height: 36px; font-size: 0.75rem; }
.person strong { display: block; font-size: 0.875rem; font-weight: 600; }
.person span { font-size: 0.8125rem; color: var(--muted); }
.quote-card .person { padding-top: 20px; border-top: 1px solid var(--line); }
.quote-big { max-width: 900px; }
.quote-big blockquote { font-family: var(--font-display); font-size: clamp(1.5rem, 2.7vw, 2.15rem); line-height: 1.3; letter-spacing: -0.015em; font-weight: 400; margin: 0 0 32px; color: #fff; text-wrap: pretty; }
.quote-big .person span { color: rgba(255,255,255,.6); }
.quote-big .person strong { color: #fff; }
.quote-big .person .avatar { background: rgba(255,255,255,.14) !important; }

/* ---------- Integrations ---------- */
.int-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.int-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.int {
  min-width: 0; text-align: center; padding: 18px 6px 14px;
  border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; font-size: 0.78rem; font-weight: 500; color: var(--ink-2);
  transition: border-color .2s;
}
.int:hover { border-color: var(--line-2); }
.int .ilogo { width: 36px; height: 36px; border-radius: var(--radius); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 0.8125rem; letter-spacing: -0.01em; }

/* ---------- Pricing ---------- */
.billing-toggle { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; font-size: 0.9375rem; margin-bottom: 48px; }
.billing-toggle .switch { width: 44px; height: 24px; }
.billing-toggle .switch span::after { width: 20px; height: 20px; top: 2px; left: 2px; }
.billing-toggle .switch input:checked + span::after { transform: translateX(20px); }
.billing-toggle .lbl { color: var(--muted); transition: color .2s; }
.billing-toggle .lbl.on { color: var(--ink); font-weight: 600; }
.save { font-size: 0.75rem; padding: 3px 8px; border-radius: var(--radius-sm); background: var(--accent-50); color: var(--accent); font-weight: 600; }

.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; text-align: left; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; display: flex; flex-direction: column; position: relative; transition: border-color .2s; }
.plan:hover { border-color: var(--line-2); }
.plan.featured { background: var(--dark); color: #fff; border-color: var(--dark); }
.plan.featured h3, .plan.featured .price { color: #fff; }
.plan.featured p, .plan.featured .per { color: rgba(255,255,255,.62); }
.plan.featured .feat li { color: rgba(255,255,255,.86); }
.plan.featured .feat li svg { color: #7fd6c6; }
.plan .ribbon { position: absolute; top: 28px; right: 24px; background: rgba(255,255,255,.14); color: #fff; font-size: 0.6875rem; font-weight: 600; padding: 3px 8px; border-radius: var(--radius-sm); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.plan h3 { font-size: 1rem; margin-bottom: 6px; }
.plan > p { font-size: 0.875rem; min-height: 44px; }
.price { font-family: var(--font-display); font-size: 2.75rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1; margin: 16px 0 6px; display: flex; align-items: baseline; gap: 4px; font-variant-numeric: lining-nums; }
.price small { font-size: 1.25rem; font-weight: 500; }
.per { font-size: 0.8125rem; color: var(--muted); margin-bottom: 24px; min-height: 20px; }
.plan .btn { margin-bottom: 24px; }
.feat { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; font-size: 0.875rem; }
.plan.featured .feat { border-top-color: var(--dark-line); }
.feat li { display: flex; gap: 10px; color: var(--ink-2); }
.feat li svg { width: 16px; height: 16px; flex: none; color: var(--accent); margin-top: 3px; }
.feat .head { font-weight: 600; color: inherit; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.875rem; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.compare th, .compare td { padding: 14px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--ink-2); font-weight: 500; }
.compare thead th { font-size: 0.9375rem; font-weight: 600; position: sticky; top: 0; background: #fff; border-bottom-color: var(--line-2); }
.compare .grp td { background: var(--bg-soft); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: left; }
.compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--accent); } .compare .no { color: #c2c3cc; }
.compare svg { width: 16px; height: 16px; margin: 0 auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; display: grid; border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; border: 0; background: none; text-align: left; font-weight: 600; font-size: 1rem; color: var(--ink); }
.faq-q .pm { width: 16px; height: 16px; flex: none; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--ink); transform: translate(-50%,-50%); transition: transform .25s var(--ease); }
.faq-q .pm::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-item.open .pm::after { transform: translate(-50%,-50%) rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 48px 24px 0; margin: 0; font-size: 0.9375rem; }

/* Heading left, questions right */
@media (min-width: 961px) {
  .container:has(> .section-head + .faq) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 72px; align-items: start; }
  .container:has(> .section-head + .faq) > .section-head { margin-bottom: 0; }
  .container:has(> .section-head + .faq) > .faq { max-width: none; margin: 0; }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; border-radius: var(--radius-xl);
  background: var(--brand); color: #fff; padding: 64px;
}
.cta-band h2 { color: #fff; max-width: 640px; margin: 0 0 14px; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.cta-band p { color: rgba(255,255,255,.82); max-width: 540px; margin: 0 0 28px; font-size: 1.0625rem; }
@media (min-width: 961px) {
  .cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 64px; align-items: center; }
  .cta-band > h2, .cta-band > p { grid-column: 1; }
  .cta-band > p { margin-bottom: 0; }
  .cta-band > .hero-actions { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow); text-align: left; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.8125rem; font-weight: 500; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border-radius: var(--radius); border: 1px solid var(--line-2); background: #fff;
  font-size: 0.9375rem; transition: border-color .15s, box-shadow .15s; outline: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--rose); box-shadow: 0 0 0 3px #f8e1e5; }
.field .err { display: none; color: var(--rose); font-size: 0.8125rem; margin-top: 6px; }
.field.invalid .err { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.8125rem; color: var(--muted); }
.consent input { margin-top: 3px; accent-color: var(--brand); }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success.show { display: block; animation: fadeUp .4s var(--ease); }
.form-success .icon { margin: 0 auto 20px; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-50); border-color: transparent; color: var(--accent); }

.newsletter { display: flex; gap: 8px; margin-top: 16px; }
.newsletter input { flex: 1; min-width: 0; height: 40px; border-radius: var(--radius); padding: 0 12px; border: 1px solid var(--dark-line); background: rgba(255,255,255,.04); color: #fff; outline: none; font-size: 0.875rem; }
.newsletter input::placeholder { color: rgba(255,255,255,.4); }
.newsletter input:focus { border-color: rgba(255,255,255,.5); }
.newsletter .btn { --h: 40px; background: #fff; color: var(--ink); font-size: 0.875rem; }
.newsletter .btn:hover { background: var(--bg-muted); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,.62); padding: 80px 0 32px; font-size: 0.875rem; }
.footer .logo { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--dark-line); }
.footer-brand p { color: rgba(255,255,255,.55); margin: 18px 0 0; max-width: 320px; }
.footer h4 { color: rgba(255,255,255,.5); font-size: 0.75rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: rgba(255,255,255,.8); }
.footer a { transition: color .15s; }
.footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; flex-wrap: wrap; font-size: 0.8125rem; }
.socials { display: flex; gap: 4px; }
.socials a { width: 34px; height: 34px; border-radius: var(--radius); display: grid; place-items: center; transition: background .15s; }
.socials a:hover { background: rgba(255,255,255,.08); }
.socials svg { width: 16px; height: 16px; }
.compliance { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-top: 24px; }
.compliance span { font-size: 0.6875rem; font-weight: 600; color: rgba(255,255,255,.5); letter-spacing: .08em; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3fbf9f; }

/* ---------- Misc ---------- */
.divider-label { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: .85rem; }
.feature-row { padding: 64px 0; }
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.mini-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.mini-feats h4 { font-size: 0.9375rem; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.mini-feats h4 svg { width: 16px; height: 16px; color: var(--ink); }
.mini-feats p { font-size: 0.875rem; margin: 0; }

.team-card { text-align: left; }
.team-card .portrait { width: 100%; aspect-ratio: 1; border-radius: var(--radius-lg); margin-bottom: 14px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 500; font-size: 2.4rem; color: #fff; position: relative; overflow: hidden; }
.team-card h4 { margin-bottom: 2px; }
.team-card span { color: var(--muted); font-size: 0.875rem; }

.value-num { font-family: var(--font-mono); font-weight: 500; font-size: 0.8125rem; color: var(--muted); margin-bottom: 14px; display: block; }

.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.tl { position: relative; padding: 0 0 40px 40px; }
.tl::before { content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--bg); }
.section-soft .tl::before { box-shadow: 0 0 0 4px var(--bg-soft); }
.tl .yr { font-family: var(--font-mono); font-weight: 500; color: var(--muted); font-size: 0.8125rem; }
.tl h4 { margin: 4px 0 6px; font-size: 1.0625rem; }
.tl p { margin: 0; }

.contact-info { display: grid; gap: 18px; margin-top: 36px; }
.ci { display: flex; gap: 14px; align-items: flex-start; }
.ci .icon { margin: 0; flex: none; }
.ci strong { display: block; margin-bottom: 2px; font-size: 0.9375rem; }
.ci p { margin: 0; font-size: 0.9rem; }

.legal { max-width: 720px; margin: 0 auto; }
.legal h2 { font-size: 1.5rem; margin-top: 48px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal .updated { color: var(--muted); font-size: .875rem; }

.err-page { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; text-align: center; padding: 80px 0; }
.err-page .big { font-family: var(--font-display); font-weight: 500; font-size: clamp(6rem, 16vw, 10rem); line-height: 1; letter-spacing: -0.04em; margin-bottom: 12px; font-variant-numeric: lining-nums; }

.use-card { display: flex; flex-direction: column; }
.use-card .link-arrow { margin-top: 20px; align-self: flex-start; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag-list span { font-size: 0.75rem; padding: 3px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; background: #fff; }

.anchor-offset { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .05s; } .reveal.d2 { transition-delay: .1s; } .reveal.d3 { transition-delay: .15s; } .reveal.d4 { transition-delay: .2s; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .app-body { grid-template-columns: 260px 1fr; }
  .app-side { display: none; }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .int-grid { grid-template-columns: repeat(4, 1fr); }
  .marquee-track { grid-template-columns: repeat(4, 1fr); }
  .hero-inner { grid-template-columns: 1fr; max-width: 760px; }
  .hero h1 { margin-top: 20px; }
}

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: grid; }
  .nav { border-color: var(--line); }
  .section { padding: 80px 0; }
  .hero { padding: 48px 0 64px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse > :first-child { order: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .b-span-4, .b-span-3, .b-span-2 { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section-dark .stat:nth-child(n+3) { border-top-color: var(--dark-line); }
  .cta-band { padding: 48px 40px; }
}

@media (max-width: 720px) {
  .app-body { grid-template-columns: 1fr; }
  .app-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .app-doc { padding: 16px; }
  .paper { padding: 24px 20px; }
  .fc-3 { right: 12px; bottom: 12px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .mobile-menu { padding: 12px 20px 24px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .pricing, .mini-feats, .form-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .b-span-4, .b-span-3, .b-span-2 { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .marquee-track { grid-template-columns: repeat(2, 1fr); }
  .int-grid, .int-grid.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 40px 24px; border-radius: var(--radius-lg); }
  .form-card { padding: 24px; }
  .hero-actions .btn { width: 100%; }
  .section-head { margin-bottom: 40px; }
  .tabs-nav { gap: 20px; }
  .faq-a p { padding-right: 0; }
}
