/* ==========================================================================
   Evidentiary.ai — investor + application site
   Navy #1E3A5F · Gold #C9A94E. Dark-first; the subject is evidence, so the
   ground stays dark and the screenshots carry the light.
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --void:      #060B14;
  --ground:    #0A1220;
  --surface:   #101B2C;
  --raised:    #16243A;
  --line:      #1E3149;
  --line-soft: #172740;

  --ink:       #EEF3F9;
  --ink-2:     #B4C2D4;
  --muted:     #7C8CA3;
  --faint:     #56657C;

  --gold:      #C9A94E;
  --gold-lift: #E0C671;
  --gold-deep: #8A7231;
  --navy-lift: #6E9BD1;

  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 68ch;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { width: min(76rem, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--tight { width: min(58rem, 100%); }

/* ---- shared type ---------------------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-2); max-width: var(--measure); line-height: 1.6; }

.gold { color: var(--gold); }
.ital { font-style: italic; }

/* ---- reveal ---------------------------------------------------------- */

.rise { opacity: 0; transform: translateY(1.4rem); transition: opacity 0.7s ease, transform 0.7s ease; }
.rise.seen { opacity: 1; transform: none; }

/* ---- nav ------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--void) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.25rem; }
.nav__brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-size: 1.16rem; letter-spacing: -0.01em; }
.nav__brand svg { width: 1.65rem; height: 1.65rem; flex: none; }
.nav__brand span { color: var(--gold); }
.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a { font-size: 0.86rem; color: var(--ink-2); transition: color 0.2s; }
.nav__links a:hover, .nav__links a:focus-visible { color: var(--gold); }

@media (max-width: 54rem) { .nav__links a:not(.btn) { display: none; } }

/* ---- buttons --------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--body); font-size: 0.9rem; font-weight: 500;
  padding: 0.7rem 1.3rem; border: 1px solid transparent; border-radius: 2px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
}

.btn--gold { background: var(--gold); color: #14100A; }
.btn--gold:hover { background: var(--gold-lift); transform: translateY(-1px); }
.btn--line { border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--gold); color: var(--gold); }
.btn--lg { padding: 0.9rem 1.7rem; font-size: 0.98rem; }
.btn:focus-visible { outline: 2px solid var(--gold-lift); outline-offset: 3px; }

/* ---- hero ------------------------------------------------------------ */

.hero { position: relative; padding: clamp(4.5rem, 11vw, 9rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; }

.hero::before {
  content: ""; position: absolute; inset: -30% 40% 40% -20%;
  background: radial-gradient(closest-side, rgba(30, 58, 95, 0.55), transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: ""; position: absolute; inset: 20% -25% -40% 45%;
  background: radial-gradient(closest-side, rgba(201, 169, 78, 0.13), transparent 72%);
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.35rem, 5.6vw, 4.3rem);
  margin: 1.5rem 0 1.6rem;
  max-width: 20ch;
}


/* ---- section scaffolding --------------------------------------------- */

.band { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.band--edge { border-top: 1px solid var(--line-soft); }
.band--sunk { background: var(--void); border-block: 1px solid var(--line-soft); }

.band__head { max-width: var(--measure); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.band__head h2 { font-size: clamp(1.85rem, 3.8vw, 2.9rem); margin: 1rem 0 1.1rem; }

/* ---- application: screenshot slabs ----------------------------------- */

.slab { display: grid; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.slab:last-child { margin-bottom: 0; }

@media (min-width: 62rem) {
  .slab { grid-template-columns: 1fr 1.25fr; }
  .slab--flip .slab__text { order: 2; }
  .slab--flip .slab__shot { order: 1; }
}

.slab__text h3 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); margin-bottom: 0.9rem; }
.slab__text p { color: var(--ink-2); max-width: 46ch; }

.slab__shot { position: relative; }

.shot {
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.9);
}

.shot__bar {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  background: var(--raised);
  border-bottom: 1px solid var(--line);
}

.shot__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--line); }

.shot__cap {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--faint); margin-left: 0.5rem;
}

.figcap { font-size: 0.78rem; color: var(--faint); margin-top: 0.8rem; max-width: 52ch; }

/* ---- hero shot ------------------------------------------------------- */

.herofig { margin-top: clamp(3rem, 6vw, 5rem); }

/* ---- proof grid ------------------------------------------------------ */

.proof { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }

@media (min-width: 44rem) { .proof { grid-template-columns: repeat(3, 1fr); } }

.proof__cell { background: var(--ground); padding: clamp(1.5rem, 3vw, 2.4rem); }
.proof__n { font-family: var(--display); font-size: clamp(2.1rem, 4vw, 3rem); color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.proof__t { font-size: 0.98rem; font-weight: 500; margin: 0.75rem 0 0.6rem; }
.proof__d { font-size: 0.88rem; color: var(--muted); }

/* ---- numbered market cards ------------------------------------------- */

.cards { display: grid; gap: 1.5rem; }
@media (min-width: 56rem) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 48rem) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 3px; padding: clamp(1.4rem, 3vw, 2rem); }
.card__n { font-family: var(--mono); font-size: 0.72rem; color: var(--gold-deep); letter-spacing: 0.14em; }
.card h3 { font-size: 1.15rem; margin: 0.8rem 0 0.7rem; }
.card p { font-size: 0.92rem; color: var(--ink-2); }
.card ul { display: grid; gap: 0.65rem; margin-top: 0.9rem; }
.card li { font-size: 0.9rem; color: var(--ink-2); padding-left: 1.15rem; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--gold-deep); }

/* ---- founder --------------------------------------------------------- */

.founder { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 62rem) { .founder { grid-template-columns: 0.85fr 1.15fr; } }

.founder__card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 3px; padding: clamp(1.6rem, 3vw, 2.2rem); align-self: start; }

.founder__mark {
  width: 4.4rem; height: 4.4rem; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--gold), var(--gold-deep));
  color: #14100A; font-family: var(--display); font-size: 1.3rem; letter-spacing: 0.02em;
}

.founder__name { font-family: var(--display); font-size: 1.5rem; margin-top: 1.1rem; }
.founder__role { font-size: 0.86rem; color: var(--gold); margin-top: 0.2rem; }

.founder__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); margin-top: 1.6rem; }
.founder__stat { background: var(--surface); padding: 0.95rem 1rem; }
.founder__stat b { display: block; font-family: var(--display); font-size: 1.3rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.founder__stat span { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--faint); }

.founder__body p { color: var(--ink-2); margin-bottom: 1.05rem; max-width: var(--measure); }
.founder__body p:first-child { font-size: 1.1rem; color: var(--ink); }

.record { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); margin-top: 2rem; }
@media (min-width: 40rem) { .record { grid-template-columns: 1fr 1fr; } }
.record__item { background: var(--ground); padding: 1.15rem 1.3rem; }
.record__item b { display: block; font-size: 0.94rem; color: var(--gold); margin-bottom: 0.35rem; }
.record__item span { font-size: 0.85rem; color: var(--muted); }

.honors { display: grid; gap: 2rem; margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line-soft); }
@media (min-width: 40rem) { .honors { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.honors ul { display: grid; gap: 0.95rem; margin-top: 1rem; }
.honors li b { display: block; font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.honors li span { display: block; font-size: 0.8rem; color: var(--faint); margin-top: 0.15rem; }

/* ---- stage ----------------------------------------------------------- */

.stage { display: grid; gap: 1.5rem; }
@media (min-width: 56rem) { .stage { grid-template-columns: repeat(3, 1fr); } }
.stage__col { border-top: 2px solid var(--line); padding-top: 1.2rem; }
.stage__col--now { border-top-color: var(--gold); }
.stage__col--soon { border-top-color: var(--gold-deep); }
.stage__col h3 { font-size: 1.1rem; margin-bottom: 0.7rem; }
.stage__col p { font-size: 0.92rem; color: var(--ink-2); }

/* ---- cta ------------------------------------------------------------- */

.cta { text-align: center; padding: clamp(4.5rem, 9vw, 8rem) 0; background: var(--void); border-top: 1px solid var(--line-soft); }
.cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 1rem auto 1.2rem; max-width: 18ch; }
.cta p { color: var(--ink-2); max-width: 54ch; margin: 0 auto 2.2rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }

/* ---- footer ---------------------------------------------------------- */

.foot { padding: 3rem 0 4rem; border-top: 1px solid var(--line-soft); }
.foot__legal { font-size: 0.74rem; color: var(--faint); line-height: 1.75; max-width: 78ch; }
.foot__legal b { color: var(--muted); font-weight: 500; }
.foot__base { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); font-size: 0.8rem; color: var(--faint); }
.foot__base a:hover { color: var(--gold); }

/* ---- analysis section (#analysis) ------------------------------------ */
/* The FBI-review article, merged from the former analysis.html. Components
   keep their original class names; everything is scoped under #analysis.  */

#analysis section { padding: 2.75rem 0 0; }

#analysis .a-hero .lede { margin-bottom: 0; }

#analysis .sec-head { max-width: var(--measure); margin-bottom: 1.6rem; }
#analysis .sec-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); margin-bottom: 0.8rem; }
#analysis .sec-head p { color: var(--ink-2); }

#analysis .a-lead { font-size: 1rem; color: var(--ink-2); max-width: 72ch; margin-bottom: 1.1rem; line-height: 1.75; }
#analysis .a-lead strong { color: var(--ink); font-weight: 600; }
#analysis .a-lead sup, #analysis .timeline sup, #analysis .cap sup, #analysis .proc-note sup { font-size: 0.7em; color: var(--gold); }

#analysis .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.9rem; }
#analysis .stat { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 3px; padding: 1rem 1.1rem; }
#analysis .stat .n { display: block; font-family: var(--display); font-size: 2.1rem; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1.1; }
#analysis .stat .n em { font-style: normal; font-size: 1.4rem; }
#analysis .stat .l { display: block; margin-top: 0.45rem; font-size: 0.78rem; color: var(--muted); line-height: 1.45; }

#analysis .grid { display: grid; gap: 1rem; margin-top: 0.6rem; }
@media (min-width: 48rem) { #analysis .grid { grid-template-columns: 1fr 1fr; } }
#analysis .grid .card h3 { margin-top: 0.6rem; }
#analysis .num {
  font-family: var(--mono); font-size: 0.72rem; color: var(--gold-deep); letter-spacing: 0.14em;
  text-transform: uppercase;
}

#analysis .timeline { margin-top: 1.6rem; border-left: 3px solid var(--gold-deep); }
#analysis .timeline li { position: relative; padding: 0 0 1.8rem 1.7rem; }
#analysis .timeline li:last-child { padding-bottom: 0.3rem; }
#analysis .timeline li::before {
  content: ""; position: absolute; left: -0.5rem; top: 0.3rem; width: 0.75rem; height: 0.75rem;
  border-radius: 50%; background: var(--gold); border: 3px solid var(--ground);
}
#analysis .timeline .yr { font-family: var(--display); font-size: 1.08rem; color: var(--ink); display: block; margin-bottom: 0.3rem; }
#analysis .timeline p { font-size: 0.92rem; color: var(--ink-2); max-width: 72ch; }
#analysis .timeline p strong { color: var(--ink); }

/* Chart plates stay deliberately light: the SVGs' grid lines and labels are
   authored in explicit light-theme colors, so the plate ships its own ground
   — like the product screenshots — rather than a re-themed copy. */
#analysis .chart-card {
  background: #F6F8FA; border: 1px solid var(--line); border-radius: 3px;
  padding: 1.25rem 1.4rem; margin: 1.6rem 0; box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.9);
}
#analysis .chart-card h3 { color: #1E3A5F; font-size: 1.02rem; margin-bottom: 0.15rem; }
#analysis .chart-card .cap { font-size: 0.78rem; color: #5B6B7C; margin-bottom: 0.9rem; }
#analysis .chart-card .cap sup { color: #9A7B2E; }
#analysis .chart-card svg { width: 100%; height: auto; display: block; }
#analysis .bar { transition: opacity 0.15s; }
#analysis .bar:hover { opacity: 0.82; }

#analysis .proc-wrap { overflow-x: auto; margin-top: 1.5rem; border: 1px solid var(--line); border-radius: 3px; }
#analysis .proc { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.84rem; }
#analysis .proc th {
  background: var(--raised); color: var(--gold); text-align: left; padding: 0.7rem 0.9rem;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
}
#analysis .proc td { padding: 0.65rem 0.9rem; border-top: 1px solid var(--line-soft); color: var(--ink-2); vertical-align: top; }
#analysis .proc td.amt { white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }
#analysis .proc td.piid { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
#analysis .proc tr.hl td { background: rgba(201, 169, 78, 0.1); }
#analysis .proc-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.8rem; max-width: 78ch; }

#analysis .sources { font-size: 0.8rem; color: var(--muted); margin-top: 2.4rem; border-top: 1px solid var(--line-soft); padding-top: 1.4rem; }
#analysis .sources strong { color: var(--ink); }
#analysis .sources ol { list-style: decimal; margin-top: 0.5rem; padding-left: 1.3rem; display: grid; gap: 0.3rem; }
#analysis .sources a { color: var(--navy-lift); }
#analysis .sources a:hover { color: var(--gold); }

#analysis .notice {
  background: var(--raised); border: 1px solid var(--gold-deep); border-left: 4px solid var(--gold);
  border-radius: 3px; padding: 1.1rem 1.25rem; margin-top: 2rem; font-size: 0.9rem; color: var(--ink-2);
}
#analysis .notice strong { color: var(--ink); }

.tip {
  position: fixed; pointer-events: none; background: var(--void); color: var(--ink);
  border: 1px solid var(--line); font-size: 0.78rem; padding: 0.35rem 0.6rem; border-radius: 3px;
  opacity: 0; transform: translate(-50%, -130%); white-space: nowrap; z-index: 60;
  transition: opacity 0.12s;
}

.rv { opacity: 0; transform: translateY(1.1rem); transition: opacity 0.6s ease, transform 0.6s ease; }
.rv.in { opacity: 1; transform: none; }
