/* ============================================================================
   ComicsPRO — LAYOUT
   Site chrome (utility bar, header, footer), section rhythm, grids, and the
   page-level compositions for the five mockup pages.
   ============================================================================ */

/* Layout-scale values the static build needs that the design system's token
   set does not define. Kept out of tokens.css so that file stays a pure copy. */
:root {
  --header-h: 84px;
  --utility-h: 40px;
  --lift: translate(-2px, -2px);
}


/* ==== Shell =============================================================== */

.cp-wrap {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.cp-wrap--narrow { max-width: var(--container-narrow); }

.cp-section { padding-block: var(--section-y); }
.cp-section--tight { padding-block: var(--space-8); }
.cp-section--panel { background: var(--surface-panel); }
.cp-section--tint  { background: var(--cp-cyan-tint); }
.cp-section--cyan  { background: var(--cp-cyan); }
.cp-section--ink   { background: var(--cp-ink); color: var(--cp-white); }

/* Anything inside .on-ink flips its text defaults.
   These REDEFINE THE SEMANTIC TOKENS rather than hard-setting a colour. That
   distinction matters: a hard `color: white` here is inherited by any
   light-surfaced component nested inside, and a white .cp-card in a dark
   section rendered its heading white-on-white. Flipping tokens lets those
   components take their own ground back — see "Light components on a dark
   ground" in components.css. */
.on-ink {
  --text-body: var(--cp-white);
  --text-heading: var(--cp-white);
  --text-muted: var(--cp-gray-light);
  --text-link: var(--cp-cyan);
  --text-link-hover: var(--cp-cyan-tint);
  color: var(--text-body);
}

.cp-rule { border-top: var(--stroke) solid var(--border-ink); }


/* ==== Utility bar ========================================================= */

.cp-utility {
  background: var(--cp-ink);
  color: var(--cp-white);
  font-size: var(--fs-caption);
}
.cp-utility .cp-wrap {
  min-height: var(--utility-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.cp-audience { display: flex; gap: var(--space-1); }
.cp-audience button {
  background: transparent;
  color: var(--cp-white);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 5px 16px;
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur) ease, color var(--dur) ease;
}
.cp-audience button[aria-pressed="true"] { background: var(--cp-cyan); color: var(--cp-ink); }
.cp-audience button:hover[aria-pressed="false"] { background: rgba(255,255,255,0.14); }

.cp-utility__right { display: flex; align-items: center; gap: var(--space-5); }
.cp-utility__right a { color: var(--cp-cyan); font-weight: var(--fw-bold); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.cp-utility__right a:hover { color: var(--cp-cyan-tint); }


/* ==== Header ============================================================== */

/* The whole header sticks. Previously .cp-masthead was sticky inside a
   position:relative .cp-header, so it could only travel its parent's height
   (~40px) before leaving with it — taking the persistent Join CTA with it. */
.cp-header { position: sticky; top: 0; z-index: 60; }
.cp-masthead { position: relative; background: var(--cp-paper); border-bottom: var(--stroke) solid var(--border-ink); }
.cp-masthead .cp-wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.cp-logo { display: inline-flex; align-items: center; flex: none; }
.cp-logo img { height: 62px; width: auto; }

.cp-nav { display: flex; gap: var(--space-1); }
.cp-nav a {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 15.5px;
  color: var(--cp-ink);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  position: relative;
  white-space: nowrap;
}
.cp-nav a:hover { color: var(--cp-cyan-deep); }
.cp-nav a[aria-current="page"] { color: var(--cp-cyan-deep); }
.cp-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 3px;
  background: var(--cp-cyan);
  border-radius: 2px;
}
.cp-header__cta { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); flex: none; }
/* Sits with the members nav it describes, not beside the Join button. */
.cp-nav--members .cp-stub { align-self: center; margin-left: var(--space-3); }

/* Members nav is swapped in by JS; the marker explains the stub state. */
.cp-nav--members a { cursor: default; color: var(--cp-ink-50); }
.cp-nav--members a:hover { color: var(--cp-ink-50); }
.cp-stub {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  color: var(--cp-ink);
  background: var(--cp-yellow);
  border: var(--stroke-hair) solid var(--border-ink);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  white-space: nowrap;
}

.cp-burger {
  display: none;
  margin-left: auto;
  background: var(--cp-white);
  border: var(--stroke) solid var(--border-ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop-sm);
  width: 46px; height: 46px;
  cursor: pointer;
  place-items: center;
}
.cp-burger svg { width: 22px; height: 22px; }

/* The open drawer needs a backdrop: without it the panel's bottom edge slices
   the hero headline and reads as a rendering fault. It also gives the existing
   tap-outside-to-close behaviour a visible target. */
.cp-header.is-open::after {
  content: "";
  position: fixed;
  inset: var(--header-h) 0 0;
  background: rgba(0,0,0,0.5);
  z-index: -1;
}


/* ==== Footer ============================================================== */

.cp-footer { background: var(--cp-ink); color: var(--cp-white); border-top: var(--stroke) solid var(--cp-ink-surface); }
.cp-footer .cp-wrap { padding-block: var(--space-8) var(--space-6); }
.cp-footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: var(--space-7); }
.cp-footer__blurb { font-size: var(--fs-body-sm); color: var(--cp-gray-light); max-width: 34ch; }
.cp-footer img.cp-footer__logo { height: 52px; width: auto; margin-bottom: var(--space-4); }
.cp-footer h2 {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: var(--fs-overline);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--cp-cyan);
  margin-bottom: var(--space-4);
}
.cp-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.cp-footer ul a { color: var(--cp-white); text-decoration: none; font-size: var(--fs-body-sm); }
.cp-footer ul a:hover { color: var(--cp-cyan); text-decoration: underline; }
/* #666 on black is 3.66:1 — under AA. Keep it legible and mark it with a
   tag instead of dimming it below the threshold. */
.cp-footer__soon { color: var(--cp-gray-light); font-size: var(--fs-body-sm); display: inline-flex; align-items: center; gap: var(--space-2); }
/* The pill treatment here is owned by .cp-soon in components.css. Two
   competing pill styles in the footer is the ambiguity that change removed. */

.cp-social { display: flex; gap: var(--space-2); margin-top: var(--space-5); }
.cp-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: var(--stroke-hair) solid var(--cp-white);
  border-radius: var(--radius-sm);
  color: var(--cp-white);
  transition: background var(--dur) ease, color var(--dur) ease, transform var(--dur-fast) var(--ease-pop);
}
.cp-social a:hover { background: var(--cp-cyan); color: var(--cp-ink); border-color: var(--cp-ink); transform: translate(-1px,-1px); }
.cp-social svg { width: 19px; height: 19px; }

.cp-colophon {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: var(--fs-caption);
  color: var(--cp-gray-light);
}
.cp-colophon nav { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.cp-colophon a { color: var(--cp-gray-light); }
.cp-colophon a:hover { color: var(--cp-cyan); }


/* ==== Hero — the card is handed to you ==================================== */

.cp-hero { background: var(--cp-ink); color: var(--cp-white); overflow: hidden; position: relative; }
.cp-hero .cp-wrap {
  padding-block: var(--space-9);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-8);
  align-items: center;
}
.cp-hero h1 {
  font-size: clamp(2.75rem, 6.2vw, var(--fs-display-2));
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin-bottom: var(--space-5);
  text-wrap: balance;
}
.cp-hero h1 em { font-style: normal; color: var(--cp-cyan); }
/* The deck's hero sub-line. Sits tight under the headline and takes cyan so
   it reads as a tagline rather than competing with the gray lead below it. */
.cp-hero__sub {
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-bold);
  color: var(--cp-cyan);
  margin-top: calc(var(--space-3) * -1);
  margin-bottom: var(--space-5);
  max-width: 46ch;
}
.cp-hero__lead {
  font-size: var(--fs-body-lg);
  color: var(--cp-gray-light);
  max-width: 46ch;
  margin-bottom: var(--space-6);
}
.cp-hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; }
.cp-hero__note { font-size: var(--fs-caption); color: var(--cp-gray-light); margin: var(--space-5) 0 0; }

/* The card sits in a held position, slightly rotated, with the photo behind. */
.cp-hero__card { position: relative; justify-self: center; width: 100%; max-width: 460px; isolation: isolate; }
.cp-hero__card .cp-mcard { transform: rotate(-2deg); position: relative; z-index: 2; }

/* Inner-page condensed header. Spec §6.3 names this .cp-hero--condensed; both
   selectors are live so the design-system map stays accurate. */
.cp-hero--condensed,
.cp-phead { background: var(--cp-ink); color: var(--cp-white); }
.cp-hero--condensed .cp-wrap, .cp-phead .cp-wrap { padding-block: var(--space-8); }
.cp-hero--condensed h1, .cp-phead h1 { font-size: clamp(2.5rem, 5.4vw, var(--fs-h1)); margin-bottom: var(--space-4); text-wrap: balance; }
.cp-hero--condensed p, .cp-phead p { font-size: var(--fs-body-lg); color: var(--cp-gray-light); max-width: 58ch; margin: 0; }
.cp-hero--condensed .cp-tag, .cp-phead .cp-tag { margin-bottom: var(--space-5); }


/* ==== Proof strip ========================================================= */

.cp-proof { background: var(--cp-ink); border-top: var(--stroke) solid var(--cp-ink-surface); }
.cp-proof .cp-wrap { padding-block: var(--space-7); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-6); text-align: center; }


/* ==== Grids =============================================================== */

.cp-grid { display: grid; gap: var(--space-5); }
.cp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cp-grid--gap-lg { gap: var(--space-6); }

/* Benefits deliberately break the uniform four-box grid: the first tile is
   double-width so the row reads as a composition, not a template. */
.cp-benefits { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-5); }
.cp-benefits > * { grid-column: span 2; }
/* Six items: 4+2 / 2+4 / 3+3 — three differently weighted rows. */
.cp-benefits--six > *:nth-child(1) { grid-column: span 4; }
.cp-benefits--six > *:nth-child(2) { grid-column: span 2; }
.cp-benefits--six > *:nth-child(3) { grid-column: span 2; }
.cp-benefits--six > *:nth-child(4) { grid-column: span 4; }
.cp-benefits--six > *:nth-child(5) { grid-column: span 3; }
.cp-benefits--six > *:nth-child(6) { grid-column: span 3; }

/* Four items: 4+2 over 2+4, so both rows fill and neither is a plain grid. */
.cp-benefits--four > *:nth-child(1) { grid-column: span 4; }
.cp-benefits--four > *:nth-child(2) { grid-column: span 2; }
.cp-benefits--four > *:nth-child(3) { grid-column: span 2; }
.cp-benefits--four > *:nth-child(4) { grid-column: span 4; }

/* Five pillars: three across, then two wider — so neither row is a plain
   grid. A .cp-benefits modifier, so the existing `.cp-benefits > *`
   responsive rules below already collapse it at 1080 and 860. */
.cp-pillars > *:nth-child(4),
.cp-pillars > *:nth-child(5) { grid-column: span 3; }

.cp-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.cp-split--top { align-items: start; }
.cp-split--wide-l { grid-template-columns: 1.25fr 0.75fr; }
.cp-split--wide-r { grid-template-columns: 0.75fr 1.25fr; }


/* ==== Meeting feature block (home) ======================================== */

.cp-meetfeature { background: var(--cp-cyan); border-block: var(--stroke) solid var(--border-ink); }
.cp-meetfeature .cp-wrap { padding-block: var(--space-8); display: grid; grid-template-columns: 380px 1fr; gap: var(--space-8); align-items: center; }
.cp-meetfeature h2 { font-size: clamp(2rem, 4.4vw, var(--fs-h1)); margin-bottom: var(--space-4); }
.cp-meetfeature p { max-width: 52ch; }
.cp-meetfeature__facts { display: flex; gap: var(--space-5); flex-wrap: wrap; margin: var(--space-5) 0 var(--space-6); }
.cp-meetfeature__fact { border-left: var(--stroke) solid var(--cp-ink); padding-left: var(--space-4); }
.cp-meetfeature__fact b { display: block; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: var(--fs-h4); line-height: 1.1; }
.cp-meetfeature__fact span { font-size: var(--fs-caption); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.08em; }


/* ==== Join band =========================================================== */

.cp-join { background: var(--cp-ink); color: var(--cp-white); position: relative; overflow: hidden; }
.cp-join .cp-wrap { padding-block: var(--space-9); display: grid; grid-template-columns: 1fr 420px; gap: var(--space-8); align-items: center; }
.cp-join h2 { font-size: clamp(2.25rem, 5vw, var(--fs-h1)); margin-bottom: var(--space-4); }
.cp-join p { color: var(--cp-gray-light); max-width: 50ch; font-size: var(--fs-body-lg); }


/* Section bar: heading block on the left, an action on the right. Was written
   as an identical inline style on two pages. */
.cp-sectionbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-bottom: var(--space-7);
}
.cp-sectionbar h2 { margin-bottom: var(--space-2); }
.cp-sectionbar p { margin: 0; color: var(--text-muted); }
.cp-sectionbar--center { align-items: center; margin-bottom: var(--space-6); }

/* A tag opening a card always wants the same gap under it. */
.cp-card > .cp-tag:first-child { margin-bottom: var(--space-4); }

/* Price figure on a tier card. */
.cp-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h1);
  line-height: 1;
  margin: var(--space-5) 0 var(--space-1);
  color: var(--text-heading);
}
.cp-price + p {
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==== Steps (How it works) ================================================ */

.cp-steps { counter-reset: step; display: grid; gap: var(--space-5); }
.cp-step {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: var(--space-5);
  align-items: start;
  background: var(--cp-white);
  border: var(--stroke) solid var(--border-ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: var(--space-5);
}
.cp-step__n {
  counter-increment: step;
  width: 68px; height: 68px;
  display: grid; place-items: center;
  background: var(--cp-cyan);
  border: var(--stroke) solid var(--border-ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  color: var(--cp-ink);
}
.cp-step__n::before { content: counter(step); }
.cp-step h3 { font-size: var(--fs-h4); margin-bottom: var(--space-2); }
.cp-step p { margin: 0; font-size: var(--fs-body-sm); }


/* ==== Exhibitor pills ===================================================== */

.cp-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }


/* ==== Placeholder — reserved, not built =================================== */

.cp-reserved {
  border: var(--stroke) dashed var(--cp-ink-50);
  border-radius: var(--radius-lg);
  background: var(--cp-gray-light);
  padding: var(--space-6);
  text-align: center;
}
.cp-reserved h3 { color: var(--cp-ink-50); margin-bottom: var(--space-2); }
.cp-reserved p { color: var(--text-muted); font-size: var(--fs-body-sm); margin: 0 auto; max-width: 46ch; }

/* TBD marker for anything awaiting client confirmation. */
.cp-tbd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cp-yellow);
  border: var(--stroke-hair) solid var(--border-ink);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cp-ink);
  white-space: nowrap;
}


/* ==== Mockup banner ======================================================= */

.cp-mockbar {
  background: var(--cp-yellow);
  border-bottom: var(--stroke) solid var(--border-ink);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  color: var(--cp-ink);
}
/* Block, not flex: as flex children the <strong> and the text became separate
   items and wrapped with an orphaned separator. */
.cp-mockbar .cp-wrap { padding-block: var(--space-2); text-align: center; }
.cp-mockbar .cp-tbd { vertical-align: middle; margin-inline: 2px; }
.cp-mockbar .cp-mockbar__short { display: none; }
@media (max-width: 860px) {
  .cp-mockbar { font-size: 11px; line-height: 1.35; }
  .cp-mockbar .cp-tbd { font-size: 10px; padding: 2px 8px; }
}


/* ==== Motion — one authored moment ======================================== */
/* The card and its neighbours settle into place once, on load. Everything is
   visible by default; the animation only offsets it. */

@keyframes cp-settle {
  from { opacity: 0; transform: translateY(18px) rotate(-2deg) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) rotate(-2deg) scale(1); }
}
@keyframes cp-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cp-hero__card .cp-mcard { animation: cp-settle var(--dur-slow) var(--ease-pop) both; animation-delay: 120ms; }
.cp-hero__card .cp-badge { animation: cp-rise var(--dur-slow) var(--ease-pop) both; animation-delay: 120ms; }
.cp-hero__copy > * { animation: cp-rise var(--dur-slow) var(--ease-out) both; }
.cp-hero__copy > *:nth-child(1) { animation-delay: 0ms; }
.cp-hero__copy > *:nth-child(2) { animation-delay: 60ms; }
.cp-hero__copy > *:nth-child(3) { animation-delay: 120ms; }
.cp-hero__copy > *:nth-child(4) { animation-delay: 180ms; }
.cp-hero__copy > *:nth-child(5) { animation-delay: 240ms; }


/* ==== Responsive ========================================================== */

@media (max-width: 1080px) {
  .cp-hero .cp-wrap { grid-template-columns: 1fr; gap: var(--space-8); }
  .cp-hero__card { max-width: 440px; justify-self: start; }
  .cp-meetfeature .cp-wrap { grid-template-columns: 1fr; }
  .cp-join .cp-wrap { grid-template-columns: 1fr; }
  .cp-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .cp-benefits > *, .cp-benefits--four > *, .cp-benefits--six > * { grid-column: span 3 !important; }
  /* Five items into a 2-across grid always orphans one. Run the fifth full
     width so the band has no half-empty row between 861 and 1080. */
  .cp-pillars > *:nth-child(5) { grid-column: span 6 !important; }
}

@media (max-width: 860px) {
  :root { --section-y: var(--space-8); --header-h: 80px; }

  .cp-nav, .cp-header__cta { display: none; }
  .cp-burger { display: grid; }
  .cp-header.is-open .cp-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--cp-paper);
    border-bottom: var(--stroke) solid var(--border-ink);
    padding: var(--space-4) var(--space-5) var(--space-5);
    gap: 0;
    box-shadow: var(--shadow-soft-lg);
  }
  .cp-header.is-open .cp-nav a { padding: 14px 4px; border-bottom: 1px solid var(--border-soft); font-size: 17px; }
  .cp-header.is-open .cp-nav a[aria-current="page"]::after { display: none; }
  .cp-header.is-open .cp-header__cta {
    display: flex;
    position: absolute;
    left: 0; right: 0; top: 100%;
    margin: 0;
    padding: 0 var(--space-5) var(--space-6);
    background: var(--cp-paper);
    border-bottom: var(--stroke) solid var(--border-ink);
    transform: translateY(var(--menu-cta-offset, 240px));
    box-shadow: var(--shadow-soft-lg);
  }
  .cp-masthead { position: relative; }
  .cp-logo img { height: 50px; }

  .cp-grid--2, .cp-grid--3, .cp-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-proof .cp-wrap { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .cp-split, .cp-split--wide-l, .cp-split--wide-r { grid-template-columns: 1fr; gap: var(--space-7); }
  .cp-benefits { grid-template-columns: 1fr; }
  /* .cp-pillars > *:nth-child(5) is (0,2,0) !important and beats a bare
     `.cp-benefits > *`, so it must be named here or the fifth pillar keeps
     `span 6` against a single-column grid and forces six implicit tracks. */
  .cp-benefits > *, .cp-benefits--four > *, .cp-benefits--six > *,
  .cp-pillars > *, .cp-pillars > *:nth-child(5) { grid-column: auto !important; }
  .cp-agenda__day { grid-template-columns: 1fr; gap: var(--space-3); }
  .cp-frame--tilt-l, .cp-frame--tilt-r { transform: none; }
  /* Header is not sticky at this width, so anchors need no clearance. */
  :target, [id] { scroll-margin-top: var(--space-4); }

  .cp-utility { font-size: 11px; }
  .cp-utility .cp-wrap { flex-wrap: nowrap; gap: var(--space-3); }
  .cp-utility__right { gap: var(--space-4); }
  .cp-utility__right a { white-space: nowrap; }
  /* The banner is review chrome, not product — it must not own the viewport. */
  .cp-mockbar .cp-wrap { padding-block: 5px; }
  .cp-mockbar .cp-mockbar__long { display: none; }
  .cp-mockbar .cp-mockbar__short { display: inline; }
  .cp-audience button { padding: 4px 11px; font-size: 11px; }
}

@media (max-width: 860px) {
  /* The card is the thesis; it leads on small screens instead of sitting a
     screen and a half below the lead paragraph. */
  .cp-hero .cp-wrap { display: flex; flex-direction: column; padding-block: var(--space-6); gap: 0; }
  /* Card leads, sized so the headline AND the primary action still clear the
     fold. An artifact above the ask is the wrong trade in Persuade mode. */
  /* A card is landscape. Capping the WIDTH made it narrow and tall, which is
     what pushed the primary action off the fold. Keep it wide, compress it
     vertically instead. */
  .cp-hero__card { order: -1; margin-bottom: var(--space-5); max-width: 320px; }
  .cp-hero__card .cp-mcard__body { padding: var(--space-4) var(--space-4) var(--space-2); }
  .cp-hero__card .cp-mcard__slot { margin-bottom: var(--space-3); }
  .cp-hero__card .cp-mcard__foot { padding: var(--space-3) var(--space-4); }
  .cp-hero__card .cp-mcard__strip { padding-block: var(--space-2); }
  .cp-hero__card .cp-mcard__burst { width: 62px; top: -16px; right: -12px; font-size: 12px; }
  /* conference.html swaps the panel for a lanyard badge; it needs the same
     compression or its hero pushes the primary action off the fold. */
  .cp-hero__card .cp-badge__body { padding: var(--space-4); }
  .cp-hero__card .cp-badge__punch { height: 24px; }
  /* The deck sub-line costs ~73px above the fold; buy most of it back. */
  .cp-hero__sub { font-size: var(--fs-body); margin-bottom: var(--space-4); }
  .cp-hero h1 { font-size: clamp(2.1rem, 8.6vw, 2.6rem); margin-bottom: var(--space-4); }
  .cp-hero__lead { font-size: var(--fs-body); margin-bottom: var(--space-5); }
  /* Not sticky below 860 — 161px of permanent chrome is 19% of a 390x844
     viewport. Must stay POSITIONED though: z-index only applies to positioned
     elements, and static would drop the open menu behind .cp-hero. */
  .cp-header { position: relative; }
}

@media (max-width: 560px) {
  .cp-grid--2, .cp-grid--3, .cp-grid--4 { grid-template-columns: 1fr; }
  .cp-proof .cp-wrap { grid-template-columns: 1fr; gap: var(--space-5); }
  .cp-hero .cp-wrap { padding-block: var(--space-7); }
  .cp-hero__actions { flex-direction: column; align-items: stretch; }
  .cp-hero__actions .cp-btn { width: 100%; }
  .cp-step { grid-template-columns: 1fr; }
  .cp-footer__grid { grid-template-columns: 1fr; }
  .cp-colophon { justify-content: flex-start; }
}
