/* ============================================================
   Sage Voice — design system v2
   Inspiration: Stripe, Linear, Vercel — content-first, dense
   information, calm typography, restrained colour, dark-mode
   aware via prefers-color-scheme + .theme-dark toggle.
   ============================================================ */

:root {
  --bg: #fdfcfa;
  --bg-elevated: #ffffff;
  --bg-subtle: #f5f2eb;
  --bg-code: #f1ede4;
  --ink: #1b1a17;
  --ink-soft: #2c2a25;
  --muted: #5a564f;
  --muted-soft: #7d786f;
  --accent: #2f5d50;
  --accent-hover: #244b40;
  --accent-soft: #e7efeb;
  --accent-ink: #173027;
  --border: #d9d4ca;
  --border-strong: #bfb8a9;
  --warn: #b04a1c;
  --warn-soft: #fbece1;
  --ok: #1f6e3c;
  --ok-soft: #e0efe4;
  --shadow-sm: 0 1px 2px rgba(20, 18, 14, 0.04), 0 0 0 1px rgba(20, 18, 14, 0.04);
  --shadow-md: 0 4px 16px rgba(20, 18, 14, 0.06), 0 0 0 1px rgba(20, 18, 14, 0.04);
  --shadow-lg: 0 12px 32px rgba(20, 18, 14, 0.10), 0 0 0 1px rgba(20, 18, 14, 0.04);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --max-w: 1080px;
  --max-w-prose: 720px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --transition: 0.15s ease;
}

@media (prefers-color-scheme: dark) {
  :root:not(.theme-light) {
    --bg: #0f1411;
    --bg-elevated: #161c19;
    --bg-subtle: #1a211e;
    --bg-code: #1d2522;
    --ink: #ecebe6;
    --ink-soft: #d6d4cd;
    --muted: #98948c;
    --muted-soft: #6f6b63;
    --accent: #6ab39d;
    --accent-hover: #7fc2ad;
    --accent-soft: #1c2c27;
    --accent-ink: #c5e2d8;
    --border: #2a322e;
    --border-strong: #3a443e;
    --warn: #e08a4f;
    --warn-soft: #2a1c12;
    --ok: #6ab686;
    --ok-soft: #15241a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.03);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
  }
}

.theme-dark {
  --bg: #0f1411;
  --bg-elevated: #161c19;
  --bg-subtle: #1a211e;
  --bg-code: #1d2522;
  --ink: #ecebe6;
  --ink-soft: #d6d4cd;
  --muted: #98948c;
  --muted-soft: #6f6b63;
  --accent: #6ab39d;
  --accent-hover: #7fc2ad;
  --accent-soft: #1c2c27;
  --accent-ink: #c5e2d8;
  --border: #2a322e;
  --border-strong: #3a443e;
  --warn: #e08a4f;
  --warn-soft: #2a1c12;
  --ok: #6ab686;
  --ok-soft: #15241a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* ----- Nav ----- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.nav .logo {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav .logo .logo-mark {
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 6px;
  background: var(--accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: 800;
}

.nav-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--accent-hover); }

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--border-strong); }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: var(--bg-elevated); padding: 16px 24px; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: inline-flex; }
}
.nav-toggle { display: none; background: none; border: none; color: var(--ink); font-size: 22px; cursor: pointer; padding: 4px 8px; }

/* ----- Layout helpers ----- */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section, header.hero, footer.site-footer {
  padding-top: 72px;
  padding-bottom: 72px;
}

@media (max-width: 720px) {
  section, header.hero, footer.site-footer { padding-top: 48px; padding-bottom: 48px; }
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding: 4px 10px;
  background: var(--accent-soft);
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ----- Typography ----- */

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.15;
}
h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.025em; }
h3 { font-size: 19px; letter-spacing: -0.01em; }
h4 { font-size: 16px; letter-spacing: 0; }

p { margin: 0 0 14px; }
.lede { font-size: 19px; line-height: 1.5; color: var(--ink-soft); max-width: 640px; }
.muted { color: var(--muted); }
small, .small { font-size: 13px; color: var(--muted); }
.footnote { font-size: 13px; color: var(--muted); margin-top: 24px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code, kbd {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-code);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-ink);
  border: 1px solid var(--border);
}
pre {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-code);
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow-x: auto;
  color: var(--ink);
}
pre code { background: none; padding: 0; border: 0; }

/* ----- Hero ----- */

header.hero {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-subtle) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-inner.centered { grid-template-columns: 1fr; max-width: 820px; text-align: center; }
.hero-inner.centered .lede { margin-left: auto; margin-right: auto; }
.hero-inner.centered .cta-row { justify-content: center; }
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
}

.cta-row { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}
.cta.primary { background: var(--accent); color: white; box-shadow: var(--shadow-sm); }
.cta.primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }
.cta.secondary { background: var(--bg-elevated); color: var(--ink); border-color: var(--border-strong); }
.cta.secondary:hover { background: var(--bg-subtle); border-color: var(--accent); color: var(--accent); text-decoration: none; }
.cta.ghost { color: var(--accent); padding-left: 4px; padding-right: 4px; }
.cta.ghost:hover { color: var(--accent-hover); text-decoration: none; }

/* ----- Hero diagram (audit log mini-render) ----- */

.hero-diagram {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  position: relative;
  overflow: hidden;
}
.hero-diagram h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-diagram .dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--ok);
  border-radius: 999px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent);
}
.audit-row {
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}
.audit-row .seq { color: var(--muted); font-weight: 600; }
.audit-row .event { color: var(--ink); }
.audit-row .hash { color: var(--accent); font-size: 11px; }

/* ----- Sections ----- */

section { border-top: 1px solid var(--border); }
section:first-of-type { border-top: 0; }

.section-head {
  max-width: var(--max-w-prose);
  margin-bottom: 32px;
}
.section-head .eyebrow { margin-bottom: 12px; }

/* ----- Grids ----- */

.grid {
  display: grid;
  gap: 20px;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}
.card.linked { color: var(--ink); text-decoration: none; display: block; }
.card.linked:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.card h3 { margin: 0 0 8px; color: var(--ink); }
.card p { color: var(--muted); margin: 0; font-size: 14.5px; }
.card .card-icon {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
  margin-bottom: 12px;
}

/* ----- Tables ----- */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elevated); }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: var(--bg-subtle);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
tr:last-child td { border-bottom: 0; }

table.matrix th, table.matrix td { text-align: center; font-size: 13px; }
table.matrix th:first-child, table.matrix td:first-child { text-align: left; }
table.matrix .check { color: var(--ok); font-weight: 700; }
table.matrix .x     { color: var(--muted-soft); }
table.matrix .partial { color: var(--warn); }

/* ----- Gate list ----- */

.gate-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.gate-list li {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}
.gate-list .gate-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 2px 8px;
  margin-right: 8px;
  vertical-align: middle;
  font-weight: 700;
}
.gate-list strong { color: var(--ink); }
.gate-list .gate-cite {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 8px;
  font-family: var(--font-mono);
}

/* ----- Pricing ----- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.pricing-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.pricing-card .tier-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pricing-card .price {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  margin: 8px 0 4px;
  letter-spacing: -0.02em;
}
.pricing-card .price-unit { font-size: 14px; font-weight: 500; color: var(--muted); }
.pricing-card .price-setup { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.pricing-card ul { padding: 0; margin: 0 0 16px; list-style: none; font-size: 14px; flex: 1; }
.pricing-card ul li { padding: 6px 0; color: var(--ink-soft); border-bottom: 1px dashed var(--border); }
.pricing-card ul li:last-child { border-bottom: 0; }
.pricing-card .cta { margin-top: auto; justify-content: center; }
.pricing-card .badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background: var(--accent);
  color: white;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 8px;
}
.pricing-card .badge.warn { background: var(--warn); }

/* ----- Demo page ----- */

.demo-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  min-height: 600px;
}
@media (max-width: 880px) { .demo-layout { grid-template-columns: 1fr; } }

.chat-shell, .audit-shell {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.chat-header, .audit-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-subtle);
}
.chat-header h3, .audit-header h3 { font-size: 14px; margin: 0; }
.audit-header .audit-status { font-size: 12px; font-family: var(--font-mono); color: var(--ok); }

.chat-body {
  flex: 1;
  padding: 16px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 540px;
}
.audit-body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  max-height: 540px;
}

.msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14.5px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.msg.assistant { background: var(--bg-subtle); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--accent); color: white; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.system { font-size: 12px; color: var(--muted); align-self: center; font-style: italic; }

.audit-entry {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 6px;
}
.audit-entry .entry-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.audit-entry .entry-event { color: var(--accent); font-weight: 600; }
.audit-entry .entry-hash { color: var(--muted); font-size: 10.5px; word-break: break-all; }
.audit-entry .entry-payload {
  color: var(--ink-soft);
  font-size: 11.5px;
  background: var(--bg);
  padding: 6px;
  border-radius: 4px;
  margin-top: 4px;
  border: 1px solid var(--border);
  max-height: 80px;
  overflow: hidden;
}

.chat-input {
  border-top: 1px solid var(--border);
  padding: 12px 14px;
  display: flex;
  gap: 8px;
  background: var(--bg-elevated);
}
.chat-input textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  min-height: 40px;
  max-height: 120px;
  transition: border var(--transition);
}
.chat-input textarea:focus { border-color: var(--accent); }
.chat-input button {
  background: var(--accent);
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: background var(--transition);
}
.chat-input button:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-input button:hover:not(:disabled) { background: var(--accent-hover); }

.demo-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.demo-controls label { font-size: 13px; color: var(--muted); }
.demo-controls select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
}
.demo-controls .info-chip {
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}
.demo-controls .info-chip.ok { background: var(--ok-soft); color: var(--ok); }

/* ----- Compliance matrix table ----- */

.compliance-matrix {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

/* ----- Trust signals ----- */

.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.trust-row .trust-item {
  text-align: left;
  padding: 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.trust-row .trust-item .trust-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  display: block;
  letter-spacing: -0.02em;
}
.trust-row .trust-item .trust-label { font-size: 12.5px; color: var(--muted); }

/* ----- Status indicators ----- */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}
.status-pill::before {
  content: "";
  width: 6px; height: 6px;
  background: currentColor;
  border-radius: 999px;
}
.status-pill.ok { background: var(--ok-soft); color: var(--ok); }
.status-pill.warn { background: var(--warn-soft); color: var(--warn); }
.status-pill.neutral { background: var(--bg-subtle); color: var(--muted); border-color: var(--border); }

/* ----- Kill-shot callout ----- */

.killshot {
  background: var(--warn-soft);
  border: 1px solid var(--warn);
  border-left: 4px solid var(--warn);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0;
}
.killshot .killshot-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warn);
  margin-bottom: 8px;
}
.killshot h3, .killshot h4 { margin: 0 0 8px 0; color: var(--ink); font-size: 17px; }
.killshot p { margin: 0 0 8px 0; color: var(--ink); font-size: 15px; line-height: 1.55; }
.killshot p:last-child { margin-bottom: 0; }
.killshot ul { margin: 8px 0 0 0; padding-left: 22px; }
.killshot li { font-size: 14px; line-height: 1.5; color: var(--ink); }

/* ----- Footer ----- */

footer.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; } }
.footer-col h4 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 12px; }
.footer-col ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 8px; }
.footer-col a { color: var(--ink-soft); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}

/* ----- Auth / dashboard ----- */

.form-card {
  max-width: 440px;
  margin: 80px auto;
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-card h1 { font-size: 24px; }
.form-card label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
  margin-bottom: 14px;
}
.form-card input:focus, .form-card select:focus { outline: none; border-color: var(--accent); }
.form-card .cta { width: 100%; justify-content: center; }
.form-card .form-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 14px; }

.dashboard-shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 56px); }
.dashboard-side { background: var(--bg-subtle); border-right: 1px solid var(--border); padding: 24px 18px; }
.dashboard-side h4 { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 12px; }
.dashboard-side a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink-soft); text-decoration: none; font-size: 14px; margin-bottom: 4px; }
.dashboard-side a.active, .dashboard-side a:hover { background: var(--accent-soft); color: var(--accent); }
.dashboard-main { padding: 32px; overflow-x: auto; }
@media (max-width: 720px) { .dashboard-shell { grid-template-columns: 1fr; } .dashboard-side { border-right: 0; border-bottom: 1px solid var(--border); } }

/* ----- Misc utilities ----- */

.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

::selection { background: var(--accent-soft); color: var(--accent-ink); }
