/* Case-study layer: /printedprice, /printedprice-marketing, /printedprice-monitoring, /fbcards.
   Everything reads band props (--fg, --line, --surface, --accent ...) so it works on navy and paper. */

/* ---------- Type scale for long pages ---------- */
.head h2 { font-size: var(--step-3); line-height: 1.06; }
.head { margin-bottom: clamp(28px, 3.4vw, 48px); }
.panel h3 { font-size: var(--step-1); }
.panel h3 + p { color: var(--fg-2); }
.panel .ticks { margin-top: 20px; }
.ticks b { color: var(--fg); }
.split > *, .grid > * { min-width: 0; }

/* Vertical rhythm between blocks that share a band */
.cs-gap { margin-top: clamp(40px, 6vw, 80px); }
.cs-gap--s { margin-top: clamp(28px, 4vw, 48px); }

/* ---------- Hero ---------- */
.cs-hero { display: grid; gap: 48px; align-items: center; }
.cs-hero > * { min-width: 0; }
@media (min-width: 960px) {
  .cs-hero--media { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 64px; }
}
.pagehead .stats { margin-top: clamp(44px, 6vw, 80px); }
.pagehead .stats dt { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.25rem); overflow-wrap: anywhere; }
.cs-stats-note { margin-top: 14px; font-size: var(--step--1); color: var(--fg-3); }
.cs-hero__shot { margin-top: clamp(40px, 6vw, 80px); }

/* Desktop frame with the phone view tucked into its corner */
.cs-showcase { position: relative; padding: 0 8% 6% 0; }
.cs-showcase__phone { position: absolute; right: 0; bottom: 0; width: 21%; }
@media (max-width: 560px) {
  .cs-showcase { padding: 0 10% 12% 0; }
  .cs-showcase__phone { width: 27%; border-width: 3px; border-radius: 14px; }
}

/* Phone recording */
.cs-reel { width: min(270px, 72%); margin-inline: auto; }
.cs-reel figcaption { text-align: center; }

/* Channel links under the stats */
.cs-channels { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 24px; font-size: var(--step--1); color: var(--fg-2); }
.cs-channels ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.cs-channels a { display: inline-block; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s; }
.cs-channels a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- The one-line problem statement beside its explanation ---------- */
.cs-statement { font-size: var(--step-3); line-height: 1.08; max-width: 18ch; }
.prose p { max-width: 62ch; }

/* ---------- Figures ---------- */
.figure { min-width: 0; }
.figure figcaption b { color: var(--fg-2); font-weight: 600; }
.figure + .figure { margin-top: 24px; }
.grid > .figure + .figure { margin-top: 0; }
.figure--center figcaption { text-align: center; margin-inline: auto; }

/* Dashboard captures keep their own dark screen on any band */
.frame--screen { --surface-2: #090B0F; --line: #1F2733; --fg-3: #A9B5C4; background: #090B0F; border-color: #1F2733; }
.frame--screen .frame__bar { background: #141922; }
.frame--screen img { padding: clamp(5px, 1vw, 10px); }
.frame__bar { min-width: 0; }
.frame__bar > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Wide timelines keep their width and scroll sideways on small screens */
.pan { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.pan:focus-visible { outline-offset: -3px; }
.cs-narrow-only { display: none; }
@media (max-width: 720px) {
  .pan img { width: 860px; max-width: none; }
  .cs-narrow-only { display: inline; }
}

/* Screenshot with a title and text under it */
.cs-shot h3 { font-size: var(--step-1); margin-top: 22px; }
.cs-shot p { margin-top: 8px; color: var(--fg-2); font-size: .98rem; max-width: 60ch; }

/* ---------- Copy beside a screenshot ---------- */
.cs-copy > * + * { margin-top: 14px; }
.cs-copy h2 { font-size: var(--step-3); line-height: 1.06; }
.cs-copy h2 + * { margin-top: 24px; }
.cs-copy p { color: var(--fg-2); max-width: 58ch; }
.cs-copy .feature__kicker { margin-bottom: 0; }
.cs-copy .ticks { margin-top: 20px; }
.cs-pair + .cs-pair { margin-top: clamp(40px, 5vw, 72px); }
@media (min-width: 900px) {
  .cs-pair--flip > .cs-copy { order: 2; }
}

/* ---------- Hairline list of titled points ---------- */
.cs-points { border-top: 1px solid var(--line); }
.cs-points > li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.cs-points h3 { font-size: var(--step-1); }
.cs-points p { margin-top: 4px; color: var(--fg-2); font-size: .98rem; max-width: 58ch; }
.cs-points em { font-style: normal; font-weight: 600; color: var(--fg); }

/* ---------- Example hooks ---------- */
.cs-sub h3 { font-size: var(--step-2); }
.cs-sub h3 + p { margin-top: 8px; color: var(--fg-2); max-width: 62ch; }
.cs-sub > .grid, .cs-sub > .steps { margin-top: clamp(28px, 4vw, 44px); }
.hook { display: grid; gap: 12px; align-content: start; padding-top: 20px; border-top: 1px solid var(--line); }
.hook q { font-family: var(--display); font-weight: 650; font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.01em; color: var(--fg); font-variation-settings: "opsz" 96; }
.hook p { color: var(--fg-2); font-size: .98rem; }
.hook p b { color: var(--fg); }
.hook__to { font-size: var(--step--1) !important; color: var(--fg-3) !important; }

/* ---------- Report-card weights: one bar, 100 points ---------- */
.weights__bar { display: flex; gap: 3px; height: 32px; border-radius: 6px; overflow: hidden; }
.weights__bar span { flex: var(--w) 0 0; background: var(--tone); }
.weights__bar span:nth-child(1), .weights__key div:nth-child(1) { --tone: var(--accent); }
.weights__bar span:nth-child(2), .weights__key div:nth-child(2) { --tone: color-mix(in srgb, var(--accent) 68%, var(--bg)); }
.weights__bar span:nth-child(3), .weights__key div:nth-child(3) { --tone: color-mix(in srgb, var(--accent) 42%, var(--bg)); }
.weights__bar span:nth-child(4), .weights__key div:nth-child(4) { --tone: color-mix(in srgb, var(--accent) 24%, var(--bg)); }
.weights__key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: 20px; }
.weights__key div { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.weights__key div::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: var(--tone); align-self: center; }
.weights__key dt { color: var(--fg-2); }
.weights__key dd { font-family: var(--display); font-weight: 650; font-size: var(--step-1); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .weights__key { grid-template-columns: 1fr; } }

/* ---------- Small labelled definitions inside a panel ---------- */
.cs-defs { margin-top: 18px; border-top: 1px solid var(--line); }
.cs-defs > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cs-defs dt { font-weight: 600; color: var(--fg); }
.cs-defs dd { color: var(--fg-2); font-size: .98rem; }
.cs-small { font-size: var(--step--1); color: var(--fg-3); }

/* A rule that is currently passing */
.cs-ok { display: flex; align-items: center; gap: 9px; }
.cs-ok::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 212, 255, .18); }

/* Closing remark under a grid */
.cs-note { margin-top: clamp(32px, 4.5vw, 56px); font-size: var(--step-1); line-height: 1.45; color: var(--fg-2); max-width: 60ch; }
.cs-note b { color: var(--fg); }

/* Label + chips on one line */
.cs-tagged { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cs-tagged > p { font-size: var(--step--1); font-weight: 600; color: var(--fg); }

/* robots.txt excerpt */
.cs-code { margin-top: 22px; padding: 18px 20px; background: var(--navy-deep); color: #DBE7F3; border-radius: var(--radius-s); font-family: var(--mono); font-size: .82rem; line-height: 1.6; overflow-x: auto; white-space: pre; }
.cs-code:focus-visible { outline-offset: 2px; }
.cs-code .c { color: #8FA3BA; }
.cs-code .k { color: var(--blue-light); }

/* ---------- Closing: call to action, then where to read next ---------- */
.contact .lede { margin-top: 20px; }
.cs-next { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); display: grid; }
.cs-next > li { padding: 28px 0; border-bottom: 1px solid var(--line); }
.cs-next__label { font-size: var(--step--1); color: var(--fg-3); }
.cs-next h3 { margin-top: 6px; }
.cs-next h3 + p { margin-top: 8px; color: var(--fg-2); max-width: 46ch; }
.cs-next .more { display: inline-block; margin-top: 16px; }
@media (min-width: 860px) {
  .cs-next { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .cs-next > li { padding: 32px 32px 32px 0; border-bottom: 0; }
  .cs-next > li + li { padding-left: 32px; border-left: 1px solid var(--line); }
}
