:root {
  --bg: #F6F3EC;
  --surface: #FFFFFF;
  --border: #E2DCCF;
  --primary: #1E2B4F;
  --primary-light: #3B4E86;
  --accent: #E0412F;
  --text: #1E2B4F;
  --muted: #646B7D;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: var(--primary-light);
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 900;
}

h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.narrow {
  max-width: 760px;
}

.accent {
  color: var(--accent);
}

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  border-radius: 22%;
}

.topnav {
  display: flex;
  gap: 24px;
}

.topnav a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

/* Hero */

.hero {
  padding: 48px 0 24px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.95rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 32px;
}

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

.hero-shot img {
  width: 100%;
  max-width: 340px;
  border-radius: 28px;
  box-shadow: 0 30px 60px -20px rgba(30, 43, 79, 0.35);
}

/* Store badges */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stores-center {
  justify-content: center;
}

.store {
  display: inline-flex;
  flex-direction: column;
  min-width: 190px;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.2;
  opacity: 0.85;
  cursor: default;
}

.store small {
  font-weight: 600;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Stats */

.stats {
  padding: 24px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stats-grid div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stats-grid strong {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.1;
}

.stats-grid span {
  color: var(--muted);
  font-weight: 600;
}

/* Sections */

.section {
  padding: 72px 0;
}

.section > .wrap > h2 {
  text-align: center;
  margin-bottom: 40px;
}

.section-dark {
  background: var(--primary);
  color: #FFFFFF;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 1.3rem;
  font-weight: 900;
}

/* Gallery */

.gallery-section {
  padding-top: 0;
}

.gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px max(16px, calc((100vw - 1088px) / 2)) 24px;
  scrollbar-width: thin;
}

.gallery img {
  flex: 0 0 auto;
  width: 240px;
  border-radius: 20px;
  scroll-snap-align: center;
  box-shadow: 0 16px 32px -16px rgba(30, 43, 79, 0.35);
}

/* Exam */

.exam-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.exam-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.exam-card strong {
  font-size: 3rem;
  font-weight: 900;
  color: #FF6B57;
  line-height: 1.1;
}

.exam-note {
  max-width: 640px;
  margin: 32px auto 0;
  text-align: center;
  opacity: 0.85;
}

/* FAQ */

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}

summary {
  font-weight: 800;
  cursor: pointer;
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
}

/* CTA */

.cta {
  text-align: center;
  padding-top: 24px;
}

.cta img {
  border-radius: 22%;
  margin-bottom: 16px;
}

.cta p {
  color: var(--muted);
  margin: 0 0 24px;
}

/* Footer */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  text-align: center;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.footer nav a {
  color: var(--text);
  font-weight: 700;
}

.disclaimer {
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Text pages (privacy, support) */

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 16px;
}

.page h2 {
  font-size: 1.4rem;
  margin-top: 32px;
}

.muted {
  color: var(--muted);
}

/* Responsive */

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero .stores {
    justify-content: center;
  }

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

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

@media (max-width: 600px) {
  .topnav {
    display: none;
  }

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

  .section {
    padding: 56px 0;
  }

  .gallery img {
    width: 200px;
  }

  .store {
    min-width: 0;
    flex: 1 1 140px;
  }
}
