/* Pacing Coach product page.
 *
 * Only what the main stylesheet does not already carry. The tier cards, the
 * extension mock, buttons, eyebrows and details/summary all come from
 * main.css · this file adds the page's own shapes: the hero, the surface
 * grid, and the terminal blocks that show real command output.
 *
 * The terminal blocks are the one place monospace is right on this site: they
 * are not decoration, they are a transcript, and column alignment carries
 * meaning.
 */

/* ------------------------------------------------------------------ hero */
.cp-hero {
  padding-block: clamp(2.4rem, 6vw, 4.2rem) clamp(1.6rem, 4vw, 2.6rem);
  border-bottom: 1px solid var(--border);
}
.cp-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.12;
  text-wrap: balance;
  max-width: 20em;
  margin: 0.3rem 0 0.9rem;
}
.cp-lede {
  font-size: 1.04rem;
  color: var(--text-soft);
  max-width: 44em;
  margin: 0 0 1.4rem;
}
.cp-hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.1rem; }
.cp-fine { font-size: 0.85rem; color: var(--text-muted); max-width: 46em; margin: 0; }

/* --------------------------------------------------------------- sections */
.cp-section { padding-block: clamp(2rem, 5vw, 3.4rem); border-bottom: 1px solid var(--border); }
.cp-section h2 { font-family: var(--serif); font-size: clamp(1.4rem, 2.8vw, 2rem); margin: 0.2rem 0 0.5rem; text-wrap: balance; }
.cp-sub { color: var(--text-soft); max-width: 44em; margin: 0 0 1.6rem; }
.cp-caption { font-size: 0.8rem; color: var(--text-muted); margin: 0.5rem 0 0; }
.cp-caption code { font-size: 0.95em; }

/* --------------------------------------------------------------- surfaces */
.cp-surfaces {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
  align-items: start;
}
.cp-surface {
  /* Grid items default to min-width:auto, so the min-content width of a
     <pre white-space:pre> inside pushes the whole track wider than the
     viewport and the PAGE scrolls sideways instead of the transcript. Found
     at 390px: the card's right border was off-screen. */
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 1.1rem 1.2rem 1.2rem;
}
/* The full report is the one that must not wrap · it earns the whole row. */
.cp-surface-wide { grid-column: 1 / -1; }
.cp-surface > header { display: flex; align-items: baseline; justify-content: space-between; gap: 0.7rem; margin-bottom: 0.4rem; }
.cp-surface h3 { font-size: 1.02rem; margin: 0; }
.cp-surface > p { color: var(--text-soft); font-size: 0.9rem; margin: 0 0 0.8rem; }
.cp-surface .coach-mock { margin-bottom: 0; }

/* A label that says whether you are looking at the thing or at a drawing of
   it. Getting this wrong is how a product page starts lying by omission. */
.cp-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.16rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid;
  white-space: nowrap;
  flex: none;
}
.cp-tag-live { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.cp-tag-mock { color: var(--text-muted); border-color: var(--border); background: transparent; }

/* -------------------------------------------------------- terminal blocks */
.cp-term {
  margin: 0;
  max-width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.78rem;
  line-height: 1.55;
}
.cp-term code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text-soft);
  background: none;
  border: 0;
  padding: 0;
  white-space: pre;
  font-size: inherit;
}
.cp-term-oneline { font-size: 1.05rem; padding: 1.1rem 1rem; }
.cp-term-oneline code { color: var(--text); }

/* ------------------------------------------------------------------ steps */
.cp-steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 1.4rem; }
.cp-steps > li { counter-increment: step; padding-left: 2.5rem; position: relative; min-width: 0; }
.cp-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cp-steps h3 { font-size: 1rem; margin: 0 0 0.45rem; }

.cp-details { margin-top: 0.4rem; }
.cp-details-body { padding-top: 0.6rem; }
.cp-cmds { display: grid; gap: 0.5rem; margin: 0; }
.cp-cmds > div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 0.8rem; align-items: baseline; min-width: 0; }
.cp-cmds dt { margin: 0; }
.cp-cmds dd { margin: 0; color: var(--text-soft); font-size: 0.88rem; }
@media (max-width: 34rem) {
  .cp-cmds > div { grid-template-columns: 1fr; gap: 0.1rem; }
}

/* ----------------------------------------------------------------- leaves */
.cp-two > div { min-width: 0; }
.cp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: clamp(1.2rem, 3vw, 2.4rem); }
.cp-two h3 { font-size: 1rem; margin: 0 0 0.35rem; }
.cp-two h3 + p { margin: 0 0 1.2rem; color: var(--text-soft); font-size: 0.92rem; }
.cp-never { color: var(--warn); }
.cp-never-list { margin: 0 0 0.8rem; padding-left: 1.1rem; color: var(--text-soft); font-size: 0.92rem; }
.cp-never-list li { margin-bottom: 0.25rem; }

/* ------------------------------------------------------------------ tiers */
.cp-tiers { margin-top: 0.4rem; }
.cp-tiers .tier-name .cp-tag { margin-left: 0.4rem; vertical-align: middle; }
.cp-price-alt { color: var(--text-muted); font-size: 0.82rem; font-weight: 400; display: block; margin-top: 0.15rem; }

/* A second heading inside a surface card · the statusline card carries two
   always-on views, and they need separating without a new card. */
.cp-subhead { font-size: 0.88rem; margin: 1.2rem 0 0.3rem; color: var(--text); }

/* A real screenshot rather than a drawing. Sized by its own aspect ratio so
   nothing reflows while it loads, and capped at the popup's true width · a
   420px popup blown up to fill a card would look like a mockup again. */
.cp-shot { margin: 0; }
.cp-shot img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
