@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #241a33;
  --muted: #5a5170;
  --paper: #fbf7ff;
  --line: #e4dcef;
  --pink: #ffb8cf;
  --pink-ink: #4a1630;
  --aqua: #86dcea;
  --aqua-ink: #0f3b45;
  --yellow: #ffd23f;
  --yellow-ink: #4a2000;
  --stamp: #2742c4;
  --btn: #241a33;
  --btn-ink: #ffffff;
  --focus: #2742c4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3eefc;
    --muted: #b7aecb;
    --paper: #17121f;
    --line: #2e2640;
    --stamp: #9fb0ff;
    --focus: #9fb0ff;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

h1, h2, h3 { font-family: "Fredoka", ui-rounded, system-ui, sans-serif; font-weight: 650; letter-spacing: -0.015em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(42px, 5.6vw, 74px); }
h2 { font-size: clamp(34px, 4.6vw, 58px); margin-bottom: 18px; }
h3 { font-size: 24px; margin-bottom: 4px; }
p { margin: 0 0 14px; }
.sub { font-size: 20px; color: var(--muted); max-width: 62ch; margin-bottom: 40px; }
.fine { font-size: 15px; color: color-mix(in oklab, currentColor 75%, transparent); }

/* Fields: whole sections in one cardstock colour. */
.field { padding: 96px 0; }
.pink { background: var(--pink); color: var(--pink-ink); }
.aqua { background: var(--aqua); color: var(--aqua-ink); }
.yellow { background: var(--yellow); color: var(--yellow-ink); }
.paper { background: var(--paper); }
.pink .fine, .aqua .fine, .yellow .fine { color: inherit; opacity: .82; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px;
  background: var(--pink);
  color: var(--pink-ink);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 650 24px/1 "Fredoka", ui-rounded, sans-serif; text-decoration: none; }
.brand img { border-radius: 9px; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 16px; }
.top nav a:not(.btn) { text-decoration: none; }
.top nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 28px; border-radius: 18px;
  background: var(--btn); color: var(--btn-ink);
  font: 600 20px/1 "Fredoka", ui-rounded, sans-serif; letter-spacing: .01em;
  text-decoration: none; border: 0; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 22px -10px rgba(36,26,51,.6);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 14px 26px -10px rgba(36,26,51,.65); }
.btn:active { transform: translateY(0); }
.btn.small { padding: 10px 16px; font-size: 16px; border-radius: 12px; }
@media (prefers-color-scheme: dark) { .btn { --btn: #241a33; } }

/* Hero */
.hero { padding: 72px 0 110px; min-height: calc(100svh - 64px); display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; width: 100%; }
.hero-art img { width: 100%; height: auto; display: block; filter: drop-shadow(0 22px 30px rgba(74,22,48,.25)); }
.lede { font-size: 22px; line-height: 1.5; max-width: 34ch; margin: 26px 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-bottom: 18px; }
.text-link { font-weight: 600; text-underline-offset: 5px; }

.hero-ad { display: flex; align-items: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; }
.fake-ad {
  position: relative; width: min(100%, 330px); aspect-ratio: 3 / 1;
  display: grid; place-content: center; text-align: center; gap: 8px; padding: 24px;
  background: repeating-linear-gradient(-45deg, #ff3d6e 0 18px, #ff5c84 18px 36px);
  color: #fff; border-radius: 8px;
  box-shadow: 0 18px 40px -18px rgba(74,22,48,.6);
}
.fake-ad strong { font: 700 30px/1 "Fredoka", ui-rounded, sans-serif; letter-spacing: .02em; text-shadow: 0 3px 0 rgba(0,0,0,.18); }
.fake-ad span { font-size: 13.5px; }
.ad-badge { position: absolute; top: 8px; left: 8px; background: #fff; color: #c42040; font: 700 12px/1 system-ui; padding: 4px 6px; border-radius: 4px; }
.stamp-note {
  font: 600 16px/1.2 "Fredoka", ui-rounded, sans-serif; color: #2742c4;
  border: 2.5px solid #2742c4; border-radius: 8px; padding: 8px 12px; transform: rotate(-4deg);
  background: rgba(255,255,255,.35); margin: 0;
}

/* What it does */
.habits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 56px; }
.habits li { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; }
.habits .face { width: 72px; height: 72px; object-fit: contain; border-radius: 50%; background: var(--pink); padding: 6px; }
.habits li:nth-child(4n+2) .face { background: var(--aqua); }
.habits li:nth-child(4n+3) .face { background: var(--yellow); }
.habits li:nth-child(4n+4) .face { background: #a2e6c4; }
.habits p { color: var(--muted); margin: 0; }

/* Squishy */
.two { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.squish p { font-size: 20px; max-width: 46ch; }
.moves { list-style: none; counter-reset: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.moves li { background: rgba(255,255,255,.45); border-radius: 16px; padding: 18px 20px; font-size: 18px; }
.moves b { font-family: "Fredoka", ui-rounded, sans-serif; font-weight: 650; font-size: 21px; display: block; }

/* Pets: the full catalog */
/* The catalog is always a light card, so its text stays dark in either theme. */
.all-h { font: 650 34px/1.1 "Fredoka", ui-rounded, sans-serif; margin: 64px 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { border: 2px solid #241a33; background: transparent; color: #241a33; border-radius: 999px; padding: 8px 15px; font: 600 15px/1 "Fredoka", ui-rounded, sans-serif; cursor: pointer; }
.chip:hover { background: rgba(36,26,51,.07); }
.chip[aria-pressed="true"] { background: #241a33; color: #fff; }
.chip:focus-visible, .pcard button:focus-visible { outline: 3px solid #2742c4; outline-offset: 2px; }
.catalog { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; }
.pcard { background: #fff; color: #241a33; border-radius: 18px; overflow: hidden; display: grid; grid-template-rows: 150px 1fr; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 22px -16px rgba(30,20,60,.5); }
.pcard[hidden] { display: none; }
.pworld { background: center / cover no-repeat; display: grid; place-items: end center; padding-top: 10px; }
.pworld img { height: 136px; width: auto; max-width: 92%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(30,20,50,.35)); }
.pinfo { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.pinfo h3 { font: 650 22px/1.05 "Fredoka", ui-rounded, sans-serif; margin: 0; }
.pinfo .kind { margin: 0; font-size: 14px; opacity: .7; }
.pinfo .ab { margin: 4px 0 10px; font-size: 14.5px; line-height: 1.4; }
.pinfo .ab b { font-weight: 650; }
.prow { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pprice { font: 650 15px/1 "Fredoka", ui-rounded, sans-serif; letter-spacing: .06em; color: #2742c4; border: 2px solid #2742c4; border-radius: 6px; padding: 5px 7px 4px; transform: rotate(-3deg); }
.pprice.free { color: #1d7a4a; border-color: #1d7a4a; }
.pcard button { border: 0; border-radius: 10px; padding: 9px 12px; background: color-mix(in srgb, var(--acc) 45%, #fff); color: #241a33; font: 600 14px/1 "Fredoka", ui-rounded, sans-serif; cursor: pointer; }
.pcard button:hover { background: var(--acc); }
.pcard button[aria-pressed="true"] { background: #241a33; color: #fff; }

/* Pets: adoption cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.card { border-radius: 22px; padding: 18px 16px 18px; display: grid; grid-template-rows: 170px auto; gap: 10px; position: relative; box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 12px 26px -16px rgba(30,20,60,.55); }
.card { margin-top: 26px; }
.card .hang { position: absolute; top: -26px; right: 16px; width: 46px; height: 46px; transform: rotate(8deg); filter: drop-shadow(0 3px 3px rgba(30,20,60,.25)); }
.card > div { display: flex; flex-direction: column; align-items: flex-start; }
.card > div button { margin-top: auto; }
.card .keep { font-size: 13.5px; margin: -6px 0 12px; opacity: .85; }
.card img { width: auto; max-width: 100%; height: 160px; object-fit: contain; justify-self: center; align-self: end; filter: drop-shadow(0 8px 8px rgba(40,20,50,.25)); }
.card h3 { font-size: 28px; }
.card .move { font-size: 15.5px; line-height: 1.4; min-height: 4.2em; margin-bottom: 8px; }
.card .price.stamp { justify-self: start; display: inline-block; font: 650 14px/1 "Fredoka", ui-rounded, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: #2742c4; border: 2px solid #2742c4; border-radius: 6px; padding: 5px 7px 4px; transform: rotate(-4deg); margin: 2px 0 14px; white-space: nowrap; }
.card button { width: 100%; padding: 11px 10px; border-radius: 12px; border: 0; cursor: pointer; font: 600 15px/1 "Fredoka", ui-rounded, sans-serif; background: rgba(255,255,255,.55); color: inherit; }
.card button:hover { background: rgba(255,255,255,.8); }
.card button[aria-pressed="true"] { background: #241a33; color: #fff; }
.c-mochi { background: #ffc9d6; color: #4a1630; }
.c-waffles { background: #ffc46b; color: #3d2410; }
.c-ziggy { background: #8fe0d6; color: #08322d; }
.c-leo { background: #ffb347; color: #3a2000; }
.c-boo { background: #d9d2ff; color: #22104a; }

/* Levels */
.punchcard { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; max-width: 420px; margin: 26px 0 16px; }
.punchcard span { aspect-ratio: 1; border-radius: 50%; border: 2px dashed color-mix(in oklab, var(--yellow-ink) 45%, transparent); }
.punchcard .on { border: 0; background: var(--paper); box-shadow: inset 0 3px 4px rgba(0,0,0,.3); }
.unlocks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.unlocks li { background: rgba(255,255,255,.45); border-radius: 14px; padding: 14px 16px; font-size: 18px; }
.unlocks li { font: 600 19px/1.3 "Fredoka", ui-rounded, sans-serif; }
.unlocks span { font: 400 15px/1 system-ui, sans-serif; opacity: .8; margin-left: 4px; }

/* Privacy */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 19px; }
.facts li { padding-left: 34px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--stamp); }
.facts li::after { content: ""; position: absolute; left: 6px; top: 11px; width: 6px; height: 9px; border: solid var(--stamp); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font: 600 21px/1.3 "Fredoka", ui-rounded, sans-serif; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 26px; line-height: 1; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; color: var(--muted); max-width: 65ch; }

/* Final */
.final { padding: 110px 0; }
.final-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.final h2 { margin: 0; font-size: clamp(40px, 6vw, 76px); }

.foot { padding: 32px 0 40px; font-size: 15px; color: var(--muted); }
.foot-grid { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; }

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards li:last-child { grid-column: 1 / -1; max-width: 50%; justify-self: center; width: 100%; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .field { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .top { padding: 10px 16px; }
  .top nav a:not(.btn) { display: none; }
  .hero { min-height: 0; padding: 40px 0 72px; }
  .hero-grid, .two { grid-template-columns: 1fr; gap: 36px; }
  .lede { font-size: 19px; }
  .habits { grid-template-columns: 1fr; gap: 26px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cards li:last-child { max-width: none; }
  .card { grid-template-rows: 130px auto; padding: 14px 12px; }
  .card img { height: 124px; }
  .card h3 { font-size: 24px; }
  .unlocks { grid-template-columns: 1fr 1fr; }
  .final-grid { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, summary::after { transition: none; }
}

@media (prefers-color-scheme: dark) {
  .pcard { background: #2a2140; color: #f3eefc; }
  .pcard .pprice { color: #a9b8ff; border-color: #a9b8ff; }
  .pcard .pprice.free { color: #7fe0a8; border-color: #7fe0a8; }
  .pcard button { color: #241a33; }
  .chip { color: inherit; border-color: currentColor; }
  .chip[aria-pressed="true"] { background: #f3eefc; color: #241a33; border-color: #f3eefc; }
}
