/* Import Lato Font from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap");

/* Color Definitions */
:root {
  /* Original colors preserved */
  --primary: #15703d;
  --on-primary: #ffffff;
  --primary-container: #5ebc8a;
  --on-primary-container: #002a18;
  --secondary: #6a4d00;
  --on-secondary: #ffffff;
  --secondary-container: #ffcd50;
  --on-secondary-container: #4a3600;
  --tertiary: #a73500;
  --on-tertiary: #ffffff;
  --tertiary-container: #ff7b3d;
  --on-tertiary-container: #2f0c00;
  --error: #c41c1b;
  --on-error: #ffffff;
  --surface: #f5f9f3;
  --on-surface: #1a211c;
  --outline: #6b746c;
  --shadow: rgba(0, 0, 0, 0.2);
  --surface-container: #e7efe5;

  /* Additional colors */
  --background: #ffffff;
  --surface-variant: #dce5dd;
  --on-surface-variant: #404943;
  --success: #146b3a;
  --on-success: #ffffff;
  --info: #0072b5;
  --on-info: #ffffff;
  --warning: #ffa000;
  --on-warning: #000000;
  --danger: #d32f2f;
  --on-danger: #ffffff;

  /* RGB versions for transparency */
  --primary-rgb: 21, 112, 61;
  --secondary-rgb: 106, 77, 0;
  --tertiary-rgb: 167, 53, 0;
  --error-rgb: 196, 28, 27;
  --success-rgb: 20, 107, 58;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Dark Theme */
@media (prefers-color-scheme: dark) {
  :root {
    /* Original dark colors preserved */
    --primary: #7fd1a2;
    --on-primary: #002d1a;
    --primary-container: #4e9770;
    --on-primary-container: #000000;
    --secondary: #fdf6ef;
    --on-secondary: #362800;
    --secondary-container: #f3bc40;
    --on-secondary-container: #3f2c00;
    --tertiary: #ffa782;
    --on-tertiary: #4f1900;
    --tertiary-container: #e5692c;
    --on-tertiary-container: #000000;
    --error: #ff9b96;
    --on-error: #600004;
    --surface: #121714;
    --on-surface: #dce0db;
    --outline: #7d877e;
    --shadow: rgba(0, 0, 0, 0.4);
    --surface-container: #1a1f1c;

    /* Additional dark colors */
    --background: #0a0d0b;
    --surface-variant: #3f4944;
    --on-surface-variant: #bfc9c2;
    --success: #5bd485;
    --on-success: #003919;
    --info: #64b5f6;
    --on-info: #003258;
    --warning: #ffb74d;
    --on-warning: #462900;
    --danger: #ef5350;
    --on-danger: #690000;

    /* RGB versions for transparency */
    --primary-rgb: 127, 209, 162;
    --secondary-rgb: 253, 246, 239;
    --tertiary-rgb: 255, 167, 130;
    --error-rgb: 255, 155, 150;
    --success-rgb: 91, 212, 133;
  }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--surface);
  color: var(--on-surface);
  font-family: "Lato", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: var(--spacing-xl);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

h4 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-md);
}

.lead-text {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
}

.subtitle {
  font-size: 1.25rem;
  color: var(--on-surface);
  margin-bottom: var(--spacing-lg);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast),
    color var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px var(--shadow);
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--on-secondary);
}

.btn-primary:hover {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
}

.btn-secondary {
  background-color: var(--surface-variant);
  color: var(--on-surface-variant);
}

.btn-secondary:hover {
  background-color: var(--outline);
  color: var(--surface);
}

.btn-danger {
  background-color: var(--error);
  color: var(--on-error);
}

.btn-danger:hover {
  background-color: var(--danger);
  color: var(--on-danger);
}

/* Buttons using Secondary Container colors */
.btn-secondary-container {
  background-color: var(--secondary-container);
  color: var(--on-secondary-container);
}

.btn-secondary-container:hover {
  background-color: var(--outline);
  color: var(--surface);
}

/* Store Hero Section */
.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.hero-content p {
  margin-top: var(--spacing-sm);
  color: var(--on-surface);
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.feature {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
  background-color: var(--surface-container);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--secondary-container);
  color: var(--on-secondary-container);
  flex-shrink: 0;
}

.feature-text h4 {
  margin-bottom: var(--spacing-xs);
  color: var(--primary);
}

.cta-section {
  margin-top: var(--spacing-xl);
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  align-items: center;
}

.btn--primary {
  background-color: var(--secondary-container);
  color: var(--on-secondary-container);
}

.btn--primary:hover {
  background-color: var(--outline);
  color: var(--surface);
}

.btn--outline {
  background-color: transparent;
  border: 2px solid var(--secondary-container);
  color: var(--on-surface-variant);
}

.btn--outline:hover {
  background-color: var(--secondary-container);
  color: var(--on-secondary-container);
}

/* Button sizing and icon helpers */
.btn--lg {
  padding: 0.875rem 1.25rem;
  font-size: 1.0625rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Disabled/coming-soon state */
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Tertiary container themed button (for Rider) */
.btn-tertiary-container {
  background-color: var(--tertiary-container);
  color: var(--on-tertiary-container);
}

.btn-tertiary-container:hover {
  background-color: var(--outline);
  color: var(--surface);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 260px;
  border: 12px solid var(--on-surface);
  border-radius: 36px;
  background-color: var(--surface);
  box-shadow: 0 10px 30px var(--shadow);
  padding: var(--spacing-md);
}

.phone-screen {
  height: 420px;
  border-radius: 24px;
  background-color: var(--surface-container);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-lg);
  gap: var(--spacing-sm);
}

/* Feature cards in Store hero use secondary-container accents */
.hero .features-grid .feature-card {
  border-top: 4px solid var(--secondary-container);
}

.hero .feature-icon {
  background-color: var(--secondary-container);
  color: var(--on-secondary-container);
}

.hero .feature-card h3 {
  color: var(--on-surface);
}

.cta-section .app-button img {
  display: block;
}

/* Rider page scoped accents use tertiary colors without affecting store */
.rider-page .features-grid .feature-card {
  border-top: 4px solid var(--tertiary-container);
}

.rider-page .feature-icon {
  background-color: var(--tertiary-container);
  color: var(--on-tertiary-container);
}

.rider-page .btn--primary {
  background-color: var(--tertiary-container);
  color: var(--on-tertiary-container);
}

.rider-page .btn--primary:hover {
  background-color: var(--outline);
  color: var(--surface);
}

@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cta-section {
    justify-content: center;
  }
}

.btn-nav {
  background-color: var(--primary);
  color: var(--on-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
}

.btn-nav:hover {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
  text-decoration: none;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
  margin-top: var(--spacing-lg);
}

/* Header and Navigation */
.site-header {
  background-color: var(--surface-container);
  padding: var(--spacing-md) 0;
  box-shadow: 0 2px 4px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  width: 36px;
  height: 36px;
  margin-right: var(--spacing-sm);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
}

.nav-links a {
  color: var(--primary);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast),
    color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Hero Section */
.hero {
  padding: var(--spacing-xxl) 0;
  background-color: var(--surface);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.hero-description {
  margin-bottom: var(--spacing-xl);
}

.app-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.app-button {
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.app-button:hover {
  transform: translateY(-5px);
  opacity: 0.9;
}

/* Features Section */
.features {
  padding: var(--spacing-xxl) 0;
  background-color: var(--surface-container);
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.feature-card {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: 0 4px 8px var(--shadow);
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px var(--shadow);
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(var(--primary-rgb), 0.1);
  border-radius: 50%;
  margin-bottom: var(--spacing-md);
}

.feature-icon i {
  color: var(--primary);
  width: 30px;
  height: 30px;
}

.feature-content {
  flex: 1;
}

/* Benefits Section */
.benefits {
  padding: var(--spacing-xxl) 0;
  text-align: center;
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background-color: var(--surface-container);
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
  box-shadow: 0 4px 8px var(--shadow);
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(var(--primary-rgb), 0.1);
  border-radius: 50%;
}

.benefit-icon i {
  color: var(--primary);
  width: 30px;
  height: 30px;
}

.benefit-content {
  text-align: center;
}

/* How It Works Section */
.how-it-works {
  padding: var(--spacing-xxl) 0;
  background-color: var(--surface-container);
  text-align: center;
}

.process-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  position: relative;
}

.process-flow::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 50px;
  right: 50px;
  height: 2px;
  background-color: var(--primary-container);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 200px;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 50%;
  margin-bottom: var(--spacing-md);
}

.step-icon i {
  color: var(--primary);
  width: 40px;
  height: 40px;
}

.step-number {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background-color: var(--secondary);
  color: var(--on-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.step-content {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: 0 4px 8px var(--shadow);
  width: 100%;
}

/* Users Section */
.users {
  padding: var(--spacing-xxl) 0;
  text-align: center;
}

.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.user-card {
  background-color: var(--surface-container);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl) var(--spacing-lg);
  box-shadow: 0 4px 8px var(--shadow);
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.user-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow);
}

.user-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(var(--primary-rgb), 0.1);
  border-radius: 50%;
  margin-bottom: var(--spacing-md);
}

.user-icon i {
  color: var(--primary);
  width: 35px;
  height: 35px;
}

.user-benefits {
  list-style: none;
  text-align: left;
  margin-top: var(--spacing-md);
  width: 100%;
}

.user-benefits li {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.user-benefits li i {
  color: var(--primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* CTA Section */
.cta {
  padding: var(--spacing-xxl) 0;
  background-color: var(--surface-container);
  text-align: center;
}

.cta p {
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
}

/* Footer */
.site-footer {
  background-color: var(--surface-container);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xxl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  text-decoration: none;
}

.footer-logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.footer-tagline {
  color: var(--on-surface-variant);
  margin-bottom: var(--spacing-md);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(var(--primary-rgb), 0.1);
  border-radius: 50%;
  transition: background-color var(--transition-fast),
    transform var(--transition-fast);
}

.social-link:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.social-link i {
  color: var(--primary);
  width: 20px;
  height: 20px;
}

.social-link:hover i {
  color: var(--on-primary);
}

.footer-nav h4,
.footer-contact h4,
.footer-download h4 {
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

.footer-nav ul {
  list-style: none;
}

.footer-nav ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-nav ul li a {
  color: var(--on-surface);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: inline-block;
}

.footer-nav ul li a:hover {
  color: var(--primary);
  padding-left: var(--spacing-sm);
}

.footer-contact address {
  font-style: normal;
}

.footer-contact address p {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.footer-contact address p i {
  color: var(--primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-app-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-app-button {
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.footer-app-button:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

.footer-bottom {
  border-top: 1px solid var(--outline);
  padding-top: var(--spacing-lg);
  text-align: center;
}

/* Badges / Chips */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.badge-secondary {
  background-color: var(--secondary-container);
  color: var(--on-secondary-container);
}

.copyright {
  margin-bottom: var(--spacing-sm);
}

.company-info {
  color: var(--on-surface-variant);
  font-size: 0.875rem;
}

/* Page Header */
.page-header {
  background-color: var(--primary);
  color: var(--on-primary);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.page-header h1 {
  color: var(--on-primary);
  margin-bottom: 0;
}

/* Download Page Styles */
.download-hero {
  padding: var(--spacing-xxl) 0;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.download-content {
  padding-right: var(--spacing-xl);
}

.download-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.download-feature {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background-color: rgba(var(--primary-rgb), 0.1);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
}

.download-feature i {
  color: var(--primary);
  width: 18px;
  height: 18px;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.download-buttons.centered {
  justify-content: center;
}

.download-button {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background-color: var(--on-surface);
  color: var(--surface);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.download-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px var(--shadow);
  color: var(--surface);
}

.download-button i {
  width: 24px;
  height: 24px;
}

.download-button .button-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.download-button .small-text {
  font-size: 0.75rem;
  text-transform: uppercase;
}

.download-button .large-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.download-image {
  display: flex;
  justify-content: center;
}

.download-image img {
  max-height: 600px;
  object-fit: contain;
}

.app-features {
  padding: var(--spacing-xxl) 0;
  background-color: var(--surface-container);
  text-align: center;
}

.download-steps {
  padding: var(--spacing-xxl) 0;
  text-align: center;
}

.steps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.step {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 250px;
}

.step-number {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: var(--on-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto var(--spacing-md);
}

.download-cta {
  padding: var(--spacing-xxl) 0;
  background-color: var(--surface-container);
  text-align: center;
}

/* Legal Content */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-xl) 0;
}

.legal-content h2 {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.legal-content ul,
.legal-content ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.legal-content li {
  margin-bottom: var(--spacing-sm);
}

/* About Page */
.about-intro,
.about-vision,
.about-mission,
.about-why,
.about-join {
  padding: var(--spacing-xl) 0;
}

.mission-list,
.check-list {
  list-style: none;
  margin-left: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.mission-list li,
.check-list li {
  position: relative;
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.mission-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.check-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.cta-container {
  text-align: center;
  margin-top: var(--spacing-xl);
}

/* Support Page */
.support-intro {
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.faq-section {
  padding: var(--spacing-xl) 0;
}

.faq-section h2 {
  text-align: center;
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: var(--spacing-md);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: var(--spacing-md);
  background-color: var(--on-surface);
  border: none;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  color: var(--surface);
  transition: background-color var(--transition-fast);
}

.accordion-header:hover {
  background-color: var(--primary-container);
}

.faq-icon {
  margin-right: var(--spacing-md);
  font-size: 1.25rem;
}

.accordion-icon {
  margin-left: auto;
  font-size: 1.5rem;
}

.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal),
    padding var(--transition-normal);
}

.accordion-item.active .accordion-content {
  padding: var(--spacing-md);
  max-height: 500px;
}

.contact-section {
  padding: var(--spacing-xl) 0;
  text-align: center;
}

/* Error Page */
.error-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.error-code {
  font-size: 6rem;
  color: var(--tertiary);
  margin-bottom: var(--spacing-md);
}

.error-title {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

.error-message {
  margin-bottom: var(--spacing-lg);
}

/* Health Check Page */
.health-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
}

.health-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
}

.health-message {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
}

/* Delete Account Page */
.delete-account-container {
  padding: var(--spacing-xl) 0;
}

.card {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px var(--shadow);
  overflow: hidden;
}

.card-content {
  padding: var(--spacing-xl);
}

.instruction-box {
  background-color: var(--surface-container);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin: var(--spacing-md) 0;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: var(--spacing-xl) 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--outline);
}

.divider span {
  padding: 0 var(--spacing-md);
  font-weight: 700;
}

.delete-form {
  margin-top: var(--spacing-lg);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.response-message {
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  display: none;
}

.response-message.error {
  background-color: rgba(var(--error-rgb), 0.1);
  color: var(--error);
  border: 1px solid var(--error);
  display: block;
}

.response-message.success {
  background-color: rgba(var(--success-rgb), 0.1);
  color: var(--success);
  border: 1px solid var(--success);
  display: block;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Lucide Icons Styling */
[data-lucide] {
  stroke-width: 1.5;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-content {
    padding-right: 0;
    text-align: center;
  }

  .download-features {
    justify-content: center;
  }

  .process-flow::before {
    display: none;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--surface-container);
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-lg) 0;
    box-shadow: 0 4px 8px var(--shadow);
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    z-index: 99;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .app-buttons {
    flex-direction: column;
    align-items: center;
  }

  .benefits-list,
  .users-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer-brand,
  .footer-nav,
  .footer-contact,
  .footer-download {
    text-align: center;
    align-items: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-contact address p {
    justify-content: center;
  }

  .footer-app-buttons {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .hero {
    padding: var(--spacing-xl) 0;
  }

  .benefits,
  .how-it-works,
  .users,
  .cta {
    padding: var(--spacing-xl) 0;
  }

  .benefit-item,
  .step-item {
    padding: var(--spacing-md);
  }

  .step-item {
    flex-direction: column;
  }

  .error-code {
    font-size: 4rem;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: var(--spacing-sm);
}
.mt-2 {
  margin-top: var(--spacing-md);
}
.mt-3 {
  margin-top: var(--spacing-lg);
}
.mt-4 {
  margin-top: var(--spacing-xl);
}
.mt-5 {
  margin-top: var(--spacing-xxl);
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: var(--spacing-sm);
}
.mb-2 {
  margin-bottom: var(--spacing-md);
}
.mb-3 {
  margin-bottom: var(--spacing-lg);
}
.mb-4 {
  margin-bottom: var(--spacing-xl);
}
.mb-5 {
  margin-bottom: var(--spacing-xxl);
}

.py-0 {
  padding-top: 0;
  padding-bottom: 0;
}
.py-1 {
  padding-top: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
}
.py-2 {
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
}
.py-3 {
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}
.py-4 {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}
.py-5 {
  padding-top: var(--spacing-xxl);
  padding-bottom: var(--spacing-xxl);
}

.px-0 {
  padding-left: 0;
  padding-right: 0;
}
.px-1 {
  padding-left: var(--spacing-sm);
  padding-right: var(--spacing-sm);
}
.px-2 {
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}
.px-3 {
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}
.px-4 {
  padding-left: var(--spacing-xl);
  padding-right: var(--spacing-xl);
}
.px-5 {
  padding-left: var(--spacing-xxl);
  padding-right: var(--spacing-xxl);
}

.d-none {
  display: none;
}
.d-block {
  display: block;
}
.d-flex {
  display: flex;
}
.flex-column {
  flex-direction: column;
}
.align-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.w-100 {
  width: 100%;
}
.h-100 {
  height: 100%;
}
