/* Terrorist Content Discovery Index: public page. Tokens follow the CT Casebook public site (ct-casebook globals.css). */
:root {
  --bg: #ffffff;
  --raised: #f4f6f8;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #4f5f74;
  --border: #e1e5ea;
  --border-strong: #c5cbd3;
  --navy: #1e3b8a;
  --navy-deep: #0d2463;
  --blue: #114a84;
  --purple: #79287d;
  --amber: #e7a423;
  --green: #6aaf23;
  --gold-ink: #8a6400;
  --green-ink: #3f7a16;
  --sky: #e8eef9;
  --sand: #fbf3e0;
  --lilac: #f1edf5;
  --mint: #eef6e6;
  --display: "Schibsted Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.top .logo img { height: 40px; width: auto; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.top nav a:hover { color: var(--navy); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 6px; font: 600 16px/1.2 var(--body); text-decoration: none; border: 1px solid var(--navy); background: var(--navy); color: #fff; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn.ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn.small { padding: 9px 16px; font-size: 15px; }
.textlink { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(30, 59, 138, .3); text-underline-offset: 4px; }

/* Section furniture */
section { padding: 96px 0; scroll-margin-top: 72px; }
section.raised { background: var(--raised); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--muted); }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--blue); }
.eyebrow.purple::before { background: var(--purple); }
.eyebrow.amber::before { background: var(--amber); }
.eyebrow.green::before { background: var(--green); }
.h2 { margin-top: 16px; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.lead { margin-top: 20px; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 62ch; }
.head { max-width: 760px; margin-bottom: 48px; }
.split { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.split.flip { grid-template-columns: 5fr 7fr; }
.art { mix-blend-mode: multiply; height: auto; width: 100%; }

/* Hero */
.hero { padding: 72px 0 64px; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero h1 { margin-top: 22px; font-size: clamp(40px, 5.4vw, 66px); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.hero .lead strong { color: var(--ink); font-weight: 600; }
.hero .cta { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero .art { width: 118%; max-width: none; margin-left: -4%; }

/* The staircase */
.stair { display: flex; align-items: flex-end; gap: 14px; }
.band { display: flex; flex-direction: column; justify-content: flex-end; }
.band.b1 { flex: 4; } .band.b2 { flex: 3; } .band.b3 { flex: 3; }
.band-label { font: 600 18px/1.2 var(--display); padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid currentColor; }
.b1 .band-label { color: var(--purple); }
.b2 .band-label { color: var(--gold-ink); }
.b3 .band-label { color: var(--blue); }
.steps { display: flex; gap: 10px; align-items: flex-end; }
.step { flex: 1; min-width: 0; }
.bar { height: calc(46px + var(--l) * 17px); border-radius: 6px; display: flex; justify-content: center; padding-top: 10px; font: 700 26px/1 var(--display); }
.b1 .bar { background: var(--purple); color: #fff; }
.b2 .bar { background: var(--sand); color: var(--gold-ink); border: 1px solid var(--amber); }
.b3 .bar { background: var(--surface); color: var(--blue); border: 1px solid var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.cap { margin-top: 12px; min-height: 5.6em; font-size: 15px; line-height: 1.35; color: var(--ink); }
.cap b { display: block; font-weight: 700; }
.b1 .cap b { color: var(--purple); } .b2 .cap b { color: var(--gold-ink); } .b3 .cap b { color: var(--blue); }
.axis { display: flex; align-items: center; gap: 16px; margin-top: 8px; color: var(--muted); font-size: 15px; }
.axis span.line { flex: 1; height: 1px; background: var(--border-strong); position: relative; }
.axis span.line::after { content: ""; position: absolute; right: -1px; top: -5px; width: 9px; height: 11px; background: var(--border-strong); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.benchmark { margin-top: 36px; display: flex; gap: 18px; align-items: flex-start; padding: 26px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.benchmark .icon { color: var(--purple); width: 28px; height: 28px; margin-top: 2px; }
.benchmark p { font: 600 20px/1.45 var(--display); color: var(--ink); }
.benchmark p span { color: var(--purple); }

/* Why it matters cards */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 36px; }
.card h3 { font-size: 22px; font-weight: 600; display: flex; gap: 12px; align-items: center; }
.tile { width: 46px; height: 46px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tile.sky { background: var(--sky); color: var(--blue); }
.tile.lilac { background: var(--lilac); color: var(--purple); }
.tile.sand { background: var(--sand); color: var(--gold-ink); }
.tile.mint { background: var(--mint); color: var(--green-ink); }
.card .big, .big { margin-top: 24px; font: 700 clamp(56px, 7vw, 84px)/1 var(--display); letter-spacing: -0.04em; }
.big.purple { color: var(--purple); } .big.blue { color: var(--blue); } .big.amber { color: var(--gold-ink); }
.card p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.card p.ink { color: var(--ink); }
.people { display: flex; gap: 8px; margin-top: 24px; }
.people svg { width: 26px; height: 40px; }
.people .on { fill: var(--purple); } .people .off { fill: var(--border-strong); }
.source { margin-top: 16px; font-size: 15px; color: var(--muted); }

/* Five-minute test */
.timer-art { max-width: 460px; margin: 0 auto; }
.facts { display: flex; gap: 40px; margin-top: 34px; flex-wrap: wrap; }
.facts div { border-left: 1px solid var(--border-strong); padding-left: 18px; }
.facts b { display: block; font: 700 40px/1.05 var(--display); color: var(--gold-ink); letter-spacing: -0.03em; }
.facts span { color: var(--muted); font-size: 16px; }

/* How it works */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.pipeline li { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 30px 28px; }
.pipeline li + li::before { content: ""; position: absolute; left: -21px; top: 52px; width: 20px; height: 1px; background: var(--border-strong); }
.pipeline .num { width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; }
.pipeline h3 { margin-top: 18px; font-size: 22px; }
.pipeline p { margin-top: 8px; color: var(--muted); }
.produces { margin-top: 56px; }
.produces h3.sub { font-size: 24px; margin-bottom: 22px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.grid4 li h4 { margin: 14px 0 6px; font: 600 19px/1.3 var(--display); }
.grid4 li p { color: var(--muted); font-size: 16px; }

/* Who it serves and what we ask */
.serve { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.serve li { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 26px; }
.serve h3 { font-size: 20px; }
.serve p { margin-top: 6px; color: var(--muted); }
.asks { margin-top: 64px; }
.asks h3.sub { font-size: 28px; letter-spacing: -0.02em; }
.ask-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.ask-list li { background: var(--surface); padding: 28px 24px; }
.ask-list .who { display: flex; gap: 10px; align-items: center; font: 600 18px/1.25 var(--display); color: var(--ink); }
.ask-list .who .icon { color: var(--gold-ink); }
.ask-list p { margin-top: 12px; color: var(--ink); }
.scope { margin-top: 28px; display: flex; gap: 18px; align-items: flex-start; padding: 26px 28px; background: var(--sky); border-radius: 8px; }
.scope .icon { color: var(--blue); width: 28px; height: 28px; }
.scope p { color: var(--ink); }

/* What comes next */
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.phases::before { content: ""; position: absolute; top: 21px; left: 22px; right: 12%; height: 2px; background: var(--amber); }
.phases li { position: relative; padding-right: 24px; }
.phases .dot { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--amber); color: var(--ink); display: flex; align-items: center; justify-content: center; font: 700 19px/1 var(--display); }
.phases .label { margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--gold-ink); }
.phases h3 { margin-top: 4px; font-size: 21px; line-height: 1.3; }

/* Contact */
.contact h2 { margin-top: 16px; }
.contact .cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.contact .alt { margin-top: 18px; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 36px 0 44px; }
footer .wrap { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
footer img { height: 34px; width: auto; }
footer p { color: var(--muted); font-size: 15px; max-width: 70ch; }

/* Tablet */
@media (max-width: 1080px) {
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  .grid4, .ask-list { grid-template-columns: repeat(2, 1fr); }
}

/* Phone */
@media (max-width: 820px) {
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding: 40px 0 48px; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 28px; }
  .split.flip > .art-col { order: 2; }
  .hero .art { width: 100%; margin: 0; }
  .side-art { display: none; }
  .stair { flex-direction: column; align-items: stretch; gap: 26px; }
  .steps { flex-direction: column; align-items: stretch; gap: 8px; }
  .step { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
  .bar { height: 44px; width: calc(44px + var(--l) * 5px); padding: 0; align-items: center; font-size: 20px; }
  .cap { margin: 0; min-height: 0; }
  .cap b { display: inline; }
  .cap b::after { content: " · "; font-weight: 400; color: var(--muted); }
  .axis { display: none; }
  .benchmark { padding: 20px; }
  .benchmark p { font-size: 18px; }
  .pair, .pipeline, .serve, .grid4, .ask-list { grid-template-columns: 1fr; }
  .pipeline li + li::before { display: none; }
  .card { padding: 26px 22px; }
  .people { gap: 4px; }
  .people svg { width: 22px; height: 34px; }
  .phases { grid-template-columns: 1fr; gap: 24px; }
  .phases::before { top: 22px; bottom: 22px; left: 21px; right: auto; width: 2px; height: auto; }
  .phases li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 0; }
  .phases .label { margin-top: 0; grid-column: 2; grid-row: 1; align-self: end; }
  .phases h3 { grid-column: 2; }
  .phases .dot { grid-row: 1 / span 2; }
  .top .logo img { height: 34px; }
  .contact .btn { width: 100%; padding: 12px 14px; font-size: 15px; }
}
