/* =====================================================================
   AllAI US — Design System
   Light, friendly, mainstream consumer-tech feel.
   ===================================================================== */

:root {
  --bg: #f6f8fb;
  --bg-soft: #eef4f8;
  --surface: #ffffff;
  --surface-alt: #f8fbff;
  --border: #dbe4ee;
  --border-strong: #c8d5e2;

  --text: #16202a;
  --text-soft: #506070;
  --text-muted: #76879a;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #dbeafe;

  --accent-coral: #ff7a59;
  --accent-sky: #7cc9ff;
  --accent-mint: #b9efd8;
  --accent-mint-dark: #1f9d68;
  --accent-gold: #ffd166;
  --accent-lavender: #c8b6ff;

  --success: #1f9d68;
  --danger: #d64545;

  --shadow-sm: 0 8px 24px rgba(20, 41, 61, 0.06);
  --shadow-md: 0 18px 50px rgba(20, 41, 61, 0.10);
  --shadow-lg: 0 28px 80px rgba(20, 41, 61, 0.14);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --radius-xl: 28px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--primary-hover); }

img { max-width: 100%; display: block; }

::selection { background: var(--primary-soft); color: var(--text); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #c8d5e2;
  border-radius: 999px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #a8b8c8; }

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

/* Color helpers */
.text-text { color: var(--text); }
.text-soft { color: var(--text-soft); }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-coral { color: var(--accent-coral); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

.surface { background: var(--surface); }
.surface-alt { background: var(--surface-alt); }
.bg-soft { background: var(--bg-soft); }

.font-display { font-family: 'Manrope', 'Inter', sans-serif; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow-sm);
}
.site-header .header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.04em;
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}
.brand-text {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-text .tld { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  text-transform: none;
}
.nav-links a:hover { color: var(--primary); }

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: #fff;
}
.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-secondary:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--text);
  transform: translateY(-1px);
}
.btn-lg {
  padding: 0.95rem 1.7rem;
  font-size: 1rem;
  border-radius: 14px;
}
.btn-icon { width: 18px; height: 18px; }

/* ---------- Badges & Pills ---------- */
.badge-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}
.badge-eyebrow.coral {
  background: rgba(255,122,89,0.15);
  color: #d65a3a;
}
.badge-eyebrow.mint {
  background: rgba(185,239,216,0.55);
  color: var(--accent-mint-dark);
}
.badge-eyebrow.gold {
  background: rgba(255,209,102,0.25);
  color: #b88200;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-soft);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 9rem 1.5rem 6rem;
  background:
    radial-gradient(circle at 8% 18%, rgba(124,201,255,0.18), transparent 55%),
    radial-gradient(circle at 92% 88%, rgba(255,122,89,0.12), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #eef4f8 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(80,96,112,0.18) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0));
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 980px) {
  .hero { padding: 7.5rem 1.5rem 4.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.hero-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 1.25rem 0 0;
}
@media (max-width: 640px) {
  .hero-title { font-size: clamp(2rem, 8vw, 3.4rem); }
}
.hero-title .underline-coral {
  text-decoration: underline;
  text-decoration-color: var(--accent-coral);
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}
.hero-title .accent-primary { color: var(--primary); }

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-soft);
  max-width: 36rem;
  margin-top: 1.5rem;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.hero-trust .check-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-trust .check-item svg { color: var(--primary); width: 16px; height: 16px; }

.hero-chips {
  margin-top: 2.25rem;
}
.hero-chips-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
}
.hero-chips-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}

/* Hero visual */
.hero-visual-wrap {
  position: relative;
}
.hero-visual {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}
.hero-visual .window-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.25rem 0.25rem 0.85rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.tl { width: 12px; height: 12px; border-radius: 999px; }
.tl.coral { background: var(--accent-coral); }
.tl.gold  { background: var(--accent-gold); }
.tl.mint  { background: var(--accent-mint-dark); }
.window-bar .url-pill {
  margin-left: 0.85rem;
  flex: 1;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
}

.app-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.app-tab {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border);
}
.app-tab.active {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary);
}

.chat-bubble {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.chat-avatar {
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; flex-shrink: 0;
}
.chat-text {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}
.chat-text.assistant {
  background: var(--primary-soft);
  border-color: rgba(37,99,235,0.18);
}

.preview-image-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 0.75rem 0;
  height: 180px;
  background: var(--surface-alt);
}
.preview-image-frame img { width: 100%; height: 100%; object-fit: cover; }

.preview-actions {
  display: flex; gap: 0.45rem; flex-wrap: wrap;
  margin-top: 0.75rem;
}
.preview-action {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-soft);
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  font-size: 0.78rem; font-weight: 500;
}
.preview-progress {
  margin-top: 0.85rem;
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 0.78rem; color: var(--text-muted);
}
.preview-progress .bar {
  flex: 1; height: 6px; background: var(--surface-alt);
  border-radius: 999px; overflow: hidden;
}
.preview-progress .fill {
  height: 100%; width: 72%; background: var(--primary);
  border-radius: 999px;
}

.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.7rem 0.95rem;
  box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text);
  z-index: 3;
  animation: floatGentle 6s ease-in-out infinite;
}
.float-card .dot {
  width: 9px; height: 9px; border-radius: 999px; flex-shrink: 0;
}
.float-card.fc-mint { top: -18px; left: -18px; }
.float-card.fc-mint .dot { background: var(--accent-mint-dark); }
.float-card.fc-sky  { bottom: -22px; right: -16px; animation-delay: 1.5s; }
.float-card.fc-sky  .dot { background: var(--accent-sky); }

@media (max-width: 640px) {
  .float-card.fc-mint { top: -10px; left: 8px; }
  .float-card.fc-sky  { bottom: -14px; right: 8px; }
}

/* ---------- Models strip ---------- */
.models-strip {
  padding: 3rem 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.models-inner { max-width: 1280px; margin: 0 auto; }
.models-title {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.models-row {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  justify-content: center;
}
.model-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
  cursor: default;
}
.model-chip:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.model-dot {
  width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0;
}
.model-dot.mint     { background: var(--accent-mint-dark); }
.model-dot.sky      { background: var(--accent-sky); }
.model-dot.coral    { background: var(--accent-coral); }
.model-dot.gold     { background: var(--accent-gold); }
.model-dot.lavender { background: var(--accent-lavender); }
.model-dot.primary  { background: var(--primary); }

.model-chip img.brand-logo {
  width: 16px; height: 16px;
}
.model-chip.more {
  background: rgba(255,122,89,0.10);
  color: #d65a3a;
  border-color: rgba(255,122,89,0.28);
  font-weight: 600;
}
.model-chip.more:hover {
  background: rgba(255,122,89,0.18);
  border-color: var(--accent-coral);
  color: #b04826;
}

/* ---------- Section base ---------- */
.section {
  padding: 6rem 1.5rem;
}
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.section-head {
  max-width: 760px;
  margin-bottom: 3rem;
}
.section-head.center {
  margin-left: auto; margin-right: auto;
  text-align: center;
}
.section h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.025em;
  margin-top: 1rem;
}
.section h2 .accent { color: var(--primary); }
.section-sub {
  margin-top: 1rem;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 640px;
}
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex; flex-direction: column;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.feature-card .media-frame {
  height: 128px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  background: var(--surface-alt);
}
.feature-card .media-frame img { width: 100%; height: 100%; object-fit: cover; }

.icon-tile {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.icon-tile.tile-primary { background: var(--primary-soft); color: var(--primary); }
.icon-tile.tile-coral   { background: rgba(255,122,89,0.16); color: #d65a3a; }
.icon-tile.tile-mint    { background: rgba(185,239,216,0.55); color: var(--accent-mint-dark); }
.icon-tile.tile-gold    { background: rgba(255,209,102,0.25); color: #b88200; }
.icon-tile.tile-sky     { background: rgba(124,201,255,0.22); color: #2a8cc7; }
.icon-tile svg { width: 24px; height: 24px; }

.feature-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.feature-cat .cat-dot {
  width: 7px; height: 7px; border-radius: 999px;
}
.feature-cat .cat-dot.sky      { background: var(--accent-sky); }
.feature-cat .cat-dot.primary  { background: var(--primary); }
.feature-cat .cat-dot.coral    { background: var(--accent-coral); }
.feature-cat .cat-dot.mint     { background: var(--accent-mint-dark); }

.feature-card h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0.25rem 0 0.5rem;
  letter-spacing: -0.015em;
}
.feature-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Install CTA card ---------- */
.install-cta-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  max-width: 1080px;
  margin: 2.5rem auto 0;
  border-top: 3px solid var(--primary);
}
.install-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}
@media (max-width: 760px) {
  .install-pills { grid-template-columns: 1fr; }
}
.install-pill {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  display: flex; align-items: center; gap: 0.85rem;
}
.install-pill .pill-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.install-pill .pill-icon.primary { background: var(--primary-soft); color: var(--primary); }
.install-pill .pill-icon.mint    { background: rgba(185,239,216,0.6); color: var(--accent-mint-dark); }
.install-pill .pill-icon.coral   { background: rgba(255,122,89,0.18); color: #d65a3a; }
.install-pill .pill-icon svg { width: 18px; height: 18px; }
.install-pill .pill-title {
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
}
.install-pill .pill-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.install-cta-card .cta-row {
  display: flex; justify-content: center;
  margin-top: 0.5rem;
}
.install-cta-card .fine {
  text-align: center;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---------- How it works ---------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1080px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .how-grid { grid-template-columns: 1fr; } }
.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.how-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.how-num {
  width: 48px; height: 48px; border-radius: 999px;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.how-step-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 0.85rem;
}
.how-step-icon svg { width: 20px; height: 20px; }
.how-card h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: 1.05rem;
  margin: 0.35rem 0 0.45rem;
}
.how-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---------- Compare table ---------- */
.compare-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.compare-table th, .compare-table td {
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}
.compare-table th.col-allai {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}
.compare-table tbody tr:nth-child(even) { background: #fafcff; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td.col-allai {
  background: rgba(219,234,254,0.45);
  font-weight: 600;
  color: var(--text);
}
.compare-table .check { color: var(--success); font-weight: 700; margin-right: 0.4rem; }
.compare-table .cross { color: var(--text-muted); font-weight: 600; margin-right: 0.4rem; }
.compare-table .row-label { font-weight: 600; color: var(--text); }
@media (max-width: 760px) {
  .compare-table { font-size: 0.85rem; }
  .compare-table th, .compare-table td { padding: 0.7rem 0.7rem; }
}

/* ---------- Performance ---------- */
.perf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 980px) { .perf-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.perf-rows { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.perf-row .perf-row-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 0.4rem;
}
.perf-row .perf-name {
  font-weight: 600; color: var(--text); font-size: 0.95rem;
}
.perf-row .perf-value {
  font-family: 'Manrope', sans-serif;
  font-weight: 700; color: var(--primary);
  font-size: 0.95rem;
}
.perf-bar {
  height: 8px;
  background: var(--primary-soft);
  border-radius: 999px;
  overflow: hidden;
}
.perf-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 1.4s cubic-bezier(0.22,1,0.36,1);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 2rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
}
.stat-card .stat-num {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.85rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.stat-card .stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-weight: 500;
}

.media-frame.tall {
  height: 480px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  box-shadow: var(--shadow-md);
}
.media-frame.tall img { width: 100%; height: 100%; object-fit: cover; }
.media-frame.tall::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 0 80px rgba(20,41,61,0.10);
  pointer-events: none;
}
@media (max-width: 980px) {
  .media-frame.tall { height: 320px; }
}

/* ---------- Philosophy ---------- */
.philosophy-divider {
  height: 1px; background: var(--border);
  max-width: 200px; margin: 0 auto 3rem;
}
.philosophy-stack {
  max-width: 760px;
  margin: 1.5rem auto 0;
  display: flex; flex-direction: column;
  gap: 1.25rem;
}
.philosophy-stack p {
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.75;
  text-align: center;
}
.philosophy-stack p.strong-text {
  color: var(--text);
  font-weight: 500;
}
.philosophy-stack p.semi {
  color: var(--text);
  font-weight: 600;
}
.philosophy-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 2rem auto 0;
}
.philosophy-pill svg { width: 16px; height: 16px; }

/* ---------- Final CTA ---------- */
.final-cta-card {
  max-width: 1080px;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow-md);
  padding: 3.5rem 2.5rem;
  text-align: center;
}
.final-cta-card .cta-row {
  display: flex; justify-content: center; gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.final-cta-card .fine {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.social-proof {
  margin-top: 2.5rem;
  text-align: center;
}
.social-proof .sp-label {
  font-size: 0.82rem; color: var(--text-muted);
  font-weight: 500; margin-bottom: 0.85rem;
}
.social-proof .sp-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem;
}
.sp-logo {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3.5rem 1.5rem 2rem;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.footer-brand p {
  color: var(--text-soft);
  margin-top: 0.85rem;
  font-size: 0.95rem;
  max-width: 320px;
}
.footer-brand .footer-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.65rem;
}
.footer-col h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.85rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: var(--text-soft); font-size: 0.92rem; }
.footer-col a:hover { color: var(--primary); }

.divider { height: 1px; background: var(--border); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  padding-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-bottom .right {
  display: flex; align-items: center; gap: 1rem;
}
.green-pulse {
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.green-pulse .gd {
  width: 8px; height: 8px; border-radius: 999px; background: var(--success);
  box-shadow: 0 0 0 0 rgba(31,157,104,0.6);
  animation: greenPulse 2s ease-in-out infinite;
}
@keyframes greenPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(31,157,104,0.5); }
  50%     { box-shadow: 0 0 0 8px rgba(31,157,104,0); }
}

/* ---------- Help widget ---------- */
.help-widget {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 70;
}
.help-bubble {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, background 0.2s ease;
}
.help-bubble:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}
.help-bubble svg { width: 26px; height: 26px; }

.help-panel {
  position: absolute;
  right: 0; bottom: 70px;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.help-panel.open {
  opacity: 1; pointer-events: auto;
  transform: translateY(0) scale(1);
}
.help-header {
  display: flex; align-items: center; gap: 0.7rem;
  margin-bottom: 0.85rem;
}
.help-avatar {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: 'Manrope', sans-serif;
}
.help-header .name {
  font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: 0.95rem;
}
.help-header .status {
  font-size: 0.78rem; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.help-header .status .gd {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--success);
}
.help-bubble-msg {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}
.help-input-row {
  display: flex; gap: 0.4rem;
}
.help-input {
  flex: 1;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
}
.help-input:focus { outline: none; border-color: var(--primary); }
.help-send {
  background: var(--primary);
  color: #fff; border: none;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex; align-items: center;
}
.help-send:hover { background: var(--primary-hover); }
.help-send svg { width: 16px; height: 16px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Animations ---------- */
@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes loaderPulse {
  0%, 100% { opacity: 0.25; transform: scale(0.9); }
  50%      { opacity: 1;    transform: scale(1); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes failPop {
  0%   { opacity: 0; transform: scale(0.4) rotate(-8deg); }
  60%  { opacity: 1; transform: scale(1.1) rotate(2deg); }
  100% { opacity: 1; transform: scale(1)   rotate(0); }
}
@keyframes badgeFlash {
  0%   { background: #ecfdf5; }
  40%  { background: #bbf7d0; }
  100% { background: #ecfdf5; }
}

/* ---------- Install Modal ---------- */
.install-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.install-modal.open { display: flex; }
.install-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(20,41,61,0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.install-modal-shell {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 26px;
  border-top: 4px solid var(--primary);
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.4s cubic-bezier(0.22,1,0.36,1);
}
@media (max-width: 640px) {
  .install-modal-shell { padding: 2rem 1.25rem; border-radius: 20px; }
}
.install-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 1.3rem; font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1;
}
.install-modal-close:hover {
  background: #fee2e2;
  color: var(--danger);
  border-color: rgba(214,69,69,0.3);
}

[data-install-view] { display: block; }
[data-install-view].hidden { display: none; }

.install-modal h2 {
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  margin-top: 0.85rem;
}
.install-modal h2 .accent { color: var(--primary); }
.install-modal .center-sub {
  text-align: center;
  max-width: 28rem;
  margin: 0.85rem auto 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}
.install-modal .badge-row {
  display: flex; justify-content: center;
}

.install-notice {
  margin-top: 1.5rem;
  background: rgba(219,234,254,0.4);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  gap: 0.85rem;
}
.install-notice .ic-tile {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.install-notice .ic-tile svg { width: 16px; height: 16px; }
.install-notice .nt-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.install-notice .nt-body {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin-top: 0.25rem;
}

.autocopy-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #ecfdf5;
  border: 1px solid rgba(31,157,104,0.4);
  color: var(--success);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem; font-weight: 600;
  margin: 1.25rem auto 0;
}
.autocopy-badge .ac-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--success);
}
.autocopy-badge svg { width: 14px; height: 14px; }
.autocopy-badge.refreshed { animation: badgeFlash 0.6s ease-out; }

.modal-row-center {
  display: flex; justify-content: center;
  margin-top: 0.5rem;
}

.modal-command-box {
  background: #0f172a;
  border-radius: 14px;
  padding: 1.25rem;
  margin-top: 1.25rem;
  position: relative;
}
.modal-command-box .cmd-header {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.modal-command-box .cmd-header .tl {
  width: 11px; height: 11px; border-radius: 999px;
}
.modal-command-box .cmd-header .tl.coral { background: #ff7a59; }
.modal-command-box .cmd-header .tl.gold  { background: #ffd166; }
.modal-command-box .cmd-header .tl.mint  { background: #7dd3a4; }
.modal-command-box .cmd-header .cmd-label {
  margin-left: 0.6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  flex: 1;
}
.modal-command-box .copy-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s ease;
}
.modal-command-box .copy-btn:hover {
  background: rgba(255,255,255,0.16);
}
.modal-command-box .copy-btn svg { width: 13px; height: 13px; }
.modal-command-box pre {
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, "Courier New", monospace;
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.55;
}
.modal-command-box .tok-fn  { color: #93c5fd; }
.modal-command-box .tok-arg { color: #c4b5fd; }
.modal-command-box .tok-kw  { color: #fca5a5; }
.modal-command-box .tok-str { color: #86efac; }

.modal-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
@media (max-width: 600px) {
  .modal-steps { grid-template-columns: 1fr; }
}
.modal-step {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.modal-step:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.modal-step .step-n {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: 0.78rem;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 0.6rem;
}
.modal-step .step-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 0.55rem;
}
.modal-step .keys {
  display: flex; justify-content: center; gap: 0.3rem; align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.kbd {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.6rem;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-bottom: 2px solid var(--border-strong);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 600;
}

.modal-fine {
  text-align: center;
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* Loading view */
.install-loader {
  width: 64px; height: 64px;
  margin: 0.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 5px;
}
.install-loader .lq {
  background: var(--primary);
  border-radius: 6px;
  animation: loaderPulse 1.4s ease-in-out infinite;
}
.install-loader .lq:nth-child(1) { opacity: 0.25; animation-delay: 0s; }
.install-loader .lq:nth-child(2) { opacity: 0.5;  animation-delay: 0.2s; }
.install-loader .lq:nth-child(3) { opacity: 0.75; animation-delay: 0.4s; }
.install-loader .lq:nth-child(4) { opacity: 1;    animation-delay: 0.6s; }

.install-checks {
  max-width: 28rem;
  margin: 1.75rem auto 0;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.install-check {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  display: flex; align-items: center; gap: 0.85rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.install-check.done {
  background: #ecfdf5;
  border-color: rgba(31,157,104,0.35);
}
.install-check-ind {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.install-check-ind .spinner {
  width: 18px; height: 18px;
  border-radius: 999px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}
.install-check.done .install-check-ind .spinner { display: none; }
.install-check .check-icon {
  display: none;
  color: var(--success);
  width: 18px; height: 18px;
}
.install-check.done .check-icon { display: block; }
.install-check .check-text {
  font-size: 0.9rem;
  color: var(--text);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: 18px; right: 18px;
  background: #fff;
  border: 1px solid rgba(31,157,104,0.35);
  color: var(--text);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 500;
  z-index: 200;
  transform: translateX(120%);
  transition: transform 0.3s ease;
}
.toast.show { transform: translateX(0); }
.toast .toast-icon {
  width: 20px; height: 20px; color: var(--accent-mint-dark);
  flex-shrink: 0;
}

/* ---------- Install-failed page ---------- */
.failed-main {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 7rem 1.5rem 4rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,122,89,0.12), transparent 55%),
    radial-gradient(circle at 88% 82%, rgba(255,209,102,0.10), transparent 55%),
    var(--bg-soft);
}
.failed-card {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow-md);
  padding: 3rem 2.5rem;
  text-align: center;
}
@media (max-width: 600px) {
  .failed-card { padding: 2rem 1.25rem; border-radius: 20px; }
}
.failed-icon {
  width: 88px; height: 88px;
  border-radius: 999px;
  background: #fff4f1;
  color: var(--accent-coral);
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto;
  animation: failPop 0.7s cubic-bezier(0.34,1.56,0.64,1);
}
.failed-icon svg { width: 44px; height: 44px; }
.failed-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #fef2f2;
  border: 1px solid rgba(214,69,69,0.3);
  color: var(--danger);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 1.5rem;
}
.failed-card h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin-top: 1.25rem;
  letter-spacing: -0.025em;
}
.failed-card h1 .accent { color: var(--danger); }
.failed-card .lead {
  margin: 1rem auto 0;
  max-width: 28rem;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.6;
}
.failed-info {
  margin-top: 1.5rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 1.25rem;
  text-align: left;
  display: flex; gap: 0.85rem;
}
.failed-info .ic {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #fef3c7;
  color: #b45309;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.failed-info .ic svg { width: 16px; height: 16px; }
.failed-info b {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.failed-info ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}
.failed-steps {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}
.failed-steps p { margin-right: 0.5rem; }
.failed-step-keys {
  display: inline-flex; align-items: center; gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}
.redirect-bar {
  height: 6px;
  background: var(--primary-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 2rem;
}
.redirect-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 999px;
}
.redirect-msg {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 0.65rem;
}
.failed-cta-row {
  display: flex; justify-content: center; gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ---------- Utility ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.hidden { display: none !important; }
