/* TimeLock public site theme — design tokens + relay-shaped vocabulary
   (.container/.section/.eyebrow/.detail/.flip/.dvis/.cta-band/.features-grid/
   .plan), recolored to TimeLock's brand: vault-violet (#8b5cf6 canonical).
   Icons are inline SVG only — no icon fonts, no image requests. */
:root {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-soft: #0f1530;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-2: linear-gradient(160deg, rgba(35, 44, 72, 0.55), rgba(18, 24, 44, 0.55));
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e6eaf2;
  --muted: #9aa3bd;
  --muted-2: #6b7493;
  /* Brand = monitoring-green, canonical across www + dashboard + cpanel. */
  --brand: #8b5cf6;
  --brand-2: #a78bfa;
  --brand-glow: rgba(139, 92, 246, 0.38);
  --brand-ink: #160b2e; /* text color placed on top of a solid --brand fill */
  --accent: #38bdf8; /* secondary accent for "live" indicators */
  --radius: 18px;
  --maxw: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 620px at 50% -8%, #14224a 0%, rgba(20, 34, 74, 0) 60%),
    radial-gradient(900px 500px at 85% 8%, rgba(139, 92, 246, 0.08), rgba(139, 92, 246, 0) 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-2); background: rgba(139, 92, 246, 0.10);
  border: 1px solid rgba(139, 92, 246, 0.28); border-radius: 999px;
  padding: 6px 14px;
}
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.section { padding: 96px 0; position: relative; }
.section.tight { padding: 56px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; margin: 16px 0 0; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600; text-decoration: none;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
  white-space: nowrap;
}
.btn-primary {
  color: var(--brand-ink); background: linear-gradient(180deg, #a78bfa, #7c3aed);
  box-shadow: 0 10px 30px -10px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.26); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.04); border-color: var(--border); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--border-strong); background: rgba(255, 255, 255, 0.07); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* Nav */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(11, 16, 32, 0.62);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
header.nav.scrolled { border-bottom-color: var(--border); background: rgba(11, 16, 32, 0.86); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; color: var(--text); }
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(160deg, var(--brand), #6d28d9);
  display: grid; place-items: center; box-shadow: 0 6px 18px -6px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a.link { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 9px; transition: color .14s ease, background .14s ease; }
.nav-links a.link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.link.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-menu { display: flex; align-items: center; gap: 18px; }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Mobile nav toggle (hamburger). CSP-safe: no inline handlers — assets/site.js
   just toggles the "open" class on #nav-menu / #nav-toggle. Works without JS
   too in the sense that nothing 404s or breaks; the menu simply needs a click
   to open on narrow screens (progressive enhancement, not a hard requirement). */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04); color: var(--text); cursor: pointer; flex: 0 0 auto;
}
.nav-toggle:hover { border-color: var(--border-strong); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-menu { display: none; }
.nav-toggle.open .icon-close { display: block; }

/* Hero */
.hero { padding: 84px 0 72px; text-align: center; position: relative; }
.hero h1 { font-size: clamp(36px, 6vw, 62px); font-weight: 900; max-width: 16ch; margin: 22px auto 0; }
.hero h1 .grad { background: linear-gradient(120deg, var(--brand-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { font-size: clamp(16px, 2.2vw, 20px); color: var(--muted); max-width: 60ch; margin: 22px auto 0; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero .trust { margin-top: 20px; color: var(--muted-2); font-size: 13.5px; }
.hero .trust strong { color: var(--muted); font-weight: 600; }

/* Page hero (interior pages) */
.page-hero { padding: 72px 0 24px; text-align: center; }
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 900; margin-top: 20px; }
.page-hero p.sub { font-size: 17px; color: var(--muted); max-width: 62ch; margin: 18px auto 0; }

/* Hero visual (mock panel — used by future pages, kept ready per §2.2) */
.hero-visual {
  margin: 56px auto 0; max-width: 940px; border-radius: 22px;
  border: 1px solid var(--border); background: var(--panel-2);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 18px; position: relative; overflow: hidden;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 50% -20%, rgba(139, 92, 246, 0.16), transparent 70%);
  pointer-events: none;
}
.hv-bar { display: flex; align-items: center; gap: 7px; padding: 4px 6px 14px; }
.hv-dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.hv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hv-tile {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; text-align: left; min-height: 72px;
  display: flex; flex-direction: row; align-items: center; gap: 12px;
}
.hv-tile .ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(139, 92, 246, 0.16); color: var(--brand-2); }
.hv-tile .ic svg { width: 18px; height: 18px; }
.hv-tile .tbody { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hv-tile .lbl { font-size: 13px; font-weight: 600; }
.hv-tile .meta { font-size: 11.5px; color: var(--muted-2); }
.hv-tile.live .ic { background: rgba(56, 189, 248, 0.16); color: var(--accent); }
.hv-tile.locked .ic { background: rgba(251, 191, 36, 0.16); color: #fcd34d; }
.hv-tile.locked .meta { color: #fcd34d; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 var(--brand-glow); animation: pulse 1.8s infinite; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--brand-glow); } 70% { box-shadow: 0 0 0 8px rgba(139, 92, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); } }

/* Stats strip */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 56px; padding: 8px 0 0; }
.stat { text-align: center; }
.stat .n { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.stat .l { font-size: 13px; color: var(--muted-2); }

/* Features grid — icon LEFT, copy beside it. */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
  position: relative; overflow: hidden;
  display: flex; flex-direction: row; align-items: flex-start; gap: 16px;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(139, 92, 246, 0.45); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.7); }
.feature .ficon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.22), rgba(56, 189, 248, 0.10));
  border: 1px solid rgba(139, 92, 246, 0.28); color: var(--brand-2);
}
.feature .ficon svg { width: 23px; height: 23px; }
.feature .fbody { min-width: 0; }
.feature h3 { font-size: 17px; font-weight: 700; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }

/* How it works — number LEFT, copy beside it (kept ready per §2.2). */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; position: relative;
  display: flex; flex-direction: row; align-items: flex-start; gap: 16px;
}
.step .num {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 800; font-size: 17px; color: var(--brand-ink);
  background: linear-gradient(160deg, var(--brand), #6d28d9);
  box-shadow: 0 8px 22px -10px var(--brand-glow);
}
.step .sbody { min-width: 0; flex: 1; }
.step h3 { font-size: 17px; font-weight: 700; }
.step p { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }

/* Product/deep-dive page: alternating detail rows (kept ready for §2.2 /product). */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 44px 0; border-top: 1px solid var(--border); }
.detail:first-of-type { border-top: none; }
.detail .dcopy h3 { font-size: 24px; font-weight: 800; }
.detail .dcopy p { color: var(--muted); font-size: 15.5px; margin: 14px 0 0; }
.detail .dcopy ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.detail .dcopy ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text); }
.detail .dcopy ul li svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: var(--brand); }
.detail .dvis {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel-2);
  padding: 26px; min-height: 200px; display: flex; flex-direction: column; gap: 12px; justify-content: center;
}
.detail .dvis .row { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.detail .dvis .row .ic { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: rgba(52,211,153,0.16); color: var(--brand-2); }
.detail .dvis .row .ic svg { width: 17px; height: 17px; }
.detail .dvis .row .t { font-size: 13px; font-weight: 600; }
.detail .dvis .row .m { font-size: 11.5px; color: var(--muted-2); }
.detail .dvis .row .right { margin-left: auto; font-size: 11.5px; color: var(--muted-2); white-space: nowrap; }
.detail.flip .dvis { order: -1; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; position: relative;
  transition: transform .16s ease, border-color .16s ease;
}
.plan:hover { transform: translateY(-3px); }
.plan.featured {
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 30px 70px -34px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: linear-gradient(160deg, rgba(35, 70, 58, 0.55), rgba(18, 32, 27, 0.6));
}
.plan .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand-ink); background: linear-gradient(180deg, #a78bfa, #7c3aed);
  padding: 5px 14px; border-radius: 999px; box-shadow: 0 8px 20px -8px var(--brand-glow); white-space: nowrap;
}
.plan .pname { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-2); }
.plan .price { margin: 14px 0 4px; display: flex; align-items: baseline; gap: 4px; }
.plan .price .amt { font-size: 44px; font-weight: 900; letter-spacing: -0.03em; }
.plan .price .per { color: var(--muted-2); font-size: 15px; font-weight: 500; }
.plan .ptag { color: var(--muted); font-size: 14px; min-height: 20px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.plan ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text); }
.plan ul li svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: var(--brand); }
.plan ul li.none { color: var(--muted-2); }
.plan ul li.none svg { color: var(--muted-2); }
.plan .plan-foot { margin-top: auto; }
.plan .btn { width: 100%; }
.pricing-note { text-align: center; color: var(--muted-2); font-size: 13.5px; margin-top: 28px; }

/* FAQ (kept ready for §2.2 /pricing FAQ) */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 15.5px; }
.faq details p { color: var(--muted); font-size: 14.5px; margin: 12px 0 0; }

/* Forms (contact) */
.form-card {
  max-width: 640px; margin: 0 auto; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label.f { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
input.f, textarea.f {
  width: 100%; font-family: inherit; font-size: 14.5px; color: var(--text);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 13px; outline: none; transition: border-color .14s ease;
}
input.f:focus, textarea.f:focus { border-color: rgba(139, 92, 246, 0.6); }
textarea.f { resize: vertical; min-height: 140px; }
.form-note { color: var(--muted-2); font-size: 13px; margin-top: 14px; }
.alert { border-radius: 12px; padding: 13px 16px; font-size: 14.5px; margin-bottom: 18px; }
.alert.err { background: rgba(248, 113, 113, 0.10); border: 1px solid rgba(248, 113, 113, 0.35); color: #fca5a5; }
.alert.ok { background: rgba(139, 92, 246, 0.10); border: 1px solid rgba(139, 92, 246, 0.35); color: #a78bfa; }
.contact-side { display: grid; gap: 14px; margin-top: 40px; }
.contact-side .row { display: flex; align-items: flex-start; gap: 12px; }
.contact-side .row .ic { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(139, 92, 246, 0.16); color: var(--brand-2); }
.contact-side .row .ic svg { width: 18px; height: 18px; }

/* Prose (legal pages) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 22px; font-weight: 800; margin: 40px 0 0; }
.prose p, .prose li { color: var(--muted); font-size: 15px; }
.prose p { margin: 14px 0 0; }
.prose ul { margin: 14px 0 0; padding-left: 22px; }
.prose .updated { color: var(--muted-2); font-size: 13px; }

/* Knowledgebase (§2.3) — search form, category index, article + sidebar. */
.kb-search-form { display: flex; gap: 10px; max-width: 560px; margin: 34px auto 0; }
.kb-search-form .f { flex: 1; }
.kb-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.kb-category {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px;
}
.kb-category h2 { font-size: 18px; font-weight: 800; }
.kb-category .kb-blurb { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.kb-article-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.kb-article-list li { display: flex; flex-direction: column; gap: 2px; }
.kb-article-list a { color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.kb-article-list a:hover { color: var(--brand-2); }
.kb-article-list .kb-desc { color: var(--muted-2); font-size: 13px; }
.kb-article-list li.kb-empty { color: var(--muted-2); font-size: 13.5px; font-style: italic; }

.kb-results-summary { color: var(--muted); font-size: 15px; text-align: center; margin: 0 0 28px; }
.kb-results-summary a { color: var(--brand-2); }
.kb-search-results { list-style: none; padding: 0; margin: 0; max-width: 720px; margin: 0 auto; display: grid; gap: 16px; }
.kb-search-results li {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px;
}
.kb-search-results a { color: var(--text); text-decoration: none; font-size: 16px; font-weight: 700; }
.kb-search-results a:hover { color: var(--brand-2); }
.kb-search-results .kb-snippet { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

.kb-layout { display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: start; }
.kb-sidebar { position: sticky; top: 88px; }
.kb-sidebar h4 { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 14px; }
.kb-sidebar ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.kb-sidebar a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; padding: 7px 10px; border-radius: 9px; }
.kb-sidebar a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.kb-sidebar a.active { color: var(--brand-2); background: rgba(139, 92, 246, 0.10); font-weight: 600; }
.kb-sidebar-all { display: inline-block; margin-top: 18px; color: var(--muted-2); text-decoration: none; font-size: 13px; }
.kb-sidebar-all:hover { color: var(--text); }

.kb-updated { color: var(--muted-2); font-size: 13px; margin: 0 0 24px; }

/* Rendered-markdown scope — headings, lists, code, tables, blockquote callouts. */
.kb-article { max-width: 720px; }
.kb-article h1 { font-size: 26px; }
.kb-article h2 { font-size: 21px; font-weight: 800; margin: 36px 0 0; }
.kb-article h3 { font-size: 17px; font-weight: 700; margin: 28px 0 0; }
.kb-article p, .kb-article li { color: var(--muted); font-size: 15px; line-height: 1.7; }
.kb-article p { margin: 14px 0 0; }
.kb-article ul, .kb-article ol { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.kb-article a { color: var(--brand-2); }
.kb-article strong { color: var(--text); }
.kb-article code {
  background: rgba(255,255,255,0.07); border: 1px solid var(--border); border-radius: 5px;
  padding: 2px 6px; font-size: 13px; font-family: "SF Mono", Menlo, Consolas, monospace; color: var(--brand-2);
}
.kb-article pre {
  background: rgba(0,0,0,0.28); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; overflow-x: auto; margin: 18px 0 0;
}
.kb-article pre code { background: none; border: none; padding: 0; color: var(--text); }
.kb-article table { width: 100%; border-collapse: collapse; margin: 18px 0 0; font-size: 14px; }
.kb-article th, .kb-article td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.kb-article th { color: var(--muted-2); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.kb-article td { color: var(--text); }
.kb-article blockquote {
  margin: 18px 0 0; padding: 14px 18px; border-left: 3px solid var(--brand);
  background: rgba(139, 92, 246, 0.06); border-radius: 0 10px 10px 0;
}
.kb-article blockquote p { color: var(--text); margin: 0; font-size: 14.5px; }

.kb-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.kb-pager-link { display: flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 600; max-width: 45%; }
.kb-pager-link span { color: var(--muted-2); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.kb-pager-link.next { text-align: right; margin-left: auto; }
.kb-pager-link:hover { color: var(--brand-2); }

/* CTA band */
.cta-band {
  text-align: center; border: 1px solid var(--border); border-radius: 24px;
  background:
    radial-gradient(700px 240px at 50% -30%, rgba(139, 92, 246, 0.20), transparent 70%),
    var(--panel-2);
  padding: 56px 28px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.cta-band p { color: var(--muted); font-size: 17px; margin: 14px auto 0; max-width: 52ch; }
.cta-band .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 44px 0 40px; margin-top: 40px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .14s ease; }
.foot-links a:hover { color: var(--text); }
.foot-copy { color: var(--muted-2); font-size: 13px; }

@media (max-width: 920px) {
  .features-grid, .steps, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .hv-grid { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; gap: 24px; }
  .detail.flip .dvis { order: 0; }
  .kb-categories { grid-template-columns: 1fr 1fr; }
  .kb-layout { grid-template-columns: 1fr; }
  .kb-sidebar { position: static; border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 8px; }
}
@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .features-grid, .steps, .pricing-grid, .hv-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .plan.featured { order: -1; }
  .hero { padding: 56px 0 48px; }
  .hero-visual { padding: 12px; }
  .kb-categories { grid-template-columns: 1fr; }
  .kb-search-form { flex-direction: column; }
  .kb-pager { flex-direction: column; gap: 12px; }
  .kb-pager-link.next { text-align: left; margin-left: 0; }

  /* Hamburger takes over: nav-links + nav-cta collapse into a dropdown panel
     under the header, toggled by assets/site.js (external, CSP-safe). */
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(11, 16, 32, 0.97); border: 1px solid var(--border); border-top: none;
    border-radius: 0 0 16px 16px; padding: 12px 20px 20px;
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6);
  }
  .nav-menu.open { display: flex; }
  .nav-menu .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-menu .nav-links a.link { padding: 12px 10px; }
  .nav-menu .nav-cta { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 10px; }
  .nav-menu .nav-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
