/* ============================================================
   /the-crossing-diagnostic — Landing page styles
   Inherits site tokens, header, footer from
   /briefings/_assets/briefing.css and the crs- visual system
   from /crossing-readiness-score/_assets/landing.css.
   This file adds ONLY the components this page introduces:
   the two-column hero, the CSS report preview, the citation
   card, the numbered line list, the segmentation cards, and
   the deep-ink trap treatment.
   ============================================================ */

/* ---- Tokens this page introduces (not defined in briefing.css) ---- */
:root {
  --bone: #FAF7F2;
  --sand: #ECE6DA;
  --teal: #1D9E75;
  --hairline: #D8D5D2;
  --ink-deep: #07080F;
}

/* ---- Narrow reading measure for all body sections ---- */
.cd-container { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* Tighten section titles + set display heading scale/weight for this page */
.cd-container .crs-section__title {
  margin-bottom: 28px;
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.12;
}
.cd-container .crs-cta-section__title {
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.12;
}

/* ============================================================
   HERO — two-column (copy + report preview), wider container
   ============================================================ */
.cd-hero {
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--soft-divider);
}
.cd-hero__wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.cd-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.cd-hero__title {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(29px, 3.5vw, 40px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.cd-hero__title-lead {
  display: block;
  font-size: clamp(44px, 5.6vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 0.2em;
  max-width: 14ch;
}
.cd-hero__sub {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(21, 23, 27, 0.70);
  max-width: 44ch;
  margin: 22px 0 0;
}
.cd-hero__sub b { color: var(--ink); font-weight: 600; }

.cd-hero__cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.cd-hero__freebar {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(21, 23, 27, 0.55);
  margin: 0;
}

.cd-hero__caption {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(21, 23, 27, 0.42);
  text-align: right;
  margin: 14px 0 0;
}

/* ============================================================
   REPORT PREVIEW — stylised CSS artifact, never an <img>
   ============================================================ */
.cd-report {
  background: var(--bone);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(21, 23, 27, 0.04), 0 18px 40px -22px rgba(21, 23, 27, 0.28);
  overflow: hidden;
  position: relative;
}
.cd-report__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--hairline);
  background: var(--cream);
}
.cd-report__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--hairline); display: block; }
.cd-report__file {
  margin-left: 8px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(21, 23, 27, 0.44);
}
.cd-report__body { padding: 24px 24px 26px; }
.cd-report__kicker {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--arc);
}
.cd-report__co {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 6px;
}
.cd-report__stage {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background: var(--sand);
  border-radius: 8px;
}
.cd-report__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none; }
.cd-report__lbl {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(21, 23, 27, 0.44);
}
.cd-report__val {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  margin-left: auto;
  color: var(--ink);
}
.cd-report__prog { margin-top: 12px; display: flex; gap: 4px; }
.cd-report__prog i { height: 4px; border-radius: 2px; flex: 1; background: var(--hairline); }
.cd-report__prog i.on { background: var(--ink); }
.cd-report__h {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(21, 23, 27, 0.44);
  margin: 22px 0 9px;
}
.cd-report__cite {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(21, 23, 27, 0.62);
  margin: 0;
}
.cd-report__cite b { color: var(--ink); font-weight: 600; }
.cd-report__flag {
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  border-left: 3px solid var(--arc);
}
.cd-report__flag-t {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--arc);
}
.cd-report__flag-b {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(21, 23, 27, 0.62);
  margin-top: 5px;
}
.cd-report__sig {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 9px;
}
.cd-report__av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.cd-report__nm {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 11.5px;
  color: rgba(21, 23, 27, 0.62);
}
.cd-report__nm b { color: var(--ink); font-weight: 600; }
.cd-report__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46px;
  background: linear-gradient(transparent, var(--bone));
}

/* ============================================================
   TRAP — the single deep-ink band (extends crs-section--ink)
   ============================================================ */
.cd-trap.crs-section--ink { background: var(--ink-deep); }
.cd-trap .crs-eyebrow { color: var(--arc-light); }
.cd-trap .crs-eyebrow__rule { background: var(--arc-light); }
.cd-trap__quote {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 22px;
  line-height: 1.38;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin: 0;
}
.cd-trap__body {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(250, 247, 242, 0.66);
  margin: 18px 0 0;
}

/* ============================================================
   CITATION CARD
   ============================================================ */
.cd-law {
  background: var(--sand);
  border: 1px solid var(--hairline);
  border-radius: 11px;
  padding: 26px 28px;
}
.cd-law__tag {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--arc);
  margin: 0;
}
.cd-law__body {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(21, 23, 27, 0.72);
  margin: 11px 0 0;
}

/* CTA + mono note row (sits after the citation card) */
.cd-after-cta {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---- Mono note ---- */
.cd-mono-note {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(21, 23, 27, 0.55);
}
.cd-mono-note--block { display: block; margin-top: 20px; text-transform: uppercase; }

/* ---- Body prose paragraph ---- */
.cd-prose {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(21, 23, 27, 0.72);
  margin: 18px 0 0;
}
.cd-prose b { color: var(--ink); font-weight: 600; }

/* ============================================================
   NUMBERED LINE LIST ("What it does")
   ============================================================ */
.cd-lines { margin-top: 8px; }
.cd-line {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--soft-divider);
}
.cd-line:last-child { border-bottom: 1px solid var(--soft-divider); }
.cd-line__n {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--arc);
  flex: none;
  width: 22px;
}
.cd-line__t {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.cd-line__sub {
  display: block;
  font-weight: 400;
  color: rgba(21, 23, 27, 0.62);
  margin-top: 3px;
  font-size: 15px;
}

/* ============================================================
   SEGMENTATION CARDS ("Which one are you")
   ============================================================ */
.cd-seg { display: grid; gap: 9px; margin-top: 8px; }
.cd-seg__card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 17px 20px;
  border: 1px solid var(--soft-divider);
  border-radius: 9px;
  text-decoration: none;
  transition: border-color 200ms ease, background 200ms ease;
}
.cd-seg__card:hover { border-color: var(--ink); background: var(--bone); }
.cd-seg__card:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(91, 108, 242, 0.4); }
.cd-seg__st {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--arc);
}
.cd-seg__nm {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
}
.cd-seg__trigger {
  display: block;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(21, 23, 27, 0.60);
  margin-top: 3px;
}
.cd-seg__arr { color: var(--arc); font-family: 'Geist Mono', ui-monospace, monospace; align-self: center; }
.cd-seg__note {
  margin-top: 18px;
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(21, 23, 27, 0.72);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 1024px) {
  .cd-hero__wrap { padding: 0 40px; }
}
@media (max-width: 860px) {
  .cd-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .cd-hero__copy { order: 1; }
  .cd-report { order: 2; max-width: 420px; width: 100%; margin: 0 auto; }
  .cd-hero__sub { max-width: none; }
  .cd-hero__caption { text-align: left; }
}
@media (max-width: 767px) {
  .cd-hero { padding: 56px 0 48px; }
  .cd-hero__sub { font-size: 17px; }
}

/* ============================================================
   STRIPPED HEADER — keep the single CTA visible at all widths
   (briefing.css hides .header-cta below 768px for the full nav)
   ============================================================ */
@media (max-width: 767px) {
  .briefing-header .header-cta { display: inline-flex; padding: 9px 15px; font-size: 13px; }
}

/* ============================================================
   STRIPPED FOOTER — diagnostic-focused, not the multi-column
   site footer. Uses .cd-footer so build.mjs leaves it alone.
   ============================================================ */
.cd-footer {
  background: var(--ink-deep);
  color: rgba(250, 247, 242, 0.85);
  border-top: 1px solid rgba(250, 247, 242, 0.10);
  padding: 48px 0 36px;
}
.cd-footer__wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px 40px;
}
.cd-footer .wordmark { font-size: 22px; }
.cd-footer .wm-north { color: #FAF7F2; }
.cd-footer .wm-arc { color: var(--arc); }
.cd-footer .wm-dot { color: var(--arc); margin-left: 1px; }
.cd-footer__reg {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(250, 247, 242, 0.60);
  max-width: 42ch;
}
.cd-footer__right { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cd-footer__email {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  color: rgba(250, 247, 242, 0.85);
  text-decoration: none;
  transition: color 200ms ease;
}
.cd-footer__email:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.cd-footer__legal { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 0; margin: 0; }
.cd-footer__legal a {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(250, 247, 242, 0.55);
  text-decoration: none;
  transition: color 200ms ease;
}
.cd-footer__legal a:hover { color: #FFFFFF; }
.cd-footer__bottom {
  max-width: 1080px;
  margin: 28px auto 0;
  padding: 18px 24px 0;
  border-top: 1px solid rgba(250, 247, 242, 0.10);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(250, 247, 242, 0.45);
}
@media (min-width: 1024px) {
  .cd-footer__wrap, .cd-footer__bottom { padding-left: 40px; padding-right: 40px; }
}
