/* VirtuPet website. The app's palette (cream, orange, cocoa) and its chunky
   sticker cards, laid out mobile first. */

:root {
  --cream: #FFF4E1;
  --cream-2: #FFFAF1;
  --card: #FFFBF3;
  --peach: #FFE3C2;
  --orange: #FF8A3D;
  --orange-2: #F26B1F;
  --orange-ink: #B9500F;
  --coral: #F05D3D;
  --sun: #FFC93C;
  --teal: #3FB8AF;
  --green: #5DB547;
  --pink: #F0709C;
  --ink: #2D1B0E;
  --ink-2: rgba(45, 27, 14, 0.68);
  --ink-3: rgba(45, 27, 14, 0.45);
  --stroke: rgba(45, 27, 14, 0.12);
  --night: #22140A;

  --sticker: 0 5px 0 var(--ink);
  --soft: 0 18px 40px -18px rgba(120, 60, 10, 0.35);
  --r-card: 26px;
  --max: 1100px;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream);
  font-size: 17px; line-height: 1.55; font-weight: 600;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 900; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
p { margin: 0; }
b { font-weight: 800; }
.nowrap { white-space: nowrap; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 12px; }
.skip:focus { left: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--orange-ink); background: var(--peach);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 16px;
}
.eyebrow-light { background: rgba(255, 255, 255, 0.72); color: var(--ink); box-shadow: 0 4px 14px rgba(160, 80, 10, 0.12); }
.paw {
  width: 16px; height: 16px; flex: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F26B1F'><ellipse cx='6' cy='9' rx='2.3' ry='3'/><ellipse cx='10.5' cy='5.5' rx='2.3' ry='3'/><ellipse cx='15.5' cy='5.5' rx='2.3' ry='3'/><ellipse cx='19' cy='9.5' rx='2.2' ry='2.9'/><path d='M12.6 11c3 0 6.4 4.4 6.4 7 0 2.2-1.9 3-3.6 3-1.4 0-2.1-.7-3-.7s-1.7.7-3.1.7C7.5 21 6 20.1 6 18c0-2.7 3.6-7 6.6-7z'/></svg>") center / contain no-repeat;
}
.section-head { max-width: 44rem; margin: 0 auto 40px; text-align: center; }
.lede { font-size: 1.14rem; color: var(--ink-2); margin-top: 14px; }
.section-head .lede { margin-left: auto; margin-right: auto; max-width: 38rem; }
section { padding: 92px 0; position: relative; }

/* Buttons and the App Store badge (Apple's official artwork) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 1.02rem; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(3px); }
.btn-ghost { background: rgba(255, 255, 255, 0.82); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.btn-ghost:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn-ghost:active { box-shadow: 0 1px 0 var(--ink); }
.store-badge { display: inline-flex; line-height: 0; border-radius: 10px; transition: transform 0.15s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge:active { transform: scale(0.97); }
.store-badge img { height: 40px; width: auto; }
.store-badge-lg img { height: 56px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 244, 225, 0.84);
  backdrop-filter: saturate(170%) blur(14px); -webkit-backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid var(--stroke);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 1.22rem; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 2px 0 rgba(45, 27, 14, 0.25); }
.nav { display: flex; align-items: center; gap: 24px; font-weight: 800; font-size: 0.95rem; }
.nav a:not(.store-badge) { text-decoration: none; color: var(--ink-2); transition: color 0.15s; }
.nav a:not(.store-badge):hover { color: var(--ink); }
.nav .store-badge img { height: 38px; }
@media (max-width: 860px) { .nav a:not(.store-badge) { display: none; } .nav .store-badge img { height: 36px; } }

/* Hero */
.hero {
  overflow: hidden; padding: 64px 0 0;
  background:
    radial-gradient(120% 70% at 85% 8%, rgba(255, 236, 170, 0.9) 0, rgba(255, 236, 170, 0) 55%),
    linear-gradient(180deg, #FFB977 0%, #FFCB8E 30%, #FFE0B2 62%, #FFEFD4 100%);
}
.sky { position: absolute; inset: 0; pointer-events: none; }
.sun {
  position: absolute; right: 7%; top: 34px; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #FFF2B8, var(--sun) 70%);
  box-shadow: 0 0 0 22px rgba(255, 214, 102, 0.28), 0 0 0 52px rgba(255, 214, 102, 0.12);
  animation: sunPulse 6s ease-in-out infinite;
}
@keyframes sunPulse { 50% { box-shadow: 0 0 0 28px rgba(255, 214, 102, 0.22), 0 0 0 64px rgba(255, 214, 102, 0.08); } }
.cloud { position: absolute; background: #FFF8EC; border-radius: 999px; opacity: 0.92; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud-a { left: -20px; top: 110px; width: 160px; height: 46px; animation: drift 40s linear infinite; }
.cloud-a::before { width: 64px; height: 64px; left: 28px; top: -32px; }
.cloud-a::after { width: 46px; height: 46px; left: 84px; top: -20px; }
.cloud-b { right: 18%; top: 60px; width: 116px; height: 36px; opacity: 0.75; animation: drift 54s linear infinite reverse; }
.cloud-b::before { width: 48px; height: 48px; left: 20px; top: -24px; }
.cloud-b::after { width: 36px; height: 36px; left: 58px; top: -15px; }
.cloud-c { left: 40%; top: 26px; width: 92px; height: 28px; opacity: 0.6; animation: drift 66s linear infinite; }
.cloud-c::before { width: 38px; height: 38px; left: 16px; top: -18px; }
.cloud-c::after { width: 28px; height: 28px; left: 46px; top: -12px; }
@keyframes drift { 0%, 100% { transform: translateX(-40px); } 50% { transform: translateX(70px); } }

.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: center; }
.hero-copy { padding-bottom: 120px; }
.hero h1 { color: var(--ink); }
.hl { color: var(--orange-2); text-shadow: 0 4px 0 var(--ink); -webkit-text-stroke: 0; display: inline-block; animation: hlWiggle 5s ease-in-out infinite; transform-origin: 50% 70%; }
@keyframes hlWiggle { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-3deg) scale(1.04); } 95% { transform: rotate(2deg) scale(1.04); } }
.hero .lede { color: rgba(45, 27, 14, 0.78); max-width: 33rem; font-size: 1.2rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 0.92rem; color: rgba(45, 27, 14, 0.62); max-width: 30rem; }

.hero-art { position: relative; display: grid; justify-items: center; padding: 10px 0 64px; }
.parade {
  position: absolute; z-index: 4; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: 132%; display: flex; justify-content: center; align-items: flex-end; pointer-events: none;
}
.parade img {
  width: 21%; height: auto; margin: 0 -2.4%;
  filter: drop-shadow(0 12px 10px rgba(110, 55, 10, 0.25));
  animation: bob 3.6s ease-in-out infinite; animation-delay: var(--d);
}
.parade .lead { width: 26%; z-index: 1; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.grass {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: -2px; height: 96px; pointer-events: none;
  background: var(--cream); clip-path: ellipse(64% 100% at 50% 100%);
}

/* A real-looking iPhone */
.iphone {
  --w: 280px;
  position: relative; z-index: 1; width: var(--w); aspect-ratio: 9 / 19.5; padding: 9px; border-radius: 52px;
  background: linear-gradient(145deg, #3A3F44, #16191C 40%, #2B3034);
  box-shadow: 0 0 0 1.5px #5B6166, 0 50px 80px -24px rgba(120, 50, 0, 0.55), 0 20px 34px -14px rgba(0, 0, 0, 0.35);
}
.hw { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #2B3034, #50565B); }
.hw-action { left: -3px; top: 17%; height: 26px; }
.hw-vol1 { left: -3px; top: 25%; height: 46px; }
.hw-vol2 { left: -3px; top: 34%; height: 46px; }
.hw-power { right: -3px; top: 27%; height: 72px; }
.iphone-screen { position: relative; height: 100%; border-radius: 43px; overflow: hidden; background: #FFF1DC; }
.iphone-screen video { width: 100%; height: 100%; object-fit: cover; }
.iphone-hero { transform: rotate(3deg); animation: phoneFloat 7s ease-in-out infinite; }
@keyframes phoneFloat { 0%, 100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-10px); } }

/* Floating chips around the phone */
.chip {
  position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 2.5px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
  border-radius: 18px; padding: 8px 12px; font-weight: 800; font-size: 0.9rem; white-space: nowrap;
  animation: bob 5s ease-in-out infinite;
}
.chip img { width: 28px; height: 28px; object-fit: contain; }
.chip small { display: block; font-size: 0.75rem; color: var(--ink-2); font-weight: 700; line-height: 1.1; }
.chip span b { display: block; line-height: 1.1; }
.chip-streak { left: -2%; top: 12%; animation-delay: -1s; }
.chip-streak b { font-variant-numeric: tabular-nums; color: var(--orange-2); }
.chip-egg { right: -4%; top: 28%; animation-delay: -2.4s; }
.chip-health { left: -6%; top: 50%; animation-delay: -3.1s; }
.heart { width: 22px; height: 20px; flex: none; background: var(--pink); clip-path: path("M11 20 C 3 14, 0 10, 0 6 C 0 2.5, 2.7 0, 6 0 C 8.2 0, 10 1.3, 11 3 C 12 1.3, 13.8 0, 16 0 C 19.3 0, 22 2.5, 22 6 C 22 10, 19 14, 11 20 Z"); }
.mini-bar { display: block; width: 92px; height: 8px; margin-top: 4px; border-radius: 99px; background: rgba(45, 27, 14, 0.12); overflow: hidden; }
.mini-bar i { display: block; height: 100%; width: 30%; border-radius: inherit; background: linear-gradient(90deg, #7ED957, var(--green)); animation: fillUp 6s ease-in-out infinite; }
@keyframes fillUp { 0% { width: 18%; } 60%, 100% { width: 100%; } }
.chip-coin { right: 2%; top: 58%; background: var(--sun); animation: coinPop 4.2s ease-in-out infinite; }
.coin { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFF0A8, #F2A516 70%); border: 2px solid var(--ink); }
@keyframes coinPop { 0%, 100% { transform: translateY(0) scale(1); } 8% { transform: translateY(-6px) scale(1.12); } 16% { transform: translateY(0) scale(1); } 50% { transform: translateY(-8px); } }

/* Ticker */
.ticker { background: var(--ink); color: var(--cream); overflow: hidden; padding: 14px 0; transform: rotate(-1.2deg); margin: -6px -10px 0; position: relative; z-index: 6; }
.ticker-track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 18px; padding: 0 18px; font-weight: 900; font-size: 1.05rem; white-space: nowrap; }
.ticker span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.25); }
@keyframes tick { to { transform: translateX(-50%); } }

/* How it works rows */
.how-row { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding: 30px 0; }
.how-row.flip .stage { order: 2; }
.copy p { margin-top: 12px; color: var(--ink-2); font-size: 1.1rem; max-width: 31rem; }
.num {
  width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center;
  font-weight: 900; font-size: 1.25rem; margin-bottom: 16px;
  border: 2.5px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
}
.n1 { background: var(--sun); } .n2 { background: #BDEB9F; } .n3 { background: #FFC2D6; }
.stage {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 30px;
  border: 3px solid var(--ink); box-shadow: 0 7px 0 var(--ink); background: var(--card);
}

/* Stage 1: steps fill pet health, coins float up */
.stage-walk { background: #FFF8DF; }
.stage-walk video { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 76%; object-fit: contain; object-position: 50% 100%; }
.hud {
  position: absolute; left: 14px; right: 14px; top: 14px; display: grid; gap: 8px;
  background: rgba(45, 27, 14, 0.88); color: var(--cream); border-radius: 18px; padding: 12px 16px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hud-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hud-label { color: rgba(255, 244, 225, 0.7); font-weight: 700; font-size: 0.85rem; }
.hud-steps b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.hud-health { font-weight: 900; color: #9BE66F; }
.hud-health b { font-variant-numeric: tabular-nums; font-size: 1.1rem; display: inline-block; }
.bar { height: 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--orange-2), var(--sun)); }
.bar-light { background: rgba(45, 27, 14, 0.1); }
.mood-pill {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; padding: 6px 14px 6px 10px;
  font-weight: 900; font-size: 0.92rem; box-shadow: 0 3px 0 var(--ink); transition: transform 0.3s;
}
.mood-pill::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--mood, #A9A9A9); }
.mood-pill.bump { animation: bump 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.floats { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.float {
  position: absolute; bottom: 26%; display: inline-flex; align-items: center; gap: 6px;
  background: var(--sun); color: var(--ink); border: 2px solid var(--ink); font-weight: 900; font-size: 0.88rem;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  animation: floatUp 1.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.float .coin { width: 16px; height: 16px; border-width: 1.5px; }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(20px) scale(0.6); } 15% { opacity: 1; transform: translateY(0) scale(1.08); } 30% { transform: translateY(-14px) scale(1); } 100% { opacity: 0; transform: translateY(-130px); } }
@keyframes bump { 40% { transform: scale(1.25); } }
.bump b { display: inline-block; animation: bump 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* Stage 2: the map */
.stage-map { background: #C5E6A6; }
.map { width: 100%; height: 100%; }
.map .park { fill: none; stroke: #AEDB8F; stroke-width: 46; stroke-linecap: round; }
.map .road { fill: none; stroke: #FFFDF6; stroke-width: 16; stroke-linecap: round; }
.map .road.thin { stroke-width: 10; }
.map .water { fill: none; stroke: #8FD3F0; stroke-width: 14; stroke-linecap: round; }
.map .trees circle { fill: #8CC56C; }
.map .route { fill: none; stroke: rgba(242, 107, 31, 0.35); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1 11; }
.map .trail { fill: none; stroke: var(--orange-2); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1 11; }
.map .pin-ring { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.map .pulse { fill: rgba(63, 184, 175, 0.35); transform-box: fill-box; transform-origin: center; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.map .egg-pin { transform-box: fill-box; transform-origin: center; transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s; }
.map .egg-pin.got { transform: scale(0.2) translateY(-60px); opacity: 0; }
.map .far-egg { opacity: 0.8; }
.map .walker-ring { fill: #fff; stroke: var(--orange-2); stroke-width: 3.5; }
.map-card {
  position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 2.5px solid var(--ink); border-radius: 18px; padding: 9px 10px 9px 12px; box-shadow: 0 4px 0 var(--ink);
}
.map-card > div { flex: 1; min-width: 0; line-height: 1.2; }
.map-card > div > b { display: block; }
.map-card span { font-size: 0.85rem; color: var(--ink-2); font-weight: 700; }
.map-card span b { color: var(--ink); font-variant-numeric: tabular-nums; }
.map-cta {
  flex: none; background: var(--teal); color: #fff !important; font-weight: 900 !important; font-size: 0.85rem !important;
  border-radius: 999px; padding: 8px 14px; border: 2px solid var(--ink); transition: background 0.2s, transform 0.2s;
}
.map-cta.ready { background: var(--orange-2); animation: bump 0.6s ease 2; }
.toast {
  position: absolute; left: 50%; top: 16px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--cream); font-weight: 900; padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  opacity: 0; transform: translate(-50%, -20px); transition: opacity 0.3s, transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Stage 3: hatching */
.stage-hatch { background: radial-gradient(circle at 50% 46%, #FFF6DA 0, #FFE2B4 55%, #FFC98E 100%); display: grid; place-items: center; }
.rays {
  position: absolute; inset: -40%; opacity: 0; transition: opacity 0.4s;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.55) 0 9deg, rgba(255, 255, 255, 0) 9deg 22deg);
  animation: spin 18s linear infinite;
}
.stage-hatch.burst .rays { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.incubator { position: relative; width: 46%; max-width: 220px; aspect-ratio: 1; display: grid; place-items: center; transition: opacity 0.3s, transform 0.3s; }
.warm-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.warm-ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.warm-ring .track { stroke: rgba(45, 27, 14, 0.1); }
.warm-ring .fill { stroke: var(--orange-2); stroke-dasharray: 339.3; stroke-dashoffset: 339.3; }
.hatch-egg { width: 64%; height: auto; filter: drop-shadow(0 10px 10px rgba(120, 60, 10, 0.25)); transform-origin: 50% 85%; }
.stage-hatch.shake .hatch-egg { animation: wobble 0.5s ease-in-out infinite; }
.stage-hatch.shake-hard .hatch-egg { animation: wobble 0.22s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
.cracks { position: absolute; width: 40%; top: 18%; left: 30%; opacity: 0; }
.cracks path { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; }
.stage-hatch.crack .cracks { opacity: 1; }
.stage-hatch.crack .cracks path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.5s ease; }
.stage-hatch.burst .incubator { opacity: 0; transform: scale(1.3); }
.hatch-steps {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); white-space: nowrap;
  background: var(--card); border: 2.5px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 0.9rem; box-shadow: 0 3px 0 var(--ink);
  transition: opacity 0.3s;
}
.hatch-steps b { font-variant-numeric: tabular-nums; }
.stage-hatch.burst .hatch-steps { opacity: 0; }
.reveal-card {
  position: absolute; width: 50%; max-width: 230px; display: grid; justify-items: center; gap: 2px; padding: 14px 12px 14px;
  background: var(--card); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 6px 0 var(--ink);
  opacity: 0; transform: scale(0.4) rotate(-8deg); transition: opacity 0.25s, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stage-hatch.burst .reveal-card { opacity: 1; transform: none; }
.reveal-card img { width: 70%; height: auto; margin-top: 4px; animation: bob 2.6s ease-in-out infinite; }
.reveal-card b { font-size: 1.3rem; line-height: 1.1; }
.reveal-card small { color: var(--ink-2); font-weight: 800; font-size: 0.8rem; }
.new-badge { position: absolute; top: -14px; background: var(--orange-2); color: #fff; border: 2.5px solid var(--ink); border-radius: 999px; padding: 3px 12px; font-weight: 900; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.rarity { font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; padding: 2px 10px; border-radius: 999px; background: #E3EEDB; color: #3E7A2A; }
.rarity.rare { background: #DCEBFF; color: #2E66B8; }
.rarity.epic { background: #EFE0FF; color: #7A3EC2; }
.rarity.mythic { background: #FFE9A8; color: #9A5B00; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; left: 50%; top: 48%; width: 10px; height: 14px; border-radius: 3px; animation: confetti 1.3s cubic-bezier(0.15, 0.6, 0.3, 1) forwards; }
@keyframes confetti { 0% { transform: translate(-50%, -50%) rotate(0); opacity: 1; } 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

/* Try it: drag steps, pet reacts */
.try { background: linear-gradient(180deg, var(--cream) 0%, #FFE7C6 50%, var(--cream) 100%); }
.try-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.pet-stage {
  position: relative; display: grid; justify-items: center; padding: 74px 22px 22px; border-radius: 34px;
  background:
    radial-gradient(90% 55% at 50% 72%, #FFF6E2 0 60%, transparent 61%),
    linear-gradient(180deg, #FFD9A6, #FFEFD6 60%, #FFF6E6);
  border: 3px solid var(--ink); box-shadow: 0 7px 0 var(--ink);
}
.bubble {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 86%;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 18px; padding: 8px 14px; font-weight: 800; font-size: 0.95rem; text-align: center;
  box-shadow: 0 3px 0 var(--ink);
}
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 14px; height: 14px; background: #fff; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateX(-50%) rotate(45deg); }
.bubble.pop { animation: bump 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.pet-plate { position: relative; width: min(78%, 300px); aspect-ratio: 1; }
.pet-plate::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 3%; height: 10%; border-radius: 50%; background: rgba(120, 60, 10, 0.16); z-index: 0; }
.pet-plate img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; animation: bob 3.2s ease-in-out infinite; transition: opacity 0.2s; }
.pet-stage.sad .pet-plate img { animation-duration: 6s; }
.pet-status { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.mood-tag { flex: none; background: var(--mood, var(--green)); color: #fff; border: 2.5px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-weight: 900; font-size: 0.9rem; transition: background 0.3s; }
.health { flex: 1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-weight: 800; font-size: 0.88rem; }
.health > span { color: var(--ink-2); }
.health .bar span { background: linear-gradient(90deg, #7ED957, var(--green)); transition: width 0.25s ease; }
.health b { font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.picker { display: flex; justify-content: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.picker button {
  font: inherit; cursor: pointer; display: grid; justify-items: center; gap: 0; padding: 6px 8px 6px; min-width: 64px;
  background: rgba(255, 255, 255, 0.7); border: 2.5px solid transparent; border-radius: 18px; color: var(--ink-2); font-weight: 800; font-size: 0.78rem;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.picker button img { width: 44px; height: 44px; object-fit: contain; }
.picker button:hover { transform: translateY(-2px); }
.picker button[aria-checked="true"] { background: #fff; border-color: var(--ink); color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.picker button:focus-visible, .car-btn:focus-visible, .faq summary:focus-visible { outline: 3px solid var(--orange-2); outline-offset: 2px; }

.slider-card { margin-top: 26px; background: var(--card); border: 3px solid var(--ink); border-radius: 24px; padding: 18px 20px 12px; box-shadow: 0 6px 0 var(--ink); }
.slider-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.steps-big { font-weight: 800; color: var(--ink-2); }
.steps-big b { font-size: 2.1rem; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.goal { font-weight: 800; font-size: 0.85rem; color: var(--orange-ink); background: var(--peach); padding: 4px 10px; border-radius: 999px; }
input[type="range"] {
  --p: 54%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 6px 0 0; background: transparent; cursor: pointer; touch-action: pan-y;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 16px; border-radius: 999px; border: 2.5px solid var(--ink);
  background: linear-gradient(90deg, var(--orange-2), var(--sun) var(--p), #F3E6D2 var(--p));
}
input[type="range"]::-moz-range-track { height: 12px; border-radius: 999px; border: 2.5px solid var(--ink); background: #F3E6D2; }
input[type="range"]::-moz-range-progress { height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--orange-2), var(--sun)); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 36px; height: 36px; margin-top: -12.5px; border-radius: 50%;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F26B1F'><ellipse cx='6' cy='9' rx='2.3' ry='3'/><ellipse cx='10.5' cy='5.5' rx='2.3' ry='3'/><ellipse cx='15.5' cy='5.5' rx='2.3' ry='3'/><ellipse cx='19' cy='9.5' rx='2.2' ry='2.9'/><path d='M12.6 11c3 0 6.4 4.4 6.4 7 0 2.2-1.9 3-3.6 3-1.4 0-2.1-.7-3-.7s-1.7.7-3.1.7C7.5 21 6 20.1 6 18c0-2.7 3.6-7 6.6-7z'/></svg>") center / 20px no-repeat;
  border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink);
}
input[type="range"]::-moz-range-thumb { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(242, 107, 31, 0.35); }
.ticks { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--ink-3); font-weight: 800; padding: 0 4px; }
.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.outcome { background: #fff; border: 2px solid var(--stroke); border-radius: 18px; padding: 14px 12px; }
.outcome b { display: block; font-size: 1.45rem; letter-spacing: -0.02em; color: var(--orange-2); font-variant-numeric: tabular-nums; line-height: 1.1; }
.outcome span { font-size: 0.84rem; color: var(--ink-2); font-weight: 700; line-height: 1.25; display: block; margin-top: 4px; }
.fine { font-size: 0.8rem; color: var(--ink-3); margin-top: 12px; }

/* Virtudex */
.dex { max-width: 760px; margin: 0 auto; background: var(--card); border: 3px solid var(--ink); border-radius: 30px; padding: 20px; box-shadow: 0 7px 0 var(--ink); }
.dex-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin-bottom: 16px; }
.dex-count { font-weight: 800; color: var(--ink-2); }
.dex-count b { color: var(--ink); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.dex .bar span { background: linear-gradient(90deg, var(--teal), #7ED9C8); transition: width 0.5s ease; }
.dex-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.dex-card {
  position: relative; aspect-ratio: 0.82; border-radius: 18px; background: #F6EAD6; border: 2px solid rgba(45, 27, 14, 0.1);
  display: grid; justify-items: center; align-content: center; padding: 6px; overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
}
.dex-card img { width: 82%; height: auto; aspect-ratio: 1; object-fit: contain; filter: brightness(0) opacity(0.16); transition: filter 0.4s ease; }
.dex-card .dex-name { font-size: 0.75rem; font-weight: 900; color: var(--ink-3); margin-top: 2px; white-space: nowrap; }
.dex-card .dex-no { position: absolute; top: 6px; left: 8px; font-size: 0.65rem; font-weight: 900; color: var(--ink-3); }
.dex-card.found { background: #fff; border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.dex-card.found img { filter: none; animation: found 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.dex-card.found .dex-name { color: var(--ink); }
.dex-card.rare.found { background: #EEF5FF; }
.dex-card.epic.found { background: #F6EEFF; }
.dex-card.mythic.found { background: #FFF5D6; }
@keyframes found { 0% { transform: scale(0.4) rotate(-12deg); } 100% { transform: none; } }
.biomes { display: flex; justify-content: center; gap: 10px; margin-top: 34px; flex-wrap: wrap; }
.biome { display: grid; justify-items: center; gap: 4px; min-width: 88px; padding: 12px 10px 10px; background: rgba(255, 255, 255, 0.7); border: 2px solid var(--stroke); border-radius: 20px; font-weight: 800; font-size: 0.88rem; }
.biome img { width: 56px; height: 56px; object-fit: contain; animation: bob 3.4s ease-in-out infinite; }
.biome:nth-child(2n) img { animation-delay: -1.2s; }
.biome:nth-child(3n) img { animation-delay: -2.1s; }
.biome.mythic { background: linear-gradient(180deg, #FFF3C9, #FFE39A); border-color: rgba(154, 91, 0, 0.3); }

/* Split sections */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split-copy .lede { max-width: 32rem; }
.list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 1.04rem; }
.list li b { color: var(--ink); }
.list li::before {
  content: ""; flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--ink);
  background: var(--sun) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D1B0E' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center / 14px no-repeat;
}
.photo-stage { position: relative; }
.photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 30px; border: 3px solid var(--ink); box-shadow: 0 7px 0 var(--ink); }

/* Friends */
.friends { background: linear-gradient(180deg, var(--cream), #FFEBD0 60%, var(--cream)); }
.duo-pop { position: absolute; left: -26px; top: -40px; width: 130px; height: auto; z-index: 2; filter: drop-shadow(0 10px 10px rgba(110, 55, 10, 0.25)); animation: wiggle 3.2s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(5deg) translateY(-6px); } }
.board {
  position: absolute; right: -18px; bottom: -34px; width: min(300px, 76%); z-index: 2;
  background: var(--card); border: 3px solid var(--ink); border-radius: 22px; padding: 12px 12px 8px; box-shadow: 0 6px 0 var(--ink);
}
.board-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 8px; }
.board-head b { font-size: 0.98rem; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 900; color: var(--coral); text-transform: uppercase; letter-spacing: 0.08em; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: rec 1.4s ease-in-out infinite; }
@keyframes rec { 50% { box-shadow: 0 0 0 5px rgba(240, 93, 61, 0.15); } }
.board ol { list-style: none; margin: 0; padding: 0; position: relative; }
.board li { display: grid; grid-template-columns: 26px 32px 1fr auto; gap: 8px; align-items: center; padding: 6px 6px; border-radius: 14px; font-weight: 800; font-size: 0.92rem; transition: transform 0.6s cubic-bezier(0.34, 1.2, 0.64, 1), background 0.3s; }
.board li img { width: 32px; height: 32px; object-fit: contain; background: #FFF1DC; border-radius: 50%; }
.board li b { font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.board .rank { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.78rem; font-weight: 900; background: #F1E4CF; }
.board li:first-child .rank { background: var(--sun); border: 2px solid var(--ink); }
.board li[data-id="you"] { background: #FFE6CF; }
.board li.up { animation: rowUp 0.6s ease; }
@keyframes rowUp { 40% { background: #FFD3A8; } }

/* Quests */
.quest-stage .photo { aspect-ratio: 16 / 11; object-position: 70% 50%; }
.quest-list {
  position: absolute; left: -16px; bottom: -30px; width: min(310px, 82%); display: grid; gap: 8px;
  background: var(--card); border: 3px solid var(--ink); border-radius: 22px; padding: 10px; box-shadow: 0 6px 0 var(--ink);
}
.quest { position: relative; display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; background: #FFF4E4; transition: background 0.3s; }
.quest b { display: block; font-size: 0.92rem; line-height: 1.15; }
.quest div span { font-size: 0.76rem; color: var(--ink-2); font-weight: 700; line-height: 1.2; display: block; }
.q-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--orange); position: relative; border: 2px solid var(--ink); }
.q-ico::after { content: ""; position: absolute; inset: 7px; background: #fff; }
.q-steps::after { clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 100%, 50% 78%, 20% 100%, 30% 60%, 0 38%, 38% 35%); }
.q-share { background: var(--sun); }
.q-share::after { clip-path: polygon(50% 0, 85% 35%, 62% 35%, 62% 70%, 38% 70%, 38% 35%, 15% 35%); background: var(--ink); }
.q-week { background: var(--teal); }
.q-week::after { clip-path: polygon(40% 0, 70% 0, 55% 40%, 85% 40%, 30% 100%, 42% 55%, 15% 55%); }
.q-xp { font-size: 0.78rem; font-weight: 900; color: var(--orange-ink); background: #fff; border: 2px solid var(--stroke); border-radius: 999px; padding: 3px 8px; transition: all 0.3s; }
.quest.done { background: #E6F6DA; }
.quest.done .q-xp { background: var(--green); color: #fff; border-color: var(--ink); }
.quest.done .q-ico { background: var(--green); }
.quest.done .q-ico::after { clip-path: polygon(14% 52%, 30% 36%, 44% 52%, 74% 20%, 90% 36%, 44% 82%); background: #fff; }
.quest .xp-float { position: absolute; right: 8px; top: -6px; font-weight: 900; font-size: 0.85rem; color: var(--green); animation: floatUp 1.4s ease forwards; }
.level-pop {
  position: absolute; right: 16px; top: 16px; display: grid; justify-items: center; background: var(--orange-2); color: #fff;
  border: 3px solid var(--ink); border-radius: 20px; padding: 8px 16px; box-shadow: 0 5px 0 var(--ink);
  opacity: 0; transform: scale(0.5) rotate(8deg); transition: opacity 0.25s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.level-pop span { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.level-pop b { font-size: 1.5rem; line-height: 1; }
.level-pop i { font-style: normal; }
.level-pop.show { opacity: 1; transform: none; }

/* Inside the app: a swipeable row of real screens */
.inside { padding-bottom: 70px; overflow: hidden; }
.carousel { position: relative; }
.track {
  --gutter: max(20px, calc((100vw - var(--max)) / 2));
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 8px var(--gutter) 26px; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none;
}
.track::-webkit-scrollbar { display: none; }
.shot { flex: none; width: 232px; margin: 0; scroll-snap-align: start; }
.mini-phone {
  padding: 7px; border-radius: 38px; background: linear-gradient(145deg, #3A3F44, #16191C 40%, #2B3034);
  box-shadow: 0 0 0 1.5px #5B6166, 0 26px 40px -20px rgba(120, 50, 0, 0.5); transition: transform 0.3s;
}
.mini-phone img { width: 100%; height: auto; aspect-ratio: 590 / 1278; object-fit: cover; border-radius: 31px; background: #FFF1DC; }
.shot:hover .mini-phone { transform: translateY(-6px) rotate(-1deg); }
.shot figcaption { margin-top: 14px; color: var(--ink-2); font-size: 0.92rem; font-weight: 700; padding: 0 4px; }
.shot figcaption b { display: block; color: var(--ink); font-size: 1.05rem; }
.car-nav { display: flex; justify-content: center; gap: 12px; margin-top: 6px; }
.car-btn {
  width: 50px; height: 50px; border-radius: 50%; font: inherit; font-size: 1.3rem; font-weight: 900; cursor: pointer;
  background: var(--card); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 0 4px 0 var(--ink); transition: transform 0.15s;
}
.car-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }

/* Extras */
.extras { padding-top: 40px; }
.extras-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.extra { background: var(--card); border: 3px solid var(--ink); border-radius: 28px; padding: 18px 18px 22px; box-shadow: 0 6px 0 var(--ink); }
.extra h3 { font-size: 1.25rem; margin-top: 16px; }
.extra p { color: var(--ink-2); margin-top: 6px; font-size: 0.98rem; }
.extra-art { aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; display: grid; place-items: center; }
.art-widget { background: linear-gradient(160deg, #FFD7A3, #FFB37A); }
.art-widget img { width: 62%; height: auto; border-radius: 22px; box-shadow: 0 16px 30px -10px rgba(110, 50, 0, 0.5); transform: rotate(-4deg); }
.art-games { background: linear-gradient(160deg, #BFE6FF, #9FD3F5); grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0 10px; }
.art-games img { width: 100%; height: auto; border-radius: 16px; border: 2.5px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.art-games img:nth-child(1) { transform: rotate(-8deg) translateX(10px); }
.art-games img:nth-child(2) { transform: translateY(-10px) scale(1.12); z-index: 1; position: relative; }
.art-games img:nth-child(3) { transform: rotate(8deg) translateX(-10px); }
.art-moods { background: linear-gradient(160deg, #E6F6DA, #C9EBB0); grid-template-columns: 1fr auto 1fr; gap: 6px; padding: 0 14px; }
.art-moods img { width: 100%; height: auto; }
.art-moods img:last-child { animation: bob 2.8s ease-in-out infinite; }
.arrow { width: 30px; height: 22px; background: var(--ink); clip-path: polygon(0 35%, 60% 35%, 60% 0, 100% 50%, 60% 100%, 60% 65%, 0 65%); }

/* Premium */
.premium { background: linear-gradient(180deg, var(--cream), #FFE9CB); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 860px; margin: 0 auto; align-items: stretch; }
.plan { position: relative; background: var(--card); border: 3px solid var(--ink); border-radius: 30px; padding: 28px 26px; box-shadow: 0 6px 0 var(--ink); }
.plan-sub { color: var(--ink-2); margin-top: 4px; }
.plan-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.plan-list li b { color: var(--ink); }
.plan-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: #EADCC6 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D1B0E' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center / 12px no-repeat;
}
.plan-pro { background: linear-gradient(180deg, #FFF6E6, #FFE1BD); box-shadow: 0 8px 0 var(--ink), 0 30px 60px -30px rgba(242, 107, 31, 0.6); }
.plan-pro .plan-list li::before { background-color: var(--orange); }
.plan-tag { position: absolute; top: -16px; right: 22px; background: var(--orange-2); color: #fff; border: 2.5px solid var(--ink); border-radius: 999px; padding: 4px 14px; font-weight: 900; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 3px 0 var(--ink); }

/* FAQ */
.faq { max-width: 46rem; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 2.5px solid var(--ink); border-radius: 20px; padding: 2px 22px; box-shadow: 0 4px 0 var(--ink); transition: background 0.2s; }
.faq details[open] { background: #fff; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 17px 0; font-weight: 900; font-size: 1.06rem; border-radius: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--peach); color: var(--orange-ink); font-size: 1.3rem; font-weight: 900; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); }
.faq a { color: var(--orange-ink); font-weight: 800; }

/* Final call */
.cta { padding-top: 40px; }
.cta-card {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center;
  background: radial-gradient(120% 120% at 100% 0%, #4A2C14 0, var(--ink) 60%); color: var(--cream);
  border-radius: 36px; padding: 28px; border: 3px solid var(--ink); box-shadow: 0 10px 0 #120A04, 0 40px 80px -40px rgba(45, 27, 14, 0.7);
}
.cta-video { border-radius: 26px; overflow: hidden; aspect-ratio: 1; border: 3px solid rgba(255, 244, 225, 0.12); }
.cta-video video { width: 100%; height: 100%; object-fit: cover; }
.cta-copy h2 { color: #fff; }
.cta-copy p { color: rgba(255, 244, 225, 0.75); margin-top: 12px; font-size: 1.15rem; max-width: 28rem; }
.cta-actions { display: flex; align-items: center; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.qr { display: none; align-items: center; gap: 12px; font-size: 0.85rem; color: rgba(255, 244, 225, 0.7); font-weight: 700; line-height: 1.3; }
.qr img { width: 76px; height: 76px; border-radius: 12px; background: #fff; padding: 5px; }
.qr.on { display: flex; }

/* Footer */
.site-footer { background: var(--night); color: rgba(255, 244, 225, 0.7); padding: 48px 0 40px; margin-top: 80px; font-size: 0.94rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 22px 40px; align-items: center; }
.brand-light { color: #fff; }
.foot-brand p { margin-top: 8px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: flex-end; }
.foot-nav a { color: #fff; text-decoration: none; font-weight: 800; }
.foot-nav a:hover { color: var(--orange); }
.copyright { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(255, 244, 225, 0.12); font-size: 0.85rem; }

/* Mobile download bar */
.sticky-get {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: none; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; text-decoration: none;
  background: rgba(255, 251, 243, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 2.5px solid var(--ink); border-radius: 22px; box-shadow: 0 5px 0 var(--ink), 0 20px 40px -10px rgba(45, 27, 14, 0.4);
  transform: translateY(140%); transition: transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.sticky-get.show { transform: none; }
.sticky-get img { width: 40px; height: 40px; border-radius: 11px; }
.sticky-get > span:not(.sticky-btn) { flex: 1; line-height: 1.15; }
.sticky-get small { display: block; color: var(--ink-2); font-weight: 700; font-size: 0.8rem; }
.sticky-btn { background: var(--orange-2); color: #fff; font-weight: 900; padding: 10px 22px; border-radius: 999px; border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

/* Tablet and down */
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .how-row, .try-grid, .split { grid-template-columns: 1fr; gap: 26px; }
  .how-row { padding: 22px 0; }
  .how-row.flip .stage { order: 0; }
  .split.flip > :first-child { order: 0; }
  .split .photo-stage { margin-bottom: 30px; }
  .try-grid { gap: 34px; }
  .try-copy { order: -1; }
  .extras-grid { grid-template-columns: 1fr; gap: 18px; }
  .plans { grid-template-columns: 1fr; gap: 26px; }
  .cta-card { grid-template-columns: 1fr; gap: 22px; padding: 18px 18px 30px; text-align: center; }
  .cta-copy p { margin-left: auto; margin-right: auto; }
  .cta-actions { justify-content: center; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .foot-nav { justify-content: flex-start; }
  .sticky-get { display: flex; }
  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

/* Phone */
@media (max-width: 820px) {
  /* Pico order on phones: headline, intro, the art, then the buttons and small print */
  .hero { padding-top: 34px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; text-align: center; justify-items: center; padding-bottom: 70px; }
  .hero-copy { display: contents; }
  .hero .eyebrow { order: 0; }
  .hero h1 { order: 1; font-size: clamp(2.45rem, 11vw, 3.4rem); }
  .hero .lede { order: 2; margin: 14px auto 0; font-size: 1.06rem; max-width: 30rem; }
  .hero-art { order: 3; width: 100%; margin-top: 18px; padding-bottom: 46px; }
  .hero-actions { order: 4; flex-direction: column; gap: 12px; margin-top: 8px; width: 100%; }
  .hero-actions .btn { min-height: 48px; font-size: 0.98rem; }
  .hero-note { order: 5; margin: 14px auto 0; font-size: 0.84rem; max-width: 22rem; }
  .iphone { --w: min(62vw, 250px); border-radius: 44px; padding: 8px; }
  .iphone-screen { border-radius: 37px; }
  .sun { width: 70px; height: 70px; top: 14px; right: -10px; }
  .cloud-a { top: 70px; left: -80px; }
  .cloud-b { top: 30px; right: -30px; }
  .cloud-c { display: none; }
  .chip { font-size: 0.76rem; padding: 6px 9px; border-radius: 14px; gap: 6px; border-width: 2px; box-shadow: 0 3px 0 var(--ink); }
  .chip img { width: 22px; height: 22px; }
  .chip small { font-size: 0.66rem; }
  .chip-streak { left: 0; top: 6%; }
  .chip-egg { right: 0; top: 22%; }
  .chip-health { left: 0; top: 44%; }
  .chip-coin { right: 2%; top: 52%; }
  .heart { width: 18px; height: 16px; clip-path: path("M9 16 C 2.5 11.2, 0 8, 0 4.8 C 0 2, 2.2 0, 4.8 0 C 6.6 0, 8.2 1, 9 2.4 C 9.8 1, 11.4 0, 13.2 0 C 15.8 0, 18 2, 18 4.8 C 18 8, 15.5 11.2, 9 16 Z"); }
  .mini-bar { width: 64px; height: 6px; }
  .parade { width: 112%; bottom: 8px; }
  .grass { height: 64px; }
  .ticker span { font-size: 0.95rem; }
  .section-head { margin-bottom: 30px; }
  .lede { font-size: 1.04rem; }
  .copy p { font-size: 1.02rem; }
  .board { right: 10px; bottom: -40px; }
  .duo-pop { width: 96px; left: -6px; top: -34px; }
  .quest-list { left: 10px; bottom: -40px; }
  .dex { padding: 14px; border-radius: 24px; }
  .dex-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .biomes { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 26px -20px 0; padding: 4px 20px 10px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .biomes::-webkit-scrollbar { display: none; }
  .biome { flex: none; scroll-snap-align: start; min-width: 84px; }
  .shot { width: 200px; }
  .car-nav { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .stage { aspect-ratio: 1 / 1; border-radius: 26px; }
  .stage-walk video { height: 74%; }
  .hud { left: 10px; right: 10px; top: 10px; padding: 10px 12px; border-radius: 16px; }
  .mood-pill { left: 10px; bottom: 10px; }
  .map-card { left: 10px; right: 10px; bottom: 10px; }
  .incubator { width: 58%; }
  .reveal-card { width: 62%; }
  .pet-stage { padding: 70px 14px 16px; border-radius: 28px; }
  .picker { gap: 4px; }
  .picker button { min-width: 0; flex: 1; padding: 6px 2px; font-size: 0.7rem; }
  .picker button img { width: 38px; height: 38px; }
  .health > span { display: none; }
  .health { grid-template-columns: 1fr auto; }
  .slider-card { padding: 16px 16px 10px; }
  .steps-big b { font-size: 1.8rem; }
  .outcomes { gap: 8px; }
  .outcome { padding: 12px 10px; border-radius: 16px; }
  .outcome b { font-size: 1.12rem; }
  .outcome span { font-size: 0.74rem; }
  .dex-card .dex-name { font-size: 0.66rem; }
  .board { width: 84%; padding: 10px 10px 6px; }
  .board li { grid-template-columns: 22px 28px 1fr auto; gap: 6px; font-size: 0.86rem; padding: 5px 4px; }
  .board li img { width: 28px; height: 28px; }
  .quest-list { width: 88%; }
  .plan { padding: 24px 20px; }
  .faq details { padding: 2px 16px; }
  .faq summary { font-size: 1rem; }
  .cta-copy h2 { font-size: 2.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
