/* Plugpal landing page */

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

:root {
  --bg: #232a3b;
  --bg-2: #2a3246;
  --card: #303950;
  --card-2: #38425c;
  --line: rgba(220, 230, 255, 0.09);
  --ink: #f2f4fa;
  --ink-soft: #c4cbdc;
  --ink-dark: #1c2231;

  --mint: #9fe8cc;
  --mint-d: #5cbf9b;
  --peach: #ffc6ac;
  --peach-d: #e5946f;
  --lavender: #cbbcff;
  --lavender-d: #9784e0;
  --butter: #ffe79a;
  --butter-d: #e0b94f;
  --sky: #a9d9ff;
  --sky-d: #6aa9de;
  --pink: #ffb2c8;

  --r-sm: 14px;
  --r: 22px;
  --r-lg: 32px;
  --wrap: 1160px;

  --f-display: "Pixelify Sans", ui-monospace, monospace;
  --f-body: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.075rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* soft pastel atmosphere + a faint pixel grid */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40rem 28rem at 8% -6%, rgba(159, 232, 204, 0.13), transparent 70%),
    radial-gradient(36rem 30rem at 100% 8%, rgba(203, 188, 255, 0.14), transparent 70%),
    radial-gradient(40rem 30rem at 50% 115%, rgba(255, 198, 172, 0.10), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.045) 1px, transparent 1.5px) 0 0 / 16px 16px,
    var(--bg);
}

img, video, canvas { display: block; max-width: 100%; }
a { color: var(--sky); text-underline-offset: 3px; }
a:hover { color: var(--butter); }
:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 99; background: var(--butter); color: var(--ink-dark); padding: .5rem 1rem; border-radius: 999px; }
.skip:focus { top: 1rem; }

.display { font-family: var(--f-display); font-weight: 600; letter-spacing: 0.01em; line-height: 1.05; }
.h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 0; }
.kicker {
  font-family: var(--f-display); font-size: 0.95rem; color: var(--mint);
  margin: 0 0 .5rem; letter-spacing: .04em;
}
.kicker::before { content: "▸ "; color: var(--pink); }

/* ---------- sprite (CSS sprite sheet player) ---------- */
.sprite {
  --s: 4; --row: 0; --fps: 4;
  display: inline-block;
  width: calc(32px * var(--s)); height: calc(32px * var(--s));
  background-image: var(--pet);
  background-repeat: no-repeat;
  background-size: calc(192px * var(--s)) calc(480px * var(--s));
  background-position: 0 calc(var(--row) * -32px * var(--s));
  image-rendering: pixelated;
  animation: sprite-play calc(6s / var(--fps)) steps(6) infinite;
}
@keyframes sprite-play {
  from { background-position-x: 0; }
  to { background-position-x: calc(-192px * var(--s)); }
}

/* ---------- buttons ---------- */
.btn {
  --b: var(--card-2); --b-d: #232a3b; --c: var(--ink);
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.35rem;
  border-radius: 999px;
  background: var(--b); color: var(--c);
  font: 600 1.05rem/1 var(--f-body);
  text-decoration: none;
  border: 0; cursor: pointer;
  box-shadow: 0 5px 0 var(--b-d);
  transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease, background-color .2s;
}
.btn:hover { color: var(--c); transform: translateY(-2px); box-shadow: 0 7px 0 var(--b-d); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--b-d); }
.btn--butter { --b: var(--butter); --b-d: var(--butter-d); --c: var(--ink-dark); }
.btn--ghost { --b: rgba(255,255,255,.06); --b-d: rgba(0,0,0,.25); box-shadow: inset 0 0 0 2px var(--line), 0 5px 0 var(--b-d); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px rgba(255,255,255,.18), 0 7px 0 var(--b-d); }
.btn--small { padding: .55rem 1rem; font-size: .95rem; }
.btn--big { padding: 1.05rem 1.6rem; font-size: 1.15rem; }
.btn--soon {
  --b: transparent; --c: var(--ink-soft);
  cursor: not-allowed; box-shadow: inset 0 0 0 2px dashed;
  border: 2px dashed rgba(196, 203, 220, .35);
  box-shadow: none;
}
.btn--soon small { font-size: .75rem; padding: .2rem .5rem; border-radius: 999px; background: rgba(203,188,255,.16); color: var(--lavender); }
.btn--soon:hover, .btn--soon:active { transform: none; box-shadow: none; color: var(--ink-soft); }
.ico { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; padding: .7rem 0; backdrop-filter: blur(10px); background: rgba(35, 42, 59, 0.72); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .5rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand__pet { --s: 1.25; }
.brand__name { font-family: var(--f-display); font-size: 1.45rem; font-weight: 700; }
.nav__links { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.nav__links a:hover { color: var(--butter); }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 2rem; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.sticker {
  display: inline-block; margin: 0 0 1.1rem;
  font-family: var(--f-display); font-size: .95rem;
  padding: .35rem .85rem; border-radius: 999px;
  transform: rotate(-2deg);
}
.sticker--mint { background: var(--mint); color: var(--ink-dark); box-shadow: 0 4px 0 var(--mint-d); }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); line-height: 1.12; margin: 0 0 1.5rem; text-wrap: balance; }
.hl { padding-bottom: .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl--butter {
  color: var(--butter);
  background: repeating-linear-gradient(90deg, rgba(255, 231, 154, .5) 0 .14em, transparent .14em .28em) left bottom / 100% .12em no-repeat;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 34rem; margin: 0 0 1.8rem; }
.cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.fine { color: var(--ink-soft); font-size: .95rem; margin: 1.2rem 0 0; }

.hero__art { position: relative; }
.art-card {
  position: relative;
  aspect-ratio: 700 / 640;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 50% 45%, rgba(169, 217, 255, .14), transparent 60%),
    #2c3448;
  border: 2px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), 0 0 0 10px rgba(255,255,255,.025);
  overflow: hidden;
  transform: rotate(1.5deg);
}
.art-card__media, .art-card__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.art-card__media { object-fit: cover; background: #2c3448; }
.art-card__still { padding: 6%; display: none; }
.art-card.is-still .art-card__media { display: none; }
.art-card.is-still .art-card__still { display: block; }

.bubble {
  position: absolute;
  font-family: var(--f-display); font-size: 1rem;
  background: #fff; color: var(--ink-dark);
  padding: .35rem .75rem; border-radius: 12px;
  border: 2px solid var(--ink-dark);
  box-shadow: 0 4px 0 rgba(0,0,0,.25);
  animation: bob 3.2s ease-in-out infinite;
}
.bubble::after {
  content: ""; position: absolute; bottom: -8px; left: 18px;
  width: 10px; height: 10px; background: #fff;
  border-right: 2px solid var(--ink-dark); border-bottom: 2px solid var(--ink-dark);
  transform: rotate(45deg);
}
.bubble--a { left: -4%; top: 18%; background: var(--sky); }
.bubble--a::after { background: var(--sky); }
.bubble--b { right: -2%; top: -4%; background: var(--butter); animation-delay: -1s; transform: rotate(4deg); }
.bubble--b::after { background: var(--butter); }
.bubble--c { right: 6%; bottom: -5%; background: var(--lavender); animation-delay: -2s; }
.bubble--c::after { background: var(--lavender); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* the pretend taskbar */
.dock-wrap { position: relative; margin-top: clamp(2.5rem, 5vw, 4rem); --dock-head: 64px; }
.dock {
  position: relative;
  height: 150px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.05));
  border: 2px solid var(--line);
  overflow: hidden;
}
.dock::after { /* the taskbar */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30px;
  background: rgba(15, 19, 30, .55); border-top: 2px solid var(--line);
}
.dock__canvas { position: absolute; inset: 0 0 30px 0; width: 100%; height: calc(100% - 30px); z-index: 1; touch-action: pan-y; cursor: pointer; }
.dock__tray { position: absolute; right: 14px; bottom: 6px; z-index: 2; display: flex; gap: .6rem; align-items: center; font-family: var(--f-display); font-size: .85rem; color: var(--ink-soft); }
.tray-batt { width: 22px; height: 11px; border: 2px solid var(--ink-soft); border-radius: 3px; position: relative; padding: 1px; }
.tray-batt::after { content: ""; position: absolute; right: -5px; top: 2px; width: 3px; height: 4px; background: var(--ink-soft); border-radius: 0 2px 2px 0; }
.tray-batt__fill { display: block; height: 100%; width: 72%; background: var(--mint); border-radius: 1px; }
/* speech bubbles + hearts: drawn on a layer that reaches above the box so they never get clipped */
.dock__fx { position: absolute; left: 0; right: 0; top: calc(-1 * var(--dock-head)); bottom: 0; width: 100%; height: calc(100% + var(--dock-head)); z-index: 3; pointer-events: none; }
.dock__hint { position: absolute; left: 16px; bottom: 4px; z-index: 2; margin: 0; font-family: var(--f-display); font-size: .85rem; color: var(--ink-soft); }

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 6.5vw, 5.5rem) 0; }
.section__head { max-width: 42rem; margin-bottom: 2.5rem; }
.section__sub { color: var(--ink-soft); margin: .9rem 0 0; font-size: 1.1rem; }

/* gif windows */
.gifs { display: flex; flex-direction: column; gap: 1.5rem; }
.gifs .window { width: min(100%, 700px); }
.gifs .window--lavender { width: min(100%, 860px); align-self: flex-end; margin-top: -.5rem; }
.window {
  margin: 0; border-radius: var(--r); overflow: hidden;
  background: var(--card); border: 2px solid var(--line);
  box-shadow: 0 8px 0 var(--accent-d), 0 24px 40px -24px rgba(0,0,0,.5);
}
.window--peach { --accent: var(--peach); --accent-d: var(--peach-d); transform: rotate(-1deg); }
.window--lavender { --accent: var(--lavender); --accent-d: var(--lavender-d); transform: rotate(1deg); }
.window__bar { display: flex; align-items: center; gap: 6px; padding: .55rem .9rem; background: var(--accent); color: var(--ink-dark); }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(28, 34, 49, .28); }
.window__bar span { margin-left: .5rem; font-family: var(--f-display); font-size: .85rem; }
.window img { width: 100%; height: auto; }
.window figcaption { padding: .9rem 1.1rem 1.1rem; color: var(--ink-soft); }

/* ---------- playground ---------- */
.toy {
  display: grid; grid-template-columns: 1fr 300px; gap: 0;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--card); border: 2px solid var(--line);
  box-shadow: 0 10px 0 #1a2030, 0 40px 60px -30px rgba(0,0,0,.55);
}
.toy__stage { position: relative; min-height: 340px; background: linear-gradient(180deg, #3a4a6e 0%, #57688c 60%, #8d9a9b 100%); transition: background .6s ease; }
.toy.is-night .toy__stage { background: linear-gradient(180deg, #151a2a 0%, #222a40 60%, #3a4058 100%); }
.toy__wall { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 1.5px) 0 0 / 12px 12px; }
.toy__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; touch-action: none; cursor: grab; }
.toy__canvas.is-dragging { cursor: grabbing; }
.toy__tips { position: absolute; left: 12px; top: 10px; z-index: 2; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; pointer-events: none; }
.toy__tips span { font-family: var(--f-display); font-size: .8rem; background: rgba(20, 25, 38, .55); color: var(--ink); padding: .2rem .55rem; border-radius: 999px; }

.toy__controls { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.3rem; background: var(--bg-2); border-left: 2px solid var(--line); }
.ctl { border: 0; margin: 0; padding: 0; min-width: 0; }
.ctl__label { display: flex; justify-content: space-between; font-family: var(--f-display); font-size: 1rem; color: var(--ink-soft); margin-bottom: .5rem; padding: 0; }
.ctl__label output { color: var(--ink); }
.ctl--row { display: flex; flex-wrap: wrap; gap: .5rem; }

.seg { display: flex; gap: .3rem; padding: .3rem; background: rgba(0,0,0,.2); border-radius: 999px; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: .45rem .3rem; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--ink-soft); transition: background .15s, color .15s; }
.seg input:checked + span { background: var(--lavender); color: var(--ink-dark); }
.seg input:focus-visible + span { outline: 3px solid var(--butter); outline-offset: 2px; }

.switch { display: flex; align-items: center; gap: .8rem; background: none; border: 0; padding: 0; color: var(--ink); font: 600 1rem var(--f-body); cursor: pointer; }
.switch__track { width: 62px; height: 34px; border-radius: 999px; background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 2px var(--line); position: relative; transition: background .2s; }
.switch__knob { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink-soft); transition: transform .25s cubic-bezier(.3,1.6,.5,1), background .2s; }
.switch[aria-checked="true"] .switch__track { background: var(--mint); }
.switch[aria-checked="true"] .switch__knob { transform: translateX(28px); background: #fff; }

.batt { display: flex; align-items: center; gap: .8rem; }
.batt__icon { position: relative; flex: none; width: 46px; height: 24px; border: 3px solid var(--ink-soft); border-radius: 6px; padding: 2px; }
.batt__icon::after { content: ""; position: absolute; right: -8px; top: 5px; width: 4px; height: 8px; background: var(--ink-soft); border-radius: 0 3px 3px 0; }
.batt__fill { display: block; height: 100%; width: 64%; border-radius: 2px; background: var(--mint); transition: width .2s, background .2s; }
.batt__bolt { position: absolute; inset: 0; margin: auto; width: 10px; height: 14px; fill: var(--ink-dark); stroke: #fff; stroke-width: 1; display: none; }
.toy.is-charging .batt__bolt { display: block; }
input[type="range"] { flex: 1; accent-color: var(--mint); height: 28px; cursor: pointer; }

.chip {
  border: 0; cursor: pointer;
  padding: .55rem .9rem; border-radius: 999px;
  background: var(--card-2); color: var(--ink);
  font: 600 .95rem var(--f-body);
  box-shadow: 0 4px 0 #1a2030;
  transition: transform .1s, box-shadow .1s, background .2s;
}
.chip:hover { background: #434e6b; }
.chip:active { transform: translateY(3px); box-shadow: 0 1px 0 #1a2030; }
.chip[aria-pressed="true"] { background: var(--lavender); color: var(--ink-dark); box-shadow: 0 4px 0 var(--lavender-d); }

/* ---------- features bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  position: relative;
  border-radius: var(--r-lg);
  padding: 1.6rem;
  background: var(--card);
  border: 2px solid var(--line);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 7px 0 var(--accent-d);
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px) rotate(-.3deg); }
.card h3 { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; margin: .6rem 0 .4rem; line-height: 1.1; }
.card p { color: var(--ink-soft); margin: 0; }
.card--sky { --accent: var(--sky); --accent-d: var(--sky-d); }
.card--peach { --accent: var(--peach); --accent-d: var(--peach-d); }
.card--lavender { --accent: var(--lavender); --accent-d: var(--lavender-d); }
.card--mint { --accent: var(--mint); --accent-d: var(--mint-d); }
.card--butter { --accent: var(--butter); --accent-d: var(--butter-d); }
.card--pink { --accent: var(--pink); --accent-d: #e07c9c; }
.card::before { /* pastel wash in the corner */
  content: ""; position: absolute; width: 18rem; height: 18rem; right: -7rem; top: -7rem; border-radius: 50%;
  background: var(--accent); opacity: .1; pointer-events: none;
}
.tag {
  align-self: flex-start;
  font-family: var(--f-display); font-size: .8rem; letter-spacing: .04em;
  padding: .2rem .6rem; border-radius: 999px;
  background: var(--accent); color: var(--ink-dark);
}
.card--wide { grid-column: span 2; flex-direction: row; gap: 1.5rem; align-items: center; }
.card--wide .card__text { flex: 1 1 15rem; }
.card--wide .card__shot { flex: 1.6 1 0; min-width: 0; margin: 0; }
.card__shot { margin-top: 1.2rem; border-radius: var(--r-sm); border: 2px solid var(--line); image-rendering: pixelated; width: 100%; height: auto; }
.card__shot--strip { margin-top: auto; padding-top: 0; }
.card:has(.card__shot--strip) p { margin-bottom: 1.2rem; }
.card__art { width: 62%; max-width: 220px; height: auto; align-self: center; margin: -.5rem 0 .4rem; filter: drop-shadow(0 8px 0 rgba(0,0,0,.18)); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.card:hover .card__art { transform: translateY(-6px) rotate(-3deg); }
.card--butter { grid-column: span 3; flex-direction: row; gap: 2rem; align-items: center; }
.card--butter .card__text { flex: 1 1 0; display: flex; flex-direction: column; }
.card--butter .card__shot { flex: 1.3 1 0; min-width: 0; margin: 0; }
.card__trio { display: flex; justify-content: center; align-items: flex-end; gap: .4rem; min-height: 120px; margin: 0 0 .6rem; padding-top: .5rem; }

/* ---------- pets ---------- */
.pets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pet {
  border-radius: var(--r-lg); padding: 1.4rem 1.4rem 1.5rem;
  background: var(--card); border: 2px solid var(--line);
  text-align: center;
  box-shadow: 0 7px 0 var(--accent-d);
}
.pet--mint { --accent: var(--mint); --accent-d: var(--mint-d); }
.pet--peach { --accent: var(--peach); --accent-d: var(--peach-d); }
.pet--sky { --accent: var(--sky); --accent-d: var(--sky-d); }
.pet__stage {
  display: grid; place-items: center;
  height: 210px; border-radius: var(--r);
  background:
    radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 62%),
    rgba(0,0,0,.18);
  margin-bottom: 1rem;
  cursor: pointer;
}
.pet h3 { font-size: 1.7rem; margin: 0 0 .4rem; }
.pet p { color: var(--ink-soft); margin: 0 0 1rem; }
.tricks { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; }
.trick {
  border: 0; cursor: pointer; padding: .3rem .7rem; border-radius: 999px;
  font: 500 .88rem var(--f-body); color: var(--ink-soft);
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background .15s, color .15s;
}
.trick:hover { color: var(--ink); background: rgba(255,255,255,.12); }
.trick[aria-pressed="true"] { background: var(--accent); color: var(--ink-dark); box-shadow: none; }

/* ---------- privacy ---------- */
.privacy {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center;
  border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(135deg, rgba(159,232,204,.10), rgba(169,217,255,.06));
  border: 2px solid var(--line);
}
.privacy__art { width: 100%; max-width: 340px; height: auto; margin-inline: auto; animation: bob 4s ease-in-out infinite; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.checks li { position: relative; padding-left: 2.3rem; color: var(--ink-soft); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .15rem; width: 1.5rem; height: 1.5rem; border-radius: 8px;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%231c2231' d='M1 4h1v1h1v1h1V5h1V4h1V3h1V2H6v1H5v1H4v1H3V4H2V3H1z'/%3E%3C/svg%3E") center / 70% no-repeat;
  box-shadow: 0 3px 0 var(--mint-d);
}
.checks b { color: var(--ink); font-weight: 600; }

/* ---------- download ---------- */
.download {
  position: relative; text-align: center;
  border-radius: var(--r-lg); padding: clamp(3.5rem, 7vw, 5rem) 1.5rem clamp(2.5rem, 5vw, 3.5rem);
  background:
    radial-gradient(30rem 18rem at 50% 0%, rgba(255,231,154,.16), transparent 70%),
    var(--card);
  border: 2px solid var(--line);
  box-shadow: 0 10px 0 #1a2030;
}
.download .section__sub { margin-inline: auto; max-width: 30rem; }
.download__pet { position: absolute; top: calc(-32px * 4 + 34px); left: 50%; translate: -50% 0; }
.dl-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }
.download .fine { max-width: 32rem; margin: 1.6rem auto 0; }

/* ---------- footer ---------- */
.footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .98rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer__brand { display: flex; align-items: center; gap: .7rem; }
.footer__brand p { margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.footer__links a { color: var(--ink-soft); }
.footer__links a:hover { color: var(--butter); }

/* ---------- entrance ---------- */
.reveal { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; translate: 0 0; }
.hero__copy > * { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.hero__copy > :nth-child(2) { animation-delay: .07s; }
.hero__copy > :nth-child(3) { animation-delay: .14s; }
.hero__copy > :nth-child(4) { animation-delay: .21s; }
.hero__copy > :nth-child(5) { animation-delay: .28s; }
.hero__art { animation: pop .8s .2s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes rise { from { opacity: 0; translate: 0 16px; } }
@keyframes pop { from { opacity: 0; scale: .92; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 560px; width: 100%; margin: 1rem auto 0; }
  .toy { grid-template-columns: 1fr; }
  .toy__controls { border-left: 0; border-top: 2px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
  .ctl--row, .toy__controls > fieldset { grid-column: 1 / -1; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card--wide { grid-column: span 2; }
  .card--butter { grid-column: span 2; }
  .pets { grid-template-columns: 1fr 1fr; }
  .pets .pet:last-child { grid-column: span 2; max-width: 50%; justify-self: center; width: 100%; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .gifs { grid-template-columns: 1fr; }
  .window--lavender { margin-top: 0; }
  .bento { grid-template-columns: 1fr; }
  .card--wide, .card--butter, .card--pink { grid-column: auto; display: flex; flex-direction: column; align-items: stretch; }
  .gifs .window--lavender { margin-top: 0; }
  .card--butter .card__shot, .card--wide .card__shot { flex: none; margin-top: 1.2rem; max-height: none; }
  .pets { grid-template-columns: 1fr; }
  .pets .pet:last-child { grid-column: auto; max-width: none; }
  .privacy { grid-template-columns: 1fr; text-align: left; }
  .privacy__art { max-width: 220px; }
  .toy__controls { grid-template-columns: 1fr; }
  .toy__stage { min-height: 280px; }
  .dock { height: 130px; }
  .dock__hint { display: none; }
  .bubble { font-size: .85rem; }
  .bubble--a { left: 0; }
  .bubble--b { right: 3%; top: -3%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .sprite { animation: none !important; }
  .reveal { opacity: 1; translate: none; }
  .card:hover, .card:hover .card__art { transform: none; }
}
