/* 30 Days. 30 Fixes. Your turn. The draft that follows the game's landing page (next.html).
   It loads after styles.css and adds to it: the page keeps the series' backdrops, covers and cards, and what is new
   is the Polarbear app's own look for the phone in the console and the pieces of the app further down.
   The app's colours, sizes and words come from the app itself (polarbear-app-v1, src/bear-app): tokens.css,
   b-look.css, trips.css and the screens. */

:root {
  --px: 1px;                                  /* one app pixel. Inside the phone it is a 390th of the phone's width. */
  --app-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --app-ink: #23211d;
  --app-muted: #716c63;
  --app-pine: #1e4634;
  --app-pine-ledge: #0f2a1e;
  --app-pine-ink: #f6f4ef;
  --app-lilac: #eee8f2;
  --app-lilac-ledge: #d5cbe0;
  --app-warm: #f7f0e1;
}

/* ---- pieces of the app, used in the phone and on the page ---- */
.pb-goal {
  display: flex; align-items: center; gap: calc(11 * var(--px)); min-height: calc(56 * var(--px));
  padding: calc(5 * var(--px)) calc(8 * var(--px)); border-radius: calc(19 * var(--px)); background: #fff;
  box-shadow: 0 calc(2 * var(--px)) 0 rgba(108, 88, 135, 0.12);
  font: 700 calc(15.5 * var(--px))/1.3 var(--app-font); color: var(--app-ink); text-align: left;
}
.pb-goal-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pb-goal.is-done .pb-goal-label { color: var(--app-muted); text-decoration: line-through; text-decoration-thickness: calc(2 * var(--px)); }
.pb-icon { display: grid; place-items: center; flex: none; width: calc(40 * var(--px)); height: calc(40 * var(--px)); border-radius: 50%; }
.pb-icon svg { width: calc(23 * var(--px)); height: calc(23 * var(--px)); max-width: none; }
.pb-mist { background: #dce5ea; }
.pb-amber { background: #f1e4c6; }
.pb-sage { background: #dfe9db; }
.pb-lilac { background: #e6dfec; }
.pb-clay { background: #f2dfd3; }
.pb-tick {
  display: grid; place-items: center; flex: none; width: calc(42 * var(--px)); height: calc(42 * var(--px));
  margin: 0 0 calc(3 * var(--px)); padding: 0; border: calc(2 * var(--px)) solid var(--app-lilac-ledge);
  border-radius: calc(13 * var(--px)); background: #fff; color: transparent; box-shadow: 0 calc(3 * var(--px)) 0 var(--app-lilac-ledge);
}
button.pb-tick { cursor: pointer; }
.pb-tick svg { width: calc(21 * var(--px)); height: calc(21 * var(--px)); max-width: none; }
.pb-tick[aria-pressed="true"], .pb-tick.is-on { border-color: var(--app-pine); background: var(--app-pine); color: var(--app-pine-ink); box-shadow: 0 calc(3 * var(--px)) 0 var(--app-pine-ledge); }

.pb-askbar {
  display: flex; align-items: center; gap: calc(10 * var(--px)); height: calc(56 * var(--px)); padding: 0 calc(7 * var(--px)) 0 calc(6 * var(--px));
  border: calc(1.5 * var(--px)) solid #d6cddf; border-radius: calc(28 * var(--px)); background: #fff;
  box-shadow: 0 calc(6 * var(--px)) calc(16 * var(--px)) rgba(60, 40, 90, 0.14); font: 500 calc(16 * var(--px))/1.4 var(--app-font); color: #8b867d;
}
.pb-askbar img { flex: none; width: calc(42 * var(--px)); height: calc(42 * var(--px)); border-radius: 50%; object-fit: cover; }
.pb-askbar span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-askbar i { display: grid; place-items: center; flex: none; width: calc(40 * var(--px)); height: calc(40 * var(--px)); border-radius: 50%; background: var(--app-pine); }
.pb-askbar i svg { width: calc(19 * var(--px)); height: calc(19 * var(--px)); max-width: none; }

.pb-postcard {
  position: relative; display: flex; flex-direction: column; gap: calc(7 * var(--px)); padding: calc(14 * var(--px)) calc(64 * var(--px)) calc(14 * var(--px)) calc(16 * var(--px));
  border: calc(2 * var(--px)) solid #e8dec9; border-radius: calc(12 * var(--px)); background: #fffdf6; box-shadow: 0 calc(3 * var(--px)) 0 #e2d4b4;
  font-family: var(--app-font); color: var(--app-ink); rotate: -1deg;
}
.pb-postcard-place { font: 800 calc(12 * var(--px))/1.4 var(--app-font); letter-spacing: 0.08em; text-transform: uppercase; color: #9a4b62; }
.pb-postcard-body { font: 600 calc(16.5 * var(--px))/1.45 var(--app-font); }
.pb-postcard-stamp { position: absolute; top: calc(11 * var(--px)); right: calc(11 * var(--px)); width: calc(40 * var(--px)); height: calc(47 * var(--px)); max-width: none; }

/* ---- the pitch ---- */
/* The live page draws a yellow highlighter line under the last words of its pitch (styles.css, `.lede strong`).
   This page does not: the words stay bold, and nothing is drawn under them. */
.lede strong { background: none; }

/* ---- what the waitlist gets: Milo gear ---- */
/* On the bar across the top, as a tag. The bar's words and the tag each keep to one piece, so on a phone the tag drops
   to a second line whole. */
.announce-main { white-space: nowrap; }
.announce-perk { display: inline-block; margin: 2px 0 2px 6px; padding: 3px 9px 2px; border: 3px solid var(--ink); border-radius: 999px; background: var(--yellow); white-space: nowrap; }

/* ---- the console: a line from the narrator, the phone, and the fixes ---- */
.narrate {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 8px 12px 7px;
  border-bottom: 5px solid var(--ink); background: var(--navy); font: 800 12px/1.2 var(--ui); letter-spacing: 0.06em; text-transform: uppercase;
}
.narrate-day { color: var(--yellow); white-space: nowrap; }
.narrate-now { color: var(--mint); text-align: right; }
.narrate-now.is-on { animation: pop 0.28s both; }

/* The phone: the app's first screen, drawn 390 wide and scaled to the console. */
/* `clip`, not `hidden`: a clipped box cannot be scrolled, so focus moving to a control near the phone's bottom edge never
   shifts the screen inside it. Browsers that do not know `clip` (Safari before 16) fall back to `hidden`. */
.app-stage { --u: calc(100cqw / 390); aspect-ratio: 390 / 640; overflow: hidden; overflow: clip; background: #6c5887; }
.app { --px: var(--u); position: absolute; inset: 0; overflow: hidden; overflow: clip; font-family: var(--app-font); color: var(--app-ink); -webkit-font-smoothing: antialiased; }
.app svg, .app img { max-width: none; }

.app-room { position: absolute; inset: 0 0 auto; height: calc(250 * var(--px)); overflow: hidden; overflow: clip; background: #6c5887; }
.app-scene, .app-beach img { position: absolute; left: 0; bottom: 0; width: 100%; height: calc(310 * var(--px)); }
.app-beach { position: absolute; inset: 0; animation: app-fade 0.5s ease-out; }
/* The bear. `.app-bears` is the app's `.trip-room-bear`: it holds the bear, and slides off to the right when a trip starts. */
.app-bears { position: absolute; inset: 0; pointer-events: none; }
.app.is-leaving .app-bears { transform: translateX(110%); transition: transform 0.7s ease-in; }
/* The still picture that stands in until the app's bear has drawn itself, placed where the app's bear first stands, so
   the swap does not show: half its box in from the left wall (BearSim starts a fifth of the way across and keeps half
   a bear clear of the wall), about 150 tall, feet on the rug. Checked by laying the two over each other. */
.app-bear { position: absolute; left: calc(86 * var(--px)); bottom: calc(17 * var(--px)); width: auto; height: calc(150 * var(--px)); translate: -50% 0; }
/* Where 3D cannot draw, the app shows this picture in the middle and larger (BearStrip's flat bear: 199 tall, its foot on
   the room's ground line). So does the stand-in. */
.app.is-flat .app-bear { left: 50%; bottom: calc(21 * var(--px)); height: calc(199 * var(--px)); }
/* The app's own bear draws in the app's own box, 390 by 310, at the sizes the app uses. `--k` is the phone's width over
   390 (next-preview.js keeps it), and scales the box to the phone from its bottom left corner, where the room's floor is. */
.app-bear-live { position: absolute; left: 0; bottom: 0; width: 390px; height: 310px; transform-origin: 0 100%; transform: scale(var(--k, 1)); }
/* The app's flat bear walks on the spot with a small bob while it is away (trips.css). */
.trip-bob { animation: trip-bob 0.5s ease-in-out infinite alternate; }
@keyframes trip-bob { from { transform: translateY(0); } to { transform: translateY(-4px); } }
/* The room's sparkles after a tick, over the picture of the room (ui/Scene.tsx). */
.app-sparkles { position: absolute; left: 0; bottom: 0; width: 100%; height: calc(310 * var(--px)); }
@keyframes app-fade { from { opacity: 0; } to { opacity: 1; } }

.app-chips { position: absolute; left: calc(14 * var(--px)); top: calc(12 * var(--px)); display: flex; align-items: center; gap: calc(8 * var(--px)); }
.app-day, .app-pill {
  display: inline-flex; align-items: center; height: calc(32 * var(--px)); border-radius: 999px;
  font: 800 calc(13.5 * var(--px))/1 var(--app-font); white-space: nowrap;
}
.app-day { gap: calc(5 * var(--px)); padding: 0 calc(13 * var(--px)) 0 calc(9 * var(--px)); background: #f1e4c6; box-shadow: 0 calc(3 * var(--px)) 0 #b99b4e; color: #77601f; }
.app-day svg { width: calc(15 * var(--px)); height: calc(15 * var(--px)); }
.app-pill { gap: calc(7 * var(--px)); padding: 0 calc(11 * var(--px)) 0 calc(9 * var(--px)); background: #dfe9db; box-shadow: 0 calc(3 * var(--px)) 0 #8aa583; color: #46603f; }
.app-pill svg { width: calc(17 * var(--px)); height: calc(17 * var(--px)); }
.app-pill-track { display: block; width: calc(52 * var(--px)); height: calc(8 * var(--px)); border-radius: 999px; background: rgba(70, 96, 63, 0.22); overflow: hidden; }
.app-pill-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--app-pine); transition: width 0.3s ease-out; }
.app-menu {
  position: absolute; right: calc(14 * var(--px)); top: calc(8 * var(--px)); display: grid; place-items: center;
  width: calc(42 * var(--px)); height: calc(42 * var(--px)); border-radius: 50%; background: #fff; box-shadow: 0 calc(3 * var(--px)) 0 #3f3352;
}
.app-menu svg { width: calc(21 * var(--px)); height: calc(21 * var(--px)); }

/* While the bear is away: the card under the beach, and the list moves down to make room. */
.app-trip {
  position: absolute; left: 0; right: 0; top: calc(242 * var(--px)); padding: calc(11 * var(--px)) calc(14 * var(--px)) calc(26 * var(--px));
  border-radius: calc(24 * var(--px)) calc(24 * var(--px)) 0 0; background: var(--app-lilac); animation: app-fade 0.5s ease-out;
}
.app-trip-card { display: flex; flex-direction: column; gap: calc(6 * var(--px)); padding: calc(10 * var(--px)) calc(14 * var(--px)); border-radius: calc(18 * var(--px)); background: #fff; box-shadow: 0 calc(2 * var(--px)) 0 rgba(108, 88, 135, 0.12); }
.app-trip-title { display: flex; align-items: center; gap: calc(6 * var(--px)); font: 800 calc(15.5 * var(--px))/1.4 var(--app-font); }
.app-trip-title svg { flex: none; width: calc(16 * var(--px)); height: calc(16 * var(--px)); }
.app-trip-bar { display: block; height: calc(8 * var(--px)); border-radius: 999px; background: #e6dfec; overflow: hidden; }
.app-trip-bar i { display: block; width: 2%; height: 100%; border-radius: inherit; background: var(--app-pine); }
.app-trip-when { font: 600 calc(13.5 * var(--px))/1.45 var(--app-font); color: var(--app-muted); }

.app-sheet {
  position: absolute; left: 0; right: 0; top: calc(230 * var(--px)); bottom: 0; display: flex; flex-direction: column; gap: calc(10 * var(--px));
  padding: calc(16 * var(--px)) calc(14 * var(--px)) 0; border-radius: calc(28 * var(--px)) calc(28 * var(--px)) 0 0; background: var(--app-lilac);
  overflow: hidden; overflow: clip; transition: top 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.app.is-away .app-sheet { top: calc(340 * var(--px)); }
.app-title { margin: 0 calc(4 * var(--px)); font: 800 calc(25 * var(--px))/1.2 var(--app-font); letter-spacing: -0.03em; }
.app-goals { display: flex; flex-direction: column; gap: calc(8 * var(--px)); }
.app-goals .is-new { animation: app-drop 0.4s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
@keyframes app-drop { from { opacity: 0; scale: 0.9; translate: 0 calc(-10 * var(--px)); } to { opacity: 1; scale: 1; translate: 0 0; } }
.app.is-quiet .pb-goal { background: rgba(255, 255, 255, 0.6); box-shadow: none; }

.app-ready {
  display: flex; flex-direction: column; gap: calc(11 * var(--px)); padding: calc(12 * var(--px)) calc(12 * var(--px)) calc(15 * var(--px));
  border-radius: calc(19 * var(--px)); background: #fff; box-shadow: 0 calc(2 * var(--px)) 0 rgba(108, 88, 135, 0.12); animation: app-drop 0.4s both;
}
.app-ready-head { display: flex; align-items: center; gap: calc(11 * var(--px)); font: 800 calc(16.5 * var(--px))/1.3 var(--app-font); letter-spacing: -0.01em; }
.app-ready-disc { display: grid; place-items: center; flex: none; width: calc(40 * var(--px)); height: calc(40 * var(--px)); border-radius: 50%; background: #dfe9db; color: #46603f; }
.app-ready-disc svg { width: calc(21 * var(--px)); height: calc(21 * var(--px)); }
.app-btn {
  display: flex; align-items: center; justify-content: center; width: 100%; height: calc(50 * var(--px)); margin: 0 0 calc(4 * var(--px)); padding: 0 calc(16 * var(--px));
  border: 0; border-radius: calc(16 * var(--px)); background: var(--app-pine); box-shadow: 0 calc(4 * var(--px)) 0 var(--app-pine-ledge);
  color: var(--app-pine-ink); font: 800 calc(16.5 * var(--px))/1 var(--app-font); letter-spacing: -0.01em; cursor: pointer;
}
.app-btn:active { translate: 0 calc(2 * var(--px)); box-shadow: 0 calc(2 * var(--px)) 0 var(--app-pine-ledge); }

/* The Ask Pip bar (a .pb-askbar), fixed to the bottom of the phone. */
.app-askbar { position: absolute; left: calc(14 * var(--px)); right: calc(14 * var(--px)); bottom: calc(14 * var(--px)); }

/* The app's confetti: over the top of the list for a moment after a tick. */
.app-confetti { position: absolute; left: 0; top: calc(226 * var(--px)); z-index: 2; width: 100%; height: calc(300 * var(--px)); pointer-events: none; }

/* Pip's line after a tick, over the Ask Pip bar. */
.app-toast {
  position: absolute; left: calc(14 * var(--px)); right: calc(14 * var(--px)); bottom: calc(16 * var(--px)); z-index: 3; display: flex; align-items: center; gap: calc(11 * var(--px));
  padding: calc(9 * var(--px)) calc(16 * var(--px)) calc(9 * var(--px)) calc(9 * var(--px)); border-radius: calc(21 * var(--px)); background: var(--app-ink);
  box-shadow: 0 calc(6 * var(--px)) calc(16 * var(--px)) rgba(35, 33, 29, 0.22); opacity: 0; translate: 0 calc(8 * var(--px)); pointer-events: none; transition: opacity 0.2s, translate 0.2s;
}
.app-toast.is-on { opacity: 1; translate: 0 0; }
.app-toast img { flex: none; width: calc(38 * var(--px)); height: calc(38 * var(--px)); border-radius: 50%; object-fit: cover; }
.app-toast p { font: 700 calc(15 * var(--px))/1.4 var(--app-font); color: #fcfcfb; }

/* Ask Pip: the chat slides up over the room, as it does in the app. */
.app-chat { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; background: #f7f7f7; translate: 0 102%; visibility: hidden; transition: translate 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 0.32s; }
.app-chat.is-open { translate: 0 0; visibility: visible; transition-delay: 0s; }
.app-chat-head { display: flex; align-items: center; justify-content: space-between; flex: none; height: calc(48 * var(--px)); padding: 0 calc(16 * var(--px)); border-bottom: 1px solid #e3e1dc; color: #6b6861; }
.app-chat-head svg { width: calc(21 * var(--px)); height: calc(21 * var(--px)); }
.app-chat-head b { font: 800 calc(16 * var(--px))/1 var(--app-font); color: var(--app-ink); }
.app-chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: calc(16 * var(--px)); padding: calc(18 * var(--px)) calc(16 * var(--px)); overflow: hidden; overflow: clip; }
.chat-me { align-self: flex-end; max-width: 80%; padding: calc(10 * var(--px)) calc(15 * var(--px)); border-radius: calc(20 * var(--px)); background: #e9e8e6; font: 500 calc(16 * var(--px))/1.4 var(--app-font); animation: app-drop 0.26s both; }
.chat-pip { display: flex; align-items: flex-start; gap: calc(9 * var(--px)); max-width: 94%; font: 500 calc(16 * var(--px))/1.5 var(--app-font); animation: app-drop 0.26s both; }
.chat-pip img { flex: none; width: calc(30 * var(--px)); height: calc(30 * var(--px)); border-radius: 50%; object-fit: cover; }
.chat-dots { display: inline-flex; gap: calc(5 * var(--px)); padding: calc(11 * var(--px)) 0; }
.chat-dots i { width: calc(7 * var(--px)); height: calc(7 * var(--px)); border-radius: 50%; background: #9c978e; animation: chat-dot 1s ease-in-out infinite; }
.chat-dots i:nth-child(2) { animation-delay: 0.15s; }
.chat-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-dot { 0%, 60%, 100% { opacity: 0.35; translate: 0 0; } 30% { opacity: 1; translate: 0 calc(-3 * var(--px)); } }
.app-chat-box { position: relative; flex: none; height: calc(86 * var(--px)); margin: 0 calc(14 * var(--px)); padding: calc(12 * var(--px)) calc(14 * var(--px)); border: 1px solid #d5d3ce; border-radius: calc(16 * var(--px)); background: #f0efed; font: 500 calc(16 * var(--px))/1.4 var(--app-font); color: #8b867d; }
.app-chat-box svg { position: absolute; bottom: calc(11 * var(--px)); width: calc(20 * var(--px)); height: calc(20 * var(--px)); color: #6b6861; }
.app-chat-box svg:first-of-type { left: calc(14 * var(--px)); }
.app-chat-box svg:last-of-type { right: calc(14 * var(--px)); }
.app-chat-fine { flex: none; padding: calc(9 * var(--px)) calc(16 * var(--px)) calc(14 * var(--px)); text-align: center; font: 500 calc(10.5 * var(--px))/1.45 var(--app-font); color: #7a766e; }

/* The postcard: it opens by itself when the bear is back. */
.app-scrim { position: absolute; inset: 0; z-index: 6; background: rgba(35, 33, 29, 0.48); animation: app-fade 0.25s both; }
.app-card {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; display: flex; flex-direction: column; gap: calc(15 * var(--px));
  padding: calc(11 * var(--px)) calc(18 * var(--px)) calc(22 * var(--px)); border-radius: calc(28 * var(--px)) calc(28 * var(--px)) 0 0; background: var(--app-warm); animation: app-up 0.28s ease-out both;
}
@keyframes app-up { from { translate: 0 calc(40 * var(--px)); opacity: 0; } to { translate: 0 0; opacity: 1; } }
.app-card-handle { display: block; width: calc(44 * var(--px)); height: calc(5 * var(--px)); margin: 0 auto; border-radius: 999px; background: #d9ccb0; }
.app-card-title { font: 800 calc(23 * var(--px))/1.25 var(--app-font); letter-spacing: -0.02em; }
.app-coin { display: flex; align-items: center; justify-content: center; gap: calc(8 * var(--px)); font: 800 calc(17 * var(--px))/1.3 var(--app-font); color: #8a6e24; }
.app-coin svg { width: calc(22 * var(--px)); height: calc(22 * var(--px)); }

/* The narrator's cut, in the series' caption type: "8 hours later". */
.app.is-cut::after { content: ""; position: absolute; inset: 0; z-index: 8; background: rgba(22, 17, 42, 0.6); animation: app-fade 0.2s both; }
.app-cut {
  position: absolute; left: 6%; right: 6%; top: 36%; z-index: 9; text-align: center; text-wrap: balance; pointer-events: none; opacity: 0;
  font: 400 calc(50 * var(--px))/1 var(--display); letter-spacing: 0.01em; text-transform: uppercase; color: #fff;
  -webkit-text-stroke: calc(8 * var(--px)) var(--ink); paint-order: stroke fill; text-shadow: 0 calc(4 * var(--px)) 0 var(--ink);
}
.app.is-cut .app-cut { opacity: 1; animation: pop 0.28s both; }

/* The control the preview is waiting for wears the series' yellow, so it reads as the narrator pointing and not as
   part of the app. */
.is-hint { outline: calc(3 * var(--px)) solid var(--yellow); outline-offset: calc(2 * var(--px)); animation: app-hint 1.1s ease-in-out infinite; }
@keyframes app-hint { 0%, 100% { outline-color: var(--yellow); } 50% { outline-color: rgba(255, 210, 63, 0.25); } }

.deck-note { margin-top: 12px; font: 500 13px/1.4 var(--ui); color: #3a3350; text-wrap: pretty; }

/* "Try it now": until the first pick, a coral sticker just outside the preview, with a hand-drawn arrow into it.
   Coral, so it is not read as one more yellow tag. On a phone it sits between the form and the preview, at the right,
   and the arrow curls down to the top of the preview, where it says "Pick a fix". With the console on its side it
   sits above the preview, left of "Watch the series", and the arrow swings over to the top of the fixes' column.
   The box around the preview holds both, and takes over the console's width and centring. */
.console-wrap { position: relative; width: 100%; max-width: 400px; margin: 0 auto; }
.try-now { position: relative; width: fit-content; margin: -14px 10px 34px auto; pointer-events: none; transition: opacity 0.2s; }
.try-now.is-gone { opacity: 0; }
.try-now-tag {
  display: block; padding: 6px 10px 5px; border: 3px solid var(--ink); border-radius: 10px; background: var(--coral); color: var(--ink);
  box-shadow: 0 3px 0 var(--ink); font: 400 17px/1 var(--display); letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; rotate: -3deg;
}
.try-now-arrow { position: absolute; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; animation: try-nudge 1.2s ease-in-out infinite; }
.try-now-down { left: -8px; top: calc(100% + 3px); }
.try-now-over { display: none; left: calc(100% - 4px); top: calc(50% - 4px); }
@keyframes try-nudge { 0%, 100% { translate: 0 0; } 50% { translate: 1px 4px; } }
/* The four beats of a day, ticked off as the preview plays. */
.guide { display: grid; gap: 8px; counter-reset: beat; }
.guide li { position: relative; display: grid; gap: 2px; min-height: 52px; align-content: center; padding: 8px 10px 8px 44px; border: 3px solid var(--ink); border-radius: 14px; background: #fff; opacity: 0.5; transition: opacity 0.2s, background-color 0.2s; }
.guide li::before {
  counter-increment: beat; content: counter(beat); position: absolute; left: 9px; top: 50%; display: grid; place-items: center; width: 26px; height: 26px; translate: 0 -50%;
  border: 3px solid var(--ink); border-radius: 50%; background: var(--cream); font: 800 12px/1 var(--ui);
}
.guide b { font: 800 12.5px/1.2 var(--ui); letter-spacing: 0.05em; text-transform: uppercase; }
.guide span { font: 500 12.5px/1.3 var(--ui); color: #3a3350; }
.guide li.is-now { opacity: 1; background: var(--yellow); }
.guide li.is-done { opacity: 1; background: #d8f6e7; }
.guide li.is-done::before { content: "\2713"; background: var(--mint); }

/* ---- sections ---- */
.band > .band-lede { margin: -16px auto 40px; max-width: 30em; text-align: center; font-size: clamp(17px, 2.2vw, 20px); font-weight: 700; text-wrap: balance; }
.band-after { margin: 34px auto 0; max-width: 34em; text-align: center; font-size: clamp(16px, 2vw, 18px); font-weight: 700; text-wrap: balance; }
.swap { padding-top: 132px; }

/* His fix, then yours: the episode's line on top, the app's goal underneath. */
.swaps { display: grid; gap: 18px; }
.swap-card { padding: 18px 16px 20px; border: 4px solid var(--ink); border-radius: 24px; background: var(--cream); box-shadow: 0 8px 0 var(--ink); }
.swap-card h3 { font: 400 32px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.swap-who { margin-top: 16px; font: 800 11px/1 var(--ui); letter-spacing: 0.1em; text-transform: uppercase; color: #6b6480; }
.swap-milo { margin-top: 7px; min-height: 2.7em; font: 700 15px/1.35 var(--ui); text-wrap: pretty; }
.swap-milo b { font-weight: 800; }
.swap-card .pb-goal { margin-top: 8px; border: 2px solid #e8dec9; box-shadow: 0 3px 0 #e2d4b4; }

/* The cast, then the two bears. */
.cast-label { margin-bottom: 16px; text-align: center; font: 800 13px/1 var(--ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); }
.cast-label-you { margin-top: 48px; }
.bears { display: grid; gap: 18px; max-width: 880px; margin: 0 auto; }
/* On a phone the bear stands in a band across the top of its card, as the cast do. From a tablet up it stands beside the words. */
.bear-card { display: grid; border: 4px solid var(--ink); border-radius: 24px; overflow: hidden; background: var(--cream); color: var(--ink); box-shadow: 0 8px 0 var(--ink); }
.bear-art { position: relative; display: grid; place-items: end center; height: 164px; padding-top: 16px; border-bottom: 4px solid var(--ink); overflow: hidden; }
.bear-art::before { content: ""; position: absolute; inset: -60%; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0) 0 10deg, rgba(255, 255, 255, 0.14) 10deg 20deg); }
.bear-art img { position: relative; width: auto; height: 148px; max-width: none; }
.bear-pip .bear-art { background: linear-gradient(#a590c0, #6c5887); }
.bear-yours .bear-art { background: linear-gradient(#bfe6cf, #4f8065); }
.bear-text { padding: 16px 16px 18px; }
.bear-card h3 { font: 400 24px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.bear-card p { margin-top: 8px; font-size: 14px; line-height: 1.45; color: #3a3350; text-wrap: pretty; }

/* Your bear's room: the app's own bedroom colours, under the same string of lights as Milo's wall. */
.scene-den {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.06) 0 5px, rgba(255, 255, 255, 0) 6px) 0 0 / 112px 360px,
    radial-gradient(circle, rgba(255, 255, 255, 0.06) 0 5px, rgba(255, 255, 255, 0) 6px) 56px 180px / 112px 360px,
    linear-gradient(#6c5887, #4a3b61);
}
.day { padding-top: 120px; }
/* Ava leans in where the cast's section meets this one, as the other three do at their joins (styles.css). */
.peek-ava { --h: 300px; top: -84px; right: calc(var(--h) * -0.46); }
.steps { display: grid; gap: 18px; }
/* One column that may shrink: without it a long title or the Ask Pip bar pushes a narrow card wider than its place in the row. */
.step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; align-content: start; padding: 18px 16px 20px; border: 4px solid var(--ink); border-radius: 24px; background: var(--app-warm); color: var(--ink); box-shadow: 0 8px 0 var(--ink); }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border: 3px solid var(--ink); border-radius: 50%; background: var(--yellow); font: 800 15px/1 var(--ui); }
.step h3 { font: 400 27px/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.02em; text-wrap: balance; }
.step > p { font-size: 15px; line-height: 1.45; color: #3a3350; text-wrap: pretty; }
.step-ui { margin-top: 8px; padding: 14px 12px 16px; border-radius: 18px; background: var(--app-lilac); }

/* What the waitlist gets, under the three steps: Milo and a Polarbear side by side, the promise, and the way to the form. */
.perk { display: grid; gap: 16px; justify-items: center; margin-top: 22px; padding: 22px 18px 24px; border: 4px solid var(--ink); border-radius: 24px; background: var(--cream); color: var(--ink); box-shadow: 0 8px 0 var(--ink); text-align: center; }
.perk-art { display: flex; align-items: center; gap: 8px; }
.perk-face { flex: none; width: 76px; height: 76px; border: 4px solid var(--ink); border-radius: 50%; }
.perk-bear { position: relative; display: block; overflow: hidden; background: linear-gradient(#a590c0, #6c5887); }
.perk-bear img { position: absolute; left: 50%; top: 9px; width: 62px; height: auto; max-width: none; translate: -50% 0; }
.perk-art i { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 3px solid var(--ink); border-radius: 50%; background: var(--yellow); font: 800 16px/1 var(--ui); }
.perk-tag { display: inline-block; padding: 5px 9px 4px; border: 3px solid var(--ink); border-radius: 10px; background: var(--yellow); font: 800 11px/1.2 var(--ui); letter-spacing: 0.06em; text-transform: uppercase; }
.perk h3 { margin-top: 10px; font: 400 28px/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.02em; text-wrap: balance; }
.perk-text > p:last-child { margin-top: 8px; font-size: 15px; line-height: 1.45; color: #3a3350; text-wrap: pretty; }
.perk .btn { width: 100%; max-width: 320px; }

/* "Made by Polarbear", above the series' own line. It outranks styles.css's `.foot a`, which is for links in a sentence. */
.foot .foot-made { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 8px 6px; font-weight: 700; color: #b9b3d0; text-decoration: none; }
.foot-made img { width: auto; height: 34px; }

/* ---- narrow phones ---- */
@media (max-width: 359px) {
  .try-now-tag { padding-inline: 8px; font-size: 15px; }
  .swap-card h3 { font-size: 28px; }
  .bear-text { padding: 14px 12px 16px; }
  .guide li { padding-left: 40px; }
}

/* ---- wider screens ---- */
@media (min-width: 600px) {
  .bear-card { grid-template-columns: 168px minmax(0, 1fr); }
  .bear-art { height: auto; min-height: 168px; padding: 16px 10px 0; border-right: 4px solid var(--ink); border-bottom: 0; }
  .bear-art img { width: 100%; height: auto; max-width: 100%; }
  .bear-card p { font-size: 15px; }
}
@media (min-width: 760px) {
  .peek-ava { --h: clamp(330px, 36vw, 520px); top: calc(var(--h) * -0.22); right: calc(var(--h) * -0.47); }
  .swaps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .perk { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; justify-items: start; gap: 24px; padding: 24px 28px 26px; text-align: left; }
  .perk .btn { width: auto; }
  .bears { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .bear-card { grid-template-columns: 128px minmax(0, 1fr); }
  .bear-art { min-height: 0; }
}
/* The three steps sit side by side only where each card is wide enough for the piece of the app inside it. */
@media (min-width: 940px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step { grid-template-rows: auto auto 1fr auto; }
  .swap, .day { padding-top: 128px; }
  .bear-card { grid-template-columns: 164px minmax(0, 1fr); }
}
/* Two columns: the pitch, and the console with the phone on the left and the fixes beside it. */
@media (min-width: 1080px) {
  .console-app { grid-template-columns: 320px 236px; grid-template-rows: auto 1fr; grid-template-areas: "narrate deck" "stage deck"; }
  /* The console on its side: the box sizes to it, and the sticker floats above it, its right edge over the stage so
     that the arrow lands over the top of the fixes' column (the stage is 320px wide, plus the console's 5px border). */
  .console-wrap { width: auto; max-width: none; margin: 0; }
  .try-now { position: absolute; right: calc(100% - 290px); bottom: calc(100% + 23px); margin: 0; }
  .try-now-down { display: none; }
  .try-now-over { display: block; }
  .console-app .narrate { grid-area: narrate; }
  .console-app .stage { grid-area: stage; }
  .console-app .deck { grid-area: deck; }
  .console-app .picks { flex: 0 1 auto; grid-template-rows: auto auto; }
  .console-app .pick { min-height: 132px; }
  .guide { flex: 1; align-content: start; }
}

@media (prefers-reduced-motion: reduce) {
  .trip-bob, .app-beach, .app-trip, .app-goals .is-new, .app-ready, .chat-me, .chat-pip, .chat-dots i,
  .app-scrim, .app-card, .app.is-cut::after, .app.is-cut .app-cut, .narrate-now.is-on, .is-hint, .try-now-arrow { animation: none; }
}
