/* ═══════════════════════════════════════════════════════════════
   MUUDAY — Next.js Design System (Static Site Port)
   Fonts: Plus Jakarta Sans (body), Bricolage Grotesque (display)
   Colors: Cool slate neutrals + lime brand
════════════════════════════════════════════════════════════════ */

/* ── Google Fonts ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  /* Brand (lime) */
  --color-brand-50:  #f6fef0;
  --color-brand-100: #e7fdd5;
  --color-brand-200: #d0fba9;
  --color-brand-300: #b2f573;
  --color-brand-400: #9FE870;
  --color-brand-500: #8ed85f;
  --color-brand-600: #6bb346;
  --color-brand-700: #4d8e33;
  --color-brand-800: #3d6b1f;
  --color-brand-900: #2d5016;

  /* Accent (green) */
  --color-accent-50:  #f0fdf4;
  --color-accent-100: #dcfce7;
  --color-accent-200: #bbf7d0;
  --color-accent-300: #86efac;
  --color-accent-400: #4ade80;
  --color-accent-500: #22c55e;
  --color-accent-600: #16a34a;
  --color-accent-700: #15803d;

  /* Slate neutrals */
  --color-page-bg:   #f8fafc;
  --color-surface:   #ffffff;
  --color-surface-soft: #f1f5f9;
  --color-muted:     #475569;
  --color-text:      #0f172a;
  --color-text-2:    #1e293b;
  --color-text-3:    #64748b;
  --color-border:    #e2e8f0;
  --color-border-soft: #f1f5f9;

  /* Header */
  --color-header-dark:  #4a7c2f;
  --color-header-light: rgba(255,255,255,0.95);

  /* Utility */
  --color-blue-500: #3b82f6;
  --color-blue-600: #2563eb;
  --color-blue-700: #1d4ed8;
  --color-amber-400: #fbbf24;

  /* Footer */
  --color-footer-bg: #f2f4f7;

  /* Fonts */
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;

  /* Shadows (Tailwind defaults) */
  --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md:  0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl:  0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lime: 0 20px 25px -5px rgba(159,232,112,0.25), 0 8px 10px -6px rgba(159,232,112,0.25);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 24px;
  --radius-2xl: 40px;
  --radius-full: 999px;

  /* Spacing */
  --section-pad-mobile:  48px;
  --section-pad-tablet:  64px;
  --section-pad-desktop: 112px;
  --shell-max: 1200px;

  /* Transitions */
  --t-fast: 150ms;
  --t-base: 200ms;
  --t-slow: 400ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: rgba(37, 99, 235, 0.18); }
:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* Page fade-in */
main { animation: fadeIn 0.2s ease-out; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Typography ─────────────────────────────────────────────── */
.font-display { font-family: var(--font-display); }

/* ── Layout ─────────────────────────────────────────────────── */
.mu-shell {
  width: min(100%, var(--shell-max));
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 768px) {
  .mu-shell { padding-inline: 2rem; }
}

.mu-section {
  padding-top: var(--section-pad-mobile);
  padding-bottom: var(--section-pad-mobile);
}
@media (min-width: 768px) {
  .mu-section {
    padding-top: var(--section-pad-tablet);
    padding-bottom: var(--section-pad-tablet);
  }
}
@media (min-width: 1024px) {
  .mu-section {
    padding-top: var(--section-pad-desktop);
    padding-bottom: var(--section-pad-desktop);
  }
}

/* ── Navigation ─────────────────────────────────────────────── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  transition: background-color var(--t-base) ease, border-color var(--t-base) ease;
}
#navbar.dark {
  background: var(--color-header-dark);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
}
#navbar.light {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 16px;
}
@media (min-width: 768px) {
  .nav-inner { padding: 8px 32px; }
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
  flex-shrink: 0;
}
#navbar.dark .nav-logo { color: #fff; }
#navbar.light .nav-logo { color: var(--color-text); }

.nav-links {
  display: none;
  flex: 1;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-links a {
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 4px 8px;
  transition: color var(--t-base) ease;
}
#navbar.dark .nav-links a { color: rgba(255,255,255,0.80); }
#navbar.dark .nav-links a:hover { color: #fff; }
#navbar.dark .nav-links a.active { color: #fff; }
#navbar.light .nav-links a { color: var(--color-muted); }
#navbar.light .nav-links a:hover { color: var(--color-text); }
#navbar.light .nav-links a.active { color: #3d6b1f; }

.nav-actions {
  display: none;
  align-items: center;
  gap: 8px;
}
@media (min-width: 768px) { .nav-actions { display: flex; } }

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 18px;
  cursor: pointer;
  background: transparent;
}
#navbar.dark .mobile-menu-btn {
  color: #fff;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
}
#navbar.light .mobile-menu-btn {
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
}
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0,0,0,0.3);
}
.mobile-menu.open { display: block; }
.mobile-menu-panel {
  position: absolute;
  top: 0; right: 0;
  width: 280px;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: slideInRight 0.3s var(--ease-out);
}
#navbar.dark ~ .mobile-menu .mobile-menu-panel {
  background: var(--color-header-dark);
}
#navbar.light ~ .mobile-menu .mobile-menu-panel {
  background: #fff;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.mobile-menu-panel a,
.mobile-menu-panel button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
}
#navbar.dark ~ .mobile-menu .mobile-menu-panel a,
#navbar.dark ~ .mobile-menu .mobile-menu-panel button {
  color: rgba(255,255,255,0.80);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.10);
}
#navbar.dark ~ .mobile-menu .mobile-menu-panel a:hover,
#navbar.dark ~ .mobile-menu .mobile-menu-panel button:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
}
#navbar.dark ~ .mobile-menu .mobile-menu-panel a.active {
  background: rgba(159,232,112,0.15);
  border-color: rgba(159,232,112,0.50);
  color: #fff;
}
#navbar.light ~ .mobile-menu .mobile-menu-panel a,
#navbar.light ~ .mobile-menu .mobile-menu-panel button {
  color: var(--color-muted);
  background: #fff;
  border-color: var(--color-border);
}
#navbar.light ~ .mobile-menu .mobile-menu-panel a:hover,
#navbar.light ~ .mobile-menu .mobile-menu-panel button:hover {
  border-color: rgba(159,232,112,0.40);
  color: #3d6b1f;
}
#navbar.light ~ .mobile-menu .mobile-menu-panel a.active {
  background: rgba(159,232,112,0.08);
  border-color: #8ed85f;
  color: #3d6b1f;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform var(--t-base) ease, background-color var(--t-base) ease, box-shadow var(--t-base) ease, border-color var(--t-base) ease, color var(--t-base) ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Utility buttons (header) */
.btn-sm  { padding: 8px 16px; font-size: 0.75rem; border-radius: var(--radius-md); }
.btn-md  { padding: 12px 24px; font-size: 0.95rem; border-radius: var(--radius-md); }

.btn-primary {
  background: var(--color-blue-600);
  color: #fff;
}
.btn-primary:hover { background: var(--color-blue-700); }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-muted);
}
.btn-ghost:hover { border-color: var(--color-blue-600); color: var(--color-blue-600); }

/* Landing CTAs (pill shape) */
.btn-landing {
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.btn-slate {
  background: var(--color-text);
  color: #fff;
}
.btn-slate:hover { background: #1e293b; box-shadow: var(--shadow-xl); }

.btn-lime {
  background: var(--color-brand-400);
  color: var(--color-text);
}
.btn-lime:hover { background: var(--color-brand-500); box-shadow: var(--shadow-lime); }

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.20);
  color: #fff;
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.40); background: rgba(255,255,255,0.05); }

.btn-link {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  background: none;
  border: none;
  padding: 0;
}
.btn-link:hover { color: #334155; }

/* ── Footer ─────────────────────────────────────────────────── */
#footer {
  background: var(--color-footer-bg);
  border-top: 1px solid var(--color-border);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 16px;
}
@media (min-width: 768px) {
  .footer-inner { padding: 64px 32px; }
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
@media (min-width: 768px) {
  .footer-top { flex-direction: row; align-items: center; }
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--color-text);
  line-height: 1;
}
@media (min-width: 768px) {
  .footer-logo { font-size: 3rem; }
}

.footer-tagline {
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-text);
  color: #fff;
  transition: background var(--t-base) ease;
}
.footer-social a:hover { background: #334155; }
.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-divider {
  margin: 40px 0;
  border: none;
  border-top: 1px solid #cbd5e1;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-col-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.footer-links {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--color-muted);
  transition: color var(--t-base) ease;
}
.footer-links a:hover {
  color: var(--color-text);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #cbd5e1;
}
.footer-bottom p {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: transform var(--t-base) ease, box-shadow var(--t-base) ease, border-color var(--t-base) ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--color-brand-400);
}

.card-flat {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) ease, box-shadow var(--t-base) ease;
}
.card-flat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Green hero sections ────────────────────────────────────── */
.green-section {
  position: relative;
  overflow: hidden;
  background: var(--color-brand-400);
}

/* Dot pattern */
.dot-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: radial-gradient(circle, #0f172a 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Blur blobs */
.blur-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: blobFloat 10s ease-in-out infinite;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(20px, -20px) scale(1.05); }
  66%      { transform: translate(-10px, 15px) scale(0.95); }
}

/* Sparkle */
.sparkle {
  position: absolute;
  pointer-events: none;
  animation: sparkleAnim 2s ease-in-out infinite;
}
@keyframes sparkleAnim {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.2); }
}

/* Wave divider */
.wave-divider {
  position: relative;
  height: 64px;
  background: var(--color-brand-400);
}
.wave-divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
}

/* ── Dark CTA card ──────────────────────────────────────────── */
.dark-cta-card {
  position: relative;
  background: var(--color-text);
  border-radius: var(--radius-2xl);
  padding: 64px 32px;
  color: #fff;
  overflow: hidden;
}
@media (min-width: 768px) {
  .dark-cta-card { padding: 96px 64px; }
}

/* ── Scroll reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Scrollbar hide ─────────────────────────────────────────── */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* ── Utilities ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Grid helpers */
.grid-2 { display: grid; gap: 24px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 24px; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Aspect ratio helpers */
.aspect-4-3 { aspect-ratio: 4 / 3; }

/* ── Muuday App Utility Classes ─────────────────────────────── */

/* Shell cards */
.mu-shell-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: transform var(--t-base) ease, box-shadow var(--t-base) ease, border-color var(--t-base) ease;
}
.mu-shell-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--color-brand-400);
}

.mu-shell-card-lg {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 32px;
  transition: transform var(--t-base) ease, box-shadow var(--t-base) ease, border-color var(--t-base) ease;
}
.mu-shell-card-lg:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--color-brand-400);
}

/* App buttons */
.mu-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background: var(--color-text);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--t-base) ease, background-color var(--t-base) ease, box-shadow var(--t-base) ease;
}
.mu-btn-primary:hover {
  transform: translateY(-1px);
  background: #1e293b;
  box-shadow: var(--shadow-xl);
}
.mu-btn-primary:active {
  transform: translateY(0);
}

.mu-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--t-base) ease, border-color var(--t-base) ease, color var(--t-base) ease, background-color var(--t-base) ease;
}
.mu-btn-outline:hover {
  transform: translateY(-1px);
  border-color: var(--color-brand-400);
  color: var(--color-text);
  background: rgba(159, 232, 112, 0.06);
}
.mu-btn-outline:active {
  transform: translateY(0);
}

/* Copy / body text utility */
.mu-copy {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-muted);
}

/* ── FAQ Accordion ──────────────────────────────────────────── */
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), opacity 0.3s ease;
  opacity: 0;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  opacity: 1;
}
.faq-item .faq-icon {
  transition: transform 0.3s var(--ease-out);
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* ── Carousel ───────────────────────────────────────────────── */
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-track > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: background-color var(--t-base) ease, transform var(--t-base) ease;
}
.carousel-dot:hover {
  background: var(--color-border-soft);
}
.carousel-dot.active {
  background: var(--color-text);
  transform: scale(1.25);
}

/* ── Skip Link (Accessibility) ──────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-text);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top var(--t-base) ease;
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--color-brand-400);
  outline-offset: 2px;
}

/* Gradient icon backgrounds */
.icon-bg-blue {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.icon-bg-lime {
  background: linear-gradient(135deg, #9FE870, #10b981);
}
.icon-bg-slate {
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

/* ═══════════════════════════════════════════════════════════════
   PAGE LAYOUT (Blog / Guias)
════════════════════════════════════════════════════════════════ */

.container {
  width: min(100%, var(--shell-max));
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

.page-section {
  padding: var(--section-pad-mobile) 0;
}
@media (min-width: 768px) {
  .page-section { padding: var(--section-pad-tablet) 0; }
}
@media (min-width: 1024px) {
  .page-section { padding: var(--section-pad-desktop) 0; }
}

.page-section-gray {
  background: var(--color-surface-soft);
  padding: var(--section-pad-mobile) 0;
}
@media (min-width: 768px) {
  .page-section-gray { padding: var(--section-pad-tablet) 0; }
}
@media (min-width: 1024px) {
  .page-section-gray { padding: var(--section-pad-desktop) 0; }
}

.page-section-dark {
  background: var(--color-text);
  color: #fff;
  padding: var(--section-pad-mobile) 0;
}
@media (min-width: 768px) {
  .page-section-dark { padding: var(--section-pad-tablet) 0; }
}
@media (min-width: 1024px) {
  .page-section-dark { padding: var(--section-pad-desktop) 0; }
}

/* ── Green Hero ─────────────────────────────────────────────── */
.green-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-brand-400);
  padding: 120px 16px 80px;
  text-align: center;
}
@media (min-width: 768px) {
  .green-hero { padding: 160px 32px 100px; }
}

.hero-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.4) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(255,255,255,0.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: radial-gradient(circle, var(--color-text) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 auto 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-brand-600);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--color-text);
}
@media (min-width: 768px) {
  .hero-headline { font-size: 4.5rem; }
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0 auto;
  color: var(--color-text-2);
}

.hl-green { color: var(--color-accent-600); }
.hl-italic { font-style: italic; }

/* ── Blog Cards ─────────────────────────────────────────────── */
.article-card {
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.article-card-body {
  padding: 20px;
}
.article-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--color-text);
}
.article-card-body p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-muted);
  margin: 0;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.article-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cat-green {
  background: var(--color-accent-100);
  color: var(--color-accent-700);
}
.cat-dark {
  background: var(--color-text);
  color: #fff;
}
.article-readtime {
  font-size: 0.8rem;
  color: var(--color-text-3);
}

/* ── Guide Cards ────────────────────────────────────────────── */
.guide-card {
  display: block;
  padding: 24px;
  text-decoration: none;
  color: inherit;
}
.guide-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  background: var(--color-surface-soft);
  border-radius: var(--radius-lg);
}
.guide-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--color-text);
}
.guide-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-muted);
  margin: 0;
}
.guide-card-meta {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--color-text-3);
}

/* ── Filters ────────────────────────────────────────────────── */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.filter-pill {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
}
.filter-pill:hover {
  border-color: var(--color-brand-400);
  color: var(--color-text);
}
.filter-pill.active {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

/* ── Dark CTA ───────────────────────────────────────────────── */
.dark-cta-card {
  position: relative;
  background: var(--color-text);
  border-radius: var(--radius-2xl);
  padding: 64px 32px;
  color: #fff;
  overflow: hidden;
  text-align: center;
}
@media (min-width: 768px) {
  .dark-cta-card { padding: 96px 64px; }
}
.dark-cta-card h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 16px;
}
.dark-cta-card p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 24px;
}

/* ── Stats ──────────────────────────────────────────────────── */
.stats-dark-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  text-align: center;
}
.stat-big {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-brand-400);
}
.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* ── Buttons extra ──────────────────────────────────────────── */
.btn-white {
  background: #fff;
  color: var(--color-text);
}
.btn-white:hover { background: #f1f5f9; }
.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: var(--radius-full);
}
.ripple-container { position: relative; overflow: hidden; }

/* ── Reveal delays ──────────────────────────────────────────── */
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* Fix reveal JS class mismatch */
.reveal.visible,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left.visible,
.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right.visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale.visible,
.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ═══════════════════════════════════════════════════════════════
   WAITLIST MODAL
   ═══════════════════════════════════════════════════════════════ */

#muu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#muu-sheet {
  position: relative;
  z-index: 9999;
  display: none;
  background: var(--color-surface, #ffffff);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: muuIn 0.25s ease-out;
}

@keyframes muuIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.muu-body { padding: 1.75rem; }

/* Progress */
.muu-prog {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 1.5rem;
}
.muu-prog span {
  height: 4px;
  border-radius: 2px;
  background: var(--color-brand-100, #e7fdd5);
  transition: background 0.2s;
}
.muu-prog span.on {
  background: var(--color-brand-600, #6bb346);
}

/* Typography */
.muu-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-primary, #0f172a);
  margin: 0 0 0.375rem;
}
.muu-hint {
  font-size: 0.9375rem;
  color: var(--color-text-secondary, #64748b);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

/* Fields */
.muu-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-primary, #0f172a);
  margin: 1.25rem 0 0.375rem;
}
.muu-input,
.muu-select,
.muu-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--color-text-primary, #0f172a);
  background: var(--color-page-bg, #f8fafc);
  border: 1.5px solid var(--color-border, #e2e8f0);
  border-radius: 0.625rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.muu-input:focus,
.muu-select:focus,
.muu-textarea:focus {
  border-color: var(--color-brand-500, #8ed85f);
  box-shadow: 0 0 0 3px var(--color-brand-100, #e7fdd5);
}
.muu-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Options (radio / checkbox) */
.muu-opt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin: 0.375rem 0;
  border-radius: 0.625rem;
  border: 1.5px solid var(--color-border, #e2e8f0);
  background: var(--color-surface, #ffffff);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 0.9375rem;
  color: var(--color-text-primary, #0f172a);
}
.muu-opt:hover {
  border-color: var(--color-brand-400, #9FE870);
  background: var(--color-brand-50, #f6fef0);
}
.muu-opt.sel {
  border-color: var(--color-brand-600, #6bb346);
  background: var(--color-brand-50, #f6fef0);
}
.muu-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-border, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.6875rem;
  color: #fff;
  transition: border-color 0.15s, background 0.15s;
}
.muu-check.sq {
  border-radius: 5px;
}
.muu-opt.sel .muu-check {
  border-color: var(--color-brand-600, #6bb346);
  background: var(--color-brand-600, #6bb346);
}

/* Conditional fields */
.muu-cond {
  display: none;
  margin-top: 0.75rem;
  padding-left: 0.5rem;
  animation: muuFadeIn 0.2s ease-out;
}
.muu-cond.show {
  display: block;
}
@keyframes muuFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Navigation */
.muu-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border, #e2e8f0);
}
.muu-back,
.muu-next {
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 0.625rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
.muu-back:active,
.muu-next:active {
  transform: scale(0.98);
}
.muu-back {
  background: transparent;
  color: var(--color-text-secondary, #64748b);
}
.muu-back:hover {
  color: var(--color-text-primary, #0f172a);
}
.muu-next {
  background: var(--color-brand-600, #6bb346);
  color: #fff;
  margin-left: auto;
}
.muu-next:hover {
  opacity: 0.92;
}
.muu-next:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Error */
.muu-err {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.75rem;
  min-height: 1.25rem;
}

/* Success state */
.muu-ok {
  text-align: center;
  padding: 2rem 1rem;
}
.muu-ok-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-brand-100, #e7fdd5);
  color: var(--color-brand-700, #4d8e33);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}
.muu-ok h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--color-text-primary, #0f172a);
}
.muu-ok p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary, #64748b);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}
.muu-share {
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0.625rem;
  border: none;
  background: var(--color-brand-600, #6bb346);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s;
}
.muu-share:hover {
  opacity: 0.92;
}
