/*
 * Figtree, the Latin subset of the variable font (weight axis 300 to 900), self-hosted from public/fonts/.
 * Copyright 2022 The Figtree Project Authors (https://github.com/erikdkennedy/figtree).
 * Licensed under the SIL Open Font License, Version 1.1 (no reserved font name); the licence text is licenses/OFL-Figtree.txt.
 */
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Fallback faces: local Arial, resized so the swap from the system face to Figtree moves the layout as little as possible.
   The bold row is tuned to weight 800 (the question). Devices with no Arial show the system face as it is. */
@font-face {
  font-family: "Figtree Fallback";
  src: local("Arial");
  font-weight: 400;
  size-adjust: 101.52%;
  ascent-override: 93.58%;
  descent-override: 24.63%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Figtree Fallback";
  src: local("Arial Bold");
  font-weight: 600 900;
  size-adjust: 98.03%;
  ascent-override: 96.91%;
  descent-override: 25.5%;
  line-gap-override: 0%;
}

/*
 * Coloring book quiz: a simple, bold quiz (DESIGN-PLAN.md). One family (Figtree), one plum main colour, a near-white page, no dark mode.
 * Phase 2: the single-question flow. Review, sign-in, checkout, error and the export page are restyled in phase 3.
 * Every colour below is a token; the values and their WCAG 2 ratios are in DESIGN-PLAN.md section 3 (tools/contrast.php re-computes them).
 */
:root {
  color-scheme: light;

  /* colour */
  --page: #faf6fc;
  --surface: #ffffff;
  --ink: #17131a;
  --muted: #544c5c;
  --placeholder: #6e6577;
  --line: #857c8e;
  --main: #7a1f9c;
  --main-strong: #5f1579;
  --main-tint: #f1e3f7;
  --focus: #7a1f9c;
  --done: #1e7a46;
  --done-text: #14532d;
  --done-tint: #e3f4e8;
  --attention: #7a4100;
  --attention-line: #b86a00;
  --attention-tint: #ffedd1;
  --failed: #b42318;
  --failed-text: #8f1a11;
  --failed-tint: #fde8e6;
  --home-blue: #2432c8;
  --home-night: #0c0f24;
  --home-yellow: #ffd21f;
  --home-mint: #84e6b8;
  --home-pink-deep: #d4145a;
  --home-tint: #dde3ff;

  /* type scale: size, weight and line height per step */
  --display: clamp(2.25rem, 5vw, 4.25rem);
  --title: clamp(1.75rem, 3.6vw, 3rem);
  --lede: clamp(1.0625rem, 1.3vw, 1.25rem);
  --font: "Figtree", "Figtree Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --w-text: 400;
  --w-label: 600;
  --w-strong: 800;
  --question-l: 2.5rem;
  --question-l-lh: 1.1;
  --question-m: 2rem;
  --question-m-lh: 1.15;
  --question-s: 1.75rem;
  --question-s-lh: 1.15;
  --price: 1.25rem;
  --price-lh: 1.2;
  --answer: 1.125rem;
  --answer-lh: 1.3;
  --body: 1rem;
  --body-lh: 1.5;
  --small: .875rem;
  --small-lh: 1.4;
  --floor: .75rem;
  --floor-lh: 1.3;

  /* layout */
  --radius: 10px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line) var(--page); }
/* The sticky footer (up to about 7.5rem with a two-line hint) and the consent banner cover the bottom of the screen: keep a focused control above them (WCAG 2.4.11). */
html { scroll-padding-bottom: calc(8rem + var(--banner-h, 0px)); }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--body);
  font-weight: var(--w-text);
  line-height: var(--body-lh);
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
/* Browser surfaces from the palette: white on plum for a selection (8.39), a plum caret and checkbox accent, a plum-grey scrollbar. */
::selection { background: var(--main); color: var(--surface); }
textarea, input { caret-color: var(--main); accent-color: var(--main); }
h1, h2, p, dl, dd, ol, ul, fieldset { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* The ring is plum on the plum primary button too: the 2px offset gap (page colour) is what shows it. Do not remove the offset. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1:focus { outline: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 10;
  background: var(--surface); color: var(--main); padding: .5rem .75rem; border-radius: var(--radius);
}
.skip:focus { top: .5rem; }

/* ---------- icons: authored 24px SVGs, one 2px stroke, painted with currentColor through a mask ---------- */
:root {
  --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --icon-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v9'/%3E%3Cpath d='M12 19v.01'/%3E%3C/svg%3E");
}

/* ---------- the column ---------- */
.desk { width: 100%; max-width: 36rem; margin: 0 auto; padding: 1.5rem var(--gutter) 3rem; display: flex; flex-direction: column; gap: 1rem; }
.head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem;
  padding-bottom: .75rem; border-bottom: 1px solid var(--line);
}
.brand { font-weight: var(--w-strong); font-size: var(--answer); line-height: var(--answer-lh); overflow-wrap: anywhere; }
.head-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--main); font-weight: var(--w-label); text-decoration: underline; }
.head-link:hover, .link:hover { color: var(--main-strong); }
.work { display: flex; flex-direction: column; gap: 1rem; width: 100%; }
.work:focus { outline: none; }

/* Back on the left, "Step x of y" on the right. */
.stepline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; }
.step-status { margin-left: auto; font-weight: var(--w-label); font-size: var(--small); line-height: var(--small-lh); color: var(--muted); }
.back {
  display: inline-flex; align-items: center; gap: .25rem; min-width: 2.75rem; min-height: 2.75rem; padding: 0 .75rem 0 .25rem;
  background: none; border: 0; border-radius: var(--radius); color: var(--ink); font-weight: var(--w-label); cursor: pointer;
}
.back::before {
  content: ""; width: 1.5rem; height: 1.5rem; background: currentColor;
  -webkit-mask: var(--icon-chevron) center / contain no-repeat; mask: var(--icon-chevron) center / contain no-repeat;
}
.back:hover { background: var(--main-tint); }

/* ---------- one question ---------- */
.sheet { display: flex; flex-direction: column; gap: 1rem; }
.sheet-kicker { font-size: var(--small); line-height: var(--small-lh); font-weight: var(--w-label); color: var(--muted); }
.sheet h1 {
  font-size: var(--question-m); line-height: var(--question-m-lh); font-weight: var(--w-strong);
  letter-spacing: -.02em; text-wrap: balance; overflow-wrap: anywhere;
}
/* The preset receipt: one quiet line under the heading. Empty it takes no room but stays in the page, so the polite live region announces what is written. */
.receipt { margin-top: -.5rem; color: var(--muted); font-size: var(--small); line-height: var(--small-lh); }
.receipt:empty { position: absolute; margin: 0; }
.receipt-change { display: inline; background: none; border: 0; padding: .25rem; margin: -.25rem; font: inherit; color: var(--main); text-decoration: underline; cursor: pointer; }
.receipt-change:hover { color: var(--main-strong); }
.minor { font-size: var(--body); font-weight: var(--w-label); margin-top: .5rem; }
.field-label { font-weight: var(--w-label); display: block; }
.field-help { color: var(--muted); }
.field-count { color: var(--muted); font-size: var(--small); line-height: var(--small-lh); text-align: right; }
.hint { color: var(--muted); font-size: var(--small); line-height: var(--small-lh); }
.hint:empty { display: none; }
textarea, input[type="email"], input[type="password"] {
  width: 100%; border: 2px solid var(--line); border-radius: var(--radius); padding: .625rem .75rem; background: var(--surface);
}
/* The field and the Continue button under it must stay above an open phone keyboard. */
textarea { resize: vertical; min-height: 6.5rem; scroll-margin-top: 1rem; scroll-margin-bottom: 11rem; }
.refusal {
  color: var(--failed-text); background: var(--failed-tint); border: 2px solid var(--failed); border-radius: var(--radius);
  padding: .5rem .75rem; font-weight: var(--w-label);
  display: flex; align-items: flex-start; gap: .5rem;
}
/* The exclamation icon: red is never the only cue. One 2px stroke, painted with currentColor like the other icons. */
.refusal::before {
  content: ""; flex: none; width: 1.5rem; height: 1.5rem; background: currentColor;
  -webkit-mask: var(--icon-alert) center / contain no-repeat; mask: var(--icon-alert) center / contain no-repeat;
}

.examples { display: flex; flex-direction: column; gap: .5rem; }
.example {
  width: 100%; min-height: 2.75rem; text-align: left; background: var(--surface); border: 2px dashed var(--line); border-radius: var(--radius);
  padding: .5rem .75rem; cursor: pointer;
}
.example:hover { background: var(--main-tint); border-color: var(--main); }

/* ---------- answer buttons ---------- */
.answers { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.answers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.answer {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-content: start; align-items: center; text-align: left;
  width: 100%; min-height: 3.75rem; padding: .75rem .875rem; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 2px solid var(--line); border-radius: var(--radius);
}
.answer-label { grid-column: 1; font-weight: var(--w-label); font-size: var(--answer); line-height: var(--answer-lh); overflow-wrap: anywhere; }
.answer-note, .answer-na { grid-column: 1; color: var(--muted); font-size: var(--small); line-height: var(--small-lh); overflow-wrap: anywhere; }
.answer-aside { grid-column: 2; margin-left: .75rem; grid-row: 1 / span 3; display: flex; flex-direction: column; align-items: flex-end; gap: .125rem; }
.answer-price { font-size: var(--price); line-height: var(--price-lh); font-weight: var(--w-strong); }
.answer-credits { color: var(--muted); font-size: var(--small); line-height: var(--small-lh); font-weight: var(--w-label); }
.answer-included { display: inline-block; align-self: flex-start; padding: .125rem .75rem; background: var(--home-yellow); color: var(--home-night); border-radius: 999px; font-size: var(--small); line-height: var(--small-lh); font-weight: 900; }
.pages-banner { padding: .75rem 1rem; background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: .75rem; font-size: var(--answer); line-height: var(--answer-lh); font-weight: var(--w-label); }
.answer:hover { background: var(--main-tint); border-color: var(--main); }
.answer:active { transform: translateY(1px); }
.answer[aria-pressed="true"] { border-color: var(--main); background: var(--main-tint); }
.answer[aria-pressed="true"]::after {
  content: ""; grid-column: 3; grid-row: 1 / span 3; margin-left: .75rem; width: 1.5rem; height: 1.5rem; background: var(--main);
  -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat;
}
/* Not available with the chosen style: still focusable, so it can be read; a tap does nothing. */
.answer[aria-disabled="true"], .answer[aria-disabled="true"]:hover {
  border-style: dashed; border-color: var(--line); background: var(--surface); cursor: not-allowed; transform: none;
}
.answer[aria-disabled="true"] .answer-label { color: var(--muted); }
.answer-na { font-weight: var(--w-label); }
/* Style cards: the sample page on top, label and note under it, the check mark beside the label. */
.answer-pic { grid-column: 1 / -1; display: block; width: 100%; height: auto; margin-bottom: .5rem; border: 2px solid var(--ink); border-radius: 6px; }
.answer:has(.answer-pic)[aria-pressed="true"]::after { grid-row: 2 / span 2; }
/* A drawing of the page, not a control: a sheet with a folded top-right corner, ink outline (never plum), white fill, grey flap.
   Same height for both; the width comes from the real trim (8.5 x 11 portrait, 8.5 x 8.5 square). The check mark is the only selection mark. */
.shape {
  --fold: .75rem;
  position: relative; display: block; width: 2.75rem; background: var(--ink);
  clip-path: polygon(0 0, calc(100% - var(--fold)) 0, 100% var(--fold), 100% 100%, 0 100%);
}
.shape::before {
  content: ""; position: absolute; inset: 2px; background-color: var(--surface);
  background-image: linear-gradient(to bottom left, transparent 50%, var(--line) 50%);
  background-repeat: no-repeat; background-position: top right; background-size: calc(var(--fold) - 1.2px) calc(var(--fold) - 1.2px);
  clip-path: polygon(0 0, calc(100% - var(--fold) + 1.2px) 0, 100% calc(var(--fold) - 1.2px), 100% 100%, 0 100%);
}
.shape { flex: none; align-self: flex-start; }
.shape-portrait { height: 3.55rem; }
.shape-square { height: 2.75rem; }

/* ---------- review ---------- */
.echo { font-size: var(--answer); line-height: var(--answer-lh); overflow-wrap: anywhere; }
.summary { display: flex; flex-direction: column; }
.summary > div {
  display: grid; grid-template-columns: 6rem minmax(0, 1fr) auto; gap: .75rem; align-items: baseline;
  padding: 0 0 .5rem;
}
.summary dt { font-weight: var(--w-label); color: var(--muted); }
.summary dd { overflow-wrap: anywhere; }
.summary-price dd:first-of-type { font-size: var(--price); line-height: var(--price-lh); font-weight: var(--w-strong); }
.link {
  background: none; border: 0; padding: .625rem .5rem; min-height: 2.75rem; color: var(--main); text-decoration: underline; cursor: pointer;
}
/* The pay choices on the review: what the book costs in credits, the balance, and the ways to pay. Same look as the answer buttons. */
.pay { display: flex; flex-direction: column; gap: .75rem; }
.pay[hidden] { display: none; }
.pay-lead { font-size: var(--answer); line-height: var(--answer-lh); }
.pay-choices { display: flex; flex-direction: column; gap: .75rem; }
.answer-tag { grid-column: 1; color: var(--main-strong); font-size: var(--small); line-height: var(--small-lh); font-weight: var(--w-strong); }
.pay-alt { align-self: flex-start; }
.pay-featured { border-color: var(--ink); } /* Not the selected look (plum border and tint): the tag does the highlighting. */
/* The review's one sample page: the chosen style's real sample, flat, 2px ink outline, caption under it. */
.sample { margin: 0; max-width: 14rem; }
.sample img { display: block; width: 100%; height: auto; background: var(--surface); border: 2px solid var(--ink); border-radius: 6px; }
.sample figcaption { margin-top: .5rem; font-size: var(--small); line-height: var(--small-lh); color: var(--muted); }

/* Phones: the value gets the full row under its label, so a long idea is not squeezed into a sliver. */
@media (max-width: 30rem) {
  .summary > div { grid-template-columns: minmax(0, 1fr) auto; gap: 0 .75rem; }
  .summary dt { grid-column: 1; grid-row: 1; align-self: center; }
  .summary dd:nth-of-type(1) { grid-column: 1 / -1; grid-row: 2; }
  .summary dd:nth-of-type(2) { grid-column: 2; grid-row: 1; }
}

/* ---------- sign in ---------- */
.signin-form { display: flex; flex-direction: column; gap: .5rem; }
.signin-form .btn { margin-top: .5rem; }
.or { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: var(--small); line-height: var(--small-lh); }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* The Google button: Google's dark theme (fill #131314, 1px stroke #8e918f, text #e3e3e3, four-colour G), as a sticker. Shown only when Google is configured. */
.google-form { margin: 0; }
.terms-note { margin: .5rem 0 0; font-size: var(--small); line-height: var(--small-lh); }
.terms-note a { font-weight: 700; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: .75rem; width: 100%; min-height: 3rem; padding: .625rem 1.25rem;
  background: #131314; color: #e3e3e3; border: 1px solid #8e918f; border-radius: 999px; font: inherit; font-weight: 500; font-size: 1rem; cursor: pointer;
  box-shadow: 0 6px 10px -6px rgba(5, 8, 50, .5);
}
.btn-google:hover { background: #2a2a2c; }
/* Two-tone ring: white inside (shows on the blue sheet), dark outside (shows on the white card). */
html body .google-form .btn-google:focus-visible { outline: 3px solid #131314; outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
.google-mark { flex: none; }
.status-card .btn-google, .status-card .btn-google:hover { background: #131314; color: #e3e3e3; border: 1px solid #8e918f; align-self: stretch; box-shadow: 0 6px 10px -6px rgba(5, 8, 50, .5); }
.status-card .btn-google:hover { background: #2a2a2c; }
.signin-error { margin: 0; }
.signin-form .field-help { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  min-height: 2.75rem; padding: .625rem 1.25rem; border-radius: var(--radius); font-weight: var(--w-strong);
  font-size: var(--answer); line-height: var(--answer-lh); cursor: pointer; border: 2px solid var(--main);
}
.btn-primary { background: var(--main); color: var(--surface); }
.btn-primary:hover, .btn-primary:active { background: var(--main-strong); border-color: var(--main-strong); }
.btn-primary[aria-disabled="true"] { background: var(--surface); color: var(--muted); border: 2px dashed var(--line); cursor: not-allowed; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--main-tint); }
.btn-wide { width: 100%; min-height: 3.25rem; }

/* The primary action (Continue on the idea screen, Pay on the review) sits in a sticky footer at the bottom of the viewport, inside the column.
   Page-colour background so the content scrolls under it cleanly; no shadow or blur. --banner-h is set by app.js to the consent banner's height
   (0 when there is none), so the footer rides above the banner while it shows. The hint (the reason Continue is not ready) is inside the footer. */
.foot {
  position: sticky; bottom: var(--banner-h, 0px); z-index: 5; margin-top: auto;
  display: flex; flex-direction: column; gap: .5rem;
  padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom, 0px)); background: var(--page);
}
/* The footer is the last thing on these screens: no extra page padding under it except the banner, so it rests flush at the end of the scroll. */
.desk:has(.sheet:not([hidden]) .foot) { padding-bottom: var(--banner-h, 0px); min-height: 100vh; min-height: 100dvh; }
/* On a short screen the footer still rests at the bottom of the viewport: the visible sheet takes the free height and the footer sits at its end. */
.work:has(.sheet:not([hidden]) .foot) { flex: 1 1 auto; }
.sheet:not([hidden]):has(.foot) { flex: 1 1 auto; }

/* ---------- export and downloads (restyled in phase 3) ---------- */
.file-list { display: flex; flex-direction: column; gap: .5rem; }
.file-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .5rem 1rem; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: .625rem .75rem;
}
.file-name { font-weight: var(--w-label); overflow-wrap: anywhere; }
.file-size { color: var(--muted); }
.file-row .btn { text-decoration: none; display: inline-flex; align-items: center; }
.facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; padding: .375rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: var(--w-label); }
@media (max-width: 47.99rem) {
  /* Every row the same: the name on its own line, then the size at the left and the Download pill at the right. */
  .file-row { grid-template-columns: minmax(0, 1fr) auto; }
  .file-name { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: no-preference) {
  .back, .answer, .btn, .example { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
}

/* ---------- wide screens: more air, the question grows, the twelve styles sit in two columns ---------- */
@media (min-width: 48rem) {
  .desk { padding-top: 4rem; }
  .sheet h1 { font-size: var(--question-l); line-height: var(--question-l-lh); }
  .answer { min-height: 4rem; }
  .answers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* 320px phones: the smallest question size. */
@media (max-width: 22.5rem) {
  .sheet h1 { font-size: var(--question-s); line-height: var(--question-s-lh); }
}

/* ---------- homepage (app/home.php): the sticker sheet. Saturated backing sheets (blue, yellow, mint, night) own whole regions; pages are white-rimmed
   die-cut stickers with a soft offset shadow and a mild tilt. No dashed lines anywhere: the rim and the shadow say sticker, the colour change says new sheet.
   Hot pink is only the primary action (white text on deep pink); prices are yellow tags (near-black on sunflower, 13.06 to 1; owner decision 2026-11-21). ---------- */
.brand-link { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; }
.brand-link:hover { color: var(--main-strong); }
a.btn-link { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }

body.lp { --lp-pad: clamp(1rem, 5vw, 4.5rem); --lp-ring: var(--home-night); background: var(--home-night); color: var(--home-night); }
html:has(body.lp) { scrollbar-color: var(--home-yellow) var(--home-night); }
body.lp { --lp-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4.5v15'/%3E%3Cpath d='M6.5 14l5.5 5.5 5.5-5.5'/%3E%3C/svg%3E"); }
body.lp ::selection { background: var(--home-yellow); color: var(--home-night); }
body.lp :focus-visible { outline: 3px solid var(--lp-ring); outline-offset: 3px; }
.lp-skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 60; padding: .75rem 1rem; background: var(--home-yellow); color: var(--home-night); border: 3px solid var(--home-night); border-radius: 999px; font-weight: 900; }
.lp-skip:focus { top: 1rem; }

/* backing sheets */
.lp-band { position: relative; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.lp-band[id], .lp-row-title[id] { scroll-margin-top: 1rem; }
.lp-wrap { max-width: 76rem; margin-inline: auto; padding-inline: var(--lp-pad); }
.lp-field, .lp-blue { background: var(--home-blue); color: #fff; --lp-ring: #fff; --lp-soft: var(--home-tint); }
.lp-yellow { background: var(--home-yellow); color: var(--home-night); --lp-ring: var(--home-night); --lp-soft: var(--home-night); }
.lp-mint { background: var(--home-mint); color: var(--home-night); --lp-ring: var(--home-night); --lp-soft: var(--home-night); }
.lp-night { background: var(--home-night); color: #fff; --lp-ring: #fff; --lp-soft: var(--home-tint); }
.lp h2 { font-size: var(--title); line-height: 1.02; font-weight: 900; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: anywhere; }
.lp-lede { font-size: var(--lede); line-height: 1.55; max-width: 34rem; text-wrap: pretty; }
.lp-intro { color: var(--lp-soft); margin-top: 1rem; }
.lp-cta-row { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.lp-more { display: inline-flex; align-items: center; gap: .375rem; min-height: 2.75rem; color: inherit; font-weight: 900; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--home-yellow); text-underline-offset: .25em; }
.lp-more:hover { text-decoration-color: currentColor; }
.lp-more span { display: inline-block; width: 1.25rem; height: 1.25rem; flex: none; background: currentColor; -webkit-mask: var(--lp-arrow) center / contain no-repeat; mask: var(--lp-arrow) center / contain no-repeat; }
.lp p, .lp li, .lp figcaption { text-wrap: pretty; }

/* stickers: a thick white rim, a soft offset shadow, a mild tilt */
.lp-st, .lp-grid figure, .lp-styles li, .lp-card, .lp-tier, .lp-faq details { background: #fff; color: var(--home-night); --lp-ring: var(--home-night); box-shadow: 0 14px 22px -10px rgba(5, 8, 50, .55), 0 3px 6px rgba(5, 8, 50, .25); }
/* One layer: the picture sits inside the sticker's white rim (--rim) with the corner radius one rim smaller than the sticker's (--st-r), so the two curves are concentric. No outline, no transform and no shadow on the picture: the sticker's own tilt carries rim and picture together. */
.lp-st img, .lp-grid img, .lp-styles img { background: var(--home-tint); border-radius: calc(var(--st-r, 1rem) - var(--rim, .5rem)); }

/* buttons: pill stickers. Pink is the primary action only: white on deep pink, 5.19 to 1. */
body.lp .btn { border-radius: 999px; border: 3px solid #fff; font-weight: 900; letter-spacing: -.01em; box-shadow: 0 10px 16px -8px rgba(5, 8, 50, .6), 0 2px 4px rgba(5, 8, 50, .3); }
body.lp .btn-primary { background: var(--home-pink-deep); color: #fff; }
body.lp .btn-primary:hover, body.lp .btn-primary:active { background: var(--home-pink-deep); color: #fff; border-color: #fff; }
body.lp .btn-secondary { background: var(--home-night); color: #fff; border-color: #fff; }
body.lp .btn-secondary:hover { background: var(--home-blue); }
.lp-btn-lg { min-height: 3.5rem; padding-inline: 1.75rem; font-size: 1.25rem; }
@media (prefers-reduced-motion: no-preference) {
  body.lp .btn { transition: transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s cubic-bezier(.16, 1, .3, 1), background-color .15s ease; }
  body.lp .btn:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 16px 22px -10px rgba(5, 8, 50, .6), 0 3px 6px rgba(5, 8, 50, .3); }
  body.lp .btn:active { transform: translateY(0) scale(.98); }
}

/* printed header strip */
.lp-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.lp-nav.lp-wrap { padding-inline: 0; width: min(100% - 2 * var(--lp-pad), 81rem); }
body.lp .lp-nav .brand-link { color: #fff; font-weight: 900; font-size: 1.375rem; letter-spacing: -.03em; gap: .625rem; }
.lp-nav .brand-link::before, .lp-foot .brand-link::before { content: ""; width: 1.625rem; height: 1.625rem; flex: none; background: var(--home-yellow); border: 3px solid #fff; border-radius: .5rem; transform: rotate(-9deg); box-shadow: 0 4px 8px -2px rgba(5, 8, 50, .5); }
.lp-links { display: none; gap: .5rem; }
.lp-links a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: .875rem; border-radius: 999px; color: #fff; font-weight: 800; font-size: var(--answer); text-decoration: none; }
.lp-links a:hover { background: #fff; color: var(--home-blue); }
.lp-nav .btn { min-height: 2.75rem; padding-inline: 1.125rem; }
.lp-nav-end { display: flex; align-items: center; gap: .25rem; }
.lp-account { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: .75rem; border-radius: 999px; color: #fff; font-weight: 800; font-size: var(--answer); text-decoration: none; white-space: nowrap; }
.lp-account:hover { background: #fff; color: var(--home-blue); }
.lp-signout { display: inline-flex; }
button.lp-account { border: 0; background: none; font-family: inherit; cursor: pointer; }
button.lp-account:hover { background: #fff; color: var(--home-blue); }
body.lp .lp-nav .brand-link { white-space: nowrap; }
/* Phones: the brand and the account link fill the bar; the hero's own "Make my coloring book" button sits right below, so the bar's copy steps aside. */
@media (max-width: 30rem) {
  .lp-nav-end .btn { display: none; }
  .lp-account { padding-inline: .5rem; }
  /* Signed in there are two links: let the bar wrap rather than run off the screen. */
  .lp-nav { flex-wrap: wrap; gap: 0 .5rem; }
  .lp-nav-end { margin-left: auto; }
  body.lp .lp-nav .brand-link { font-size: 1.0625rem; gap: .5rem; }
  .lp-nav .brand-link::before { width: 1.25rem; height: 1.25rem; border-width: 2px; }
}

/* the stage label: a small ink tab on a sticker's corner, in the gap above it (hero stickers, step, size and print-file stickers) */
.lp-st figcaption, .lp-grid.lp-covers figcaption, .lp-tab, .lp-steps .lp-card::before { position: absolute; margin: 0; left: .75rem; top: -.8rem; z-index: 2; max-width: none; white-space: nowrap; padding: .25rem .625rem; background: var(--home-night); color: #fff; border: 2px solid #fff; border-radius: 999px; font-size: var(--floor); line-height: var(--floor-lh); font-weight: 800; letter-spacing: 0; transform: rotate(-3deg); box-shadow: 0 4px 8px -3px rgba(5, 8, 50, .5); }

/* hero: the cover and the book's pages on one sheet: a 4 by 3 grid at every width, the cover one big block (three columns, three rows) and the three pages one column beside it. */
.lp-hero { padding-top: clamp(1.25rem, 3vw, 2rem); overflow: hidden; }
.lp-hero .lp-wrap { max-width: 90rem; }
.lp-hero-grid { display: grid; gap: 2.5rem; }
.lp-hero h1 { font-size: clamp(2.75rem, 5vw, 4.75rem); line-height: .95; font-weight: 900; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: anywhere; }
.lp-mark { display: inline-block; padding: .02em .18em .06em; background: var(--home-yellow); color: var(--home-night); border-radius: .2em; transform: rotate(-1.5deg); box-shadow: 0 8px 12px -6px rgba(5, 8, 50, .55); }
.lp-hero-text { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
.lp-hero-copy { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.lp-hero-copy .lp-cta-row { margin-top: 0; }
.lp-micro { font-size: var(--small); line-height: var(--small-lh); color: var(--lp-soft); }
.lp-stage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 1rem; width: 100%; max-width: 32rem; margin-inline: auto; padding-top: .75rem; }
.lp-st { --rim: .375rem; --st-r: 1rem; position: relative; display: block; margin: 0; padding: var(--rim); border-radius: var(--st-r); min-width: 0; transform: rotate(var(--r, 0deg)); }
.lp-st img { display: block; width: 100%; height: auto; }
/* A hero page: the sticker's content box is exactly the page's 3 / 4 (content-box, so the rim is added around it), and the picture is pinned inside the rim, so it is never letterboxed or sized by a percentage of an aspect-ratio box. */
.lp-stage .lp-st:not(.lp-st-cover) { box-sizing: content-box; aspect-ratio: 3 / 4; }
.lp-stage .lp-st:not(.lp-st-cover) img { position: absolute; inset: var(--rim); width: calc(100% - 2 * var(--rim)); height: calc(100% - 2 * var(--rim)); object-fit: cover; }
.lp-st figcaption, .lp-grid.lp-covers figcaption { left: .25rem; top: -.65rem; }
.lp-st-cover { --r: -2deg; --i: 0; grid-column: 1 / 4; grid-row: 1 / 4; z-index: 2; box-sizing: content-box; width: calc(100% - 1rem); height: auto; aspect-ratio: 720 / 941; place-self: center; --rim: .5rem; --st-r: 1.25rem; }
/* The cover fills its sticker edge to edge inside one even .5rem rim: the box takes the image's own aspect (content box, so the picture is never letterboxed or cropped). */
.lp-st-cover img { object-fit: cover; }
/* The artwork is pinned inside the rim (an even .5rem on every side), not sized by percentages of an aspect-ratio box, so no browser can let it spill past the white rim: the rounded corners clip it and it tilts with its sticker. */
.lp-st-cover img { position: absolute; inset: .5rem; width: calc(100% - 1rem); height: calc(100% - 1rem); }
.lp-st-a, .lp-st-b, .lp-st-c { z-index: 3; }
/* From 48rem the page column is narrow: its tabs hang from the right edge, so a long label never leaves the screen. Below 48rem the pages sit in a row of three under the cover and keep the left tab. */
@media (min-width: 48rem) {
  .lp-st-a figcaption, .lp-st-b figcaption, .lp-st-c figcaption { left: auto; right: .25rem; }
}
.lp-st-a { --r: 2deg; --i: 1; grid-column: 4; grid-row: 1; }
.lp-st-b { --r: -2deg; --i: 2; grid-column: 4; grid-row: 2; }
.lp-st-c { --r: 2deg; --i: 3; grid-column: 4; grid-row: 3; }
/* Phone hero: the cover takes the full stage width and the three pages sit in a row of three beneath it, each with room for its whole tab. */
@media (max-width: 47.999rem) {
  .lp-stage { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem .5rem; max-width: none; }
  .lp-st-cover { grid-column: 1 / 4; grid-row: 1; width: calc(100% - 1rem); }
  .lp-st-a, .lp-st-b, .lp-st-c { grid-row: 2; --rim: .25rem; --st-r: .875rem; }
  .lp-st-a { grid-column: 1; }
  .lp-st-b { grid-column: 2; }
  .lp-st-c { grid-column: 3; }
  .lp-st-a figcaption, .lp-st-b figcaption, .lp-st-c figcaption { left: .25rem; right: auto; padding-inline: .5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .lp-stage .lp-st { animation: lp-slap .6s cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
}
@keyframes lp-slap { from { transform: translateY(-1rem) rotate(calc(var(--r, 0deg) + 6deg)) scale(1.08); filter: blur(3px); } }
@media (min-width: 64rem) {
  .lp-hero-grid { grid-template-columns: 2fr 3fr; gap: 3rem; align-items: center; }
  .lp-stage { padding-top: 0; margin-top: .75rem; gap: 1.25rem; max-width: none; }
  .lp-st { --rim: .5rem; --st-r: 1.125rem; }
  .lp-st-cover { --rim: .5rem; --st-r: 1.25rem; }
}

/* where you sell, plain text only (no logos), and the fact strip */
.lp-sell { font-size: var(--lede); line-height: 1.5; font-weight: 800; max-width: 48rem; text-wrap: pretty; }
.lp-caption { padding-block: 1.5rem 1.75rem; }
.lp-platforms { display: flex; flex-wrap: wrap; gap: .75rem .625rem; margin-top: 1.25rem; padding-top: .25rem; }
.lp-platforms li { padding: .25rem .875rem .375rem; background: #fff; color: var(--home-night); border-radius: 999px; font-size: var(--small); line-height: var(--small-lh); font-weight: 900; letter-spacing: -.01em; transform: rotate(-1.5deg); box-shadow: 0 6px 10px -4px rgba(5, 8, 50, .5), 0 2px 3px rgba(5, 8, 50, .2); }
.lp-platforms li:nth-child(even) { transform: rotate(1.5deg); }
.lp-platform-note { margin-top: .75rem; font-size: var(--small); line-height: var(--small-lh); font-weight: 600; }
.lp-detail { margin-top: .5rem; font-size: var(--body); line-height: var(--body-lh); font-weight: 600; }
.lp-card, .lp-tier, .lp-grid figure, .lp-styles li, .lp-pair .lp-st { position: relative; }

/* how it works: three stickers in a row (a stack on a phone), one heading size, colour varies */
.lp-steps { display: grid; gap: 2.5rem; margin-top: 2.5rem; counter-reset: lpstep; }
.lp-card { border-radius: 1.5rem; padding: 1.75rem 1.5rem; transform: rotate(var(--r, 0deg)); }
.lp-steps .lp-card { counter-increment: lpstep; padding-top: 2rem; }
.lp-steps .lp-card::before { content: "Step " counter(lpstep) " of 3"; }
.lp-steps .lp-card:nth-child(1) { --r: -1.5deg; }
.lp-steps .lp-card:nth-child(2) { --r: 1deg; background: var(--home-blue); color: #fff; --lp-ring: #fff; }
.lp-steps .lp-card:nth-child(3) { --r: -1deg; background: var(--home-yellow); color: var(--home-night); }
.lp-steps .lp-card h3 { font-size: 1.625rem; line-height: 1.1; letter-spacing: -.02em; margin-bottom: .75rem; }
.lp-steps .lp-card:nth-child(2) p { color: var(--home-tint); }
.lp-steps .lp-card:nth-child(3) p { color: var(--home-night); }
.lp-card h3, .lp-tier h3 { font-size: var(--price); line-height: 1.2; font-weight: 900; letter-spacing: -.01em; margin: 0 0 .5rem; }
.lp-tier h3 { margin-bottom: 0; }
.lp-card p { color: var(--muted); }
.lp-steps + .lp-cta-row { margin-top: 2.5rem; }

/* gallery: covers and pages are stickers; the caption sits under the picture in the sticker's own white, so it can never be clipped or covered */
.lp-row-title { display: inline-block; font-size: var(--answer); font-weight: 900; margin: 2rem 0 .75rem; padding: .25rem .875rem; background: var(--home-night); color: #fff; border: 2px solid #fff; border-radius: 999px; transform: rotate(-2deg); }
.lp-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 62vw; gap: 1.5rem 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 1rem 1.5rem; margin-inline: calc(-1 * var(--lp-pad)); padding-inline: var(--lp-pad); scroll-padding-inline: var(--lp-pad); align-items: start; }
.lp-grid figure { --rim: .5rem; --st-r: 1.125rem; margin: 0; padding: var(--rim); border-radius: var(--st-r); scroll-snap-align: start; transform: rotate(var(--r, 0deg)); }
.lp-grid figure:nth-child(odd) { --r: -1.5deg; }
.lp-grid figure:nth-child(even) { --r: 1.5deg; }
.lp-grid img { display: block; width: 100%; height: auto; }
.lp-grid figcaption { margin-top: .5rem; padding-inline: .125rem; font-size: var(--small); line-height: var(--small-lh); font-weight: 800; overflow-wrap: anywhere; }
.lp-closer { align-self: center; font-size: var(--answer); line-height: var(--answer-lh); font-weight: 800; scroll-snap-align: start; }

/* styles: a swipe strip of tilted stickers on a phone, a grid from 48rem; the name sits under the picture in the sticker's own white */
.lp-styles { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100vw - var(--lp-pad) - 1.5rem) / 2.5); gap: 1rem; margin-top: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 1.25rem 1.5rem; margin-inline: calc(-1 * var(--lp-pad)); padding-inline: var(--lp-pad); scroll-padding-inline: var(--lp-pad); }
.lp-styles li { --rim: .5rem; --st-r: 1rem; scroll-snap-align: start; border-radius: var(--st-r); min-width: 0; transform: rotate(var(--r, 0deg)); }
.lp-styles li:nth-child(odd) { --r: -2deg; }
.lp-styles li:nth-child(even) { --r: 2deg; }
.lp-styles a { display: flex; flex-direction: column; height: 100%; padding: var(--rim); border-radius: var(--st-r); color: inherit; text-decoration: none; }
.lp-styles a:hover { background: var(--home-tint); }
.lp-styles img { display: block; width: 100%; height: auto; margin-bottom: .5rem; }
.lp-styles strong { display: block; font-weight: 900; font-size: var(--small); line-height: var(--small-lh); overflow-wrap: anywhere; }
.lp-styles span { margin-top: .125rem; color: var(--muted); font-size: var(--small); line-height: var(--small-lh); overflow-wrap: anywhere; }
@media (min-width: 48rem) {
  .lp-styles { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; overflow: visible; margin-inline: 0; padding-inline: 0; padding-bottom: 0; }
}
@media (min-width: 48rem) and (prefers-reduced-motion: no-preference) {
  .lp-styles li { transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
}
@media (min-width: 48rem) {
  .lp-styles li:hover, .lp-styles li:focus-within { transform: rotate(0deg) translateY(-.375rem); }
}
@media (min-width: 64rem) {
  /* an even 4 by 3 grid: equal cells, equal pictures, only the tilt varies */
  .lp-styles li:nth-child(4n+1) { --r: -3deg; }
  .lp-styles li:nth-child(4n+2) { --r: 2deg; }
  .lp-styles li:nth-child(4n+3) { --r: -2deg; }
  .lp-styles li:nth-child(4n) { --r: 3deg; }
}

/* mobile action bar: fixed to the viewport bottom and out of the page flow, so it takes no room between the FAQ and the final band (the seam is yellow straight into blue in every browser). It never needs reserved space: it shows only while the hero and the final band are both off screen, and folds away as the final band comes in. The price is a yellow tag, near-black on sunflower 13.06 */
.lp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .75rem var(--lp-pad); padding-bottom: max(.75rem, env(safe-area-inset-bottom)); background: var(--home-night); color: #fff; --lp-ring: #fff; visibility: hidden; }
.lp-bar-price { flex: 0 1 auto; padding: .125rem .625rem .25rem; background: var(--home-yellow); color: var(--home-night); border: 2px solid #fff; border-radius: 999px; transform: rotate(-2deg); font-size: var(--small); line-height: var(--small-lh); font-weight: 900; box-shadow: 0 4px 8px -3px rgba(5, 8, 50, .5); }
.lp-bar .btn { flex: 0 0 auto; min-height: 2.75rem; padding-inline: .875rem; }
/* The consent banner is fixed over the same edge and its height is unknown to CSS: the bar waits until the visitor has answered it. */
body.lp:has(.consent-banner) .lp-bar { display: none; }
/* Shown once the whole hero has scrolled off the top (the hero is the timeline subject: its own overflow:hidden would hijack the timeline of anything inside it), so the two buttons never appear together; hidden again as the final band enters. Where scroll-driven timelines are unsupported the bar stays hidden. */
@supports (animation-timeline: view()) {
  body.lp { timeline-scope: --lp-hero-cta, --lp-final; }
  .lp-hero { view-timeline-name: --lp-hero-cta; }
  .lp-final { view-timeline-name: --lp-final; }
  .lp-bar { animation: lp-bar-in linear both, lp-bar-out linear forwards; animation-timeline: --lp-hero-cta, --lp-final; animation-range: exit 99% exit 100%, entry 0% entry 4%; }
}
@keyframes lp-bar-in { from { visibility: hidden; } to { visibility: visible; } }
@keyframes lp-bar-out { from { visibility: visible; } to { visibility: hidden; } }
@media (min-width: 48rem) { .lp-bar { display: none; } }

/* what you get: the two print files as stickers on the night sheet, one above the other, never touching */
.lp-split { display: grid; gap: 2.5rem; align-items: center; }
.lp-checks { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.25rem; }
.lp-checks li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .75rem; font-size: var(--answer); line-height: var(--answer-lh); font-weight: 600; }
.lp-checks li::before { content: ""; width: 1.5rem; height: 1.5rem; margin-top: .125rem; background: var(--home-mint); -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat; }
.lp-pair { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2.25rem 0; padding: .75rem .5rem .5rem; }
.lp-pair .lp-st { --rim: .5rem; --st-r: 1.25rem; }
.lp-pair-int { --r: -2deg; grid-column: 1 / 7; grid-row: 1; }
.lp-pair-wrap { --r: 1.5deg; grid-column: 1 / 7; grid-row: 2; }

/* pricing: price stickers on the mint sheet, the middle one taller and square to the sheet */
.lp-tiers { display: grid; gap: 2.5rem 1.75rem; margin-top: 2.5rem; align-items: start; }
.lp-tier { border-radius: 1.5rem; padding: 1.75rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
.lp-tier .lp-tab { left: .75rem; }
.lp-tier:nth-child(1) { transform: rotate(-1.5deg); }
.lp-tier:nth-child(3) { transform: rotate(1.5deg); }
.lp-tier-featured { background: var(--home-blue); color: #fff; --lp-ring: #fff; transform: rotate(0deg); padding-block: 2.25rem; box-shadow: 0 18px 28px -10px rgba(5, 8, 50, .7), 0 3px 6px rgba(5, 8, 50, .3); }
.lp-tier .lp-tier-tag { align-self: flex-start; padding: .125rem .75rem; background: #fff; color: var(--home-night); border-radius: 999px; font-size: var(--small); line-height: var(--body-lh); min-height: 1.5rem; font-weight: 900; letter-spacing: 0; text-transform: none; }
.lp-tier-price { display: inline-block; padding: .125rem .875rem .25rem; background: var(--home-yellow); color: var(--home-night); border: 3px solid #fff; border-radius: 999px; transform: rotate(-2deg); font-size: var(--title); line-height: 1.1; font-weight: 900; letter-spacing: -.03em; box-shadow: 0 6px 10px -4px rgba(5, 8, 50, .55), 0 2px 3px rgba(5, 8, 50, .25); }
.lp-tier .lp-tier-credits { font-weight: 700; }
.lp-tier .lp-tier-payback { font-size: var(--small); line-height: var(--small-lh); font-weight: 800; }
.lp-payback { margin-top: 2rem; max-width: 52rem; font-size: var(--answer); line-height: var(--answer-lh); font-weight: 900; text-wrap: pretty; }
.lp-payback-note { margin-top: .25rem; max-width: 52rem; font-size: var(--small); line-height: var(--small-lh); font-weight: 600; }
.lp-credits-note { margin-top: 1.25rem; max-width: 52rem; font-weight: 700; }
.lp-tier p { color: var(--muted); }
.lp-tier-featured p { color: var(--home-tint); }
.lp-tier .btn { margin-top: auto; width: 100%; }
/* Phone and small tablet: the stacked cards are wide, so the facts sit in two columns (size and note left, price and credits right) instead of one narrow column with the right half empty. */
@media (max-width: 47.999rem) {
  .lp-tier { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; row-gap: .5rem; align-items: center; }
  .lp-tier h3 { grid-column: 1; grid-row: 1; }
  .lp-tier > p { grid-column: 1; grid-row: 2; justify-self: start; }
  .lp-tier .lp-tier-price { grid-column: 2; grid-row: 1; justify-self: end; }
  .lp-tier .lp-tier-credits { grid-column: 2; grid-row: 2; justify-self: end; text-align: right; }
  .lp-tier .lp-tier-payback { grid-column: 1 / -1; grid-row: 3; }
  .lp-tier .btn { grid-column: 1 / -1; grid-row: 4; margin-top: .5rem; }
}

/* rights and refund: two stickers side by side from 48rem (seven columns and five, tops aligned), no tab (the heading already names them) */
.lp-promise { display: grid; gap: 2rem; margin-top: 2.5rem; }
.lp-promise .lp-card:nth-child(1) { --r: -1.5deg; }
.lp-promise .lp-card:nth-child(2) { --r: 1.5deg; background: var(--home-night); color: #fff; --lp-ring: #fff; }
.lp-promise .lp-card h3 { font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.1; margin-bottom: .75rem; }
.lp-promise .lp-card:nth-child(2) p { color: var(--home-tint); }

/* faq: each question is a white sticker, square to the sheet */
.lp-faq { margin-top: 1.5rem; max-width: 52rem; display: flex; flex-direction: column; gap: 1.125rem; }
.lp-faq details { padding-inline: 1.25rem; border-radius: 1.25rem; }
.lp-faq summary { min-height: 2.75rem; padding: 1rem 2.75rem 1rem 0; font-weight: 900; font-size: var(--answer); line-height: var(--answer-lh); cursor: pointer; list-style: none; position: relative; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 1.75rem; height: 1.75rem; margin-top: -.875rem; border-radius: 50%; background: linear-gradient(#fff, #fff) center / .75rem 2px no-repeat, linear-gradient(#fff, #fff) center / 2px .75rem no-repeat, var(--home-night); }
.lp-faq details[open] summary::after { background: linear-gradient(#fff, #fff) center / .75rem 2px no-repeat, var(--home-night); }
.lp-faq details p { padding-bottom: 1.25rem; color: var(--muted); max-width: 40rem; }

/* final call to action: the empty slot on the sheet, ready for your book */
.lp-final { text-align: center; }
.lp-final .lp-wrap { max-width: 64rem; }
.lp-final .lp-wrap > * { max-width: 44rem; margin-inline: auto; }
.lp-final h2 { font-size: clamp(2.25rem, 6vw, 4.75rem); line-height: .95; letter-spacing: -.035em; }
.lp-final p { margin-top: 1.25rem; font-size: var(--lede); }
.lp-final .lp-cta-row { justify-content: center; }
.lp-foot { background: var(--home-night); color: #fff; padding-block: 2rem; --lp-ring: #fff; }
.lp-foot .lp-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; font-size: var(--small); line-height: var(--small-lh); }
body.lp .lp-foot .brand-link { color: #fff; font-weight: 900; font-size: 1.125rem; letter-spacing: -.02em; gap: .625rem; }
.lp-foot p { color: var(--home-tint); margin-right: auto; }
.lp-foot a:not(.brand-link) { display: inline-flex; align-items: center; min-height: 2.75rem; color: #fff; text-decoration: underline; }
body.lp:has(.consent-banner) .lp-foot { padding-bottom: 14rem; }
.lp-foot-nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
body.lp .lp-foot-nav a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 4px; }

/* Terms and Privacy pages (app/legal.php): one readable column on the app's light page */
.legal-head, .legal-main, .legal-foot { max-width: 44rem; margin-inline: auto; padding-inline: var(--gutter); }
.legal-main { padding-block: 1rem 3rem; font-size: var(--body); line-height: 1.65; }
.legal-main h1 { font-size: var(--title); line-height: 1.1; letter-spacing: -.02em; margin: 1rem 0 .5rem; }
.legal-main h2 { font-size: 1.375rem; line-height: 1.25; margin: 2.25rem 0 .5rem; }
.legal-main p, .legal-main ul { margin: .75rem 0 0; }
.legal-main ul { padding-left: 1.25rem; }
.legal-main li + li { margin-top: .5rem; }
.legal-meta { color: var(--muted); font-size: var(--small); }
.legal-intro { font-size: var(--lede); }
.legal-main a, .legal-foot a { color: var(--main-strong); text-decoration: underline; }
.legal-foot { padding-block: 1.5rem 3rem; border-top: 1px solid var(--line); }
.legal-foot a { display: inline-flex; align-items: center; min-height: 2.75rem; margin-right: 1.5rem; }
body.legal a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (min-width: 48rem) {
  body.lp:has(.consent-banner) .lp-foot { padding-bottom: 8rem; }
  .lp-links { display: flex; }
  .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .lp-tiers { grid-template-columns: 1fr 1.18fr 1fr; align-items: center; }
  .lp-grid { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; padding-bottom: 0; }
  .lp-closer { grid-column: 1 / -1; }
  /* Two print files: the heading block top-left, the tall interior sticker down the right, the wide cover-file sticker under the text on the left, so neither column is left empty. */
  .lp-split { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 2.5rem 3rem; align-items: start; }
  .lp-split > div:first-child { grid-column: 1; grid-row: 1; }
  .lp-pair { display: contents; }
  .lp-pair-int { grid-column: 2; grid-row: 1 / 3; }
  .lp-pair-wrap { grid-column: 1; grid-row: 2; align-self: end; }
  .lp-promise { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: start; }
  .lp-promise .lp-card:nth-child(1) { width: auto; grid-column: 1 / 8; }
  .lp-promise .lp-card:nth-child(2) { width: auto; grid-column: 8 / 13; }
}
@media (min-width: 64rem) {
  /* examples: five covers in one even row; the pages are one sheet, one large sticker over two rows, smaller ones tilted opposite ways */
  .lp-covers { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
  .lp-pages { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
  .lp-pages figure:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; --r: -2deg; padding: .75rem; border-radius: 1.5rem; }
  .lp-pages figure:nth-child(2) { --r: 3deg; }
  .lp-pages figure:nth-child(3) { --r: -3deg; }
  .lp-pages figure:nth-child(4) { --r: 3deg; }
  .lp-pages figure:nth-child(5) { --r: -3deg; }
  .lp-pages figure:nth-child(6) { --r: 3deg; }
  .lp-closer { grid-column: auto; }
}

/* Consent banner (printed only for visitors in the UK and EU/EEA who have not chosen yet). */
/* The banner is fixed to the bottom edge: leave room under the column (its height plus the usual 3rem) so the last control can scroll clear of it. */
body:has(.consent-banner) .desk { padding-bottom: 14rem; }
@media (min-width: 48rem) { body:has(.consent-banner) .desk { padding-bottom: 8rem; } }
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between;
  padding: .875rem var(--gutter); background: var(--surface); color: var(--ink);
  border-top: 2px solid var(--main); box-shadow: 0 -2px 8px color-mix(in srgb, var(--ink) 12%, transparent);
}
.consent-text { margin: 0; flex: 1 1 22rem; font-size: var(--body); line-height: var(--small-lh); }
.consent-text a { color: var(--main); }
.consent-actions { display: flex; gap: .5rem; }
.consent-actions button {
  min-height: 44px; padding: .5rem 1.1rem; font: inherit; font-weight: var(--w-label); cursor: pointer;
  border-radius: var(--radius); border: 2px solid var(--main);
}
.consent-reject { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.consent-accept { background: var(--main); color: var(--surface); }
.consent-actions button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- the quiz (/start, app/shell.php, body.quiz): the Sticker Sheet world, in Operate mode ----------
   One ultramarine sheet under the whole flow. The questions are white die-cut stickers (rim, soft lift, a mild tilt), the chosen one is mint and
   square to the sheet, prices are yellow tags, the primary action is deep pink with a white rim, the step is an ink stage-label tab.
   Everything is scoped to body.quiz so the downloads page and other pages that share the quiz css keep their own look. No dashed lines, no
   hard shadows: the rim and the soft lift say sticker. Transforms that move are gated on reduced motion; the resting tilt is static. */
body.quiz {
  --ink: var(--home-night); --focus: #fff; --q-ring: #fff; --q-pad: clamp(1rem, 5vw, 4.5rem);
  --q-lift: 0 14px 22px -10px rgba(5, 8, 50, .55), 0 3px 6px rgba(5, 8, 50, .25);
  --q-lift-hover: 0 18px 26px -10px rgba(5, 8, 50, .6), 0 3px 6px rgba(5, 8, 50, .3);
  --q-btn-lift: 0 10px 16px -8px rgba(5, 8, 50, .6), 0 2px 4px rgba(5, 8, 50, .3);
  --icon-check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  background: var(--home-blue); color: #fff;
}
html:has(body.quiz) { scrollbar-color: var(--home-yellow) var(--home-blue); }
body.quiz ::selection { background: var(--home-yellow); color: var(--home-night); }
body.quiz textarea, body.quiz input { caret-color: var(--home-blue); accent-color: var(--home-blue); }
body.quiz :focus-visible { outline: 3px solid var(--q-ring); outline-offset: 3px; }
body.quiz .signin-form :focus-visible, body.quiz .summary :focus-visible, body.quiz .consent-banner :focus-visible { --q-ring: var(--home-night); }
body.quiz .consent-banner { --focus: var(--home-night); --q-ring: var(--home-night); }
body.quiz .skip { background: var(--home-yellow); color: var(--home-night); border: 3px solid var(--home-night); border-radius: 999px; font-weight: 900; }

/* the column: wide enough for the style stickers, with the same fluid gutter as the homepage */
body.quiz:has(.consent-banner) .desk { padding-bottom: 14rem; }
body.quiz .desk { max-width: 72rem; padding: .5rem var(--q-pad) 3rem; gap: 1.25rem; }
body.quiz .work { gap: 1.5rem; }
body.quiz .sheet { gap: 1.25rem; }
body.quiz .sheet > * { max-width: 40rem; }
body.quiz .sheet > .answers { max-width: none; }
body.quiz .sheet[data-step="trim"] > .answers { max-width: 36rem; }

/* header strip: brand with the tilted yellow chip, the files link as a nav pill */
body.quiz .head { padding: .5rem 0; border-bottom: 0; align-items: center; justify-content: space-between; }
body.quiz .brand { font-size: 1.375rem; font-weight: 900; letter-spacing: -.03em; }
body.quiz .brand-link { color: #fff; gap: .625rem; }
body.quiz .brand-link:hover { color: #fff; }
body.quiz .brand-link::before { content: ""; width: 1.625rem; height: 1.625rem; flex: none; background: var(--home-yellow); border: 3px solid #fff; border-radius: .5rem; transform: rotate(-9deg); box-shadow: 0 4px 8px -2px rgba(5, 8, 50, .5); }
body.quiz .head-link { padding-inline: .875rem; border-radius: 999px; color: #fff; font-weight: 800; text-decoration: none; }
body.quiz .head-link:hover { background: #fff; color: var(--home-blue); }

/* step line: Back is an ink pill, the step is the ink stage-label tab */
body.quiz .work:has(.sheet[data-step="signin"]:not([hidden])) .step-status { display: none; }
body.quiz .back { padding: 0 1rem 0 .5rem; background: var(--home-night); color: #fff; border: 3px solid #fff; border-radius: 999px; font-weight: 800; box-shadow: var(--q-btn-lift); }
body.quiz .back:hover { background: #fff; color: var(--home-blue); }
body.quiz .stepline { justify-content: flex-start; gap: .75rem; }
body.quiz .step-status { margin-left: 0; padding: .375rem .875rem; background: var(--home-night); color: #fff; border: 2px solid #fff; border-radius: 999px; font-size: var(--small); line-height: var(--floor-lh); font-weight: 800; transform: rotate(-3deg); box-shadow: 0 4px 8px -3px rgba(5, 8, 50, .5); }

/* the question */
body.quiz .sheet h1 { font-size: var(--title); line-height: 1.02; font-weight: 900; letter-spacing: -.035em; }
body.quiz .receipt { margin-top: -.25rem; color: var(--home-tint); font-size: var(--body); line-height: var(--body-lh); }
body.quiz .receipt:empty { margin: 0; }
/* Each receipt sentence on its own line: the Change button's wide right margin pushes the pages sentence to the next flex line. */
body.quiz .receipt { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .35em; }
body.quiz .receipt-change { margin-right: 100%; }
body.quiz .sheet h1:focus, body.quiz .sheet h1:focus-visible { outline: none; }
body.quiz .link, body.quiz .receipt-change { color: #fff; font-weight: 800; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--home-yellow); text-underline-offset: .25em; }
body.quiz .link:hover, body.quiz .receipt-change:hover { color: #fff; text-decoration-color: currentColor; }
body.quiz .minor { margin-top: .75rem; font-size: 1.25rem; line-height: 1.2; font-weight: 900; letter-spacing: -.01em; }
body.quiz .field-label { font-size: 1.25rem; line-height: 1.2; font-weight: 900; letter-spacing: -.01em; }
body.quiz .field-help, body.quiz .field-count, body.quiz .hint, body.quiz .or { color: var(--home-tint); }
body.quiz .field-help a { color: #fff; font-weight: 900; text-decoration-thickness: 3px; text-decoration-color: var(--home-yellow); text-underline-offset: .25em; }
body.quiz .field-help a:hover { text-decoration-color: currentColor; }
body.quiz .field-label + .field-help { margin-top: -.75rem; }
body.quiz .echo, body.quiz .pay-lead { font-size: 1.125rem; line-height: 1.4; }

/* fields: white stickers */
body.quiz textarea, body.quiz input[type="email"], body.quiz input[type="password"], body.quiz input[type="text"] {
  background: #fff; color: var(--home-night); border: 3px solid #fff; border-radius: 1rem; padding: .75rem 1rem; font-size: 1.0625rem; box-shadow: var(--q-lift);
}
body.quiz textarea { min-height: 8rem; }
body.quiz textarea::placeholder { color: var(--placeholder); opacity: 1; }
body.quiz .signin-form { padding: 1.25rem; background: #fff; color: var(--home-night); border-radius: 1.5rem; box-shadow: var(--q-lift); gap: .625rem; }
body.quiz .signin-form .field-label { font-size: 1rem; }
body.quiz .signin-form input { border: 2px solid var(--line); box-shadow: none; border-radius: .75rem; }
body.quiz .or { justify-content: center; }
body.quiz .or::before, body.quiz .or::after { border-top-color: var(--home-tint); opacity: .6; }
body.quiz .google-form + .or { margin: 0; }
body.quiz .signin-form label:not(.field-label) { display: flex; align-items: flex-start; gap: .5rem; }
body.quiz .signin-form input[type="checkbox"] { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .125rem; accent-color: var(--home-blue); }
body.quiz .signin-form p { margin: 0; }
body.quiz .signin-form .field-help { color: var(--muted); font-size: var(--small); line-height: var(--small-lh); }
body.quiz .signin-form .field-help a { color: var(--home-night); text-decoration-color: var(--home-night); }
body.quiz .refusal { background: var(--failed-tint); color: var(--failed-text); border: 3px solid var(--failed); border-radius: 1rem; box-shadow: var(--q-lift); padding: .625rem .875rem; font-weight: 800; }
body.quiz .examples { gap: .75rem; }
body.quiz .example { background: #fff; color: var(--home-night); border: 0; border-radius: 1rem; padding: .625rem 1rem; box-shadow: var(--q-lift); font-weight: 600; }

/* answers: white stickers on a clean grid, mild alternating tilt; the chosen one is mint, square, with an ink check disc */
body.quiz .answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.5rem 1.25rem; padding-top: .5rem; }
body.quiz .answers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
body.quiz .pay-choices { display: flex; flex-direction: column; gap: 1.75rem; }
body.quiz .answer {
  --r: -1deg; position: relative; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .375rem; text-align: left;
  min-height: 4rem; padding: 1rem 1.125rem; background: #fff; color: var(--home-night); border: 3px solid #fff; border-radius: 1.125rem;
  box-shadow: var(--q-lift); transform: rotate(var(--r));
}
body.quiz .answer:nth-child(3n+2) { --r: .75deg; }
body.quiz .answer:nth-child(3n) { --r: -.5deg; }
/* full-width rows stay square to the sheet: a tilt on a wide card reads as crooked */
body.quiz .pay-choices .answer { --r: 0deg; }
@media (max-width: 29.99rem) { body.quiz .answers:not(.answers-grid) .answer { --r: 0deg; } }
body.quiz .answer-label { overflow-wrap: break-word; hyphens: auto; font-size: 1.25rem; line-height: 1.2; font-weight: 900; letter-spacing: -.01em; }
body.quiz .answer-note, body.quiz .answer-na { color: var(--muted); font-size: 1rem; line-height: 1.4; }
body.quiz .answer-na { font-weight: 800; }
body.quiz .answer-aside { flex-direction: row; align-items: center; gap: .75rem; margin: auto 0 0; padding-top: .5rem; }
body.quiz .answer:has(.shape) .answer-aside { order: -1; margin: 0; padding: 0 0 .25rem; }
body.quiz .answer-price {
  display: inline-block; padding: .125rem .75rem .25rem; background: var(--home-yellow); color: var(--home-night); border: 3px solid #fff; border-radius: 999px;
  font-size: 1.5rem; line-height: 1.1; font-weight: 900; letter-spacing: -.035em; transform: rotate(-2deg); box-shadow: 0 6px 10px -4px rgba(5, 8, 50, .55), 0 2px 3px rgba(5, 8, 50, .25);
}
body.quiz .answer-credits { color: var(--muted); font-size: var(--small); line-height: var(--small-lh); font-weight: 800; }
body.quiz .answer-tag { position: absolute; top: -.8rem; left: .75rem; padding: .25rem .625rem; background: var(--home-night); color: #fff; border: 2px solid #fff; border-radius: 999px; font-size: var(--floor); line-height: var(--floor-lh); font-weight: 800; transform: rotate(-3deg); box-shadow: 0 4px 8px -3px rgba(5, 8, 50, .5); }
body.quiz .answer[aria-pressed="true"], body.quiz .answer[aria-pressed="true"]:hover { --r: 0deg; background: var(--home-mint); border-color: var(--home-night); }
body.quiz .answer[aria-pressed="true"]::after {
  content: ""; position: absolute; top: .625rem; right: .625rem; z-index: 2; grid-column: auto; grid-row: auto; margin: 0; width: 1.875rem; height: 1.875rem;
  background: var(--home-night) var(--icon-check-white) center / 1.25rem no-repeat; border: 2px solid #fff; border-radius: 50%; -webkit-mask: none; mask: none;
}
body.quiz .answer:not(:has(.answer-pic))[aria-pressed="true"] .answer-label { padding-right: 2.25rem; }
body.quiz .answer[aria-disabled="true"], body.quiz .answer[aria-disabled="true"]:hover {
  --r: 0deg; background: var(--home-tint); border-color: var(--home-tint); box-shadow: none; cursor: not-allowed; transform: none;
}
body.quiz .answer[aria-disabled="true"] .answer-label { color: var(--muted); }
body.quiz .pay-featured { --r: 0deg; box-shadow: 0 18px 28px -10px rgba(5, 8, 50, .7), 0 3px 6px rgba(5, 8, 50, .3); }
/* style stickers: the sample page inside the rim, curves concentric (rim .5rem, sticker 1.125rem) */
body.quiz .answer:has(.answer-pic) { padding: .3125rem; gap: .25rem; }
body.quiz .answer-pic { margin: 0; border: 0; border-radius: .625rem; background-color: var(--home-tint); aspect-ratio: 3 / 4; object-fit: contain; object-position: center; }
body.quiz .answer:has(.answer-pic) .answer-label { padding: .125rem .5rem 0; }
body.quiz .answer:has(.answer-pic) .answer-note { padding: 0 .5rem .5rem; font-size: var(--small); line-height: var(--small-lh); }
body.quiz .answer:has(.answer-pic)[aria-pressed="true"]::after { top: .875rem; right: .875rem; grid-row: auto; }
/* cover styles: Auto shows four samples together */
/* cover styles: the picture takes the real shape of the sample (2 by 3, or square), set by its width and height attributes; no forced frame, and never shrunk by the flex card */
body.quiz .cover-pic { display: block; flex: 0 0 auto; width: 100%; height: auto; aspect-ratio: auto; object-fit: fill; }
body.quiz .answer-mix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; align-content: start; gap: .25rem; padding: .25rem; box-sizing: border-box; }
body.quiz .answer-mix-pic { min-width: 0; border-radius: .375rem; }
/* the book shape drawings keep their ink outline */
body.quiz .shape { background: var(--home-night); }

/* review: one white sticker card of answers, the price a yellow tag, the sample page a tilted sticker */
body.quiz .summary { gap: .75rem; padding: 1.25rem; background: #fff; color: var(--home-night); border-radius: 1.5rem; box-shadow: var(--q-lift); }
body.quiz .summary > div { padding: 0; align-items: center; }
body.quiz .summary dt { color: var(--muted); font-weight: 800; }
body.quiz .summary .link { color: var(--home-blue); }
body.quiz .summary .link:hover { color: var(--home-blue); }
body.quiz .summary-price dd:first-of-type {
  justify-self: start; padding: .125rem .875rem .25rem; background: var(--home-yellow); color: var(--home-night); border: 3px solid #fff; border-radius: 999px;
  font-size: 1.5rem; line-height: 1.1; font-weight: 900; letter-spacing: -.035em; transform: rotate(-2deg); box-shadow: 0 6px 10px -4px rgba(5, 8, 50, .55), 0 2px 3px rgba(5, 8, 50, .25);
}
body.quiz .sample { padding: .5rem; background: #fff; color: var(--home-night); border-radius: 1.125rem; box-shadow: var(--q-lift); transform: rotate(2deg); }
body.quiz .sample img { border: 0; border-radius: .625rem; }
body.quiz .sample figcaption { margin: 0; padding: .5rem .25rem .25rem; color: var(--muted); }

/* buttons: pill stickers, pink only for the primary action (white on deep pink, 5.19 to 1) */
body.quiz .btn { border: 3px solid #fff; border-radius: 999px; font-weight: 900; letter-spacing: -.01em; box-shadow: var(--q-btn-lift); }
body.quiz .btn-primary, body.quiz .btn-primary:hover, body.quiz .btn-primary:active { background: var(--home-pink-deep); color: #fff; border-color: #fff; }
body.quiz .btn-secondary { background: var(--home-night); color: #fff; border-color: #fff; }
body.quiz .btn-secondary:hover { background: var(--home-blue); }
body.quiz .btn-primary[aria-disabled="true"], body.quiz .btn-primary[aria-disabled="true"]:hover { background: var(--home-tint); color: var(--muted); border: 3px solid #fff; box-shadow: none; cursor: not-allowed; }
body.quiz .btn-wide { min-height: 3.5rem; font-size: 1.25rem; }

/* the sticky action bar: an ink sheet with the hint on it, the pink button inside */
body.quiz .foot { gap: .625rem; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); background: var(--home-night); border-radius: 0; /* flush: the ink runs edge to edge of the viewport (shadow spread, clipped to the bar's own height) and down to the bottom edge */ box-shadow: 0 0 0 100vmax var(--home-night); clip-path: inset(0 -100vmax); }
body.quiz .foot .hint { color: var(--home-tint); }
/* Content above the sticky bar always scrolls clear of it, with room to spare on phones. */
body.quiz .sheet:has(.foot) { padding-bottom: 0; }

@media (prefers-reduced-motion: no-preference) {
  body.quiz .answer, body.quiz .example, body.quiz .btn, body.quiz .back { transition: transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s cubic-bezier(.16, 1, .3, 1), background-color .15s ease, border-color .15s ease, color .15s ease; }
  body.quiz .answer:hover:not([aria-disabled="true"]) { transform: translateY(-2px) rotate(0deg); box-shadow: var(--q-lift-hover); }
  body.quiz .answer:active { transform: rotate(var(--r)) scale(.98); }
  body.quiz .answer[aria-pressed="true"]:active { transform: scale(.98); }
  body.quiz .btn:hover:not([aria-disabled="true"]), body.quiz .back:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 16px 22px -10px rgba(5, 8, 50, .6), 0 3px 6px rgba(5, 8, 50, .3); }
  body.quiz .btn:active:not([aria-disabled="true"]) { transform: translateY(0) scale(.98); }
}

@media (min-width: 48rem) {
  body.quiz .answers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 1.25rem; }
  body.quiz .desk { padding-top: 1rem; }
  body.quiz:has(.consent-banner) .desk { padding-bottom: 8rem; }
}
@media (min-width: 64rem) {
  body.quiz .answers-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* review: the answers and the way to pay on the left, the style's sample page beside them */
  body.quiz .sheet[data-step="review"] { display: grid; grid-template-columns: minmax(0, 40rem) 15rem; column-gap: 4rem; align-items: start; max-width: none; }
  body.quiz .sheet[data-step="review"] > * { grid-column: 1; }
  body.quiz .sheet[data-step="review"] > #h-samples, body.quiz .sheet[data-step="review"] > .sample { grid-column: 2; }
  body.quiz .sheet[data-step="review"] > #h-samples { grid-row: 2; margin-top: 0; }
  body.quiz .sheet[data-step="review"] > .sample { grid-row: 3 / span 3; }
}

/* ---------- status pages (auth_page(): sign in, payment confirming, cancelled, errors, unsubscribe), body.status ----------
   The same ultramarine sheet as the quiz, in Operate mode: a brand strip, then one white sticker card that holds the h1 and the message.
   Deep pink only on the real action (a submit button or a .btn-primary link). The refusal tint and the alert icon are the existing ones. */
body.status { --focus: #fff; background: var(--home-blue); color: #fff; }
html:has(body.status) { scrollbar-color: var(--home-yellow) var(--home-blue); }
body.status ::selection { background: var(--home-yellow); color: var(--home-night); }
body.status :focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
body.status .status-card :focus-visible { outline-color: var(--home-night); }
.status-wrap { max-width: 34rem; min-height: 100vh; min-height: 100dvh; margin-inline: auto; padding: .5rem var(--gutter) 3rem; }
.status-head { padding: .5rem 0; }
body.status .brand { font-size: 1.375rem; font-weight: 900; letter-spacing: -.03em; }
body.status .brand-link { color: #fff; gap: .625rem; }
body.status .brand-link:hover { color: #fff; }
body.status .brand-link::before { content: ""; width: 1.625rem; height: 1.625rem; flex: none; background: var(--home-yellow); border: 3px solid #fff; border-radius: .5rem; transform: rotate(-9deg); box-shadow: 0 4px 8px -2px rgba(5, 8, 50, .5); }
.status-card {
  margin-top: 1rem; padding: 1.5rem 1.25rem; background: #fff; color: var(--home-night); border-radius: 1.5rem;
  box-shadow: 0 14px 22px -10px rgba(5, 8, 50, .55), 0 3px 6px rgba(5, 8, 50, .25);
  display: flex; flex-direction: column; gap: 1rem;
}
.status-card h1 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.1; font-weight: 900; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: anywhere; }
.status-card p { max-width: 65ch; }
.status-card a:not(.btn) { color: var(--home-night); text-decoration: underline; text-underline-offset: .2em; }
.status-card form { display: flex; flex-direction: column; gap: .75rem; }
.status-card label { display: block; font-weight: var(--w-label); }
.status-card input:not([type="checkbox"]):not([type="hidden"]) { display: block; width: 100%; min-height: 2.75rem; margin-top: .25rem; border: 2px solid var(--line); border-radius: .75rem; padding: .625rem .75rem; background: var(--surface); color: var(--home-night); font-weight: var(--w-text); }
.status-card input[type="checkbox"] { width: 1.25rem; height: 1.25rem; margin-right: .5rem; vertical-align: -.2rem; accent-color: var(--home-blue); }
.status-card .field-help { color: var(--muted); font-size: var(--small); line-height: var(--small-lh); }
.status-card [role="alert"] {
  display: flex; align-items: flex-start; gap: .5rem; padding: .625rem .875rem; background: var(--failed-tint); color: var(--failed-text);
  border: 3px solid var(--failed); border-radius: 1rem; font-weight: 800; line-height: 1.5rem;
}
.status-card [role="alert"]::before {
  content: ""; flex: none; width: 1.5rem; height: 1.5rem; background: currentColor;
  -webkit-mask: var(--icon-alert) center / contain no-repeat; mask: var(--icon-alert) center / contain no-repeat;
}
.status-card [role="status"] { font-size: var(--lede); line-height: 1.4; font-weight: 600; }
.status-card button, .status-card .btn {
  min-height: 2.75rem; padding: .625rem 1.5rem; border: 3px solid #fff; border-radius: 999px; font-weight: 900; letter-spacing: -.01em;
  background: var(--home-pink-deep); color: #fff; cursor: pointer; align-self: flex-start;
  box-shadow: 0 10px 16px -8px rgba(5, 8, 50, .6), 0 2px 4px rgba(5, 8, 50, .3);
}
.status-card button:hover, .status-card .btn:hover { background: var(--home-pink-deep); color: #fff; }
@media (min-width: 48rem) { .status-card { padding: 2rem 2rem; } .status-wrap { padding-top: 1.5rem; } }

/* The sign-in page's two quiet links: side by side when they fit, one under the other when they do not, never split inside a phrase. */
.auth-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.auth-links a { white-space: nowrap; }

/* ---------- the library and the book page (app/library.php, public/app.js), body.status.books ----------
   The status sheet on a wider column. The h1 sits on the sheet in white; every block under it is a white sticker card (.status-card).
   Pink only on the one real action of a card (Download your files, Make a coloring book, Back to your books). Open, Back, Next, Copy
   and Open Amazon KDP are the ink secondary pill. */
body.books .status-wrap { max-width: 72rem; }
body.status .status-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; }
body.status .head-link { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: .875rem; border-radius: 999px; color: #fff; font-weight: 800; text-decoration: none; }
body.status .head-link:hover { background: #fff; color: var(--home-blue); }
body.status .head-cta { min-height: 2.75rem; padding: .5rem 1.125rem; border-radius: 999px; border: 3px solid #fff; background: var(--home-pink-deep); color: #fff; font-weight: 900; margin-right: .5rem; }
body.status .head-cta:hover, body.status .head-cta:active { background: var(--home-pink-deep); color: #fff; border-color: #fff; }
.books-main { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1rem; }
.books-title { color: #fff; font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.1; font-weight: 900; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: anywhere; }
.books-main > .status-card { margin-top: 0; }
.status-card h2 { font-size: 1.5rem; line-height: 1.15; font-weight: 900; letter-spacing: -.03em; }
.status-card h3 { font-size: 1.125rem; line-height: 1.2; font-weight: 900; letter-spacing: -.01em; }
.status-card .btn-quiet {
  background: var(--home-night); color: #fff; border: 3px solid #fff; border-radius: 999px; min-height: 2.75rem; padding: .625rem 1.25rem; font-weight: 900;
  box-shadow: 0 10px 16px -8px rgba(5, 8, 50, .6), 0 2px 4px rgba(5, 8, 50, .3);
}
.status-card .btn-quiet:focus-visible { outline-offset: 3px; }
/* One look for Back, Next, Copy and the other ink pills: ink at rest, blue while hovered or pressed (the pink hover of .status-card button never reaches them). */
.status-card .btn-quiet:hover { background: var(--home-night); color: #fff; }
@media (hover: hover) { .status-card .btn-quiet:hover { background: var(--home-blue); color: #fff; } }
.status-card .btn-quiet:active { background: var(--home-blue); color: #fff; }
.status-card .btn-quiet:disabled { background: var(--home-tint); color: var(--muted); border-color: #fff; box-shadow: none; cursor: not-allowed; }
.status-card a.btn-quiet { text-decoration: none; }

.book-list { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (min-width: 40rem) { .book-list { gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); } }
@media (min-width: 64rem) { .book-list { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); } }
.book-tile { position: relative; margin-top: 0; padding: 0; gap: 0; overflow: hidden; border-radius: 1rem; }
@media (prefers-reduced-motion: no-preference) { .book-tile { transition: transform .15s ease; } }
@media (hover: hover) { .book-tile:hover { transform: translateY(-.25rem); } }
.book-tile:has(a:focus-visible) { outline: 3px solid var(--home-blue); outline-offset: 3px; }
.book-cover { display: block; width: 100%; height: auto; border: 0; border-radius: 0; background-color: var(--home-tint); object-fit: cover; object-position: 50% 0; }
.book-cover.is-pending { display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 800; font-size: var(--small); }
.book-body { display: flex; flex-direction: column; gap: .375rem; padding: .625rem .75rem .75rem; }
.status-card.book-tile h2 { font-size: 1rem; line-height: 1.25; font-weight: 800; letter-spacing: 0; text-align: left; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.status-card.book-tile h2 a:not(.btn) { color: var(--home-night); text-decoration: none; }
.book-tile h2 a::after { content: ""; position: absolute; inset: 0; }
.status-card.book-tile h2 a:focus-visible { outline: none; }
.book-portrait { aspect-ratio: 3 / 4; }
.book-square { aspect-ratio: 1 / 1; }
.book-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
.book-chip { display: inline-block; padding: .125rem .625rem; border-radius: 999px; background: var(--home-tint); color: var(--home-night); font-size: var(--floor); line-height: var(--floor-lh); font-weight: 800; }
.book-chip.is-ready { background: var(--home-mint); }
.book-date { color: var(--muted); font-size: var(--small); }

/* The flip-through. Without script: a plain grid of every picture. With script (.is-live): the pages on show, one on a phone, a spread from 860px. */
.reader { scroll-margin-top: .5rem; }
.reader-pages { scroll-margin-top: 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 1rem; }
.reader-portrait { --rw: 3; --rh: 4; }
.reader-square { --rw: 1; --rh: 1; }
.reader-page { aspect-ratio: var(--rw) / var(--rh); background: var(--home-tint); border: 1px solid rgba(12, 15, 36, .14); border-radius: .75rem; overflow: hidden; }
.reader-page img { display: block; width: 100%; height: 100%; object-fit: contain; }
.reader-page.is-cover img { object-fit: cover; }
.reader.is-live .reader-pages { grid-template-columns: minmax(0, 1fr); gap: 0; width: min(100%, calc(70vh * var(--rw) / var(--rh))); margin-inline: auto; }
.reader.is-live .reader-page { display: none; }
.reader.is-live .reader-page.is-shown { display: block; box-shadow: 0 14px 22px -10px rgba(5, 8, 50, .45), 0 3px 6px rgba(5, 8, 50, .2); }
.reader.is-live.is-two .reader-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, calc(70vh * 2 * var(--rw) / var(--rh))); }
.reader.is-live.is-two.is-solo .reader-pages { grid-template-columns: minmax(0, 1fr); width: min(100%, calc(70vh * var(--rw) / var(--rh))); }
.reader-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; margin-inline: auto; }
.reader-bar button { min-width: 4.75rem; }
.reader-count { flex: 1; min-width: 5rem; text-align: center; font-weight: 800; white-space: nowrap; }
.reader.is-live .reader-bar { width: min(100%, calc(70vh * var(--rw) / var(--rh))); }
.reader.is-live.is-two .reader-bar { width: min(100%, calc(70vh * 2 * var(--rw) / var(--rh))); }
.reader.is-live.is-two.is-solo .reader-bar { width: min(100%, calc(70vh * var(--rw) / var(--rh))); }
@media (prefers-reduced-motion: no-preference) {
  .turn-next { animation: turn-next .3s cubic-bezier(.16, 1, .3, 1); }
  .turn-prev { animation: turn-prev .3s cubic-bezier(.16, 1, .3, 1); }
}
@keyframes turn-next { from { opacity: 0; transform: translateX(3%); } }
@keyframes turn-prev { from { opacity: 0; transform: translateX(-3%); } }

/* The KDP pane: read-only fields with a Copy button each. */
.kdp-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem .75rem; align-items: start; }
.kdp-field label { grid-column: 1 / -1; font-weight: var(--w-label); }
.status-card .kdp-field input:not([type="checkbox"]):not([type="hidden"]) { margin-top: 0; }
.status-card textarea { width: 100%; min-width: 0; border: 2px solid var(--line); border-radius: .75rem; padding: .625rem .75rem; background: var(--surface); color: var(--home-night); line-height: 1.5; }
.kdp-field textarea { field-sizing: content; min-height: 2.75rem; resize: none; overflow-wrap: anywhere; }
.kdp-field textarea, .kdp-field input { grid-column: 1; min-width: 0; }
.kdp-field .field-count { grid-column: 1 / -1; text-align: left; }
.kdp-plain { display: flex; flex-direction: column; gap: .25rem; }
.kdp-ideas { list-style: disc; padding-left: 1.25rem; }
.kdp-extra summary { min-height: 2.75rem; display: flex; align-items: center; font-weight: 900; cursor: pointer; }
.kdp-extra .kdp-field { margin-top: .75rem; }
.kdp-field .kdp-copy { grid-column: 2; align-self: start; min-width: 6.5rem; padding-inline: .75rem; }
.kdp-list { display: grid; gap: .75rem; }
.kdp-group { display: flex; flex-direction: column; gap: .75rem; }
.kdp-print > div, .print-check .facts > div { grid-template-columns: minmax(0, 1fr); }
/* Under 480px the Copy button stacks full width under its field instead of squeezing the text beside it. */
@media (max-width: 29.99rem) {
  .kdp-field { grid-template-columns: minmax(0, 1fr); }
  .kdp-field .kdp-copy { grid-column: 1; width: 100%; }
}
@media (min-width: 48rem) {
  .kdp-print > div, .print-check .facts > div { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); }
}

/* ---------- account links, the files page and the payment page (app/library.php, app/downloads.php, app/checkout.php) ---------- */
.head-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .25rem; }
.head-form { display: inline-flex; }
button.head-link { border: 0; background: none; font: inherit; font-weight: 800; cursor: pointer; }
body.quiz .head { gap: .25rem .5rem; }
body.books-narrow .status-wrap { max-width: 44rem; }
.print-check summary { min-height: 2.75rem; display: flex; align-items: center; font-size: 1.5rem; line-height: 1.15; font-weight: 900; letter-spacing: -.03em; cursor: pointer; }
.print-check[open] summary { margin-bottom: .5rem; }
.file-row .btn-quiet { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.pay-line { display: flex; align-items: center; gap: .75rem; }
.spinner { flex: none; width: 1.5rem; height: 1.5rem; border: 3px solid var(--home-tint); border-top-color: var(--home-blue); border-radius: 50%; }
.spinner[hidden], .pay-card [hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .spinner { animation: spin .9s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
body.quiz textarea[aria-invalid="true"] { border-color: var(--failed); box-shadow: 0 0 0 3px var(--failed-tint); }
.print-check summary, .kdp-extra summary { justify-content: space-between; gap: 1rem; list-style: none; }
.print-check summary::-webkit-details-marker, .kdp-extra summary::-webkit-details-marker { display: none; }
.print-check summary::after, .kdp-extra summary::after { content: ""; flex: none; width: .75rem; height: .75rem; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: translateY(-.125rem) rotate(45deg); }
.print-check[open] summary::after, .kdp-extra[open] summary::after { transform: translateY(.125rem) rotate(-135deg); }
.back-link { margin: 0; }
.back-link a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #fff; font-weight: 800; text-underline-offset: .25em; }
.hint.is-echo { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* The idea step's error line sits below the example buttons, so it can never push them while a finger is on its way to one. */
#usd-note, #start-new { margin: 0; }
#usd-note[hidden], #start-new[hidden] { display: none; }
/* Pre-script and no-script state of the quiz: the site font, and the Home link as a pill. */
body.quiz .sheet[data-step="loading"] .btn { align-self: flex-start; }

/* ---------- the Lifetime pass (app/lifetime.php): a night sheet on the homepage, a white card on /lifetime ---------- */
.lt-grid { display: grid; gap: 2rem; margin-top: 2rem; align-items: start; }
.lt-main { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; min-width: 0; max-width: 100%; }
.lt-ladder { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; min-width: 0; max-width: 100%; }
.lt-price { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.lt-tag { display: inline-block; padding: .125rem .875rem .25rem; background: var(--home-yellow); color: var(--home-night); border: 3px solid #fff; border-radius: 999px; transform: rotate(-2deg); font-size: var(--display); line-height: 1.05; font-weight: 900; letter-spacing: -.035em; box-shadow: 0 6px 10px -4px rgba(5, 8, 50, .55), 0 2px 3px rgba(5, 8, 50, .25); }
.lt-was { font-size: var(--title); line-height: 1.1; font-weight: 900; letter-spacing: -.03em; color: var(--lp-soft, var(--muted)); text-decoration-thickness: 3px; }
.lt-seats { font-size: var(--lede); line-height: 1.4; font-weight: 900; }
.lt-paid { font-weight: 800; }
.lt-steps { list-style: none; margin: 0; padding: 1rem 0 1.25rem; display: flex; gap: 1rem; max-width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; }
.lt-step { position: relative; flex: 0 0 7rem; display: flex; flex-direction: column; gap: .25rem; padding: 1.25rem .75rem .75rem; background: var(--home-tint); color: var(--muted); border-radius: 1rem; scroll-snap-align: start; transform: rotate(var(--r, 0deg)); box-shadow: 0 14px 22px -10px rgba(5, 8, 50, .55), 0 3px 6px rgba(5, 8, 50, .25); }
.lt-step:nth-child(odd) { --r: -1.5deg; }
.lt-step:nth-child(even) { --r: 1.5deg; }
.lt-step.is-current { --r: 0deg; background: var(--home-yellow); color: var(--home-night); }
.lt-step-tab { position: absolute; left: .5rem; top: -.8rem; padding: .125rem .625rem; background: var(--home-night); color: #fff; border: 2px solid #fff; border-radius: 999px; font-size: .75rem; line-height: 1.3; font-weight: 800; white-space: nowrap; transform: rotate(-3deg); box-shadow: 0 4px 8px -3px rgba(5, 8, 50, .5); }
.lt-step-price { font-size: 1.5rem; line-height: 1.1; font-weight: 900; letter-spacing: -.03em; color: var(--home-night); }
.lt-step-note { align-self: flex-start; font-size: var(--small); line-height: 1.3; font-weight: 800; }
.lt-step.is-sold .lt-step-note { padding: 0 .5rem; color: var(--home-night); border: 3px solid var(--home-night); border-radius: .5rem; transform: rotate(-6deg); }
.lt-mini .lt-step { flex-basis: 6.5rem; }
.lt-clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.lt-tile { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .75rem .25rem; background: #fff; color: var(--home-night); border-radius: 1rem; box-shadow: 0 14px 22px -10px rgba(5, 8, 50, .55), 0 3px 6px rgba(5, 8, 50, .25); }
.lt-num { font-size: clamp(1.75rem, 5vw, 3rem); line-height: 1; font-weight: 900; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.lt-unit { font-size: var(--small); line-height: 1.3; font-weight: 800; color: var(--muted); }
.lt-ends { margin-top: .75rem; font-weight: 700; color: var(--lp-soft); }
.lt-refund { max-width: 34rem; font-weight: 700; color: var(--lp-soft); }
.lt-have { font-size: 1.5rem; line-height: 1.15; font-weight: 900; letter-spacing: -.03em; }
.lt-buy { margin: 0; }
.lt-card .lt-tag { font-size: var(--title); }
/* The library card: the offer on the left, the whole staircase on the right (one column on a phone, where the steps scroll sideways and the next one peeks in). */
.lt-page { display: grid; gap: .5rem 3rem; width: 100%; align-items: center; }
.lt-offer { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; min-width: 0; }
.lt-stairs { min-width: 0; max-width: 100%; }
.lt-page .lt-steps { width: max-content; max-width: 100%; padding: 1.25rem .5rem 1.5rem .25rem; gap: .875rem; scroll-padding-inline: .25rem; }
.lt-page .lt-step { box-shadow: 0 6px 10px -6px rgba(5, 8, 50, .45), 0 1px 3px rgba(5, 8, 50, .2); }
.lt-page .lt-step.is-current { box-shadow: 0 6px 10px -6px rgba(5, 8, 50, .45), 0 0 0 3px #fff, 0 1px 3px rgba(5, 8, 50, .2); }
.lt-swipe { margin: 0; color: var(--muted); font-size: var(--small); line-height: var(--small-lh); font-weight: 700; }
.lt-swipe::after { content: " \2192"; }
.lt-confirming p[role="status"] { font-size: 1.5rem; line-height: 1.15; font-weight: 900; letter-spacing: -.03em; }
@media (min-width: 48rem) {
  .lt-page { grid-template-columns: minmax(0, 1fr) auto; }
  .lt-page .lt-steps { overflow: visible; }
  .lt-swipe { display: none; }
}
@media (min-width: 48rem) {
  .lt-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr); gap: 3rem; }
  .lt-home .lt-steps { flex-wrap: wrap; overflow: visible; }
}

/* The quiet Lifetime line at the top of the library: one small translucent strip, no price, no staircase, no pink. The close button is a real form post. */
.lt-banner { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .125rem .25rem .125rem 1rem; background: rgba(255, 255, 255, .14); color: #fff; border-radius: 999px; font-size: var(--small); line-height: var(--small-lh); font-weight: 600; }
.lt-banner p { margin: 0; padding-block: .5rem; }
.lt-banner a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
.lt-banner form { margin: 0; flex: none; }
.lt-close { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lt-close:hover { background: #fff; color: var(--home-blue); }
/* /lifetime: the clock tiles sit on a tint on the white card, and the rules are plain lists. */
.lt-card .lt-tile { background: var(--home-tint); box-shadow: none; }
.lt-card .lt-clock { width: 100%; max-width: 24rem; }
.lt-card .lt-ends { margin-top: 0; color: var(--muted); }
.lt-list { margin: 0; padding-left: 1.25rem; list-style: disc; display: flex; flex-direction: column; gap: .5rem; max-width: 65ch; }
.lt-more { margin: 0; font-size: var(--small); }

/* The Credits area under the books (library_credits_section in app/library.php): one small card per bundle, stacked on a phone, in a row from 48rem. */
.credit-list { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.credit-card { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; border: 2px solid var(--line); border-radius: 1rem; background: #fff; }
.credit-card.is-default { border: 3px solid var(--home-night); background: var(--home-tint); }
.credit-card form { margin-top: auto; }
@media (min-width: 48rem) { .credit-list { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }

/* The section switcher under the title of a book (app/library.php, library_tabs): a light pill track holding three links. The current one is
   filled ink with a white edge; Submit to Amazon KDP is always the pink action colour. Under 40rem the short labels show and the track
   takes the full width, so the three fit a 375px screen. */
.book-tabs { display: flex; gap: .25rem; width: fit-content; max-width: 100%; padding: .25rem; background: var(--home-tint); border-radius: 999px; box-shadow: 0 10px 16px -8px rgba(5, 8, 50, .6), 0 2px 4px rgba(5, 8, 50, .3); }
.book-tab { display: flex; align-items: center; justify-content: center; flex: 1 1 auto; min-width: 0; min-height: 2.75rem; padding: .375rem 1.125rem; border: 3px solid transparent; border-radius: 999px; color: var(--home-night); font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; white-space: nowrap; }
.book-tab:hover { background: #fff; }
.book-tab.is-active, .book-tab.is-active:hover { background: var(--home-night); border-color: #fff; color: #fff; }
.book-tab-kdp, .book-tab-kdp:hover { background: var(--home-pink-deep); color: #fff; }
.book-tab-kdp:hover { filter: brightness(.92); }
.book-tab-kdp.is-active, .book-tab-kdp.is-active:hover { background: var(--home-pink-deep); border-color: #fff; box-shadow: 0 0 0 2px var(--home-night); }
body.status .book-tab:focus-visible { outline-color: var(--home-night); outline-offset: 1px; }
.tab-short { display: none; }
@media (max-width: 39.99rem) {
  .book-tabs { width: 100%; }
  .tab-long { display: none; }
  .tab-short { display: inline; }
  .book-tab { padding-inline: .5rem; }
}

/* The Edit section: the drawings as small numbered cards, three across on a phone. Each has its own two move buttons. */
.edit-pages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 40rem) { .edit-pages { grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 1rem; } }
.edit-page { position: relative; display: flex; flex-direction: column; gap: .375rem; padding: .375rem; background: var(--home-tint); border: 1px solid rgba(12, 15, 36, .14); border-radius: .75rem; }
.edit-page[draggable="true"] { cursor: grab; }
.edit-page.dragging { opacity: .4; }
.edit-page.drag-over { outline: 3px dashed var(--home-blue); outline-offset: 2px; }
.edit-thumb { aspect-ratio: var(--rw) / var(--rh); background: #fff; border-radius: .5rem; overflow: hidden; }
.edit-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.edit-num { position: absolute; top: .5rem; left: .5rem; min-width: 1.5rem; padding: 0 .375rem; border-radius: 999px; background: var(--home-night); color: #fff; font-size: var(--small); font-weight: 900; line-height: 1.5rem; text-align: center; }
.edit-moves { display: flex; gap: .25rem; }
.status-card .edit-move { flex: 1 1 0; min-width: 0; padding: .25rem; border-width: 2px; font-size: 1.25rem; line-height: 1; }

/* From 40rem the switcher is a large pill track: segments 3rem tall with 1.1rem bold text. The phone version above is unchanged. */
@media (min-width: 40rem) {
  .book-tabs { gap: .375rem; padding: .375rem; }
  .book-tab { min-height: 3rem; padding: .5rem 1.75rem; font-size: 1.1rem; }
}
