/* Page-scoped styles for `/?p=publish`. The homepage and existing earn page remain unchanged. */

/*
 * The campaign palette. It extends the product tokens rather than inventing a second system: the
 * deep green is the only new surface, and everything else here is a value that reads correctly on
 * it. No rule below states a raw colour (D-188).
 */
/* `overflow-x: hidden` on the page element makes the page a scroll container, and iOS does not
   always clip a wider child inside one: the layout viewport grows to the child's width, the browser
   zooms out to fit it, and everything past the content is empty. `clip` clips without creating a
   scroll container, which is what was wanted in the first place. The reader lays its pages out in
   columns thousands of pixels wide, so this page has a child that will test it (D-204). */
.publish-page {
  --gets-warm: #fff8ef;
  --gets-cover-shadow: #18322d26;
  --publish-deep: #173b35;          /* campaign surface: hero, rights */
  --publish-deeper: #102721;        /* the footer beneath it */
  --publish-sage: #e8efe7;          /* one cool section between two warm ones */
  --publish-on-deep: #dbe6dc;       /* body text on the deep surface, 9.6:1 */
  --publish-on-deep-quiet: #b9cbc0; /* captions on the deep surface, 7.2:1 */
  --publish-line-deep: #7f9a8b;
  --publish-accent-lift: #f3a28e;   /* terracotta lifted to read on the deep surface, 6.1:1 */
  overflow-x: clip;
}

.publish-wrap { width: var(--container-wide); margin-inline: auto; }
.publish-header { position: relative; z-index: 2; }
/* The mark sits on the text baseline block, not above it, so the header stays one line tall. */
.publish-brand { display: inline-flex; align-items: center; gap: var(--space-2); }
.publish-brand img { display: block; width: 30px; height: auto; }
.publish-header nav { gap: var(--space-4); }
.publish-header nav a:not(.button) { text-decoration: none; color: var(--ink); }
.publish-header nav a:not(.button):hover { color: var(--accent-ink); }

.publish-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 6vw, 88px) clamp(40px, 5vw, 64px);
  background: var(--publish-deep);
  color: var(--cream);
}
.publish-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr); gap: clamp(40px, 7vw, 104px); align-items: center; }
.publish-hero-copy { max-width: 650px; }
/* Eyebrow removed (D-396). */
/* Three lines the reader takes in order: idea, sell, 15 minutes. The size is set by the longest
   of them against the left column, not by taste. At 1120px the column is 546px and the first line
   is the widest thing the hero has to fit. No `max-width` in characters, because the spans already
   decide where it breaks and a `ch` limit would fight them (D-306). */
.publish-hero h1 { margin-bottom: var(--space-5); font-size: clamp(2.4rem, 4.3vw, 3.5rem); line-height: 1.02; letter-spacing: -.045em; color: var(--cream); text-wrap: pretty; }
.publish-hero-title span { display: block; }
.publish-hero h1 em { color: var(--publish-accent-lift); font-style: normal; }
.publish-hero-lede strong { font-weight: 650; color: var(--cream); }
.publish-hero-lede { max-width: 52ch; margin-bottom: var(--space-6); font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.58; color: var(--publish-on-deep); text-wrap: balance; }
.publish-hero-side { display: grid; gap: var(--space-5); }
.publish-composer { border: 1px solid var(--publish-line-deep); background: var(--cream); box-shadow: 12px 16px 0 rgba(0,0,0,.12); }
.publish-composer > label { color: var(--ink); }
.publish-composer textarea { min-height: 122px; background: transparent; }
.quickstart-field-wrap { position: relative; background: var(--paper); border-radius: var(--radius-md); }
.quickstart-typer { position: absolute; inset: 0; padding: var(--space-3); pointer-events: none; color: var(--muted); font-size: var(--text-body-lg); line-height: 1.55; white-space: pre-wrap; overflow: hidden; }
.quickstart-typer:empty { display: none; }
.publish-composer .hero-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; color: var(--muted); text-wrap: balance; }
.publish-composer .hero-note span { white-space: nowrap; }
.publish-composer .hero-note [aria-hidden] { white-space: nowrap; }
.publish-hero-covers { padding-top: var(--space-5); }
.publish-hero-covers-label { display: block; margin-bottom: var(--space-4); font-size: var(--text-caption); letter-spacing: .1em; text-transform: uppercase; color: var(--publish-accent-lift); }
/* Side by side, not stacked. An overlapping fan hid two of the three covers it was showing. */
.publish-hero-covers-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.publish-hero-cover { display: block; width: 100%; height: auto; aspect-ratio: 2/3; object-fit: cover; border: 1px solid var(--publish-line-deep); }

.publish-platforms { padding-block: var(--space-5); border-bottom: 1px solid var(--line); background: var(--cream); }
.publish-platforms p { margin: 0 auto var(--space-4); text-align: center; font-size: var(--text-caption); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.publish-platforms ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-5) var(--space-6); margin: 0; padding: 0; list-style: none; }
.publish-platforms li { display: grid; justify-items: center; gap: var(--space-1); min-width: 70px; color: var(--muted); }
.publish-platforms svg { width: 24px; height: 24px; fill: currentColor; }
.publish-platforms li span { font-size: var(--text-caption); }

.publish-covers, .publish-outcomes, .publish-how, .publish-pricing, .publish-faq, .publish-reader, .publish-gets { padding-block: clamp(40px, 4.5vw, 68px); }

/* The product's own reader, dropped into the page. It brings its own styles from style.css; this
   only gives it a surface to sit on and a line of book metadata above it (D-195). */
/* Belt and braces: the reader's own section clips too, so a column flow cannot reach the page even
   if the rule above is not honoured. */
.publish-reader { overflow: clip; background: var(--cream); }
.publish-reader-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4); padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.publish-reader-meta strong { font-size: var(--text-h3); }
.publish-reader-meta span { font-size: var(--text-caption); color: var(--muted); }
.publish-reader-note { margin-top: var(--space-5); font-size: var(--text-caption); color: var(--muted); }
/* A page can be dragged, and nothing on screen said so. */
.publish-reader-hint { display: block; margin-bottom: var(--space-2); font-weight: 650; letter-spacing: .04em; color: var(--accent-ink); }
/* The page that admits it is a sample. Its button is the page's real one, so it is filled
   like every other call to action here, not outlined like the mock-ups in the steps. */
/* The closing card is the page after the last one, so it sits over the frame rather than inside the
   column flow. Its button is the page's real one, filled like every other call to action here. */
.publish-reader .reader-final { position: absolute; inset: 0; z-index: 2; display: grid; align-content: center; justify-items: center; gap: var(--space-3); padding: var(--space-6); background: var(--cream); text-align: center; }
.publish-reader .reader-final[hidden] { display: none; }
.publish-reader-end h2 { margin: 0; }
.publish-reader-end p { margin: 0; max-width: 44ch; color: var(--muted); }
.publish-reader-end .button { margin-top: var(--space-3); }
/* A section head is the asymmetric grid the principles ask for: the heading in the wide column, the
   sub-line bottom-aligned in the narrow one. Capped at a 62ch measure they squeezed themselves into
   the left third of a desktop, above content that ran the full width, and the headings broke into
   three short lines against an empty half (D-239). The sub-line spans two rows rather than `1 / -1`,
   which resolves against the explicit grid and would strand it beside the eyebrow. */
.publish-section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .62fr); column-gap: var(--space-7); align-items: end; margin-bottom: var(--space-6); }
.publish-section-intro > * { grid-column: 1; }
.publish-section-intro h2 { max-width: 26ch; font-size: var(--text-display-2); line-height: 1.02; letter-spacing: -.035em; }
.publish-section-intro > p:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; max-width: 42ch; color: var(--muted); font-size: var(--text-body-lg); }
.publish-covers { background: var(--paper); }
.publish-cover-shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); }
.publish-cover-shelf figure { min-width: 0; margin: 0; }
.publish-cover-shelf img { display: block; width: 100%; aspect-ratio: 2/3; object-fit: cover; border: 1px solid var(--line-strong); transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out); }
.publish-cover-shelf figure:hover img { position: relative; z-index: 1; transform: translateY(-6px) rotate(-1deg); box-shadow: 0 16px 28px rgba(24,50,45,.16); }
.publish-cover-shelf figcaption { display: grid; gap: var(--space-1); padding-top: var(--space-3); }
.publish-cover-shelf figcaption span { font-size: var(--text-caption); color: var(--muted); }
.publish-cover-shelf figcaption strong { font-size: var(--text-sm); line-height: 1.25; }
.publish-cover-note { margin-top: var(--space-6); font-size: var(--text-caption); color: var(--muted); }

.publish-outcomes { background: var(--cream); }
/* Not three cards in a row. One card carries the section and the other two support it: the sizes
   say which outcome matters, which a row of equals cannot (D-188). */
/* One row, three unequal cards. The lead one spanned two rows before, which made it as tall as the
   other two stacked and left a screen of empty green under its own paragraph. It earns its weight
   with width, colour and type size instead of with height it has nothing to fill (D-193). */
.publish-outcome-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: var(--space-4); }
.publish-outcome { display: flex; flex-direction: column; padding: var(--space-5); border: 1px solid var(--line); background: var(--paper); }
.publish-outcome-featured h3 { font-size: var(--text-h1); line-height: 1.04; letter-spacing: -.03em; }
.publish-outcome-featured p { font-size: var(--text-body); }
.publish-outcome-featured { padding: var(--space-5) var(--space-6); border-color: var(--ink); background: var(--publish-deep); color: var(--cream); }
.publish-outcome-number { margin-bottom: var(--space-4); font-size: var(--text-label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.publish-outcome-featured .publish-outcome-number { color: var(--publish-accent-lift); }
.publish-outcome h3 { margin: 0 0 var(--space-2); font-size: var(--text-h2); }
.publish-outcome p { margin: 0; color: var(--muted); font-size: var(--text-sm); }
.publish-outcome-featured p { color: var(--publish-on-deep); }
.publish-outcome-tag { margin-top: auto; padding-top: var(--space-5); font-size: var(--text-caption); font-weight: 650; color: var(--accent-ink); }
.publish-outcome-featured .publish-outcome-tag { color: var(--publish-accent-lift); }

/* What you get (D-303). Four equal cards: no featured tile, because none of the four is the reason
   somebody buys, and making one loud would be inventing a hierarchy the content does not have. */
.publish-gets { background: var(--gets-warm); }
.publish-gets .publish-wrap { container-type: inline-size; }
.publish-gets .publish-section-intro h2 { font-family: var(--font-ui); line-height: 1.12; letter-spacing: -.02em; }
.publish-gets .publish-section-intro h2 em { color: var(--accent-ink); font-style: normal; }
.publish-gets-grid { display: grid; grid-template-columns: 1fr 1.15fr .9fr 1fr; gap: 0; padding: 0; margin: 0; list-style: none; border: 1px solid var(--line); background: var(--cream); }
.publish-gets-stage { position: relative; min-width: 0; min-height: 320px; padding: var(--space-5); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--space-4); }
.publish-gets-stage:last-child { border-right: 0; }
.publish-gets-stage:nth-child(2) { background: var(--accent-wash); }
.publish-gets-stage:nth-child(3) { background: var(--publish-sage); }
.publish-gets-number { color: var(--accent-ink); font-size: .75rem; letter-spacing: .06em; }
.publish-gets-stage h3 { margin: 0 0 var(--space-2); font-size: var(--text-sm); font-weight: 700; }
.publish-gets-stage p { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.5; }
.publish-gets-visual { flex: 1; min-width: 0; min-height: 150px; display: flex; align-items: center; justify-content: center; }
.publish-gets-visual blockquote { margin: 0; max-width: 180px; font: 1.375rem/1.3 var(--font-book); transform: rotate(-3deg); }
.publish-gets-arrow { position: absolute; right: -14px; top: 50%; z-index: 4; display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent-ink); background: var(--gets-warm); }
.publish-gets-covers { position: relative; width: min(100%, 190px); height: 154px; }
.publish-gets-cover { position: absolute; top: 16px; width: 46%; aspect-ratio: 2/3; background: var(--ink); color: var(--cream); box-shadow: 2px 5px 9px var(--gets-cover-shadow); }
.publish-gets-cover:nth-child(1) { left: 3%; transform: rotate(-12deg); }
.publish-gets-cover:nth-child(2) { left: 27%; top: 0; z-index: 2; }
.publish-gets-cover:nth-child(3) { right: 2%; transform: rotate(12deg); }
.publish-gets-cover > span { display: block; padding: 12px 6px; font: .8rem/1.3 var(--font-book); }
.publish-gets-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; font-size: 0; }
.publish-gets-files { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 5px; }
.publish-gets-file { position: relative; display: flex; align-items: flex-end; justify-content: center; padding: 0 2px 14px; width: 100%; aspect-ratio: .7; border: 1px solid var(--line); background: var(--cream); color: var(--accent-ink); font-size: .875rem; font-weight: 700; clip-path: polygon(0 0, 75% 0, 100% 18%, 100% 100%, 0 100%); }
.publish-gets-file::before { content: ''; position: absolute; top: 0; right: 0; width: 25%; height: 18%; background: var(--line); }
.publish-gets-file::after { content: ''; position: absolute; left: 17%; right: 17%; top: 34%; height: 20%; border-block: 1px solid var(--line); }
.publish-gets-file:nth-child(2) { color: var(--ink); }
.publish-gets-file:nth-child(3) { color: var(--muted); }
.publish-gets-ownership { flex-direction: column; gap: var(--space-4); text-align: center; }
.publish-gets-ownership strong { font: 650 2.625rem/1.12 var(--font-ui); color: var(--accent-ink); letter-spacing: -.02em; }
.publish-gets-ownership > p { font-size: .75rem; }
.publish-gets-destinations { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.publish-gets-destinations li { display: flex; align-items: center; gap: 4px; font-size: .75rem; white-space: nowrap; }
.publish-gets-destinations svg { width: 16px; height: 16px; fill: currentColor; }
.publish-gets-callout { margin-top: var(--space-5); padding-block: var(--space-4); border-block: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); }
.publish-gets-callout p { margin: 0; color: var(--muted); }
.publish-gets-callout strong { color: var(--ink); }
.publish-gets-callout .button { flex-shrink: 0; }
/* Text enlargement can make a two-column panel narrower than twelve text units.
   Reflow only in that state; ordinary 320px phones retain the approved 2x2 grid. */
@container (max-width: 12em) {
  .publish-gets .publish-gets-grid { grid-template-columns: minmax(0, 1fr); }
  .publish-gets-stage { border: 1px solid var(--line); }
  .publish-gets-arrow { display: none; }
}
@media (max-width: 850px) {
  .publish-gets .publish-section-intro { display: block; }
  .publish-gets .publish-section-intro > p:last-child { margin-top: var(--space-4); }
  .publish-gets-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border: 0; background: transparent; }
  .publish-gets-stage, .publish-gets-stage:last-child { border: 1px solid var(--line); background: var(--cream); }
  .publish-gets-stage:nth-child(2) { background: var(--accent-wash); }
  .publish-gets-stage:nth-child(3) { background: var(--publish-sage); }
  .publish-gets-arrow { display: none; }
}
@media (max-width: 600px) {
  .publish-gets-stage { padding: 12px; min-height: 290px; gap: 12px; }
  .publish-gets-grid { gap: 10px; }
  .publish-gets-visual { min-height: 132px; }
  .publish-gets-visual blockquote { font-size: 1.125rem; }
  .publish-gets-stage p { font-size: .875rem; }
  .publish-gets-number { font-size: .6875rem; letter-spacing: .02em; }
  .publish-gets-ownership { gap: 10px; }
  .publish-gets-ownership strong { font-size: 2rem; }
  .publish-gets-ownership > p { font-size: .75rem; }
  .publish-gets-destinations { gap: 8px; }
  .publish-gets-covers { height: 130px; }
  .publish-gets-file { font-size: .75rem; padding-bottom: 8px; }
  .publish-gets-callout { align-items: stretch; flex-direction: column; gap: var(--space-4); }
  .publish-gets-callout .button { width: 100%; white-space: normal; }
}

.publish-how { background: var(--paper); }
.publish-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin: 0; padding: 0; list-style: none; }
.publish-steps li { display: grid; grid-template-rows: auto 1fr; gap: var(--space-4); }
.publish-steps .publish-step-copy { padding-top: var(--space-4); border-top: 2px solid var(--ink); }
.publish-steps .publish-step-copy > span { display: block; margin-bottom: var(--space-2); font-size: var(--text-label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.publish-steps h3 { margin: 0 0 var(--space-2); font-size: var(--text-h2); }
.publish-steps p { margin: 0; font-size: var(--text-sm); color: var(--muted); }

/* The screen each step describes, drawn in markup. Not a screenshot: a screenshot goes stale the
   first time the product is restyled, and nobody remembers to retake it (D-195). */
.publish-step-shot { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--cream); box-shadow: 0 12px 24px rgba(24, 50, 45, .08); }
.publish-step-chrome { display: flex; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line-strong); background: var(--paper); }
.publish-step-chrome i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.publish-step-screen { display: grid; gap: var(--space-4); min-height: 236px; padding: var(--space-5); align-content: start; }
.publish-step-screen > * { align-self: start; }
.publish-steps .publish-step-title { margin: 0; font-size: var(--text-sm); font-weight: 700; color: var(--ink); }
.publish-steps .publish-step-field { position: relative; margin: 0; padding: var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper); font-size: var(--text-caption); line-height: 1.6; color: var(--muted); }
.publish-step-field em { display: inline-block; width: 1px; height: 1em; margin-left: 2px; background: var(--accent-ink); vertical-align: -2px; }
.publish-steps .publish-step-button { justify-self: center; margin: var(--space-2) 0 0; padding: var(--space-3) var(--space-5); border: 1px solid var(--accent-ink); border-radius: var(--radius-sm); background: var(--accent-wash); text-align: center; font-size: var(--text-caption); font-weight: 700; color: var(--accent-ink); }
.publish-step-outline { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.publish-step-outline li { padding-left: var(--space-4); font-size: var(--text-caption); color: var(--muted); border-left: 2px solid var(--line); }
.publish-step-done { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-4); align-items: center; }
.publish-step-done img { width: 100%; height: auto; aspect-ratio: 2/3; object-fit: cover; border: 1px solid var(--line-strong); }
.publish-step-files { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.publish-step-files li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); text-align: left; }
.publish-step-file-icon { flex: 0 0 auto; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-wash); }
.publish-step-file-icon svg { width: 12px; height: 12px; fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.publish-step-files strong { flex: 1; font-size: var(--text-caption); font-weight: 700; color: var(--ink); }
.publish-step-files small { flex: 0 0 auto; font-size: var(--text-caption); font-variant-numeric: tabular-nums; color: var(--muted); }

/* One book, out to every shelf. The centre mark is the wordmark, because that is the brand mark
   this product actually has (D-195). */
.publish-distribution { padding-block: clamp(40px, 4.5vw, 68px); background: var(--paper); }
/* The shared ownership block sits on the page's own surface and keeps its own card. */
.publish-rights-block { padding-block: clamp(40px, 4.5vw, 68px); background: var(--cream); }
.publish-rights-block .rights { padding: 0; }
/* The comparison brings its own styles from style.css; this only gives it a surface. */
.publish-objection-block { padding-block: clamp(40px, 4.5vw, 68px); background: var(--paper); }
.publish-objection-block .objection { padding: 0; }

.publish-distribution-map { display: grid; justify-items: center; margin-top: var(--space-7); }
.publish-distribution-source { margin: 0; padding: var(--space-3) var(--space-5); border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--cream); font-size: var(--text-h3); font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.publish-distribution-line { width: 1px; height: 40px; background: var(--line-strong); }
.publish-distribution-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); width: 100%; margin: 0; padding: 0; list-style: none; }
.publish-distribution-grid li { display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-4) var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--cream); }
.publish-distribution-grid svg { width: 26px; height: 26px; fill: var(--ink); }
.publish-distribution-grid span { font-size: var(--text-caption); text-align: center; color: var(--muted); }



/* One row, one line. The arrow used to be a grid child with no cell, so it dropped underneath the
   title on every row (D-188). */


.publish-pricing { background: var(--paper); }
/* Four, not three: the free first book sits before the plans (D-272). Left at three, the fourth
   card wrapped on to a row of its own, which is the defect the billing grid had. */
.publish-price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.publish-price-card { display: flex; flex-direction: column; padding: var(--space-5); border: 1px solid var(--line); background: var(--cream); }
.publish-price-card-featured { padding: var(--space-6); border: 2px solid var(--accent-ink); transform: translateY(-12px); }
.publish-price-kicker { margin-bottom: var(--space-3); font-size: var(--text-label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.publish-price-card h3 { font-size: var(--text-h2); }
.publish-price { margin: var(--space-4) 0 var(--space-3); color: var(--muted); }
.publish-price strong { margin-right: var(--space-2); font-size: 2.7rem; letter-spacing: -.05em; color: var(--ink); }
.publish-price-card > p:not(.publish-price) { min-height: 58px; color: var(--muted); font-size: var(--text-sm); }
.publish-price-card ul { display: grid; gap: var(--space-2); margin: auto 0 0; padding: var(--space-4) 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--muted); font-size: var(--text-sm); }
/* A price the reader cannot act on is a price they leave the page to think about. */
.publish-price-card .button { margin-top: var(--space-5); width: 100%; }
.publish-price-card li { display: flex; gap: var(--space-2); }
.publish-price-card li::before { content: '✓'; color: var(--ok); font-weight: 700; }
.publish-price-note { margin: var(--space-5) 0 0; font-size: var(--text-caption); color: var(--muted); }
/* The four promises take the section's rule, not their own border. */
.publish-pricing .assurances { border-top: 1px solid var(--line); }

.publish-faq { background: var(--cream); }
.publish-faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 104px); }
/* The FAQ head already stands in its own column beside the answers, so it must not split into two
   columns again. Left to the base rule it wrapped its heading into a 98px ribbon (D-239). */
.publish-faq-grid .publish-section-intro { display: block; }
.publish-faq-list details { padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.publish-faq-list details:last-child { border-bottom: 1px solid var(--line); }
.publish-faq-list summary { display: flex; align-items: center; gap: var(--space-3); cursor: pointer; font-size: var(--text-h3); font-weight: 650; list-style: none; }
.publish-faq-list summary::-webkit-details-marker { display: none; }
.publish-faq-list summary::before { content: '+'; font-size: 1.4rem; font-weight: 400; line-height: 1; color: var(--accent-ink); }
.publish-faq-list details[open] summary::before { content: '\2212'; }
.publish-faq-list details p { margin: var(--space-3) 0 0; color: var(--muted); font-size: var(--text-sm); }
/* On --accent, white body text measures 3.7:1 and fails AA. --accent-ink carries it at 5.4:1, and
   the block is left aligned like every other section (D-188). */
.publish-close { padding-block: clamp(48px, 5.5vw, 84px); background: var(--accent-ink); color: var(--cream); }
.publish-close .eyebrow { color: var(--accent-wash); }
.publish-close h2 { max-width: 16ch; font-size: clamp(2.7rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.045em; }
.publish-close p:not(.eyebrow) { max-width: 48ch; color: var(--accent-wash); font-size: var(--text-body-lg); }
.publish-close .button { margin-top: var(--space-6); background: var(--ink); border-color: var(--ink); }
.publish-close .button:hover { background: var(--publish-deeper); }
.publish-footer { border-top-color: var(--publish-deep); background: var(--publish-deeper); color: var(--cream); }
.publish-footer p strong { color: var(--cream); }
.publish-footer p span { color: var(--publish-on-deep-quiet); }
.publish-footer nav a { color: var(--publish-accent-lift); }
.publish-footer .wrap { display: flex; justify-content: space-between; gap: var(--space-5); align-items: center; }
.publish-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* Two breakpoints: 700 is the product's primary one, and a two-column hero genuinely breaks above
   it. The anchor links go, because a phone scrolls; the account link stays, because a returning
   customer has no other way in (D-188). */
@media (max-width: 1040px) {
  /* Four cards become two even rows before they become four thin columns. */
  .publish-price-grid { grid-template-columns: repeat(2, 1fr); }
  /* The lifted card would break the row rhythm once they stack two-by-two. */
  .publish-price-card-featured { transform: none; }

  .publish-header nav a[href^='#']:not(.button) { display: none; }
  .publish-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .publish-faq-grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .publish-hero-copy { max-width: none; }
  /* The spans decide the breaks now; a character limit here would wrap inside them (D-306). */
  .publish-hero-copy .publish-hero-lede { max-width: 60ch; }
  .publish-hero-covers-row { max-width: 420px; }
  .publish-outcome-grid { grid-template-columns: 1fr 1fr; }
  /* One step per row, with the screen beside its copy. Stacked full width the screen stretched to
     the whole container and stopped looking like a screen at all (D-198). */
  .publish-steps { grid-template-columns: 1fr; gap: var(--space-7); }
  .publish-steps li { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-items: start; gap: var(--space-5); }
  .publish-step-shot { width: 100%; max-width: 520px; margin-inline: auto; }
  .publish-outcome-featured { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .publish-wrap { width: min(100% - 44px, 1180px); }
  /* Nothing in the header may wrap. On a 390px phone the brand broke to two lines, the account
     link broke, and the button broke, which made the header twice as tall as it should be and put
     three ragged blocks across the top of the page (D-204). */
  .publish-header { min-height: 62px; padding-inline: 22px; gap: 10px; }
  .publish-header .brand { font-size: 1.05rem; white-space: nowrap; }
  .publish-brand img { width: 24px; }
  .publish-header nav { gap: 10px; flex-wrap: nowrap; }
  .publish-header nav a { white-space: nowrap; }
  .publish-header nav a:not(.button) { font-size: .84rem; }
  /* No call to action in the header on a phone. Three controls in 390px left the brand, the account
     link and the button fighting for the same row, and the sticky bar carries the ask from the
     moment the hero leaves the screen anyway (D-218). */
  .publish-header nav .button { display: none; }
  .publish-hero { padding-block: 24px 48px; }
  .publish-hero h1 { margin: 0 0 16px; font-size: clamp(1.6rem, 8.2vw, 2.6rem); }
  .publish-hero-grid { display: grid; gap: 0; }
  .publish-hero-copy, .publish-hero-side { display: contents; }
  .publish-hero-copy h1 { order: 1; }
  .publish-hero-copy .publish-hero-lede { order: 2; margin: 0 0 24px; }
  .publish-composer { order: 3; margin: 0 0 32px; padding: var(--space-4); box-shadow: none; }
  .publish-composer textarea { min-height: 92px; }
  .publish-hero-covers { order: 4; margin: 0; }
  .publish-hero-covers-label { margin-bottom: 12px; }
  .publish-hero-covers-row { max-width: none; }
  .publish-section-intro { display: block; }
  .publish-section-intro > p:last-child { margin-top: var(--space-4); }
  .publish-cover-shelf { display: flex; gap: var(--space-3); margin-inline: -22px; padding-inline: 22px 4px; overflow-x: auto; scroll-snap-type: inline mandatory; }
  .publish-cover-shelf figure { flex: 0 0 40vw; scroll-snap-align: start; }
  .publish-outcome-grid, .publish-steps, .publish-price-grid { grid-template-columns: 1fr; }
  .publish-pricing .assurances { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .publish-platforms ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4) var(--space-3); }
  .publish-distribution-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Roughly square, centred, with room either side. Stretched edge to edge it stopped reading as a
     screen and started reading as another band of the page. */
  .publish-step-shot { width: 100%; max-width: 460px; margin-inline: auto; }
  /* On a landing page the reader is one section among many, not the whole job, so it takes less of
     the screen than it does on the customer's own preview (D-201). */
  .publish-reader .reader-paged { --reader-zone: 44px; }
  .publish-reader .reader-paged .reader-frame { height: min(72vh, 720px); padding: var(--space-5) var(--space-4); }
  /* Slightly smaller type on a phone, so a page holds a paragraph instead of a sentence. */
  .publish-reader .reader-flow { font-size: .92rem; }
  .publish-step-screen { min-height: 260px; padding: var(--space-4); }
  .publish-outcome-featured { grid-column: auto; }
  .publish-outcome-featured h3 { font-size: var(--text-h2); }
  .publish-outcome-featured p { font-size: var(--text-sm); }
  .publish-price-card-featured { transform: none; }
  .publish-footer .wrap { align-items: flex-start; flex-direction: column; }
}

/* -------------------------------------------------------------------------
   Coloring-book section (D-490). Sits above the "See exactly what you will
   create" reader. One lazy quickstart on the left; a scrapbook of real
   covers and interior pages on the right.
   ------------------------------------------------------------------------- */
.publish-coloring { padding-block: clamp(40px, 4.5vw, 68px); background: var(--paper); }
.publish-coloring .publish-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 40px 48px 36px; box-shadow: 0 24px 60px rgba(24,50,45,.08); display: grid; grid-template-columns: minmax(0,1fr) 480px; gap: 40px; align-items: center; overflow: hidden; }
.publish-coloring-copy { min-width: 0; display: grid; gap: 14px; }
.publish-coloring-pill { display: inline-flex; align-items: center; gap: 8px; align-self: start; background: var(--accent-wash); border: 1px solid #e3c6b4; color: var(--accent-ink); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.publish-coloring-pill::before { content: "●"; font-size: 8px; line-height: 1; }
.publish-coloring-copy h2 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; max-width: 520px; color: var(--ink); }
.publish-coloring-copy h2 em { font-style: normal; color: var(--accent-ink); }
.publish-coloring-copy p { margin: 0; color: #395247; font-size: 14px; max-width: 460px; }
.publish-coloring-form { display: flex; gap: 8px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 6px; margin-top: 6px; max-width: 520px; }
.publish-coloring-form input { flex: 1; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; padding: 11px 12px; outline: none; min-width: 0; }
.publish-coloring-form input::placeholder { color: #8a948a; }
.publish-coloring-form button { border: 0; background: var(--accent-ink); color: #fff; font: inherit; font-weight: 700; font-size: 14px; padding: 11px 18px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.publish-coloring-form button:hover { background: #95361a; }
.publish-coloring-visual { position: relative; height: 460px; }
.publish-coloring-visual img { position: absolute; display: block; height: auto; max-width: none; border-radius: 10px; box-shadow: 0 12px 24px rgba(24,50,45,.18); background: #fff; }
.publish-coloring-visual img.pg { border-radius: 8px; }
.publish-coloring-visual img.pg1 { top: 0; left: 0; width: 110px; transform: rotate(-11deg); z-index: 1; }
.publish-coloring-visual img.pg2 { top: 70px; left: 118px; width: 95px; transform: rotate(5deg); z-index: 2; }
.publish-coloring-visual img.pg3 { top: 290px; left: 10px; width: 115px; transform: rotate(8deg); z-index: 2; }
.publish-coloring-visual img.pg4 { top: 300px; left: 160px; width: 100px; transform: rotate(-6deg); z-index: 3; }
.publish-coloring-visual img.cv-a { top: 8px; right: 170px; width: 115px; transform: rotate(-13deg); z-index: 2; }
.publish-coloring-visual img.cv-b { top: 0; right: 48px; width: 108px; transform: rotate(10deg); z-index: 2; }
.publish-coloring-visual img.cv-c { top: 265px; right: 10px; width: 118px; transform: rotate(-7deg); z-index: 3; }
.publish-coloring-visual img.cv-d { top: 290px; right: 160px; width: 102px; transform: rotate(13deg); z-index: 3; }
.publish-coloring-visual img.sky { top: 24px; right: -4px; width: 130px; transform: rotate(8deg); z-index: 4; }
.publish-coloring-visual img.hero { top: 60px; right: 128px; width: 220px; transform: rotate(-3deg); z-index: 10; box-shadow: 0 24px 50px rgba(24,50,45,.28); border-radius: 12px; }
@media (max-width: 900px) {
  .publish-coloring .publish-wrap { grid-template-columns: 1fr; gap: 28px; padding: 36px 24px 32px; text-align: center; }
  .publish-coloring-copy { justify-items: center; }
  .publish-coloring-copy h2, .publish-coloring-copy p { margin-inline: auto; }
  .publish-coloring-form { margin-inline: auto; }
  .publish-coloring-visual { height: 460px; max-width: 460px; width: 100%; margin: 0 auto; }
  .publish-coloring-visual img.pg1 { top: 0; left: 4px; width: 94px; }
  .publish-coloring-visual img.pg2 { top: 60px; left: 104px; width: 86px; }
  .publish-coloring-visual img.pg3 { top: 290px; left: 10px; width: 100px; }
  .publish-coloring-visual img.pg4 { top: 300px; left: 150px; width: 90px; }
  .publish-coloring-visual img.cv-a { top: 6px; right: 160px; width: 100px; }
  .publish-coloring-visual img.cv-b { top: 0; right: 36px; width: 96px; }
  .publish-coloring-visual img.cv-c { top: 280px; right: 0; width: 106px; }
  .publish-coloring-visual img.cv-d { top: 300px; right: 148px; width: 92px; }
  .publish-coloring-visual img.sky { top: 20px; right: -4px; width: 114px; }
  .publish-coloring-visual img.hero { top: 56px; right: 108px; width: 196px; }
}
@media (max-width: 480px) {
  .publish-coloring .publish-wrap { padding: 30px 18px 28px; }
  .publish-coloring-visual { height: 420px; max-width: 360px; }
  .publish-coloring-visual img.pg1 { top: 0; left: 0; width: 82px; transform: rotate(-11deg); }
  .publish-coloring-visual img.pg2 { top: 56px; left: 86px; width: 76px; transform: rotate(5deg); }
  .publish-coloring-visual img.pg3 { top: 260px; left: 6px; width: 88px; transform: rotate(8deg); }
  .publish-coloring-visual img.pg4 { top: 270px; left: 126px; width: 80px; transform: rotate(-6deg); }
  .publish-coloring-visual img.cv-a { top: 4px; right: 118px; width: 86px; transform: rotate(-13deg); }
  .publish-coloring-visual img.cv-b { top: 0; right: 20px; width: 84px; transform: rotate(10deg); }
  .publish-coloring-visual .mini.cv-c { top: 286px; right: 0; width: 94px; transform: rotate(-7deg); }
  .publish-coloring-visual .mini.cv-d { top: 310px; right: 118px; width: 84px; transform: rotate(14deg); }
  .publish-coloring-visual .sky { top: 22px; right: -6px; width: 98px; }
  .publish-coloring-visual .hero { top: 70px; right: 84px; width: 176px; transform: rotate(-3deg); }
  .publish-coloring-visual .tape { top: 60px; right: 154px; width: 74px; }
}
