/* Pipp Nudge landing page. Same brand as the app (design/tokens.css): white, black text, SHARP square borders,
   DM Sans 500 and 700. The pixel pets carry all the colour. No rounded corners, no blur, no green.
   Written for a 390 px phone first; wider screens are at the bottom of each part. */

@font-face { font-family: 'DM Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/dm-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  --page: #FFFFFF; --screen: #F0F0F2; --tile: #F5F5F7;
  --ink: #111111; --body: #3A3A40; --muted: #6A6A73; --edge: #111111;
  --n-edge: #8E8E97; --n-avatar: #F0F0F2;
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --b: 4px;            /* every border is 4 px, like the app's pixel border */
  --top: 64px;         /* height of the top bar */
  --u: 4px;            /* size of one pet square */
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px); }
body { margin: 0; background: var(--page); color: var(--body); font: 500 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video, canvas { display: block; max-width: 100%; }
a { color: var(--ink); }
strong, b { font-weight: 700; color: var(--ink); }
h1, h2 { color: var(--ink); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: 38px; line-height: 1.06; }
h2 { font-size: 30px; line-height: 1.12; margin-bottom: 20px; }
:focus-visible { outline: var(--b) solid var(--ink); outline-offset: 4px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
section { padding: 64px 0; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 30; background: var(--ink); color: #FFFFFF; padding: 14px 18px; font-weight: 700; }
.skip:focus { left: 0; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 60px; padding: 12px 22px; width: 100%;
  background: var(--ink); color: #FFFFFF; border: var(--b) solid var(--ink);
  font: 700 18px/1.2 var(--font); text-decoration: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.btn:hover { background: #FFFFFF; color: var(--ink); }
.btn:active { transform: translateY(2px); }

/* ── Pets: a still picture first; the script swaps in a tiny canvas and animates it ── */
.pet { position: relative; display: block; flex: none; width: calc(var(--u) * var(--w)); height: calc(var(--u) * var(--h)); }
.pet img, .pet canvas { width: 100%; height: 100%; image-rendering: crisp-edges; image-rendering: pixelated; }
.pet canvas { position: absolute; inset: 0; transform-origin: 50% 90%; }
.pet.live img { visibility: hidden; }
.pet.live { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* ── Top bar ─────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 20; background: var(--page); border-bottom: var(--b) solid var(--edge); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: calc(var(--top) - var(--b)); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 48px; font: 700 20px/1 var(--font); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; image-rendering: pixelated; }
.lang { display: flex; }
.lang a {
  display: flex; align-items: center; justify-content: center; width: 52px; height: 48px;
  border: var(--b) solid var(--edge); background: var(--page); color: var(--ink);
  font: 700 16px/1 var(--font); text-decoration: none;
}
.lang a + a { margin-left: calc(var(--b) * -1); }
.lang a[aria-current] { background: var(--ink); color: #FFFFFF; }

/* ── 1. Hero ─────────────────────────────────────────────── */
.hero { padding: 36px 0 56px; }
.hero-in { display: grid; gap: 36px; }
.lead { font-size: 18px; margin: 18px 0 26px; }
.small { margin-top: 14px; font-size: 16px; color: var(--muted); text-align: center; }
.stage { border: var(--b) solid var(--edge); background: var(--screen); }
.stage-body { display: flex; align-items: center; justify-content: center; height: 272px; }
.stage .pet { --u: 10px; }
.screen-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; background: var(--page); border-bottom: var(--b) solid var(--edge); }
.screen-bar i { width: 10px; height: 10px; background: #C4C4CC; }
.screen-bar b { margin-left: auto; font: 700 13px/1 var(--font); color: var(--ink); font-variant-numeric: tabular-nums; }

/* ── 2. The problem: the section turns to night as you reach it ─── */
/* The colours of this one section live in these four names, so day and night is one switch.
   Night is what you get with no script and with "reduce motion": no flashing from white to black. */
/* the night ends close under the pets, so the white section below peeks through and you can tell there is more */
.problem { padding-bottom: 16px; }
.problem {
  --bg: #0B0B10; --fg: #C8C8D2; --hd: #FFFFFF; --line: #FFFFFF; --panel: #17171E;
  position: relative; overflow: hidden;
  background: var(--bg); color: var(--fg);
  transition: background-color 0.9s linear, color 0.9s linear;
}
/* with the script on, it starts as a normal white section and the night arrives when you scroll in */
.motion .problem:not(.night-on) {
  --bg: var(--page); --fg: var(--body); --hd: var(--ink); --line: var(--edge); --panel: var(--screen);
}
.problem h2 { color: var(--hd); transition: color 0.9s linear; }
.problem p { font-size: 18px; color: var(--fg); }

/* the moon, coming in from the top right */
.moon { position: absolute; top: 28px; right: 6%; width: 54px; height: 54px; pointer-events: none;
  transform: rotate(-18deg); }
.moon svg { display: block; width: 100%; height: 100%; }
.motion .problem .moon { transition: opacity 0.9s linear, transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.motion .problem:not(.night-on) .moon { opacity: 0; transform: translate(36px, -70px) rotate(-18deg); }

.clock { position: relative; display: inline-flex; align-items: flex-end; gap: 18px; padding: 16px 20px; margin-bottom: 28px;
  border: var(--b) solid var(--line); background: var(--panel);
  transition: background-color 0.9s linear, border-color 0.9s linear; }
.clock-time { font: 700 52px/1 var(--font); color: var(--hd); letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  transition: color 0.9s linear; }
.clock .pet { --u: 5px; }

/* The Zzz drifting off the sleepy pet. Hidden on small screens (no room); on wide ones they float up and to the right. */
.zzz { display: none; }
.zzz i { display: block; width: 20px; height: 20px; color: var(--fg); opacity: 0.75; }
.zzz svg { display: block; width: 100%; height: 100%; fill: currentColor; }
@media (min-width: 900px) {
  .zzz { display: block; position: absolute; left: calc(100% + 20px); bottom: 18px; width: 220px; height: 170px; pointer-events: none; }
  .zzz i { position: absolute; left: 0; bottom: 0; opacity: 0.8; }
  .zzz i:nth-child(1) { width: 20px; height: 20px; transform: translate(6px, -6px); }
  .zzz i:nth-child(2) { width: 28px; height: 28px; transform: translate(52px, -62px); }
  .zzz i:nth-child(3) { width: 36px; height: 36px; transform: translate(104px, -118px); }
  .motion .zzz i { opacity: 0; transform: none; animation: zzz 5.4s linear infinite; }
  .motion .zzz i:nth-child(2) { animation-delay: 1.8s; }
  .motion .zzz i:nth-child(3) { animation-delay: 3.6s; }
}
@keyframes zzz {
  0%   { opacity: 0;   transform: translate(0, 0) }
  10%  { opacity: 0.9; }
  30%  { transform: translate(46px, -36px) }
  50%  { transform: translate(28px, -70px) }
  70%  { opacity: 0.9; transform: translate(86px, -104px) }
  100% { opacity: 0;   transform: translate(64px, -150px) }
}

/* The habits standing along a half circle. --rx is how wide the circle is, --ry how deep;
   each pet knows where it sits on the circle, so one line changes the whole arrangement. */
.arc { position: relative; height: 140px; margin-top: 14px; --rx: 46%; --ry: 160px; --pop: 12px; }
.arc li { position: absolute;
  left: calc(50% + var(--sin) * var(--rx)); top: calc((1 - var(--cos)) * var(--ry));
  width: 72px; margin-left: -36px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.arc .pet { --u: 3px; }
.arc .tilt { display: block; transform: rotate(var(--r, 0deg)); }
.arc span:not(.tilt) { font: 700 12px/1.2 var(--font); color: var(--hd); text-align: center; transition: color 0.9s linear; }
.arc .edge { display: none; }   /* the two at the ends need a wide screen */
/* grows when the mouse is over it (or when it has keyboard focus) */
/* the mouse is over it: it pops out along its own direction on the circle (the top one straight up,
   the ones at the sides up and out) and grows a little */
.motion .arc li:hover, .motion .arc li:focus-within {
  transform: translate(calc(var(--sin) * var(--pop, 18px)), calc(var(--cos) * var(--pop, 18px) * -1)) scale(1.22);
  z-index: 2; }

/* the night sky: stars that blink slowly, and now and then a shooting star */
.sky { position: absolute; inset: 0; pointer-events: none; }
/* on a narrow screen only the ones at the very edges are shown: the others would sit on the words */
.star { display: none; }
.star.far { display: block; }
.star { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); color: #FFFFFF; opacity: 0.55; }
.star svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.motion .problem:not(.night-on) .sky { opacity: 0; }
.motion .sky { transition: opacity 1.1s linear; }
.motion .night-on .star { animation: twinkle 4.5s steps(1, end) infinite; animation-delay: var(--d); }
@keyframes twinkle { 0%, 55% { opacity: 0.6; } 60%, 72% { opacity: 0.18; } 78% { opacity: 0.85; } }
.shoot { display: none; }
.motion .night-on .shoot {
  display: block; position: absolute; left: 86%; top: 5%; width: 90px; height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0), #FFFFFF);
  opacity: 0; animation: shoot 11s linear infinite 3s;
}
@keyframes shoot {
  0% { opacity: 0; transform: translate(0, 0) rotate(22deg); }
  2% { opacity: 0.9; }
  9% { opacity: 0; transform: translate(-320px, 150px) rotate(25deg); }
  100% { opacity: 0; transform: translate(-320px, 150px) rotate(25deg); }
}

/* ── 3. Demo ─────────────────────────────────────────────── */
.demo-in { display: grid; gap: 28px; }
.screen { border: var(--b) solid var(--edge); background: var(--screen); }
.screen-body { position: relative; min-height: 300px; padding: 12px; overflow: hidden; }
.doc { position: absolute; left: 12px; right: 12px; bottom: 0; height: 190px; padding: 18px 16px; background: var(--page); border: var(--b) solid var(--edge); border-bottom: 0; display: grid; gap: 12px; align-content: start; }
.doc i { height: 8px; background: #DCDCE2; width: 86%; transform-origin: 0 50%; }
.doc i:nth-child(1) { width: 44%; background: var(--ink); }
.doc i:nth-child(3) { width: 72%; }
.doc i:nth-child(5) { width: 64%; }
.doc i:nth-child(n+6) { width: 0; }
.ncard-wrap { position: relative; margin-left: auto; width: 100%; max-width: 368px; }
/* the pop-up card, same sizes as the app's card.css */
.ncard { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 16px; background: #FFFFFF; border: var(--b) solid var(--n-edge); color: var(--ink); }
.ncard-row { display: flex; gap: 14px; align-items: flex-start; }
.ncard-avatar { width: 96px; height: 96px; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--n-avatar); border: var(--b) solid var(--n-edge); }
.ncard-text { flex: 1; min-width: 0; padding-right: 18px; display: flex; flex-direction: column; gap: 3px; }
.ncard-kicker { font: 700 12px/1.3 var(--font); color: var(--muted); }
.ncard-title { font: 700 20px/1.15 var(--font); }
.ncard-body { font: 500 14px/1.4 var(--font); color: var(--body); }
.ncard-close { position: absolute; top: 12px; right: 12px; }
.ncard-close path { stroke: var(--muted); }
.ncard-buttons { display: flex; }
.ncard-action { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; background: var(--ink); color: #FFFFFF; border: var(--b) solid var(--n-edge); font: 700 15px/1.2 var(--font); }
.ncard-action.pressed { background: #FFFFFF; color: var(--ink); }
.demo-steps { display: grid; gap: 20px; }
.demo-steps li { display: flex; gap: 16px; align-items: flex-start; }
.demo-steps b, .how-list b { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--ink); color: #FFFFFF; font: 700 22px/1 var(--font); }
.demo-steps p { font: 700 21px/1.25 var(--font); color: var(--ink); padding-top: 9px; }

/* with animations on, the screen stays put while the three steps scroll past */
.motion .demo-stick { position: sticky; top: var(--top); z-index: 2; padding: 12px 0 16px; margin: -12px 0 0; background: var(--page); }
.motion .demo-steps { gap: 0; }
.motion .demo-steps li { min-height: 240px; opacity: 0.25; transition: opacity 0.3s; }
.motion .demo-steps li.on { opacity: 1; }
.motion .demo-steps li:last-child { min-height: 300px; }

/* ── 4. How it works ─────────────────────────────────────── */
.how-list { display: grid; gap: 16px; }
.how-list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px 16px; align-items: start; padding: 20px; border: var(--b) solid var(--edge); background: var(--page); }
.how-list p { font: 700 19px/1.3 var(--font); color: var(--ink); padding-top: 10px; }
.how-art { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; min-height: 104px; background: var(--tile); }
.chips { gap: 6px; }
.chips i { display: flex; align-items: center; justify-content: center; width: 50px; height: 48px; border: var(--b) solid var(--edge); background: var(--page); color: var(--ink); font: 700 16px/1 var(--font); font-style: normal; }
.chips i.on { background: var(--ink); color: #FFFFFF; }

/* ── 4b. Install videos (Mac left, Windows right) ────────── */
.install-note { max-width: 640px; margin-top: -6px; }
.vgrid { display: grid; gap: 28px; margin-top: 32px; }
.vcard { display: flex; flex-direction: column; gap: 12px; }
.vhead { display: flex; align-items: center; gap: 10px; font: 700 20px/1 var(--font); color: var(--ink); }
.vhead .plat { fill: var(--ink); flex: none; }
/* the picture box: sharp border, grey screen behind, the video fitted inside it */
.vbox {
  position: relative;
  aspect-ratio: 16 / 10;              /* both boxes exactly the same shape and size */
  border: var(--b) solid var(--edge);
  background: var(--ink);             /* the thin frame above and below each video */
  overflow: hidden;
  border-radius: 18px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: 50% 50%;
}
/* "contain": the whole picture is shown, never cut off; both videos are centred in the same box */
.vmedia { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--ink); }
/* grows a little while you hover it, while it plays, or while a button inside has keyboard focus */
.motion .vcard:hover .vbox,
.motion .vcard:focus-within .vbox,
.motion .vcard.playing .vbox { transform: scale(1.035); }
.motion .vcard:hover, .motion .vcard:focus-within, .motion .vcard.playing { position: relative; z-index: 2; }

/* the sound button: big, black, impossible to miss while the video is silent */
.vsound {
  position: absolute;
  top: 12px; right: 12px; left: 12px;   /* up here it never covers the words burned into the video */
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 8px 16px;
  background: var(--ink); color: #FFFFFF;
  border: var(--b) solid #FFFFFF;
  font: 700 16px/1.1 var(--font); cursor: pointer; border-radius: 10px;
  -webkit-appearance: none; appearance: none;
}
.vsound[hidden] { display: none; }
.vsound .vicon { fill: currentColor; flex: none; }
.vsound .vicon-on, .vsound.on .vicon-off { display: none; }
.vsound.on .vicon-on { display: block; }
/* once the sound is on it steps aside: small, quiet, out of the way */
.vsound.on {
  left: auto; min-height: 44px; padding: 6px 12px; gap: 8px;
  background: var(--page); color: var(--ink); border-color: var(--edge);
  font-size: 14px;
}
.vsound:hover { background: var(--page); color: var(--ink); border-color: var(--edge); }
.vsound.on:hover { background: var(--ink); color: #FFFFFF; border-color: #FFFFFF; }
/* while it is silent the button blinks slowly, in hard steps (no fading) */
.motion .vsound:not(.on) { animation: vblink 2.4s steps(1, end) infinite; }
@keyframes vblink {
  0%, 82% { background: var(--ink); color: #FFFFFF; border-color: #FFFFFF; }
  88%, 94% { background: #FFFFFF; color: var(--ink); border-color: var(--ink); }
}

/* the play / pause button in the middle */
.vplay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  width: 76px; height: 76px; padding: 0;
  background: var(--ink); color: #FFFFFF; border: var(--b) solid #FFFFFF; cursor: pointer; border-radius: 50%;
  -webkit-appearance: none; appearance: none;
}
.vplay[hidden] { display: none; }
.vplay svg { fill: currentColor; }
.vplay .vplay-off { display: none; }
.vcard.playing .vplay .vplay-on { display: none; }
.vcard.playing .vplay .vplay-off { display: block; }
.vplay:hover { background: #FFFFFF; color: var(--ink); border-color: var(--ink); }
/* while it plays the button fades back so it does not sit on top of the video */
.vcard.playing .vplay { opacity: 0; }
.vcard.playing:hover .vplay, .vcard.playing .vplay:focus-visible { opacity: 1; }

/* ── 5. What you get ─────────────────────────────────────── */
.feat-list { display: grid; gap: 18px; }
.feat-list li { display: flex; gap: 16px; align-items: center; }
.feat-art { flex: none; display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; border: var(--b) solid var(--edge); background: var(--tile); overflow: hidden; }
.feat-art .pet { --u: 3px; }

/* ── 6. Social proof ─────────────────────────────────────── */
.quotes { display: grid; gap: 84px; margin-top: 88px; }
.quote { position: relative; padding: 26px 20px 20px; border: var(--b) solid var(--edge); background: var(--page); }
.quote-pet { position: absolute; right: 20px; top: calc(var(--u) * -17 - var(--b)); }
.quote blockquote { font-size: 17px; line-height: 1.6; }
.quote figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 18px; padding-top: 16px; border-top: var(--b) solid var(--edge); }
.quote figcaption strong { font-size: 18px; }
.quote figcaption span { font-size: 16px; color: var(--muted); }

/* ── 7. Price ────────────────────────────────────────────── */
/* on a phone the desktop goes right to both edges of the screen */
.price .wrap { padding: 0; }
.price-box { border-left: 0; border-right: 0; }

/* the box IS a Mac desktop: the picture fills it, the pets fly over it, the offer sits in a window on top */
.price-box { position: relative; max-width: 1080px; margin: 0 auto; padding: 0; border: var(--b) solid var(--edge); background: var(--screen); overflow: hidden; }
.desk-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flyers { display: none; position: absolute; inset: 0; pointer-events: none; }   /* the flying pets need room: wide screens only */
.fly { position: absolute; left: var(--x); top: var(--y); will-change: transform; }
.fly .pet { --u: 3px; }
.fly-wide { display: none; }   /* only on wider screens, where there is room next to the window */
.price-card { position: relative; max-width: 420px; margin: 18% auto; border: var(--b) solid var(--edge); background: var(--page); }
.price-body { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 24px 18px 22px; }
/* the offer window is a window, not a page: everything in it is a size smaller */
.price-card h2 { margin: 6px 0 0; font-size: 30px; }
.price-card .price-amount { font-size: 72px; }
.price-card .price-art .pet { --u: 5px; }
.price-card p { font-size: 16px; }
.price-art .pet { --u: 6px; }
.price-amount { font: 700 92px/1 var(--font); color: var(--ink); letter-spacing: -0.04em; }
.price-card .btn { margin-top: 8px; }

/* ── 8. FAQ ──────────────────────────────────────────────── */
details { border: var(--b) solid var(--edge); background: var(--page); }
details + details { margin-top: calc(var(--b) * -1); }
summary { position: relative; display: flex; align-items: center; min-height: 68px; padding: 14px 60px 14px 16px; font: 700 18px/1.3 var(--font); color: var(--ink); cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before, summary::after { content: ''; position: absolute; right: 20px; top: 50%; width: 20px; height: 4px; margin-top: -2px; background: var(--ink); }
summary::after { transform: rotate(90deg); }
details[open] summary::after { display: none; }
.answer { padding: 0 16px 20px; }
.guides { display: grid; gap: 24px; margin-top: 20px; }
.guide { display: flex; flex-direction: column; gap: 12px; }
.guide video { width: 100%; height: auto; margin-top: auto; border: var(--b) solid var(--edge); background: var(--screen); }

/* the Instagram button in the footer */
/* big enough to tap with a thumb */
.foot-links .ig { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 46px; margin: -10px 0; }
.foot-links .ig svg { display: block; width: 26px; height: 26px; fill: var(--ink); }
.foot-links .ig:hover svg, .foot-links .ig:focus-visible svg { fill: var(--muted); }

/* ── The privacy page ────────────────────── */
.legal h2 { font-size: 21px; margin: 34px 0 10px; }
.legal p { font-size: 17px; margin-bottom: 14px; }
.legal-date { color: var(--muted); font-size: 15px; margin: 14px 0 0; }
.legal-back { margin-top: 40px; }
.legal-back .btn { width: auto; display: inline-flex; padding: 12px 28px; }

/* ── 9. Email signup (section parked: see src/removed/email-signup.html) ─────────────────────────────────────── */
.signup-art { margin-bottom: 20px; }
.signup-art .pet { --u: 5px; }
.signup-form { margin-top: 24px; }
.signup-form label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--ink); }
.signup-row { display: grid; gap: 12px; }
.signup-form input { width: 100%; min-height: 60px; padding: 0 14px; border: var(--b) solid var(--edge); background: var(--page); color: var(--ink); font: 500 18px/1.2 var(--font); -webkit-appearance: none; appearance: none; }

/* ── 10. Footer and the phone buy bar ────────────────────── */
.foot { border-top: var(--b) solid var(--edge); padding: 24px 0 28px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot-links a { display: flex; align-items: center; min-height: 48px; font-weight: 700; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--page); border-top: var(--b) solid var(--edge); transform: translateY(110%); transition: transform 0.25s steps(5); }
.buybar.show { transform: none; }
.buybar .btn { min-height: 52px; }

/* ── Things that move (only when the script says animations are OK) ── */
.motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.45s linear, transform 0.45s steps(5); }
.motion [data-reveal].in { opacity: 1; transform: none; }
/* left through the top of the screen: it slides back up, not down */
.motion [data-reveal].up { transform: translateY(-18px); }

/* ── Wider screens ───────────────────────────────────────── */
@media (min-width: 600px) {
  h1 { font-size: 52px; }
  h2 { font-size: 38px; }
  .btn { width: auto; display: inline-flex; padding: 12px 32px; }
  .small { text-align: left; }
  .arc { height: 200px; --rx: 36%; --ry: 274px; --pop: 15px; }
  .arc li { width: 84px; margin-left: -42px; }
  .arc .pet { --u: 4px; }
  .arc span:not(.tilt) { font-size: 14px; }
  .moon { width: 76px; height: 76px; top: 36px; }
  .how-list { grid-template-columns: repeat(3, 1fr); }
  .feat-list { grid-template-columns: 1fr 1fr; gap: 24px 36px; }
  .signup-row { grid-template-columns: 1fr auto; }
  .guides { grid-template-columns: 1fr 1fr; }
  .vgrid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .star { display: block; }
  .price .wrap { padding: 0 20px; }
  .price-box { border-left: var(--b) solid var(--edge); border-right: var(--b) solid var(--edge); }
  .flyers { display: block; }
  /* wide enough for the whole desktop to be seen: the box takes the picture's shape and the window sits in the middle of it */
  .price-box { aspect-ratio: 1600 / 1000; }
  .price-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; width: min(400px, 52%); }
  .price-body { padding: 30px 28px 26px; }
  .price-card .btn { width: 100%; }
  .fly .pet { --u: 4px; }
  .fly-wide { display: block; }
  .screen-body { padding: 16px; min-height: 340px; }
  .doc { left: 16px; right: 30%; height: 250px; }
}

@media (min-width: 900px) {
  body { font-size: 18px; }
  section { padding: 104px 0; }
  h1 { font-size: 68px; }
  h2 { font-size: 46px; margin-bottom: 28px; }
  .lead { font-size: 21px; margin: 24px 0 34px; }
  .hero { padding: 72px 0 96px; }
  .hero-in { grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
  .stage-body { height: 420px; }
  .stage .pet { --u: 14px; }
  .problem p { font-size: 21px; }
  .clock-time { font-size: 72px; }
  .clock .pet { --u: 7px; }
  /* the two pets at the ends dip below the edge of the night: there is more page under them */
  .problem { padding-bottom: 0; }
  .arc { height: 312px; --rx: 30%; --ry: 336px; --pop: 20px; }
  .arc li { width: 76px; margin-left: -38px; }
  .arc .pet { --u: 4px; }
  .arc span:not(.tilt) { font-size: 16px; }
  .arc .edge { display: flex; }
  .demo-in { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .demo-stick { grid-column: 2; grid-row: 1; }
  .demo-steps { grid-column: 1; grid-row: 1; padding-top: 24px; }
  .demo-steps p { font-size: 28px; padding-top: 5px; }
  .motion .demo-stick { top: calc(var(--top) + 8vh); margin: 0; padding: 0; }
  .motion .demo-steps { padding-top: 0; }
  .motion .demo-steps li, .motion .demo-steps li:last-child { min-height: 62vh; align-items: center; }
  .motion .demo-steps li:last-child { min-height: 50vh; }
  .how-list { gap: 24px; }
  .how-list li { padding: 28px; }
  .how-list p { font-size: 21px; }
  .how-art { min-height: 140px; }
  .how-art .pet { --u: 6px; }
  .feat-list { gap: 32px 56px; }
  .feat-list p { font-size: 19px; }
  .vgrid { gap: 44px; margin-top: 44px; }
  .vhead { font-size: 23px; }
  .feat-art { width: 104px; height: 104px; }
  .feat-art .pet { --u: 4px; }
  .quotes { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .quote { padding: 36px 32px 28px; }
  .quote blockquote { font-size: 19px; }
  .price-amount { font-size: 92px; }
  .price-art .pet { --u: 8px; }
  .signup-art .pet { --u: 6px; }
  .buybar { display: none; }
}

/* ── Calm mode: no movement at all ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vbox { transition: none; }
  .vsound { animation: none; }
  .buybar { transition: none; }
  .btn:active { transform: none; }
}

/* ── The thank-you page: the licence key ── */
.keybox { border: var(--b) solid var(--edge); background: var(--screen); padding: 18px; margin: 22px 0 26px; }
.keylabel { margin: 0 0 8px; font-weight: 700; }
.keyval {
  margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px; line-height: 1.5; word-break: break-all; color: var(--ink);
  border: var(--b) solid var(--edge); background: #fff; padding: 12px;
}
.keyval[data-ready] { cursor: pointer; }
.keyval.copied { background: var(--screen); }
.keynote { margin: 10px 0 0; font-size: 14px; }
@media (min-width: 600px) { .keyval { font-size: 17px; } }
