/* Pofi: Crystal Tower — "Crystal Cloud" stylesheet. Light only, mobile first. */
:root {
  --pink: #FF7EB6;
  --pink-deep: #E8559A;
  --lilac: #B79CFF;
  --lilac-deep: #8C6BEA;
  --mint: #7FE3C8;
  --mint-deep: #3FBF9C;
  --lemon: #FFD66B;
  --sky: #8FD3FF;
  --cream: #FFF6EC;
  --cream-2: #FFEBDA;
  --paper: #FFFFFF;
  --ink: #3A2A4D;
  --ink-soft: #6B5A80;
  --line: rgba(58, 42, 77, .12);
  --shadow: 0 10px 30px rgba(58, 42, 77, .12), 0 2px 6px rgba(58, 42, 77, .06);
  --radius: 28px;
  --display: "Baloo 2", "Nunito", ui-rounded, system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-deep); text-underline-offset: 3px; }
a:hover { color: var(--lilac-deep); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 6vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 12px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lilac-deep); outline-offset: 3px; border-radius: 8px; }

/* ---------------------------------------------------------------- bar */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 246, 236, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 1.25rem/1 var(--display); color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.mark {
  width: 36px; height: 36px; border-radius: 11px; flex: none; overflow: hidden;
  background: radial-gradient(circle at 30% 28%, #fff8 0 18%, transparent 19%),
              conic-gradient(from 200deg, var(--pink), var(--lilac), var(--mint), var(--lemon), var(--pink));
  box-shadow: 0 3px 8px rgba(232, 85, 154, .35);
}
.mark img { width: 100%; height: 100%; object-fit: cover; }
.bar nav { display: flex; gap: 4px; align-items: center; }
.bar nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 8px 10px; border-radius: 999px; }
.bar nav a:hover { background: #fff; color: var(--pink-deep); }
.bar nav .wide { display: none; }
@media (min-width: 860px) { .bar nav .wide { display: inline-block; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border-radius: 999px;
  font: 800 1.05rem/1 var(--display); text-decoration: none;
  background: linear-gradient(180deg, #FF94C4, var(--pink-deep));
  color: #fff; box-shadow: 0 6px 0 #C93F80, 0 12px 24px rgba(232, 85, 154, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #C93F80; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: 0 4px 0 var(--cream-2), var(--shadow); }
.btn.ghost:hover { color: var(--pink-deep); }

/* Placeholder for Apple's official badge: swap for the SVG from
   developer.apple.com/app-store/marketing/guidelines once live. */
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none; border: 1px solid #A6A6A6;
}
.store:hover { color: #fff; background: #1a1a1a; }
.store svg { width: 28px; height: 28px; fill: #fff; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.05; font-family: -apple-system, system-ui, sans-serif; }
.store small { font-size: .7rem; letter-spacing: .02em; }
.store b { font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 36px 0 56px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(183, 156, 255, .45), transparent 70%),
    radial-gradient(50% 45% at 10% 80%, rgba(127, 227, 200, .45), transparent 70%),
    radial-gradient(40% 40% at 30% 10%, rgba(255, 126, 182, .30), transparent 70%),
    var(--cream);
}
.hero .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 72px 0 96px; } .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 48px; } }
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px;
  background: #fff; color: var(--lilac-deep); font-weight: 800; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 2px 0 var(--cream-2);
}
.hero h1 .logo { width: min(100%, 380px); margin: 0 0 6px -6px; filter: drop-shadow(0 10px 18px rgba(140, 107, 234, .25)); }
.hero h1:has(.logo:not([hidden])) .t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero h1 .t span { display: block; background: linear-gradient(90deg, var(--pink-deep), var(--lilac-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pitch { font: 700 clamp(1.2rem, 4.2vw, 1.5rem)/1.35 var(--display); margin-bottom: .6em; }
.lede { color: var(--ink-soft); max-width: 36em; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 22px 0 10px; }
.soon { font-size: .9rem; color: var(--ink-soft); margin: 0; }

/* The art: Pofi's hero picture if it exists, a CSS crystal tower if not. */
.art { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; margin: 0 auto; }
.art img.hero-img { position: absolute; filter: drop-shadow(0 24px 30px rgba(58, 42, 77, .18)); }
.art img.hero-img { inset: auto 0 2% auto; width: 50%; height: auto; z-index: 2; }
.art:has(img.hero-img:not([hidden])) .pofi-blob { display: none; }
.art:has(img.hero-img:not([hidden])) .tower { margin-right: 30%; }
.scene { position: absolute; inset: 0; display: grid; place-items: end center; }
.scene .halo { position: absolute; inset: 6% 8% 14%; border-radius: 50%; background: radial-gradient(circle, #fff 0 40%, rgba(255, 255, 255, 0) 70%); }
.tower {
  position: relative; width: 58%; margin-bottom: 15%;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4%;
  padding: 6%; border-radius: 26px 26px 18px 18px;
  background: linear-gradient(90deg, rgba(58, 42, 77, .10), rgba(255, 255, 255, .6) 45%, rgba(58, 42, 77, .12));
  animation: bob 5s ease-in-out infinite;
}
/* A crystal: a faceted CSS gem, or the gem picture from assets/gems/ on top of it when that exists. */
.gem {
  position: relative; display: block; aspect-ratio: 1;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, .95) 0 9%, rgba(255, 255, 255, 0) 24%),
    linear-gradient(160deg, rgba(255, 255, 255, .55) 0 28%, rgba(255, 255, 255, 0) 29%),
    conic-gradient(from 30deg, var(--c) 0 16.6%, var(--d) 0 33.3%, var(--c) 0 50%, var(--d) 0 66.6%, var(--c) 0 83.3%, var(--d) 0);
}
.gem img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gem img[hidden] { display: none; }
.gem:has(img:not([hidden])) { clip-path: none; background: none; filter: drop-shadow(0 3px 4px rgba(58, 42, 77, .2)); }
.gem.r { --c: #FF6F96; --d: #D93A6A; } /* ruby heart */
.gem.a { --c: #FFB066; --d: #E0782A; } /* amber diamond */
.gem.c { --c: #FFDD6E; --d: #E3AE2A; } /* citrine star */
.gem.e { --c: #6FE0B2; --d: #2FAF7E; } /* emerald flower */
.gem.s { --c: #84C6FF; --d: #3B82E0; } /* sapphire drop */
.gem.m { --c: #C3A8FF; --d: #8C6BEA; } /* amethyst moon */
.gem.pop { animation: pop 2.6s ease-in-out infinite; }
.gem.ice::after { content: ""; position: absolute; inset: 0; border-radius: 22%; background: linear-gradient(135deg, rgba(255, 255, 255, .8), rgba(220, 240, 255, .55)); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .9); }
.ground { position: absolute; bottom: 6%; left: 10%; right: 10%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(127, 227, 200, .9), rgba(127, 227, 200, 0)); }
.pofi-blob {
  position: absolute; bottom: 9%; left: 50%; width: 26%; aspect-ratio: 1.1; transform: translateX(-50%);
  border-radius: 50% 50% 46% 46%; background: #fff; box-shadow: var(--shadow);
}
.pofi-blob::before { /* horn */
  content: ""; position: absolute; top: -26%; left: 50%; width: 22%; height: 40%; transform: translateX(-50%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: repeating-linear-gradient(160deg, var(--lemon) 0 6px, #FFB3D4 6px 12px);
}
.pofi-blob::after { /* eyes and blush */
  content: ""; position: absolute; top: 42%; left: 26%; width: 48%; height: 16%;
  background: radial-gradient(circle at 12% 50%, var(--ink) 0 22%, transparent 24%), radial-gradient(circle at 88% 50%, var(--ink) 0 22%, transparent 24%);
}
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes pop { 0%, 70%, 100% { transform: scale(1); opacity: 1; } 80% { transform: scale(1.25); opacity: .2; } 90% { transform: scale(.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------------------------------------------------------------- glance */
.glance { padding: 0 0 8px; }
.glance dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
@media (min-width: 760px) { .glance dl { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.glance dl div { background: #fff; border-radius: 20px; padding: 14px 16px; box-shadow: 0 3px 0 var(--cream-2); }
.glance dt { font-size: .78rem; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.glance dd { margin: 2px 0 0; font-weight: 700; }

/* ---------------------------------------------------------------- blocks */
.block { padding: 64px 0; }
@media (min-width: 900px) { .block { padding: 96px 0; } }
.block > .wrap > header { max-width: 40em; margin-bottom: 32px; }
.block > .wrap > header p { color: var(--ink-soft); font-size: 1.08rem; }
.tag { display: inline-block; font: 800 .8rem/1 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--pink-deep); margin-bottom: 10px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { position: relative; background: #fff; border-radius: var(--radius); padding: 28px 24px 24px; box-shadow: var(--shadow); counter-increment: s; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px;
  border-radius: 16px; font: 800 1.4rem/1 var(--display); color: #fff; background: var(--c, var(--pink));
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12);
}
.steps li:nth-child(2) { --c: var(--lilac); }
.steps li:nth-child(3) { --c: var(--mint-deep); }
.steps p { color: var(--ink-soft); margin: 0; }

.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.flip > :first-child { order: 2; } }
.panel { border-radius: 36px; padding: 28px; background: var(--bg, #fff); box-shadow: var(--shadow); }
.pofi { background: linear-gradient(180deg, #fff, #FFF0F7); }
.island { background: linear-gradient(180deg, #F3FFFB, var(--cream)); }
.gc { background: linear-gradient(180deg, #F6F2FF, var(--cream)); }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: 0 3px 0 var(--cream-2); }
.list li b { display: block; font-family: var(--display); font-size: 1.08rem; }
.list li span { color: var(--ink-soft); font-size: .97rem; }
.dot { flex: none; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-size: 1.05rem; background: var(--c, var(--pink)); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .1); }

.critters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bubble {
  aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: clamp(1.8rem, 8vw, 2.6rem);
  background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .95) 0 10%, rgba(255, 255, 255, .2) 26%, rgba(143, 211, 255, .25) 60%, rgba(183, 156, 255, .45));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8), 0 8px 18px rgba(140, 107, 234, .18);
  animation: float 4s ease-in-out infinite;
}
.bubble:nth-child(2) { animation-delay: -1s; } .bubble:nth-child(3) { animation-delay: -2s; } .bubble:nth-child(4) { animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-6px); } }
.horn { margin-top: 18px; background: #fff; border-radius: 20px; padding: 16px; }
.meter { height: 16px; border-radius: 999px; background: var(--cream-2); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; width: 72%; border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--lilac), var(--mint)); }

.isle { position: relative; aspect-ratio: 4 / 3; border-radius: 36px; overflow: hidden; background: linear-gradient(180deg, #CFEFFF, #F4ECFF 70%); box-shadow: var(--shadow); }
.isle-img { position: absolute; inset: 6% 6% 4%; width: 88%; height: 90%; object-fit: contain; z-index: 1; filter: drop-shadow(0 18px 24px rgba(140, 107, 234, .25)); animation: bob 6s ease-in-out infinite; }
.isle:has(.isle-img:not([hidden])) .isle-fallback { display: none; }
.isle .stars { z-index: 2; }
.isle .cloud { position: absolute; left: 8%; right: 8%; bottom: 10%; height: 34%; border-radius: 999px; background: #fff; box-shadow: -60px -20px 0 -10px #fff, 60px -26px 0 -14px #fff, 0 16px 30px rgba(140, 107, 234, .2); }
.isle .deco { position: absolute; bottom: 34%; font-size: clamp(1.8rem, 7vw, 2.6rem); }
.isle .stars { position: absolute; top: 10%; right: 8%; background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 800; box-shadow: 0 3px 0 var(--cream-2); }

.trophies { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.trophies div { background: #fff; border-radius: 24px; padding: 20px; box-shadow: var(--shadow); }
.trophies b { display: block; font: 800 2rem/1 var(--display); color: var(--lilac-deep); margin-bottom: 6px; }
.trophies span { color: var(--ink-soft); font-size: .95rem; }

/* ---------------------------------------------------------------- faq */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: #fff; border-radius: 20px; box-shadow: 0 3px 0 var(--cream-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative; font: 700 1.1rem/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; background: var(--cream); color: var(--pink-deep); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 6px; color: var(--ink-soft); }

/* ---------------------------------------------------------------- closing */
.closing { text-align: center; }
.closing .card { position: relative; overflow: hidden; border-radius: 40px; padding: 48px 20px; background: linear-gradient(135deg, var(--pink), var(--lilac) 55%, var(--mint)); color: #fff; box-shadow: var(--shadow); }
.closing .card h2 { color: #fff; }
.closing .card p { color: rgba(255, 255, 255, .92); font-size: 1.1rem; }
.closing .appicon { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 24px; overflow: hidden; background: conic-gradient(from 200deg, #FFB3D4, #D7C8FF, #B9F2E2, #FFE7A6, #FFB3D4); box-shadow: 0 10px 24px rgba(58, 42, 77, .25); }
.closing .appicon img { width: 100%; height: 100%; object-fit: cover; }
.closing .ctas { justify-content: center; }

/* ---------------------------------------------------------------- long pages */
.doc { padding: 40px 0 72px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); }
.doc h2 { font-size: clamp(1.4rem, 4.5vw, 1.8rem); margin-top: 1.8em; }
.doc h3 { margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .45em; }
.doc .updated { color: var(--ink-soft); font-size: .95rem; }
.doc .short { background: #fff; border-radius: 24px; padding: 20px 22px; box-shadow: var(--shadow); }
.doc .toc { background: #fff; border-radius: 20px; padding: 16px 22px; margin: 18px 0; box-shadow: 0 3px 0 var(--cream-2); }
.doc .toc ol { margin: 0; columns: 2 200px; }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: #fff; }
.doc .qa { background: #fff; border-radius: 20px; padding: 18px 20px 4px; margin: 12px 0; box-shadow: 0 3px 0 var(--cream-2); }
.doc .qa h3 { margin-top: 0; font-size: 1.15rem; }
.doc .callout { border-radius: 20px; padding: 18px 20px 4px; background: #FFF0F7; border: 2px dashed rgba(232, 85, 154, .35); }
.crumbs ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 16px; font-size: .9rem; color: var(--ink-soft); flex-wrap: wrap; }
.crumbs li + li::before { content: "›"; margin-right: 8px; }

.lost { text-align: center; padding: 56px 16px 80px; }
.lost .scene-mini { width: 160px; height: 160px; margin: 0 auto 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
.lost h1 { font-size: clamp(2.2rem, 8vw, 3.4rem); }

/* ---------------------------------------------------------------- footer */
footer.site { background: #fff; padding: 36px 0 44px; border-top: 1px solid var(--line); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
footer.site nav a { color: var(--ink); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
footer.site nav a:hover { color: var(--pink-deep); }
.fine { font-size: .85rem; color: var(--ink-soft); margin: 0 0 6px; }
