/* ─────────────────────────────────────────────────────────────────
   QuoteFleet — design system.

   Dark theme inspired by Effortel (cyan accent, monospace bracketed
   tags, bottom dock nav, big bold sans headings) with a Cargowise-
   style hero pattern (gradient halo + two pill CTAs).

   Used for: landing, login, signup, pricing, app dashboard, admin,
   chat. The embedded widget keeps its own light theme — see
   widget-style.css.
   ─────────────────────────────────────────────────────────────── */
:root {
  /* Backgrounds — layered dark slate (Effortel's actual values) */
  --bg:           #141415;
  --surface:      #1B2123;
  --surface-2:    #2A2A2D;
  --surface-3:    #3E3F42;

  /* Borders */
  --border:        #2A2A2D;
  --border-strong: #3E3F42;

  /* Text */
  --ink:        #FFFFFF;       /* headings / strong */
  --ink-soft:   #ECECEE;       /* body */
  --muted:      #909192;       /* secondary */
  --muted-soft: #696A6D;       /* very subtle */

  /* Cyan accent (Effortel CTA color) — bright, almost mint. */
  --accent:        #9BF7FF;
  --accent-strong: #5BD9E6;
  --accent-soft:   rgba(155, 247, 255, 0.10);
  --accent-ink:    #07232A;     /* dark text on cyan buttons */

  /* Secondary accent — Effortel's electric cobalt blue. */
  --accent-2:      #3E5FFF;
  --accent-2-soft: rgba(62, 95, 255, 0.10);

  /* Status */
  --success:    #34D399;
  --success-bg: rgba(52, 211, 153, 0.12);
  --warn:       #F59E0B;
  --warn-bg:    rgba(245, 158, 11, 0.12);
  --error:      #F87171;
  --error-bg:   rgba(248, 113, 113, 0.12);

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 60px -16px rgba(0, 0, 0, 0.6);
  --glow-cyan: 0 0 0 1px rgba(155, 247, 255, 0.2), 0 8px 32px -8px rgba(155, 247, 255, 0.18);

  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-btn: 6px;
  --radius-pill: 999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* ── Light theme — opted in by setting data-theme="light" on <html>.
   Toggle lives in the dashboard sidebar; choice persists to localStorage.
   Only color tokens flip — radius / shadow / typography stay identical
   so layout is pixel-stable across themes.  */
html[data-theme="light"] {
  --bg:           #F7F8FA;
  --surface:      #FFFFFF;
  --surface-2:    #F1F3F6;
  --surface-3:    #E5E7EB;
  --border:        #E5E7EB;
  --border-strong: #CBD0D6;
  --ink:        #0B0F14;
  --ink-soft:   #1E2530;
  --muted:      #5A6470;
  --muted-soft: #8F98A4;
  --accent:        #0EA5B7;
  --accent-strong: #086675;
  --accent-soft:   rgba(14, 165, 183, 0.10);
  --accent-ink:    #FFFFFF;
  --accent-2:      #3E5FFF;
  --accent-2-soft: rgba(62, 95, 255, 0.08);
  --success:    #059669;
  --success-bg: rgba(5, 150, 105, 0.10);
  --warn:       #B45309;
  --warn-bg:    rgba(180, 83, 9, 0.10);
  --error:      #B91C1C;
  --error-bg:   rgba(185, 28, 28, 0.10);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 24px 60px -16px rgba(15, 23, 42, 0.18);
  --glow-cyan: 0 0 0 1px rgba(14, 165, 183, 0.18), 0 8px 32px -8px rgba(14, 165, 183, 0.15);
}
/* Theme-toggle button in the sidebar — small, low-key, lives next to nav. */
.qf-theme-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 12px; margin-top: 6px;
  border: 1px solid var(--border); border-radius: 8px;
  background: transparent; color: var(--muted);
  font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.06em;
  text-transform: uppercase; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.qf-theme-toggle:hover { background: var(--surface-2); color: var(--ink); border-color: var(--border-strong); }

/* ── Reset ─────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink-soft);
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Subtle dot pattern — Effortel uses this on their card backgrounds. */
.dot-grid {
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 0 0;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-strong); }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; color: var(--ink); }
::selection { background: var(--accent-soft); color: var(--ink); }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
h1 { font-weight: 800; letter-spacing: -0.035em; }

p { margin: 0; }

/* ── Layout containers ─────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 28px; }

/* ── Tag — bracketed monospace small-caps label.
     Use: <span class="tag">[ Recognized as the best MVNE globally ]</span>
   ─────────────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0;
}
.tag::before { content: '[\00A0\00A0'; color: var(--muted-soft); }
.tag::after  { content: '\00A0\00A0]'; color: var(--muted-soft); }
.tag.accent { color: var(--accent); }

/* ── Top nav (minimal — most navigation lives in the bottom dock) ── */
.topnav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(20, 20, 21, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.topnav-inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; gap: 26px;
}
.brand-mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark:hover { color: var(--ink); }
.brand-mark .logo {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-ink);
  box-shadow: 0 2px 12px rgba(155, 247, 255, 0.35);
}
.brand-mark .logo svg { width: 18px; height: 18px; }
.topnav-spacer { flex: 1; }
.topnav a.nav-link {
  color: var(--muted);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  font-family: var(--font-mono);
}
.topnav a.nav-link:hover { color: var(--ink); }
.topnav a.nav-link.active { color: var(--ink); }
@media (max-width: 720px) {
  .topnav a.nav-link:not(.always-show) { display: none; }
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px;
  font-size: 13px; font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.18s ease;
  cursor: pointer;
}
.btn .arr {
  display: inline-block;
  font-size: 15px; line-height: 1;
  transition: transform 0.18s ease;
}
.btn:hover .arr { transform: translateX(3px); }

.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: 0 2px 14px rgba(155, 247, 255, 0.25);
}
.btn-primary .arr { color: var(--accent-ink); }
.btn-primary:hover {
  background: var(--accent-strong); border-color: var(--accent-strong);
  box-shadow: 0 4px 22px rgba(155, 247, 255, 0.4);
}
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.btn-secondary {
  background: var(--surface-2); color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary .arr { color: var(--ink); }
.btn-secondary:hover {
  background: var(--surface-3); border-color: var(--accent-strong); color: var(--ink);
}

.btn-ghost {
  background: transparent; color: var(--ink-soft);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }

.btn-danger {
  background: transparent; color: var(--error); border-color: var(--border-strong);
}
.btn-danger:hover { background: var(--error-bg); border-color: var(--error); }

.btn-sm  { padding: 7px 12px;  font-size: 11px; }
.btn-lg  { padding: 14px 26px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-pill { /* alias — matches default */ }

/* Older inline form buttons that don't want the all-caps treatment */
.btn-plain {
  font-family: var(--font-sans); text-transform: none; letter-spacing: 0;
  font-size: 14px; padding: 9px 16px;
}

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.card.compact { padding: 16px 18px; }
.card.elevated { box-shadow: var(--shadow-md); }
.card.glow {
  box-shadow: var(--glow-cyan);
  border-color: rgba(155, 247, 255, 0.25);
}
.card-title {
  font-size: 16px; font-weight: 700; margin: 0 0 4px 0;
  color: var(--ink); letter-spacing: -0.01em;
}
.card-subtitle {
  font-size: 13.5px; color: var(--muted); margin: 0 0 18px 0;
}
.card-row {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--border);
}
.card-row:last-child { border-bottom: 0; }

/* ── Form elements ─────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--muted);
}
.field-label.required::after { content: ' *'; color: var(--error); }
.input, .select, .textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 14.5px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
  transition: border 0.15s, box-shadow 0.15s, background 0.15s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-soft); }
.input:focus, .select:focus, .textarea:focus {
  outline: 0;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.textarea { font-family: var(--font-sans); resize: vertical; min-height: 90px; }
.field-hint { font-size: 12px; color: var(--muted); }
.field-hint.error { color: var(--error); }
.field-hint.ok    { color: var(--success); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Input "URL builder" — paired field + dropdown that compose into a
   live preview, used at signup for `<slug>.<host>`. */
.url-builder {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
}
.url-builder-preview {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 8px;
}
.url-builder-preview .live { color: var(--accent); }
@media (max-width: 640px) {
  .url-builder { grid-template-columns: 1fr; }
}

/* ── Tables ──────────────────────────────────────────────────────
   Compact sizing — earlier we had 12px row padding + 11px input padding
   stacking up, which made the rate-card grid feel airy and forced lots
   of vertical scroll for ~10 rows. Tighter padding + smaller in-cell
   inputs lets the operator scan + edit ~16 rows at a time without
   scrolling. */
.table {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
}
.table th, .table td {
  text-align: left; padding: 6px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  vertical-align: middle;
}
.table thead th {
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
}
.table tbody tr:hover { background: var(--surface-2); }
/* Inside-table inputs: lighter padding so a row stays single-line height. */
.table .input, .table .select, .table .textarea {
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 6px;
}

/* Service tabs (rate cards page, eventually re-used for accessorials/zones). */
.qf-tabs {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin: 14px 0 0 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.qf-tab {
  padding: 8px 14px;
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid transparent; border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: transparent; color: var(--muted);
  cursor: pointer; margin-bottom: -1px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.qf-tab:hover { color: var(--ink); background: var(--surface-2); }
.qf-tab.active {
  color: var(--accent);
  border-color: var(--border); border-bottom-color: var(--surface);
  background: var(--surface);
}

/* Per-column filter row inside a table. Sub-header strip with tiny inputs. */
.qf-filter-row th {
  background: var(--bg) !important;
  padding: 4px 8px !important;
  border-bottom: 1px solid var(--border-strong);
}
.qf-filter-row .input { font-size: 12px; }

/* ── Compliance trust strip ─────────────────────────────────────
   Shown on landing + repeated in footer + a thin variant under the
   header CTA. We deliberately use generic shield/lock icons (NOT
   official AICPA / ISO logos) — those marks cannot lawfully be shown
   without an active attestation. The chip text itself carries the
   "live" vs "in progress" status; tooltip on hover explains. */
.qf-trust { background: linear-gradient(180deg, transparent, var(--surface-2)); }
.qf-trust-link { display: inline-block; text-decoration: none; color: var(--ink); margin-bottom: 12px; }
.qf-trust-headline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-soft);
  font-family: var(--font-mono); letter-spacing: 0.04em;
}
.qf-trust-headline svg { color: var(--accent); }
.qf-trust-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 6px 0 10px;
}
.qf-trust-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  cursor: help;
}
.qf-trust-chip.live { color: var(--success); border-color: rgba(52, 211, 153, 0.3); }
.qf-trust-chip.live svg { color: var(--success); }
.qf-trust-chip.wip { color: var(--muted); border-style: dashed; }
.qf-trust-foot { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.qf-trust-foot a { color: var(--accent); }

/* Subtle mini-strip directly under the top nav. One-line, scrollable
   horizontally on narrow screens. Not a section — just a thin band. */
.qf-trust-mini {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.qf-trust-mini-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 6px 28px;
  display: flex; align-items: center; gap: 6px;
  overflow-x: auto; white-space: nowrap;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.qf-trust-mini-inner svg { color: var(--accent); flex-shrink: 0; }
.qf-trust-mini-inner a { color: var(--muted); text-decoration: none; }
.qf-trust-mini-inner a:hover { color: var(--ink); }
.qf-trust-mini-sep { color: var(--border-strong); }
.qf-trust-mini-tag { color: var(--success); }
.qf-trust-mini-tag.wip { color: var(--muted); border-bottom: 1px dashed var(--border-strong); padding-bottom: 1px; }

/* ── Badges ────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  border-radius: 4px;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warn    { background: var(--warn-bg);    color: var(--warn); }
.badge-error   { background: var(--error-bg);   color: var(--error); }
.badge-muted   { background: var(--surface-2);  color: var(--muted); }
.badge-info    { background: var(--accent-soft);color: var(--accent); }

/* ── Tabs ──────────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--border);
  margin-bottom: 22px; overflow-x: auto;
}
.tab {
  padding: 11px 18px; font-size: 13px; font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  background: transparent; white-space: nowrap;
}
.tab:hover { color: var(--ink-soft); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── Hero (Cargowise-inspired bold heading + cyan halo) ─────── */
.hero {
  position: relative;
  padding: 96px 28px 80px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  /* Soft cyan halo + dot pattern */
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 35%, rgba(155, 247, 255, 0.10), transparent 70%),
    radial-gradient(ellipse 30% 20% at 50% 70%, rgba(62, 95, 255, 0.06), transparent 70%);
}
.hero > * { position: relative; }
.hero .tag { margin-bottom: 22px; }
.hero h1 {
  font-size: 64px; font-weight: 800; letter-spacing: -0.04em;
  margin: 0 0 22px 0; line-height: 1.05;
  color: var(--ink);
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: 18px; color: var(--muted);
  max-width: 660px; margin: 0 auto 38px auto; line-height: 1.6;
}
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-meta {
  margin-top: 30px;
  display: inline-flex; gap: 28px; flex-wrap: wrap; justify-content: center;
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.10em; text-transform: uppercase; color: var(--muted-soft);
}
.hero-meta span::before { content: '✓ '; color: var(--accent); }
@media (max-width: 720px) {
  .hero { padding: 64px 22px 56px; }
  .hero h1 { font-size: 40px; }
  .hero p.lead { font-size: 16px; }
}

/* ── Section header ────────────────────────────────────────────── */
.section { padding: 72px 0; position: relative; }
.section-head {
  max-width: 760px; margin: 0 auto 48px auto; text-align: center;
}
.section-head .tag { margin-bottom: 14px; }
.section-head h2 {
  font-size: 38px; font-weight: 700;
  letter-spacing: -0.025em; margin-bottom: 14px;
}
.section-head p {
  font-size: 16px; color: var(--muted); max-width: 640px; margin: 0 auto;
}

/* ── Feature grid ──────────────────────────────────────────────── */
.features {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  position: relative;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  overflow: hidden;
}
.feature-card::before {
  /* Subtle dot grid in card background. */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.6;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(155, 247, 255, 0.30);
  box-shadow: 0 12px 32px -16px rgba(155, 247, 255, 0.25);
}
.feature-card .icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 18px;
  position: relative;
}
.feature-card h3 { margin: 0 0 8px 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.feature-card .stat {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 6px;
}

/* ── Compare table (TMX/DrayMaster vs. us) ─────────────────────── */
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; font-size: 14px;
}
.compare th, .compare td {
  padding: 14px 18px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare thead th {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-2);
}
.compare thead th.us { color: var(--accent); }
.compare td.us { color: var(--ink); font-weight: 500; }
.compare td.us::before { content: '✓ '; color: var(--accent); font-weight: 700; }
.compare td.them { color: var(--muted); }
.compare tbody tr:last-child td { border-bottom: 0; }

/* ── Bottom dock nav ─────────────────────────────────────────── */
.dock {
  position: fixed; left: 50%; bottom: 24px;
  transform: translateX(-50%);
  z-index: 70;
  display: flex; gap: 4px;
  background: rgba(27, 33, 35, 0.92);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
}
.dock-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-soft);
  border-radius: var(--radius-btn);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}
.dock-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--ink); }
.dock-item.active { background: var(--surface-3); color: var(--ink); }
.dock-item.cta {
  background: var(--accent); color: var(--accent-ink);
  margin-left: 4px;
}
.dock-item.cta:hover { background: var(--accent-strong); }
.dock-item .plus { font-weight: 800; opacity: 0.7; }
.dock-item.up {
  width: 36px; padding: 9px 0; justify-content: center; color: var(--ink);
  background: var(--surface-3);
}

/* Tray that opens above the dock when an item is clicked. */
.dock-tray {
  position: fixed; left: 50%; bottom: 86px;
  transform: translateX(-50%);
  z-index: 69;
  width: min(92vw, 880px);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  display: none;
}
.dock-tray.open { display: block; animation: trayUp 0.22s ease-out; }
.dock-tray-grid {
  display: grid; gap: 14px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 640px) {
  .dock-tray-grid { grid-template-columns: 1fr; }
}
.dock-tray-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  text-decoration: none; color: var(--ink-soft);
  transition: border-color 0.15s, transform 0.15s;
  display: block;
}
.dock-tray-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.dock-tray-card h4 {
  margin: 0 0 4px 0; font-size: 15.5px; font-weight: 700; color: var(--ink);
}
.dock-tray-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

@keyframes trayUp {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 720px) {
  .dock { gap: 0; padding: 4px; }
  .dock-item { padding: 7px 10px; font-size: 10.5px; letter-spacing: 0.06em; }
  .dock-item.up { width: 30px; }
}

/* ── Pricing ───────────────────────────────────────────────────── */
.pricing {
  display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 24px 0;
}
.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}
.price-card.featured {
  border-color: rgba(155, 247, 255, 0.35);
  box-shadow: var(--glow-cyan);
}
.price-card.featured::after {
  content: 'Most popular';
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-mono); font-size: 10.5px;
  padding: 4px 12px; border-radius: 4px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.price-card h3 { margin: 0; font-size: 16px; color: var(--ink); }
.price-card .price {
  font-size: 42px; font-weight: 800; color: var(--ink); margin: 14px 0;
  letter-spacing: -0.03em;
}
.price-card .price .per { font-size: 14px; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px 0; }
.price-card li {
  font-size: 13.5px; color: var(--ink-soft); padding: 7px 0;
  display: flex; gap: 10px; align-items: flex-start;
}
.price-card li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ── App shell (dashboard) ─────────────────────────────────────── */
.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--bg);
}
.sidebar {
  background: var(--surface);
  color: var(--ink-soft);
  padding: 18px 0;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--border);
}
.sidebar .brand-block {
  padding: 6px 20px 18px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.sidebar .brand-block .name { font-weight: 700; font-size: 16px; color: var(--ink); }
.sidebar .brand-block .sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.sidebar a, .sidebar button {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  color: var(--muted); font-size: 13px; font-weight: 600;
  font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  width: 100%; text-align: left;
  background: transparent; border: 0;
  border-left: 3px solid transparent;
}
.sidebar a:hover, .sidebar button:hover {
  background: var(--surface-2); color: var(--ink); text-decoration: none;
}
.sidebar a.active, .sidebar button.active {
  background: var(--surface-2); color: var(--accent);
  border-left-color: var(--accent);
}
.sidebar .group {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--muted-soft);
  letter-spacing: 0.10em; text-transform: uppercase;
  padding: 18px 20px 8px 20px;
}
.app-main {
  padding: 32px 36px; min-width: 0; max-width: 1200px;
}
.app-main h1 {
  font-size: 26px; margin: 0 0 4px 0; letter-spacing: -0.025em; font-weight: 700;
}
.app-main h2 {
  font-size: 17px; margin: 0 0 14px 0; font-weight: 700;
}
.app-main .page-sub { color: var(--muted); margin: 0 0 26px 0; }
@media (max-width: 800px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .app-main { padding: 22px; }
}

/* ── Inline AI chat panel ──────────────────────────────────────── */
.chat-panel {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px;
  height: 480px; overflow: hidden;
}
.chat-messages {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
  padding-right: 4px;
}
.chat-bubble {
  padding: 11px 15px; border-radius: 14px; max-width: 85%;
  font-size: 13.5px; line-height: 1.55; white-space: pre-wrap;
}
.chat-bubble.user {
  align-self: flex-end; background: var(--accent); color: var(--accent-ink);
  border-bottom-right-radius: 4px;
}
.chat-bubble.assistant {
  align-self: flex-start; background: var(--surface-2); color: var(--ink-soft);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}
.chat-bubble.tool {
  align-self: flex-start; font-size: 12px; color: var(--muted);
  font-family: var(--font-mono); background: transparent;
  padding: 4px 0;
}
.chat-input-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-input-row .input { flex: 1; }

/* ── Misc ──────────────────────────────────────────────────────── */
.muted        { color: var(--muted); }
.muted-small  { color: var(--muted); font-size: 12.5px; }
.flex         { display: flex; gap: 12px; align-items: center; }
.flex-end     { display: flex; gap: 12px; justify-content: flex-end; align-items: center; }
.spacer       { flex: 1; }
.code {
  font-family: var(--font-mono); font-size: 12.5px;
  background: var(--surface-2); padding: 14px; border-radius: 10px;
  border: 1px solid var(--border); white-space: pre-wrap; word-break: break-all;
  color: var(--ink-soft);
}
.notice {
  padding: 12px 16px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13.5px;
  border: 1px solid rgba(155, 247, 255, 0.20);
}
.notice.warn  { background: var(--warn-bg);  color: var(--warn);  border-color: rgba(245, 158, 11, 0.20); }
.notice.error { background: var(--error-bg); color: var(--error); border-color: rgba(248, 113, 113, 0.20); }
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.hidden  { display: none !important; }

/* ── Loading dots ─────────────────────────────────────────────── */
.dots { display: inline-block; }
.dots::after { content: ''; animation: dots 1.4s infinite; display: inline-block; }
@keyframes dots {
  0%, 20% { content: '.'; }
  40%     { content: '..'; }
  60%, 100% { content: '...'; }
}

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  padding: 36px 28px 100px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.site-footer a { color: var(--muted); margin: 0 10px; }
.site-footer a:hover { color: var(--accent); }
