/* ndsignal — site styles
   Palette: ink navy #0C1521 · amber #D9A441 · teal #4FA490 · paper #F1F2EE
   Type: Newsreader (headings, wordmark) · Inter (body) · IBM Plex Mono (data) */

:root{
  --ink:#0C1521;
  --ink-2:#131F30;
  --ink-3:#1B2A40;
  --paper:#F1F2EE;
  --paper-2:#E7E8E2;
  --text-on-paper:#101822;
  --text-muted:#5B6470;
  --text-on-ink:#EDEEE9;
  --text-on-ink-muted:#8D97A6;
  --text-on-ink-faint:#4B586C;
  --amber:#D9A441;
  --amber-hover:#E8B458;
  --amber-dim:#8A6B2C;
  --on-amber:#211605;
  --teal:#4FA490;
  --rule:#2A3A52;
  --rule-light:#D8D9D2;
  --font-serif:'Newsreader',Georgia,serif;
  --font-body:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  --font-mono:'IBM Plex Mono',ui-monospace,monospace;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth; scroll-padding-top:65px;} /* link jumps stop below the sticky top bar */
html,body{height:auto; margin:0;}
body{
  background:var(--paper);
  color:var(--text-on-paper);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;}
h1,h2,h3{
  font-family:var(--font-serif);
  font-weight:500;
  margin:0;
  letter-spacing:-0.01em;
}
.mono{font-family:var(--font-mono);}
/* small raised © after the brand name; line-height 0 keeps line spacing even */
.brand-mark{
  font-size:0.55em;
  line-height:0;
  vertical-align:super;
  margin-left:0.08em;
  font-weight:400;
}
a{color:inherit;}
.container{
  max-width:1180px;
  margin:0 auto;
  padding:0 32px;
}
@media (max-width:640px){ .container{padding:0 16px;} }

/* ===== NAV ===== */
header.site-nav{
  position:sticky; top:0; z-index:50;
  background:rgba(12,21,33,0.92);
  backdrop-filter:blur(8px);
  padding-top:env(safe-area-inset-top, 0px);
  border-bottom:1px solid var(--rule);
}
.nav-row{
  display:flex; align-items:center; justify-content:space-between;
  height:64px;
}
.wordmark{
  font-family:var(--font-serif);
  font-size:1.35rem;
  color:var(--text-on-ink);
  display:flex; align-items:center; gap:10px;
  text-decoration:none;
}
.wordmark img{width:24px; height:24px; display:block; flex-shrink:0;}
.nav-links{
  display:flex; align-items:center; gap:30px;
  list-style:none; margin:0; padding:0;
}
.nav-links a{
  color:var(--text-on-ink-muted);
  text-decoration:none;
  font-size:0.92rem;
}
.nav-links a:hover{color:var(--text-on-ink);}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 18px;
  font-size:0.92rem;
  font-weight:500;
  border-radius:3px;
  text-decoration:none;
  cursor:pointer;
  border:1px solid transparent;
  transition:background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  font-family:var(--font-body);
}
.btn-amber{background:var(--amber); color:var(--on-amber); text-transform:uppercase; letter-spacing:0.04em; font-weight:600;}
.btn-amber:hover{background:var(--amber-hover);}
.nav-actions{display:flex; align-items:center; gap:14px;}
@media (max-width:860px){
  .nav-links{display:none;}
}
@media (max-width:420px){
  .nav-actions .btn{padding:9px 13px; font-size:0.86rem;}
}

/* ===== HERO ===== */
.hero{
  background:var(--ink);
  color:var(--text-on-ink);
  padding:96px 0 44px;
  border-bottom:1px solid var(--rule);
}
/* Left: headline → call to action → explanation → lead-time note
   Right: key-figure boxes
   Full-width compliance line underneath */
.hero > .container{
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(0,0.9fr);
  grid-template-areas:
    "eyebrow eyebrow"
    "head    stats"
    "actions stats"
    "sub     stats"
    "note    stats"
    "legal   legal";
}
.hero-stats{grid-area:stats;}
.hero-eyebrow-line{grid-area:eyebrow;}
h1.hero-headline{grid-area:head;}
.hero-sub{grid-area:sub;}
.hero-actions{grid-area:actions;}
.hero-note{grid-area:note;}
.hero-legal{grid-area:legal;}

.hero-eyebrow-line{
  display:flex; align-items:center; gap:10px;
  color:var(--text-on-ink-muted);
  font-size:0.85rem;
  letter-spacing:0.01em;
  margin-bottom:28px;
}
.pulse{
  width:6px;height:6px;border-radius:50%;
  background:var(--teal);
  position:relative;
  flex-shrink:0;
}
.pulse::after{
  content:"";
  position:absolute; inset:-5px;
  border-radius:50%;
  border:1px solid var(--teal);
  opacity:0;
  animation:pulse-ring 2.6s ease-out infinite;
}
@keyframes pulse-ring{
  0%{opacity:0.55; transform:scale(0.5);}
  80%{opacity:0;}
  100%{opacity:0; transform:scale(1.6);}
}
h1.hero-headline{
  font-size:clamp(2.3rem, 4.8vw, 3.9rem);
  line-height:1.06;
  letter-spacing:-0.018em;
  color:#fff;
  padding-right:40px;
  align-self:start;
}
h1.hero-headline span{display:block;}
.hero-sub{
  margin:32px 0 0;
  max-width:46ch;
  color:var(--text-on-ink-muted);
  font-size:1.06rem;
  line-height:1.65;
}
.hero-actions{
  margin-top:40px;
  display:flex; gap:14px; flex-wrap:wrap;
  align-self:start;
}
.hero-note{
  margin:18px 0 0;
  max-width:52ch;
  font-size:0.85rem;
  line-height:1.6;
  color:var(--text-on-ink-muted);
  align-self:start;
}
/* key-figure boxes */
.hero-stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-auto-rows:auto;
  gap:14px;
  align-self:center;
}
/* each box spans two shared rows (figure, label) via subgrid, so the
   figures and labels of side-by-side boxes always line up, and the
   box height follows its content */
.stat{
  display:grid;
  grid-row:span 2;
  grid-template-rows:subgrid;
  row-gap:14px;
  justify-items:center;
  text-align:center;
  padding:22px 14px 20px;
  background:var(--ink-2);
  border:1px solid var(--rule);
  border-radius:4px;
}
.stat-figure{
  align-self:end;
  font-family:var(--font-serif);
  font-size:2.3rem;
  line-height:1.05;
  letter-spacing:-0.01em;
  color:#fff;
}
.stat-label{
  align-self:start;
  font-weight:600;
  font-size:1rem;
  line-height:1.35;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:var(--amber);
}

/* compliance line — full width, under one rule */
.hero-legal{
  margin:80px 0 0;
  padding-top:22px;
  border-top:1px solid var(--rule);
  font-size:0.8rem;
  line-height:1.6;
  color:#5F6C7E;
}

@media (max-width:900px){
  .hero{padding:72px 0 40px;}
  .hero > .container{
    grid-template-columns:1fr;
    grid-template-areas:"eyebrow" "head" "actions" "sub" "note" "stats" "legal";
  }
  .hero-stats{margin-top:40px;}
  h1.hero-headline{padding-right:0;}
  .hero-actions{margin-top:32px;}
  .hero-sub{margin-top:28px;}
  .hero-legal{margin-top:48px;}
}

/* ===== SECTION SHELL ===== */
section{padding:88px 0;}
@media (max-width:640px){ section{padding:64px 0;} }
.on-ink{background:var(--ink); color:var(--text-on-ink); border-bottom:1px solid var(--rule);}
.on-paper{background:var(--paper);}
.on-paper-2{background:var(--paper-2);}

/* ===== ANATOMY ===== */
.anatomy-grid{
  display:grid;
  grid-template-columns:0.85fr 1.15fr;
  gap:64px;
  align-items:center;
}
@media (max-width:900px){ .anatomy-grid{grid-template-columns:1fr; gap:48px;} }
.anatomy-point{
  padding:24px 0;
  border-top:1px solid var(--rule-light);
}
.anatomy-point:first-child{padding-top:0; border-top:none;}
.anatomy-point:last-child{padding-bottom:0;}
.anatomy-point h2{
  font-size:1.4rem;
  line-height:1.25;
  margin-bottom:10px;
}
.anatomy-point p{
  color:var(--text-muted);
  font-size:0.98rem;
  line-height:1.65;
  margin:0;
  max-width:48ch;
}
/* ---- exhibit: column chart (single series, 0–50% scale) ---- */
.exhibit{
  --axis:40px;
  margin:0;
  padding-top:18px;
  border-top:2px solid var(--ink);
}
.exhibit-title{
  font-family:var(--font-serif);
  font-size:1.4rem;
  line-height:1.25;
  color:var(--text-on-paper);
  margin-bottom:22px;
}
.chart{--max:50;}
.chart-y-title{
  font-size:0.78rem;
  color:var(--text-muted);
  margin-bottom:14px;
}
.chart-plot{
  position:relative;
  height:260px;
  margin-left:var(--axis);
}
.chart-grid span{
  position:absolute; left:0; right:0;
  bottom:calc(var(--v) / var(--max) * 100%);
  border-top:1px solid var(--rule-light);
}
.chart-grid span:first-child{border-top-color:#9EA3A6;}
.chart-grid i{
  position:absolute;
  right:calc(100% + 10px); top:0;
  transform:translateY(-50%);
  font-style:normal;
  font-size:0.78rem;
  color:var(--text-muted);
  font-variant-numeric:tabular-nums;
}
.chart-cols{
  position:absolute; inset:0;
  display:grid;
  grid-template-columns:repeat(4,1fr);
}
.chart-col{
  display:flex; flex-direction:column; justify-content:flex-end; align-items:center;
  height:100%;
  cursor:default;
}
.chart-val{
  margin-bottom:8px;
  font-size:0.95rem;
  font-weight:600;
  color:var(--text-on-paper);
}
.chart-bar{
  flex-shrink:0;
  width:min(48px, 72%);
  height:calc(var(--v) / var(--max) * 100%);
  background:var(--ink-3);
  border-radius:4px 4px 0 0;
  transform-origin:bottom;
  animation:bar-grow 0.9s cubic-bezier(.22,.8,.32,1) both;
  transition:background 0.15s ease;
}
.chart-col:nth-child(2) .chart-bar{animation-delay:0.08s;}
.chart-col:nth-child(3) .chart-bar{animation-delay:0.16s;}
.chart-col:nth-child(4) .chart-bar{animation-delay:0.24s;}
.chart-col:nth-child(5) .chart-bar{animation-delay:0.32s;}
.chart-col:nth-child(6) .chart-bar{animation-delay:0.40s;}
.chart-col:nth-child(7) .chart-bar{animation-delay:0.48s;}
.chart-col:hover .chart-bar{background:var(--ink);}
@keyframes bar-grow{ from{transform:scaleY(0);} to{transform:scaleY(1);} }
.chart-x{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  margin-left:var(--axis);
  padding-top:12px;
  font-size:0.85rem;
  color:var(--text-muted);
  text-align:center;
}
@media (max-width:560px){
  .chart-plot{height:220px;}
  .chart-val{font-size:0.78rem;}
  .chart-x{font-size:0.75rem; line-height:1.25;}
}
.exhibit-foot{
  display:flex; flex-direction:column;
  gap:4px;
  margin:22px 0 0 var(--axis);
}
.exhibit-foot p{
  margin:0;
  font-size:0.75rem;
  line-height:1.5;
  color:var(--text-muted);
}.sr-only{
  position:absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ===== COVERAGE ===== */
.coverage-row{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:56px;
}
@media (max-width:860px){ .coverage-row{grid-template-columns:1fr;} }
.coverage-row h2{color:#fff; font-size:1.9rem; line-height:1.22; margin-bottom:18px;}
/* tags stretch to fill the height of the copy column and the width of each row */
.sector-grid{display:flex; flex-wrap:wrap; gap:10px; align-content:stretch;}
.sector-tag{
  flex:1 1 auto;
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  border:1px solid var(--rule);
  color:var(--amber);
  padding:9px 15px;
  border-radius:3px;
  font-size:0.88rem;
  font-weight:600;
}
.cap-note{color:var(--text-on-ink-muted); line-height:1.7; max-width:46ch; margin:0;}
.cap-note + .cap-note{margin-top:14px;}

/* ===== SIGNAL EXAMPLES ===== */
.examples-head{max-width:640px; margin-bottom:48px;}
#examples .examples-head,
#fields .examples-head{max-width:none;} /* lets the subtitles run on one line on desktop */
.examples-head h2{
  font-size:clamp(1.65rem, 2.6vw, 2.15rem);
  line-height:1.22;
}
.examples-head p{
  margin:14px 0 0;
  color:var(--text-muted);
  font-size:1.02rem;
  line-height:1.6;
}

/* one example = firm + lead time, then signal → news */
.case{
  padding-top:20px;
  border-top:2px solid var(--ink);
}
.case + .case{margin-top:56px;}
.case-head{
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:10px 20px;
  margin-bottom:20px;
}
.case-id{display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px;}
.case-firm{font-size:1.5rem; line-height:1.25;}
/* tablet and phone: the "Signal led the news by…" badge always sits under the firm name */
@media (max-width:1024px){
  .case-head{flex-direction:column; align-items:flex-start;}
}
/* same outlined look as the Coverage sector tags, on the light surface */
.case-sector{
  padding:5px 12px;
  border:1px solid var(--rule-light);
  border-radius:3px;
  font-size:0.8rem;
  font-weight:600;
  color:var(--text-muted);
}
.case-lead{
  padding:6px 11px;
  border-radius:3px;
  background:var(--amber);
  color:var(--on-amber);
  font-size:0.76rem;
  font-weight:600;
  letter-spacing:0.04em;
  text-transform:uppercase;
}
.case-body{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:24px;
  align-items:stretch;
}
.case-panel{
  padding:24px 26px 26px;
  border-radius:6px;
}
.case-meta{
  display:flex; justify-content:space-between; align-items:baseline; gap:12px;
  padding-bottom:14px;
  margin-bottom:16px;
  font-size:0.76rem;
  letter-spacing:0.05em;
  text-transform:uppercase;
}
.case-panel p{margin:0; line-height:1.65;}

.case-signal{background:var(--ink); color:var(--text-on-ink);}
.case-signal .case-meta{border-bottom:1px solid var(--rule); color:var(--text-on-ink-muted);}
.case-signal .case-tag{color:var(--amber); font-weight:600;}
.case-signal p{font-family:var(--font-serif); font-size:1.08rem; color:var(--text-on-ink);}

.case-news{background:var(--paper-2); border:1px solid var(--rule-light);}
.case-news .case-meta{border-bottom:1px solid var(--rule-light); color:var(--text-on-paper);}
.case-news .case-tag{color:var(--text-muted); font-weight:600;}
.case-news p{font-size:0.98rem; color:var(--text-on-paper);}

@media (max-width:760px){
  .case-body{grid-template-columns:1fr; gap:16px;}
  .case-panel{padding:20px 20px 22px;}
}
/* ===== SIGNAL FIELDS (static sample record) ===== */
.fields{padding:64px 0;}
@media (max-width:640px){ .fields{padding:48px 0;} }
.fields .examples-head{margin-bottom:32px;}

.record{
  background:var(--ink);
  color:var(--text-on-ink);
  border:1px solid var(--ink);
  border-radius:6px;
  overflow:hidden;
}
.record-head{
  display:flex; justify-content:space-between; gap:16px;
  padding:16px 26px;
  border-bottom:1px solid var(--rule);
  font-size:0.78rem;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:var(--text-on-ink-muted);
}
.record-row{
  display:grid;
  grid-template-columns:172px minmax(0,1.25fr) minmax(0,1fr);
  gap:28px;
  padding:20px 26px;
  border-bottom:1px solid var(--rule);
  align-items:baseline;
}
.record-row:last-child{border-bottom:none;}
.record-field{
  font-size:0.78rem;
  font-weight:600;
  letter-spacing:0.05em;
  text-transform:uppercase;
  color:var(--amber);
}
.record-value{font-size:1rem; color:var(--text-on-ink); line-height:1.5;}
.record-value.mono{font-size:0.93rem;}
.record-value.serif{font-family:var(--font-serif); font-size:1.08rem; line-height:1.55;}
.record-desc{font-size:0.88rem; color:var(--text-on-ink-muted); line-height:1.55;}
.record-prob{display:flex; align-items:center; gap:14px;}
.record-track{
  flex:1; height:6px;
  background:var(--rule);
  border-radius:3px;
  overflow:hidden;
}
.record-track span{display:block; height:100%; background:var(--amber); border-radius:3px;}
@media (max-width:760px){
  .record-row{grid-template-columns:1fr; gap:6px; padding:16px 20px;}
  .record-head{padding:14px 20px;}
  .record-desc{margin-top:2px;}
}

/* ===== FINAL CTA ===== */
.cta-final{padding:56px 0;}
@media (max-width:640px){ .cta-final{padding:40px 0;} }
.cta-final h2{
  font-size:clamp(1.8rem, 3.4vw, 2.6rem);
  line-height:1.15;
  color:#fff;
}
.cta-final p{
  margin-top:30px;
  color:var(--text-on-ink-muted);
  max-width:50ch;
  line-height:1.6;
}
.cta-final .hero-actions{margin-top:30px;}

/* ===== REQUEST ACCESS PAGE ===== */
.ra-head{padding:44px 0 40px;}
.ra-head h1{
  font-size:clamp(2.3rem, 4.8vw, 3.6rem);
  line-height:1.06;
  letter-spacing:-0.018em;
  color:#fff;
}
@media (max-width:640px){ .ra-head{padding:32px 0 28px;} }
.ra-body{padding:40px 0 48px;}
@media (max-width:640px){ .ra-body{padding:28px 0 40px;} }

.ra-form, .ra-done{max-width:760px;}
.ra-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px 24px;
  margin-bottom:28px;
}
.field-wide{grid-column:1 / -1;}
@media (max-width:640px){ .ra-grid{grid-template-columns:1fr;} }

.field{display:flex; flex-direction:column; gap:8px; min-width:0;}
fieldset.field{border:0; padding:0; margin:0 0 28px;}
.field label, .field legend{
  font-size:0.86rem;
  font-weight:600;
  color:var(--text-on-paper);
}
.field legend{margin-bottom:10px; padding:0;}
.req{color:var(--amber-dim);}
.field input, .field select, .field textarea{
  width:100%;
  padding:11px 13px;
  border:1px solid #C9CBC3;
  border-radius:3px;
  background:#fff;
  color:var(--text-on-paper);
  font:inherit;
  font-size:0.95rem;
  transition:border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea{resize:vertical; min-height:120px; line-height:1.55;}
.field select{
  /* custom arrow, inset from the right edge like the text padding */
  appearance:none; -webkit-appearance:none;
  padding-right:42px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%230C1521' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 16px center;
  background-size:12px 8px;
  cursor:pointer;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none;
  border-color:var(--ink-3);
  box-shadow:0 0 0 3px rgba(217,164,65,0.35);
}
.field input:user-invalid{border-color:#B4442F;}

/* sector chips: real checkboxes, visually replaced */
.chips{display:flex; flex-wrap:wrap; gap:8px;}
.chip{position:relative; cursor:pointer;}
.chip input{position:absolute; opacity:0; width:1px; height:1px;}
.chip span{
  display:inline-block;
  padding:8px 14px;
  border:1px solid #C9CBC3;
  border-radius:3px;
  background:#fff;
  font-size:0.86rem;
  font-weight:600;
  color:var(--text-muted);
  transition:background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover span{border-color:var(--ink-3);}
.chip input:checked + span{background:var(--ink); border-color:var(--ink); color:#fff;}
.chip input:focus-visible + span{outline:2px solid var(--amber); outline-offset:2px;}

.consent{
  display:flex; align-items:flex-start; gap:10px;
  margin:24px 0 22px;
  font-size:0.9rem;
  color:var(--text-muted);
  cursor:pointer;
}
.consent input{width:18px; height:18px; margin:2px 0 0; accent-color:var(--ink); flex-shrink:0;}

.ra-error{
  margin:0 0 18px;
  padding:12px 14px;
  border-left:3px solid #B4442F;
  background:#F6E7E3;
  color:#6E2416;
  font-size:0.9rem;
}
.ra-actions{display:flex; align-items:center; gap:18px; flex-wrap:wrap;}
.ra-actions .btn{padding:12px 26px; font-size:0.95rem; border:0;}
.ra-hint{font-size:0.8rem; color:var(--text-muted);}

.ra-done h2{font-size:clamp(1.8rem, 3vw, 2.3rem); margin-bottom:14px;}
.ra-done p{margin:0 0 26px; color:var(--text-muted); line-height:1.65; max-width:52ch;}
.ra-done:focus{outline:none;}

/* ===== FOOTER ===== */
footer{
  background:var(--ink);
  border-top:1px solid var(--rule);
  padding:40px 0 calc(16px + env(safe-area-inset-bottom, 0px));
}
.footer-row{
  display:flex; justify-content:space-between; align-items:flex-start;
  gap:24px; flex-wrap:wrap;
}
.footer-disclaimer{
  max-width:640px;
  color:var(--text-on-ink-faint);
  font-size:0.78rem;
  line-height:1.7;
}
.footer-links{display:flex; gap:22px; flex-wrap:wrap;}
.footer-links a{
  color:var(--text-on-ink-muted);
  text-decoration:none;
  font-size:0.85rem;
}
.footer-links a:hover{color:var(--text-on-ink);}
.footer-copy{
  margin:0;
  text-align:right;
  color:var(--text-on-ink-faint);
  font-size:0.78rem;
  line-height:1.7;
}
/* closing divider — the last element of the page */
.footer-rule{
  margin-top:8px;
  border-top:1px solid var(--rule);
}

::selection{background:var(--amber); color:var(--on-amber);}
a:focus-visible, button:focus-visible, .btn:focus-visible{
  outline:2px solid var(--amber);
  outline-offset:2px;
}
@media (prefers-reduced-motion:reduce){
  *{animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important;}
}
