/* examples.css: the Examples page's own sheet (examples.html; S2-4 of the website build).
 * Two real businesses in plain words (what went well, what still needs work) and the two sample reports.
 * Class prefix: ex-. Tokens only (instrument.css holds the dark palette); no inline styles (CSP); no coloured left or
 * top stripes (colour goes on a full border, a wash, a dot or a chip); red only for errors, so "still to fix" is warm,
 * never red; no em or en dash. */

.ex-hero { padding: 104px 0 clamp(20px, 3vw, 36px); }
/* the site's one hero headline size (components.css .hero h1): 32 px on a phone, 56 px at 1440 */
.ex-hero h1 { margin: 0 0 10px; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.05; }
.ex-sub { margin: 0; max-width: 62ch; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.55; color: var(--muted); }
/* the site's button row (components.css .hero .hero-actions): never a ragged wrap, one full-width column on a phone */
.ex-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), max-content)); gap: 12px; margin-top: 22px; }

.ex-sec { padding: clamp(32px, 4vw, 56px) 0; }
.ex-h2 { margin: 0 0 18px; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.08; }
.ex-sec .ex-lead { margin: -6px 0 18px; max-width: 70ch; color: var(--muted); line-height: 1.55; }
.ex-sec h3 { margin: 0; font-size: 1.3rem; line-height: 1.2; }
.ex-sec p { margin: 0; }

/* ── two real businesses ───────────────────────────────────────────────── */
.ex-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.ex-case { display: grid; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ex-trade {
  justify-self: start; padding: 3px 10px; border: 1px solid var(--line-2); border-radius: var(--r-pill);
  font-size: 0.82rem; font-weight: 600; color: var(--muted);
}
.ex-src { font-size: 0.95rem; line-height: 1.5; color: var(--muted); }
.ex-group {
  display: flex; align-items: center; gap: 8px; margin: 6px 0 0;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.01em;
}
.ex-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.ex-group--good { color: var(--ok); }
.ex-group--good .ex-dot { background: var(--ok); }
.ex-group--fix { color: var(--warn); }
.ex-group--fix .ex-dot { background: var(--warn); }
.ex-rows { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ex-rows li {
  display: grid; grid-template-columns: 8.6rem minmax(0, 1fr); gap: 12px; align-items: baseline;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
}
.ex-rows[data-rows="good"] li { border-color: rgba(67, 213, 151, .28); background: var(--ok-bg); }
.ex-rows[data-rows="fix"] li { border-color: rgba(224, 166, 60, .3); background: var(--warn-bg); }
.ex-rows p { line-height: 1.5; color: var(--ink); }
.ex-date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.ex-also { font-size: 0.95rem; line-height: 1.5; color: var(--muted); }
.ex-also .ex-date { margin-right: 6px; }
.ex-sec .ex-foot { margin-top: 18px; max-width: 80ch; font-size: 0.95rem; line-height: 1.55; color: var(--muted); }

/* ── the sample reports ────────────────────────────────────────────────── */
.ex-samples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ex-sample { display: grid; align-content: start; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
/* both pictures sit in the same 16:10 window and show their top, so the pair reads as one row; the frame keeps a strip of
   its own under the picture for the "Open the full example" tag, so the tag never sits on a capture's words */
.ex-sample .capture-slot { overflow: hidden; padding-bottom: 40px; border-bottom: 1px solid var(--line); background: #0b0e0d; }
.ex-sample .capture-slot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.ex-sample-body { display: grid; gap: 10px; padding: 18px 20px 20px; }
.ex-sample-body p { color: var(--muted); line-height: 1.55; }
.ex-price {
  display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: var(--r-pill);
  background: rgba(230, 182, 84, .1); border: 1px solid rgba(230, 182, 84, .4);
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; color: var(--gold); vertical-align: middle;
}
.ex-sample-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
/* "Get your own" is a tap of its own: 44 px tall (the review's L9, 26 Sep) */
.ex-sample-actions a.t-gold { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 920px) {
  .ex-cases, .ex-samples { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .ex-hero { padding-top: 92px; }
  .ex-actions { grid-template-columns: 1fr; }
  .ex-case { padding: 18px; }
  .ex-rows li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ex-sample-actions .btn { flex: 1 1 100%; }
}
