/* Base */
:root {
  --primary: #6765ec;
  --text: #111827;    /* gray-900 */
  --muted: #6b7280;   /* gray-500/600 */
  --border: #f3f4f6;  /* gray-100 */
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Layout helpers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.header-inner {
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-group { display: flex; align-items: center; gap: 12px; }
.logo {
  font-family: 'Pacifico', cursive;
  color: var(--primary);
  font-weight: 700;
  font-size: 22px;
}
.page-title { font-weight: 500; color: var(--text); }

.lang-switch {
  display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-soft);
  border-radius: 9999px;
}
.lang {
  border: 0; background: transparent; color: #6b7280;
  padding: 6px 12px; border-radius: var(--radius-sm); cursor: pointer;
  font-weight: 600;
}
.lang.active { background: var(--primary); color: #fff; }

/* Hero */
.hero { text-align: center; padding: 112px 1rem 48px; }
.hero-title { font-size: clamp(28px, 3.5vw, 48px); font-weight: 800; margin: 0 0 12px; }
.hero-subtitle { margin: 0 auto; max-width: 640px; color: var(--muted); font-size: 18px; }

/* Popular */
.popular { padding: 48px 1rem; }
.section-title { text-align: center; font-size: 28px; font-weight: 800; margin: 0 0 24px; }

.card-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 900px; margin: 0 auto;
}
.card {
  border: 1px solid var(--border);
  border-radius: 16px; padding: 20px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(0,0,0,.06); transform: translateY(-1px); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { padding: 48px 1rem; max-width: 720px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-toggle {
  width: 100%; text-align: left; padding: 16px 18px; background: #fff; border: 0; cursor: pointer;
  font-weight: 700; font-size: 16px;
}
.faq-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.faq-content {
  padding: 0 18px;
  color: var(--muted);
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding-top .25s ease, padding-bottom .25s ease;
}
.faq-item.active .faq-content {
  padding-top: 8px; padding-bottom: 16px;
  /* max-height is set inline via JS for smooth auto height */
}

/* Contact */
.contact { padding: 48px 1rem; }
.contact-inner {
  max-width: 680px; margin: 0 auto; text-align: center;
  border: 1px solid rgba(103,101,236,.15);
  background: linear-gradient(135deg, rgba(103,101,236,.06), rgba(103,101,236,.12));
  border-radius: 24px; padding: 48px 24px;
}
.contact-icon { width: 64px; height: 64px; line-height: 64px; margin: 0 auto 16px;
  background: rgba(103,101,236,.12); border-radius: 9999px; font-size: 28px; }
.contact-title { margin: 0 0 8px; font-size: 26px; font-weight: 800; }
.contact-subtitle { margin: 0 0 24px; color: var(--muted); font-size: 18px; }
.btn-primary {
  border: 0; background: var(--primary); color: #fff; font-weight: 700;
  padding: 12px 24px; border-radius: var(--radius-sm); cursor: pointer;
}
.btn-primary:hover { filter: brightness(.95); }

/* Contact – compact state after click */
.contact.compact .contact-inner {
  padding: 24px; text-align: left;
}
.contact-options {
  display: grid; gap: 12px; margin-top: 8px;
}
.contact-option {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff;
}
.contact-option a { color: var(--primary); font-weight: 700; text-decoration: none; }
.contact-option a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 1rem; text-align: center;
}
.status { color: var(--muted); display: flex; gap: 8px; align-items: center; justify-content: center; }
.dot { width: 8px; height: 8px; background: #22c55e; border-radius: 9999px; display: inline-block; }
.footer-nav { margin: 10px 0; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
.footer-nav a:hover { color: var(--primary); }
.copy { color: var(--muted); font-size: 14px; }

/* Spacing below fixed header */
.hero, .popular, .faq, .contact { scroll-margin-top: 80px; }

.legal-content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  line-height: 1.6;
  font-size: 1rem;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  margin-bottom: 1rem;
}
.logo img,
.logo-img {
  height: 40px;   /* adjust to fit your header */
  width: auto;
  display: block;
}

/* App Downloads */
.app-downloads {
  padding: 48px 1rem;
  text-align: center;
}

.app-downloads .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 720px; /* Adjust as needed */
}

.app-downloads .section-title {
  margin-bottom: 24px;
}

.download-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.app-store-button img {
  height: 60px; /* Adjust size as needed */
  width: auto;
}
