/* ==========================================================================
   Base388 — Landing styles
   Design system ported from shadcn/ui "Zinc" theme (ref: 21st.dev component).
   Neutral grayscale palette, light by default, dark via [data-theme="dark"].
   Tokens are HSL triplets, consumed as hsl(var(--token)).
   ========================================================================== */

:root {
  /* shadcn Zinc — light (default) */
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --primary: 240 5.9% 10%;
  --primary-foreground: 0 0% 98%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --destructive: 0 84.2% 60.2%;
  --border: 240 5.9% 90%;
  --input: 240 4.9% 83.9%;
  --ring: 240 5% 64.9%;

  /* Elevation surfaces — light relies on borders, not fills */
  --surface: 0 0% 100%;
  --surface-2: 240 4.8% 95.9%;

  /* Brand accent (Base388 teal — used sparingly for highlights) */
  --brand: 170 84% 32%;

  /* Semantic status (kept for the monitoring mockup / dots) */
  --success: 142 71% 35%;
  --warning: 35 92% 42%;
  --danger: 0 74% 50%;

  /* Radii (shadcn base 0.5rem) */
  --radius: 0.5rem;
  --radius-sm: 0.375rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Type */
  --sans: 'Geologica', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  color-scheme: light;
}

[data-theme="dark"] {
  --background: 240 10% 3.9%;
  --foreground: 240 4.8% 95.9%;
  --card: 240 10% 3.9%;
  --card-foreground: 0 0% 98%;
  --primary: 0 0% 98%;
  --primary-foreground: 240 5.9% 10%;
  --secondary: 240 3.7% 15.9%;
  --secondary-foreground: 0 0% 98%;
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 72% 51%;
  --border: 240 3.7% 15.9%;
  --input: 240 3.7% 15.9%;
  --ring: 240 4.9% 83.9%;

  /* In dark, cards match the page bg and are separated by lighter borders */
  --surface: 240 10% 3.9%;
  --surface-2: 240 3.7% 15.9%;

  --brand: 168 80% 46%;
  --success: 142 69% 48%;
  --warning: 38 95% 55%;
  --danger: 0 84% 65%;

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* NAV ---------------------------------------------------------------------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid hsl(var(--border));
  backdrop-filter: blur(20px);
  background: hsl(var(--background) / 0.8);
}

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

.logo {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  color: hsl(var(--foreground));
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}

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

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

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

.nav-cta {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground)) !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.9; }

/* Secondary "Войти" button in the header, next to the primary CTA. */
.nav-login {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground)) !important;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s;
}
.nav-login:hover { background: hsl(var(--muted)); border-color: hsl(var(--ring)); }

/* Trial / first-payment-deferral note under a paid plan price. */
.plan-trial {
  display: inline-block;
  margin: -2px 0 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  font-size: 12px;
  font-weight: 600;
}

/* Theme toggle ------------------------------------------------------------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--surface));
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.theme-toggle:hover { background: hsl(var(--surface-2)); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* HERO --------------------------------------------------------------------- */
.hero {
  padding: 110px 0 100px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 760px;
}

.hero h1 .accent {
  color: hsl(var(--brand));
}

.hero-sub {
  font-size: 18px;
  color: hsl(var(--muted-foreground));
  max-width: 540px;
  margin-bottom: 44px;
  line-height: 1.7;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-ghost {
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
  background: hsl(var(--surface));
}

.btn-ghost:hover { background: hsl(var(--surface-2)); }

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: hsl(var(--muted-foreground));
}

/* DASHBOARD MOCKUP --------------------------------------------------------- */
.dashboard-wrap {
  margin-top: 72px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: hsl(var(--surface));
  position: relative;
  box-shadow: 0 1px 3px hsl(var(--foreground) / 0.04), 0 8px 24px hsl(var(--foreground) / 0.04);
}

.db-bar {
  background: hsl(var(--surface-2));
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid hsl(var(--border));
}

.db-dots { display: flex; gap: 6px; }
.db-dot { width: 10px; height: 10px; border-radius: 50%; }
.db-dot.r { background: hsl(var(--danger)); }
.db-dot.y { background: hsl(var(--warning)); }
.db-dot.g { background: hsl(var(--success)); }

.db-url {
  flex: 1;
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: hsl(var(--muted-foreground));
  text-align: center;
}

.db-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  min-height: 320px;
}

.db-sidebar {
  border-right: 1px solid hsl(var(--border));
  padding-right: 16px;
}

.db-sidebar-title {
  font-family: var(--mono);
  font-size: 10px;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.db-monitor-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
  cursor: pointer;
  transition: background 0.15s;
}

.db-monitor-item:first-of-type { background: hsl(var(--secondary)); }
.db-monitor-item:hover { background: hsl(var(--surface-2)); }

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

.up { background: hsl(var(--success)); }
.down { background: hsl(var(--danger)); }
.warn { background: hsl(var(--warning)); }

.db-monitor-name {
  font-size: 12px;
  color: hsl(var(--foreground));
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-monitor-ms {
  font-family: var(--mono);
  font-size: 10px;
  color: hsl(var(--muted-foreground));
}

.db-main { padding-left: 4px; }

.db-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.db-stat {
  background: hsl(var(--surface-2));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 10px 12px;
}

.db-stat-label {
  font-family: var(--mono);
  font-size: 10px;
  color: hsl(var(--muted-foreground));
  margin-bottom: 4px;
}

.db-stat-val {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
}

.db-stat-val.green { color: hsl(var(--success)); }
.db-stat-val.blue { color: hsl(var(--foreground)); }
.db-stat-val.yellow { color: hsl(var(--warning)); }

.db-chart-label {
  font-family: var(--mono);
  font-size: 10px;
  color: hsl(var(--muted-foreground));
  margin-bottom: 8px;
}

.db-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 60px;
}

.db-bar-col {
  flex: 1;
  border-radius: 2px 2px 0 0;
  transition: opacity 0.2s;
}

.db-bar-col:hover { opacity: 0.7; }

/* STATS ROW ---------------------------------------------------------------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 80px 0;
}

.stat-cell {
  background: hsl(var(--surface));
  padding: 32px 24px;
  text-align: center;
}

.stat-num {
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 700;
  color: hsl(var(--foreground));
  display: block;
}

.stat-label {
  font-size: 13px;
  color: hsl(var(--muted-foreground));
  margin-top: 4px;
}

/* SECTION HEADINGS --------------------------------------------------------- */
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

h2.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: hsl(var(--muted-foreground));
  max-width: 520px;
  line-height: 1.7;
  font-weight: 300;
}

/* FEATURES GRID ------------------------------------------------------------ */
.features { padding: 40px 0 100px; }
.features-head { margin-bottom: 56px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feat {
  background: hsl(var(--surface));
  padding: 32px 28px;
  transition: background 0.2s;
  position: relative;
}

.feat:hover { background: hsl(var(--surface-2)); }

.feat-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.feat-icon svg { width: 20px; height: 20px; }

.feat h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feat p {
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
  font-weight: 300;
}

/* HOW IT WORKS ------------------------------------------------------------- */
.how {
  padding: 80px 0 100px;
  border-top: 1px solid hsl(var(--border));
}

.how-head { margin-bottom: 56px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 20px; left: 32px; right: 32px;
  height: 1px;
  background: hsl(var(--border));
}

.step { padding: 0 20px 0 0; }

.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.step h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 13px; color: hsl(var(--muted-foreground)); line-height: 1.6; font-weight: 300; }

/* PRICING ------------------------------------------------------------------ */
.pricing {
  padding: 80px 0 100px;
  border-top: 1px solid hsl(var(--border));
}

.pricing-head { margin-bottom: 56px; }

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

.plan {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  background: hsl(var(--surface));
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.plan:hover { border-color: hsl(var(--input)); }

.plan.featured {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 1px hsl(var(--primary));
}

.plan-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 11px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 100px;
  font-family: var(--mono);
  white-space: nowrap;
}

.plan-name {
  font-family: var(--mono);
  font-size: 12px;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.plan-price {
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.plan-price span { font-size: 16px; font-weight: 400; color: hsl(var(--muted-foreground)); }

.plan-desc {
  font-size: 13px;
  color: hsl(var(--muted-foreground));
  margin-bottom: 24px;
  font-weight: 300;
}

.plan-divider {
  border: none;
  border-top: 1px solid hsl(var(--border));
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.plan-features li {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: hsl(var(--foreground));
  font-weight: 300;
}

.plan-features li .check {
  color: hsl(var(--success));
  flex-shrink: 0;
  display: inline-flex;
}
.plan-features li .check svg { width: 15px; height: 15px; }

.plan-features li .dash {
  color: hsl(var(--muted-foreground));
  opacity: 0.5;
  flex-shrink: 0;
  display: inline-flex;
}
.plan-features li .dash svg { width: 15px; height: 15px; }
.plan-features li.muted,
.plan-features li:has(.dash) { color: hsl(var(--muted-foreground)); }

.plan-btn {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.plan-btn.outline {
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  background: hsl(var(--surface));
}

.plan-btn.outline:hover { background: hsl(var(--surface-2)); }

.plan-btn.solid {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.plan-btn.solid:hover { opacity: 0.9; }

/* USE CASES ---------------------------------------------------------------- */
.usecases {
  padding: 80px 0 100px;
  border-top: 1px solid hsl(var(--border));
}

.uc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.uc-card {
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s;
}

.uc-card:hover { border-color: hsl(var(--input)); }

.uc-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
  font-weight: 500;
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border));
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.uc-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.uc-card p { font-size: 13px; color: hsl(var(--muted-foreground)); line-height: 1.65; font-weight: 300; }

/* CTA SECTION -------------------------------------------------------------- */
.cta-section { padding: 80px 0 120px; text-align: center; }

.cta-box {
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-xl);
  padding: 72px 40px;
  position: relative;
  overflow: hidden;
}

.cta-box h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 17px;
  color: hsl(var(--muted-foreground));
  margin-bottom: 36px;
  font-weight: 300;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* FOOTER ------------------------------------------------------------------- */
footer {
  border-top: 1px solid hsl(var(--border));
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links { display: flex; gap: 24px; list-style: none; }

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

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

.footer-copy { font-family: var(--mono); font-size: 12px; color: hsl(var(--muted-foreground)); }

/* LIVE TICKER -------------------------------------------------------------- */
.ticker-bar {
  background: hsl(var(--surface));
  border-bottom: 1px solid hsl(var(--border));
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  margin-top: 60px;
}

.ticker-inner {
  display: inline-flex;
  gap: 48px;
  animation: ticker 30s linear infinite;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: hsl(var(--muted-foreground));
}

.ticker-item .t-dot { width: 6px; height: 6px; border-radius: 50%; }

/* UPTIME VISUAL ------------------------------------------------------------ */
.uptime-bars { display: flex; gap: 2px; margin-top: 12px; }

.ub {
  height: 28px;
  flex: 1;
  border-radius: 2px;
  background: hsl(var(--success));
  opacity: 0.85;
}

.ub.d { background: hsl(var(--danger)); opacity: 0.9; }
.ub.w { background: hsl(var(--warning)); opacity: 0.9; }

/* INCIDENT TABLE ----------------------------------------------------------- */
.incident-table { width: 100%; border-collapse: collapse; margin-top: 12px; }

.incident-table th {
  font-family: var(--mono);
  font-size: 10px;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid hsl(var(--border));
  font-weight: 400;
}

.incident-table td {
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

.incident-table td:first-child { color: hsl(var(--foreground)); }

/* FAQ ---------------------------------------------------------------------- */
.faq {
  padding: 80px 0 100px;
  border-top: 1px solid hsl(var(--border));
}

.faq-head { margin-bottom: 40px; }

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

.faq-item { background: hsl(var(--surface)); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
  color: hsl(var(--foreground));
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: hsl(var(--surface-2)); }

.faq-item summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 22px;
  line-height: 1;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-answer {
  padding: 0 24px 22px;
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  font-weight: 300;
  max-width: 780px;
}

/* RESPONSIVE --------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero {padding-top: 96px}
  .features-grid, .plans, .uc-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .db-body { grid-template-columns: 1fr; }
  .db-sidebar { border-right: none; border-bottom: 1px solid hsl(var(--border)); padding-right: 0; padding-bottom: 16px; }
  .db-stats { grid-template-columns: repeat(3, 1fr); }
  nav .nav-links li:not(.nav-cta-item):not(.nav-toggle-item) { display: none; }
  .nav-inner { padding: 0 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links { flex-wrap: wrap; gap: 12px 20px; }
  .container { padding: 0 16px; }
}

/* No purple visited links: author colour:inherit beats the UA :visited style; component classes still set their own colour. */
a{color:inherit}
