/* ExactMark — Newsrooms & publishers
   Light, editorial paper. Masthead header, column rules, ink-black buttons, red hairline marks. */

/* ---------- Tokens ---------- */
:root {
  --bg: #fbf8f1;
  --surface: #ffffff;
  --text: #141414;
  --muted: #5d5a54;
  --line: #dcd7cc;
  --ink: #2b2a28;
  --accent: #b3261e;
  --accent-soft: rgba(179, 38, 30, .1);
  --radius: 6px;
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: 1160px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.015em; line-height: 1.18; margin: 0; }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 21px; }
p { margin: 0; }
a { color: inherit; }
code { font: 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--accent-soft); padding: 2px 6px; border-radius: 4px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
section { padding: 88px 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--accent); }

/* ---------- Column rules (shared) ---------- */
.rules-2, .rules-3, .rules-4 { display: grid; gap: 0; }
.rules-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rules-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rules-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rules-2 > *, .rules-3 > *, .rules-4 > * { padding: 0 32px; border-left: 1px solid var(--line); }
.rules-2 > :first-child, .rules-3 > :first-child, .rules-4 > :first-child { padding-left: 0; border-left: 0; }
.rules-2 > :last-child, .rules-3 > :last-child, .rules-4 > :last-child { padding-right: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius); font-weight: 600; text-decoration: none;
  transition: background .18s, transform .18s;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }
.text-link { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.text-link:hover { color: var(--accent); }

/* ---------- Masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 3px double var(--ink); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -.02em;
  text-decoration: none;
}
.brand img { width: 22px; height: 22px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > a:not(.btn) { color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.site-nav > a:not(.btn):hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.dateline {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.dateline span { color: var(--accent); margin: 0 6px; }
h1 { font-size: clamp(38px, 4.6vw, 58px); letter-spacing: -.025em; line-height: 1.1; }
.lede { margin-top: 24px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 32px; }
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust span::before { content: ""; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }

/* ---------- Hero visual: draft page ---------- */
.hero-visual { position: relative; padding-bottom: 72px; }
.draft-page {
  position: relative; padding: 26px 28px 24px; border: 1px solid var(--line); border-top: 3px solid var(--accent);
  background: var(--surface); box-shadow: 0 1px 0 var(--line), 0 24px 40px -30px rgba(20, 20, 20, .35);
}
.draft-page::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image: radial-gradient(circle, var(--ink) .7px, transparent 1.1px); background-size: 16px 16px;
  animation: signalDrift 14s linear infinite;
}
.draft-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.draft-status { color: var(--accent); }
.draft-status span { margin: 0 4px; color: var(--muted); }
.draft-version { color: var(--muted); }
.headline { display: grid; gap: 10px; margin-top: 22px; }
.headline i { display: block; height: 18px; background: var(--ink); border-radius: 2px; }
.headline i:last-child { width: 68%; }
.byline {
  margin-top: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
}
.byline span { margin: 0 4px; color: var(--accent); font-style: normal; }
.body-skeleton { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }
.body-skeleton .col { display: grid; gap: 9px; }
.body-skeleton .col + .col { padding-left: 24px; border-left: 1px solid var(--line); }
.body-skeleton i { display: block; height: 7px; border-radius: 2px; background: #e4e0d6; }
.body-skeleton i:nth-child(2) { width: 92%; }
.body-skeleton i:nth-child(4) { width: 84%; }
.body-skeleton i:nth-child(6) { width: 58%; }
.recipients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg);
}
.chip small { color: var(--muted); font-weight: 500; font-size: 11px; }
.chip.is-match { border-color: var(--accent); background: var(--accent-soft); }
.match-card {
  position: absolute; right: -16px; bottom: 0; display: grid; gap: 6px; width: min(300px, 82%); padding: 18px 20px;
  border: 1px solid var(--ink); border-left: 4px solid var(--accent); background: var(--surface); box-shadow: 0 18px 30px -20px rgba(20, 20, 20, .45);
}
.match-head { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.match-head span { margin: 0 3px; }
.match-label { font-size: 13px; color: var(--muted); }
.match-card strong { font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.match-card strong span { color: var(--accent); margin: 0 6px; }
.match-score { font-size: 13px; color: var(--muted); }
.match-score b { margin-left: 4px; font-family: var(--font-head); font-size: 22px; color: var(--text); }
.rank {
  display: grid;
  gap: 7px;
  margin: 8px 0 0;
  padding: 12px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.rank li {
  display: grid;
  grid-template-columns: 58px 1fr 38px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.rank li i { position: relative; height: 6px; background: #ece8df; }
.rank li i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ink); }
.rank li:nth-child(1) i::after { --w: 89%; background: var(--accent); }
.rank li:nth-child(2) i::after { --w: 14%; }
.rank li:nth-child(3) i::after { --w: 5%; }
.rank li b { text-align: right; color: var(--text); }

@keyframes signalDrift { to { background-position: 16px 16px; } }

/* ---------- Value strip ---------- */
.value-strip { padding: 0 0 80px; }
.value-strip ul { margin: 0; padding: 28px 0; list-style: none; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.value-strip li { display: grid; gap: 8px; }
.value-strip strong { font-family: var(--font-head); font-size: 18px; font-weight: 700; }
.value-strip span { color: var(--muted); font-size: 15px; }

/* ---------- Problem / Solution ---------- */
.problem { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pull-quote {
  max-width: 900px; margin-bottom: 56px; padding-left: 32px; border-left: 8px solid var(--accent);
  font-family: var(--font-head); font-weight: 600; font-size: clamp(24px, 3vw, 36px); line-height: 1.3; letter-spacing: -.015em;
}
.problem-grid h2 { font-size: clamp(24px, 2.6vw, 32px); }
.problem-grid p { margin-top: 18px; color: var(--muted); font-size: 16px; }
.problem-grid .text-link { display: inline-block; margin-top: 22px; }

/* ---------- How it works ---------- */
.how h2 { max-width: 760px; }
.steps { margin: 48px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px;
  border: 1px solid var(--ink); border-radius: 50%; font-family: var(--font-head); font-weight: 700; font-size: 17px;
}
.steps h3 { font-size: 22px; }
.steps p { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* ---------- Capabilities ---------- */
.capabilities { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cap-grid { margin-top: 44px; }
.cap-grid h3 { font-size: 19px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); display: inline-block; }
.cap-grid p { margin-top: 14px; color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-list { margin: 44px 0 0; row-gap: 36px; }
.faq-list > div { padding-top: 0; }
.faq-list > div:nth-child(odd) { padding-left: 0; border-left: 0; padding-right: 32px; }
.faq-list > div:nth-child(even) { padding-right: 0; }
.faq-list dt { font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.35; }
.faq-list dt::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 14px;
  background: var(--accent);
}
.faq-list dd { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- Final CTA ---------- */
.cta-band { padding: 96px 0; background: var(--ink); color: #fff; border-top: 3px double var(--line); }
.cta-inner { max-width: 720px; text-align: center; }
.cta-band h2 { font-size: clamp(32px, 4.2vw, 50px); }
.cta-band p { margin-top: 16px; color: #d9d6cf; font-size: 17px; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-primary { background: #fff; color: var(--text); }
.cta-band .btn-primary:hover { background: var(--bg); }
.cta-band .text-link { color: #fff; }
.cta-band .text-link:hover { color: #fff; text-decoration-color: #fff; }

/* ---------- Footer ---------- */
.site-footer { padding: 36px 0; border-top: 3px double var(--ink); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.tagline { text-align: center; color: var(--muted); font-size: 14px; font-style: italic; }
.site-footer nav { display: flex; justify-content: flex-end; gap: 22px; }
.site-footer nav a { color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.site-footer nav a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  section { padding: 68px 0; }
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 640px; }
  .match-card { right: 0; }
  .rules-3, .rules-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .rules-3 > :nth-child(odd), .rules-4 > :nth-child(odd) { padding-left: 0; border-left: 0; }
  .rules-3 > :nth-child(even), .rules-4 > :nth-child(even) { padding-right: 0; }
  .rules-3 > :nth-child(3) { grid-column: 1 / -1; padding-right: 0; }
  .problem-grid.rules-2 { grid-template-columns: 1fr; row-gap: 32px; }
  .problem-grid.rules-2 > * { padding: 0; border-left: 0; }
  .problem-grid.rules-2 > :last-child { padding-top: 32px; border-top: 1px solid var(--line); }
  .footer-inner { grid-template-columns: 1fr auto; }
  .tagline { display: none; }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 32px); }
  section { padding: 56px 0; }
  .masthead-inner { height: 64px; }
  .site-nav > a:not(.btn) { display: none; }
  .hero { padding-top: 40px; }
  h1 { font-size: clamp(32px, 9vw, 40px); }
  .lede { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-lg { width: 100%; }
  .text-link { align-self: center; }
  .draft-page { padding: 20px 18px; }
  .body-skeleton { grid-template-columns: 1fr; }
  .body-skeleton .col + .col { display: none; }
  .hero-visual { padding-bottom: 0; }
  .match-card { position: static; width: auto; margin-top: 16px; }
  .rules-2, .rules-3, .rules-4, .faq-list { grid-template-columns: 1fr; row-gap: 28px; }
  .rules-2 > *, .rules-3 > *, .rules-4 > *, .faq-list > div:nth-child(n) { padding: 0; border-left: 0; }
  .rules-3 > * + *, .rules-4 > * + *, .faq-list > div + div { padding-top: 28px; border-top: 1px solid var(--line); }
  .pull-quote { padding-left: 18px; border-left-width: 5px; margin-bottom: 40px; }
  .cta-band { padding: 64px 0; }
  .footer-inner { grid-template-columns: 1fr; justify-items: start; }
  .site-footer nav { justify-content: flex-start; flex-wrap: wrap; gap: 14px; }
}

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