/* =================================================================
   RDI Trials — base stylesheet for the "direction" rebuild.

   RECONSTRUCTED from the RDI design system (colors_and_type.css +
   ui_kits/marketing-site/kit.css) and the token set used inline across
   the mockup pages. This renders every page in the redesign/ folder so
   the site can be clicked through and reviewed.

   NOTE: This is a faithful, on-brand reconstruction, not the original
   production stylesheet. If you have the real assets/styles.css from the
   mockup export, drop it in here to get pixel-exact parity. Licensed Klim
   fonts (National 2 / Söhne Mono / Tiempos Headline) are NOT bundled;
   this file loads Instrument Sans + Instrument Serif as close, freely
   loadable stand-ins so nothing ships watermarked/licensed fonts.
   ================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;1,400&family=Instrument+Serif:ital@0;1&display=swap");

/* --------------------------- tokens ------------------------------ */
:root {
  --navy:      #162335;
  --navy6:     #1e2d43;
  --orange:    #e74424;
  --orange-h:  #c93d20;
  --cream:     #fafaf7;
  --cream55:   rgba(250,250,247,.55);
  --cream78:   rgba(250,250,247,.78);
  --tan:       #ece2d5;
  --tan-alt:   #f3eee4;

  --ink:       #162335;
  --ink82:     rgba(22,35,53,.82);
  --ink70:     rgba(22,35,53,.70);
  --ink55:     rgba(22,35,53,.55);

  --hair:      rgba(22,35,53,.14);

  --sans:  "Instrument Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono:  ui-monospace, "SF Mono", "Söhne Mono", Menlo, monospace;

  --wrap-max: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
}
img { max-width: 100%; }
a { color: var(--orange); }
::selection { background: var(--orange); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap-max); margin: 0 auto; padding: 0 40px; }
@media (max-width: 640px) { .wrap { padding: 0 22px; } }

.beat { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--orange); letter-spacing: -.01em; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ------------------------------ nav ------------------------------ */
nav { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.06); }
.navin { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 20px 40px; max-width: var(--wrap-max); margin: 0 auto; }
@media (max-width: 640px) { .navin { padding: 16px 22px; } }
.nav-logo img { height: 30px; width: auto; display: block; }
.nlinks { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.nlinks a {
  font-size: 14px; text-decoration: none; color: var(--cream78);
  transition: color .18s ease;
}
.nlinks a:hover, .nlinks a.active { color: var(--cream); font-weight: 500; }

/* ------------------------------ hero ----------------------------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero .in { position: relative; z-index: 1; }
.hero-pad { padding: clamp(72px, 12vw, 150px) 0 clamp(72px, 12vw, 150px); }
.hero-copy { max-width: 60%; }
@media (max-width: 820px) { .hero-copy { max-width: 100%; } }
.hero h1 {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(40px, 6vw, 76px); line-height: .98; letter-spacing: -.035em;
  color: #fff; margin: 0; text-wrap: balance;
}
.hero .lede { margin: 26px 0 0; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; color: var(--cream78); max-width: 46ch; }

.cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 30px;
  background: var(--orange); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 13px 26px; border-radius: 9999px;
  transition: background .15s ease;
}
.cta:hover { background: var(--orange-h); }

.rings {
  position: absolute; top: 50%; right: -6%; width: 46%; aspect-ratio: 1/1;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 58%, rgba(231,68,36,.14) 59%, transparent 60%),
    radial-gradient(circle, transparent 70%, rgba(231,68,36,.10) 71%, transparent 72%),
    radial-gradient(circle, transparent 82%, rgba(231,68,36,.07) 83%, transparent 84%);
  pointer-events: none;
}
@media (max-width: 820px) { .rings { display: none; } }

/* --------------------------- page head --------------------------- */
.page-head { background: var(--navy); color: #fff; padding: clamp(56px, 8vw, 92px) 0 clamp(48px, 6vw, 72px); }
.page-head h1 {
  font-family: var(--sans); font-weight: 600; margin: 0;
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.03; letter-spacing: -.03em; color: #fff; max-width: 20ch;
}
.page-head .lede { margin: 22px 0 0; font-size: clamp(18px, 2.1vw, 21px); line-height: 1.5; color: var(--cream78); max-width: 60ch; }
.page-head .k { margin-bottom: 14px; }

/* ------------------------- section / rail ------------------------ */
.rail {
  display: grid; grid-template-columns: 300px 1fr; gap: 56px;
  padding: clamp(56px, 8vw, 92px) 40px; align-items: start;
  border-top: 1px solid var(--hair);
}
.rail:first-of-type { border-top: 0; }
@media (max-width: 900px) { .rail { grid-template-columns: 1fr; gap: 22px; padding-left: 22px; padding-right: 22px; } }

.label .k {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 14px;
}
.label h2 {
  font-family: var(--sans); font-weight: 600; margin: 0;
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.08; letter-spacing: -.02em; color: var(--ink); max-width: 18ch;
}
.k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }

.body { min-width: 0; }
.body .intro { font-size: 20px; line-height: 1.55; color: var(--ink); max-width: 62ch; margin: 0 0 8px; }
.prose p { font-size: 17px; line-height: 1.7; color: var(--ink70); max-width: 70ch; margin: 0 0 1em; }
.fact-line { margin-top: 28px; font-size: 16px; line-height: 1.6; color: var(--ink70); max-width: 72ch; }
.fact-line strong { color: var(--ink); font-weight: 600; }

/* home: steps */
.steps { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.step .n { font-family: var(--mono); font-size: 13px; color: var(--orange); padding-top: 3px; }
.step p { font-size: 16px; line-height: 1.55; color: var(--ink70); margin: 0 0 8px; }
.step b { color: var(--ink); font-weight: 600; }
.step a { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink55); text-decoration: none; }
.step a:hover { color: var(--orange); }

/* home: proof */
.proof .row { padding: 22px 0; border-top: 1px solid var(--hair); }
.proof .row:first-child { border-top: 0; padding-top: 0; }
.proof .row .k { display: block; margin-bottom: 12px; }
.proof .names { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.proof .names span { font-size: 16px; color: var(--ink); border: 1px solid var(--hair); border-radius: 9999px; padding: 6px 14px; }
.proof .note { margin-top: 14px; font-size: 14px; color: var(--ink55); max-width: 62ch; line-height: 1.55; }

/* home: cases */
.case { padding: 26px 0; border-top: 1px solid var(--hair); }
.case:first-child { border-top: 0; padding-top: 0; }
.case .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.case h3 { font-family: var(--sans); font-weight: 600; font-size: 21px; line-height: 1.22; letter-spacing: -.01em; margin: 12px 0 10px; }
.case p { font-size: 16px; line-height: 1.65; color: var(--ink70); max-width: 70ch; margin: 0 0 14px; }
.case .out { font-size: 15px; line-height: 1.6; color: var(--ink); border-left: 2px solid var(--orange); padding-left: 18px; }

/* home: scope grid */
.scope { border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; background: #fff; }
.scope .hd, .scope .r { display: grid; grid-template-columns: 2fr repeat(6, 1fr); align-items: center; }
.scope .hd { background: var(--tan-alt); }
.scope .hd span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink55); padding: 12px 8px; text-align: center; }
.scope .hd .sp0 { text-align: left; }
.scope .r { border-top: 1px solid var(--hair); }
.scope .r h4 { font-size: 15px; font-weight: 600; margin: 0; padding: 16px 14px; display: flex; flex-direction: column; gap: 3px; }
.scope .r h4 small { font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: .03em; text-transform: uppercase; color: var(--ink55); }
.scope .r i { justify-self: center; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--hair); }
.scope .r i.on { background: var(--orange); border-color: var(--orange); }
.scope .legend { grid-column: 1 / -1; display: flex; gap: 24px; padding: 12px 14px; border-top: 1px solid var(--hair); background: var(--tan-alt); }
.scope .legend .k { display: inline-flex; align-items: center; gap: 8px; color: var(--ink55); text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 13px; }
.scope .legend .sw { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--hair); }
.scope .legend .sw.on { background: var(--orange); border-color: var(--orange); }
@media (max-width: 720px) { .scope { overflow-x: auto; } .scope .hd, .scope .r { min-width: 560px; } }

/* ----------------------- entries (feature list) ----------------- */
.entries { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
@media (max-width: 640px) { .entries { grid-template-columns: 1fr; } }
.entry h3 { font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: -.01em; margin: 0 0 8px; }
.entry p { font-size: 15.5px; line-height: 1.6; color: var(--ink70); margin: 0; max-width: 46ch; }

/* --------------------------- figures ----------------------------- */
.figure-img img { width: 100%; display: block; border-radius: 6px; background: var(--navy); }
.figure-img .cap { margin-top: 12px; font-size: 13px; line-height: 1.55; color: var(--ink55); }
.figure-img .cap strong { color: var(--ink); font-weight: 600; }

/* photo strip (lab) */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 640px) { .photo-strip { grid-template-columns: 1fr; } }
.photo { aspect-ratio: 4/3; background: var(--navy); border-radius: 6px; display: grid; place-items: center; padding: 0 18px; }
.photo span { font-family: var(--mono); font-size: 12px; color: var(--cream55); text-align: center; }

/* --------------------------- chain flow -------------------------- */
.chain { display: flex; flex-direction: column; gap: 0; }
.chain .node {
  background: #fff; border: 1px solid var(--hair); border-left: 2px solid var(--orange);
  border-radius: 6px; padding: 14px 18px; font-size: 16px; font-weight: 600; color: var(--ink); max-width: 520px;
}
.chain .arw { color: var(--ink55); font-size: 16px; padding: 6px 0 6px 18px; }
.chain .cap { margin-top: 16px; font-size: 13px; color: var(--ink55); }

/* --------------------------- coverage ---------------------------- */
.coverage { display: grid; gap: 20px; }
.cov-row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: start; padding-top: 18px; border-top: 1px solid var(--hair); }
.cov-row:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 640px) { .cov-row { grid-template-columns: 1fr; gap: 10px; } }
.cov-label { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink55); padding-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--hair); border-radius: 9999px; padding: 6px 14px; }

/* ----------------------------- bars ------------------------------ */
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 48px; gap: 14px; align-items: center; }
.bar-row .b-label { font-size: 14px; color: var(--ink70); }
.bar-row .bar { height: 14px; background: var(--orange); border-radius: 3px; }
.bar-row .b-val { font-family: var(--mono); font-size: 13px; color: var(--ink); text-align: right; }
.bars .b-note { margin-top: 8px; font-size: 13px; color: var(--ink55); }

/* -------------------------- case bands --------------------------- */
.caseband { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 32px 0; border-top: 1px solid var(--hair); }
.caseband:first-child { border-top: 0; padding-top: 0; }
.caseband.flip .viz { order: 2; }
@media (max-width: 820px) { .caseband { grid-template-columns: 1fr; gap: 20px; } .caseband.flip .viz { order: 0; } }
.caseband .viz { background: var(--navy); border-radius: 8px; min-height: 240px; overflow: hidden; }
.caseband .viz img { width: 100%; height: 100%; object-fit: cover; display: block; }
.caseband .txt .cat { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.caseband .txt h3 { font-family: var(--sans); font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -.015em; margin: 12px 0 10px; }
.caseband .txt p { font-size: 16px; line-height: 1.65; color: var(--ink70); margin: 0 0 14px; }
.caseband .rcpt { font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: var(--ink); border-top: 1px solid var(--hair); padding-top: 12px; }
.caseband .rlink { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--orange); padding-bottom: 3px; }
.caseband .rlink:hover { color: var(--orange); }

/* --------------------------- receipts ---------------------------- */
.receipts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--hair); border-radius: 10px; overflow: hidden; background: #fff; }
@media (max-width: 820px) { .receipts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .receipts { grid-template-columns: 1fr; } }
.receipt { padding: 18px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.receipt .label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink55); margin-bottom: 8px; }
.receipt .value { font-size: 14px; line-height: 1.4; color: var(--ink); font-weight: 600; }

/* ----------------------- product shot (diag) --------------------- */
.product-shot img { width: 100%; display: block; border-radius: 8px; border: 1px solid var(--hair); background: var(--navy); }
.product-shot .cap { margin-top: 12px; font-size: 13px; color: var(--ink55); }
.product-shot .walk { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--orange); padding-bottom: 3px; }
.product-shot .walk:hover { color: var(--orange); }

/* --------------------------- flow4 (diag) ------------------------ */
.flow4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 820px) { .flow4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .flow4 { grid-template-columns: 1fr; } }
.flow4 .stage { background: #fff; border: 1px solid var(--hair); border-top: 2px solid var(--orange); border-radius: 6px; padding: 18px; }
.flow4 .stage .s-name { font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.flow4 .stage .s-detail { font-size: 13.5px; line-height: 1.5; color: var(--ink70); }
.flow4 .cap { grid-column: 1 / -1; margin-top: 6px; font-size: 13px; color: var(--ink55); }

/* --------------------------- close band -------------------------- */
.close { background: var(--navy); color: #fff; padding: clamp(64px, 10vw, 120px) 0; }
.close .in { display: grid; gap: 24px; }
.close h2 { font-family: var(--sans); font-weight: 600; font-size: clamp(28px, 4vw, 48px); line-height: 1.05; letter-spacing: -.03em; color: #fff; margin: 0; max-width: 20ch; }
.close .r { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.close .r p { font-size: 17px; line-height: 1.6; color: var(--cream78); max-width: 52ch; margin: 0; }
.close .cta { margin-top: 0; }

/* ----------------------------- footer ---------------------------- */
footer { background: var(--navy); color: var(--cream78); border-top: 1px solid rgba(255,255,255,.08); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 44px 40px; max-width: var(--wrap-max); margin: 0 auto; flex-wrap: wrap; }
@media (max-width: 640px) { .foot-in { padding: 32px 22px; } }
.foot-logo img { height: 30px; width: auto; display: block; }
.foot-meta { font-size: 14px; line-height: 1.7; color: var(--cream55); text-align: right; }
.foot-meta a { color: var(--cream78); text-decoration: none; }
.foot-meta a:hover { color: #fff; }
