/* Kidcyclopedia — the public page (/about/). The app's own tokens (app/src/app.css):
   felt #1F6B5E · paper #FBFBF3 · ink #1E2A2A · ink-soft #5B6B6B · marigold #F6B73C (Dig deeper)
   sky #5AA9E6 (What else?) · coral #D9472B (Surprise me!) · rule #D9D4C7
   Fredoka for anything a child reads, Andika for the grown-up's lines. One committed look: felt
   bands with paper sections between them, exactly the table the app lays its cards on. */

/* the two faces, self-hosted (SIL Open Font License; fonts/OFL-*.txt). Latin subsets from @fontsource.
   index.html preloads the two that paint first (Fredoka 600, Andika 400). */
@font-face { font-family: Fredoka; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/fredoka-latin-500.woff2") format("woff2"); }
@font-face { font-family: Fredoka; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/fredoka-latin-600.woff2") format("woff2"); }
@font-face { font-family: Andika; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/andika-latin-400.woff2") format("woff2"); }
@font-face { font-family: Andika; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/andika-latin-700.woff2") format("woff2"); }

:root {
  --felt: #1F6B5E;
  --felt-deep: #174F46;
  --paper: #FBFBF3;
  --paper-2: #F3F1E6;
  --ink: #1E2A2A;
  --ink-soft: #5B6B6B;
  --rule: #D9D4C7;
  --marigold: #F6B73C;
  --marigold-on-felt: #FFDD99; /* small marigold words on the felt: 4.8:1 (marigold itself is 3.5:1, under WCAG AA) */
  --sky: #5AA9E6;
  --coral: #D9472B;
  --on-felt: #FBFBF3;
  --on-felt-soft: rgba(251, 251, 243, .84);
  --display: Fredoka, "Trebuchet MS", sans-serif;
  --body: Andika, "Segoe UI", Verdana, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, .35);
  --shadow-tile: 0 10px 26px rgba(0, 0, 0, .3);
  --r-card: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
strong { font-weight: 700; }
em { font-style: italic; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 700px) { .wrap { padding-left: 32px; padding-right: 32px; } }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--marigold); color: var(--ink); font-family: var(--display); font-weight: 600; padding: 12px 20px; border-radius: 28px; }
.skip:focus { top: 16px; outline: 4px solid var(--ink); outline-offset: 3px; }

/* ---------- felt and paper bands ---------- */
.felt {
  background-color: var(--felt);
  background-image: url("img/felt.webp");
  background-size: 800px auto; /* an 800 x 447 tile, 9 KB */
  background-repeat: repeat;
  color: var(--on-felt);
}
.paper { background: var(--paper); color: var(--ink); }
.h-paper { color: var(--on-felt); text-shadow: 0 2px 0 rgba(0, 0, 0, .28); }
.lede-paper { color: var(--on-felt-soft); }
.lede-paper strong { color: var(--on-felt); }

/* ---------- buttons: the app's chips, grown up ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 28px; border: none; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.1; text-decoration: none;
  white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
  transition: transform .2s var(--ease), box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .22); }
.btn:active { transform: translateY(0) scale(.97); }
.btn:focus-visible { outline: 4px solid var(--marigold); outline-offset: 3px; }
.btn-marigold { background: var(--marigold); color: var(--ink); }
.btn-marigold:focus-visible { outline-color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-felt { background: var(--felt); color: var(--on-felt); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 17px; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
/* M8c: no Android tap flash over a whole card or tile; each has its own :active */
.btn, .card-tab, .tile, .tile-btn, .journal, .asks li { -webkit-tap-highlight-color: transparent; }

/* ---------- top bar ---------- */
.top { background: var(--felt-deep); color: var(--on-felt); }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.top-mark { display: flex; align-items: center; min-height: 44px; flex: 0 1 218px; min-width: 0; } /* 44 tall: a touch target (the device suite's TAP rule); the wordmark inside keeps its size */
.top-mark img { width: 100%; max-width: 218px; height: auto; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .25)); }
.top-nav { display: none; gap: 4px; margin-left: auto; }
.top-nav a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--display); font-weight: 500; font-size: 17px; text-decoration: none; padding: 8px 14px; border-radius: 20px; color: var(--on-felt); white-space: nowrap; }
.top-nav a:hover { background: rgba(255, 255, 255, .1); }
.top-nav a:focus-visible { outline: 4px solid var(--marigold); outline-offset: 0; }
.top-row > .btn { margin-left: auto; }
/* M5 (landing3): on a phone the hero right below carries the same wordmark and the same button, so the
   bar is a duplicate in the first screen. It is not sticky, so hiding it costs nothing; the hero's
   wordmark (alt "Kidcyclopedia") is the page's one wordmark there. */
@media (max-width: 699px) {
  .top { display: none; }
}
@media (min-width: 700px) {
  .top-nav { display: flex; }
  .top-row > .btn { margin-left: 0; }
}
/* 700–959: three links and the button on one line (measured at 820) */
@media (min-width: 700px) and (max-width: 959px) {
  .top-mark { flex-basis: 168px; }
  .top-nav { gap: 2px; }
  .top-nav a { padding: 8px 10px; font-size: 16px; }
}

/* ---------- the hero: the app's first page ---------- */
.hero { padding: 40px 0 56px; text-align: center; }
.hero-mark { width: min(100%, 520px); margin: 0 auto; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .22)); }
.child-line { font-size: clamp(26px, 5.2vw, 40px); color: var(--on-felt); text-shadow: 0 2px 0 rgba(0, 0, 0, .28); margin-top: 24px; }
.grown-line { font-size: clamp(16px, 2vw, 19px); color: var(--on-felt-soft); margin: 10px auto 0; max-width: 620px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; margin-top: 28px; }
.cta-row .btn { max-width: 100%; white-space: normal; text-align: center; }
/* M6 (landing3): the phone's first screen holds the card's picture and question. The wordmark is
   smaller, the offer line goes (the buttons say it, and #price says it again), the buttons are 52
   tall, and the tab is a size shorter so it clears the Try it free button. */
@media (max-width: 699px) {
  .hero { padding: 20px 0 48px; }
  .hero-mark { width: min(100%, 300px); }
  .child-line { margin-top: 14px; }
  .grown-line { margin-top: 8px; }
  .grown-free { display: none; }
  .cta-row { margin-top: 20px; gap: 10px 12px; }
  .cta-row .btn { min-height: 52px; }
  .card-tab { height: 40px; font-size: 18px; }
}

/* A short phone screen (an iPhone SE inside Instagram's or Facebook's browser, ~375×548): the first
   screen must hold the card's picture, its question AND the "Hear it" pill floating under the question
   (demo.css .pill-dock; owner, 2026-11-08: the pill above the fold). The same words, a little tighter:
   the line fits on one line at 375 wide (26px wraps it), and the gaps close up. */
@media (max-width: 699px) and (max-height: 640px) {
  .hero { padding-top: 10px; }
  .child-line { font-size: 24px; margin-top: 8px; }
  .grown-line { margin-top: 6px; }
  .cta-row { margin-top: 12px; }
  .cta-row .btn { min-height: 48px; }
}

/* the table: one big card and the rail of three ways on (Table.tsx, Sprint 10) */
.table { display: grid; gap: 16px; margin: 48px auto 0; max-width: 1080px; text-align: left; justify-content: center; }
.card {
  position: relative; background: #FCFBF2; color: var(--ink); border-radius: var(--r-card);
  /* the ground the card art actually carries at its edges (measured: the Sun card ≈ #FDFCF2, 46 cards ≈ #FBFBF1),
     so the picture's box disappears. (#FFFDF7, the art-direction ground, showed the box at twice the contrast.) */
  box-shadow: var(--shadow-card); padding: 16px 20px 20px; min-width: 0;
}
.card-tab {
  position: absolute; left: 24px; bottom: 100%; height: 44px; padding: 0 16px 0 14px;
  display: inline-flex; align-items: center; border-radius: 16px 16px 0 0; background: var(--tab, #9DA6B6);
  font-family: var(--display); font-weight: 600; font-size: 19px; color: #1E2A2B; letter-spacing: .02em;
  text-decoration: none;
}
a.card-tab:hover { filter: brightness(1.04); }   /* the tab is the shelf, as in the app: a link to #subjects */
a.card-tab:focus-visible { outline: 4px solid var(--marigold); outline-offset: 2px; }
.card-tab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 -3px 12px rgba(0, 0, 0, .2); clip-path: inset(-24px -24px 0 -24px); z-index: -1; }
.card-pic { width: 100%; max-width: 602px; margin: 0 auto; border-radius: 12px; }
.card-q { font-size: 26px; margin-top: 14px; }
.card-a { font-size: 19px; line-height: 1.4; margin-top: 12px; display: grid; gap: .75em; }
.card-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 18px; min-height: 56px; }
.spk { width: 56px; height: 56px; border-radius: 28px; background: var(--felt); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); flex: none; }

.rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: start; }
.tile {
  background: var(--paper); color: var(--ink); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-tile);
  display: flex; flex-direction: column; align-items: center; padding-bottom: 12px; min-width: 0;
}
/* M8d (landing3): the live tile's picture is inside its button (demo.js `.tile-btn`, display: contents),
   so this rule names both. (`.tile > img` alone never matched the live tiles: the deck face was
   squashed into an ellipse and the two art tiles ran at the art's own ratio.) The picture box is the
   art's own ratio, so a card's picture is whole, never cropped. */
.tile > img, .tile-btn > img { width: 100%; height: auto; aspect-ratio: 1376 / 768; object-fit: cover; }
.tile .tile-deck { aspect-ratio: 1376 / 768; object-position: center 50%; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px; margin-top: 10px; border-radius: 20px;
  font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1; white-space: nowrap; max-width: calc(100% - 12px);
}
.chip img { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 2px #FFFFFF; flex: none; }
.chip-why { background: var(--marigold); color: var(--ink); }
.chip-else { background: var(--sky); color: var(--ink); }
.chip-surprise { background: var(--coral); color: #FFFFFF; }
.tile-q { display: none; font-size: 15px; line-height: 1.3; color: var(--ink-soft); text-align: center; padding: 8px 12px 0; text-wrap: balance; }
.table-note { max-width: 640px; margin: 28px auto 0; color: var(--on-felt-soft); font-size: 16px; }

/* M4 (landing3): the phone's rail is the app's own phone row (Table.tsx PHONE_TILES): three tiles
   across, each the whole picture in a rounded frame with a small label under it, no face, no question
   (the button's aria-label carries it). The old picture-left rows cropped the art and wrapped the
   question out of the tile. */
@media (max-width: 479px) {
  .rail { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tile { padding: 6px 6px 8px; border-radius: 18px; }
  .tile > img, .tile-btn > img { border-radius: 12px; }
  .chip { height: 30px; font-size: 15px; padding: 0 10px; gap: 0; margin-top: 8px; max-width: 100%; }
  .chip img { display: none; }
  .tile-q { display: none; }
}
@media (max-width: 399px) {
  .chip { font-size: 14px; padding: 0 8px; }
}
/* the device suite's FOLD rule on an iPhone SE (375 wide, 553 tall under Safari's bars): the two hero
   buttons stacked cost a 62px row and pushed the card's question below the first screen. A little less
   padding and type keeps them on one row from 360 up; narrower than that they still wrap. */
@media (max-width: 399px) {
  .cta-row { gap: 10px 8px; }
  .cta-row .btn { padding: 0 16px; font-size: 18px; }
}
@media (max-width: 339px) {
  .chip { font-size: 13px; padding: 0 6px; }
}
@media (min-width: 700px) {
  .hero { padding: 56px 0 72px; }
  .card { padding: 24px 32px 28px; }
  .card-q { font-size: 34px; margin-top: 20px; }
  .card-a { font-size: 22px; margin-top: 16px; }
  .card-tab { left: 36px; height: 46px; font-size: 22px; }
  .tile-q { display: block; min-height: calc(2.6em + 8px); } /* M8b: two lines' room (plus its top padding), so the three tiles match */
  .rail { gap: 16px; }
}
@media (min-width: 960px) {
  .table { grid-template-columns: minmax(0, 1fr) 236px; gap: 26px; align-items: start; margin-top: 56px; }
  .rail { grid-template-columns: 1fr; gap: 22px; }
  .card-q { font-size: 36px; }
  .card-a { font-size: 23px; }
}

/* ---------- three things a card does ---------- */
.three { padding: 56px 0; }
.three-list { display: grid; gap: 32px; }
.three-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 18px; align-items: start; }
.three-list h3 { font-size: 24px; grid-column: 2; }
.three-list p { grid-column: 2; color: var(--ink); }
.three-face { grid-row: 1 / span 2; width: 64px; height: 64px; border-radius: 32px; display: inline-flex; align-items: center; justify-content: center; }
.three-face svg { width: 36px; height: 36px; }
.three-face-check { background: var(--felt); color: #FFFFFF; }
.three-face-voice { background: var(--marigold); color: var(--ink); }
.three-face-ways { background: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 64px; height: 64px; }
.three-face-ways img { width: 31px; height: 31px; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.three-face-ways img:last-child { grid-column: 1 / -1; justify-self: center; }
@media (min-width: 860px) {
  .three { padding: 72px 0; }
  .three-list { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .three-list li { grid-template-columns: 1fr; gap: 12px; }
  .three-list h3, .three-list p { grid-column: 1; }
  .three-face { grid-row: auto; margin-bottom: 4px; }
}

/* ---------- the shelf: sixteen journals on wood ---------- */
.shelf { padding: 56px 0 64px; text-align: center; }
/* the three in-page targets: a heading never lands under the top edge */
#subjects, #gift, #price, #waitlist { scroll-margin-top: 16px; }
.shelf h2 { font-size: clamp(28px, 4.5vw, 40px); }
.shelf .lede-paper { max-width: 680px; margin: 12px auto 0; font-size: clamp(16px, 2vw, 19px); }
.shelves { display: grid; gap: 8px 24px; margin-top: 40px; }
.journals {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 10px 14px;
  align-items: end;
}
.journals::after {
  content: ""; display: block; grid-column: 1 / -1; width: calc(100% + 20px); margin: -10px -10px 0; aspect-ratio: 1200 / 151;
  background: url("img/shelf-wood.webp") center / 100% 100% no-repeat;
}
.journals::before {
  content: ""; display: block; grid-row: 2; grid-column: 1 / -1; width: calc(100% + 20px); margin: -10px -10px 4px; aspect-ratio: 1200 / 151;
  background: url("img/shelf-wood.webp") center / 100% 100% no-repeat;
}
.shelf-wood { display: none; }
.journal { position: relative; aspect-ratio: 61 / 100; text-align: left; transition: transform .25s var(--ease); }
.journal:hover { transform: translateY(-6px); }
.j-cover {
  position: absolute; inset: 0; border-radius: 10px; overflow: hidden; background: var(--jc, #5B6B6B);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35); display: block;
  container-type: inline-size; /* the name below sizes itself to this cover's width (cqw) */
}
.j-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.j-cover .j-wide { height: 75%; object-position: center; background: #FFFDF7; }
.j-name {
  position: absolute; left: 0; right: 0; bottom: 0; min-height: 26%; padding: 4px 4px; display: flex; align-items: center; justify-content: center;
  background: var(--jc, #5B6B6B); color: #FFFFFF; text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  font-family: var(--display); font-weight: 600; font-size: 12px; line-height: 1.1; text-align: center;
  overflow-wrap: normal; hyphens: none; /* M8a: a name wraps at a space, never inside a word ("Dinosau-rs" at 360) */
  /* l7: sized to the cover so the longest word fits whole. "Superpowers" is 5.83em of Fredoka 600, so a
     name is (cover - padding) / 5.9 wide, 10px at the least and 16px at the most (measured: 320 → 10px,
     412 → 13px, 820 → 11.6px, 1280 → 16px). A vw size cannot do this: the cover's width jumps when the
     shelf goes from four across to eight. */
  font-size: clamp(10px, calc((100cqw - 8px) / 5.9), 16px);
}
@media (max-width: 399px) { .j-name { padding: 4px 1px; letter-spacing: -.01em; font-size: clamp(10px, calc((100cqw - 2px) / 5.8), 16px); } }
.j-free {
  position: absolute; right: -6px; top: -8px; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--marigold); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 14px; line-height: 26px; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); transform: rotate(6deg);
}
/* l7: eight across from 800, not 700: at 700-799 an eighth of the shelf is a 62-70px cover, too narrow for
   "Superpowers" whole even at 11px (it needs 72). Four across there, as on a phone. */
@media (min-width: 800px) {
  .journals { grid-template-columns: repeat(8, 1fr); gap: 16px; padding: 0 16px 20px; }
  .journals::before { display: none; }
  .journals::after { width: calc(100% + 32px); margin: -14px -16px 0; }
}
@media (min-width: 960px) {
  .shelves { gap: 16px 32px; }
}
.asks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin: 40px auto 0; max-width: 900px; }
.asks li {
  background: var(--paper); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.2;
  padding: 10px 16px; border-radius: 14px; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); transform: rotate(-1.5deg);
}
.asks li:nth-child(even) { transform: rotate(1.5deg); }
@media (min-width: 700px) { .asks li { font-size: 18px; padding: 12px 20px; } }

/* ---------- for grown-ups ---------- */
.grown { padding: 56px 0; }
.grown-grid { display: grid; gap: 32px; }
.kicker { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--felt); }
.grown h2 { font-size: clamp(28px, 4.5vw, 40px); margin-top: 8px; }
.grown-text p + p { margin-top: 14px; }
.grown-text h2 + p { margin-top: 18px; }
.grown-text .btn { margin-top: 24px; }
.nots { display: grid; gap: 14px; align-content: start; }
.nots li {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: center;
  background: var(--paper-2); border-radius: 20px; padding: 14px 16px;
}
.not-x {
  width: 48px; height: 48px; border-radius: 24px; background: var(--coral); color: #FFFFFF;
  font-family: var(--display); font-weight: 600; font-size: 17px; display: inline-flex; align-items: center; justify-content: center;
}
@media (min-width: 860px) {
  .grown { padding: 80px 0; }
  .grown-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
}

/* ---------- price: a quiet free card on paper, and the felt panel that shows what paid buys ---------- */
.price { padding: 8px 0 64px; }
.price h2 { font-size: clamp(26px, 4vw, 36px); text-align: center; max-width: 820px; margin: 0 auto; }
.plans { display: grid; gap: 20px; margin-top: 32px; max-width: 980px; margin-left: auto; margin-right: auto; align-items: start; }
.plan { border: 2px solid var(--rule); border-radius: 24px; padding: 24px; background: var(--paper); display: flex; flex-direction: column; min-width: 0; }
.plan-kicker { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--felt); }
.plan-count { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; font-family: var(--display); font-weight: 600; line-height: 1; }
.plan-count b { font-size: 44px; font-weight: 600; letter-spacing: -.01em; }
.plan-count span { font-size: 20px; font-weight: 500; color: var(--ink-soft); }

/* the free card: paper, quiet; first on the wide grid, under the paid panel on the phone */
.plan-free { order: 2; }
.plan-free .plan-lede { margin-top: 12px; color: var(--ink); font-size: 17px; }
.plan-free .btn { margin-top: 22px; align-self: flex-start; }
.plan-free .plan-also { margin-top: 14px; font-size: 15px; color: var(--ink-soft); }

/* the paid panel: felt, the one object on the page */
.plan-full { order: 1; background: var(--felt); color: var(--on-felt); border: none; padding: 28px 24px; box-shadow: 0 16px 40px rgba(31, 107, 94, .28); position: relative; overflow: hidden; }
.plan-full .plan-kicker { color: var(--marigold-on-felt); }
.plan-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.plan-full .plan-count { flex-wrap: wrap; row-gap: 0; }
.plan-full .plan-count b { font-size: 64px; color: #FFFFFF; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.plan-full .plan-count span { color: var(--on-felt-soft); font-size: 22px; }

/* the fan: five real cards, small (the first page's precached art/title/ copies) */
.fan { position: relative; width: 150px; height: 110px; flex: none; }
.fan-card { position: absolute; left: 44px; top: 10px; width: 62px; height: 84px; border-radius: 7px; background: #FFFDF7; overflow: hidden; box-shadow: 0 8px 16px rgba(0, 0, 0, .35); transform-origin: 50% 120%; }
.fan-card img { width: 100%; height: 38px; object-fit: cover; display: block; }
.fan-card i { display: block; height: 6px; margin: 6px 8px 0; border-radius: 3px; background: var(--rule); }
.fan-card i + i { width: 60%; }
.fan-card:nth-child(1) { transform: rotate(-22deg); }
.fan-card:nth-child(2) { transform: rotate(-11deg); }
.fan-card:nth-child(4) { transform: rotate(11deg); }
.fan-card:nth-child(5) { transform: rotate(22deg); }

/* M7 (landing3): four of the shelf's covers, big enough to read, and a fifth tile that counts the rest.
   (The strip of all sixteen at 16px wide was a row of coloured bands.) The covers reuse the shelf's
   .j-cover / .j-name, so they are the same journals a visitor just scrolled past. */
.covers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 18px; max-width: 540px; }
.covers li { position: relative; aspect-ratio: 61 / 100; min-width: 0; }
.covers .j-cover { border-radius: 8px; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
.covers .j-name { padding: 4px 2px; font-size: clamp(10px, calc((100cqw - 4px) / 4.5), 15px); } /* the longest here, "Dinosaurs", is 4.47em */
/* l7: under 360 a fifth of the row is a 42px cover and "Dinosaurs" would need 8px type. Drop the "+12"
   tile there (the line under the row says "All sixteen subjects") and give the four covers its room. */
@media (max-width: 359px) {
  .covers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .covers li:last-child { display: none; }
}
.cover-more {
  position: absolute; inset: 0; border-radius: 8px; border: 2px dashed rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .1);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #FFFFFF;
  font-family: var(--display); font-weight: 600; line-height: 1;
}
.cover-more b { font-size: clamp(22px, 6vw, 30px); font-weight: 600; }
.cover-more span { font-size: clamp(12px, 3vw, 15px); color: var(--on-felt-soft); }
.strip-line { margin-top: 10px; font-family: var(--display); font-weight: 600; font-size: 17px; color: #FFFFFF; }

/* the four lines, each with a marigold disc and an ink tick */
.plan-ticks { display: grid; gap: 10px; margin-top: 18px; }
.plan-ticks li { position: relative; padding-left: 32px; font-size: 17px; line-height: 1.4; color: var(--on-felt); }
.plan-ticks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 11px; background: var(--marigold); }
.plan-ticks li::after { content: ""; position: absolute; left: 6px; top: 6px; width: 9px; height: 5px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg); }

/* the price (owner, 2026-11-12: $4.99, no struck price; the same markup on /gift/, styled for paper in gift.css):
   "$4.99, one time. No subscription. 14-day refund." — the amount large, the rest of the sentence in the fine voice. */
.plan-full .hp { margin-top: 22px; }
.plan-full .hp-p { line-height: 1.25; }
.plan-full .hp-now { font-family: var(--display); font-weight: 600; font-size: 44px; color: #FFFFFF; letter-spacing: -.01em; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.plan-full .hp-once { font-size: 18px; color: var(--on-felt-soft); }
.hp-nb { white-space: nowrap; } /* "14-day refund." never breaks at its hyphen */
.plan-full .plan-ctas { margin-top: 16px; }
.plan-full .plan-ctas .btn { width: 100%; }
.plan-full .plan-fine { color: var(--on-felt-soft); margin-top: 10px; }
.plan-full .plan-err { color: #FFD9D0; margin-top: 8px; }

@media (max-width: 699px) {
  .plan-full .plan-count b { font-size: 54px; }
  .fan { width: 112px; height: 86px; }
  .fan-card { left: 33px; top: 8px; width: 46px; height: 64px; border-radius: 5px; }
  .fan-card img { height: 28px; }
  .fan-card i { height: 4px; margin: 5px 6px 0; }
}
@media (min-width: 700px) {
  .price { padding: 24px 0 88px; }
  .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 20px; }
  .plan-free, .plan-full { order: 0; }
  .plan-full { padding: 32px; }
  .plan-full .plan-ctas .btn { width: auto; min-width: 280px; }
}
@media (min-width: 860px) {
  .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 24px; }
  .plan-free { padding: 32px 28px; }
  .plan-full .plan-count b { font-size: 72px; }
}

/* ---------- the printed box set (the list): the grown-up corner's box, on the felt band ---------- */
.wait { padding: 56px 0 64px; }
.wait-wrap { display: grid; gap: 24px; align-items: center; }
.wait-art { display: flex; justify-content: center; min-width: 0; }
.wait .kicker { color: var(--marigold); }
.wait h2 { font-size: clamp(26px, 4.5vw, 38px); margin-top: 6px; }
.wait .lede-paper { margin-top: 12px; max-width: 540px; }
.wait-form, .wait-done {
  background: var(--paper); color: var(--ink); border-radius: 24px; padding: 20px; margin-top: 20px; max-width: 560px;
  box-shadow: var(--shadow-card);
}
.wait-row { display: grid; gap: 10px; }
.wait-row input {
  width: 100%; min-height: 56px; padding: 0 18px; border-radius: 16px; border: 2px solid var(--rule); background: #FFFFFF;
  font: inherit; font-size: 18px; color: var(--ink);
}
.wait-row input::placeholder { color: #7A8787; }
.wait-row input:focus { outline: none; border-color: var(--felt); box-shadow: 0 0 0 4px rgba(246, 183, 60, .55); }
.wait-row input[aria-invalid="true"] { border-color: var(--coral); }
.wait-err { color: #B2371F; font-weight: 700; margin-top: 10px; }
.wait-fine { margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.wait-done { display: grid; gap: 12px; justify-items: start; }
.wait-done:focus { outline: none; }
.wait-done-face { width: 64px; height: 64px; border-radius: 32px; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.wait-done-face img { width: 64px; height: 64px; }
.wait-done p { font-size: 18px; }
@media (min-width: 600px) {
  .wait-form, .wait-done { padding: 28px; }
  .wait-row { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (min-width: 860px) {
  .wait { padding: 72px 0 80px; }
  .wait-wrap { grid-template-columns: 440px minmax(0, 1fr); gap: 48px; }
  .wait-art { justify-content: flex-start; }
}

/* the box: app/src/grownups/corner.css's .bx-* pieces verbatim (a 340 x 288 stage), with <img> for CardPic,
   scaled by --k (index.html's inline script: x1.3 from 860px, x1 below, shrunk under 340px) */
.bx-wrap { position: relative; width: 340px; height: 288px; flex: none; }
.bx-stage { position: absolute; left: 0; top: 0; width: 340px; height: 288px; transform-origin: 0 0; transform: scale(var(--k, 1)); }
.bx-stage * { box-sizing: border-box; }
.bx-back { position: absolute; left: 70px; top: 58px; width: 220px; height: 62px; border-radius: 10px 10px 0 0; background: #0E3A33; }
.bx-div { position: absolute; left: 80px; width: 200px; height: 90px; border-radius: 8px; }
.bx-div > span { position: absolute; top: -24px; height: 25px; padding: 0 10px; border-radius: 8px 8px 0 0; background: inherit; display: flex; align-items: center; font-family: var(--display); font-weight: 600; font-size: 11px; color: #1E2A2A; white-space: nowrap; }
.bx-front { position: absolute; left: 58px; top: 96px; width: 244px; height: 118px; border-radius: 12px; background: #164F45; box-shadow: 0 16px 32px rgba(0, 0, 0, .42), inset 0 2px 0 rgba(255, 255, 255, .08); display: flex; justify-content: center; padding-top: 17px; }
.bx-front img { width: 136px; height: auto; display: block; align-self: flex-start; }
.bx-card { position: absolute; width: 104px; height: 140px; border-radius: 10px; background: #FBFBF3; overflow: hidden; box-shadow: 0 12px 24px rgba(0, 0, 0, .38); }
.bx-card > img { display: block; width: 104px; height: 64px; object-fit: cover; }
.bx-card .bx-q { padding: 8px 8px 0; font-family: var(--display); font-weight: 600; font-size: 11px; line-height: 1.15; color: #1E2A2A; text-align: center; text-wrap: balance; }
.bx-card.bx-small { width: 80px; height: 108px; border-radius: 8px; box-shadow: 0 8px 18px rgba(0, 0, 0, .32); }
.bx-card.bx-small > img { width: 80px; height: 50px; }
.bx-card.bx-small .bx-q { font-size: 9px; padding: 6px 6px 0; }
.bx-card.bx-back-of { padding: 12px 10px; display: flex; flex-direction: column; gap: 5px; }
.bx-card.bx-back-of b { font-family: var(--display); font-weight: 600; font-size: 8px; letter-spacing: .08em; color: #1F6B5E; }
.bx-card.bx-back-of i { font-style: normal; font-size: 9.5px; line-height: 1.35; color: #1E2A2A; }
@media (min-width: 860px) { .wait-art .bx-wrap { width: 442px; height: 374px; } .wait-art .bx-stage { --k: 1.3; } }

/* ---------- footer ---------- */
.foot { background: var(--felt-deep); color: var(--on-felt); padding: 32px 0 40px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot-mark { height: 24px; width: auto; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .25)); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--display); font-weight: 500; font-size: 16px; color: var(--on-felt); text-decoration: none; padding: 8px 12px; border-radius: 18px; }
.foot nav a:hover { background: rgba(255, 255, 255, .1); text-decoration: underline; }
.foot nav a:focus-visible { outline: 4px solid var(--marigold); outline-offset: 0; }
.foot-note { margin-left: auto; color: var(--on-felt-soft); font-size: 15px; }

/* ---------- a legal page (privacy, terms): the same frame, one column of paper ---------- */
.legal-main { padding: 40px 0 72px; }
.legal-main .wrap { max-width: 760px; }
.legal-main h1 { font-size: clamp(30px, 5vw, 44px); }
.legal-main .updated { color: var(--ink-soft); margin-top: 8px; font-size: 16px; }
.legal-main h2 { font-size: 26px; margin-top: 40px; }
.legal-main h3 { font-size: 20px; margin-top: 24px; }
.legal-main p, .legal-main li { margin-top: 12px; font-size: 18px; line-height: 1.55; }
.legal-main ul, .legal-main ol { padding-left: 24px; list-style: disc; }
.legal-main ol { list-style: decimal; }
.legal-main a { color: var(--felt); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal-main a:focus-visible { outline: 4px solid var(--marigold); outline-offset: 2px; border-radius: 4px; }

/* ---------- motion: none of it for a reader who asked for less (the sample card's tiles too) ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn, .journal, .tile { transition: none !important; }
  .btn:hover, .journal:hover, .btn:active { transform: none; }
}

/* ---------- A · the gift band (2026-11-08): pale marigold, the corner's "paid" warmth, between For grown-ups
   and the price. For the visitor who is not the parent: a picture of the printed card and one button ---------- */
.gift-band { background: #FFF4D6; color: var(--ink); padding: 56px 0 60px; }
.gift-wrap { display: grid; gap: 28px; align-items: center; }
.gift-art { display: flex; justify-content: center; min-width: 0; padding: 4px 8px 16px; }
.gift-art img { width: min(100%, 440px); height: auto; border-radius: 4.5%/6.3%; box-shadow: 0 24px 48px rgba(0, 0, 0, .22); transform: rotate(-2.5deg); }
.gift-band .kicker { color: var(--felt); }
.gift-band h2 { font-size: clamp(28px, 4.5vw, 40px); margin-top: 8px; }
.gift-band .gift-lede { margin-top: 16px; font-size: 18px; max-width: 540px; }
.gift-band .btn { margin-top: 24px; }
.gift-fine { margin-top: 14px; font-size: 15px; line-height: 1.45; color: var(--ink-soft); max-width: 540px; }
@media (min-width: 860px) {
  .gift-band { padding: 72px 0 76px; }
  .gift-wrap { grid-template-columns: 460px minmax(0, 1fr); gap: 56px; }
  .gift-art { justify-content: flex-start; }
}
/* the band sits right above the price, so the price gets its own top air back (it had 8px under the grown-ups band) */
.gift-band + .price { padding-top: 56px; }
/* the top bar's fourth word, at the widths where it fits */
.top-nav .nav-gift { display: none; }
@media (min-width: 960px) { .top-nav .nav-gift { display: inline-flex; } }
