@import url('./tokens.css');
@import url('./fonts.css');
@import url('./ticker.css');

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: var(--leading-normal);
  overflow-x: hidden;
}

/* Subtle noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ── Section label (uppercase small label above headings) ── */
.section-label {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-400);
  margin-bottom: var(--space-3);
}

/* ── Section divider — gradient line ── */
.section-divider {
  border: none;
  height: 1px;
  background: var(--gradient-divider);
  margin: 0;
  opacity: 0.5;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-stagger-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Top Bar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

.topbar-logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--primary-400);
}

.topbar-signin {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.google-icon, .google-icon-sm {
  flex-shrink: 0;
}

.topbar-signin:hover {
  border-color: var(--primary-400);
  color: var(--text-primary);
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
}

/* Radial teal glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(13, 158, 158, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

/* ── Hero badge with glow pulse ── */
@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(13, 158, 158, 0.2), inset 0 0 8px rgba(13, 158, 158, 0.05); }
  50% { box-shadow: 0 0 16px rgba(13, 158, 158, 0.4), inset 0 0 12px rgba(13, 158, 158, 0.08); }
}

.hero-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-4);
  background: var(--primary-950);
  border: 1px solid var(--primary-600);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--primary-300);
  margin-bottom: var(--space-8);
  animation: badge-glow 3s ease-in-out infinite;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: var(--leading-relaxed);
}

/* ── CTA Button with glow ── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  background: #fff;
  color: #1f1f1f;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cta-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
}

.hero-trust {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.hero-badge-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary-400);
}

.hero-counter {
  margin-top: var(--space-8);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--primary-400);
  font-weight: var(--font-semibold);
}

.hero-counter span {
  font-variant-numeric: tabular-nums;
}

/* ── Wave Progress ── */
.wave-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-10);
  flex-wrap: wrap;
}

.wave-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
}

.wave-item--done { color: var(--success); border-color: rgba(34, 197, 94, 0.2); }
.wave-item--active { color: var(--primary-300); border-color: var(--primary-700); background: var(--primary-950); }

.wave-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neutral-700);
}

.wave-dot--done {
  background: var(--success);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 4px rgba(13, 158, 158, 0.4); }
  50% { box-shadow: 0 0 12px rgba(13, 158, 158, 0.7); }
}

.wave-dot--active {
  background: var(--primary-400);
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ═══════════════════════════════════
   COMPARISON SECTION
   ═══════════════════════════════════ */
.compare {
  padding: var(--space-16) 0;
}

.compare h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  text-align: center;
  margin-bottom: var(--space-10);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .compare-grid { grid-template-columns: 1fr; }
}

/* DIY card — red/pain border */
.compare-col {
  background: var(--bg-secondary);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--transition-normal);
}

/* Lobstir card — teal glow border */
.compare-col--lobstir {
  border-color: var(--primary-600);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(13, 158, 158, 0.05) 100%);
  box-shadow: 0 0 20px rgba(13, 158, 158, 0.08);
}

.compare-col h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

/* Time badges */
.compare-time {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-6);
}

.compare-col:not(.compare-col--lobstir) .compare-time {
  background: var(--error-muted);
  color: var(--error);
}

.compare-col--lobstir .compare-time {
  background: var(--success-muted);
  color: var(--success);
}

.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

/* DIY items — strikethrough, muted */
.compare-col:not(.compare-col--lobstir) .compare-list li {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--neutral-600);
  opacity: 0.7;
}

/* Lobstir items — bright */
.compare-col--lobstir .compare-list li {
  color: var(--text-primary);
}

.compare-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.compare-icon--x { color: var(--error); }
.compare-icon--check { color: var(--success); }

/* Callout box at bottom of Lobstir card */
.compare-note {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-left: 3px solid var(--primary-500);
  padding: var(--space-3) var(--space-4);
  background: rgba(13, 158, 158, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ═══════════════════════════════════
   HOW IT WORKS / STEPS
   ═══════════════════════════════════ */
.steps {
  padding: var(--space-16) 0;
}

.steps h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  text-align: center;
  margin-bottom: var(--space-10);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  position: relative;
}

/* Dashed connector line between cards (desktop) */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 52px;
  left: calc(33.333% - 10px);
  right: calc(33.333% - 10px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--primary-700) 0, var(--primary-700) 8px, transparent 8px, transparent 16px);
  z-index: 0;
}

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
}

.step-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  position: relative;
  z-index: 1;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-700);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-950);
  border: 2px solid var(--primary-500);
  box-shadow: var(--glow-primary);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--primary-400);
  margin-bottom: var(--space-4);
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-3);
}

.step-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

/* Channel icons with brand colors */
.step-icons {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.step-icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.step-icon-chip svg {
  width: 22px;
  height: 22px;
}

.step-icon-chip--whatsapp svg { color: #25D366; }
.step-icon-chip--telegram svg { color: #26A5E4; }
.step-icon-chip--discord svg { color: #5865F2; }
.step-icon-chip--slack svg { color: #E01E5A; }

/* Model chips with subtle color hints */
.step-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.step-chip {
  padding: var(--space-1) var(--space-3);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  transition: border-color var(--transition-fast);
}

.step-chip:hover { border-color: var(--primary-600); }

.step-chip--claude { border-color: rgba(255, 122, 51, 0.3); color: var(--accent-400); }
.step-chip--gpt { border-color: rgba(16, 163, 127, 0.3); color: #10a37f; }
.step-chip--gemini { border-color: rgba(66, 133, 244, 0.3); color: #4285f4; }
.step-chip--llama { border-color: rgba(102, 51, 153, 0.3); color: #9966cc; }
.step-chip--mistral { border-color: rgba(255, 122, 51, 0.3); color: var(--accent-300); }
.step-chip--groq { border-color: rgba(245, 158, 11, 0.3); color: var(--warning); }

/* Live badge with pulse dot */
.step-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: var(--success-muted);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--success);
  font-weight: var(--font-medium);
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.6); }
}

.step-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: live-pulse 1.5s ease-in-out infinite;
}

/* ═══════════════════════════════════
   USE CASE CATEGORIES
   ═══════════════════════════════════ */
.categories {
  padding: var(--space-16) 0;
}

.categories h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  text-align: center;
  margin-bottom: var(--space-10);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .categories-grid { grid-template-columns: 1fr; }
}

.category-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-600);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background: var(--bg-surface);
}

/* Dashed "anything else" card */
.category-card--dashed {
  border-style: dashed;
  border-color: var(--accent-600);
}

.category-card--dashed:hover {
  border-color: var(--accent-400);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
  line-height: 1;
}

.category-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.category-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

/* ═══════════════════════════════════
   COMPARISON TABLE
   ═══════════════════════════════════ */
.compare-table {
  padding: var(--space-16) 0;
}

.compare-table h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  text-align: center;
  margin-bottom: var(--space-10);
}

.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.compare-table-wrap table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: var(--text-sm);
  font-family: var(--font-body);
}

.compare-table-wrap thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.compare-table-wrap th {
  padding: var(--space-4) var(--space-4);
  text-align: left;
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.compare-table-wrap td {
  padding: var(--space-3) var(--space-4);
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

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

.compare-table-wrap tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* First column (feature name) */
.compare-table-feature,
.compare-table-wrap td:first-child {
  font-weight: var(--font-medium);
  color: var(--text-primary);
  white-space: nowrap;
}

/* Lobstir column highlight */
.compare-table-highlight {
  background: rgba(13, 158, 158, 0.06) !important;
  border-left: 2px solid var(--primary-500);
  border-right: 2px solid var(--primary-500);
}

th.compare-table-highlight {
  color: var(--primary-400);
  font-weight: var(--font-bold);
  border-top: 2px solid var(--primary-500);
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

.compare-table-wrap tbody tr:last-child td.compare-table-highlight {
  border-bottom: 2px solid var(--primary-500);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

/* Cell value indicators */
.ct-yes::before {
  content: '\2713';
  color: var(--primary-400);
  font-weight: var(--font-bold);
}

.ct-no::before {
  content: '\2717';
  color: var(--text-muted);
  opacity: 0.5;
}

.ct-check {
  color: var(--primary-400);
  font-weight: var(--font-medium);
}

.ct-check::before {
  content: '\2713\00a0';
}

.ct-partial {
  color: var(--text-muted);
}

.ct-dim {
  color: var(--text-muted);
  opacity: 0.7;
}

.ct-neutral {
  color: var(--text-secondary);
}

/* ═══════════════════════════════════
   SECURITY
   ═══════════════════════════════════ */
.security {
  padding: var(--space-16) 0;
}

.security h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  text-align: center;
  margin-bottom: var(--space-10);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

/* Center the last row (2 items) */
.security-grid .security-card:nth-child(4) {
  grid-column: 1 / 2;
}

@media (min-width: 769px) {
  .security-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* Center the bottom 2 cards under the top 3 */
  .security-grid .security-card:nth-child(4) {
    grid-column: 1 / 2;
    margin-left: calc(50% + var(--space-2));
  }
  .security-grid .security-card:nth-child(5) {
    margin-right: calc(50% + var(--space-2));
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .security-grid .security-card:nth-child(4) {
    margin-left: calc(50% + var(--space-2));
  }
  .security-grid .security-card:nth-child(5) {
    margin-right: calc(50% + var(--space-2));
  }
}

@media (max-width: 768px) {
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .security-grid .security-card:nth-child(4),
  .security-grid .security-card:nth-child(5) {
    margin-left: 0;
    margin-right: 0;
  }
  /* Center the 5th card when it's alone on the last row */
  .security-grid .security-card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: calc(50% - var(--space-2));
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .security-grid {
    grid-template-columns: 1fr;
  }
  .security-grid .security-card:nth-child(5) {
    max-width: 100%;
  }
}

.security-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.security-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-600);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.security-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  color: var(--primary-400);
}

.security-icon svg {
  width: 32px;
  height: 32px;
}

.security-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.security-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

/* ═══════════════════════════════════
   PRICING
   ═══════════════════════════════════ */
.pricing {
  padding: var(--space-16) 0;
}

.pricing h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  text-align: center;
  margin-bottom: var(--space-3);
}

.pricing-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-8);
}

/* Pill-shaped toggle */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.pricing-toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--neutral-700);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.pricing-toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-primary);
  transition: transform var(--transition-fast);
}

body.annual .pricing-toggle-switch {
  background: var(--primary-500);
}

body.annual .pricing-toggle-switch::after {
  transform: translateX(22px);
}

.pricing-save {
  padding: var(--space-1) var(--space-2);
  background: var(--accent-500);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}

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

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

.price-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-700);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.price-card--featured {
  border-color: var(--primary-500);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(13, 158, 158, 0.08) 100%);
  position: relative;
  box-shadow: 0 0 24px rgba(13, 158, 158, 0.1);
}

.price-card--featured:hover {
  box-shadow: 0 0 32px rgba(13, 158, 158, 0.18), 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Most Popular badge — gradient */
.price-popular {
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-1) var(--space-4);
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-500) 100%);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(13, 158, 158, 0.3);
}

.price-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.price-card .price-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.price-amount {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

.price-period {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: var(--font-regular);
}

.price-annual-amount,
.price-monthly-amount {
  display: block;
}

/* Toggle price visibility via JS */
.price-card .price-annual-amount { display: none; }
.price-card .price-monthly-amount { display: block; }
body.annual .price-card .price-annual-amount { display: block; }
body.annual .price-card .price-monthly-amount { display: none; }

.price-features {
  list-style: none;
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.price-features li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.price-features li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--primary-400);
}

.price-cta {
  display: block;
  width: 100%;
  margin-top: var(--space-6);
  padding: var(--space-3) 0;
  text-align: center;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  border: none;
}

.price-cta--primary {
  background: var(--accent-500);
  color: #fff;
  box-shadow: var(--glow-accent);
}

.price-cta--primary:hover {
  background: var(--accent-600);
  box-shadow: var(--glow-accent-lg);
  transform: translateY(-1px);
}

.price-cta--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.price-cta--outline:hover {
  border-color: var(--primary-500);
  transform: translateY(-1px);
}

.pricing-note {
  text-align: center;
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ═══════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════ */
.final-cta {
  text-align: center;
  padding: var(--space-20) 0;
  position: relative;
}

/* Radial glow — mirrors hero */
.final-cta::before {
  content: '';
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(13, 158, 158, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.final-cta .container { position: relative; z-index: 1; }

.final-cta h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-6);
}

.final-cta p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════
   LEGAL PAGES (Terms, Privacy)
   ═══════════════════════════════════ */
.legal-header {
  padding: var(--space-4) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--text-muted) 15%, transparent);
}

.legal-content {
  padding: var(--space-12) 0 var(--space-16);
}

.legal-container {
  max-width: 780px;
}

.legal-container h1 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.legal-updated {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-10);
}

.legal-container section {
  margin-bottom: var(--space-8);
}

.legal-container h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.legal-container h3 {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.legal-container p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-3);
}

.legal-container ul,
.legal-container ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal-container li {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-1);
}

.legal-container a {
  color: var(--primary-400);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-container a:hover {
  color: var(--primary-300);
}

.legal-container code {
  background: var(--bg-surface, rgba(255,255,255,0.05));
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.legal-container strong {
  color: var(--text-primary);
  font-weight: var(--font-semibold);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.legal-table th,
.legal-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid color-mix(in srgb, var(--text-muted) 15%, transparent);
}

.legal-table th {
  color: var(--text-muted);
  font-weight: var(--font-semibold);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-table td {
  color: var(--text-secondary);
}

/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */
.footer {
  border-top: none;
  padding: var(--space-10) 0 var(--space-8);
}

/* Gradient top border */
.footer::before {
  content: '';
  display: block;
  height: 1px;
  background: var(--gradient-divider);
  opacity: 0.5;
  margin-bottom: var(--space-10);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  color: var(--primary-400);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-copy {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: right;
}

@media (max-width: 640px) {
  .footer-copy { text-align: center; }
}

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

/* ═══════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════ */
.faq {
  padding: var(--space-16) 0;
  text-align: center;
}

.faq h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-10);
}

.faq-grid {
  max-width: 740px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--primary-700);
}

.faq-item[open] {
  border-color: var(--primary-500);
}

.faq-item summary {
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: var(--text-xl);
  color: var(--text-muted);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--primary-400);
}

.faq-item p {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}
