@font-face {
  font-family: 'Fredoka';
  src: url('fonts/fredoka-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito-latin.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --cream: #fff6ec;
  --peach: #ffd9c2;
  --mint: #cff3e3;
  --sky: #cde7ff;
  --lilac: #ebe4ff;
  --coral: #ff7a6b;
  --coral-deep: #e2574a;
  --sunflower: #ffc94a;
  --purple: #8b5cf6;
  --gold: #f5b83d;
  --plum: #3a2a4d;
  --plum-soft: #5f4f72;
  --white: #fffdfb;
  --radius: 28px;
  --shadow: 0 10px 30px rgba(58, 42, 77, 0.1);
  --shadow-lift: 0 16px 40px rgba(58, 42, 77, 0.16);
  --head: 'Fredoka', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --body: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--plum);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--coral-deep);
}

h1,
h2,
h3 {
  font-family: var(--head);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(44px, 9vw, 84px);
  font-weight: 700;
}

h2 {
  font-size: clamp(32px, 5.5vw, 48px);
}

h3 {
  font-size: 24px;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--white);
  border-radius: 12px;
}

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------------------------------------------------------------- header */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 246, 236, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(58, 42, 77, 0.06);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 28px;
  color: var(--coral);
  text-decoration: none;
}
.logo img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.nav {
  display: none;
  gap: 26px;
  font-weight: 800;
}
.nav a {
  color: var(--plum);
  text-decoration: none;
}
.nav a:hover {
  color: var(--coral-deep);
}
@media (min-width: 900px) {
  .nav {
    display: flex;
  }
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9184, var(--coral));
  color: #fff;
  font-family: var(--head);
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--coral-deep), 0 14px 28px rgba(255, 122, 107, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--coral-deep);
}
.btn.small {
  min-height: 46px;
  padding: 0 20px;
  font-size: 17px;
  box-shadow: 0 4px 0 var(--coral-deep);
}
.btn.ghost {
  background: var(--white);
  color: var(--plum);
  box-shadow: 0 4px 0 rgba(58, 42, 77, 0.12), var(--shadow);
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 0;
  background: linear-gradient(180deg, var(--peach) 0%, var(--cream) 78%);
  text-align: center;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.6;
  z-index: 0;
}
.hero::before {
  width: 420px;
  height: 420px;
  background: var(--mint);
  left: -120px;
  top: -80px;
}
.hero::after {
  width: 380px;
  height: 380px;
  background: var(--sky);
  right: -120px;
  top: 120px;
}
.hero .wrap {
  position: relative;
  z-index: 1;
}
.hero h1 {
  color: var(--coral);
  text-shadow: 0 4px 0 rgba(58, 42, 77, 0.12);
}
.hero h1 span {
  display: block;
  color: var(--plum);
  font-size: 0.48em;
  font-weight: 600;
  text-shadow: none;
  margin-top: 8px;
}
.lead {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--plum-soft);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 800;
  font-size: 15px;
  color: var(--plum-soft);
}
.badges li::before {
  content: '✓ ';
  color: #2f8a5b;
}
.hero-art {
  margin: 34px auto 0;
  width: min(900px, 100%);
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translateY(-8px);
  }
}

/* ---------------------------------------------------------------- sections */

section {
  padding: 84px 0;
}
.intro {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}
.intro p {
  color: var(--plum-soft);
  font-size: 19px;
}
.kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--white);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral-deep);
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: 20px;
}
.grid.four {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 719px) {
  .pet {
    padding: 12px 10px 18px;
  }
  .pet h3 {
    font-size: 20px;
  }
  .pet p {
    font-size: 15px;
    line-height: 1.45;
  }
}
@media (min-width: 720px) {
  .grid.four {
    gap: 20px;
  }
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid.two {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .grid.four {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.card p {
  margin: 0;
  color: var(--plum-soft);
}

.step {
  position: relative;
}
.step .num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: var(--coral);
  color: #fff;
  font-family: var(--head);
  font-size: 24px;
  font-weight: 700;
}
.step:nth-child(2) .num {
  background: var(--purple);
}
.step:nth-child(3) .num {
  background: #2f9e6e;
}

/* pets */
.pets {
  background: linear-gradient(180deg, var(--cream), var(--lilac));
}
.pet {
  text-align: center;
  padding: 18px 18px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pet:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: var(--shadow-lift);
}
.pet img {
  width: 76%;
  margin: 0 auto 6px;
}
.pet h3 {
  margin-bottom: 4px;
}
.tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 12px;
  border-radius: 999px;
  background: #f3e6d3;
  font-weight: 800;
  font-size: 14px;
}
.tag.rare {
  background: linear-gradient(90deg, var(--purple), #b38bff);
  color: #fff;
}
.pet.rare {
  box-shadow: 0 0 0 3px var(--gold), var(--shadow-lift);
}

/* features */
.feature h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
}
.feature .ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  font-size: 22px;
}
.bg-peach {
  background: var(--peach);
}
.bg-mint {
  background: var(--mint);
}
.bg-sky {
  background: var(--sky);
}
.bg-lilac {
  background: var(--lilac);
}
.bg-sun {
  background: #ffe9a8;
}

/* fair play banner */
.fair {
  padding: 0;
}
.fair .card {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 36px;
  background: linear-gradient(120deg, #3a2a4d, #5b3f86);
  color: #fff;
}
.fair .card p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}
.fair h2 {
  color: #fff;
}
.fair strong {
  color: var(--sunflower);
}
@media (min-width: 860px) {
  .fair .card {
    grid-template-columns: 1.2fr 1fr;
    padding: 48px;
  }
}

/* parents */
.parents {
  background: var(--mint);
}
.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.checks li {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.checks li::before {
  content: '✓';
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2f9e6e;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
}
.checks b {
  display: block;
}

/* install */
.install .card ol {
  margin: 0;
  padding-left: 22px;
}
.install .card li {
  margin-bottom: 6px;
}

/* faq */
.faq details {
  margin-bottom: 12px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 22px;
  position: relative;
  font-family: var(--head);
  font-size: 20px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  translate: 0 -50%;
  font-size: 28px;
  color: var(--coral);
  transition: rotate 0.2s ease;
}
.faq details[open] summary::after {
  rotate: 45deg;
}
.faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--plum-soft);
}
.faq .wrap {
  max-width: 820px;
}

/* final cta */
.final {
  text-align: center;
  background: linear-gradient(180deg, var(--cream), var(--peach));
}
.final img {
  width: min(560px, 100%);
  margin: 0 auto 10px;
}

/* footer */
footer {
  padding: 36px 0 44px;
  background: var(--plum);
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
}
footer a {
  color: #fff;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* privacy page */
.doc {
  padding: 56px 0 80px;
}
.doc .wrap {
  max-width: 780px;
}
.doc h1 {
  font-size: clamp(36px, 6vw, 52px);
  color: var(--coral);
}
.doc h2 {
  font-size: 26px;
  margin-top: 1.6em;
}
.doc li {
  margin-bottom: 6px;
}
.muted {
  color: var(--plum-soft);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.fair img {
  width: min(280px, 70%);
  margin: 0 auto;
}

.notfound {
  text-align: center;
}
.notfound img {
  width: 240px;
  margin: 0 auto;
}
