/* Puddlejump Games - site stylesheet */
:root {
  --sky: #eaf6ff;
  --sky-deep: #cfeaff;
  --blue: #1e88e5;
  --blue-dark: #1565c0;
  --navy: #1b2a5e;
  --yellow: #ffd21e;
  --yellow-dark: #e6b800;
  --red: #ef4444;
  --green: #3cb043;
  --ink: #26334d;
  --muted: #5b6b86;
  --card: #ffffff;
  --line: #d9e8f5;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(27, 42, 94, 0.10);
  --font-head: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sky);
  background-image: radial-gradient(circle at 10% 0%, #ffffff 0, var(--sky) 45%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; color: var(--navy); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* skip link */
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; }
.brand img { width: 46px; height: 46px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--navy); font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sky); }
.nav a.cta { background: var(--yellow); color: var(--navy); }
.nav a.cta:hover { background: var(--yellow-dark); }
@media (max-width: 600px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; padding: 10px 0; }
  .nav a { padding: 6px 10px; font-size: .95rem; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 800; text-decoration: none; font-size: 1.05rem; border: 0; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--yellow); color: var(--navy); box-shadow: 0 6px 0 var(--yellow-dark); }
.btn-primary:hover { background: #ffdc4d; }
.btn-secondary { background: var(--blue); color: #fff; box-shadow: 0 6px 0 var(--blue-dark); }
.btn-secondary:hover { background: #2a93ee; }
.btn-ghost { background: #fff; color: var(--navy); border: 2px solid var(--line); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.price-note { font-size: .95rem; color: var(--muted); }
.btn-row + .price-note { margin-top: 14px; }

/* hero */
.hero { padding: 48px 0 32px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-logo { width: min(520px, 100%); margin-inline: auto; filter: drop-shadow(0 12px 24px rgba(30, 136, 229, .25)); }
.hero h1 span { color: var(--blue); }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .btn-row { justify-content: center; }
  .hero-logo { order: -1; width: min(380px, 80%); }
}

/* promise strip */
.promise { background: var(--navy); color: #fff; padding: 28px 0; }
.promise ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.promise li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.promise .tick { width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); color: var(--navy); display: grid; place-items: center; flex: none; font-size: 1.2rem; }
@media (max-width: 820px) { .promise ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .promise ul { grid-template-columns: 1fr; } }

/* sections */
section { padding: 56px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 32px; }

/* game cards */
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 820px) { .game-grid { grid-template-columns: 1fr; } }
.game-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.game-card .art img { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; }
.game-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.game-card .title { display: flex; align-items: center; gap: 14px; }
.game-card .title img { width: 56px; height: 56px; border-radius: 14px; }
.game-card h3 { margin: 0; font-size: 1.6rem; }
.tag { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--sky-deep); color: var(--navy); }
.tag.green { background: #e2f5e4; color: #1d6b2a; }
.game-card .btn-row { margin-top: auto; padding-top: 8px; }
.more-games { text-align: center; margin-top: 28px; color: var(--muted); }

/* story band */
.story { background: #fff; }
.story .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.story blockquote { margin: 0; padding: 24px 28px; border-left: 6px solid var(--yellow); background: var(--sky); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.15rem; }
@media (max-width: 820px) { .story .wrap { grid-template-columns: 1fr; } }

/* game page */
.game-hero { padding: 40px 0 24px; }
.game-hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.game-hero .art img { border-radius: var(--radius); box-shadow: var(--shadow); }
.game-hero .meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
@media (max-width: 820px) { .game-hero .wrap { grid-template-columns: 1fr; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 30px; }
.card ul { padding-left: 1.2em; margin: 0; }
.card li { margin: .35em 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.gallery figcaption { padding: 10px 14px; font-size: .95rem; color: var(--muted); }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
@media (max-width: 820px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { background: var(--sky); font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.compare tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare tr { border-bottom: 6px solid var(--sky); }
  .compare tr:last-child { border-bottom: 0; }
  .compare td { border-bottom: 0; padding: 10px 18px; }
  .compare td:first-child { background: var(--sky); font-family: var(--font-head); font-weight: 600; color: var(--navy); padding-top: 12px; }
  .compare td:nth-child(2)::before { content: "Demo: "; font-weight: 800; color: var(--navy); }
  .compare td:nth-child(3)::before { content: "Full: "; font-weight: 800; color: var(--navy); }
}
.get-band { background: var(--navy); color: #fff; text-align: center; }
.get-band h2 { color: #fff; }
.get-band .btn-row { justify-content: center; }
.get-band .price-note { color: #c9d6f2; }

/* prose pages */
.prose { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 44px; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
@media (max-width: 600px) { .prose { padding: 26px 20px; } }
.page-title { padding: 44px 0 20px; text-align: center; }
.page-title .lead { max-width: 640px; margin-inline: auto; }
.faq details { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 6px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--navy); padding: 12px 0; font-size: 1.05rem; }
.faq details p { margin: 0 0 14px; }
.contact-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px 34px; text-align: center; }
.contact-box a { color: var(--yellow); font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.dl-grid .card { padding: 20px; text-align: center; }
.dl-grid img { margin: 0 auto 12px; border-radius: 14px; max-height: 140px; width: auto; }
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 34%; color: var(--navy); }

/* footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 36px 0 28px; margin-top: 24px; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.site-footer h3 { font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--navy); text-decoration: none; font-weight: 700; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: .88rem; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }
