/* Pippa Games website — candy colours and Fredoka, matching the app. */
@font-face {
  font-family: "Fredoka";
  src: url("Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --pink: #FF3EA5;
  --hot: #D4169A;
  --cyan: #4DD0FF;
  --lime: #B8FF3B;
  --sun: #FFE338;
  --grape: #C355FF;
  --cream: #FFF9EB;
  --ink: #2A0E4E;
  --card: #FFFFFF;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: 18px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--hot); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header bar on every page */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 3px 8px rgba(42,14,78,.25); }
.brand span { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 20px; }
.nav { display: flex; gap: 16px; font-weight: 600; font-size: 16px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--hot); }

/* Hero */
.hero {
  background: linear-gradient(160deg, #FF8FCB 0%, #E86BE6 45%, #9B5DE5 100%);
  color: #fff;
  overflow: hidden;
}
.hero .bar .brand, .hero .nav a { color: #fff; }
.hero-body {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
  padding: 24px 0 56px;
}
.logo {
  font-family: "Fredoka", sans-serif; font-weight: 700; line-height: .95; margin: 0;
  text-transform: uppercase; letter-spacing: .5px;
}
.logo .l1, .logo .l2 {
  display: block;
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 6px 0 rgba(42,14,78,.35);
}
.logo .l1 { font-size: clamp(56px, 10vw, 104px); color: #FFD6EE; }
.logo .l2 { font-size: clamp(34px, 6vw, 60px); color: #D9F7FF; margin-top: 6px; }
.tagline { font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; margin: 22px 0 18px; max-width: 30ch; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; border-radius: 999px;
  padding: 12px 22px; font-weight: 700; font-size: 17px; text-decoration: none;
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.badges span {
  background: rgba(255,255,255,.22); border: 2px solid rgba(255,255,255,.6);
  border-radius: 999px; padding: 4px 12px; font-size: 15px; font-weight: 600;
}
.hero-phones { position: relative; height: 520px; }
.hero-phones .phone { position: absolute; width: 230px; }
.hero-phones .phone:nth-child(1) { left: 0; top: 40px; transform: rotate(-7deg); }
.hero-phones .phone:nth-child(2) { right: 0; top: 0; transform: rotate(6deg); }

/* Phone frame around a screenshot */
.phone {
  border: 8px solid var(--ink); border-radius: 36px; overflow: hidden;
  background: var(--ink); box-shadow: 0 18px 40px rgba(42,14,78,.35);
}
.phone { position: relative; }
.phone img { width: 100%; }
.phone::after {
  content: ""; position: absolute; left: 34.5%; width: 31%; top: 1.5%; height: 4.2%;
  background: #000; border-radius: 999px;
}

/* Sections */
section { padding: 64px 0; }
h2 {
  font-family: "Fredoka", sans-serif; font-weight: 700; color: var(--hot);
  font-size: clamp(30px, 4.5vw, 44px); line-height: 1.1; margin: 0 0 10px; text-align: center;
}
.lead { text-align: center; max-width: 46ch; margin: 0 auto 40px; font-size: 20px; }

.games { display: flex; flex-direction: column; gap: 56px; max-width: 880px; margin: 0 auto; }
.game { display: flex; align-items: center; gap: 56px; }
.game:nth-child(even) { flex-direction: row-reverse; }
.game .phone { width: 280px; flex: none; }
.game-text { flex: 1; }
.game h3 { font-family: "Fredoka", sans-serif; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; margin: 0 0 12px; }
.game p { margin: 0; font-size: 20px; max-width: 36ch; }
.game:nth-child(6n+1) h3 { color: #3FA64A; }
.game:nth-child(6n+2) h3 { color: #E6007E; }
.game:nth-child(6n+3) h3 { color: #7A2FC9; }
.game:nth-child(6n+4) h3 { color: #D4169A; }
.game:nth-child(6n+5) h3 { color: #1B8FC4; }
.game:nth-child(6n+6) h3 { color: #E0661A; }

.promise { background: #FFE9F6; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--card); border-radius: 28px; padding: 26px 28px;
  border: 3px solid #FFD6EE;
}
.card h3 { font-family: "Fredoka", sans-serif; font-size: 26px; margin: 0 0 10px; }
.card ul { margin: 0; padding-left: 1.2em; }
.card li { margin: 6px 0; }

.cta { text-align: center; }
.cta p { font-size: 20px; margin: 0 0 22px; }

footer { background: var(--ink); color: #E9DDF7; padding: 36px 0; font-size: 16px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { color: #FFB3D9; }
footer nav { display: flex; gap: 18px; }

/* Text pages (privacy, support) */
.page-head { background: linear-gradient(160deg, #FF8FCB 0%, #C86BE8 100%); }
.page-head .brand, .page-head .nav a { color: #fff; }
.doc { max-width: 760px; margin: 0 auto; padding: 40px 16px 72px; }
.doc h1 { font-family: "Fredoka", sans-serif; color: var(--hot); font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin: 0 0 6px; }
.doc h2 { text-align: left; font-size: 24px; margin: 32px 0 8px; }
.doc .date { opacity: .7; margin: 0 0 24px; }
.box { background: #fff; border: 3px solid var(--pink); border-radius: 18px; padding: 16px 20px; }

@media (max-width: 860px) {
  .hero-body { grid-template-columns: 1fr; text-align: center; }
  .tagline { margin-left: auto; margin-right: auto; }
  .badges { justify-content: center; }
  .hero-phones { height: 440px; max-width: 420px; margin: 0 auto; width: 100%; }
  .hero-phones .phone { width: 190px; }
  .game, .game:nth-child(even) { flex-direction: column; gap: 20px; text-align: center; }
  .game .phone { width: min(260px, 70%); }
  .game p { margin: 0 auto; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav { gap: 12px; font-size: 15px; }
  .brand span { display: none; }
  .hero-phones { height: 380px; }
  .hero-phones .phone { width: 160px; }
}

/* ---- Full-site additions ---- */

/* App Store button (placeholder until Apple's official badge + link are swapped in) */
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; text-decoration: none;
  border: 2px solid #A6A6A6; border-radius: 14px; padding: 9px 22px 9px 18px;
  transition: transform .15s ease;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 28px; height: 34px; fill: #fff; flex: none; }
.store small { display: block; font-size: 12px; line-height: 1.1; text-align: left; }
.store strong { display: block; font-size: 23px; line-height: 1.1; font-weight: 600; text-align: left; letter-spacing: -.3px; }
.hero .store { margin-top: 4px; }

/* How it plays */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; background: #fff; border-radius: 28px; padding: 28px 22px; border: 3px solid #FFD6EE; }
.step .dot {
  width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 40px; color: #fff;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.12), 0 8px 18px rgba(212,22,154,.2);
}
.step:nth-child(1) .dot { background: var(--pink); }
.step:nth-child(2) .dot { background: var(--grape); }
.step:nth-child(3) .dot { background: #29B6E8; }
.step h3 { font-family: "Fredoka", sans-serif; font-size: 28px; margin: 0 0 6px; }
.step p { margin: 0; font-size: 17px; }

/* Devices */
.devices-sec { background: linear-gradient(160deg, #FFE9F6, #EFE3FF); }
.devices-row { display: flex; align-items: flex-end; justify-content: center; gap: 28px; }
.tablet { width: min(480px, 70%); border: 12px solid var(--ink); border-radius: 36px; overflow: hidden; box-shadow: 0 18px 40px rgba(42,14,78,.3); }
.devices-row .phone { width: min(200px, 28%); }

/* Parents */
.parents { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.faq details { background: #fff; border: 3px solid #FFD6EE; border-radius: 20px; padding: 14px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "Fredoka", sans-serif; font-size: 26px; line-height: 1; color: var(--hot); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 2px; }

/* Final call to action */
.finale { background: linear-gradient(160deg, #FF8FCB 0%, #9B5DE5 100%); color: #fff; text-align: center; }
.finale h2 { color: #fff; }
.finale .lead { margin-bottom: 24px; }
.finale .icon { width: 110px; height: 110px; border-radius: 26px; margin: 0 auto 18px; box-shadow: 0 10px 24px rgba(42,14,78,.3); }

footer .contact { display: block; margin-top: 4px; }

/* Centered single-screen pages (download, 404) */
.get {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 16px;
  background: linear-gradient(160deg, #FF8FCB 0%, #E86BE6 45%, #9B5DE5 100%);
  color: #fff;
}
.get .icon { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 12px 30px rgba(42,14,78,.35); margin-bottom: 24px; }
.get .logo .l1 { font-size: clamp(52px, 13vw, 96px); }
.get .logo .l2 { font-size: clamp(30px, 7.5vw, 54px); }
.get p { font-size: 20px; font-weight: 600; margin: 20px 0 28px; }
.get .devices { font-size: 16px; font-weight: 600; opacity: .9; margin-top: 18px; }
.get .more { margin-top: 36px; font-size: 16px; }
.get .more a { color: #fff; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .parents { grid-template-columns: 1fr; }
}
