/* FitQ SparQ landing (task 0884) — käsitsi kirjutatud asendus kadunud
   sparq-web Next.js saidile. Toonid ja paigutus originaali järgi. */

@font-face {
  font-family: 'Albert Sans';
  src: url('/albert-sans.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #262b34;
  --bg-card: #343a46;
  --bg-card-soft: #303643;
  --border: #3f4655;
  --text: #f5f6f8;
  --text-muted: #b7bdc8;
  --green: #40b236;
  --green-light: #60cc56;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Albert Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}
header .logo img { height: 1.75rem; width: auto; }
.lang-switch {
  display: flex;
  gap: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.lang-switch a {
  padding: 0.25rem 0.6rem;
  border-radius: 0.375rem;
  color: var(--text-muted);
}
.lang-switch a.active { background: var(--bg-card); color: var(--text); }
.lang-switch a:hover { color: var(--text); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0 5rem;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}
.hero .hero-text { text-align: center; }
.hero p {
  margin: 1.5rem auto 0;
  max-width: 32rem;
  color: var(--text-muted);
}
.store-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}
.store-badges img { height: 3rem; width: auto; }
.hero-image img { border-radius: 1rem; }

/* Features */
.features { padding: 3rem 0 4rem; }
.features h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card-soft);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feature-card h3 {
  background: linear-gradient(135deg, #57a94b, #3c7a33);
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}
.feature-card p {
  padding: 1.25rem 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* FAQ */
.faq { padding: 3rem 0 4rem; max-width: 52rem; margin: 0 auto; }
.faq h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  text-align: center;
}
.faq .faq-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0.75rem 0 2.5rem;
}
.faq details {
  background: var(--bg-card-soft);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details p {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-grid h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.footer-grid p, .footer-grid a { color: var(--text-muted); }
.footer-grid li { list-style: none; margin-bottom: 0.5rem; }
.footer-grid a:hover { color: var(--green-light); }
.copyright {
  text-align: center;
  color: var(--text-muted);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 2.5rem 0 3rem; }
  .hero-image { order: -1; max-width: 26rem; margin: 0 auto; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .store-badges { flex-direction: column; align-items: center; }
}
