:root {
  --cocoa: #4a3426;
  --soft: #7a6152;
  --rust: #b4492f;
  --rust-dark: #8f3520;
  --cream: #fff8ec;
  --paper: #f6eee0;
  --honey: #e9c48a;
  --shadow: 0 8px 24px rgba(64, 40, 24, 0.16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Fredoka", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--cocoa);
  background: var(--paper) url("img/paper.jpg") repeat;
  background-size: 256px;
  line-height: 1.55;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--rust); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); text-align: center; }
.kicker { text-align: center; color: var(--rust); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 6px; }
.sub { text-align: center; color: var(--soft); max-width: 620px; margin: 10px auto 0; font-size: 1.08rem; }
section { padding: 64px 0; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(6px); background: rgba(246, 238, 224, 0.82); border-bottom: 1px solid rgba(112, 74, 48, 0.12); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.top img { height: 42px; width: auto; }
.top nav a { text-decoration: none; color: var(--cocoa); font-weight: 600; margin-left: 18px; }
.top nav a:hover { color: var(--rust); }
@media (max-width: 640px) { .top nav a:not(.cta) { display: none; } }
.pill { display: inline-block; background: var(--rust); color: #fff !important; border-radius: 999px; padding: 8px 16px; font-weight: 700; text-decoration: none; box-shadow: inset 0 -3px 0 var(--rust-dark); }

/* Hero */
.hero { padding: 40px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.hero .logo { width: min(460px, 100%); animation: float 6s ease-in-out infinite; }
.hero .tag { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 600; margin: 14px 0 6px; }
.hero .blurb { color: var(--soft); margin: 0 0 22px; max-width: 520px; }
.soon { font-weight: 700; color: var(--rust); margin-bottom: 10px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badges img { height: 52px; width: auto; }
.hero .art { position: relative; justify-self: center; }
.hero .art img.key { width: min(380px, 100%); aspect-ratio: 4 / 5; object-fit: cover; object-position: center 78%; border-radius: 28px; box-shadow: var(--shadow); transform: rotate(2deg); }
.hero .art img.bob { position: absolute; width: 88px; left: -34px; bottom: 40px; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 6px 6px rgba(64, 40, 24, 0.25)); }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .logo { margin: 0 auto; }
  .hero .blurb { margin: 0 auto 22px; }
  .badges { justify-content: center; }
  .hero .art img.bob { left: -8px; width: 70px; }
}

/* Cards */
.card { background: rgba(255, 248, 236, 0.94); border: 1px solid rgba(112, 74, 48, 0.16); border-radius: 26px; box-shadow: var(--shadow); }

/* How to play */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.step { padding: 24px 22px; text-align: center; }
.step .pic { height: 120px; display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 10px; }
.step .pic img { height: 100px; width: auto; }
.step .pic .num { font-size: 64px; font-weight: 700; color: #2e8b57; line-height: 1; margin-right: 6px; }
.step .no { display: inline-block; width: 32px; height: 32px; border-radius: 50%; background: var(--honey); font-weight: 700; line-height: 32px; margin-bottom: 8px; }
.step h3 { font-size: 1.3rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--soft); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; padding: 30px 0 18px; }
.shots figure { margin: 0; scroll-snap-align: center; text-align: center; }
.phone { border: 9px solid #2e221b; border-radius: 34px; overflow: hidden; box-shadow: var(--shadow); background: #2e221b; aspect-ratio: 540 / 1108; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shots figcaption { margin-top: 10px; color: var(--soft); font-weight: 600; font-size: 0.98rem; }
@media (max-width: 900px) {
  .shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 58%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 30px 4px 18px; }
}

/* Worlds */
.worlds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 34px; }
.world { overflow: hidden; }
.world img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.world div { padding: 12px 14px 16px; }
.world small { color: var(--rust); font-weight: 700; letter-spacing: 0.06em; }
.world h3 { font-size: 1.2rem; margin: 2px 0 4px; }
.world p { margin: 0; color: var(--soft); font-size: 0.95rem; }
@media (max-width: 980px) { .worlds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .worlds { grid-template-columns: 1fr; } }

/* Family */
.family { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; margin-top: 34px; padding: 28px; }
.family .mama { text-align: center; }
.family .mama img { width: 240px; margin: 0 auto; }
.family .mama h3 { font-size: 1.5rem; }
.family .mama p { margin: 2px 0 0; color: var(--soft); }
.babies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.baby { text-align: center; padding: 8px; }
.baby img { width: 104px; margin: 0 auto; animation: bob 3.6s ease-in-out infinite; }
.baby:nth-child(2) img { animation-delay: -0.6s; }
.baby:nth-child(3) img { animation-delay: -1.2s; }
.baby:nth-child(4) img { animation-delay: -1.8s; }
.baby:nth-child(5) img { animation-delay: -2.4s; }
.baby:nth-child(6) img { animation-delay: -3s; }
.baby h4 { margin: 4px 0 0; font-size: 1.15rem; }
.baby p { margin: 0; color: var(--soft); font-size: 0.92rem; }
@media (max-width: 820px) { .family { grid-template-columns: 1fr; } .babies { grid-template-columns: repeat(2, 1fr); } }

/* Promises */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.promise { padding: 22px 18px; text-align: center; }
.promise img { height: 76px; width: auto; margin: 0 auto 8px; }
.promise h3 { font-size: 1.15rem; margin-bottom: 4px; }
.promise p { margin: 0; color: var(--soft); font-size: 0.95rem; }
@media (max-width: 900px) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .promises { grid-template-columns: 1fr; } }

/* Closing */
.closing { text-align: center; padding: 40px 24px; }
.closing img.logo { width: min(320px, 80%); margin: 0 auto 10px; }
.closing .badges { justify-content: center; margin-top: 14px; }

footer { text-align: center; color: var(--soft); font-size: 0.95rem; padding: 28px 16px 40px; }
footer a { margin: 0 8px; }

/* Policy pages */
.page { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
.page .card { padding: 22px 24px; margin: 18px 0; }
.page h1 { font-size: 2rem; margin: 6px 0 4px; }
.page h2 { font-size: 1.3rem; text-align: left; margin: 22px 0 6px; }
.page ul { padding-left: 1.2rem; }
header.site { display: flex; align-items: center; }
header.site img { height: 56px; width: auto; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(-0.6deg); } 50% { transform: translateY(-8px) rotate(0.6deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }
