/* ============================================================
   Spot the Difference – landing page styles
   Playful, bright, single-file CSS (no build step).
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f4ff;
  --card: #ffffff;
  --line: rgba(0, 0, 0, 0.09);
  --text: #1c1630;
  --muted: #6a6580;
  --accent: #6c4df6;       /* violet (matches app seed) */
  --accent-ink: #5a3fe0;
  --gold: #ffc24b;         /* diamond accent */
  --radius: 20px;
  --radius-sm: 14px;
  --container: 1080px;
  --shadow: 0 18px 50px rgba(76, 45, 200, 0.12);
  --shadow-sm: 0 6px 20px rgba(76, 45, 200, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
p { margin: 0 0 1em; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; }
.brand__logo { font-size: 22px; }
.lang { display: flex; gap: 6px; }
.lang__btn {
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 4px 6px; cursor: pointer; line-height: 0; opacity: .55; transition: .15s;
}
.lang__btn:hover { opacity: .85; }
.lang__btn--active { opacity: 1; border-color: var(--accent); box-shadow: var(--shadow-sm); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px;
  align-items: center; padding: 64px 20px 40px;
}
.hero__sub { font-size: 1.15rem; color: var(--muted); max-width: 30ch; }
.hero__note { color: var(--muted); font-size: .95rem; margin-top: 14px; }
.hero__art { display: flex; justify-content: center; }
.art-card {
  position: relative; width: 240px; height: 240px; border-radius: 32px;
  background: linear-gradient(140deg, #efe9ff, #e0d6ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 96px; box-shadow: var(--shadow);
}
.art-badge {
  position: absolute; right: -10px; top: -10px; width: 56px; height: 56px;
  border-radius: 50%; background: var(--gold); color: #4a3400;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 28px; box-shadow: var(--shadow-sm);
}

/* Store badges */
.store { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.store-badge img { height: 48px; display: block; }
.store-badge { transition: transform .15s; }
.store-badge:hover { transform: translateY(-2px); }

/* Trust strip */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding: 8px 20px 12px;
}
.strip__item {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px; font-size: .95rem;
}
.strip__item span { font-size: 20px; }

/* Features */
.features {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  padding: 48px 20px;
}
.feature {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(14px); transition: .5s ease;
}
.feature.is-in { opacity: 1; transform: none; }
.feature__icon { font-size: 34px; margin-bottom: 8px; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); margin: 0; }

/* How it works */
.how { padding: 24px 20px 56px; text-align: center; }
.how__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.how__step {
  background: var(--bg-alt); border-radius: var(--radius); padding: 24px;
  opacity: 0; transform: translateY(14px); transition: .5s ease;
}
.how__step.is-in { opacity: 1; transform: none; }
.how__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 10px;
}
.how__step p { margin: 0; color: var(--muted); }

/* Screenshots */
.shots { padding: 24px 20px 56px; text-align: center; }
.shots__row {
  display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 28px;
}
.phone {
  width: 215px; border-radius: 30px; padding: 8px; background: #14102a;
  box-shadow: var(--shadow); flex: 0 0 auto;
}
.phone img { width: 100%; display: block; border-radius: 22px; }

/* CTA */
.cta { background: linear-gradient(135deg, var(--accent), #8b6bff); color: #fff; }
.cta__inner { padding: 56px 20px; text-align: center; }
.cta h2 { color: #fff; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 22px 20px; flex-wrap: wrap;
}
.footer__copy { color: var(--muted); font-size: .9rem; }
.footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer__links a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero__sub { max-width: none; margin-inline: auto; }
  .store { justify-content: center; }
  .hero__art { order: -1; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .how__steps { grid-template-columns: 1fr; }
}
