:root {
  /* Color scheme from mobile app - simplified usage */
  --primary: #CA8A04;
  --on-primary: #FFFFFF;
  --primary-container: #F4C866;
  --on-primary-container: #111827;
  --secondary: #A16207;
  --on-secondary: #FFFFFF;
  --secondary-container: #FFE0B2;
  --on-secondary-container: #111827;
  --tertiary: #6B7280;
  --on-tertiary: #FFFFFF;
  --tertiary-container: #E5E7EB;
  --on-tertiary-container: #111827;
  --error: #F36666;
  --on-error: #FFFFFF;
  --error-container: #FDE0E0;
  --on-error-container: #111827;
  --background: #FFFFFF;
  --on-background: #111827;
  --surface: #F9FAFB;
  --on-surface: #111827;
  --surface-variant: #F3F4F6;
  --on-surface-variant: #6B7280;
  --outline: #D1D5DB;
  --outline-variant: #E5E7EB;
  --shadow: #000000;
  --scrim: #000000;
  --inverse-surface: #4B5563;
  --inverse-on-surface: #FFFFFF;
  --inverse-primary: #F4C866;
  --disclaimer: #e74c3c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--on-background);
  background-color: var(--background);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header - flat design */
header {
  background-color: var(--background);
  border-bottom: 1px solid var(--outline-variant);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.logo {
  display: flex;
  align-items: center;
  padding: 5px 0;
}

.logo img {
  height: 50px;
}

/* Language switcher - scalable dropdown design */
.language-switcher {
  position: relative;
}

.lang-dropdown {
  display: inline-block;
  position: relative;
}

.lang-current {
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--on-surface);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.lang-current:hover {
  border-color: var(--tertiary);
}

.lang-dropdown-arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--on-surface-variant);
  transition: transform 0.2s ease;
}

.lang-dropdown.open .lang-dropdown-arrow {
  transform: rotate(180deg);
}

.lang-options {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--background);
  border: 1px solid var(--outline);
  border-radius: 6px;
  min-width: 120px;
  display: none;
  z-index: 1001;
}

.lang-dropdown.open .lang-options {
  display: block;
}

.lang-option {
  display: block;
  padding: 10px 16px;
  color: var(--on-background);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--outline-variant);
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option:hover {
  background-color: var(--surface);
}

.lang-option.active {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
  font-weight: 600;
}

/* Main content */
main {
  margin-top: 60px;
  padding: 0;
}

/* Hero section - flat design with subtle background */
.hero {
  text-align: center;
  padding: 60px 0;
  background-color: var(--inverse-surface);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 30px;
  line-height: 1.2;
}

.hero .subtitle {
  font-size: 1.5rem;
  color: var(--inverse-on-surface);
  margin-bottom: 50px;
  font-weight: 400;
}

.app-stores {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.store-badge {
  display: block;
  transition: transform 0.2s ease;
}

.store-badge:hover {
  transform: scale(1.05);
}

.store-badge img {
  height: 60px;
}

/* App showcase */
.app-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 50px 0;
}

.app-showcase img {
  max-height: 400px;
}

/* Section styling - minimal, flat */
.section {
  padding: 60px 0;
}

.section h2 {
  font-size: 2.5rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.section p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--on-surface-variant);
}

.section a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

/* Features grid - flat cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.feature-card {
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--outline-variant);
}

.feature-card h3 {
  color: var(--on-background);
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.feature-card ul {
  list-style: none;
  padding: 0;
}

.feature-card li {
  padding: 5px 0;
  color: var(--on-surface-variant);
  position: relative;
  padding-left: 20px;
}

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

/* Contact/Support page specific styles - flat design */
.support-section {
  background: var(--surface);
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 60px;
  border: 1px solid var(--outline-variant);
}

.support-section h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.legal-section {
  background: var(--surface);
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 60px;
  border: 1px solid var(--outline-variant);
}

.legal-section h3 {
  color: var(--on-surface);
  font-size: 1.3rem;
  margin-top: 25px;
  margin-bottom: 12px;
  text-align: start;
}

.legal-section h2 {
  color: var(--on-surface);
  font-size: 1.8rem;
  margin-top: 35px;
  margin-bottom: 15px;
  text-align: start;
  text-transform: uppercase;
}

.legal-section p {
  color: var(--on-surface);
  text-align: justify;
  margin-bottom: 15px;
}

.legal-section ul,ol {
  margin-bottom: 15px;
  padding: 0 40px;
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-subsection {
  background: var(--surface-variant);
  padding: 20px 30px;
  border-radius: 12px;
}

.legal-disclaimer {
  background: var(--surface-variant);
  padding: 20px;
  margin: 20px 0;
  border-bottom-right-radius: 12px;
  border-top-right-radius: 12px;
  border-left: 4px solid var(--disclaimer);
  text-transform: uppercase;
}

.legal-disclaimer p {
  color: var(--disclaimer);
  font-weight: bold;
  font-size: 0.95rem;
}

/* Form styles - clean, flat */
.inner-section {
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--on-background);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--outline);
  border-radius: 6px;
  font-size: 1rem;
  background: var(--background);
  color: var(--on-background);
  transition: border-color 0.2s ease;
}

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

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.btn {
  background-color: var(--primary);
  color: var(--on-primary);
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--on-background);
  border: 1px solid var(--outline);
}

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

/* Contact info styling */
.contact-info {
  background: var(--surface);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--outline-variant);
  margin-top: 60px;
  text-align: center;
}

.contact-info h3 {
  color: var(--on-background);
  margin-bottom: 15px;
}

.contact-info p {
  color: var(--on-surface-variant);
  margin-bottom: 10px;
}

/* Support separator */
.support-separator {
  text-align: center;
  margin: 40px 0;
  border: 1px solid var(--outline-variant);
  height: 1px;
}

/* Footer - flat design */
footer {
  background-color: var(--inverse-surface);
  color: var(--inverse-on-surface);
  padding: 40px 0;
  margin-top: 60px;
  border-top: 1px solid var(--outline-variant);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  color: var(--inverse-primary);
  margin-bottom: 15px;
}

.footer-section a {
  color: var(--inverse-on-surface);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--inverse-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--outline);
  color: var(--on-surface-variant);
}

/* Responsive design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1.2rem;
  }

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

  .store-badge img {
    height: 50px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  nav {
    flex-direction: column;
    gap: 15px;
  }

  main {
    margin-top: 120px;
  }

  .section h2 {
    font-size: 2rem;
  }

  .container {
    padding: 0 15px;
  }

  .lang-options {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus indicators */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Remove all box shadows and gradients */
.feature-card,
.support-section,
.contact-info {
  box-shadow: none;
}

/* Ensure flat design throughout */
.store-badge img {
  box-shadow: none;
  border-radius: 8px;
}

.image-gallery {
  width: 100%;
  display: flex;
  flex-flow: row;
  justify-content: space-between;
}

.image-gallery img {
  width: 200px;
  border-radius: 12px;
}

.support-email {
  display: flex;
  gap: 8px;
}

.divider {
  margin: 20px 0;
}

.section-header h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 30px;
}