/* MeAside v2 Core Design System — site.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  /* Brand color tokens */
  --pitch-50: #ecfdf5;
  --pitch-100: #d1fae5;
  --pitch-200: #a7f3d0;
  --pitch-300: #6ee7b7;
  --pitch-400: #34d399;
  --pitch-500: #10b981;
  --pitch-600: #059669;
  --pitch-700: #047857;
  --pitch-800: #065f46;
  --pitch-900: #064e3b;

  /* Neutrals & Dark Canvas */
  --bg-dark: #090d16;
  --bg-surface: #0f172a;
  --bg-card: #141e33;
  --bg-card-hover: #1a2742;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(16, 185, 129, 0.3);
  --border-active: #10b981;

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Accents */
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --danger-500: #ef4444;
  --info-500: #38bdf8;

  /* Radii & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 24px rgba(16, 185, 129, 0.25);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08), transparent 45%),
              linear-gradient(to bottom, #090d16, #0b1120);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--pitch-500);
  color: #000;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  z-index: 9999;
  text-decoration: none;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 20px;
  outline: 3px solid #fff;
}

/* Focus visibility for WCAG AA */
:focus-visible {
  outline: 2px solid var(--pitch-400);
  outline-offset: 3px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
}

a {
  color: var(--pitch-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--pitch-300);
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
}
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pitch-500), var(--pitch-700));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}
.logo-wrap span.brand-text {
  background: linear-gradient(to right, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--pitch-400);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 2px;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--pitch-500);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--pitch-500), var(--pitch-600));
  color: #032116;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--pitch-400), var(--pitch-500));
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  color: #021a11;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  color: #fff;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-outline-pitch {
  background: transparent;
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--pitch-300);
}
.btn-outline-pitch:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--pitch-400);
  color: #fff;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

/* Badge / Chip */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-free {
  background: rgba(16, 185, 129, 0.18);
  color: var(--pitch-300);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.badge-optional {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.badge-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* Cards & Surfaces */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.card:hover {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card-featured {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06), rgba(20, 30, 51, 0.9));
  border-color: rgba(16, 185, 129, 0.35);
  position: relative;
  overflow: hidden;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  position: relative;
}
.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--pitch-300);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-title {
  margin-bottom: 20px;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--pitch-400), #a7f3d0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-description {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 580px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 36px;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}
.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.proof-item svg {
  color: var(--pitch-400);
  flex-shrink: 0;
}

/* Section styling */
.section {
  padding: 80px 0;
  position: relative;
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-tag {
  color: var(--pitch-400);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-title {
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* Feature Strip: Free Forever */
.strip-free {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), rgba(6, 78, 59, 0.25));
  border-top: 1px solid rgba(16, 185, 129, 0.3);
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
  padding: 24px 0;
  margin: 20px 0;
}
.strip-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.strip-pill {
  display: flex;
  align-items: center;
  gap: 12px;
}
.strip-pill svg {
  color: var(--pitch-400);
}
.strip-text {
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}
.strip-subtext {
  font-size: 0.9rem;
  color: var(--pitch-200);
}

/* Step / Process Numbers */
.step-number {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--pitch-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* Store Buttons Group */
.store-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.store-btn:hover {
  background: #111;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: #fff;
}
.store-btn-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
}
.store-btn-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.store-btn-main {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}
.faq-item[open] {
  border-color: rgba(16, 185, 129, 0.4);
}
.faq-question {
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--pitch-400);
  transition: transform var(--transition-fast);
}
.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #060910;
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  margin: 16px 0;
  max-width: 320px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

/* Cookie / Analytics Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  padding: 20px;
  z-index: 1000;
  display: none;
  animation: slideUp 0.3s ease-out;
}
.cookie-banner.show {
  display: block;
}
.cookie-content {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.cookie-actions {
  display: flex;
  gap: 10px;
}

/* Form controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-input, .form-select, .form-textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--pitch-500);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-dim);
}

/* Toast message */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--pitch-500);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.92rem;
  font-weight: 600;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.25s ease-out;
}
.toast.active {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas, .hero-proof {
    justify-content: center;
  }
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-nav .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(9, 13, 22, 0.98);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 16px;
  }
  .site-nav .nav-links.open {
    display: flex;
  }
  .mobile-nav-toggle {
    display: inline-flex;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
