/* Ambient Design System
   Primary palette: blue #0079D6, clean white/gray backgrounds, dark body text.
   Font: system stack — feels native on macOS. */

:root {
  /* Primary */
  --primary: #0079D6;
  --primary-dark: #005FAD;
  --primary-soft: #EBF5FF;

  /* Text */
  --text: #111827;
  --muted: #6B7280;
  --subtle: #9CA3AF;

  /* Backgrounds */
  --bg: #FFFFFF;
  --bg-soft: #F9FAFB;
  --bg-strong: #F3F4F6;

  /* Borders */
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.16);

  /* Semantic */
  --success: #16A34A;
  --success-soft: #DCFCE7;
  --warning: #D97706;
  --warning-soft: #FEF3C7;
  --error: #DC2626;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);

  /* Accent (legacy compat) */
  --accent: var(--primary);
  --accent-strong: var(--primary-dark);
  --accent-soft: var(--primary-soft);
  --sage: var(--success);
  --sage-soft: var(--success-soft);

  /* Typography */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
  --display: var(--sans);

  /* Legacy bg compat */
  --bg-accent: var(--primary-soft);
  --bg-strong-compat: var(--bg-soft);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a {
  color: inherit;
}

/* ─── Layout ─────────────────────────────────────────────── */

.shell,
.auth-shell {
  width: min(1140px, calc(100vw - 32px));
  margin: 0 auto;
}

.auth-shell {
  padding-bottom: 48px;
}

.container {
  width: min(1140px, calc(100vw - 32px));
  margin: 0 auto;
}

.section {
  padding: 64px 0 56px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section-note {
  max-width: 38ch;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Navigation ─────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  background: var(--primary);
  color: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg-strong);
}

/* ─── Buttons ─────────────────────────────────────────────── */

.btn-primary,
.button,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.btn-primary:hover,
.button:hover,
.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 121, 214, 0.28);
}

.button-large {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn-secondary,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.btn-secondary:hover,
.ghost-button:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* Nav CTA also picks up button styles */
.nav-links a.nav-cta {
  background: var(--primary);
  color: #ffffff;
  border: none;
  font-weight: 600;
}

.nav-links a.nav-cta:hover {
  background: var(--primary-dark);
}

/* ─── Hero ────────────────────────────────────────────────── */

.hero,
.download-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr);
  gap: 24px;
  align-items: stretch;
  padding: 48px 0 40px;
}

.hero-copy {
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.hero-copy::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 121, 214, 0.06), transparent 70%);
  pointer-events: none;
}

.hero-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 32px;
}

.hero-panel-accent {
  border-color: rgba(0, 121, 214, 0.18);
  background: linear-gradient(160deg, var(--primary-soft) 0%, var(--bg-soft) 60%);
}

/* ─── Typography ──────────────────────────────────────────── */

.eyebrow,
.panel-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
}

.eyebrow {
  color: var(--primary);
}

.panel-kicker {
  color: var(--muted);
}

.proof-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.trust-rank {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--primary);
}

.hero h1 {
  margin: 12px 0 20px;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-title {
  margin: 12px 0 20px;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-title {
  margin: 8px 0 0;
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
}

.lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 58ch;
}

.helper,
.hint {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.hint {
  min-height: 1.4rem;
}

/* ─── Hero actions ────────────────────────────────────────── */

.hero-actions,
.inline-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

/* ─── Tags / Trust badges ─────────────────────────────────── */

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 14px;
  border: 1px solid rgba(22, 163, 74, 0.28);
  background: var(--success-soft);
  color: #15803D;
  font-size: 0.82rem;
  font-weight: 600;
}

.req-chip,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  font-size: 0.85rem;
  color: var(--text);
}

/* ─── Hero proof grid ─────────────────────────────────────── */

.hero-proof {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.proof-item {
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  padding-right: 16px;
}

.proof-item strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ─── Chip grid (earnings panel) ──────────────────────────── */

.chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.compact-chip-grid {
  margin-top: 4px;
}

.chip-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: border-color 140ms ease;
}

.chip-card strong,
.chip-card span {
  display: block;
}

.chip-card strong {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.chip-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.chip-card.active {
  border-color: rgba(0, 121, 214, 0.36);
  background: var(--primary-soft);
}

.chip-card.active strong {
  color: var(--primary-dark);
}

.panel-note {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ─── Cards / Panels ──────────────────────────────────────── */

.card {
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  border-radius: 20px;
  padding: 28px;
  position: relative;
}

.panel {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
  border-radius: 20px;
  padding: 28px;
  position: relative;
}

.code-panel {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
  border-radius: 20px;
  padding: 24px;
  overflow: auto;
  position: relative;
}

.stat {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
  border-radius: 20px;
  padding: 28px;
}

.callout {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
  border-radius: 24px;
  padding: 40px;
}

.callout-strong {
  border-color: rgba(0, 121, 214, 0.2);
  background: linear-gradient(160deg, var(--primary-soft) 0%, var(--bg-soft) 70%);
}

.card h3,
.panel h3,
.code-panel h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.card p,
.panel p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ─── Grids ───────────────────────────────────────────────── */

.grid {
  display: grid;
  gap: 20px;
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ─── Step strip (how it works) ───────────────────────────── */

.step-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.step-card h3 {
  margin: 12px 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

.step-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  background: var(--primary);
}

/* ─── Trust answers / FAQ grid ────────────────────────────── */

.trust-answers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* ─── Metrics ─────────────────────────────────────────────── */

.metric {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.metric:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.metric strong,
.calculator-total,
.stat strong {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.metric strong {
  font-size: 2rem;
  line-height: 1;
}

.stat strong {
  font-size: 2rem;
  line-height: 1;
  display: block;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ─── Calculator ──────────────────────────────────────────── */

.calculator-total {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1;
  display: block;
  margin: 8px 0 12px;
}

.calculator-total-small {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1;
  display: block;
  margin: 6px 0 10px;
}

.calculator-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.partner-calculator-grid {
  align-items: stretch;
}

.calculator-panel {
  gap: 20px;
}

.partner-output-grid {
  align-items: stretch;
}

.calculator-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.9rem;
}

.calculator-note strong,
.realtime-rate,
.chip-hourly-rate {
  color: var(--text);
  font-weight: 600;
}

.partner-summary,
.partner-disclaimer {
  margin: 0;
}

/* ─── Range / form ────────────────────────────────────────── */

.range-caption {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}

.range-caption strong {
  justify-self: center;
  color: var(--text);
}

.calculator-output {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.stat-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.97rem;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 121, 214, 0.12);
}

/* ─── Realtime list ───────────────────────────────────────── */

.realtime-list {
  display: grid;
  gap: 8px;
}

.realtime-row,
.trust-step {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.realtime-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  font-size: 0.93rem;
}

.realtime-row.active {
  border-color: rgba(0, 121, 214, 0.3);
  background: var(--primary-soft);
}

.realtime-row span {
  color: var(--muted);
}

/* ─── Trust ladder ────────────────────────────────────────── */

.trust-ladder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.trust-step {
  padding: 22px;
}

/* ─── Comparison table ────────────────────────────────────── */

.comparison-table {
  display: grid;
  gap: 1px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.comparison-table.double {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comparison-head,
.comparison-cell,
.comparison-label {
  padding: 14px 16px;
  background: var(--bg);
  line-height: 1.55;
}

.comparison-head,
.comparison-label {
  font-weight: 600;
}

/* ─── Download page ───────────────────────────────────────── */

.download-action {
  margin-top: 28px;
}

.dl-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 121, 214, 0.24);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dl-req {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Menu bar preview */
.menu-preview {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
}

.menu-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.menu-row:first-child {
  border-top: 0;
}

.menu-row.active {
  color: var(--primary);
  font-weight: 600;
}

.menu-row.muted,
.muted {
  color: var(--muted);
}

.menu-val {
  font-variant-numeric: tabular-nums;
  color: var(--primary-dark);
  font-weight: 600;
}

/* ─── Steps (download page) ───────────────────────────────── */

.steps {
  display: grid;
  gap: 10px;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  background: var(--primary);
  color: #ffffff;
  flex-shrink: 0;
}

.step-body strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.step-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── Notices ─────────────────────────────────────────────── */

.notice {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--warning-soft);
  background: var(--warning-soft);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.notice strong {
  color: var(--text);
}

.notice-info {
  border-color: rgba(0, 121, 214, 0.2);
  background: var(--primary-soft);
}

.notice-success {
  border-color: rgba(22, 163, 74, 0.24);
  background: var(--success-soft);
}

.dev-section {
  margin-top: 24px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

/* ─── Auth / Manager ──────────────────────────────────────── */

.auth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin-top: 22px;
}

.manager-grid {
  display: grid;
  gap: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.status-banner {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.9rem;
}

.status-banner.error {
  border-color: rgba(220, 38, 38, 0.24);
  background: #FEF2F2;
  color: #991B1B;
}

.status-banner.success {
  border-color: rgba(22, 163, 74, 0.24);
  background: var(--success-soft);
  color: #166534;
}

.fleet-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.fleet-sort-label {
  text-align: right;
}

.fleet-table-wrap {
  overflow-x: auto;
}

.fleet-page-table,
.fleet-table,
.validations {
  width: 100%;
  border-collapse: collapse;
}

.fleet-page-table th,
.fleet-page-table td,
.fleet-table th,
.fleet-table td,
.validations th,
.validations td {
  padding: 14px 12px;
  text-align: left;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.fleet-page-table thead th,
.fleet-table thead th,
.validations thead th {
  border-top: 0;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.fleet-page-table tbody tr,
.fleet-table tbody tr,
.validations tbody tr {
  background: transparent;
}

.fleet-row {
  cursor: pointer;
  transition: background 140ms ease;
}

.fleet-row:hover,
.fleet-row:focus-visible {
  background: rgba(0, 121, 214, 0.05);
  outline: none;
}

.fleet-row-link {
  text-decoration: none;
  font-weight: 600;
}

.fleet-row-link:hover {
  text-decoration: underline;
}

.fleet-sort-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.fleet-sort-button[data-active="true"] {
  color: var(--primary-dark);
}

.fleet-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fleet-status.earning {
  color: #166534;
  background: var(--success-soft);
}

.fleet-status.paused {
  color: #92400E;
  background: var(--warning-soft);
}

.fleet-status.offline {
  color: #991B1B;
  background: #FEE2E2;
}

.fleet-heartbeat {
  font-variant-numeric: tabular-nums;
}

.fleet-heartbeat.is-stale {
  color: var(--error);
  font-weight: 700;
}

.fleet-subcopy {
  margin-top: 6px;
  max-width: 30ch;
  line-height: 1.45;
}

/* ─── Table (validations, comparison) ────────────────────── */

.tableish,
.backup-summary-grid {
  display: grid;
  gap: 12px;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.table-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.backup-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ─── Code ────────────────────────────────────────────────── */

pre.code-panel,
.code-panel pre {
  white-space: pre-wrap;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--bg-strong);
  padding: 2px 6px;
  border-radius: 5px;
}

/* ─── Footer ──────────────────────────────────────────────── */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a,
.footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 120ms ease;
}

.footer-links a:hover,
.footer a:hover {
  color: var(--text);
}

/* ─── Utilities ───────────────────────────────────────────── */

.list {
  margin: 0;
  padding-left: 20px;
}

.list li {
  color: var(--muted);
  line-height: 1.72;
}

/* ─── Responsive ──────────────────────────────────────────── */

@media (max-width: 980px) {
  .hero,
  .download-hero,
  .auth-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .trust-answers,
  .step-strip,
  .trust-ladder,
  .stats-grid,
  .calculator-comparison,
  .chip-grid,
  .backup-summary-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof,
  .stat-pair {
    grid-template-columns: 1fr;
  }

  .section-header,
  .footer {
    align-items: start;
    flex-direction: column;
  }

  .fleet-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .fleet-sort-label {
    text-align: left;
  }

  .section {
    padding: 48px 0 40px;
  }
}

@media (max-width: 720px) {
  .shell,
  .auth-shell {
    width: min(100vw - 20px, 100%);
  }

  .nav {
    align-items: start;
    flex-direction: column;
    padding-top: 20px;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a,
  .btn-primary,
  .btn-secondary,
  .button,
  .ghost-button {
    width: 100%;
  }

  .hero-copy,
  .hero-panel,
  .card,
  .panel,
  .code-panel,
  .stat,
  .callout {
    padding: 24px;
  }

  .hero h1,
  .page-title {
    max-width: none;
  }

  .range-caption {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 40px 0 32px;
  }

  .hero,
  .download-hero {
    padding: 32px 0 24px;
  }
}
