:root {
  --bg: #FFF8EC; --card: #FFFFFF; --ink: #3A3A55; --muted: #6B6B82; --green: #1FAA59;
  --green-dark: #178A48; --star: #FFB703; --border: #EADFCB; --tint: #DDF3E4;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1B1B26; --card: #282836; --ink: #ECEAF4; --muted: #A0A0B8; --green: #2DC26B; --green-dark: #23A35A; --border: #3A3A4E; --tint: #213328; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: -0.5px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { margin-left: auto; display: flex; gap: 20px; font-weight: 700; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--green); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--tint), var(--bg)); padding: 64px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.kicker { display: inline-flex; gap: 8px; align-items: center; background: var(--card); border: 1.5px solid var(--border); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 14px; color: var(--green); }
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -1.5px; margin: 18px 0 16px; }
h1 em { font-style: normal; color: var(--green); }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #111; color: #fff; text-decoration: none; border-radius: 12px; padding: 10px 18px; min-width: 170px; border: 1px solid #333; transition: transform .15s ease; }
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; opacity: .85; line-height: 1.1; }
.store b { display: block; font-size: 18px; line-height: 1.15; }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.hero-shots { position: relative; height: 560px; }
.hero-shots img { position: absolute; width: 270px; border-radius: 28px; box-shadow: 0 24px 50px -18px rgba(58,58,85,.45); }
.hero-shots img:first-child { right: 120px; top: 30px; transform: rotate(-6deg); }
.hero-shots img:last-child { right: 0; top: 0; transform: rotate(5deg); }

/* Sections */
section { padding: 64px 0; }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -1px; line-height: 1.15; margin: 0 0 12px; }
.sub { color: var(--muted); font-size: 18px; margin: 0 0 32px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1.5px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: 0 2px 8px rgba(58,58,85,.05); }
.card h3 { margin: 12px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--green); }
.icon svg { width: 24px; height: 24px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps .card::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 900; }
.gallery { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.gallery img { width: 240px; flex: none; border-radius: 22px; scroll-snap-align: start; box-shadow: 0 12px 30px -16px rgba(58,58,85,.4); }
.scenes { display: flex; flex-wrap: wrap; gap: 10px; }
.scenes span { background: var(--card); border: 1.5px solid var(--border); border-radius: 999px; padding: 8px 16px; font-weight: 800; }
details { background: var(--card); border: 1.5px solid var(--border); border-radius: 16px; padding: 16px 20px; margin-bottom: 12px; }
summary { font-weight: 800; cursor: pointer; font-size: 18px; }
details p { color: var(--muted); margin: 10px 0 0; }
.cta { background: var(--green); color: #fff; border-radius: 28px; padding: 44px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { opacity: .92; margin: 0 0 24px; font-size: 18px; }
.cta .stores { justify-content: center; }
footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; }
footer a { color: var(--muted); }

/* Text pages */
.page { max-width: 760px; margin: 0 auto; padding: 40px 20px 64px; }
.page h1 { font-size: clamp(32px, 5vw, 44px); }
.page h2 { font-size: 24px; margin-top: 36px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }

/* Challenge invite */
.invite { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 32px 20px; background: linear-gradient(180deg, var(--tint), var(--bg)); }
.invite .card { max-width: 440px; width: 100%; text-align: center; padding: 32px 26px; }
.invite .app-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 16px; box-shadow: 0 10px 24px -10px rgba(58,58,85,.4); }
.invite h1 { font-size: 30px; margin: 6px 0 8px; }
.time { display: inline-block; font-size: 44px; font-weight: 900; color: var(--green); margin: 4px 0 12px; font-variant-numeric: tabular-nums; }
.btn { display: block; background: var(--green); color: #fff; text-decoration: none; font-weight: 900; font-size: 18px; padding: 15px; border-radius: 999px; margin: 18px 0 14px; }
.btn:hover { background: var(--green-dark); }
.invite .stores { justify-content: center; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-shots { height: 420px; }
  .hero-shots img { width: 200px; }
  .hero-shots img:first-child { right: auto; left: 8%; }
  .hero-shots img:last-child { right: 8%; }
  .grid, .steps { grid-template-columns: 1fr; }
  .top nav { display: none; }
  .cta { padding: 32px 20px; }
}
