/* dplyr Design System — Dark Theme: White + Red + Slate */

:root {
  /* Background */
  --bg-body: #0a0a0a;
  --bg-surface: #141414;
  --bg-card: #1e1e1e;
  --bg-card-hover: #262626;
  --bg-input: #141414;

  /* Primary / Accent — Red */
  --primary: #ef4444;
  --primary-hover: #dc2626;
  --primary-light: #f87171;
  --primary-glow: rgba(239, 68, 68, 0.25);
  --gradient-primary: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);

  /* Slate accent */
  --slate: #64748b;

  /* Semantic */
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.1);
  --success-border: rgba(34, 197, 94, 0.2);
  --warning: #eab308;
  --warning-bg: rgba(234, 179, 8, 0.1);
  --warning-border: rgba(234, 179, 8, 0.2);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.1);
  --error-border: rgba(239, 68, 68, 0.2);

  /* Text */
  --text-primary: #fafafa;
  --text-secondary: #d4d4d4;
  --text-muted: #a3a3a3;
  --text-dim: #737373;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-emphasis: rgba(255, 255, 255, 0.15);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.4);

  /* Animation */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 200ms;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

a { color: inherit; text-decoration: none; transition: opacity var(--transition-base) var(--ease-out); }
a:hover { opacity: 0.8; }

/* Focus visible — accessibility */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
}
h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
p { color: var(--text-secondary); line-height: 1.7; }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 var(--space-sm); }

/* Navigation */
nav {
  position: sticky; top: 0; width: 100%;
  padding: 1rem 0;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-default);
  z-index: 100;
  margin-bottom: var(--space-md);
}
nav .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
nav .logo {
  font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 700;
  color: var(--text-primary); letter-spacing: -0.05em;
}
nav .logo:hover { color: var(--primary-light); opacity: 1; }
.nav-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-bottom { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 0.75rem; }
.nav-links-row { display: flex; gap: 1.25rem; align-items: center; }
.nav-user { display: flex; align-items: center; gap: 0.75rem; }
.nav-email { color: var(--text-dim); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.nav-logout { background: none; border: none; color: var(--text-muted); cursor: pointer; font-family: inherit; font-size: 0.85rem; padding: 0; }
.nav-logout:hover { color: var(--primary); }
.nav-actions-mobile { display: none; }
.nav-link { color: var(--text-muted); font-weight: 500; font-size: 0.9rem; transition: color var(--transition-base); }
.nav-link:hover { color: var(--text-primary); opacity: 1; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-base) var(--ease-out);
}
.card:hover { border-color: var(--border-emphasis); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 2.75rem; padding: 0 1.5rem;
  background: var(--gradient-primary);
  color: white; font-weight: 600; font-size: 0.95rem;
  border-radius: var(--radius-sm); border: none; cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-base) var(--ease-out);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.btn:hover { box-shadow: 0 0 20px var(--primary-glow); transform: translateY(-1px); opacity: 1; }
.btn:active { transform: translateY(0); opacity: 0.8; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-secondary {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border-default); box-shadow: none;
}
.btn-secondary:hover { background: var(--bg-card-hover); color: var(--text-primary); border-color: var(--border-emphasis); box-shadow: var(--shadow-sm); }

.btn-icon {
  width: 2.5rem; height: 2.5rem; padding: 0;
  border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted); background: transparent; border: none; cursor: pointer;
  transition: all var(--transition-base);
}
.btn-icon:hover { background: var(--bg-card-hover); color: var(--text-primary); }

.btn-google {
  background: white; color: #333; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
  height: 2.75rem; padding: 0 1.5rem;
  border-radius: var(--radius-sm); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: inherit; font-size: 0.95rem;
  transition: all var(--transition-base);
}
.btn-google:hover { background: #f5f5f5; box-shadow: var(--shadow-md); }

.actions { display: flex; gap: 0.75rem; align-items: center; margin-top: 1.5rem; }

/* Forms */
.form-group { margin-bottom: 1.5rem; }

label {
  display: block; color: var(--text-secondary);
  font-weight: 500; font-size: 0.9rem; margin-bottom: 0.5rem;
}

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], input[type="url"], input[type="tel"],
.form-input {
  width: 100%; background: var(--bg-input);
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  padding: 0.75rem 1rem; font-size: 1rem;
  color: var(--text-primary); font-family: inherit;
  transition: all var(--transition-base);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus,
input[type="number"]:focus, input[type="search"]:focus, input[type="url"]:focus,
input[type="tel"]:focus, .form-input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow); background: var(--bg-surface);
}
input::placeholder, .form-input::placeholder { color: var(--text-dim); }

textarea, .form-textarea {
  width: 100%; background: var(--bg-input);
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  padding: 0.75rem 1rem; font-size: 1rem;
  color: var(--text-primary); font-family: inherit;
  resize: vertical; min-height: 120px;
  transition: all var(--transition-base);
}
textarea:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow); background: var(--bg-surface);
}

select, .form-select {
  width: 100%; background: var(--bg-input);
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  padding: 0.75rem 1rem; font-size: 1rem;
  color: var(--text-primary); font-family: inherit; cursor: pointer;
  transition: all var(--transition-base);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1rem;
  padding-right: 2.5rem;
}
select option { background: var(--bg-card); color: var(--text-primary); }
select:focus, .form-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

input[type="checkbox"] { width: 1.125rem; height: 1.125rem; cursor: pointer; accent-color: var(--primary); }

/* Dashboard */
.dashboard-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: var(--space-md); padding-top: var(--space-md);
}
.subtitle { color: var(--text-muted); margin-top: 0.25rem; font-size: 1.1rem; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-sm); margin-bottom: var(--space-lg); }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); padding: 1.5rem;
  display: flex; align-items: center; gap: 1.25rem;
  transition: all var(--transition-base) var(--ease-out);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-emphasis); }
.stat-icon {
  width: 3rem; height: 3rem; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-content { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-label { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--text-primary); line-height: 1; font-family: 'Outfit', sans-serif; }

/* Projects List */
.section-header { margin-bottom: var(--space-sm); }
.projects-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.project-item {
  background: var(--bg-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); padding: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  transition: all var(--transition-base) var(--ease-out);
}
.project-item:hover { transform: translateY(-2px); border-color: var(--border-emphasis); box-shadow: var(--shadow-md); background: var(--bg-card-hover); }
.project-info { flex: 1; min-width: 0; }
.project-info h3 { margin-bottom: 0.375rem; }
.project-link { color: var(--text-primary); transition: color var(--transition-base); }
.project-link:hover { color: var(--primary-light); opacity: 1; }
.project-desc { color: var(--text-dim); font-size: 0.95rem; line-height: 1.5; }
.project-meta { display: flex; align-items: center; gap: var(--space-md); flex-shrink: 0; }
.project-date { color: var(--text-dim); font-size: 0.875rem; white-space: nowrap; }

/* Status Badges */
.status-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.375rem 0.75rem; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-default); white-space: nowrap;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.status-badge.running { color: var(--success); background: var(--success-bg); border-color: var(--success-border); }
.status-badge.pending { color: var(--warning); background: var(--warning-bg); border-color: var(--warning-border); }
.status-badge.stopped, .status-badge.created { color: var(--text-muted); background: rgba(163, 163, 163, 0.1); border-color: rgba(163, 163, 163, 0.2); }

.badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.25rem 0.625rem; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600;
  background: var(--bg-surface); border: 1px solid var(--border-default);
}

/* Empty State */
.empty-state {
  text-align: center; padding: 4rem 2rem;
  background: var(--bg-card); border-radius: var(--radius-md);
  border: 2px dashed var(--border-default);
}
.empty-icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state h3 { margin-bottom: 0.5rem; }
.empty-state p { margin-bottom: 1.5rem; color: var(--text-muted); max-width: 400px; margin-left: auto; margin-right: auto; }

/* Flash Messages */
.flash {
  padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  margin-bottom: 2rem; font-size: 0.95rem; border: 1px solid;
  display: flex; align-items: center; gap: 0.75rem;
}
.flash.notice { background: var(--success-bg); color: var(--success); border-color: var(--success-border); }
.flash.alert { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-border); }

/* Landing Page */
.landing-page { padding: 4rem 0; }
.landing-hero { text-align: center; margin-bottom: 4rem; }
.landing-hero h1 { font-size: 3.5rem; margin-bottom: 1.5rem; line-height: 1.1; font-weight: 800; }
.landing-hero p { font-size: 1.25rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
.landing-actions { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; padding: 4rem 0; }
.feature-card {
  padding: 2rem; background: var(--bg-card); border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  transition: all var(--transition-base) var(--ease-out);
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-emphasis); box-shadow: var(--shadow-lg); background: var(--bg-card-hover); }
.feature-icon {
  margin-bottom: 1rem; color: var(--primary);
  display: flex; align-items: center; width: 3rem; height: 3rem;
  background: rgba(239, 68, 68, 0.1); border-radius: var(--radius-md); padding: 0.75rem;
}
.feature-card h3 { margin-bottom: 0.75rem; }
.feature-card p { color: var(--text-muted); line-height: 1.7; }

/* Gradient text */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.divider { height: 1px; background: var(--border-default); margin: 2rem 0; }

/* Touch UX — larger tap targets on mobile */
@media (pointer: coarse) {
  .btn { min-height: 2.75rem; }
  .btn-icon { min-width: 2.75rem; min-height: 2.75rem; }
  .nav-link { padding: 0.5rem 0; }
  .stat-card { padding: 1.25rem; }
  input[type="text"], input[type="email"], input[type="password"],
  input[type="number"], input[type="search"], input[type="url"], input[type="tel"],
  .form-input { font-size: 16px; /* prevent iOS zoom on focus */ }
}

/* Loading spinner for form submissions */
.btn-loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}
.btn-loading::after {
  content: "";
  position: absolute;
  width: 1.25rem; height: 1.25rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Smooth page transitions */
.card, .stat-card, .project-item { will-change: transform; }

/* Plan & Provider cards (new project) */
.plan-card:has(input:checked), .provider-card:has(input:checked) {
  border-color: var(--primary) !important;
  background: rgba(239, 68, 68, 0.08) !important;
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.plan-card:hover, .provider-card:hover { border-color: var(--border-emphasis) !important; transform: translateY(-1px); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); padding: 2rem;
  transition: all var(--transition-base);
}
.pricing-card:hover { border-color: var(--border-emphasis); box-shadow: var(--shadow-md); }
.pricing-card.featured { border-color: var(--primary); }
.pricing-price { font-size: 2.5rem; font-weight: 800; font-family: 'Outfit', sans-serif; }
.pricing-specs { list-style: none; margin: 1.5rem 0; }
.pricing-specs li { padding: 0.5rem 0; color: var(--text-secondary); font-size: 0.95rem; border-bottom: 1px solid var(--border-subtle); }
.pricing-specs li:last-child { border-bottom: none; }

/* Responsive — Tablet */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  .container { padding: 0 1rem; }

  /* Nav — compact hamburger-less layout */
  nav { padding: 0.75rem 0; margin-bottom: 1rem; }
  nav .container { flex-direction: column; gap: 0.5rem; }
  .nav-top { width: 100%; }
  .nav-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .nav-links-row { gap: 0.75rem; flex-wrap: wrap; }
  .nav-link { font-size: 0.85rem; padding: 0.25rem 0; }
  .nav-user { width: 100%; justify-content: space-between; padding-top: 0.5rem; border-top: 1px solid var(--border-subtle); }
  .nav-email { max-width: 180px; font-size: 0.75rem; }
  .nav-actions-mobile { display: flex; }

  /* Landing */
  .landing-page { padding: 2rem 0; }
  .landing-hero { margin-bottom: 2rem; }
  .landing-hero h1 { font-size: 2rem; }
  .landing-hero p { font-size: 1rem; padding: 0 0.5rem; }
  .landing-actions { flex-direction: column; align-items: center; }
  .landing-actions .btn { width: 100%; max-width: 320px; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; gap: 1rem; padding: 2rem 0; }
  .feature-card { padding: 1.5rem; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; gap: 1rem; max-width: 400px; margin: 0 auto; }
  .pricing-card { padding: 1.5rem; }
  .pricing-price { font-size: 2rem; }

  /* Dashboard */
  .dashboard-header { flex-direction: column; align-items: flex-start; gap: 1rem; padding-top: 1rem; }
  .dashboard-header .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 2rem; }
  .stat-card { padding: 1rem; gap: 1rem; }
  .stat-value { font-size: 1.5rem; }

  /* Projects */
  .project-item { flex-direction: column; align-items: flex-start; padding: 1rem; gap: 0.75rem; }
  .project-meta { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 0.5rem; }
  .projects-list { gap: 0.75rem; }

  /* Project show — stack grid + header */
  .show-grid { grid-template-columns: 1fr !important; }
  .show-header-row { flex-direction: column !important; align-items: flex-start !important; gap: 0.75rem !important; }
  .show-header-title { flex-wrap: wrap !important; gap: 0.5rem !important; }
  .show-header-actions { width: 100%; }
  .show-header-actions .actions { margin-top: 0; width: 100%; }
  .show-header-actions .btn { flex: 1; }

  /* Plan info card on project show */
  .plan-info-card { flex-direction: column !important; align-items: flex-start !important; gap: 1rem !important; padding: 1rem !important; }
  .plan-info-card > div { min-width: unset !important; text-align: left !important; width: 100% !important; }
  .plan-info-card > div:last-child { border-left: none !important; padding-left: 0 !important; margin-left: 0 !important; border-top: 1px solid var(--border-default); padding-top: 1rem !important; }

  /* Instance control buttons — stack on mobile */
  .instance-control-btns { flex-direction: column !important; }
  .instance-control-btns > * { flex: unset !important; width: 100% !important; min-width: unset !important; }

  /* Quick links — single column */
  .quick-links-grid { grid-template-columns: 1fr !important; }

  /* Settings provider grid — 2 columns on mobile */
  .settings-provider-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .settings-provider-grid-2 { grid-template-columns: repeat(2, 1fr) !important; }

  /* Reconfigure section inside settings */
  .reconfigure-section { flex-direction: column !important; gap: 0.75rem !important; align-items: flex-start !important; }
  .reconfigure-section .btn { width: 100% !important; }

  /* Cards */
  .card { padding: 1rem; }

  /* Forms — new project */
  .plan-grid { grid-template-columns: 1fr !important; }
  .provider-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 0.5rem !important; }

  /* Buttons — ensure touch-friendly min height */
  .btn { font-size: 0.9rem; min-height: 2.75rem; height: auto; padding: 0.625rem 1.25rem; }
  .btn-icon { min-width: 2.75rem; min-height: 2.75rem; }
  .btn-google { min-height: 2.75rem; width: 100%; }

  /* Empty state */
  .empty-state { padding: 2rem 1rem; }
  .empty-icon { font-size: 3rem; }

  /* Comparison grid (DIY vs 1mins) */
  .landing-page [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* Use cases grid */
  .landing-page [style*="minmax(250px"] { grid-template-columns: 1fr 1fr !important; }

  /* Terminal — better mobile sizing */
  #terminal-container { margin-left: -1rem; margin-right: -1rem; border-radius: 0 !important; border-left: none !important; border-right: none !important; }
  #terminal-wrapper { height: 300px !important; }
  #terminal-placeholder { height: 250px !important; }

  /* Inline style overrides for project show control grid */
  .control-grid-2col { grid-template-columns: 1fr !important; }
}

  /* Stats grid — 2 columns on tablet, not 1 */
  .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 0.75rem; }

  /* Flash messages */
  .flash { font-size: 0.85rem; padding: 0.75rem 1rem; }

  /* Settings save bar */
  .settings-save-bar { flex-direction: column !important; gap: 0.75rem !important; align-items: stretch !important; }
  .settings-save-bar .btn { width: 100% !important; }
}

/* Responsive — Small phone */
@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  .landing-hero h1 { font-size: 1.75rem; }
  .landing-hero p { font-size: 0.9rem; }

  nav .logo { font-size: 1.25rem; }

  .stats-grid { grid-template-columns: 1fr !important; }
  .stat-card { flex-direction: row; text-align: left; padding: 1rem; }
  .stat-value { font-size: 1.25rem; }

  .pricing-price { font-size: 1.75rem; }

  .btn { width: 100%; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }

  /* Provider grid — stack on very small */
  .provider-grid { grid-template-columns: 1fr !important; }

  /* Use cases grid — single column on phone */
  .landing-page [style*="minmax(250px"] { grid-template-columns: 1fr !important; }

  /* Terminal */
  #terminal-wrapper { height: 250px !important; }
  #terminal-placeholder { height: 200px !important; }
}
