/* ============================================================
   Eliquo — marketing site.
   Same identity as the product: paper, ink, indigo. Precise,
   calm, high-trust. The dossier is the hero — the product's
   own output is the pitch.
   ============================================================ */

:root {
  --paper: #f7f6f2;
  --panel: #ffffff;
  --ink: #17171e;
  --ink-2: #4a4a55;
  --muted: #7a7a85;
  --line: #e2e0d8;
  --line-strong: #c9c7bd;
  --accent: #363390;
  --accent-ink: #2a2875;
  --accent-wash: #ededf7;

  --match: #a3232b;
  --match-wash: #f9ecec;
  --review: #92660d;
  --clear: #1e6b45;
  --clear-wash: #e9f2ed;

  --dark: #17171e;
  --dark-panel: #201f2b;
  --dark-line: #34333f;

  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --maxw: 1120px;
}

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

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mono { font-family: var(--mono); }

/* ---- shared type ---- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-dark .eyebrow { color: #a5a1e8; }

h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 21em;
}

h3 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}

/* ---- buttons ---- */
.btn, .btn-ghost {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 3px;
  padding: 11px 22px;
  cursor: pointer;
}
.btn {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn:hover { background: var(--accent-ink); text-decoration: none; }
.btn-lg { font-size: 17px; padding: 14px 30px; }
.btn-ghost {
  background: none;
  color: var(--accent-ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-wash); text-decoration: none; }

/* ============================== NAV ============================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 28px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.wordmark {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav-links a:hover { color: var(--accent-ink); text-decoration: none; }
.nav-cta {
  color: var(--accent-ink) !important;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 7px 16px;
}
.nav-cta:hover { border-color: var(--accent); background: var(--accent-wash); }

/* ============================== HERO ============================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 28px 88px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5.2vw, 60px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-ink);
}
.lede {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 34em;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

/* ---- the dossier (signature element) ---- */
.dossier-frame { min-width: 0; }
.dossier {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(23, 23, 30, 0.04), 0 12px 40px -18px rgba(42, 40, 117, 0.18);
  overflow: hidden;
}
.dossier-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.dossier-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.dossier-endpoint { font-size: 11.5px; color: var(--muted); }
.dossier-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  min-height: 50px;
}
.search-icon { color: var(--muted); font-size: 17px; }
.caret {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.dossier-result {
  padding: 16px;
  opacity: 0;
  transition: opacity 0.45s ease-out;
}
.dossier-result.shown { opacity: 1; }

.verdict-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 2px;
  padding: 3px 10px;
  color: #fff;
}
.pill-MATCH { background: var(--match); }
.pill-CLEAR { background: var(--clear); }
.verdict-prob { font-size: 12px; color: var(--muted); }
.verdict-narrative {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.verdict-narrative strong { color: var(--ink); }
.evidence { list-style: none; margin-bottom: 14px; }
.evidence li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}
.evidence li:last-child { border-bottom: none; }
.evidence .ev-name { color: var(--ink-2); }
.evidence .ev-val {
  font-family: var(--mono);
  font-size: 11.5px;
  white-space: nowrap;
}
.ev-pos { color: var(--clear); }
.ev-neg { color: var(--match); }
.ev-neutral { color: var(--muted); }
.coordinate {
  font-size: 10.5px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 7px 10px;
  overflow-wrap: anywhere;
}
.dossier-caption {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

/* ============================== PROOF STRIP ============================== */
.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof-item {
  padding: 26px 22px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.proof-item:first-child { border-left: none; padding-left: 0; }
.proof-figure {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.proof-label { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }

/* ============================== SECTIONS ============================== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px 28px;
}
.section-lede {
  font-size: 16.5px;
  color: var(--ink-2);
  max-width: 44em;
  margin-top: 18px;
}

/* ---- five jobs ---- */
.jobs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 44px;
}
.job {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px;
}
.job p { font-size: 14px; color: var(--ink-2); }
.job strong { color: var(--ink); font-weight: 650; }

.job-etym {
  background: var(--accent-wash);
  border-color: #d5d3ee;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.etym-latin {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent-ink);
  margin-bottom: 10px;
}
.etym-latin span {
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.etym-def { font-size: 14px; color: var(--ink-2); }

/* ---- engine (dark) ---- */
.section-dark {
  max-width: none;
  background: var(--dark);
  color: #e8e7f0;
}
.section-dark > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}
.section-dark { padding: 96px 0; }
.section-dark h2 { color: #f2f1f7; }
.section-dark .section-lede { color: #b6b4c2; }
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 48px;
}
.pillar {
  background: var(--dark-panel);
  border: 1px solid var(--dark-line);
  border-radius: 4px;
  padding: 28px;
}
.pillar h3 { color: #cfcdf2; }
.pillar p { font-size: 14.5px; color: #b6b4c2; }
.pillar em { color: #e8e7f0; }

/* ---- posture ---- */
.posture {
  margin-top: 44px;
  border-top: 1px solid var(--line-strong);
}
.posture-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.posture-term {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-ink);
}
.posture-row p { font-size: 14.5px; color: var(--ink-2); max-width: 46em; }

/* ---- editions ---- */
.section-tint {
  max-width: none;
  background: linear-gradient(var(--paper), #f0eff9 140%);
  border-top: 1px solid var(--line);
}
.section-tint > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}
.editions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 44px;
}
.edition {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
}
.edition p { font-size: 14px; color: var(--ink-2); }
.editions-note {
  margin-top: 30px;
  font-size: 14px;
  color: var(--muted);
  max-width: 52em;
}

/* ============================== CONTACT ============================== */
.contact {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 100px 28px 110px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact h2 { margin-bottom: 14px; }
.contact-lede {
  font-size: 16.5px;
  color: var(--ink-2);
  max-width: 34em;
  margin-bottom: 32px;
}
.contact .btn-lg { font-family: var(--mono); font-weight: 500; }

/* ============================== FOOTER ============================== */
.footer {
  border-top: 1px solid var(--line);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px 28px 44px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand .wordmark { font-size: 17px; }
.footer-line { font-size: 13.5px; color: var(--ink-2); }
.footer-fine { font-size: 12px; color: var(--muted); }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 40px; }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .proof-item { border-left: none; padding-left: 0; }
  .jobs, .editions { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .posture-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 620px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .jobs, .editions, .proof { grid-template-columns: 1fr; }
  .section { padding: 64px 20px; }
  .hero { padding-left: 20px; padding-right: 20px; }
}
