/* ─────────────────────────────────────────────────────────────
   Pampo: Spot the Difference — app pages (/pampo)
   Builds on styles.css. Same navy, same type; a warmer sun-up
   wash and softer, rounder shapes for a game made for little ones.
───────────────────────────────────────────────────────────── */
:root {
  --sun:   #FFC83D;
  --sun-2: #FF9F43;
  --leaf:  #6BD58A;
  --sky:   #7CC8FF;
  --radius-lg: 26px;
}

/* A sunrise behind the hero instead of the studio's violet. */
.pampo .glow--cool {
  background:
    radial-gradient(60% 50% at 78% 4%, rgba(255, 200, 61, .16), transparent 70%),
    radial-gradient(70% 55% at 30% -10%, rgba(108, 91, 212, .20), transparent 70%),
    radial-gradient(40% 35% at 10% 30%, rgba(124, 200, 255, .07), transparent 70%);
}

.btn { white-space: nowrap; }
.pampo .eyebrow--warm { color: var(--sun); }

/* ── Hero ─────────────────────────────────────────────────── */
.p-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) var(--pad) clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.p-hero__icon {
  width: clamp(84px, 13vw, 112px);
  height: clamp(84px, 13vw, 112px);
  border-radius: 22.5%;
  margin-bottom: 1.4rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 0 1px var(--line);
}
.p-hero__name {
  margin: 0 0 1.1rem;
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  line-height: .98;
  letter-spacing: -0.035em;
}
.p-hero__name span { display: block; color: var(--sun); }
.p-hero__sub {
  margin: 0 0 1.9rem;
  max-width: 44ch;
  font-size: clamp(1.05rem, 2.3vw, 1.22rem);
  line-height: 1.5;
  color: var(--muted);
}
.p-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; }
.p-hero__fine { margin: .9rem 0 0; font-size: .9rem; color: var(--muted-2); }
.p-hero__media { justify-self: center; width: 100%; max-width: 330px; position: relative; }
.p-hero__media::before {
  /* the sun, peeking from behind the phone */
  content: ""; position: absolute; z-index: -1;
  width: 62%; aspect-ratio: 1; top: -6%; right: -14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 61, .55), rgba(255, 159, 67, .18) 55%, transparent 70%);
}

/* App Store button (text: Apple's badge artwork isn't in the repo yet) */
.btn--store {
  gap: .1rem; flex-direction: column; align-items: flex-start;
  padding: .7rem 1.5rem .75rem;
  background: #fff; color: #0C0028;
}
.btn--store:hover { background: #F1EEFF; }
.btn--store small { font-size: .7rem; font-weight: 600; letter-spacing: .02em; opacity: .75; line-height: 1.1; }
.btn--store b { font-size: 1.15rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }

/* Promise pills */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.pill {
  font-size: .82rem; font-weight: 700; letter-spacing: .01em;
  padding: .42rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
}
.pill::before { content: "✓ "; color: var(--leaf); font-weight: 800; }

/* ── Screens: a screenshot dressed as a phone screen ──────── */
.screen {
  width: 100%; height: auto; display: block;
  border-radius: 9% / 4.2%;
  box-shadow: 0 0 0 6px #1B0F45, 0 0 0 7px var(--line-2), 0 30px 60px -20px rgba(0, 0, 0, .7);
  background: #1B0F45;
}
.screen--ipad { border-radius: 4% / 3%; }

/* ── How it plays ─────────────────────────────────────────── */
.play {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem;
}
.play li {
  padding: 1.6rem 1.5rem 1.5rem;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.play__num {
  display: inline-grid; place-items: center;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  color: #0C0028; background: var(--sun);
}
.play li:nth-child(2) .play__num { background: var(--sky); }
.play li:nth-child(3) .play__num { background: var(--leaf); }
.play h3 { margin: 1rem 0 .45rem; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.15; }
.play p { margin: 0; color: var(--muted); font-size: 1rem; }
.play-note {
  margin: 1.6rem 0 0; color: var(--muted); font-size: 1.05rem;
}
.play-note b { color: var(--text); }

/* ── Worlds ───────────────────────────────────────────────── */
.worlds {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem;
}
.world {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
}
.world img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.world__meta {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .8rem 1rem .9rem;
}
.world__name { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.tag {
  flex: none;
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px;
  color: var(--muted-2); border: 1px solid var(--line-2);
}
.tag--free { color: #0C0028; background: var(--leaf); border-color: transparent; }
.price {
  margin: 1.8rem 0 0;
  display: flex; flex-wrap: wrap; gap: .6rem 2rem;
  padding: 1.3rem 0; border-block: 1px solid var(--line);
  color: var(--muted);
}
.price b { color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; margin-right: .3rem; }
.price small { flex-basis: 100%; color: var(--muted-2); font-size: .88rem; }

/* ── Made for little ones ─────────────────────────────────── */
.little {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center;
}
.little__media { justify-self: center; width: 100%; max-width: 310px; }
.little__list { list-style: none; margin: 0; padding: 0; }
.little__list li { padding: 1.15rem 0; border-top: 1px solid var(--line); }
.little__list li:first-child { border-top: 0; padding-top: 0; }
.little__list h3 { margin: 0 0 .3rem; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.015em; }
.little__list p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ── Parent promises ──────────────────────────────────────── */
.promises {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: .9rem;
}
.promise {
  padding: 1.5rem 1.4rem;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.promise__mark {
  display: inline-grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 14px;
  background: rgba(255, 200, 61, .12); color: var(--sun);
}
.promise__mark svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.promise h3 { margin: .9rem 0 .35rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.015em; }
.promise p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.5; }
.promise a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* ── Screenshots strip ────────────────────────────────────── */
.shots {
  list-style: none; margin: 0; padding: .5rem 0 1.5rem;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem);
}
.shots li { margin: 0; }
.shots figcaption { margin-top: 1.1rem; text-align: center; color: var(--muted); font-size: .95rem; }
.shots-ipad { margin-top: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); }
.shots-ipad figure { margin: 0; }

/* ── FAQ (native disclosure, no script) ───────────────────── */
.qa { max-width: 760px; }
.qa details { border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem 0;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.02rem, 2.4vw, 1.15rem);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; flex: none;
  font-family: var(--font); font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--muted-2);
  transition: transform var(--t) var(--ease);
}
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { margin: 0 0 1.3rem; color: var(--muted); max-width: 64ch; }
.qa a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* ── Outro ────────────────────────────────────────────────── */
.p-outro__icon { width: 88px; height: 88px; border-radius: 22.5%; margin: 0 auto 1.6rem; box-shadow: 0 14px 34px rgba(0,0,0,.45), 0 0 0 1px var(--line); }
.p-outro .contact__title span { color: var(--sun); }

/* ── Legal / support pages for Pampo ──────────────────────── */
.legal__app { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.legal__app img { width: 52px; height: 52px; border-radius: 22.5%; box-shadow: 0 0 0 1px var(--line); }
.legal__app span { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.legal__app a:hover span { color: var(--sun); }
.legal__toc { margin: 0 0 2rem; padding: 1.1rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--fill); }
.legal__toc p { margin: 0 0 .5rem; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.legal__toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; color: var(--muted); font-size: .95rem; }
.legal__toc li { margin: 0 0 .35rem; break-inside: avoid; }
.legal__body table { width: 100%; border-collapse: collapse; margin: 0 0 1.2rem; font-size: .96rem; }
.legal__body th, .legal__body td { text-align: left; vertical-align: top; padding: .7rem .8rem .7rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.legal__body th { color: var(--text); font-weight: 700; width: 34%; }
.legal__body tr:last-child th, .legal__body tr:last-child td { border-bottom: 1px solid var(--line); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 980px) {
  .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .p-hero { grid-template-columns: 1fr; text-align: center; }
  .p-hero__icon { margin-inline: auto; }
  .p-hero__sub { margin-inline: auto; }
  .p-hero__cta, .pills { justify-content: center; }
  .p-hero__media { max-width: 250px; }
  .play { grid-template-columns: 1fr; }
  .little { grid-template-columns: 1fr; }
  .little__media { max-width: 250px; }
  /* swipeable strip; scrolls inside itself, never the page */
  .shots {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(62%, 240px);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    padding-inline: 8px; margin-inline: -8px; scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shots li { scroll-snap-align: center; }
  .shots-ipad { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .worlds { gap: .65rem; }
  .world__meta { padding: .65rem .75rem .75rem; flex-wrap: wrap; }
  .world__name { font-size: .95rem; }
  .legal__toc ol { columns: 1; }
  .legal__body th { width: 40%; }
  .nav .wordmark { font-size: 1.1rem; }
}

.shots figure { margin: 0; }
.play-note a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.play-note a:hover { color: var(--text); }

/* ── Layout refinements (after review at 390 and 1440) ────── */
/* five promises: one row on desktop, never a lone orphan card */
.promises { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.shots-ipad { max-width: 880px; margin-inline: auto; }
@media (max-width: 1080px) {
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .promises { grid-template-columns: 1fr; }
  /* icon beside the text: five short cards instead of five tall ones */
  .promise { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.2rem 1.2rem; }
  .promise__mark { grid-row: span 2; }
  .promise h3 { margin: .1rem 0 .25rem; }
  /* worlds: the name on top, the tag under it, the same in every tile */
  .world__meta { flex-direction: column; align-items: flex-start; gap: .4rem; }
  /* one iPad shot is enough proof on a phone */
  .shots-ipad figure + figure { display: none; }
  .shots-ipad { max-width: 300px; }
}
.pampo .legal__body .faq__q { color: var(--text); }
