/* Computer Cuties site styles. Plain CSS, no build step. */

/* The app draws its headings in SF Pro Rounded (heavy). Apple devices get the real thing through
   ui-rounded; everyone else gets Nunito, which is close. */
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito-heavy.woff2") format("woff2");
  font-weight: 700 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1C2256;
  --navy-deep: #121738;
  --teal: #4096C4;
  --coral: #E0525E;
  --red: #CF3A3C;
  --lavender: #A8B4EC;
  --green: #4FA04A;
  --cream: #FFF8EC;
  --cream-2: #F7F0E3;
  --paper: #FFFFFF;
  --ink: #1C2256;
  --ink-2: rgba(28, 34, 86, .72);   /* secondary text */
  --ink-3: rgba(28, 34, 86, .56);   /* fine print */
  --line: rgba(28, 34, 86, .10);
  --radius: 24px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h3 { letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--navy); padding: 10px 16px;
  border: 2px solid var(--navy); border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Sprites ---------- */
/* One sheet per species (made by tools/make_site_art.py): 16 columns x 15 rows of 48x48 frames.
   Rows: idle, walk, sit, sleep, special, yawn, hop, fall, perch, chair, camp, read, music, game, fish.
   main.js points each [data-pal] sprite at its sheet and frame. */
.sprite {
  --s: 1;
  display: inline-block;
  width: calc(48px * var(--s));
  height: calc(48px * var(--s));
  background-repeat: no-repeat;
  background-size: 1600% 1500%;
  background-position: 0 0;
  image-rendering: pixelated;
  flex: none;
}

/* ---------- Buttons: chunky pixel style with a hard shadow ---------- */
.btn {
  --lift: 5px;
  --shadow: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--display); font-weight: 800; font-size: 1rem; letter-spacing: 0;
  color: #fff; background: var(--red);
  padding: .8em 1.4em;
  border: 2px solid var(--navy);
  border-radius: 8px;
  box-shadow: 0 var(--lift) 0 var(--shadow);
  text-decoration: none; cursor: pointer; user-select: none;
  transform: translateY(0);
  transition: transform .08s ease, box-shadow .08s ease, background-color .2s ease;
}
.btn:hover { color: #fff; background: #DA4547; transform: translateY(-1px); box-shadow: 0 calc(var(--lift) + 1px) 0 var(--shadow); }
.btn:active { transform: translateY(var(--lift)); box-shadow: 0 0 0 var(--shadow); }
.btn--big { font-size: 1.0625rem; padding: .9em 1.6em; }
.btn--small { --lift: 3px; font-size: .875rem; padding: .5em 1em; border-radius: 7px; }
.btn--download::before {
  /* tiny pixel arrow */
  content: ""; width: 12px; height: 14px; flex: none; background: currentColor;
  clip-path: polygon(34% 0, 66% 0, 66% 50%, 100% 50%, 50% 100%, 0 50%, 34% 50%);
}
.btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .55); --shadow: rgba(8, 12, 40, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .18); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  background: rgba(28, 34, 86, .9);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
}
.nav__inner { width: min(1120px, 100% - 48px); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.0625rem; letter-spacing: 0; }
.nav__brand:hover { color: #fff; }
.nav__brand img { border-radius: 7px; }
.nav__links { list-style: none; display: flex; gap: 4px; margin: 0 auto; padding: 0; }
.nav__links a { display: block; color: rgba(255, 255, 255, .72); text-decoration: none; font-size: .875rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; transition: color .2s, background-color .2s; }
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav .btn { margin-left: auto; }
.nav__links + .btn { margin-left: 0; }
.nav :focus-visible { outline-color: var(--lavender); }

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow--light { color: #BFD6FF; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); padding: 5px 12px; border-radius: 999px; }
.eyebrow--coral { color: #C23A47; }
.eyebrow--teal { color: #2A7AA6; }
.eyebrow--red { color: #B83234; }
.eyebrow--green { color: #3A7F36; }
.eyebrow--lavender { color: var(--lavender); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: calc(var(--nav-h) * -1);
  padding: calc(var(--nav-h) + 56px) 24px 0;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(64, 150, 196, .25), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, #23336F 50%, var(--teal) 100%);
  overflow: hidden;
}
.hero__inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero__icon {
  display: block; width: 104px; height: 104px; margin: 0 auto 22px;
  filter: drop-shadow(0 18px 30px rgba(8, 12, 40, .5));
}
.hero__title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 18px;
  text-shadow: 0 4px 0 rgba(8, 12, 40, .3);
}
.hero__tagline { font-size: clamp(1.25rem, 2.6vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 10px; color: #fff; text-wrap: balance; }
.hero__desc { font-size: 1.0625rem; color: rgba(255, 255, 255, .7); max-width: 32em; margin: 0 auto 30px; text-wrap: balance; }
.hero__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.req { font-size: .8125rem; color: rgba(255, 255, 255, .62); margin: 20px 0 0; font-weight: 500; letter-spacing: 0; text-wrap: balance; }
.req--dark { color: var(--ink-3); }
.hero__hint { position: relative; margin: 0; padding: 18px 0 120px; font-size: .875rem; color: rgba(255, 255, 255, .78); }

/* The pretend Mac desktop */
.screen {
  position: relative;
  width: min(960px, 100%);
  aspect-ratio: 16 / 9;
  margin: 56px auto 0;
  border-radius: clamp(16px, 3vw, 28px);
  overflow: hidden;
  background:
    radial-gradient(80% 70% at 75% 110%, rgba(79, 160, 74, .35), transparent 60%),
    radial-gradient(60% 60% at 10% 0%, rgba(168, 180, 236, .35), transparent 60%),
    linear-gradient(160deg, #2B3A86 0%, #3C7FB8 60%, #63B3D6 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 80px rgba(8, 12, 40, .45);
  text-align: left;
}
.screen__menubar {
  display: flex; justify-content: space-between; align-items: center;
  height: 26px; padding: 0 14px;
  background: rgba(18, 23, 56, .35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 12px; color: rgba(255, 255, 255, .92);
}
.screen__menu { display: flex; gap: 16px; }
.screen__status { display: flex; gap: 10px; align-items: center; }
.win {
  position: absolute;
  background: rgba(255, 255, 255, .96);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(28, 34, 86, .12), 0 18px 40px rgba(8, 12, 40, .3);
  overflow: hidden;
}
.win--a { left: 8%; top: 24%; width: 38%; height: 46%; }
.win--b { right: 7%; top: 40%; width: 34%; height: 40%; }
.win__bar, .mac-window__bar { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; background: #F2F2F6; border-bottom: 1px solid #E4E4EA; }
.win__bar i, .mac-window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.win__bar i:nth-child(2), .mac-window__bar i:nth-child(2) { background: #FEBC2E; }
.win__bar i:nth-child(3), .mac-window__bar i:nth-child(3) { background: #28C840; }
.win__body { padding: 16px; display: grid; gap: 10px; }
.line { display: block; height: 9px; border-radius: 5px; background: #E5E8F2; }
.w50 { width: 50%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.win__body--tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.win__body--tiles span { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, #FBD9DC, #E2E7FB); }
.win__body--tiles span:nth-child(2n) { background: linear-gradient(135deg, #D8EED5, #E2F0F8); }
.screen__perch { --s: 2; position: absolute; left: calc(8% + 38% - 76px); top: calc(24% - 96px + 16px); z-index: 1; } /* legs dangle over the window's top edge */
.screen__nap { --s: 2; position: absolute; right: 22%; bottom: 0; }
.screen__fish { --s: 2; position: absolute; left: 3%; bottom: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 11vw, 136px) 0; }
.section--tint { background: var(--cream-2); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto clamp(44px, 6vw, 64px); }
.section__title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.section__lead { color: var(--ink-2); font-size: 1.125rem; margin: 0 auto; max-width: 34em; text-wrap: balance; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(28, 34, 86, .04), 0 12px 32px rgba(28, 34, 86, .06);
  transition: transform .4s var(--spring), box-shadow .4s ease;
}

.tag {
  display: inline-block; font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .25em .65em; border-radius: 999px; margin-right: .4em; vertical-align: .12em; color: var(--navy);
}
.tag--coral { background: #FBD9DC; }
.tag--green { background: #D8EED5; }
.tag--lavender { background: #E2E7FB; }

/* Scroll reveal (only when JS runs and motion is fine) */
.js .reveal { opacity: 0; translate: 0 18px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .7, .2, 1), transform .4s var(--spring), box-shadow .4s ease; }
.js .reveal.is-in { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .card { transition: none; }
}

/* ---------- Meet the cuties ---------- */
.cuties__hint {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: -18px auto 26px;
  font-family: var(--display); font-weight: 800; font-size: 1.125rem; color: var(--red);
}
.cuties__arrow {
  width: 18px; height: 22px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 11' shape-rendering='crispEdges'%3E%3Cpath fill='%23CF3A3C' d='M3 0h3v6h3v1H8v1H7v1H6v1H5v1H4v-1H3V9H2V8H1V7H0V6h3z'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: nudge 1.2s ease-in-out infinite;
}
@keyframes nudge { 0%, 100% { translate: 0 -2px; } 50% { translate: 0 4px; } }
.cuties__noscript { text-align: center; color: var(--ink-2); }

.cutie-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.cutie { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 10px 18px; }
.cutie:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(28, 34, 86, .04), 0 20px 40px rgba(28, 34, 86, .1); }
.cutie__stage {
  position: relative; display: grid; place-items: end center;
  width: 100%; height: 136px; margin: 0 0 14px; padding: 0 0 14px;
  border: 0; border-radius: 16px; cursor: pointer; font: inherit; color: inherit;
  background: radial-gradient(70% 70% at 50% 100%, var(--tint, #E9ECFA), #FBFAFF 72%);
}
.cutie__stage::after {
  content: ""; position: absolute; left: 24%; right: 24%; bottom: 13px; height: 2px; border-radius: 2px;
  background: rgba(28, 34, 86, .12);
}
.cutie__sprite { --s: 2; position: relative; z-index: 1; transition: opacity .2s ease; }
.cutie__away {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 8px;
  font-size: .8125rem; font-weight: 600; color: var(--ink-3); opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.cutie__away b {
  justify-self: center; font-family: var(--display); font-weight: 800; font-size: .875rem; color: #fff;
  background: var(--navy); border-radius: 999px; padding: .35em .9em;
}
.cutie.is-out .cutie__sprite { opacity: 0; }
.cutie.is-out .cutie__away { opacity: 1; }
.cutie.is-out .cutie__stage { background: repeating-linear-gradient(-45deg, #F6F4FB 0 10px, #FBFAFF 10px 20px); }
.cutie__name { font-size: 1.3rem; margin: 0 0 .2em; }
.cutie__line { color: var(--ink-2); font-size: .9375rem; line-height: 1.5; margin: 0 0 .7em; padding: 0 6px; }
.cutie__trick { margin: auto 0 0; padding: 0 6px; font-size: .875rem; line-height: 1.5; color: var(--ink-2); }
.cutie__trick .tag { background: var(--tint, #E2E7FB); }

/* Chill time */
.chill { margin-top: clamp(40px, 5vw, 56px); padding: 28px 24px 18px; border-radius: var(--radius); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.chill__head { text-align: center; margin-bottom: 18px; }
.chill__title { font-weight: 800; font-size: 1.375rem; margin-bottom: .2em; }
.chill__lead { color: var(--ink-2); margin: 0; }
.chill__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(6, 1fr); }
.chill__grid li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .875rem; line-height: 1.35; color: var(--ink-2); }
.chill__sprite { --s: 2; border-radius: 14px; background-color: #EEF3FB; }

/* Friends */
.friend-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); counter-reset: none; }
.friend-step { padding: 28px 24px 22px; position: relative; }
.friend-step h3 { font-weight: 800; font-size: 1.2rem; }
.friend-step p { color: var(--ink-2); margin-bottom: .8em; }
.friend-step__num {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 10px;
  background: var(--navy); color: #fff; font-family: var(--display); font-weight: 900; font-size: 1.1rem;
}
.code-sample {
  display: block; padding: 10px 12px; border-radius: 10px; background: #1C2256; color: #BFD6FF;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .8125rem; letter-spacing: .02em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/* First launch guide */
.open-guide { margin-top: 40px; padding: 30px 30px 22px; border-radius: var(--radius); background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 20px 40px rgba(28, 34, 86, .06); text-align: left; }
.open-guide__title { font-weight: 800; font-size: 1.3rem; margin-bottom: .3em; }
.open-guide__lead { color: var(--ink-2); }
.open-steps { margin: 0 0 1em; padding-left: 1.4em; display: grid; gap: 12px; }
.open-steps li { padding-left: 4px; color: var(--ink-2); }
.open-steps li::marker { font-weight: 800; color: var(--red); }
.open-steps strong { color: var(--ink); }
.open-guide__note { font-size: .9375rem; color: var(--ink-3); margin: 0; }



/* ---------- What they do ---------- */
.do-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); align-items: start; }
.do-card { padding: 28px 24px 16px; }
.do-card__title { font-weight: 800; font-size: 1.25rem; margin-bottom: 4px; }
.do-card__note { color: var(--ink-3); font-size: .9375rem; margin: 0; }
.do-list { list-style: none; margin: 10px 0 0; padding: 0; }
.do-list li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); font-size: .9375rem; line-height: 1.45; color: var(--ink-2); }
.do-list li:first-child { border-top: 0; }
.ico { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 14px; }
.ico--coral { background: #FDE6E7; }
.ico--green { background: #E3F2E0; }
.ico--lavender { background: #E8ECFC; }
.mini { --s: 1; }
.pixel-heart {
  display: inline-block; width: 21px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6' shape-rendering='crispEdges'%3E%3Cpath fill='%23E0525E' d='M1 0h2v1h1V0h2v1h1v2H6v1H5v1H4v1H3V5H2V4H1V3H0V1h1z'/%3E%3Cpath fill='%23fff' d='M1 1h1v1H1z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* ---------- Customize ---------- */
/* Real Pal Hub screenshots */
.hub-shots { margin: 0 auto clamp(44px, 6vw, 64px); max-width: 1040px; }
.mac-window--hub { background: #121326; }
.mac-window--hub .mac-window__bar { background: #15172C; border-bottom-color: #23263F; }
.hub-shots__img { display: block; width: 100%; height: auto; aspect-ratio: 1952 / 1280; background: #121326; }
.hub-shots__tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hub-shots__tabs button {
  display: inline-flex; align-items: center; gap: 8px; padding: .55em 1.1em; border-radius: 12px;
  border: 2px solid transparent; background: var(--paper); box-shadow: 0 0 0 1px var(--line);
  font-family: var(--display); font-weight: 800; font-size: 1rem; color: var(--ink-2); cursor: pointer;
}
.hub-shots__tabs button b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #E9ECFA; color: var(--navy); font-size: .875rem; }
.hub-shots__tabs button[aria-selected="true"] { color: var(--navy); border-color: #5FD0BE; box-shadow: none; }
.hub-shots__tabs button[aria-selected="true"] b { background: #5FD0BE; color: #0F1022; }

.custom { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
.mac-window {
  border-radius: 16px; overflow: hidden; background: #343642;
  box-shadow: 0 0 0 1px rgba(28, 34, 86, .14), 0 30px 60px rgba(28, 34, 86, .18);
}
.mac-window__bar { background: #2B2D37; border-bottom-color: #23252E; }
.mac-window__bar span { margin: 0 auto; transform: translateX(-20px); font-size: .8125rem; font-weight: 600; color: rgba(255, 255, 255, .7); }
.mac-window__body { padding: 22px 18px 18px; }
.outfits { display: grid; gap: 6px; grid-template-columns: repeat(4, 1fr); justify-items: center; }
.outfit {
  width: 96px; height: 96px;
  background-repeat: no-repeat;
  background-size: 1200% 100%;
  background-position: calc(var(--r) * 100% / 11) 0;
  image-rendering: pixelated;
}
.outfits.is-loaded .outfit { background-image: url("assets/outfits.png"); }
.custom__caption { color: rgba(255, 255, 255, .7); text-align: center; margin: 14px 0 0; font-size: .875rem; }

.counts { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
.count { text-align: left; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.count__num { display: block; font-weight: 800; font-size: 2.25rem; line-height: 1; letter-spacing: -0.04em; color: var(--red); }
.count__label { display: block; font-size: .8125rem; font-weight: 600; color: var(--ink-3); margin-top: 6px; line-height: 1.3; }
.count:nth-child(2) .count__num { color: #2A7AA6; }
.count:nth-child(3) .count__num { color: #6A6AB8; }
.count:nth-child(4) .count__num { color: #3A7F36; }

.specs { margin: 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 8.5em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 700; font-size: .9375rem; }
.specs dd { margin: 0; color: var(--ink-2); font-size: .9375rem; }

.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px 20px; grid-template-columns: 1fr 1fr; }
.ticks li { position: relative; padding-left: 28px; font-weight: 600; font-size: .9375rem; }
.ticks li::before, .cta__checks li::before {
  content: ""; position: absolute; left: 0; top: .22em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 6' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M6 0h2v2H7v1H6v1H5v1H4v1H2V5H1V4H0V2h2v1h1v1h1V3h1V2h1z'/%3E%3C/svg%3E") center / 10px 8px no-repeat;
}

.chips { list-style: none; margin: 0 0 1.2em; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #F1F3FC; color: var(--navy); border: 1px solid #DDE2F6; border-radius: 999px; padding: .3em .85em; font-size: .875rem; font-weight: 600; }

/* ---------- Control ---------- */
.control-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; align-items: stretch; }
.control-card { padding: 30px 28px 14px; }
.control-card h3 { font-size: 1.125rem; font-weight: 800; }
.control-card p { color: var(--ink-2); }
.control-card__split { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.control-card--sizes { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 48px; align-items: center; }
.menu-mock {
  list-style: none; margin: 0 0 16px; padding: 5px; width: 176px;
  background: rgba(250, 250, 252, .96); border: 1px solid #D4D6E0; border-radius: 10px;
  box-shadow: 0 12px 28px rgba(28, 34, 86, .16); font-size: .875rem;
}
.menu-mock li { padding: 3px 10px; border-radius: 5px; }
.menu-mock li:first-child { background: #3A7BE0; color: #fff; }
.menu-mock__sep { height: 1px; padding: 0 !important; margin: 4px 8px; background: #DCDDE4; }
.sizes { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 28px; }
.sizes li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 700; color: var(--ink-3); }
.paw {
  display: inline-block; width: 16px; height: 16px; vertical-align: -2px; margin-right: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath fill='%231C2256' d='M1 2h1v2H1zM3 0h1v2H3zM5 0h1v2H5zM7 2h1v2H7zM3 4h3v1h1v2H6v1H3V7H2V5h1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.paw--light {
  margin: 0; width: 13px; height: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M1 2h1v2H1zM3 0h1v2H3zM5 0h1v2H5zM7 2h1v2H7zM3 4h3v1h1v2H6v1H3V7H2V5h1z'/%3E%3C/svg%3E");
}

/* ---------- Privacy (the one dark section) ---------- */
.section--privacy {
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(64, 150, 196, .22), transparent 70%),
    var(--navy-deep);
  color: #fff;
}
.section--privacy .section__lead { color: rgba(255, 255, 255, .68); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.check {
  position: relative; padding: 24px 24px 8px 24px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 20px;
}
.check::before {
  content: ""; display: block; width: 32px; height: 32px; margin-bottom: 16px; border-radius: 9px;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 6' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M6 0h2v2H7v1H6v1H5v1H4v1H2V5H1V4H0V2h2v1h1v1h1V3h1V2h1z'/%3E%3C/svg%3E") center / 16px 12px no-repeat;
  box-shadow: 0 3px 0 #2F6F2C;
}
.check h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 6px; }
.check p { color: rgba(255, 255, 255, .66); font-size: .9375rem; line-height: 1.55; }
.check--wide { grid-column: 1 / -1; }
.privacy__site { text-align: center; color: rgba(255, 255, 255, .6); margin: 36px 0 0; font-size: .9375rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 22px 48px 22px 4px; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.015em;
  border-radius: 8px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .3s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq summary:hover { color: var(--red); }
.faq details p { padding: 0 48px 22px 4px; margin: 0; color: var(--ink-2); }

/* ---------- Download ---------- */
.section--download {
  background: radial-gradient(45% 55% at 50% 45%, rgba(168, 180, 236, .32), transparent 70%), var(--cream);
  padding-bottom: clamp(140px, 15vw, 180px);
}
.cta { text-align: center; padding: 8px 0 0; }
.cta__icon { width: 104px; height: 104px; margin-bottom: 22px; filter: drop-shadow(0 16px 26px rgba(28, 34, 86, .25)); }
.cta .section__lead { margin-bottom: 32px; }
.cta__checks { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 22px 0 0; font-size: .875rem; color: var(--ink-2); font-weight: 500; }
.cta__checks li { position: relative; padding-left: 24px; }
.cta__more { margin: 28px 0 0; font-weight: 700; color: #6A6AB8; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep); color: rgba(255, 255, 255, .7);
  padding: 30px 0 calc(124px + env(safe-area-inset-bottom)); /* room for the pals walking at the bottom */
  font-size: .875rem;
}
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px; }
.footer p { margin: 0; }
.footer__brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }
.footer__brand img { border-radius: 5px; }
.footer a { color: #fff; }
.footer a:hover { color: var(--lavender); }
.footer :focus-visible { outline-color: var(--lavender); }

/* ---------- The walking pals ---------- */
.playground { position: fixed; inset: 0; z-index: 50; pointer-events: none; overflow: hidden; contain: strict; }
.walker {
  position: absolute; left: 0; top: 0;
  padding: 0; margin: 0; border: 0; background-color: transparent;
  pointer-events: auto; cursor: grab;
  touch-action: none; -webkit-user-select: none; user-select: none;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.walker[hidden] { display: none; }
.walker.is-held { cursor: grabbing; }
.walker.is-going { transition: opacity .35s ease; opacity: 0; }
.fx--emote { width: 27px; height: 30px; background: center / contain no-repeat; image-rendering: pixelated; }
.fx--heart { background-image: url("assets/emotes/heart.png"); width: 27px; height: 24px; }
.fx--note { background-image: url("assets/emotes/note.png"); width: 21px; height: 24px; }
.fx--sparkle { background-image: url("assets/emotes/sparkle.png"); width: 27px; height: 27px; }
.fx--bang { background-image: url("assets/emotes/bang.png"); width: 15px; height: 30px; }
.fx--what { background-image: url("assets/emotes/what.png"); width: 18px; height: 27px; }
.fx--sweat { background-image: url("assets/emotes/sweat.png"); width: 18px; height: 21px; }

/* A cutie's right click menu, like the app's */
.cutie-menu {
  position: fixed; z-index: 60; min-width: 190px; padding: 5px; margin: 0;
  background: rgba(250, 250, 252, .97); border: 1px solid #D4D6E0; border-radius: 10px;
  box-shadow: 0 12px 28px rgba(28, 34, 86, .2); font-size: .875rem; color: var(--ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.cutie-menu[hidden] { display: none; }
.cutie-menu__title { padding: 3px 10px 2px; font-family: var(--display); font-weight: 800; color: var(--ink-3); font-size: .8125rem; }
.cutie-menu button {
  display: block; width: 100%; text-align: left; padding: 3px 10px; border: 0; border-radius: 5px;
  background: none; font: inherit; color: inherit; cursor: default;
}
.cutie-menu button:hover, .cutie-menu button:focus-visible { background: #3A7BE0; color: #fff; outline: none; }
.cutie-menu button:disabled { color: rgba(28, 34, 86, .35); background: none; }
.cutie-menu hr { border: 0; height: 1px; margin: 4px 8px; background: #DCDDE4; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.walker:focus-visible { outline-offset: 0; }
.fx { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; transform: translateX(-50%); animation: fx-rise 1.1s ease-out forwards; }

.fx--boo {
  font-family: var(--sans); font-weight: 800; font-size: 15px; line-height: 1; letter-spacing: .04em;
  color: var(--navy); background: #fff; border: 2px solid var(--navy); border-radius: 8px;
  padding: 5px 8px 4px; animation-duration: 1.3s;
}
@keyframes fx-rise {
  0%   { opacity: 0; translate: 0 6px; }
  15%  { opacity: 1; translate: 0 0; }
  70%  { opacity: 1; }
  100% { opacity: 0; translate: 0 -26px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx { animation: fx-fade 1.1s linear forwards; }
  @keyframes fx-fade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
  .btn, .faq summary::after { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav .btn, .nav__links + .btn { margin-left: auto; }
  .do-grid { grid-template-columns: 1fr 1fr; }
  .cutie-grid { grid-template-columns: repeat(3, 1fr); }
  .do-grid > :last-child { grid-column: 1 / -1; }
  .custom { grid-template-columns: 1fr; }
  .custom__preview { max-width: 560px; margin-inline: auto; width: 100%; }
  .checklist { grid-template-columns: 1fr 1fr; }
  .control-grid { grid-template-columns: 1fr; }
  .control-card--sizes { grid-template-columns: 1fr; grid-column: auto; }
  .chill__grid { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .friend-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --nav-h: 56px; }
  .wrap, .wrap--narrow, .nav__inner { width: calc(100% - 32px); }
  .hero { padding: calc(var(--nav-h) + 40px) 16px 0; }
  .hero__icon { width: 88px; height: 88px; }
  .hero__cta .btn { width: 100%; max-width: 320px; }
  .screen { aspect-ratio: 4 / 3; margin-top: 44px; }
  .screen__menu span:nth-child(n+4) { display: none; }
  .win--a { left: 6%; top: 22%; width: 56%; height: 40%; }
  .win--b { right: 5%; top: 52%; width: 50%; height: 36%; }
  .screen__perch { --s: 1; left: calc(6% + 56% - 40px); top: calc(22% - 48px + 8px); }
  .screen__nap { --s: 1; right: 8%; }
  .screen__fish { --s: 1; }
  .chill__grid { grid-template-columns: repeat(2, 1fr); }
  .open-guide { padding: 24px 20px 18px; }
  .hero__hint { padding-bottom: 110px; }
  .section__lead { font-size: 1.0625rem; }
  .do-grid, .checklist { grid-template-columns: 1fr; }
  .cutie-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cutie { padding: 8px 8px 14px; }
  .cutie__stage { height: 120px; }
  .cutie__line { font-size: .875rem; }
  .cutie__trick { font-size: .8125rem; }
  .do-grid > :last-child { grid-column: auto; }
  .mac-window__body { padding: 16px 10px 14px; }
  .outfits { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .hub-shots__tabs button { font-size: .875rem; padding: .5em .8em; }
  .counts { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
  .ticks { grid-template-columns: 1fr; }
  .control-card__split { grid-template-columns: 1fr; }
  .control-card { padding: 26px 22px 12px; }
  .sizes { gap: 12px 20px; }
  .faq summary { font-size: 1rem; }
}
