/* site.css — shared styles for all FlowView marketing pages
   Brand spec: flowview-brand/README.md */

:root {
  /* Brand palette */
  --fv-blue: #276FEC;
  --fv-blue-dark: #1D4ED8;
  --fv-blue-light: #60A5FA;
  --fv-blue-lighter: #93C5FD;
  --fv-green: #34D399;
  --fv-green-dark: #22956E;
  --fv-green-light: #6EE7B7;
  --fv-red: #F87171;
  --fv-red-dark: #DC5656;
  --fv-red-light: #FCA5A5;
  --fv-yellow: #FBBF24;
  --fv-yellow-dark: #D4A017;
  --fv-yellow-light: #FDE68A;

  /* Semantic tokens — light mode */
  --accent: #276FEC;
  --accent-hover: #1D4ED8;
  --accent-light: rgba(39, 111, 236, 0.08);
  --bg: #f8fafc;
  --bg-white: #ffffff;
  --bg-surface: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-tertiary: #94a3b8;
  --border: #e2e8f0;

  /* Semantic state tokens — derived from FV brand palette (see flowview-brand/README.md) */
  --success: #34D399;                         /* Signal Green */
  --success-text: #22956E;                    /* fv-green-dark for text on light bg */
  --success-bg: rgba(52, 211, 153, 0.12);     /* fv-green at ~12% */
  --danger: #DC5656;                          /* fv-red-dark */
  --danger-text: #DC5656;
  --danger-bg: rgba(248, 113, 113, 0.12);     /* fv-red at ~12% */
  --danger-border: #FCA5A5;                   /* fv-red-light */
  --warn: #D4A017;                            /* fv-yellow-dark */
  --warn-text: #D4A017;
  --warn-bg: #FDE68A;                         /* fv-yellow-light */
  --warn-border: #FBBF24;                     /* fv-yellow */

  --radius: 14px;
  --radius-btn: 12px;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-white: #1e293b;
  --bg-surface: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-tertiary: #64748b;
  --border: #334155;
  --accent-light: rgba(39, 111, 236, 0.15);

  /* State tokens for dark mode — lift bg alpha for contrast */
  --success-bg: rgba(52, 211, 153, 0.18);
  --danger-bg: rgba(248, 113, 113, 0.18);
  --danger-text: #FCA5A5;
  --warn-bg: rgba(251, 191, 36, 0.22);
  --warn-text: #FDE68A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, system-ui, sans-serif;
  background: var(--bg-white);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

a { color: inherit; }

/* ── Sticky Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

[data-theme="dark"] .nav {
  background: rgba(15, 23, 42, 0.85);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-icon { width: 36px; height: auto; }
.wordmark { letter-spacing: -0.5px; }
.wm-flow { font-weight: 600; }
.wm-view { font-weight: 300; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 500; }

.nav-cta {
  display: inline-block;
  padding: 8px 18px;
  background: var(--accent);
  color: #fff !important;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--accent-hover); }
.nav-links-demo { color: var(--accent) !important; font-weight: 600 !important; }

.nav-theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  font-family: inherit;
  transition: border-color 0.2s, color 0.2s;
  line-height: 1;
}

.nav-theme-toggle:hover { border-color: var(--text-muted); color: var(--text); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-back {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
}

.nav-back:hover { color: var(--text); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 16px rgba(39, 111, 236, 0.3); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }

/* Accent outline — accent text + accent border (used for secondary download/CTA flows) */
.btn-accent-outline {
  background: var(--bg-white);
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-accent-outline:hover { background: var(--accent-light); }

/* Layout / size modifiers (compose with any .btn variant) */
.btn-block { display: block; width: 100%; text-align: center; }
.btn-compact { padding: 14px 24px; font-size: 15px; border-radius: 8px; }
.btn-inline { padding: 10px 24px; font-size: 14px; border-radius: 8px; }

/* ── FlowView icon system ──
   Sprite at /assets/icons/sprite.svg. Reference symbols via:
     <svg class="fv-icon" aria-hidden="true">
       <use href="/assets/icons/sprite.svg#name"></use>
     </svg>
   Strokes inherit `currentColor`; pair with a color modifier or set `color` on the host.
*/
.fv-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  color: var(--text);
  fill: none;
  stroke: currentColor;
}
.fv-icon-sm { width: 16px; height: 16px; }
.fv-icon-lg { width: 32px; height: 32px; }
.fv-icon-xl { width: 48px; height: 48px; }

.fv-icon-accent  { color: var(--accent); }
.fv-icon-success { color: var(--success-text); }
.fv-icon-warn    { color: var(--warn-text); }
.fv-icon-danger  { color: var(--danger-text); }
.fv-icon-muted   { color: var(--text-muted); }

/* Tinted square tile around an icon (used in mini-cards and feature lists) */
.fv-icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
}
.fv-icon-tile.success { background: var(--success-bg); }
.fv-icon-tile.warn    { background: var(--warn-bg); }
.fv-icon-tile.danger  { background: var(--danger-bg); }
.fv-icon-tile .fv-icon { width: 22px; height: 22px; }

/* ── CTA Banner ── */
.cta-banner {
  padding: 64px 32px;
  text-align: center;
  background: #f0f7ff;
  border-radius: 20px;
  border: 1px solid #dbeafe;
  max-width: 1000px;
  margin: 0 auto;
  transition: background 0.3s, border-color 0.3s;
}

[data-theme="dark"] .cta-banner {
  background: #1e293b;
  border-color: #334155;
}

.cta-banner h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.cta-banner p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.cta-banner .cta-trust {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 16px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 32px;
  transition: border-color 0.3s;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand { display: flex; flex-direction: column; gap: 8px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-muted);
}

.footer-logo img { width: 28px; height: auto; }

.footer-copy { font-size: 12px; color: var(--text-tertiary); }

.footer-columns { display: flex; gap: 48px; }

.footer-col { display: flex; flex-direction: column; }

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 2.2;
  transition: color 0.2s;
}

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

/* Legacy footer (for pages not yet migrated) */
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── Legal page styles (terms, privacy) ── */
.legal-hero { text-align: center; padding: 56px 24px 32px; }
.legal-hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.legal-hero p { font-size: 15px; color: var(--text-muted); }

.legal-content { max-width: 800px; margin: 0 auto; padding: 0 24px 80px; }
.legal-content h2 {
  font-size: 22px; font-weight: 700; margin-top: 40px; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.legal-content h3 { font-size: 17px; font-weight: 700; margin-top: 24px; margin-bottom: 8px; }
.legal-content p { font-size: 15px; color: var(--text); margin-bottom: 12px; }
.legal-content ul, .legal-content ol { margin: 0 0 12px 24px; }
.legal-content li { font-size: 15px; margin-bottom: 6px; }
.legal-content a { color: var(--accent); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }
.legal-content code { background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.legal-content th, .legal-content td {
  text-align: left; padding: 10px 12px; border: 1px solid var(--border); vertical-align: top;
}
.legal-content th { background: var(--bg); font-weight: 700; }
.legal-content .updated { font-size: 13px; color: var(--text-muted); margin-top: 40px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── System status page (brand: DM Sans, --accent, --radius, 1000px content) ── */
.status-hero {
  text-align: center;
  padding: 80px 24px 48px;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--bg-white) 100%);
}

.status-hero h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.status-hero p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.status-updated {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

.status-subnav {
  display: flex;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto 24px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
}

.status-subnav-link {
  display: inline-block;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.status-subnav-link:hover {
  color: var(--accent);
}

.status-subnav-link.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.status-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.status-page--uptime {
  padding-top: 8px;
}

.status-hero--uptime {
  padding-bottom: 40px;
}

.status-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--border);
  color: var(--text-muted);
}

.status-pill--operational {
  background: var(--success-bg);
  color: var(--success-text);
}

.status-pill--degraded {
  background: var(--warn-bg);
  color: var(--warn-text);
}

.status-pill--outage {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.status-pill--partial_outage {
  background: var(--warn-bg);
  color: var(--warn-text);
}

.status-pill--maintenance {
  background: var(--accent-light);
  color: var(--accent);
}

.status-pill--unknown,
.status-pill--loading {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.status-components {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  border-left: 4px solid var(--border);
  overflow: hidden;
}

.status-row-top {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px 16px;
  align-items: center;
}

.status-overall-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px;
  margin-bottom: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-white);
}

.status-overall-banner-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.status-overall-banner[data-state="operational"] {
  border-color: var(--success);
  background: var(--success-bg);
  justify-content: center;
}

.status-overall-banner-icon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success);
}

.status-overall-banner[data-state="degraded"] .status-overall-banner-icon,
.status-overall-banner[data-state="partial_outage"] .status-overall-banner-icon {
  background: var(--warn);
}

.status-overall-banner[data-state="outage"] .status-overall-banner-icon {
  background: var(--danger);
}

.status-overall-banner[data-state="maintenance"] .status-overall-banner-icon {
  background: var(--accent);
}

.status-overall-banner[data-state="operational"] .status-overall-banner-title {
  color: var(--success-text);
  font-weight: 700;
  font-size: 18px;
}

.status-overall-banner-title {
  font-size: 16px;
  font-weight: 600;
}

.status-overall-banner-pill[hidden] {
  display: none;
}

.status-timeline-chart {
  width: 100%;
}

.status-timeline-chart--history .status-timeline {
  height: 44px;
}

.status-timeline-chart--heatmap {
  width: 100%;
  min-width: 0;
}

.status-heatmap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px 24px;
  width: 100%;
  min-width: 0;
}

.status-month {
  flex: 0 0 auto;
}

.status-month-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-align: center;
  white-space: nowrap;
}

.status-month-grid {
  display: grid;
  grid-template-rows: repeat(7, 11px);
  grid-auto-flow: column;
  grid-auto-columns: 11px;
  gap: 2px;
}

.status-month-cell {
  position: relative;
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: var(--border);
  opacity: 0.45;
  transition: opacity 0.12s ease, filter 0.12s ease;
  cursor: pointer;
}

.status-month-cell::before {
  content: '';
  position: absolute;
  left: -3px;
  right: -3px;
  top: -6px;
  bottom: -6px;
}

.status-month-cell--empty {
  visibility: hidden;
  pointer-events: none;
  cursor: default;
}

.status-month-cell--empty::before {
  display: none;
}

.status-timeline-axis {
  display: grid;
  grid-auto-flow: column;
  gap: 0;
  width: 100%;
  min-width: 0;
  margin-top: 6px;
  height: 18px;
}

.status-timeline-axis-tick {
  min-width: 0;
  font-size: 10px;
  line-height: 1.2;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-top: 2px;
}

.status-row[data-state="operational"] { border-left-color: var(--success); }
.status-row[data-state="degraded"],
.status-row[data-state="partial_outage"] { border-left-color: var(--warn); }
.status-row[data-state="maintenance"] { border-left-color: var(--accent); }
.status-row[data-state="outage"] { border-left-color: var(--danger); }

.status-row-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-row-help {
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.status-row-help:hover,
.status-row-help--pinned {
  border-color: var(--text-tertiary);
  color: var(--text);
  background: var(--bg-white);
}

.status-row-uptime {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.status-row-name {
  font-weight: 600;
  font-size: 15px;
}

.status-row-meta {
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
}

.status-row--skeleton .status-pill {
  opacity: 0.5;
}

.status-history-heading {
  font-size: 18px;
  font-weight: 600;
  margin: 40px 0 12px;
}

.status-history-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.status-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-legend-swatch {
  width: 10px;
  height: 16px;
  border-radius: 2px;
  background: var(--border);
}

.status-legend-swatch--operational { background: var(--success); }
.status-legend-swatch--partial_outage { background: var(--warn); }
.status-legend-swatch--degraded { background: var(--warn); opacity: 0.75; }
.status-legend-swatch--maintenance { background: var(--accent); }
.status-legend-swatch--outage { background: var(--danger); }
.status-legend-swatch--no_data { background: var(--border); opacity: 0.65; }

.status-timeline {
  display: grid;
  grid-auto-flow: column;
  align-items: stretch;
  gap: 0;
  height: 36px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 4px 0 0;
  overflow: hidden;
  border-radius: 3px;
}

.status-timeline-seg {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 100%;
  border-radius: 0;
  background: var(--border);
  opacity: 0.5;
  transition: opacity 0.12s ease, filter 0.12s ease;
  cursor: pointer;
}

/* Taller hit area without changing bar width */
.status-timeline-seg::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  bottom: -8px;
}

.status-timeline-seg:first-child {
  border-radius: 3px 0 0 3px;
}

.status-timeline-seg:last-child {
  border-radius: 0 3px 3px 0;
}

.status-timeline-seg:only-child {
  border-radius: 3px;
}

.status-timeline-seg:hover,
.status-timeline-seg.status-day-cell--pinned,
.status-month-cell:hover,
.status-month-cell.status-day-cell--pinned {
  opacity: 1;
  filter: brightness(1.06);
  z-index: 1;
}

.status-timeline-seg--operational,
.status-timeline-seg[data-state="operational"],
.status-month-cell--operational,
.status-month-cell[data-state="operational"] {
  background: var(--success);
  opacity: 1;
}

.status-timeline-seg--partial_outage,
.status-timeline-seg[data-state="partial_outage"],
.status-month-cell--partial_outage,
.status-month-cell[data-state="partial_outage"] {
  background: var(--warn);
  opacity: 1;
}

.status-timeline-seg--degraded,
.status-timeline-seg[data-state="degraded"],
.status-month-cell--degraded,
.status-month-cell[data-state="degraded"] {
  background: var(--warn);
  opacity: 1;
}

.status-timeline-seg--maintenance,
.status-timeline-seg[data-state="maintenance"],
.status-month-cell--maintenance,
.status-month-cell[data-state="maintenance"] {
  background: var(--accent);
  opacity: 1;
}

.status-timeline-seg--outage,
.status-timeline-seg[data-state="outage"],
.status-month-cell--outage,
.status-month-cell[data-state="outage"] {
  background: var(--danger);
  opacity: 1;
}

.status-timeline-seg--unknown,
.status-timeline-seg[data-state="unknown"],
.status-month-cell--unknown,
.status-month-cell[data-state="unknown"] {
  background: var(--text-tertiary);
  opacity: 0.85;
}

.status-timeline-seg--no_data,
.status-timeline-seg[data-state="no_data"],
.status-month-cell--no_data,
.status-month-cell[data-state="no_data"] {
  background: var(--border);
  opacity: 0.45;
}

.status-tooltip {
  position: fixed;
  z-index: 10000;
  max-width: 280px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, transform 0.12s ease;
  transform: translateY(4px);
}

.status-tooltip--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.status-tooltip-card {
  padding: 14px 16px 12px;
}

.status-tooltip-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.status-tooltip-help-body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.status-tooltip-card--help .status-tooltip-date {
  margin-bottom: 8px;
}

.status-tooltip-metrics {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.status-tooltip-pct {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.status-tooltip-pct--good { color: var(--success); }
.status-tooltip-pct--warn { color: var(--warn); }
.status-tooltip-pct--bad { color: var(--danger); }

.status-tooltip-pct-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.status-tooltip-issue {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.status-tooltip-issue--none {
  color: var(--success-text);
}

.status-tooltip-issue--warn {
  color: var(--warn-text);
  font-weight: 500;
}

.status-tooltip-issue--bad {
  color: var(--danger-text);
  font-weight: 600;
}

.status-tooltip-incident {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}

.status-tooltip-nodata {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.status-tooltip-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.status-tooltip-status-pill {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 999px;
}

.status-tooltip-status-pill--operational {
  background: var(--success-bg);
  color: var(--success-text);
}

.status-tooltip-status-pill--degraded,
.status-tooltip-status-pill--partial_outage {
  background: var(--warn-bg);
  color: var(--warn-text);
}

.status-tooltip-status-pill--maintenance {
  background: var(--accent-light);
  color: var(--accent);
}

.status-tooltip-status-pill--outage {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.status-tooltip-status-pill--no_data,
.status-tooltip-status-pill--unknown {
  background: var(--bg-surface);
  color: var(--text-muted);
}

.status-tooltip-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.status-incidents-section {
  margin-top: 40px;
}

.status-incidents-heading {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.status-incidents-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-incident {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
}

.status-incident-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
}

.status-incident-when,
.status-incident-body {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.status-incident-updates {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.status-incident-updates li {
  padding: 10px 0 0;
  font-size: 13px;
}

.status-incident-update-status {
  font-weight: 600;
  color: var(--text);
}

.status-footnote {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 560px) {
  .status-row-top {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
  }
  .status-row-uptime {
    grid-column: 1 / -1;
    text-align: left;
  }
  .status-row-meta {
    grid-column: 1;
    text-align: left;
  }
  .status-row-top .status-pill {
    grid-row: 1 / span 2;
    grid-column: 2;
    align-self: center;
  }
  .status-timeline {
    height: 28px;
  }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open { display: flex; }
  .nav-hamburger { display: block; }

  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-columns { gap: 32px; }

  .legal-hero h1 { font-size: 28px; }
  .status-hero h1 { font-size: 28px; }
  .legal-content table { font-size: 13px; }
  .legal-content th, .legal-content td { padding: 8px; }
}

@media (max-width: 480px) {
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons a, .cta-buttons button { width: 100%; max-width: 320px; text-align: center; }
  .footer-columns { flex-direction: column; gap: 24px; }
}
