:root {
  --sky: #7de2fc; --lilac: #b78cfc; --pink: #fc9ad4;
  --plum: #5a2a6f; --plum-deep: #3d1650;
  --chalk: "Chalkboard SE", "Chalkboard", "Comic Neue", "Comic Sans MS", "Baloo 2", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
/* Plain pink base (shows when you overscroll), with the gradient on its own
   fixed layer: iOS Safari doesn't support background-attachment: fixed. */
html { scroll-behavior: smooth; background: var(--pink); }
body {
  margin: 0; color: #fff; font-family: var(--body); line-height: 1.55;
  min-height: 100vh; overflow-x: hidden; position: relative; isolation: isolate;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,.28), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(255,255,255,.18), transparent 40%),
    linear-gradient(160deg, var(--sky) 0%, var(--lilac) 55%, var(--pink) 100%);
}
a { color: #fff; }
/* width/height attributes reserve space; never let them distort the image */
img { max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }

/* floating pompoms */
.poms { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.pom {
  position: absolute; border-radius: 50%; opacity: .55;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.8), var(--c) 45%, color-mix(in srgb, var(--c), #000 25%) 100%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c), transparent 55%), 0 8px 18px rgba(60,0,80,.18);
  animation: float var(--t, 14s) ease-in-out infinite alternate;
}
@keyframes float { from { transform: translateY(0) rotate(0); } to { transform: translateY(-40px) rotate(25deg); } }
@media (prefers-reduced-motion: reduce) { .pom { animation: none; } }

/* header */
header.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--chalk); font-weight: 700; font-size: 22px; text-shadow: 0 2px 0 rgba(122,59,143,.5); }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 4px 10px rgba(60,0,80,.25); }
nav a { margin-left: 18px; text-decoration: none; font-weight: 600; opacity: .9; }
nav a:hover { opacity: 1; text-decoration: underline; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 40px 0 70px; }
h1, h2, h3 { font-family: var(--chalk); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(42px, 6vw, 68px); text-shadow: 0 3px 0 #7a3b8f, 0 8px 18px rgba(0,0,0,.25); }
h2 { font-size: clamp(30px, 4vw, 42px); text-shadow: 0 2px 0 #7a3b8f, 0 6px 14px rgba(0,0,0,.2); }
h3 { font-size: 22px; }
.lede { font-size: clamp(18px, 2.2vw, 22px); max-width: 32em; text-shadow: 0 1px 2px rgba(60,0,80,.35), 0 2px 10px rgba(60,0,80,.2); }
.badge {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 12px 22px 12px 16px;
  border-radius: 999px; text-decoration: none; font-weight: 700; color: #fff; font-size: 17px;
  background: radial-gradient(circle at 32% 26%, #d2ffe9, #23c48a 55%, #0c8f5f);
  box-shadow: inset 0 3px 4px rgba(255,255,255,.6), inset 0 -5px 8px rgba(0,0,0,.25), 0 8px 18px rgba(0,60,40,.3);
}
.badge small { display: block; font-weight: 600; opacity: .85; font-size: 12px; }
.badge .apple { font-size: 30px; line-height: 1; }

/* phones */
.phone {
  width: 100%; max-width: 320px; border-radius: 42px; padding: 10px; margin: 0 auto;
  background: linear-gradient(145deg, #2b1036, #120617);
  box-shadow: 0 30px 60px rgba(50,0,70,.45), inset 0 0 0 2px rgba(255,255,255,.12);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 33px; }
.hero .phone { transform: rotate(3deg); max-width: 290px; }

/* sections */
section { padding: 60px 0; }
.card {
  background: rgba(255,255,255,.9); color: var(--plum-deep);
  border: 3px solid rgba(255,255,255,.95); border-radius: 28px;
  box-shadow: 0 18px 40px rgba(40,0,60,.25);
}
.card h2, .card h3 { color: var(--plum); text-shadow: 0 2px 0 rgba(183,140,252,.4); }
.card a { color: #7a3b8f; }
.card .lede { text-shadow: none; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.feature { padding: 22px; }
.feature .ico { font-size: 34px; }
.feature p { margin: .3em 0 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 30px; text-align: center; }
.gallery figcaption { margin-top: 14px; font-family: var(--chalk); font-size: 19px; text-shadow: 0 1px 3px rgba(0,0,0,.2); }
.share { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.share img { width: 100%; height: auto; border-radius: 22px; border: 4px solid rgba(255,255,255,.8); box-shadow: 0 24px 50px rgba(50,0,70,.35); transform: rotate(-2deg); }
.private { padding: 30px 34px; }

/* prose pages */
.prose { padding: 34px clamp(22px, 5vw, 54px); margin: 30px 0 60px; color: var(--plum-deep); background: rgba(255,255,255,.92); }
.prose h1 { color: var(--plum); text-shadow: 0 2px 0 rgba(183,140,252,.45); font-size: clamp(34px, 5vw, 48px); }
.prose h2 { color: var(--plum); text-shadow: none; font-size: 26px; margin-top: 1.4em; }
.prose a { color: #7a3b8f; }
.prose em { color: #7a5a86; }

footer { padding: 30px 0 50px; text-align: center; opacity: .9; font-size: 15px; }
footer a { margin: 0 10px; }

@media (max-width: 820px) {
  .hero, .share { grid-template-columns: 1fr; text-align: center; }
  .lede { margin: 0 auto; }
  .features, .gallery { grid-template-columns: 1fr; }
  .gallery .phone { max-width: 280px; }
  nav a { margin-left: 12px; }
}
