:root {
  --coral: #f0503a;
  --coral-soft: #ff8a8a;
  --teal: #2db88a;
  --purple: #ba8ce8;
  --ink: #1a1f1e;
  --muted: #5a6e6a;
  --cream: #fff9f5;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(0,0,0,0.12);
  --font-display: "Baloo 2", "Nunito", sans-serif;
  --font-body: "Nunito", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255,249,245,0.88);
  border-bottom: 1.5px solid rgba(240,80,58,0.13);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.35rem; letter-spacing: -0.5px;
  color: var(--coral);
}
.nav-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nav-links a, .nav-cta {
  font-weight: 700; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px;
  color: var(--muted); transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--coral); color: #fff !important;
  box-shadow: 0 6px 20px rgba(26,31,30,0.18);
}
.nav-cta:hover { transform: translateY(-1px); }

.lang-wrap { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  border: 1.5px solid rgba(42,42,42,0.15);
  border-radius: 999px; padding: 7px 12px; font-weight: 700; font-size: 0.9rem;
  background: #fff;
}
.lang-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  width: min(280px, 80vw); max-height: 360px; overflow: auto;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.06); padding: 8px;
}
.lang-menu.open { display: block; }
.lang-item {
  display: flex; width: 100%; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; text-align: left; font-weight: 700;
}
.lang-item:hover, .lang-item.active { background: #fff0ef; color: var(--coral); }

.menu-toggle { display: none; font-size: 1.4rem; padding: 6px 10px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 64px 0 48px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,138,138,0.25), transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(186,140,232,0.22), transparent 45%),
    linear-gradient(180deg, #fff9f5 0%, #ffe8e2 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.7); border: 1.5px solid rgba(45,184,138,0.44);
  border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 0.85rem;
  color: var(--teal); margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; margin: 0 0 16px;
  letter-spacing: -1px;
}
.hero h1 .accent { color: var(--coral); }
.hero-lead { font-size: 1.1rem; color: var(--muted); max-width: 36rem; margin: 0 0 24px; font-weight: 600; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.store-badge {
  display: flex; align-items: center; gap: 10px;
  background: #1a1f1e; color: #fff; border-radius: 14px; padding: 10px 16px;
  min-width: 170px; transition: transform .15s;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge small { display: block; font-size: 0.7rem; opacity: 0.75; font-weight: 600; }
.store-badge strong { font-size: 1.05rem; font-weight: 800; }
.loved { color: rgba(26,31,30,0.55); font-weight: 700; font-size: 0.95rem; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px;
}
.stat {
  background: rgba(255,255,255,0.72); border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 16px; padding: 14px 12px; text-align: center;
}
.stat .num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.stat .label { font-size: 0.78rem; font-weight: 700; color: rgba(26,31,30,0.55); }

.phone-stack { position: relative; min-height: 420px; }
.phone {
  width: min(240px, 70%); border-radius: 28px; overflow: hidden;
  border: 2.5px solid #fff; box-shadow: 0 32px 80px rgba(240,80,58,0.28), 0 8px 20px rgba(0,0,0,0.2);
  position: absolute;
}
.phone img { width: 100%; height: auto; }
.phone.p1 { left: 8%; top: 0; transform: rotate(-5deg) translateY(16px); }
.phone.p2 { right: 4%; top: 40px; transform: rotate(4deg); box-shadow: 0 32px 80px rgba(186,140,232,0.3), 0 8px 20px rgba(0,0,0,0.2); }

/* Sections */
section { padding: 72px 0; }
.section-kicker {
  font-family: var(--font-display); color: var(--coral); font-weight: 700;
  font-size: 0.95rem; margin-bottom: 8px;
  text-align: center;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 0 0 10px; letter-spacing: -0.5px;
  text-align: center;
}
.section-sub {
  color: var(--muted); font-weight: 600; max-width: 40rem;
  margin: 0 auto 36px; text-align: center;
}

.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.feature {
  background: #fff; border-radius: var(--radius); padding: 22px;
  border: 1.5px solid rgba(0,0,0,0.04); box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .emoji {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: 14px;
}
.feature h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); font-weight: 600; font-size: 0.95rem; }

.how { background: #1a1f1e; color: #fff; }
.how .section-kicker { color: var(--coral-soft); }
.how .section-sub { color: rgba(255,255,255,0.65); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: rgba(255,255,255,0.04); border: 1.5px solid rgba(255,255,255,0.07);
  border-radius: var(--radius); padding: 24px;
}
.step .n {
  font-family: var(--font-display); color: var(--coral-soft); font-size: 0.9rem; font-weight: 700;
  margin-bottom: 10px;
}
.step h3 { margin: 0 0 8px; font-family: var(--font-display); }
.step p { margin: 0; color: rgba(255,255,255,0.7); font-weight: 600; }

.shots-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.shot {
  background: #fff; border-radius: 20px; padding: 14px; text-align: center;
  border: 1.5px solid rgba(0,0,0,0.05); box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}
.shot img { border-radius: 14px; margin: 0 auto 12px; width: 100%; height: auto; display: block; }
.shot figcaption { font-weight: 800; font-size: 0.92rem; }

.cta {
  background: linear-gradient(140deg, #FF9E8A 0%, #F0503A 45%, #C93020 100%);
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.cta h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 12px; }
.cta p { color: rgba(255,255,255,0.82); font-weight: 600; max-width: 34rem; margin: 0 auto 28px; }
.qr-row {
  --cta-col: 260px;
  display: grid;
  grid-template-columns: repeat(2, var(--cta-col));
  justify-content: center;
  align-items: stretch;
  column-gap: 48px;
  row-gap: 28px;
  margin: 0 auto 28px;
  width: max-content;
  max-width: 100%;
}
.qr-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: var(--cta-col);
}
.qr-box {
  background: #fff; border-radius: 16px; padding: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  width: var(--cta-col);
  height: var(--cta-col);
  box-sizing: border-box;
  display: grid; place-items: center;
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
}
.qr-box img, .qr-box canvas, .qr-box table {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
}
.qr-label {
  font-weight: 700; color: rgba(255,255,255,0.9);
  min-height: 2.6em;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  line-height: 1.3;
  width: 100%;
  max-width: 100%;
  padding: 0 4px;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.qr-card .store-badge {
  margin-top: auto;
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  justify-content: center;
  padding-left: 14px;
  padding-right: 14px;
}
.cta-note {
  color: rgba(255,255,255,0.65); font-weight: 600; font-size: 0.95rem;
  margin: 0 auto;
  max-width: 34rem;
}
@media (max-width: 560px) {
  .qr-row {
    grid-template-columns: var(--cta-col);
    width: var(--cta-col);
  }
}

.footer {
  background: #121616; color: rgba(255,255,255,0.7); padding: 36px 0;
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center;
}
.footer a { font-weight: 700; margin-right: 16px; color: rgba(255,255,255,0.85); }
.footer a:hover { color: #fff; }
.footer .copy { font-size: 0.9rem; }

/* Legal */
.legal-page { padding: 40px 0 80px; }
.legal-card {
  background: #fff; border-radius: 20px; padding: clamp(20px, 4vw, 40px);
  border: 1px solid rgba(0,0,0,0.05); box-shadow: var(--shadow); max-width: 820px; margin: 0 auto;
}
.legal-toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.back-btn, .copy-btn {
  border: 1.5px solid rgba(240,80,58,0.35); border-radius: 999px; padding: 8px 16px;
  font-weight: 800; color: var(--coral); background: #fff;
}
.legal-md h1, .legal-md h2 { font-family: var(--font-display); }
.legal-md h1 { font-size: 1.8rem; }
.legal-md h2 { margin-top: 1.6em; font-size: 1.25rem; }
.legal-md a { color: var(--coral); text-decoration: underline; }
.legal-md table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.legal-md th, .legal-md td { border: 1px solid #eee; padding: 8px 10px; text-align: left; }
.questions {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.06);
  font-weight: 700;
}
.questions a { color: var(--coral); }

@media (max-width: 900px) {
  .hero-grid, .features, .steps, .shots-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .phone-stack { min-height: 360px; margin-top: 20px; }
}
@media (max-width: 700px) {
  .menu-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; left: 20px; right: 20px; top: 64px;
    background: #fff; border-radius: 16px; padding: 12px; flex-direction: column;
    align-items: stretch; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .hero-grid, .features, .steps { grid-template-columns: 1fr; }
  .phone.p2 { display: none; }
  .phone.p1 { position: relative; left: auto; transform: none; margin: 0 auto; }
  .phone-stack { min-height: 0; }

  /* Screenshots: horizontal snap-scroll on phones only */
  .shots-grid {
    --shot-card: min(62vw, 220px);
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(12px, calc(50% - var(--shot-card) / 2));
    padding: 4px max(12px, calc(50% - var(--shot-card) / 2)) 12px;
    margin-inline: -20px;
    width: calc(100% + 40px);
    max-width: none;
    grid-template-columns: none;
  }
  .shots-grid::-webkit-scrollbar { height: 6px; }
  .shots-grid::-webkit-scrollbar-thumb {
    background: rgba(240, 80, 58, 0.35); border-radius: 999px;
  }
  .shot {
    flex: 0 0 var(--shot-card);
    scroll-snap-align: center;
    max-width: var(--shot-card);
  }
}
