/* Screenie — landing page.
   Technicolor witch cinema, kept plain: full-bleed colour bands like film stills (velvet night, curtain red, rose,
   violet, black, cream, plum), candle-gold accents, cream type. Each chapter is centred: label, headline, one line,
   the footage, then the feature's settings as callouts. Headlines and the wordmark in Gloock; body in Atkinson
   Hyperlegible. One look in both appearances: the colours are the point. */

@font-face { font-family: "BrookeHand"; src: url("fonts/BrookeHand-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --display: "Gloock", Georgia, serif;
  --font: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, monospace;
  --record: #d4271f;
  /* The pointer in the colors macOS draws it with here (System Settings → Accessibility → Pointer). */
  --pointer-fill: #941751; --pointer-outline: #ff8ad8;
  --page: 1120px;
  color-scheme: dark;
}
/* Bands: ground, type, muted type, accent, rule. */
.band { --bg: #170926; --fg: #f6efe3; --muted: #bba9c4; --accent: #edc46c; --rule: rgb(246 239 227 / 0.18); background: var(--bg); color: var(--fg); }
.band--night  { --bg: #170926; --fg: #f6efe3; --muted: #bba9c4; --accent: #edc46c; --rule: rgb(246 239 227 / 0.18); }
.band--red    { --bg: #8c1a1f; --fg: #fbefe7; --muted: #f2c3ba; --accent: #fbd57c; --rule: rgb(251 239 231 / 0.25); }
.band--rose   { --bg: #f1c5d3; --fg: #3a1236; --muted: #7b4766; --accent: #8e1e45; --rule: rgb(58 18 54 / 0.2); }
.band--violet { --bg: #4a1f66; --fg: #f8eefb; --muted: #d0b8de; --accent: #f4cb6c; --rule: rgb(248 238 251 / 0.2); }
.band--black  { --bg: #0e0a10; --fg: #f3ebe1; --muted: #aaa097; --accent: #edc46c; --rule: rgb(243 235 225 / 0.16); }
.band--cream  { --bg: #f4ead8; --fg: #2c1336; --muted: #6e5868; --accent: #9b2420; --rule: rgb(44 19 54 / 0.18); }
.band--plum   { --bg: #2a1238; --fg: #f6ecf7; --muted: #c0a8cc; --accent: #edc46c; --rule: rgb(246 236 247 / 0.18); }

/* The app's background textures, drawn as Screenie draws them (FrameRenderer.textured), one per band: Grid 48 px,
   Dots 28 px at 1.6 px, Lines at 18 px, Grain soft-lit noise. Inked white on the dark bands and black on the light
   ones, kept faint so the type stays clear. */
.band { position: relative; isolation: isolate; --tex: rgb(255 255 255 / 0.075); }
.band--rose, .band--cream { --tex: rgb(0 0 0 / 0.07); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* Some sections sit a little recessed between their neighbours: a soft shade in along the top and bottom edges. Drawn
   as gradients rather than an inset box-shadow, which Firefox redraws in tiles beside a playing video and so flickers. */
.band--rose:not(#cursor), .band--violet, .band--cream, .band--plum, #zoom, #export {
  background-image: linear-gradient(rgb(20 0 20 / 0.36), rgb(20 0 20 / 0.12) 14px, transparent 34px),
    linear-gradient(to top, rgb(20 0 20 / 0.3), rgb(20 0 20 / 0.1) 14px, transparent 34px);
}
.tex-grid::before { background-image: linear-gradient(to right, var(--tex) 1px, transparent 1px), linear-gradient(to bottom, var(--tex) 1px, transparent 1px); background-size: 48px 48px; background-position: center top; }
.tex-dots::before { background-image: radial-gradient(circle, var(--tex) 1.6px, transparent 2.1px); background-size: 28px 28px; background-position: center top; }
.tex-lines::before { background-image: repeating-linear-gradient(135deg, var(--tex) 0 1px, transparent 1px 12.73px); }
/* Glitter, as the app builds it: many tiny bright flakes, a few large ones with a soft glow, and dark facets turned
   away from the light, each from the same unrepeating kind of noise. */
.tex-glitter::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='360'%20height='360'%3E%20%3Cfilter%20id='f'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%3E%20%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.75'%20numOctaves='1'%20seed='7'%20stitchTiles='stitch'%20result='n'/%3E%20%3CfeColorMatrix%20in='n'%20type='matrix'%20values='0%200%200%200%201%200%200%200%200%201%200%200%200%200%201%2014%200%200%200%20-9.6'%20result='tiny'/%3E%20%3CfeColorMatrix%20in='n'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20-10%200%200%200%203.1'%20result='dark'/%3E%20%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.3'%20numOctaves='1'%20seed='19'%20stitchTiles='stitch'%20result='m'/%3E%20%3CfeColorMatrix%20in='m'%20type='matrix'%20values='0%200%200%200%201%200%200%200%200%200.95%200%200%200%200%200.85%2022%200%200%200%20-16.2'%20result='big'/%3E%20%3CfeGaussianBlur%20in='big'%20stdDeviation='2.4'%20result='glow'/%3E%20%3CfeMerge%3E%3CfeMergeNode%20in='dark'/%3E%3CfeMergeNode%20in='glow'/%3E%3CfeMergeNode%20in='tiny'/%3E%3CfeMergeNode%20in='big'/%3E%3C/feMerge%3E%20%3C/filter%3E%20%3Crect%20width='100%25'%20height='100%25'%20filter='url%28%23f%29'/%3E%20%3C/svg%3E"); background-size: 360px 360px; opacity: 0.7; }
.tex-grain::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.14;   /* soft light barely touches colours this dark, so the grain is laid over faintly instead */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #170926; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; background: #170926; color: #f6efe3; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, p, dl, dd, figure, ul { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; line-height: 1; text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: calc(var(--page) + 32px); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* In-page links (Take a look, Get Screenie) glide to their section, unless motion is reduced. */
html.motion { scroll-behavior: smooth; }

/* Buttons. */
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.button {
  display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 20px; border-radius: 999px;
  font: 700 0.9375rem/1 var(--font); text-decoration: none; color: var(--fg); border: 1px solid var(--rule); background: transparent;
}
.button:hover { border-color: var(--fg); }
/* Like the app's Record button: a glossy red pill, lighter at the top, with white type. */
.button--primary { padding: 0 24px; border: 0; color: #fff; font-size: 1rem; text-shadow: 0 1px 1px rgb(120 20 12 / 0.25);
  background: linear-gradient(#f9705f, #e8463a);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), inset 0 -1px 0 rgb(150 25 15 / 0.25), 0 2px 8px rgb(200 45 30 / 0.35); }
.button--primary:hover { background: linear-gradient(#fb7d6d, #ec5144); }
.button--primary:active { background: linear-gradient(#e8463a, #f06050); }

/* Title. */
.hero { padding-top: clamp(48px, 8vh, 88px); text-align: center; overflow-x: clip; }   /* the glow is wider than a phone: trimmed at the sides, not widening the page */
.hero { background-image: radial-gradient(130% 75% at 50% 18%, #230e3a, transparent 72%); }   /* a deeper, clearer violet at the top */
.hero .wrap { display: grid; justify-items: center; gap: 18px; }
.lockup { position: relative; display: inline-block; font-size: clamp(3.75rem, 1.8rem + 7.5vw, 8.5rem); margin-top: 1.6em; }
.wordmark { font-size: 1em; line-height: 0.95; }
/* An ambient glow behind the title: soft, overlapping splotches of amber, red and crimson, blurred together, drifting
   slowly against each other. */
.hero .lockup::before, .closing .lockup::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 45%; width: 8.6em; height: 4.4em; pointer-events: none;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(36% 48% at 33% 52%, rgb(232 172 80 / 0.22), transparent 72%),
    radial-gradient(32% 44% at 64% 40%, rgb(226 72 62 / 0.28), transparent 72%),
    radial-gradient(34% 46% at 55% 66%, rgb(196 40 56 / 0.3), transparent 72%),
    radial-gradient(26% 36% at 20% 32%, rgb(200 60 90 / 0.2), transparent 72%),
    radial-gradient(28% 36% at 81% 62%, rgb(245 150 80 / 0.15), transparent 72%);
  background-size: 100% 100%; filter: blur(0.32em);
}
.motion .hero .lockup::before, .motion .closing .lockup::before { animation: title-glow 16s ease-in-out infinite alternate; }
@keyframes title-glow {
  0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; opacity: 1; }
  50% { background-position: 0.25em -0.12em, -0.3em 0.15em, 0.18em 0.2em, -0.2em 0.1em, 0.15em -0.18em; opacity: 0.8; }
  100% { background-position: -0.2em 0.1em, 0.2em -0.1em, -0.25em -0.1em, 0.22em -0.12em, -0.12em 0.15em; opacity: 0.95; }
}
/* Grain over the glow, so it reads as light through film rather than a smooth gradient. */
.hero .lockup::after, .closing .lockup::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 45%; width: 8.6em; height: 4.4em; pointer-events: none;
  transform: translate(-50%, -50%); opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent); mask: radial-gradient(closest-side, #000 30%, transparent);
}
/* The tail's tip: just past the name's end, a little above its top (as in the app's start window). */
.perch, .lockup-art { position: absolute; right: -0.06em; top: -0.02em; width: 0; height: 0; }
.lockup-art .cat {
  position: absolute; height: 1.55em; width: calc(1.55em * 944 / 1454); color: var(--accent);
  right: calc(-1.55em * 944 / 1454 * 0.0773); bottom: calc(-1.55em * 0.0083); transform-origin: 92.27% 99.17%; transform: rotate(-11deg);
}
/* The title cat's entrance (main.js): hidden until it comes out of the cursor; shown anyway after a few seconds in
   case the script never runs. */
.motion .hero .lockup-art .cat:not(.genie) { visibility: hidden; animation: genie-fallback 0s 4s forwards; }
@keyframes genie-fallback { to { visibility: visible; } }
.genie { visibility: hidden; }
.dust[hidden] { display: none; }
.dust { position: fixed; left: 0; top: 0; pointer-events: none; }   /* the particles, while a drawing scatters (sized in main.js) */
/* Out of the cursor, he floats: a slow sway from the tail's tip (so he stays joined to the cursor) and a breath. */
.motion .lockup-art .cat.floating:not(.genie) { animation: genie-float 5.2s ease-in-out infinite; }
@keyframes genie-float {
  0%, 100% { transform: rotate(-11deg); }
  50% { transform: rotate(-12.6deg) scale(1.012, 1.018); }
}
.genie-strip { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.genie-strip svg { display: block; width: 100%; height: 100%; }
.lockup-art .arrow { position: absolute; left: -0.0635em; top: -0.1035em; width: 0.34em; transform-origin: 12.5% 8.7%; filter: drop-shadow(0 0.012em 0.03em rgb(0 0 0 / 0.35)); }
.tagline { font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); font-style: italic; color: var(--muted); }
.tagline .magic { font-style: inherit; color: var(--accent); }   /* the word in gold */
.note { font-size: 0.8125rem; color: var(--muted); }
.plate--hero { margin-top: clamp(36px, 5vw, 64px); width: 100%; }

.standfirst { padding-block: clamp(96px, 12vw, 168px); text-align: center; }
.standfirst p { font-family: var(--display); font-size: clamp(1.625rem, 1.05rem + 2.2vw, 3rem); line-height: 1.16; max-width: 29ch; margin-inline: auto; text-wrap: balance; }
.standfirst p + p { margin-top: 0.7em; }   /* a breath between the two sentences */

/* Chapters: centred, one band each. */
.chapter { padding-block: clamp(96px, 12vw, 168px); text-align: center; }
#appearance { padding-top: clamp(56px, 7vw, 104px); }   /* the frame brings its own space above the headline */
.chapter .wrap { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
/* Brooke's drawings as chapter marks, in the band's accent, like a book's ornaments. */
.mark { display: block; width: 68px; height: 68px; color: var(--accent); margin: 0 auto 16px; }
.faq .mark { margin-bottom: 14px; }
.mark--wide { width: 210px; height: 86px; }   /* the muzzle is about 2½ times as wide as it is tall */
.label { font-size: 0.9375rem; font-weight: 700; color: var(--accent); }
.chapter h2 { margin-top: 18px; font-size: clamp(2.75rem, 1.3rem + 5.6vw, 6.25rem); }
/* Every move: an enlarged cursor that peeks in from the left edge with the scroll, then glides across the screen
   behind the headline on its own (main.js moves it); with reduced motion it simply rests on the right. */
.glide { position: absolute; z-index: 0; top: calc(clamp(96px, 12vw, 168px) + 40px); left: 0; width: clamp(84px, 13vw, 190px); pointer-events: none; will-change: transform; }
.motion .glide { transform: translateX(-100%); }   /* off the left edge until main.js moves it */
#cursor { overflow-x: clip; }   /* while it peeks in from the left edge */
.glide svg { display: block; width: 100%; height: auto; overflow: visible; transform-origin: 10% 5%; filter: drop-shadow(0 10px 18px rgb(58 18 54 / 0.28)); }
#cursor .wrap { position: relative; z-index: 1; }
.no-motion .glide { left: calc(96% - clamp(84px, 13vw, 190px)); }
.lede { margin-top: 24px; max-width: 46ch; color: var(--muted); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); }
/* Frame it: the headline set in a wide, thin-lined frame, like a blueprint ruled by hand: each side a straight line,
   none quite square, running on past the corners. */
.blueprint { position: relative; display: grid; justify-items: center; width: min(100%, 1040px); margin-top: 20px;
  padding: clamp(56px, 7vw, 96px) clamp(40px, 11vw, 150px); }
.blueprint-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none;
  stroke: color-mix(in srgb, var(--fg) 45%, var(--bg)); stroke-width: 1px; }
.blueprint-lines line { vector-effect: non-scaling-stroke; }
/* The looks: rows of mixed shapes at one height, each picture as wide as its shape asks (flex grows by aspect ratio),
   with even gutters and the label laid on the picture. */
.looks { --gutter: clamp(8px, 1vw, 12px); margin-top: clamp(48px, 6vw, 80px); width: 100%; display: grid; gap: var(--gutter); text-align: left; }
.looks-row { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--gutter); }
.looks-row li { position: relative; flex: var(--r) 1 0; min-width: 0; }
.looks-row img { display: block; width: 100%; height: auto; aspect-ratio: var(--r); border-radius: 10px; }
.looks-row span { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 3px 9px; border-radius: 999px;
  background: rgb(20 10 26 / 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #f6efe3;
  font-size: 0.8125rem; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .looks-row span { left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 2px 7px; font-size: 0.6875rem; } }
/* A picture too narrow for its label (the tall ones, on a phone) goes without. */
.looks-row li { container-type: inline-size; }
@container (max-width: 150px) { .looks-row span { display: none; } }
/* Hover: the picture lifts a little, its shadow deepens and its label brightens; a click opens the lightbox. */
.looks-row li { cursor: zoom-in; border-radius: 10px; transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.looks-row img { box-shadow: 0 10px 24px -16px rgb(0 0 0 / 0.5); transition: box-shadow 260ms ease; }
.looks-row span { transition: background-color 260ms ease; }
.looks-row li:hover, .looks-row li:focus-visible { transform: translateY(-4px); }
.looks-row li:hover img, .looks-row li:focus-visible img { box-shadow: 0 22px 40px -18px rgb(0 0 0 / 0.65); }
.looks-row li:hover span, .looks-row li:focus-visible span { background: rgb(20 10 26 / 0.82); }
.looks-row li:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .looks-row li, .looks-row img { transition: none; } }

/* The lightbox: the look large on a darkened, softly blurred page, its caption under it, arrows to step through. */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; color: #f6efe3; }
.lightbox::backdrop { background: transparent; }
.lightbox .dim { position: absolute; inset: 0; background: rgb(14 6 22 / 0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }   /* fades on its own */
.lightbox figure { position: relative; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; max-width: calc(100vw - 120px); }
.lightbox img { transform-origin: 0 0; display: block; max-width: calc(100vw - 120px); max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 14px; box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.7); }
.lightbox figcaption { font-size: 0.9375rem; font-style: italic; color: #d9c9e2; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; cursor: pointer;
  color: #f6efe3; background: rgb(255 255 255 / 0.1); font: 400 1.5rem/1 var(--font); transition: background-color 160ms ease; }
.lightbox button:hover { background: rgb(255 255 255 / 0.2); }
/* Drawn, not the × ‹ › characters, whose glyphs sit off-centre in their boxes. */
.lightbox button svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.lightbox .close { top: 18px; right: 18px; }
.lightbox .prev { left: 18px; top: 50%; translate: 0 -50%; }
.lightbox .next { right: 18px; top: 50%; translate: 0 -50%; }
@media (max-width: 600px) {
  .lightbox figure, .lightbox img { max-width: calc(100vw - 32px); }
  .lightbox .prev, .lightbox .next { top: auto; bottom: 22px; translate: none; }
}

.blueprint h2 { margin-top: 0; }
/* A drawing in the cat's place, just after the headline's last word (Frame it, You in the picture); it takes no width, so the line stays centred. */
.trailing-mark { display: inline-block; position: relative; width: 0; height: 1em; vertical-align: baseline; }
.trailing-mark .mark { position: absolute; left: 0.16em; bottom: -0.18em; width: 0.95em; height: 1.05em; }
#camera .trailing-mark .mark { left: 0.14em; bottom: -0.12em; width: 1.4em; height: 1.4em; }   /* the sun is round: bigger to hold its own */
@media (max-width: 600px) {   /* on a phone the sun sits centred above the headline instead */
  #camera h2 { position: relative; margin-top: 1.85em; }
  #camera .trailing-mark { position: static; }
  #camera .trailing-mark .mark { left: 50%; right: auto; top: -1.75em; bottom: auto; width: 1.45em; height: 1.45em; transform: translateX(-50%); }
}

.plate { margin-top: clamp(40px, 5vw, 64px); width: 100%; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.55); }
.plate video, .plate img { width: 100%; }
.plate video { aspect-ratio: 16 / 9; object-fit: cover; }

/* Settings as callouts under the footage. */
.callouts { margin-top: clamp(32px, 4vw, 48px); width: 100%; max-width: 1180px; display: flex; flex-wrap: nowrap; justify-content: center; gap: 0 clamp(12px, 2vw, 30px); text-align: left; }   /* one row */
.callouts > div { flex: 0 1 auto; min-width: 0; }   /* each as wide as its values, so a list stays on one line */
.callouts dd { white-space: normal; }   /* options wrap to a second line rather than run into the next group */
@media (max-width: 900px) { .callouts { flex-wrap: wrap; } .callouts > div { flex-basis: 100%; } .callouts dd { white-space: normal; } }   /* phones: one under another */
.callouts > div { border-top: 1px solid var(--rule); padding: 16px 10px 18px; border-radius: 0 0 10px 10px; transition: background-color 220ms ease; }   /* square on top, so the rule stays straight */
.callouts dt { font-family: var(--display); font-size: clamp(1.125rem, 0.8rem + 0.6vw, 1.375rem); font-weight: 400; line-height: 1.1; color: var(--accent); }   /* in the headline face */
.callouts dd { margin-top: 9px; font-size: clamp(0.8125rem, 0.5rem + 0.6vw, 1rem); line-height: 1.45; letter-spacing: -0.006em; }
/* Before each option after the first, a small gold diamond (a comma for screen readers), kept with its option so a
   wrapped line starts with one. */
.callouts .sep { display: inline-block; width: 5px; height: 5px; margin: 0 0.55em 0 0.15em; vertical-align: 0.2em; background: var(--accent); transform: rotate(45deg); opacity: 0.85; }
.callouts .opt { white-space: nowrap; }   /* an option never breaks across lines */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.callouts > div.is-hovered { background: color-mix(in srgb, var(--fg) 8%, transparent); }


.shapes { margin-top: clamp(40px, 5vw, 64px); width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: var(--g); --g: clamp(12px, 2.4vw, 32px);
  --h: min(340px, calc((min(100vw, var(--page) + 32px) - 32px - 2 * var(--g)) / 3.34)); }
.shapes figure { display: grid; gap: 8px; justify-items: center; flex: none; }
.shapes video { height: var(--h); width: auto; border-radius: 12px; box-shadow: 0 24px 50px -28px rgb(0 0 0 / 0.55); }
.shapes figure:nth-child(1) video { aspect-ratio: 16 / 9; } .shapes figure:nth-child(2) video { aspect-ratio: 1; } .shapes figure:nth-child(3) video { aspect-ratio: 9 / 16; }
.shapes figcaption { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }

/* Questions. */
.faq { padding-block: clamp(96px, 12vw, 160px); }
.faq h2 { text-align: center; font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem); }
.faq-list { margin: clamp(32px, 4vw, 48px) auto 0; max-width: 760px; border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 1.125rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--accent); font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { padding-bottom: 20px; color: var(--muted); max-width: 60ch; }

.closing { padding-block: clamp(120px, 15vw, 200px); text-align: center; }
/* The close mirrors the title: the same violet, glow and grain behind the logo, just the logo and the button. */
.closing { overflow-x: clip; background-image: radial-gradient(130% 75% at 50% 40%, #230e3a, transparent 72%); }
.closing .wrap { display: grid; justify-items: center; gap: 18px; }
.closing .lockup { font-size: clamp(3rem, 1.8rem + 5vw, 6.5rem); }
.price { font-family: var(--display); font-size: 1.75rem; }

.footer { padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); text-align: center; }
/* The sign-off, in Brooke's handwriting, as on loveletter.pics. */
.made { font-family: "BrookeHand", var(--font); font-size: 1.5rem; line-height: 1.2; color: var(--fg); }
.made img { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.18em; }
.made a { color: var(--accent); text-decoration: none; }
.made a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* The cat and the pointer, above the page. With motion on the cat stands in for the drawn one on the lockups. */
.sprites { display: none; }
/* The flying cat and the pointer, in a frame the size of the window that clips them, so one past the edge (peeking in,
   or flying off) never widens the page on a phone. */
.motion .sprites { display: block; position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 20; }
.sprite-cat, .sprite-pointer { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
.sprite-cat { transform-origin: 92.27% 99.17%; transition: color 300ms ease; }
.sprite-cat svg { display: block; width: 100%; height: 100%; }
.sprite-pointer { width: 30px; z-index: 21; transform-origin: 3.75px 3.75px; filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.35)); opacity: 0; }
.sprite-pointer svg { display: block; width: 100%; height: auto; }
/* The lockups' arrows sit on top of the cat (as Screenie draws a cursor over everything), so with motion on they
   come up here too. */

@media (prefers-reduced-motion: reduce) { .callouts > div { transition: none; } .sprite-cat { transition: none; } }

/* Buying: a small card on the night, the gold cat over the price, a red Buy button and a quiet Try button. */
.buy { padding: 0; border: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; color: #f6efe3; overflow: hidden;
  --fg: #f6efe3; --rule: rgb(246 239 227 / 0.22); --accent: #edc46c; }
.buy[open] { display: grid; place-items: center; }
.buy::backdrop { background: transparent; }
.buy-dim { position: absolute; inset: 0; background: rgb(14 6 22 / 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.buy-card { position: relative; width: min(440px, calc(100vw - 32px)); box-sizing: border-box; padding: 34px 32px 26px; border-radius: 22px; text-align: center;
  background: radial-gradient(80% 60% at 50% 0%, rgb(196 46 64 / 0.22), transparent 70%), #1d0b31; border: 1px solid rgb(255 255 255 / 0.09);
  box-shadow: 0 40px 90px -30px rgb(0 0 0 / 0.75); }
.buy-cat { display: block; width: 52px; height: 80px; margin: 0 auto 14px; color: #edc46c; transform: rotate(-8deg); }
.buy h2 { margin: 0; font: 400 clamp(1.875rem, 1.5rem + 1.4vw, 2.375rem)/1.05 var(--display); }
.buy p { margin: 12px auto 0; max-width: 32ch; color: #c9b8d3; font-size: 0.9875rem; line-height: 1.5; }
.buy .buy-price { margin-top: 12px; font: 400 3.5rem/1 var(--display); color: #edc46c; }
.buy-price .currency { margin-right: 0.08em; }   /* a little air between the sign and the number */
.buy-price sup { font-size: 0.4em; line-height: 1; vertical-align: top; position: relative; top: 0.14em; margin-left: 0.04em; }   /* the cents, small and up high */
.buy-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.buy-actions .button { height: 46px; justify-content: center; }
.buy .buy-soon { display: none; margin-top: 24px; padding: 13px 0; border-radius: 999px; border: 1px dashed rgb(237 196 108 / 0.5);
  color: #edc46c; font-weight: 700; font-size: 1rem; }
.buy[data-soon] .buy-soon { display: block; }
.buy[data-soon] .buy-actions { display: none; }
.buy .buy-fine { margin-top: 16px; font-size: 0.8125rem; color: rgb(201 184 211 / 0.7); }
.buy-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 999px;
  color: #f6efe3; background: rgb(255 255 255 / 0.08); font: 400 1.25rem/1 var(--font); cursor: pointer; transition: background-color 160ms ease; }
.buy-close:hover { background: rgb(255 255 255 / 0.16); }
/* Drawn, not the × character, whose glyph sits off-centre in its box. */
.buy-close svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; fill: none; }
/* All the features (#features): the buying card's dialog, wider, scrolling, the groups in columns. */
.all-features { margin-top: 34px; text-align: center; }
.all-features .button { cursor: pointer; }
.features-card { width: min(780px, calc(100vw - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain;
  padding: 34px 36px 30px; text-align: left; }
.features-card h2 { text-align: center; }
.features-card:focus { outline: none; }   /* it takes focus to scroll with the keyboard; the ring isn't needed */
.features-grid { columns: 2 280px; column-gap: 36px; margin-top: 26px; }
.features-grid section { break-inside: avoid; padding-bottom: 22px; }
.features-grid h3 { margin: 0 0 8px; font: 400 1.25rem/1.1 var(--display); color: #edc46c; }
.features-grid ul { margin: 0; padding: 0; list-style: none; }
.features-grid li { position: relative; padding: 3px 0 3px 15px; color: #d9c9e2; font-size: 0.9375rem; line-height: 1.45; }
.features-grid li::before { content: ""; position: absolute; left: 2px; top: 0.78em; width: 5px; height: 5px; border-radius: 50%; background: rgb(237 196 108 / 0.6); }
@media (max-width: 480px) { .features-card { padding: 30px 22px 22px; } }
@media (max-width: 480px) { .buy-card { padding: 30px 22px 22px; } }

/* Thank you and Find your license (thanks.html, restore.html): one centred column on the night, the gold cat on top. */
.sheet-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 48px 16px; }
.sheet { width: min(480px, 100%); text-align: center; --rule: rgb(246 239 227 / 0.22); }
.sheet-cat { display: block; width: 52px; height: 80px; margin: 0 auto 18px; background: #edc46c; transform: rotate(-8deg);
  -webkit-mask: url("cat.svg") center / contain no-repeat; mask: url("cat.svg") center / contain no-repeat; }
.sheet h1 { font: 400 clamp(2.25rem, 1.8rem + 2vw, 3rem)/1.05 var(--display); }
.sheet-lede { margin: 14px auto 0; max-width: 34ch; color: #c9b8d3; line-height: 1.5; }
.sheet-form { display: grid; gap: 10px; margin-top: 26px; }
.sheet-form input, .sheet-key textarea { width: 100%; min-width: 0; padding: 0 18px; border-radius: 999px; font: 400 1rem var(--font); color: #f6efe3;
  background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.16); outline: none; transition: border-color 160ms ease, background-color 160ms ease; }
.sheet-form input { height: 46px; }
.sheet-form input::placeholder { color: rgb(246 239 227 / 0.4); }
.sheet-form input:focus, .sheet-key textarea:focus { border-color: #edc46c; background: rgb(255 255 255 / 0.1); }
.sheet .button { height: 46px; justify-content: center; cursor: pointer; }
.sheet .button[disabled] { opacity: 0.7; cursor: progress; }
.sheet-actions { display: grid; gap: 10px; margin-top: 26px; }
.sheet-label { display: block; margin-top: 28px; text-align: left; font-size: 0.875rem; font-weight: 700; color: #edc46c; }
.sheet-key { display: flex; gap: 8px; margin-top: 8px; align-items: stretch; }
.sheet-key textarea { padding: 10px 14px; border-radius: 12px; font: 400 0.8125rem/1.4 var(--mono); resize: none; word-break: break-all; }
.sheet-key .button { height: auto; }
.sheet-fine { margin-top: 16px; font-size: 0.8125rem; line-height: 1.5; color: rgb(201 184 211 / 0.75); }
.sheet-error { margin-top: 18px; color: #ffb4a8; line-height: 1.5; }
