/* The postcard's companion page: one page for the partner's community, in the
   website's design (owner, 2026-10-21: "update the long form to be a companion
   to the postcard"; "Look must now match the website design as well and color
   scheme"). Loaded after kit.css, which sets the sheet (Letter or A4), the
   toolbar and printing. The website's tokens: cream ground #fffbf5, the hero's
   violet glow, the headline's indigo-to-violet emphasis, uppercase indigo
   eyebrows, the dark phone frame, cards with a 24 px radius and a warm line. */

.cp {
  --cp-ink: #0f172a;
  --cp-body: #475569;
  --cp-muted: #64748b;
  --cp-line: #f1e7d8;
  --cp-cream: #fffbf5;
  --cp-indigo: #4F46E5;
  --cp-violet: #8b5cf6;
  --cp-lavender: #f5f3ff;
  background: var(--cp-cream);
  color: var(--cp-ink);
  display: flex;
  flex-direction: column;
  padding: 0.34in 0.5in 0.3in;
  gap: 0.16in;
}
.cp .eyebrow { font-size: 9pt; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cp-indigo); margin: 0; }

/* Top line: the logo, and who the page is for. */
.cp-top { display: flex; align-items: center; justify-content: space-between; }
.cp-top .logo { height: 0.62in; width: auto; }
.cp-top .pill { font-size: 8.5pt; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cp-indigo); background: #eef2ff; border-radius: 999px; padding: 6px 12px; }

/* The hero: the website's wash and headline, a real app screen. */
.cp-hero {
  display: grid; grid-template-columns: 1fr 1.5in; gap: 0.3in; align-items: center;
  margin: 0 -0.5in; padding: 0.16in 0.5in 0.18in;
  background: radial-gradient(ellipse 70% 70% at 88% 12%, rgba(139,92,246,0.14), transparent 70%), linear-gradient(180deg, #fffbf5 0%, #fff7ed 100%);
  border-top: 1px solid var(--cp-line); border-bottom: 1px solid var(--cp-line);
}
.cp-hero h1 { font-size: 27pt; line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 12px; }
.cp-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--cp-indigo), var(--cp-violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cp-hero .lead { font-size: 11.5pt; line-height: 1.55; color: var(--cp-body); font-weight: 500; margin: 0; }
.cp-phone { width: 1.38in; aspect-ratio: 720 / 1565; border: 5px solid #0f172a; border-radius: 22px; overflow: hidden; background: #0f172a; box-shadow: 0 16px 36px rgba(67,56,202,0.26); justify-self: end; }
.cp-phone img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* How it works: numbered cards. */
.cp h2 { font-size: 15pt; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.cp-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.12in; counter-reset: step; }
.cp-steps li { counter-increment: step; background: #ffffff; border: 1px solid var(--cp-line); border-radius: 18px; padding: 12px 12px 14px; font-size: 9.5pt; line-height: 1.45; color: var(--cp-body); }
.cp-steps li::before { content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--cp-indigo); color: #ffffff; font-weight: 800; font-size: 10pt; margin-bottom: 8px; }
.cp-steps li b { color: var(--cp-ink); font-weight: 700; }

/* Why families like it, and what the organization gets. */
.cp-two { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0.16in; }
.cp-card { background: #ffffff; border: 1px solid var(--cp-line); border-radius: 22px; padding: 14px 16px; }
.cp-card h3 { font-size: 12pt; font-weight: 800; margin: 0 0 8px; }
.cp-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.cp-card li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 9.5pt; line-height: 1.45; color: var(--cp-body); }
.cp-card li svg { width: 16px; height: 16px; margin-top: 1px; }
.cp-card li b { color: var(--cp-ink); font-weight: 700; }
.cp-card.cp-org { background: linear-gradient(160deg, #f5f3ff 0%, #eef2ff 100%); border-color: #e0e7ff; }
.cp-card.cp-org p { font-size: 10pt; line-height: 1.55; color: var(--cp-body); margin: 0; }
.cp-card.cp-org p b { color: var(--cp-ink); }

/* The footer band: the QR code to the partner's page, the stores, the founder. */
.cp-foot { margin-top: auto; display: grid; grid-template-columns: auto 1fr auto; gap: 0.22in; align-items: center; background: #ffffff; border: 1px solid var(--cp-line); border-radius: 22px; padding: 14px 18px; }
.cp-foot .qr, .cp-foot .qr-drawn { width: 1.15in; height: 1.15in; display: block; }
.cp-foot .qr-drawn svg { width: 100%; height: 100%; display: block; }
.cp-foot .cta { font-size: 12pt; font-weight: 800; color: var(--cp-ink); line-height: 1.3; }
/* A long short address breaks after a hyphen, not inside a word. */
.cp-foot .url { font-size: 10.5pt; font-weight: 700; color: var(--cp-indigo); margin-top: 4px; word-break: normal; overflow-wrap: anywhere; }
.cp-foot .quote { font-size: 8.5pt; color: var(--cp-muted); margin-top: 8px; line-height: 1.45; }
.cp-foot .stores { display: grid; gap: 8px; justify-items: end; }
.cp-foot .badges { display: flex; gap: 6px; }
.cp-foot .badges img { height: 0.36in; width: auto; }
.cp-foot .stripe { height: 0.24in; width: auto; }
.cp-legal { font-size: 7.5pt; color: var(--cp-muted); text-align: center; margin: 0; }

/* A4 is a little taller and narrower: same layout. */
.sheet.a4.cp { padding: 0.36in 0.46in 0.32in; }

/* A long partner name: kit.js (fitCompanion) tightens the page one step, then
   a second, until it fits on one sheet. */
.sheet.cp.cp-tight { gap: 0.12in; padding-top: 0.28in; padding-bottom: 0.24in; }
.cp.cp-tight .cp-hero { padding-top: 0.12in; padding-bottom: 0.14in; grid-template-columns: 1fr 1.3in; }
.cp.cp-tight .cp-phone { width: 1.2in; }
.cp.cp-tight .cp-hero h1 { font-size: 24pt; margin-bottom: 8px; }
.cp.cp-tight .cp-hero .lead { font-size: 10.5pt; line-height: 1.5; }
.cp.cp-tight .cp-steps li { font-size: 9pt; padding: 10px 10px 12px; }
.cp.cp-tight .cp-steps li::before { margin-bottom: 6px; }
.cp.cp-tight .cp-card { padding: 12px 14px; }
.cp.cp-tight .cp-card li { font-size: 9pt; }
.cp.cp-tight .cp-card ul { gap: 5px; }
.cp.cp-tighter .cp-hero h1 { font-size: 22pt; }
.cp.cp-tighter .cp-hero .lead { font-size: 10pt; }
.cp.cp-tighter .cp-foot .quote { display: none; }
.cp.cp-tighter .cp-foot .qr, .cp.cp-tighter .cp-foot .qr-drawn { width: 1in; height: 1in; }

/* A drawing of the moment instead of the phone (owner, 2026-10-21: the
   families flyer, then every companion page). */
.cp.cp-has-art .cp-hero { grid-template-columns: 1fr 2.75in; }
.cp-art { border-radius: 0.2in; overflow: hidden; height: 2.05in; box-shadow: 0 0.06in 0.2in rgba(79, 70, 229, 0.16); }
.cp-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cp.cp-has-art.cp-tight .cp-hero { grid-template-columns: 1fr 2.45in; }
.cp.cp-has-art.cp-tight .cp-art { height: 1.8in; }
.cp.cp-has-art.cp-tighter .cp-art { height: 1.6in; }
.cp-clip p { font-size: 9.5pt; line-height: 1.5; color: var(--cp-body); margin: 0 0 6px; }
.cp-clip p b { color: var(--cp-ink); font-weight: 700; }
.cp-clip-pic { display: block; width: 100%; aspect-ratio: 960 / 384; object-fit: cover; border-radius: 14px; margin: 0 0 10px; }
/* No empty band above the footer (owner, 2026-10-21): the two cards take the
   page's free space, the list spreads, the partner card centres its text. */
.cp-has-art .cp-two { flex: 1; }
.cp-has-art .cp-two > .cp-card { display: flex; flex-direction: column; }
.cp-has-art .cp-two > .cp-card:first-child ul { flex: 1; align-content: space-evenly; }
.cp-has-art .cp-two > .cp-card.cp-org:not(.cp-clip) { justify-content: center; }

/* How it works: the steps beside two phones — the organizer's app and the
   website's contribute page (owner, 2026-10-22: "a view of the app itself and
   the contribute page of the website"). */
.cp-how { display: grid; grid-template-columns: 1fr 2.6in; gap: 0.24in; align-items: center; }
.cp-how h2 { font-size: 15pt; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 8px; }
.cp-how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; counter-reset: step; }
.cp-how li { counter-increment: step; display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; background: #ffffff; border: 1px solid var(--cp-line); border-radius: 16px; padding: 8px 12px; font-size: 9.3pt; line-height: 1.42; color: var(--cp-body); }
.cp-how li::before { content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--cp-indigo); color: #ffffff; font-weight: 800; font-size: 10pt; }
.cp-how li b { color: var(--cp-ink); font-weight: 700; }
.cp-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 0.14in; }
.cp-shot { margin: 0; text-align: center; }
/* Specific enough to beat the hero phone's tightened widths (.cp.cp-tight .cp-phone). */
.cp .cp-shots .cp-shot .cp-phone { width: 100%; justify-self: auto; border-width: 4px; border-radius: 18px; }
.cp-shot figcaption { margin-top: 6px; font-size: 7.6pt; line-height: 1.3; font-weight: 700; color: var(--cp-muted); }
.cp.cp-tight .cp-how li { padding: 6px 10px; font-size: 8.9pt; }
.cp.cp-tight .cp-how { grid-template-columns: 1fr 2.25in; }
.cp.cp-tighter .cp-how li { font-size: 8.6pt; line-height: 1.38; }
.cp.cp-tighter .cp-how { grid-template-columns: 1fr 2.05in; }
/* The third step (a long name and a full page): smaller drawing, type and phones. */
.cp.cp-tightest { gap: 0.1in; padding-top: 0.26in; padding-bottom: 0.22in; }
.cp.cp-tightest .cp-top .logo { height: 0.5in; }
.cp.cp-tightest .cp-art { height: 1.45in; }
.cp.cp-tightest .cp-hero h1 { font-size: 20pt; margin-bottom: 6px; }
.cp.cp-tightest .cp-hero .lead { font-size: 9.6pt; line-height: 1.45; }
.cp.cp-tightest .cp-how { grid-template-columns: 1fr 1.9in; }
.cp.cp-tightest .cp-how li { font-size: 8.3pt; padding: 5px 9px; }
.cp.cp-tightest .cp-how ol { gap: 5px; }
.cp.cp-tightest .cp-card { padding: 10px 14px; }
.cp.cp-tightest .cp-card li { font-size: 8.8pt; line-height: 1.38; }
.cp.cp-tightest .cp-card ul { gap: 5px; }

/* Round 3 (owner, 2026-10-22: "very busy"): one app screen beside plain steps,
   and the QR block as a square under the partner card instead of a band. */
.cp .cp-how.cp-how-one { grid-template-columns: 1fr 1.4in; gap: 0.3in; }
.cp-how-one ol { gap: 0; }
.cp-how-one li { background: none; border: 0; border-radius: 0; border-bottom: 1px solid var(--cp-line); padding: 8px 0; }
.cp-how-one li:last-child { border-bottom: 0; }
.cp .cp-how-one .cp-shot .cp-phone { width: 100%; justify-self: auto; border-width: 4px; border-radius: 18px; }
.cp.cp-tight .cp-how.cp-how-one { grid-template-columns: 1fr 1.3in; }
.cp.cp-tighter .cp-how.cp-how-one { grid-template-columns: 1fr 1.2in; }
.cp.cp-tightest .cp-how.cp-how-one { grid-template-columns: 1fr 1.1in; }
.cp.cp-tight .cp-how-one li, .cp.cp-tighter .cp-how-one li, .cp.cp-tightest .cp-how-one li { padding: 6px 0; }
.cp-side { display: grid; grid-template-rows: 1fr auto; gap: 0.14in; min-width: 0; }
.cp-side > .cp-org { display: flex; flex-direction: column; justify-content: center; }
/* Its own paragraph, with air above it: no frame (owner, 2026-10-22). */
.cp-org p.cp-adds-up { margin: 14px 0 0; font-size: 10.5pt; line-height: 1.45; font-weight: 800; color: var(--cp-ink); }
/* "Why families like it" fills its card with larger type rather than wide gaps
   (owner, 2026-10-22); beats the tightened sizes of .cp-card li. */
.cp.cp-has-art .cp-two > .cp-card:first-child h3 { font-size: 13pt; margin-bottom: 10px; }
.cp.cp-has-art .cp-two > .cp-card:first-child li { font-size: 10.2pt; line-height: 1.5; grid-template-columns: 20px 1fr; gap: 9px; }
.cp.cp-has-art .cp-two > .cp-card:first-child li svg { width: 18px; height: 18px; margin-top: 2px; }
.cp .cp-foot.cp-foot-sq { margin-top: 0; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "qr words" "stores stores"; gap: 10px 12px; align-items: center; padding: 12px 14px; }
.cp .cp-foot-sq .qr, .cp .cp-foot-sq .qr-drawn { grid-area: qr; width: 0.95in; height: 0.95in; }
.cp-foot-sq .cp-foot-words { grid-area: words; min-width: 0; }
.cp .cp-foot-sq .cta { font-size: 10pt; }
.cp .cp-foot-sq .url { font-size: 8.5pt; }
.cp .cp-foot-sq .stores { grid-area: stores; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cp .cp-foot-sq .badges img { height: 0.3in; }
.cp .cp-foot-sq .stripe { height: 0.2in; }
/* A screen cropped from the explainer video (no status bar): its own proportions. */
.cp .cp-phone.cp-phone-crop { aspect-ratio: 560 / 990; }
