/* Nines — Dark Emerald Design System */

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

:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --surface-2: #1c1c20;
  --surface-3: #242429;
  --border: #2a2a30;
  --border-subtle: #1e1e24;
  --text: #ececf0;
  --text-secondary: #8a8a9a;
  --text-muted: #5a5a6a;
  --accent: #10b981;
  --accent-dim: rgba(16, 185, 129, 0.12);
  --accent-glow: rgba(16, 185, 129, 0.25);
  --accent-hover: #34d399;
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.12);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.12);
  --red-glow: rgba(239, 68, 68, 0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --radius-lg: 12px;
  --max-width: 64rem;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --color-primary: var(--accent);
  --color-primary-hover: var(--accent-hover);
  --color-bg: var(--bg);
  --color-text: var(--text);
  --color-muted: var(--text-secondary);
  --color-border: var(--border);
  --color-surface: var(--surface);
  --color-featured: rgba(16, 185, 129, 0.06);
  --color-featured-border: rgba(16, 185, 129, 0.3);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

/* ─── Animations ─── */
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 8px var(--accent-glow); }
  50% { box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(16, 185, 129, 0.1); }
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ─── Layout ─── */
header {
  border-bottom: 1px solid var(--border-subtle);
}

nav, nav.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  height: auto;
  gap: 2rem;
}

.brand {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-xs);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-primary {
  background: var(--accent);
  color: #000;
  font-weight: 600;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-sm);
}

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

.btn-outline:hover {
  border-color: var(--text-muted);
  background: var(--surface);
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-danger {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.btn-sm {
  padding: 0.3125rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.btn-link:hover {
  color: var(--text);
}

/* ─── Sections ─── */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

/* ─── Hero ─── */
.hero {
  text-align: center;
  padding: 6rem 2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.hero-badge span {
  color: var(--accent);
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #6ee7b7 50%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ─── Live status strip ─── */
.live-strip {
  max-width: 900px;
  margin: 0.5rem auto 0;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.live-strip-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.strip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.strip-dot.up {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.strip-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.strip-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.strip-sep {
  width: 1px;
  height: 24px;
  background: var(--border);
}

/* ─── Features ─── */
.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem 2rem 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card, .feature {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover, .feature:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.feature-card h3, .feature h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.feature-card p, .feature p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ─── How it works ─── */
.how-section, .how-it-works {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.666% + 20px);
  right: calc(16.666% + 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--accent);
  transition: all 0.3s;
  flex-shrink: 0;
}

.step:hover .step-number {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-dim);
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 260px;
  margin: 0 auto;
}

/* ─── Pricing (home page cards) ─── */
.pricing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.pricing-header, .pricing-intro {
  text-align: center;
  margin-bottom: 3.5rem;
}

.pricing-intro h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.pricing-intro p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.price-card, .pricing-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.price-card:hover, .pricing-card:hover {
  border-color: var(--border);
}

.price-card.featured, .pricing-card--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, var(--surface) 40%);
  box-shadow: 0 0 40px var(--accent-dim);
  transform: scale(1.03);
}

.price-badge, .pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.875rem;
  border-radius: 100px;
  white-space: nowrap;
}

.price-card h3, .pricing-header h2, .pricing-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.price-card .desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.25rem;
  line-height: 1;
}

.price-amount span, .price-period {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pricing-tagline {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.price-features, .pricing-features {
  list-style: none;
  margin: 1.5rem 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
}

.price-features li, .pricing-features li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.375rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-features li {
  padding-left: 1.375rem;
  position: relative;
}

.pricing-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.price-features .check {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
}

.price-cta {
  width: 100%;
  text-align: center;
  justify-content: center;
  margin-top: 0.5rem;
}

.pricing-card .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.pricing-full-link {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.pricing-full-link a {
  color: var(--accent);
}

/* ─── Founder Plan Section ─── */
.founder-plan {
  max-width: 600px;
  margin: 2rem auto 0;
  text-align: center;
}

.founder-plan h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.founder-plan .price-card {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, var(--surface) 40%);
  box-shadow: 0 0 40px var(--accent-dim);
  text-align: center;
}

.founder-remaining {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.founder-plan .price-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 2rem;
  justify-items: start;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.founder-plan .price-features li {
  align-items: flex-start;
}

.founder-plan .price-features .check {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* ─── Pricing page ─── */
.pricing-page {
  padding-top: 3rem;
}

/* ─── Feature matrix ─── */
.feature-matrix {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.feature-matrix h2 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
  text-align: center;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.plan-pending-notice {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xs);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.plan-pending-notice p { margin: 0; }
.plan-pending-notice .btn { margin-left: 0.5rem; }

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.comparison-table thead th {
  font-weight: 700;
  background: var(--surface-2);
}

.comparison-table tbody th {
  font-weight: 600;
  color: var(--text);
}

.comparison-table thead th:not(:first-child) {
  text-align: center;
}

.comparison-table td:not(:first-child) {
  text-align: center;
}

.comparison-table tbody tr:hover {
  background: var(--surface);
}

/* ─── FAQ ─── */
.pricing-faq {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.pricing-faq h2 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item dt {
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.faq-item dd {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 2rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  background: transparent;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 240px;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-col h4, footer h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.footer-col ul, footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

footer ul li { margin-bottom: 0; }

.footer-col a, footer ul a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

/* ─── Docs ─── */
.docs-page {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 3rem;
  max-width: 64rem;
  margin: 0 auto;
  padding-top: 2rem;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.docs-sidebar-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.docs-nav-link {
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.15s;
}

.docs-nav-link:hover {
  background: var(--surface-2);
  color: var(--text);
}

.docs-header {
  margin-bottom: 2.5rem;
}

.docs-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 1rem;
}

.docs-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
}

.docs-content {
  overflow-wrap: break-word;
  min-width: 0;
}

.docs-content h2 {
  font-size: 1.375rem;
  margin: 2.5rem 0 0.75rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.docs-content section:first-child h2 {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.docs-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
  padding-top: 1rem;
  color: var(--text);
}

.docs-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1.5rem 0 0.375rem;
  color: var(--text);
}

.docs-content p, .docs-content li {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

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

.docs-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

.docs-cta {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--accent-dim);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius);
  text-align: center;
}

.docs-cta p {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

.docs-cta a {
  color: var(--accent);
  font-weight: 600;
}

/* ─── Auth forms ─── */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.auth-form {
  max-width: 24rem;
  margin: 4rem auto 0;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.auth-form h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
}

.auth-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.field label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.field .hint {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.field input,
.field textarea {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.field textarea {
  resize: vertical;
  width: 100%;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-error {
  padding: 0.75rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-xs);
  color: #fca5a5;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.field-error {
  display: block;
  font-size: 0.8125rem;
  color: #fca5a5;
  margin-top: 0.125rem;
}

.auth-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.auth-form .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-form > p {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-align: center;
}

.auth-form > p a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-form > p a:hover {
  text-decoration: underline;
}

/* ─── Settings / API keys ─── */
.settings {
  max-width: 48rem;
  margin: 3rem auto 0;
}

.settings h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.settings > p {
  color: var(--text-secondary);
  margin: 0 0 2rem;
}

.settings h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.settings h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-group input[type="color"] {
  padding: 0;
  width: 2.5rem;
  height: 2rem;
  cursor: pointer;
  background: none;
}

.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group select,
.form-group textarea {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group textarea {
  resize: vertical;
}

/* ─── Tables (shared) ─── */
.api-keys-table,
.monitors-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}

.api-keys-table th,
.api-keys-table td,
.monitors-table th,
.monitors-table td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.api-keys-table thead th,
.monitors-table thead th {
  font-weight: 600;
  background: var(--surface);
  font-size: 0.875rem;
}

.api-keys-table tbody tr:hover,
.monitors-table tbody tr:hover {
  background: var(--surface-2);
}

/* ─── Badge ─── */
.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent);
}

.badge-revoked {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.badge-paused {
  background: var(--surface-2);
  color: var(--text-muted);
}

/* ─── Alert ─── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xs);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--amber);
}

/* ─── API key display ─── */
.api-key-display {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
}

.raw-key {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  word-break: break-all;
  color: var(--text);
}

.settings pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.875rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  overflow-x: auto;
  margin: 0.5rem 0 1.25rem;
  color: var(--text);
}

/* ─── Dashboard ─── */
.dashboard {
  padding-top: 2.5rem;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.dashboard-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0;
}

/* ─── Quota usage bar ─── */
.quota-bar {
  margin-bottom: 1rem;
}

.quota-progress {
  width: 100%;
  height: 8px;
  border: none;
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
}

.quota-progress::-webkit-progress-bar {
  background: var(--surface-2);
  border-radius: 4px;
}

.quota-progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 4px;
}

.quota-progress::-moz-progress-bar {
  background: var(--accent);
  border-radius: 4px;
}

.quota-bar-full .quota-progress::-webkit-progress-value {
  background: var(--amber);
}

.quota-bar-full .quota-progress::-moz-progress-bar {
  background: var(--amber);
}

.quota-bar-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

.quota-bar-text a {
  color: var(--accent);
}

/* ─── Monitor type badge ─── */
.monitor-type {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-xs);
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ─── Empty state ─── */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin-top: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin: 0 0 1.25rem;
}

/* ─── Monitor form ─── */
.monitor-form {
  max-width: 40rem;
  margin: 3rem auto 0;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.monitor-form h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
}

.monitor-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.monitor-form .field select,
.monitor-form .field textarea {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  width: 100%;
}

.monitor-form .field select:focus,
.monitor-form .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.monitor-form .field input {
  width: 100%;
}

.monitor-form .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* ─── Config sections ─── */
.config-section {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 1rem 1.25rem;
  background: var(--bg);
}

.config-section[hidden] {
  display: none;
}

.config-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
}

/* ─── Status dots ─── */
.status-dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 0.25rem;
}

.status-up    { background-color: var(--accent); }
.status-down  { background-color: var(--red); }
.status-unknown { background-color: var(--text-muted); }

.response-time {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ─── Monitor detail ─── */
.monitor-detail {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.monitor-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 1rem;
}

.back-link {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

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

.monitor-meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.monitor-target {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* ─── Uptime stats ─── */
.uptime-stats {
  margin: 2rem 0;
}

.uptime-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.75rem;
}

.uptime-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 1rem 1.25rem;
  text-align: center;
}

.uptime-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.uptime-value {
  font-size: 1.5rem;
  font-weight: 600;
}

/* ─── Region breakdown ─── */
.region-breakdown {
  overflow-x: auto;
  margin-top: 0.75rem;
}

.region-breakdown table,
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.region-breakdown th,
.region-breakdown td,
.results-table th,
.results-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.region-breakdown th,
.results-table th {
  font-weight: 600;
  background: var(--surface);
}

/* ─── Recent results ─── */
.recent-results {
  margin: 2rem 0;
}

.error-msg {
  color: var(--red);
  font-size: 0.875rem;
  font-family: var(--font-mono);
}

.current-status {
  margin-bottom: 2rem;
}

/* ─── Region checkboxes ─── */
.regions-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.75rem 1rem;
  margin: 0;
}

.regions-group legend {
  padding: 0 0.25rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

/* ─── Region tags (monitor detail) ─── */
.assigned-regions {
  margin-bottom: 1.5rem;
}

.region-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.region-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--accent-dim);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--accent);
}

/* ─── Incident badges ─── */
.incident-badge {
  display: inline-block;
  padding: 0.2em 0.65em;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.incident-badge--investigating { background-color: rgba(245, 158, 11, 0.15); color: var(--amber); }
.incident-badge--identified    { background-color: rgba(249, 115, 22, 0.15); color: #fb923c; }
.incident-badge--resolved      { background-color: rgba(16, 185, 129, 0.15); color: var(--accent); }

/* ─── Active incident banner ─── */
.incident-banner {
  background-color: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--amber);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xs);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.incident-banner a { color: var(--accent); }

/* ─── Warning banner ─── */
.warning-banner {
  background-color: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--amber);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xs);
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.warning-banner-icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.warning-banner-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.warning-banner-detail {
  font-size: 0.825rem;
  opacity: 0.85;
}

.warning-banner-inline {
  margin: 0.25rem 0;
  padding: 0.5rem 0.75rem;
}

.warning-banner-region {
  margin-right: 0.75rem;
}

.region-offline-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* ─── Form success ─── */
.form-success {
  padding: 0.75rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xs);
  color: var(--accent);
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

/* ─── Muted text ─── */
.muted {
  color: var(--text-secondary);
}

/* ─── Dashboard nav ─── */
.dashboard-nav {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.dashboard-nav a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.dashboard-nav a:hover {
  text-decoration: underline;
}

/* ─── Plan settings ─── */
.plan-current {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.plan-current h2 {
  margin: 0 0 0.5rem;
  padding: 0;
  border: none;
  font-size: 1.25rem;
}

.plan-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.plan-usage {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.plan-usage h2 {
  margin: 0 0 0.75rem;
  padding: 0;
  border: none;
  font-size: 1.125rem;
}

.plan-usage ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan-usage li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  padding-left: 1.375rem;
  position: relative;
}

.plan-usage li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ─── Plan upgrade notice ─── */
.plan-upgrade-notice {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-xs);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  color: var(--amber);
  font-size: 0.9rem;
}

.plan-upgrade-notice a {
  color: var(--accent);
  font-weight: 600;
}

/* ─── Form helpers ─── */
.form-help {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-help code {
  font-family: var(--font-mono);
  font-size: 0.8125em;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.0625rem 0.25rem;
  border-radius: 0.25rem;
}

.form-select,
.form-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  width: 100%;
}

.form-select:focus,
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* ─── Incidents page ─── */
.incidents-page {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.incidents-header {
  margin-bottom: 1.5rem;
}

.incidents-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0;
}

.incidents-section {
  margin-bottom: 2rem;
}

.incidents-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.incidents-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.incident-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  background: var(--surface);
}

.incident-card--active {
  border-color: rgba(245, 158, 11, 0.4);
  background-color: rgba(245, 158, 11, 0.05);
}

.incident-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.incident-card-link {
  font-size: 0.875rem;
  color: var(--accent);
}

.incident-card-body {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.incident-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.incident-details {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
}

.incidents-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.incidents-table th,
.incidents-table td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.incidents-table thead th {
  font-weight: 600;
  background: var(--surface-2);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.incidents-table tbody tr:hover {
  background: var(--surface);
}

.incidents-table a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
}

.incidents-table a:hover {
  text-decoration: underline;
}

/* ─── Incident detail page ─── */
.incident-detail {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.incident-detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.incident-detail-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0;
}

.incident-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.incident-description {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.75rem 1rem;
  margin-bottom: 2rem;
}

/* ─── Incident timeline ─── */
.incident-timeline {
  margin-bottom: 2rem;
}

.incident-timeline h2,
.incident-update-form h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--border);
  padding-left: 1.5rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.25rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.85rem;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.timeline-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.timeline-message {
  margin: 0;
  font-size: 0.9rem;
}

/* ─── Incident update form ─── */
.incident-update-form {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  max-width: 32rem;
}

/* ─── Public status page ─── */
.status-page {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.status-header {
  text-align: center;
  margin-bottom: 2rem;
}

.status-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.overall-status {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
}

.overall-status-operational {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
}

.overall-status-degraded {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
}

.overall-status-active_incident {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.status-monitors {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.status-monitor-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  background: var(--surface);
}

.status-monitor-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.status-monitor-name {
  font-weight: 600;
  flex: 1;
}

.status-monitor-uptime {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.uptime-chart {
  display: flex;
  gap: 1px;
  height: 1.5rem;
  margin-bottom: 0.25rem;
}

.uptime-bar {
  flex: 1;
  border-radius: 1px;
  min-width: 2px;
}

.uptime-bar-green  { background: var(--accent); }
.uptime-bar-yellow { background: var(--amber); }
.uptime-bar-red    { background: var(--red); }
.uptime-bar-gray   { background: var(--surface-3); }

.uptime-chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-secondary);
}

.status-incidents {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.status-incidents h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text);
}

.status-incident {
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  background: rgba(245, 158, 11, 0.05);
  margin-bottom: 1rem;
}

.status-incident-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.incident-status-badge {
  display: inline-block;
  padding: 0.2em 0.65em;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.incident-status-investigating { background: rgba(245, 158, 11, 0.15); color: var(--amber); }
.incident-status-identified    { background: rgba(249, 115, 22, 0.15); color: #fb923c; }

.status-incident-details {
  flex: 1;
  font-size: 0.95rem;
}

.status-incident-duration {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-incident-timeline {
  margin-top: 0.5rem;
  border-left: 2px solid var(--border);
  padding-left: 1rem;
}

.status-incident-update {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.status-incident-update .update-status {
  font-weight: 600;
  text-transform: capitalize;
}

.status-incident-update .update-time {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.status-footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.status-footer a {
  color: var(--accent);
  text-decoration: none;
}

/* ─── Owner admin bar (status page — only visible to logged-in org owner) ─── */
.status-owner-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  height: 2.25rem;
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
}

.status-owner-link {
  color: var(--accent);
  text-decoration: none;
}

.status-owner-link:hover {
  color: var(--text);
}

.status-page-with-owner-bar {
  padding-top: 2.25rem;
}

/* ─── Subscribe section (status page) ─── */
.subscribe-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.subscribe-section h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.subscribe-section p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

.subscribe-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  max-width: 28rem;
  margin: 0 auto;
}

.subscribe-form input[type="email"] {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.subscribe-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.subscribe-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-xs);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #000;
  transition: all 0.2s;
}

.subscribe-form button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 0 24px var(--accent-glow);
}

/* ─── Subscribe confirmation page ─── */
.subscribe-page {
  max-width: var(--max-width);
  margin: 4rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.subscribe-card {
  max-width: 32rem;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.subscribe-success h2,
.subscribe-info h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.subscribe-success h2 { color: var(--accent); }
.subscribe-info h2 { color: var(--text); }

.subscribe-success p,
.subscribe-info p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
}

.subscribe-card > p {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
}

.subscribe-card > p a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.subscribe-card > p a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .subscribe-form {
    flex-direction: column;
  }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .features-grid, .pricing-grid, .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .live-strip-inner { flex-direction: column; gap: 1rem; }
  .strip-sep { width: 100%; height: 1px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .price-card.featured, .pricing-card--featured { transform: none; }
  nav, nav.nav-container { flex-wrap: wrap; gap: 1rem; }
}

@media (max-width: 48rem) {
  nav.nav-container {
    height: auto;
    padding: 0.75rem 2rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    gap: 1rem;
    padding-top: 0.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 2rem;
  }

  .docs-page {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .docs-sidebar-title {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .docs-nav-link {
    font-size: 0.75rem;
  }

  .pricing-grid {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }

  .auth-form {
    margin-top: 2rem;
    padding: 1.25rem;
  }
}

@media (max-width: 40rem) {
  .uptime-grid {
    grid-template-columns: 1fr;
  }

  .monitor-header {
    flex-direction: column;
  }
}

/* ─── Dashboard: page header ─── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* ─── Dashboard: stats row ─── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.stat-fraction {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 400;
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.stat-up { color: var(--accent); }
.stat-down { color: var(--red); }

/* ─── Dashboard: incident banner ─── */
.incident-banner {
  background: var(--red-dim);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.incident-banner-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.incident-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
  animation: pulse-red 1.5s ease-in-out infinite;
}

@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 8px var(--red-glow); }
  50% { box-shadow: 0 0 20px var(--red-glow), 0 0 40px rgba(239, 68, 68, 0.1); }
}

.incident-banner-text {
  font-size: 0.875rem;
  font-weight: 500;
}

.incident-banner-text span {
  color: var(--text-secondary);
  font-weight: 400;
}

.incident-banner-btn {
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.3);
}

.incident-banner-btn:hover {
  border-color: var(--red);
}

/* ─── Dashboard: quota bar ─── */
.quota-section {
  margin-bottom: 2rem;
}

.quota-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.quota-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.quota-count {
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.quota-track {
  height: 4px;
  background: var(--surface-3);
  border-radius: 100px;
  overflow: hidden;
}

.quota-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.5s ease;
}

/* ─── Dashboard: monitor cards ─── */
.monitors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.monitor-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.monitor-card:hover {
  border-color: var(--border);
  background: var(--surface-2);
}

.monitor-card-down {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(90deg, var(--red-dim) 0%, var(--surface) 30%);
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-indicator-up {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.status-indicator-down {
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
  animation: pulse-red 1.5s ease-in-out infinite;
}

.status-indicator-unknown {
  background: var(--text-muted);
}

.monitor-info { min-width: 0; }

.monitor-name {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.monitor-type-badge {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--surface-3);
  padding: 0.125rem 0.5rem;
  border-radius: 100px;
}

.monitor-target-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Dashboard: uptime mini chart ───
 * Reuses .uptime-chart / .uptime-bar / .uptime-bar-{green,yellow,red,gray}
 * from the status page (defined above). The `-mini` modifier tightens the
 * chart for dashboard list rows: fixed height so it sits flush with the
 * monitor name, narrower bars to fit 15 days in a compact cell.
 */
.uptime-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.uptime-chart-mini {
  height: 28px;
  gap: 1.5px;
  margin-bottom: 0;
}

.uptime-chart-mini .uptime-bar {
  flex: 0 0 auto;
  width: 3px;
  border-radius: 1px;
  min-width: 0;
}

/* ─── Dashboard: response time cell ─── */
.response-time-cell {
  text-align: right;
  min-width: 5rem;
}

.response-time-value {
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.response-time-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.response-time-error { color: var(--red); }
.response-time-ssl { color: var(--accent); }
.response-time-na { color: var(--text-muted); }

/* ─── Dashboard: monitor card actions ─── */
.monitor-card-actions {
  display: flex;
  gap: 0.375rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.monitor-card:hover .monitor-card-actions { opacity: 1; }

.action-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.action-btn:hover {
  background: var(--surface-3);
  border-color: var(--border);
  color: var(--text);
}

.action-btn-danger:hover {
  background: var(--red-dim);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--red);
}

/* ─── Monitor detail: breadcrumb ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--text-secondary); }

.breadcrumb-sep { color: var(--text-muted); }
.breadcrumb-current { color: var(--text-secondary); }

/* ─── Monitor detail: header ─── */
.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.detail-header-left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.status-indicator-lg {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-top: 0.375rem;
  flex-shrink: 0;
}

.status-indicator-lg-up {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.status-indicator-lg-down {
  background: var(--red);
  box-shadow: 0 0 12px var(--red-glow);
  animation: pulse-red 1.5s ease-in-out infinite;
}

.status-indicator-lg-unknown {
  background: var(--text-muted);
}

.detail-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.type-badge {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--surface-3);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.detail-target {
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.detail-header-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-danger-outline {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger-outline:hover {
  border-color: rgba(239, 68, 68, 0.4);
}

/* ─── Monitor detail: uptime stat cards ─── */
.uptime-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.uptime-stat-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.uptime-stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.375rem;
}

.uptime-stat-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -1px;
}

.uptime-good { color: var(--accent); }

/* ─── Monitor detail: chart section ─── */
.chart-section {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.chart-title {
  font-size: 0.875rem;
  font-weight: 600;
}

/* ─── Monitor detail: region grid ─── */
.region-section { margin-bottom: 2rem; }

.section-heading {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.region-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  transition: all 0.2s;
}

.region-card:hover { border-color: var(--border); }

.region-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.625rem;
}

.region-name {
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.region-code {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-3);
  padding: 0.1rem 0.375rem;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.status-dot-sm {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot-up {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.status-dot-down {
  background: var(--red);
  box-shadow: 0 0 6px var(--red-glow);
}

.status-dot-unknown {
  background: var(--text-muted);
}

.region-stat {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.125rem;
}

.region-stat-value {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-secondary);
}

/* ─── Monitor detail: SSL certificate ─── */
.ssl-section {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.ssl-card {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 2rem;
  align-items: center;
  padding-top: 0.25rem;
}

.ssl-primary {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}

.ssl-days {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.ssl-days-label {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.ssl-expiry-green .ssl-days { color: var(--accent); }
.ssl-expiry-amber .ssl-days { color: var(--amber); }
.ssl-expiry-red   .ssl-days { color: var(--red); }

.ssl-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ssl-meta-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.ssl-meta-row:last-child { border-bottom: none; padding-bottom: 0; }

.ssl-meta-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ssl-meta-value {
  font-family: var(--font-mono);
  color: var(--text);
  word-break: break-all;
}

.ssl-sans {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.ssl-sans summary {
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.375rem 0;
  user-select: none;
}

.ssl-sans summary:hover { color: var(--text); }

.ssl-san-list {
  list-style: none;
  padding: 0.5rem 0 0 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.ssl-card-empty {
  display: block;
  padding: 1.5rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-align: center;
  font-size: 0.875rem;
}

.ssl-card-empty p { margin: 0; }

@media (max-width: 768px) {
  .ssl-card { grid-template-columns: 1fr; gap: 1.25rem; }
  .ssl-meta-row { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ─── Monitor detail: checks table ─── */
.checks-section {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.checks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.checks-title {
  font-size: 0.875rem;
  font-weight: 600;
}

.checks-table {
  width: 100%;
  border-collapse: collapse;
}

.checks-table th {
  text-align: left;
  padding: 0.625rem 1.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-subtle);
}

.checks-table td {
  padding: 0.75rem 1.5rem;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--border-subtle);
}

.checks-table tr:last-child td { border-bottom: none; }
.checks-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

.check-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.check-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.625rem;
  border-radius: 100px;
}

.check-status-up {
  color: var(--accent);
  background: var(--accent-dim);
}

.check-status-down {
  color: var(--red);
  background: var(--red-dim);
}

.check-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.check-status-dot-up { background: var(--accent); }
.check-status-dot-down { background: var(--red); }

.check-response {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.check-response-error { color: var(--red); }

.check-region {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.check-error {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--red);
}

/* ─── Compare pages ─── */
.compare-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.compare-hero {
  text-align: center;
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.compare-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.compare-verdict {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 52rem;
  margin: 0 auto 0.75rem;
  line-height: 1.7;
}

.compare-reviewed {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.compare-section {
  margin-bottom: 3.5rem;
}

.compare-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare-table thead th {
  background: var(--surface-2);
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.compare-table thead th:first-child {
  border-radius: var(--radius) 0 0 0;
}

.compare-table thead th:last-child {
  border-radius: 0 var(--radius) 0 0;
}

.compare-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
}

.compare-table tbody tr:last-child {
  border-bottom: none;
}

.compare-table tbody td {
  padding: 0.875rem 1.25rem;
  color: var(--text-secondary);
  vertical-align: top;
}

.compare-table tbody td:first-child {
  color: var(--text);
  font-weight: 500;
}

.compare-table tbody td:nth-child(2) {
  color: var(--accent);
}

.compare-when-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.compare-when-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.compare-when-card h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
  padding-bottom: 0;
  border-bottom: none;
  color: var(--text-secondary);
}

.compare-when-nines {
  border-color: rgba(16, 185, 129, 0.3);
  background: var(--accent-dim);
}

.compare-when-nines h2 {
  color: var(--accent);
}

.compare-when-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.compare-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-faq-item {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.compare-faq-item:last-child {
  border-bottom: none;
}

.compare-faq-item dt {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.compare-faq-item dd {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
}

.compare-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 4rem;
}

.compare-cta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.compare-cta p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .compare-hero h1 { font-size: 1.625rem; }
  .compare-when-grid { grid-template-columns: 1fr; }
}

/* ─── Dashboard/detail responsive ─── */
@media (max-width: 768px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .monitor-card {
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
  }
  .uptime-mini, .response-time-cell { display: none; }
  .monitor-card-actions { opacity: 1; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .uptime-stats-row { grid-template-columns: 1fr; }
  .detail-header { flex-direction: column; gap: 1rem; }
}

/* ─── Blog ─── */

.blog-list-page {
  max-width: 52rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

.blog-hero {
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 3.75rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3rem;
}

.blog-hero .section-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.25rem;
}

.blog-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.blog-hero p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 36rem;
  margin: 0 auto;
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  transition: border-color 0.2s, background 0.2s;
  display: block;
}

.blog-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  background: var(--surface-2);
}

.blog-card-meta {
  margin-bottom: 0.75rem;
}

.blog-card-meta time {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.blog-card-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.blog-card-title a:hover {
  color: var(--accent);
}

.blog-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.blog-read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s, gap 0.15s;
}

.blog-read-more:hover {
  color: var(--accent-hover);
  gap: 0.5rem;
}

.blog-empty {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-muted);
}

/* Blog post page */

.blog-post-page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 6rem;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
  margin-bottom: 2.5rem;
}

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

.blog-post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.blog-post-header .blog-card-meta {
  margin-bottom: 1rem;
}

.blog-post-header h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.blog-post-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.blog-post-body p {
  margin-bottom: 1.5rem;
}

.blog-post-body h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border-subtle);
}

.blog-post-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.625rem;
}

.blog-post-body ul,
.blog-post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.blog-post-body li {
  margin-bottom: 0.375rem;
}

.blog-post-body strong {
  color: var(--text);
  font-weight: 600;
}

.blog-post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-post-body a:hover {
  color: var(--accent-hover);
}

.blog-post-body code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.125em 0.35em;
  color: var(--accent);
}

.blog-post-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
}

.blog-post-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
}

.blog-post-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

.blog-post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
  .blog-hero h1 { font-size: 1.625rem; }
  .blog-card { padding: 1.25rem 1.25rem; }
  .blog-post-header h1 { font-size: 1.625rem; }
}
