/* Base Styles & Variables */
:root {
  /* Light Theme Variables (derived from main app globals.css) */
  --background: 0 0% 100%;
  --foreground: 224 71.4% 4.1%;
  --card: 0 0% 100%;
  --card-foreground: 224 71.4% 4.1%;
  --popover: 0 0% 100%;
  --popover-foreground: 224 71.4% 4.1%;
  --primary: 142.1 76.2% 36.3%;
  --primary-foreground: 355.7 100% 97.3%;
  --secondary: 220 14.3% 95.9%;
  --secondary-foreground: 220.9 39.3% 11%;
  --muted: 220 14.3% 95.9%;
  --muted-foreground: 220 8.9% 46.1%;
  --accent: 220 14.3% 95.9%;
  --accent-foreground: 220.9 39.3% 11%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 220 13% 91%;
  --input: 220 13% 91%;
  --ring: 142.1 76.2% 36.3%;
  --radius: 0.75rem;

  /* Custom landing page specific variables */
  --header-height: 5rem;
  --transition-smooth: 0.3s ease;
  --font-inter: 'Inter', sans-serif;
  --font-poppins: 'Poppins', sans-serif;
}

html.dark-theme {
  /* Dark Theme Variables */
  --background: 222 84% 4.9%;
  --foreground: 210 20% 98%;
  --card: 222 84% 4.9%;
  --card-foreground: 210 20% 98%;
  --popover: 222 84% 4.9%;
  --popover-foreground: 210 20% 98%;
  --primary: 142.1 70.6% 45.3%;
  --primary-foreground: 144.9 80.4% 10%;
  --secondary: 217.2 32.6% 17.5%;
  --secondary-foreground: 210 20% 98%;
  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 217.2 32.6% 17.5%;
  --accent-foreground: 210 20% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;
  --border: 217.2 32.6% 17.5%;
  --input: 217.2 32.6% 17.5%;
  --ring: 142.1 70.6% 45.3%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: hsl(var(--border));
}

html {
  /* Removed scroll-behavior: smooth to prevent conflicts with custom JS smooth scroll */
}

body {
  font-family: var(--font-inter);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-smooth);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all var(--transition-smooth);
}

ul {
  list-style: none;
}

/* Layout & Containers */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

/* Background Effects */
.bg-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blob-1 {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, hsla(var(--primary), 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 8s infinite alternate;
}

.blob-2 {
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, hsla(280, 65%, 60%, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s infinite ease-in-out;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-poppins);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: hsl(var(--muted-foreground));
}

.text-primary {
  color: hsl(var(--primary));
}

.title-large {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: radial-gradient(circle farthest-corner at var(--mouse-x, 50%) var(--mouse-y, 50%), hsl(var(--primary)), hsl(var(--foreground)) 120%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.15em;
  /* Prevents descenders like 'g' from being cut off by background-clip */
}

.subtitle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.subtitle-wrapper .subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: hsl(var(--muted-foreground));
  margin: 0;
  max-width: 600px;
}

.mascot {
  flex-shrink: 0;
  animation: float-subtle 4s ease-in-out infinite;
}

.mascot-left {
  animation-delay: 0s;
}

.mascot-right {
  animation-delay: 2s;
}

@keyframes float-subtle {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes wave-arm {

  0%,
  100% {
    transform: rotate(var(--base-rotation, 0deg));
  }

  50% {
    transform: rotate(calc(var(--base-rotation, 0deg) + 15deg));
  }
}

.tomato-arm-wave {
  transform-origin: 35px 105px;
  --base-rotation: -25deg;
  animation: wave-arm 1s ease-in-out infinite;
}

.broccoli-arm-wave {
  transform-origin: 252px 120px;
  --base-rotation: 25deg;
  animation: wave-arm 1s ease-in-out infinite;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-smooth);
  gap: 0.5rem;
}

.btn:hover {
  transition: all var(--transition-smooth);
}

.btn-sm {
  height: 36px;
  padding: 0 1rem;
  font-size: 0.85rem;
}

.btn-primary {
  position: relative;
  top: 0;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 14px 0 hsla(var(--primary), 0.39);
  transform: translateY(0px);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px hsla(var(--primary), 0.23);
  filter: brightness(1.1);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-ghost {
  background-color: transparent;
  color: hsl(var(--foreground));
}

.btn-ghost:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* Header/Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: hsla(var(--background), 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: radial-gradient(circle farthest-corner at var(--mouse-x, 50%) var(--mouse-y, 50%), hsl(var(--primary)), hsl(142, 70%, 25%) 120%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 3rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  position: relative;
}

.nav-indicator {
  position: absolute;
  height: 2px;
  width: 0;
  background-color: hsl(var(--primary));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: hsl(var(--muted-foreground));
  transition: all var(--transition-smooth);
}

.nav-link:hover {
  color: hsl(var(--foreground));
  transition: all var(--transition-smooth);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Custom Language Dropdown */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  height: 36px;
  border-radius: var(--radius);
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.lang-trigger:hover {
  background: hsl(var(--accent));
}

.lang-trigger-content {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-options {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  position: absolute;
  top: 110%;
  right: 0;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 140px;
  z-index: 100;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.lang-dropdown.open .lang-options {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: none;
  border-left: 2px solid transparent;
  background: transparent;
  color: hsl(var(--foreground));
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-smooth);
}

.lang-option:hover {
  background: hsl(var(--accent));
}

.lang-option.active {
  background: hsla(var(--primary), 0.05);
  border-left-color: hsl(var(--primary));
  font-weight: 600;
}

/* Theme Toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(var(--border));
  background: transparent;
  color: hsl(var(--foreground));
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: hsl(var(--accent));
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: absolute;
  transition: all 0.3s ease-in-out;
}

/* Light Theme (default) */
html:not(.dark-theme) .sun-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

html:not(.dark-theme) .moon-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

/* Hover on Light Theme (switch to moon) */
html:not(.dark-theme) .theme-toggle:hover .sun-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

html:not(.dark-theme) .theme-toggle:hover .moon-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Dark Theme */
html.dark-theme .sun-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

html.dark-theme .moon-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Hover on Dark Theme (switch to sun) */
html.dark-theme .theme-toggle:hover .sun-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

html.dark-theme .theme-toggle:hover .moon-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}


/* Hero Section */
.hero {
  padding-top: 8rem;
  padding-bottom: 6rem;
  text-align: center;
  position: relative;
}

.hero .title-large {
  padding-top: 12.5rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.feature-card {
  background-color: hsla(var(--card), 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid hsla(var(--border), 0.5);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px hsla(var(--primary), 0.15);
  border-color: hsla(var(--primary), 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: hsla(var(--primary), 0.1);
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  text-align: justify;
  line-height: 1.6;
}

/* Pricing Section (Dark theme default for cards to match image) */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
  font-weight: 500;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: hsl(var(--muted));
  border-radius: 34px;
  transition: .4s;
  border: 1px solid hsl(var(--border));
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .4s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

html.dark-theme .slider:before {
  background-color: hsl(var(--foreground));
}

input:checked+.slider {
  background-color: #22c55e;
  border-color: #22c55e;
}

input:checked+.slider:before {
  transform: translateX(24px);
  background-color: #022c22;
}

#monthly-label,
#annual-label {
  font-weight: 600;
  transition: color 0.3s ease;
}

.billing-toggle:has(input:checked) #monthly-label {
  color: #94a3b8;
}

.billing-toggle:has(input:checked) #annual-label {
  color: #22c55e;
}

.billing-toggle:not(:has(input:checked)) #monthly-label {
  color: #22c55e;
}

.billing-toggle:not(:has(input:checked)) #annual-label {
  color: #94a3b8;
}

@keyframes pulse-badge {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
  }
}

.discount-badge {
  background-color: #064e3b;
  color: #22c55e;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
  animation: pulse-badge 2s infinite ease-in-out;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  color: hsl(var(--card-foreground));
  position: relative;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

html.dark-theme .pricing-card {
  background-color: #0c0d14;
  /* Deep dark background matching image */
  border: 1px solid #23242f;
  color: #f1f5f9;
  /* Light text for dark cards */
  box-shadow: none;
}

.tier-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.tier-icon {
  width: 24px;
  height: 24px;
}

/* Icon Colors */
.free-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.ind-icon {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}

.cpl-icon {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
}

.fam-icon {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

.famplus-icon {
  background: rgba(234, 179, 8, 0.1);
  color: #eab308;
}

.tier-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: var(--font-poppins);
}

.tier-desc {
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  min-height: 40px;
}

html.dark-theme .tier-desc {
  color: #94a3b8;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 0.25rem;
}

.tier-price {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.price-fade-out {
  opacity: 0;
  transform: translateY(-5px);
}

.tier-period {
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
  font-weight: 500;
}

html.dark-theme .tier-period {
  color: #94a3b8;
}

.tier-vat {
  color: hsla(var(--muted-foreground), 0.8);
  font-size: 11px;
  font-weight: 600;
  margin-left: 0.25rem;
}

html.dark-theme .tier-vat {
  color: rgba(148, 163, 184, 0.8);
}

.tier-annual-note {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  min-height: 18px;
  margin-bottom: 1.5rem;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

html.dark-theme .tier-annual-note {
  color: #94a3b8;
}

.tier-features {
  margin-bottom: 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: hsl(var(--foreground));
}

html.dark-theme .tier-features li {
  color: #e2e8f0;
}

.tier-features>li>svg {
  width: 16px;
  height: 16px;
  color: #16a34a;
  /* Green checkmarks */
  flex-shrink: 0;
  margin-top: 2px;
}

/* Language and Content Transitions */
[data-i18n],
#lang-trigger-content {
  transition: opacity 0.2s ease-in-out;
}

.lang-fade-out {
  opacity: 0;
}

/* Planned Features Styling */
.planned-feature {
  color: #64748b !important;
}

.planned-feature>svg {
  color: #64748b !important;
}

.planned-text {
  font-style: italic;
  display: block;
}

.coming-soon-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.65rem;
  margin-top: 0.4rem;
  color: #94a3b8;
  font-style: normal;
}

/* Buttons */
.btn-tier {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  background-color: #22c55e;
  color: #000;
  border: none;
  transition: opacity var(--transition-smooth);
  text-align: center;
}

.btn-tier:hover {
  opacity: 0.9;
}

.btn-tier-outline {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  background-color: rgba(22, 163, 74, 0.1);
  color: #22c55e;
  border: 1px solid #16a34a;
  transition: background-color var(--transition-smooth);
  text-align: center;
}

.btn-tier-outline:hover {
  background-color: rgba(22, 163, 74, 0.2);
}

/* Premium Card (Couple) */
.premium-card {
  border-color: #ec4899;
  position: relative;
}

.premium-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background-color: #ec4899;
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Privacy Notice Drawer */
.ff-preferences-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 1.5rem;
  background-color: hsl(var(--background));
  border-top: 1px solid hsl(var(--border));
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(100%);
  transition: transform 0.5s ease-out;
}

.ff-preferences-drawer.show {
  transform: translateY(0);
}

.ff-preferences-drawer h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: var(--font-inter);
}

.ff-preferences-drawer p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.4;
}

.ff-actions-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.ff-actions-container .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .ff-preferences-drawer {
    bottom: 1rem;
    left: 1rem;
    right: auto;
    max-width: 28rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }
  
  .ff-actions-container {
    flex-direction: row;
    justify-content: flex-end;
  }
  
  .ff-actions-container .btn {
    width: auto;
  }
}

/* Notes on Planned Features Section */
.planned-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: hsla(142, 70%, 45%, 0.1);
  color: #22c55e;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.planned-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.planned-card {
  background-color: hsl(var(--card));
  border: 1px dashed hsl(var(--border));
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: hsl(var(--card-foreground));
  font-size: 0.95rem;
  font-weight: 500;
}

html.dark-theme .planned-card {
  background-color: #0c0d14;
  /* Same as pricing cards */
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

.planned-card svg {
  color: #64748b;
  flex-shrink: 0;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 4px 14px 0 hsla(var(--primary), 0.39);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px hsla(var(--primary), 0.23);
  filter: brightness(1.1);
}

/* Footer */
.footer {
  border-top: 1px solid hsl(var(--border));
  padding: 3rem 1.5rem;
  margin-top: 4rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-links a:hover {
  color: hsl(var(--foreground));
}

.footer a,
.modal-body a {
  position: relative;
  text-decoration: none;
  transition: color var(--transition-smooth);
  color: inherit;
}

.footer a::after,
.modal-body a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(1);
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transform-origin: bottom left;
  transition: transform var(--transition-smooth);
}

.footer a:hover::after,
.modal-body a:hover::after {
  transform: scaleX(0);
}

.footer a:hover,
.modal-body a:hover {
  color: hsl(var(--foreground));
}

.mobile-nav-footer {
  display: none;
}

/* Animations */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: hsl(var(--foreground));
  cursor: pointer;
  padding: 0.5rem;
  z-index: 100;
}

.mobile-menu-btn svg {
  transition: transform 0.3s ease;
}

.mobile-menu-btn line {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
  transform-box: fill-box;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 89;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-container.menu-open .nav-overlay {
    opacity: 1;
    visibility: visible;
  }

  .nav-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: hsl(var(--background));
    border-left: 1px solid hsl(var(--border));
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    z-index: 90;
    pointer-events: none;
    display: flex;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }

  .nav-container.menu-open .nav-content {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
    border-bottom: 1px solid hsla(var(--border), 0.5);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .nav-links a {
    width: 100%;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 500;
  }

  .nav-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 2rem;
    width: 100%;
    flex-grow: 1;
  }

  .mobile-nav-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid hsla(var(--border), 0.5);
    width: 100%;
    color: hsl(var(--muted-foreground));
    font-size: 0.85rem;
  }

  .mobile-nav-footer a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-smooth);
  }

  .mobile-nav-footer a:hover {
    color: hsl(var(--foreground));
  }

  .footer {
    display: none;
  }

  .nav-container.menu-open .mobile-menu-btn .line-top {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-container.menu-open .mobile-menu-btn .line-middle {
    opacity: 0;
  }

  .nav-container.menu-open .mobile-menu-btn .line-bottom {
    transform: translateY(-6px) rotate(-45deg);
  }

  .title-large {
    font-size: 2.5rem;
  }

  .hero .title-large {
    padding-top: 5rem;
  }

  .hero {
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .billing-toggle {
    flex-direction: row;
    gap: 0.5rem;
    font-size: 0.85rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: hsl(var(--background));
  margin: 5% auto;
  padding: 2.5rem;
  border: 1px solid hsl(var(--border));
  width: 90%;
  max-width: 800px;
  border-radius: var(--radius);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
  animation: modal-appear 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-appear {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close-modal {
  color: hsl(var(--muted-foreground));
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
  color: hsl(var(--foreground));
  text-decoration: none;
}

.modal-content h2 {
  margin-top: 0;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.modal-content .subtitle {
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.modal-content .last-updated {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
  font-style: italic;
}

.modal-body {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 1rem;
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: hsl(var(--accent));
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: hsl(var(--muted-foreground));
  border-radius: 4px;
}

.modal-body h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
  line-height: 1.6;
}

html.dark-theme .modal-content {
  background-color: hsl(var(--card));
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}