/* VectorBox — one stylesheet for the sales site and the dashboard. */

:root {
  --ink: #0b0f19;
  --ink-2: #1b2130;
  --ink-3: #2a3245;
  --text: #1b2130;
  --muted: #5b6475;
  --faint: #8a93a6;
  --line: #e3e6ee;
  --line-strong: #cfd4df;
  --paper: #ffffff;
  --wash: #f5f6fa;
  --accent: #4655ff;
  --accent-ink: #2d39d6;
  --accent-wash: #eef0ff;
  --good: #15803d;
  --good-wash: #e9f7ee;
  --warn: #b45309;
  --warn-wash: #fdf3e3;
  --bad: #c62828;
  --bad-wash: #fdecec;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(11, 15, 25, .06), 0 4px 16px rgba(11, 15, 25, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { font: 600 .78rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── Buttons & forms ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .95rem/1 var(--font); padding: 12px 20px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-wash); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.3); background: transparent; }
.btn-outline-light:hover { border-color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-xs { padding: 5px 10px; font-size: .78rem; }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-link { background: none; border: 0; padding: 0; color: var(--accent-ink); font: inherit; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }

label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
input[type=text], input[type=email], input[type=password], input[type=url], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
textarea.code { font-family: var(--mono); font-size: .85rem; min-height: 200px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; margin-bottom: 8px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; color: var(--ink); padding: 0; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: .92rem; border: 1px solid; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-error { background: var(--bad-wash); border-color: #f5c2c2; color: #8f1d1d; }
.alert-info { background: var(--accent-wash); border-color: #d6dbff; color: #26309e; }
.alert-warn { background: var(--warn-wash); border-color: #f2d7a8; color: #7c3a06; }
.alert-good { background: var(--good-wash); border-color: #bfe5cb; color: #14532d; }

/* ── Public header / footer ──────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(11, 15, 25, .92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font: 600 1.2rem/1 var(--display); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: rgba(255,255,255,.75); font-size: .93rem; font-weight: 500; }
.site-nav a:hover, .site-nav a.on { color: #fff; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }

.site-footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 56px 0 40px; font-size: .9rem; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font); margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.7); display: block; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; margin-top: 16px; font-size: .82rem; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--ink);
  padding: 96px 0 104px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.hero::after {
  content: ""; position: absolute; width: 720px; height: 720px; right: -200px; top: -260px; pointer-events: none;
  background: radial-gradient(circle, rgba(70, 85, 255, .35), transparent 65%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; max-width: 13ch; }
.hero .lede { font-size: 1.2rem; color: rgba(255,255,255,.72); max-width: 34rem; margin-bottom: 32px; }
.hero .eyebrow { color: #9aa3ff; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-sm { padding: 72px 0 80px; }
.hero-sm .wrap { grid-template-columns: 1fr; }
.hero-sm h1 { max-width: 18ch; }

/* Example agent feed shown in the hero */
.feed {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.35); backdrop-filter: blur(6px);
}
.feed-head { display: flex; align-items: center; justify-content: space-between; font-size: .78rem; color: rgba(255,255,255,.55); padding: 0 4px 12px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 12px; }
.feed-head .live { display: inline-flex; align-items: center; gap: 6px; }
.feed-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.15); }
.feed-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px; border-radius: 10px; background: rgba(255,255,255,.035); margin-bottom: 8px; }
.feed-item:last-child { margin-bottom: 0; }
.feed-item .tag { font: 600 .68rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; border-radius: 6px; height: fit-content; }
.feed-item .t { font-size: .9rem; color: #fff; font-weight: 500; line-height: 1.35; }
.feed-item .s { font-size: .8rem; color: rgba(255,255,255,.55); margin-top: 3px; line-height: 1.4; }
.tag-ads { background: rgba(70,85,255,.25); color: #b9c0ff; }
.tag-seo { background: rgba(74,222,128,.18); color: #9be7b5; }
.tag-mail { background: rgba(251,191,36,.18); color: #fcd889; }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-wash { background: var(--wash); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tool-card:hover { text-decoration: none; border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.tool-card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; background: var(--accent-wash); color: var(--accent); }
.tool-card .icon svg { width: 22px; height: 22px; }
.tool-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.tool-card .more { font-weight: 600; font-size: .9rem; color: var(--accent-ink); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0;
  font: 600 .85rem/1 var(--mono); color: var(--accent); padding: 8px 10px; border: 1px solid #d6dbff; border-radius: 8px; background: var(--accent-wash);
}
.step p { color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feature { background: #fff; padding: 28px 30px; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.portal-shot { background: var(--ink); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.portal-shot .bar { display: flex; gap: 6px; margin-bottom: 16px; }
.portal-shot .bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.portal-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.portal-tiles div { background: rgba(255,255,255,.05); border-radius: 8px; padding: 12px; }
.portal-tiles b { display: block; color: #fff; font: 600 1.05rem/1.2 var(--display); }
.portal-tiles i { font-style: normal; font-size: .72rem; color: rgba(255,255,255,.5); }
.portal-rows div { height: 30px; border-radius: 6px; background: rgba(255,255,255,.04); margin-bottom: 6px; }
.portal-rows div:nth-child(1) { width: 92%; } .portal-rows div:nth-child(2) { width: 78%; } .portal-rows div:nth-child(3) { width: 85%; }

.checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--text); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234655ff'%3E%3Cpath d='M8.1 13.3 4.8 10l-1.1 1.1 4.4 4.4 9-9-1.1-1.1z'/%3E%3C/svg%3E") center/12px no-repeat; }

.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -120px; bottom: -220px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(70,85,255,.4), transparent 65%); }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { color: rgba(255,255,255,.7); margin: 0; }
.cta-band > * { position: relative; z-index: 1; }

.prose { max-width: 720px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose p, .prose li { color: var(--text); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }

/* ── Auth ────────────────────────────────────────────────────────────────── */
.auth-page { min-height: 100vh; display: grid; place-items: center; background: var(--wash); padding: 32px 16px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .brand { color: var(--ink); justify-content: center; margin-bottom: 28px; }
.auth-card h1 { font-size: 1.6rem; text-align: center; }
.auth-card .card { padding: 32px; }
.auth-card .btn { width: 100%; }
.auth-foot { text-align: center; margin-top: 18px; font-size: .88rem; color: var(--muted); }

/* ── App shell ───────────────────────────────────────────────────────────── */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: var(--wash); }
.sidebar { background: var(--ink); color: rgba(255,255,255,.7); padding: 22px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { padding: 0 10px 24px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav .label { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); padding: 18px 10px 6px; }
.side-nav a { color: rgba(255,255,255,.72); padding: 9px 10px; border-radius: 8px; font-size: .92rem; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.side-nav a.on { background: rgba(70,85,255,.22); color: #fff; }
.side-nav svg { width: 17px; height: 17px; opacity: .8; }
.side-user { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding: 16px 10px 0; font-size: .85rem; }
.side-user .who { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .role { color: rgba(255,255,255,.45); font-size: .78rem; margin-bottom: 10px; }
.side-user .btn-link { color: rgba(255,255,255,.7); font-size: .85rem; }

.main { padding: 32px 40px 64px; min-width: 0; }
.mobile-bar { display: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.75rem; margin: 0; }
.page-head .sub { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 600; font-size: .92rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { font-size: 1.02rem; margin: 0; font-family: var(--font); font-weight: 650; letter-spacing: -.005em; }
.panel-body { padding: 20px; }
.panel-empty { padding: 28px 20px; color: var(--muted); font-size: .92rem; text-align: center; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.tile .k { font-size: .8rem; color: var(--muted); font-weight: 500; }
.tile .v { font: 600 1.7rem/1.2 var(--display); color: var(--ink); margin-top: 6px; letter-spacing: -.02em; }
.tile .v.bad { color: var(--bad); }

.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.client-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--text); display: block; transition: border-color .15s, box-shadow .15s; }
.client-card:hover { text-decoration: none; border-color: var(--line-strong); box-shadow: var(--shadow); }
.client-card h3 { margin-bottom: 2px; }
.client-card .site { font-size: .85rem; color: var(--muted); margin-bottom: 14px; min-height: 1.3em; }
.client-card .stats { display: flex; gap: 18px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.client-card .stats b { color: var(--ink); font-weight: 600; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-weight: 600; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--line); background: #fbfbfd; white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .sub { color: var(--muted); font-size: .82rem; }
.clip { max-width: 520px; }

.badge { display: inline-flex; align-items: center; gap: 5px; font: 600 .72rem/1 var(--font); padding: 5px 8px; border-radius: 999px; background: var(--wash); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; text-transform: capitalize; }
.badge-critical, .badge-failed, .badge-bad { background: var(--bad-wash); color: var(--bad); border-color: #f5c2c2; }
.badge-high, .badge-warn, .badge-pending, .badge-running { background: var(--warn-wash); color: var(--warn); border-color: #f2d7a8; }
.badge-medium, .badge-info { background: var(--accent-wash); color: var(--accent-ink); border-color: #d6dbff; }
.badge-low, .badge-completed, .badge-good, .badge-success { background: var(--good-wash); color: var(--good); border-color: #bfe5cb; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--faint); }
.dot-good { background: #22c55e; } .dot-bad { background: var(--bad); }

.run-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.run-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.run-card h3 { font-size: .95rem; margin: 0; font-family: var(--font); }
.run-card p { font-size: .84rem; color: var(--muted); margin: 0; flex: 1; }
.run-card .run-status { font-size: .8rem; color: var(--muted); min-height: 1.2em; }

.digest { white-space: pre-wrap; font-size: .92rem; background: var(--wash); border-radius: 8px; padding: 14px 16px; margin: 0; }
.inline-form { display: inline; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.copy-box { display: flex; gap: 8px; }
.copy-box input { font-family: var(--mono); font-size: .82rem; }
.form-narrow { max-width: 640px; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.soon { text-align: center; padding: 56px 24px; }
.soon .icon { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 18px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent); }
.soon .icon svg { width: 26px; height: 26px; }
.soon ul { text-align: left; max-width: 460px; margin: 20px auto 0; color: var(--muted); }

.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.error-page .code { font: 600 .9rem/1 var(--mono); color: var(--accent); margin-bottom: 12px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero .wrap, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .tool-grid, .steps { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }

  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .app.nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(11,15,25,.4); }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; background: var(--ink); padding: 12px 16px; position: sticky; top: 0; z-index: 30; }
  .main { padding: 24px 16px 48px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav a { padding: 12px 0; }
  .site-nav .btn { margin-top: 8px; }
  .site-header.open .site-nav { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 64px 0 72px; }
  .section { padding: 64px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile .v { font-size: 1.35rem; }
  .card { padding: 22px; }
}

/* Inline icons inside tables */
td > svg { width: 20px; height: 20px; color: var(--accent); }
