/* ==========================================================================
   AURA CAPITAL — design system
   Obsidian / charcoal / silver / emerald. Restrained, editorial, institutional.
   ========================================================================== */

:root {
  /* palette */
  --obsidian: #090d16;
  --obsidian-deep: #060910;
  --charcoal: #111827;
  --charcoal-raised: #151d2b;
  --charcoal-soft: #0d1420;
  --silver: #374151;
  --silver-soft: #2a3441;
  --silver-bright: #4b5563;
  --text: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --emerald-dim: #059669;
  --emerald-wash: rgba(16, 185, 129, 0.08);
  --emerald-line: rgba(16, 185, 129, 0.28);
  --danger: #f05252;
  --danger-bright: #f87171;
  --danger-wash: rgba(240, 82, 82, 0.08);
  --danger-line: rgba(240, 82, 82, 0.32);
  --amber: #d9a441;
  --amber-wash: rgba(217, 164, 65, 0.09);
  --amber-line: rgba(217, 164, 65, 0.3);
  --info: #60a5fa;
  --info-wash: rgba(96, 165, 250, 0.08);
  --info-line: rgba(96, 165, 250, 0.28);

  /* structure */
  --shell: 1240px;
  --shell-narrow: 820px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --hairline: 1px solid var(--silver-soft);

  /* type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1, "tnum" 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -0.033em; }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.3rem); letter-spacing: -0.028em; }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.3rem); letter-spacing: -0.018em; }
h4 { font-size: 1.02rem; letter-spacing: -0.012em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.18s var(--ease), opacity 0.18s var(--ease);
}
a:hover { color: var(--emerald-bright); }

ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: 0.4rem; }
li:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--text); }
small { font-size: 0.8125rem; }

hr {
  border: 0;
  border-top: var(--hairline);
  margin: 2.5rem 0;
}

::selection {
  background: rgba(16, 185, 129, 0.28);
  color: #fff;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--emerald);
  color: #04120c;
  padding: 0.75rem 1.25rem;
  z-index: 999;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- layout primitives ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.shell--narrow { max-width: var(--shell-narrow); }

.section { padding: 5.5rem 0; }
.section--tight { padding: 3.5rem 0; }
.section--flush-top { padding-top: 0; }

.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver), transparent);
  opacity: 0.55;
  border: 0;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--emerald);
  display: block;
}

.lede {
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 62ch;
  line-height: 1.68;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}
.section-head__title { max-width: 46ch; }
.section-head p { margin-top: 0.85rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease), transform 0.18s var(--ease);
  white-space: nowrap;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--emerald);
  color: #04140e;
  font-weight: 600;
}
.btn--primary:hover {
  background: var(--emerald-bright);
  color: #04140e;
}

.btn--secondary {
  background: transparent;
  border-color: var(--silver);
  color: var(--text);
}
.btn--secondary:hover {
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.55rem 0.85rem;
}
.btn--ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.btn--danger {
  background: transparent;
  border-color: var(--danger-line);
  color: var(--danger-bright);
}
.btn--danger:hover { background: var(--danger-wash); color: var(--danger-bright); }

.btn--sm { padding: 0.5rem 0.95rem; font-size: 0.8125rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.link-arrow::after {
  content: "→";
  transition: transform 0.18s var(--ease);
}
.link-arrow:hover { color: var(--emerald-bright); border-bottom-color: var(--emerald-line); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 22, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--silver-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  height: 70px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.wordmark__mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.wordmark__text {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}
.wordmark:hover .wordmark__text { color: var(--text); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  margin-left: 0.5rem;
}
.main-nav a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  letter-spacing: 0.005em;
  white-space: nowrap;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover { color: var(--text); }
.main-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--emerald);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.confidentiality-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--silver);
  border-radius: 999px;
  font-size: 0.6875rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.015);
}
.confidentiality-pill .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald-bright);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--silver);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--silver-soft);
  background: var(--charcoal-soft);
  padding: 0.75rem 0 1.25rem;
}
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(55, 65, 81, 0.35);
}
.mobile-nav a:last-of-type { border-bottom: 0; }
.mobile-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.mobile-nav .btn { margin: 1rem 1.5rem 0; width: calc(100% - 3rem); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--silver-soft);
  background: var(--charcoal-soft);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 34ch;
  line-height: 1.7;
  margin-top: 1.1rem;
}
.footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.footer-col a:hover { color: var(--emerald-bright); }

.footer-legal {
  border-top: 1px solid var(--silver-soft);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.footer-legal__disclosure { max-width: 72ch; }
.footer-legal__meta { text-align: right; min-width: 220px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  border-bottom: 1px solid var(--silver-soft);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(16, 185, 129, 0.09), transparent 62%),
    radial-gradient(700px 380px at 8% 8%, rgba(59, 130, 246, 0.045), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}
.hero__copy { max-width: 34ch; }
.hero h1 { margin-bottom: 1.6rem; }

/* The headline is a single unbroken text node (no inline emphasis span) so the
   required sentence stays verbatim. Emphasis comes from a restrained gradient
   applied to the whole line instead of a nested element. */
.hero__headline {
  background: linear-gradient(100deg, var(--text) 38%, var(--emerald) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--text);
  text-wrap: balance;
}
/* Fallback: if gradient text is unsupported, the solid colour above shows. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__headline { -webkit-text-fill-color: currentColor; }
}
.hero__support {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 0.9rem;
}
.hero__sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 54ch;
  margin-bottom: 2.25rem;
}
.hero__cta { margin-bottom: 1.5rem; }

/* dashboard preview */
.preview {
  position: relative;
  border: 1px solid var(--silver);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--charcoal-raised), var(--charcoal-soft));
  box-shadow: 0 32px 70px -28px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}
.preview__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--silver-soft);
  background: rgba(6, 9, 16, 0.5);
}
.preview__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--silver-bright);
}
.preview__dot--live { background: var(--emerald); }
.preview__label {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.preview__body { padding: 1.4rem; }
.preview__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(55, 65, 81, 0.42);
  gap: 1rem;
}
.preview__row:last-child { border-bottom: 0; padding-bottom: 0; }
.preview__key {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.preview__val {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.preview__val--emerald { color: var(--emerald-bright); }
.preview__tiers { margin-top: 1.15rem; display: grid; gap: 0.5rem; }
.preview__tier {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.6875rem;
  color: var(--text-muted);
}
.preview__track {
  height: 3px;
  border-radius: 2px;
  background: rgba(55, 65, 81, 0.75);
  overflow: hidden;
}
.preview__fill {
  height: 100%;
  border-radius: 2px;
  background: var(--emerald);
  opacity: 0.75;
}

/* ---------- metric ticker ---------- */

.ticker {
  border-bottom: 1px solid var(--silver-soft);
  background: var(--obsidian-deep);
}
.ticker__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.ticker__item {
  padding: 1.55rem 2rem;
  border-left: 1px solid var(--silver-soft);
}
.ticker__item:first-child { border-left: 0; padding-left: 0; }
.ticker__label {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.ticker__value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  letter-spacing: -0.01em;
}
.ticker__note {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  line-height: 1.5;
}

/* ---------- cards ---------- */

.card {
  background: var(--charcoal);
  border: 1px solid var(--silver-soft);
  border-radius: var(--radius);
  padding: 1.85rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.card--flush { padding: 0; overflow: hidden; }
.card--raised { background: var(--charcoal-raised); }
.card--interactive:hover {
  border-color: var(--silver);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
}
.card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--emerald-line);
  color: var(--emerald);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: 0.7rem; }
.card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.grid-sidebar {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 2.5rem;
  align-items: start;
}

/* ---------- badges / pills ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: 1px solid var(--silver);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  line-height: 1.5;
}
.badge--positive { color: var(--emerald-bright); border-color: var(--emerald-line); background: var(--emerald-wash); }
.badge--warn { color: var(--amber); border-color: var(--amber-line); background: var(--amber-wash); }
.badge--negative { color: var(--danger-bright); border-color: var(--danger-line); background: var(--danger-wash); }
.badge--info { color: var(--info); border-color: var(--info-line); background: var(--info-wash); }
.badge--neutral { color: var(--text-muted); }
.badge--demo {
  color: var(--amber);
  border-color: var(--amber-line);
  background: var(--amber-wash);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.625rem;
  font-weight: 600;
}

/* ---------- forms ---------- */

.field { margin-bottom: 1.35rem; }
.field--tight { margin-bottom: 0.9rem; }

.label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.45rem;
  letter-spacing: 0.005em;
}
.label .req { color: var(--emerald); margin-left: 2px; }
.label__hint {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.55;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--obsidian-deep);
  border: 1px solid var(--silver);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background 0.18s var(--ease);
  appearance: none;
  line-height: 1.5;
}
.input::placeholder,
.textarea::placeholder { color: var(--text-muted); }
.input:hover,
.select:hover,
.textarea:hover { border-color: var(--silver-bright); }
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.13);
  background: var(--charcoal-soft);
}
.textarea { min-height: 108px; resize: vertical; line-height: 1.65; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239CA3AF' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}
.select option { background: var(--charcoal); color: var(--text); }

.input--numeric {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.input-group { position: relative; display: flex; align-items: center; }
.input-group__prefix {
  position: absolute;
  left: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
  pointer-events: none;
}
.input-group .input { padding-left: 1.85rem; }
.input-group__suffix {
  position: absolute;
  right: 0.9rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  pointer-events: none;
}
.input-group .input--suffix { padding-right: 3.4rem; }

.input[aria-invalid="true"],
.textarea[aria-invalid="true"],
.select[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(240, 82, 82, 0.1);
}

.field-error {
  display: none;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--danger-bright);
  line-height: 1.5;
}
.field-error[data-visible="true"] { display: flex; }
.field-error::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 3px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.field-row--3 { grid-template-columns: repeat(3, 1fr); }

fieldset {
  border: 0;
  margin: 0 0 1.75rem;
  padding: 0;
}
legend {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0;
  margin-bottom: 1.1rem;
  width: 100%;
  border-bottom: 1px solid var(--silver-soft);
  padding-bottom: 0.65rem;
}

/* checkbox */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.65;
  padding: 0.85rem 0;
}
.checkbox input[type="checkbox"] {
  appearance: none;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex-shrink: 0;
  border: 1px solid var(--silver-bright);
  border-radius: 3px;
  background: var(--obsidian-deep);
  cursor: pointer;
  position: relative;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.checkbox input[type="checkbox"]:hover { border-color: var(--text-secondary); }
.checkbox input[type="checkbox"]:checked {
  background: var(--emerald);
  border-color: var(--emerald);
}
.checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 4px;
  height: 9px;
  border: solid #04140e;
  border-width: 0 2px 2px 0;
  transform: rotate(43deg);
}
.checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
}
.checkbox--boxed {
  border: 1px solid var(--silver);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.015);
}
.checkbox--boxed:has(input:checked) {
  border-color: var(--emerald-line);
  background: var(--emerald-wash);
}
.checkbox strong { color: var(--text); }

/* ---------- alerts ---------- */

.alert {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--silver);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.alert__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
}
.alert strong { display: block; margin-bottom: 0.25rem; color: var(--text); font-weight: 600; }
.alert--danger {
  border-color: var(--danger-line);
  background: var(--danger-wash);
  color: #fca5a5;
}
.alert--danger strong { color: var(--danger-bright); }
.alert--positive {
  border-color: var(--emerald-line);
  background: var(--emerald-wash);
  color: #a7f3d0;
}
.alert--positive strong { color: var(--emerald-bright); }
.alert--warn {
  border-color: var(--amber-line);
  background: var(--amber-wash);
  color: #fcd9a0;
}
.alert--warn strong { color: var(--amber); }
.alert--info {
  border-color: var(--info-line);
  background: var(--info-wash);
  color: #bfdbfe;
}
.alert--info strong { color: var(--info); }

/* ---------- calculator ---------- */

.calc-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 1.5rem;
  align-items: start;
}
.calc-card { padding: 2rem; }
.calc-card__head { margin-bottom: 1.75rem; }
.calc-card h2, .calc-card h3 { margin-bottom: 0.5rem; }
.calc-card__sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.price-input {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 1rem 1rem 1rem 2.4rem;
  height: auto;
  font-variant-numeric: tabular-nums;
}
.input-group--xl .input-group__prefix {
  font-size: 1.5rem;
  left: 1rem;
  color: var(--text-secondary);
}

.quick-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.quick-price {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--silver);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  cursor: pointer;
  transition: all 0.16s var(--ease);
}
.quick-price:hover {
  border-color: var(--emerald-line);
  color: var(--emerald-bright);
  background: var(--emerald-wash);
}

.outputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.output {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--silver-soft);
  border-radius: var(--radius-sm);
  background: var(--obsidian-deep);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  min-width: 0;
}
.output--wide { grid-column: 1 / -1; }
.output--accent {
  border-color: var(--emerald-line);
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.07), rgba(16, 185, 129, 0.02));
}
.output__label {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.output__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 1.9vw, 1.4rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text);
  word-break: break-word;
}
.output--accent .output__value { color: var(--emerald-bright); }
.output__meta {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.5;
}
.output--muted .output__value { color: var(--text-muted); font-size: 0.9375rem; }

.tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  margin-top: 0.35rem;
}
.tier-table th {
  text-align: left;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 0 0.6rem;
  border-bottom: 1px solid var(--silver-soft);
}
.tier-table th:not(:first-child),
.tier-table td:not(:first-child) { text-align: right; }
.tier-table td {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(55, 65, 81, 0.34);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.tier-table tr:last-child td { border-bottom: 0; }
.tier-table td:first-child { color: var(--text); }
.tier-table td.num { font-family: var(--font-mono); font-size: 0.78125rem; }
.tier-table tr[data-inactive="true"] td { color: var(--text-muted); opacity: 0.45; }
.tier-table tfoot td {
  padding-top: 0.75rem;
  border-top: 1px solid var(--silver);
  border-bottom: 0;
  color: var(--text);
  font-weight: 600;
}
.tier-table tfoot td.num { color: var(--emerald-bright); }

.tier-bar {
  height: 5px;
  border-radius: 3px;
  background: rgba(55, 65, 81, 0.5);
  overflow: hidden;
  display: flex;
  margin-bottom: 1.4rem;
}
.tier-bar__seg { height: 100%; transition: width 0.3s var(--ease); }

.disclaimer {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--silver-soft);
}

/* ---------- data tables ---------- */

.table-wrap {
  border: 1px solid var(--silver-soft);
  border-radius: var(--radius);
  overflow-x: auto;
  background: var(--charcoal);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  min-width: 640px;
}
.data-table thead th {
  text-align: left;
  padding: 0.8rem 1.1rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(6, 9, 16, 0.55);
  border-bottom: 1px solid var(--silver-soft);
  white-space: nowrap;
}
.data-table tbody td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(55, 65, 81, 0.34);
  color: var(--text-secondary);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.018); }
.data-table td strong { color: var(--text); font-weight: 500; }
.data-table .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.data-table__empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ---------- listing cards ---------- */

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.15rem;
}
.listing-card {
  display: flex;
  flex-direction: column;
  background: var(--charcoal);
  border: 1px solid var(--silver-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.listing-card:hover {
  border-color: var(--silver);
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -28px rgba(0, 0, 0, 0.95);
}
.listing-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--silver-soft);
  background: rgba(6, 9, 16, 0.4);
}
.listing-card__code {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}
.listing-card__body { padding: 1.15rem; flex: 1; }
.listing-card__niche {
  font-size: 0.625rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.listing-card h3 {
  font-size: 0.97rem;
  line-height: 1.4;
  margin-bottom: 0.55rem;
  letter-spacing: -0.012em;
}
.listing-card__summary {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(55, 65, 81, 0.4);
}
.listing-card__metric span {
  display: block;
  font-size: 0.5625rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.listing-card__metric strong {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.listing-card__foot {
  padding: 0.8rem 1.15rem;
  border-top: 1px solid var(--silver-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(6, 9, 16, 0.3);
}
.listing-card__foot .link-arrow { font-size: 0.75rem; }

.locked-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  color: var(--text-muted);
}
.locked-note svg { width: 11px; height: 11px; flex-shrink: 0; }

/* ---------- filter bar ---------- */

.filter-bar {
  border: 1px solid var(--silver-soft);
  border-radius: var(--radius);
  background: var(--charcoal);
  padding: 1.15rem;
  margin-bottom: 1.75rem;
}
.filter-bar__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.filter-bar__row:last-child { margin-bottom: 0; }
.filter-bar__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  border-top: 1px solid var(--silver-soft);
}
.filter-bar__count { font-size: 0.75rem; color: var(--text-muted); }
.search-wrap { position: relative; }
.search-wrap svg {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-wrap .input { padding-left: 2.2rem; }

/* ---------- detail / sidebar ---------- */

.detail-head {
  border-bottom: 1px solid var(--silver-soft);
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
}
.detail-head__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.detail-head h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 0.85rem; }
.detail-head p { color: var(--text-secondary); font-size: 0.9375rem; max-width: 68ch; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--silver-soft);
  border: 1px solid var(--silver-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.75rem;
}
.stat {
  background: var(--charcoal);
  padding: 1.05rem 1.15rem;
}
.stat__label {
  display: block;
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  letter-spacing: -0.015em;
}
.stat__value--accent { color: var(--emerald-bright); }

.sidebar-card {
  border: 1px solid var(--silver-soft);
  border-radius: var(--radius);
  background: var(--charcoal);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}
.sidebar-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.sidebar-card p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.65; }
.sidebar-card .btn { margin-top: 1.1rem; }
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  border-top: 1px solid var(--silver-soft);
  padding-top: 1.1rem;
}
.sidebar-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  padding: 0.4rem 0;
  color: var(--text-muted);
  margin: 0;
}
.sidebar-list li span:last-child { color: var(--text-secondary); text-align: right; }

/* ---------- deal room ---------- */

.deal-shell {
  border: 1px solid var(--silver);
  border-radius: var(--radius-lg);
  background: var(--charcoal-soft);
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9);
}
.deal-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--silver-soft);
  background: var(--obsidian-deep);
  flex-wrap: wrap;
}
.deal-head__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.deal-head__status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: var(--text-muted);
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.stage-track {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--silver-soft);
  overflow-x: auto;
  background: rgba(6, 9, 16, 0.35);
  scrollbar-width: thin;
}
.stage {
  flex: 1;
  min-width: 106px;
  padding: 0.7rem 0.85rem;
  border-right: 1px solid var(--silver-soft);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  position: relative;
}
.stage:last-child { border-right: 0; }
.stage[data-done="true"] { color: var(--emerald); }
.stage[data-done="true"]::before { content: "✓"; font-size: 0.7rem; }
.stage[data-current="true"] {
  color: var(--text);
  background: rgba(16, 185, 129, 0.07);
  box-shadow: inset 0 -2px 0 var(--emerald);
}

.terminal {
  height: 400px;
  overflow-y: auto;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.008) 2px,
      rgba(255, 255, 255, 0.008) 4px
    ),
    var(--obsidian-deep);
  scrollbar-width: thin;
  scrollbar-color: var(--silver) transparent;
}
.msg { display: flex; flex-direction: column; gap: 0.3rem; max-width: 88%; }
.msg__meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.msg__author { color: var(--text-secondary); font-weight: 600; }
.msg__body {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--silver-soft);
  background: var(--charcoal);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.68;
  word-break: break-word;
}
.msg--self { align-self: flex-end; align-items: flex-end; }
.msg--self .msg__body {
  background: rgba(16, 185, 129, 0.07);
  border-color: var(--emerald-line);
  color: #d1fae5;
}
.msg--system { align-self: center; max-width: 92%; align-items: center; text-align: center; }
.msg--system .msg__body {
  background: var(--amber-wash);
  border-color: var(--amber-line);
  color: #fcd9a0;
  font-size: 0.75rem;
}
.msg--system .msg__meta { justify-content: center; }
.msg[data-demo="true"] .msg__body { border-style: dashed; }

.deal-compose {
  border-top: 1px solid var(--silver-soft);
  padding: 1rem 1.25rem;
  background: var(--obsidian-deep);
}
.deal-compose__row { display: flex; gap: 0.75rem; align-items: flex-end; }
.deal-compose .textarea {
  min-height: 62px;
  background: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  resize: none;
}
.deal-compose__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}
.deal-compose__hint { font-size: 0.6875rem; color: var(--text-muted); line-height: 1.5; }

.security-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--silver-soft);
  border: 1px solid var(--silver-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 1.25rem;
}
.security-item { background: var(--charcoal); padding: 0.85rem 1rem; }
.security-item__label {
  display: block;
  font-size: 0.5625rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.security-item__value { font-size: 0.75rem; display: flex; align-items: center; gap: 0.4rem; }
.security-item__value--ok { color: var(--emerald); }
.security-item__value--off { color: var(--text-muted); }
.security-item__value--warn { color: var(--amber); }

/* ---------- steps / process ---------- */

.steps { display: grid; gap: 0; border-top: 1px solid var(--silver-soft); }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--silver-soft);
  align-items: start;
}
.step__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--emerald);
  padding-top: 0.25rem;
  letter-spacing: 0.05em;
}
.step h3 { margin-bottom: 0.55rem; }
.step p { font-size: 0.875rem; color: var(--text-secondary); max-width: 72ch; line-height: 1.72; }
.step__note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--silver);
  line-height: 1.65;
}

/* ---------- tabs ---------- */

.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--silver-soft);
  margin-bottom: 1.75rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 0.7rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  cursor: pointer;
  font-family: inherit;
}
.tab:hover { color: var(--text-secondary); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--emerald); }

/* ---------- prose / legal ---------- */

.prose { max-width: 76ch; }
.prose h2 {
  font-size: 1.3rem;
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--silver-soft);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.5rem; }
.prose h3 { font-size: 1rem; margin: 1.75rem 0 0.7rem; color: var(--text); }
.prose p, .prose li { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.78; }
.prose ul, .prose ol { margin-bottom: 1.15rem; }
.prose li { margin-bottom: 0.55rem; }
.prose strong { color: var(--text); }
.prose a { color: var(--emerald-bright); border-bottom: 1px solid var(--emerald-line); }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--charcoal);
  border: 1px solid var(--silver-soft);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  color: var(--text);
}
.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.9rem 1.15rem;
  border-left: 2px solid var(--emerald);
  background: var(--charcoal);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ---------- compare ---------- */

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.15rem;
}
.compare-card { display: flex; flex-direction: column; height: 100%; }
.compare-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.compare-card h3 { font-size: 1rem; }
.compare-card__cat {
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.compare-card__fee {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--emerald-bright);
  margin-bottom: 0.85rem;
}
.compare-card p { flex: 1; margin-bottom: 1.1rem; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  border: 1px solid var(--silver-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--silver-soft);
  border-right: 1px solid var(--silver-soft);
  vertical-align: top;
  text-align: left;
  line-height: 1.6;
}
.compare-table th:last-child,
.compare-table td:last-child { border-right: 0; }
.compare-table tr:last-child th,
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table thead th {
  background: var(--obsidian-deep);
  font-size: 0.625rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}
.compare-table thead th:nth-child(2) {
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.05);
}
.compare-table tbody th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.75rem;
  background: rgba(6, 9, 16, 0.35);
  width: 22%;
}
.compare-table td { color: var(--text-secondary); }
.compare-table td:nth-child(2) {
  color: var(--text);
  background: rgba(16, 185, 129, 0.035);
}

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; margin: 1.5rem 0; }
.pros-cons__col {
  border: 1px solid var(--silver-soft);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  background: var(--charcoal);
}
.pros-cons__col h4 {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  color: var(--text-muted);
}
.pros-cons__col--pro h4 { color: var(--emerald); }
.pros-cons__col--con h4 { color: var(--amber); }
.pros-cons ul { list-style: none; padding: 0; margin: 0; }
.pros-cons li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding-left: 1.05rem;
  position: relative;
  line-height: 1.65;
  margin-bottom: 0.55rem;
}
.pros-cons li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.75rem;
}
.pros-cons__col--pro li::before { content: "+"; color: var(--emerald); }
.pros-cons__col--con li::before { content: "−"; color: var(--amber); }

/* ---------- breadcrumbs & faq ---------- */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--emerald-bright); }
.breadcrumbs__sep { color: var(--silver); }
.breadcrumbs [aria-current="page"] { color: var(--text-secondary); }

.faq { border-top: 1px solid var(--silver-soft); }
.faq__item { border-bottom: 1px solid var(--silver-soft); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 0;
  background: none;
  border: 0;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: color 0.16s var(--ease);
}
.faq__q:hover { color: var(--emerald-bright); }
.faq__q::after {
  content: "+";
  font-size: 1.15rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
  line-height: 1;
}
.faq__q[aria-expanded="true"]::after { content: "−"; color: var(--emerald); }
.faq__a {
  display: none;
  padding: 0 2.5rem 1.3rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.faq__a[data-open="true"] { display: block; }
.faq__a p { margin-bottom: 0.75rem; }
.faq__a p:last-child { margin-bottom: 0; }

/* ---------- upload ---------- */

.dropzone {
  border: 1px dashed var(--silver);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem;
  text-align: center;
  background: rgba(6, 9, 16, 0.4);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.dropzone:hover,
.dropzone[data-dragover="true"] {
  border-color: var(--emerald);
  background: var(--emerald-wash);
}
.dropzone__icon {
  width: 26px;
  height: 26px;
  margin: 0 auto 0.85rem;
  color: var(--text-muted);
}
.dropzone__title { font-size: 0.875rem; color: var(--text); margin-bottom: 0.35rem; }
.dropzone__hint { font-size: 0.75rem; color: var(--text-muted); line-height: 1.6; }
.dropzone input[type="file"] { display: none; }

.file-list { list-style: none; padding: 0; margin: 0.9rem 0 0; }
.file-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--silver-soft);
  border-radius: var(--radius-sm);
  background: var(--charcoal);
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
}
.file-item__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}
.file-item__size {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.file-item__remove {
  background: none;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  font-size: 1rem;
  line-height: 1;
}
.file-item__remove:hover { color: var(--danger-bright); }

/* ---------- misc ---------- */

.kv { display: grid; gap: 0.6rem; }
.kv__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(55, 65, 81, 0.34);
}
.kv__row:last-child { border-bottom: 0; padding-bottom: 0; }
.kv__k { color: var(--text-muted); }
.kv__v { color: var(--text); text-align: right; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-emerald { color: var(--emerald-bright); }
.text-danger { color: var(--danger-bright); }
.text-sm { font-size: 0.8125rem; }
.text-xs { font-size: 0.75rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-head {
  padding: 3.25rem 0 2.5rem;
  border-bottom: 1px solid var(--silver-soft);
}
.page-head h1 { margin-bottom: 1rem; }
.page-head .lede { max-width: 68ch; }

.callout-band {
  border: 1px solid var(--emerald-line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.07), rgba(16, 185, 129, 0.015));
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.callout-band h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-bottom: 0.6rem; }
.callout-band p { color: var(--text-secondary); font-size: 0.9rem; max-width: 56ch; }

.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.status-card {
  border: 1px solid var(--silver-soft);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  background: var(--charcoal);
}
.status-card__label {
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.55rem;
}
.status-card__value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: var(--text);
  display: block;
  letter-spacing: -0.02em;
}
.status-card__note { font-size: 0.6875rem; color: var(--text-muted); display: block; margin-top: 0.3rem; }

/* ---------- auth pages ---------- */

.auth-shell {
  display: grid;
  place-items: center;
  padding: 4rem 1.5rem 5rem;
  min-height: 60vh;
}
.auth-card {
  width: 100%;
  max-width: 430px;
  border: 1px solid var(--silver-soft);
  border-radius: var(--radius-lg);
  background: var(--charcoal);
  padding: 2.25rem;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9);
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.auth-card__sub { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 1.75rem; line-height: 1.6; }
.auth-alt {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--silver-soft);
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}
.auth-alt a { color: var(--emerald-bright); }
.demo-creds {
  margin-top: 1.25rem;
  border: 1px solid var(--silver-soft);
  border-radius: var(--radius-sm);
  background: var(--obsidian-deep);
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.demo-creds strong { color: var(--text-secondary); display: block; margin-bottom: 0.3rem; font-family: var(--font-sans); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero__copy { max-width: 100%; }
  .calc-layout { grid-template-columns: 1fr; }
  .grid-sidebar { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .confidentiality-pill { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ticker__grid { grid-template-columns: 1fr; }
  .ticker__item { border-left: 0; border-top: 1px solid var(--silver-soft); padding: 1.1rem 0; }
  .ticker__item:first-child { border-top: 0; }
  .security-strip { grid-template-columns: 1fr; }
  .filter-bar__row { grid-template-columns: 1fr 1fr; }
  .stage { min-width: 92px; }
}

@media (max-width: 720px) {
  .section { padding: 3.5rem 0; }
  .shell { padding: 0 1.15rem; }
  .site-header__inner { height: 62px; gap: 0.85rem; }
  .header-actions .btn--secondary { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-row, .field-row--3 { grid-template-columns: 1fr; }
  .outputs { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-legal { flex-direction: column; }
  .footer-legal__meta { text-align: left; }
  .filter-bar__row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 0.5rem; }
  .step__num { padding-top: 0; }
  .callout-band { padding: 1.75rem; flex-direction: column; align-items: flex-start; }
  .auth-card { padding: 1.75rem; }
  .calc-card { padding: 1.4rem; }
  .card { padding: 1.4rem; }
  .terminal { height: 340px; padding: 1rem; }
  .msg { max-width: 96%; }
  .btn-row { width: 100%; }
  .hero { padding: 3.5rem 0 3rem; }
  .page-head { padding: 2.25rem 0 1.75rem; }
  .compare-table { font-size: 0.75rem; }
  .compare-table th, .compare-table td { padding: 0.65rem 0.7rem; }
}

@media (max-width: 420px) {
  .wordmark__text { font-size: 0.78rem; letter-spacing: 0.2em; }
  .listing-card__metrics { grid-template-columns: 1fr 1fr; }
  .header-actions .btn { padding: 0.55rem 0.85rem; font-size: 0.78rem; }
}

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

@media print {
  .site-header, .site-footer, .btn, .nav-toggle { display: none !important; }
  body { background: #fff; color: #111; }
}

/* ==========================================================================
   Admin console — analytics, charts, live feed
   ========================================================================== */

/* --- horizontal bar rows (monthly commission, top pages) --- */

.admin-bar {
  display: grid;
  grid-template-columns: minmax(72px, 130px) 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.45rem 0;
}
.admin-bar__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-bar__track {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}
.admin-bar__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  min-width: 2px;
  transition: width 0.4s ease;
}
.admin-bar__value {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* --- 14-day column chart --- */

.admin-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 190px;
  padding-top: 0.5rem;
}
.admin-chart__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  height: 100%;
  min-width: 0;
}
.admin-chart__stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 3px 3px 0 0;
  overflow: hidden;
  min-height: 2px;
  transition: height 0.4s ease;
}
.admin-chart__bar { min-height: 0; }
.admin-chart__bar--buyer   { background: var(--emerald); }
.admin-chart__bar--seller  { background: var(--amber); }
.admin-chart__bar--neutral { background: rgba(148, 163, 184, 0.42); }
.admin-chart__tick {
  margin-top: 0.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: var(--text-muted);
}

/* --- 24-hour sparkline --- */

.admin-spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 84px;
}
.admin-spark__bar {
  flex: 1;
  min-width: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--emerald-dim, var(--emerald));
  opacity: 0.8;
  transition: height 0.4s ease, opacity 0.2s ease;
}
.admin-spark__bar:hover { opacity: 1; }

/* --- live feed indicator --- */

.admin-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 0.5rem;
  vertical-align: middle;
  background: var(--text-muted);
}
.admin-live-dot[data-state="live"] {
  background: var(--emerald-bright);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65);
  animation: admin-pulse 2s ease-out infinite;
}
.admin-live-dot[data-state="stalled"] { background: var(--amber); }

@keyframes admin-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Respect a reduced-motion preference: the dot still changes colour, it just
   stops pulsing. */
@media (prefers-reduced-motion: reduce) {
  .admin-live-dot[data-state="live"] { animation: none; }
  .admin-bar__fill,
  .admin-chart__stack,
  .admin-spark__bar { transition: none; }
}

/* --- campaign field hint inside admin forms --- */

.admin-form-hint {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .admin-bar {
    grid-template-columns: 1fr auto;
    grid-template-areas: 'label value' 'track track';
    row-gap: 0.3rem;
  }
  .admin-bar__label { grid-area: label; }
  .admin-bar__value { grid-area: value; }
  .admin-bar__track { grid-area: track; }
  .admin-chart { height: 150px; gap: 0.22rem; }
}
