/* SiteDNA website — shared styles (index.html, privacy.html) */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* Type scale (px): 14 · 17 · 20 · 24 · 44 · 48 · 64 · 88 */
  --paper: #F3F5FA;
  --ink: #0D1322;
  --muted: #545E75;
  --indigo: #3730C4;
  --line: #D8DDE8;
  --pass: #0B6E44;
  --white: #FFFFFF;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--indigo); text-underline-offset: 3px; }
code { font: 14px var(--mono); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 750 24px/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.top nav a:hover { color: var(--ink); }

/* Headings */
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 88px); font-weight: 760; line-height: 1.0; max-width: 13ch; }
h2 { font-size: clamp(32px, 4vw, 44px); font-weight: 700; line-height: 1.1; margin-bottom: 28px; }
h3 { font-size: 20px; font-weight: 650; line-height: 1.25; }

/* Hero */
.hero { padding-top: 56px; padding-bottom: 36px; }
.lede { font-size: 20px; color: var(--muted); max-width: 58ch; margin: 26px 0 30px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.btn { display: inline-block; padding: 13px 20px; border-radius: 10px; font-weight: 650; font-size: 17px; text-decoration: none; }
.btn-primary { background: var(--indigo); color: var(--white); }
.btn-primary:hover { background: #2B25A6; }
.status { display: inline-block; padding: 12px 16px; border: 1px dashed var(--muted); border-radius: 10px; color: var(--muted); font-size: 14px; }
.promise { margin: 22px 0 0; font-size: 14px; color: var(--muted); }

/* Live specimen: this page measured by its own script */
.specimen { padding-bottom: 72px; }
.dna { display: flex; gap: 4px; height: 230px; align-items: stretch; }
.bar {
  flex: 1 1 0; min-width: 26px; border-radius: 6px; position: relative;
  box-shadow: inset 0 0 0 1px rgba(13, 19, 34, 0.14);
  transform-origin: bottom; animation: grow 700ms cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i) * 70ms);
}
.bar span {
  position: absolute; left: 8px; bottom: 10px; writing-mode: vertical-rl; transform: rotate(180deg);
  font: 600 14px/1 var(--mono);
}
@keyframes grow { from { transform: scaleY(0.04); } to { transform: scaleY(1); } }
.readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 22px 0 0; }
.readout div { border-top: 2px solid var(--ink); padding-top: 10px; }
.readout dt { font-size: 14px; color: var(--muted); }
.readout dd { margin: 4px 0 0; font: 650 20px/1.3 var(--display); }
.caption { font-size: 14px; color: var(--muted); margin: 18px 0 0; max-width: 62ch; }

/* Sections */
/* hairline drawn inside the side padding, so it lines up with the content */
.block { padding-top: 64px; padding-bottom: 64px; background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 48px) 1px no-repeat; }

/* Free vs PRO */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--ink); border-radius: 16px; overflow: hidden; }
.tier { padding: 30px 32px; }
.tier ul { margin: 18px 0 0; padding-left: 20px; }
.tier li { margin-bottom: 10px; }
.tier-pro { background: var(--ink); color: var(--paper); }
.tier-pro h3 { color: var(--white); }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font: 760 48px/1 var(--display); color: var(--indigo); margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 8px 0 0; }

/* Report index: uses the report's own section numbers */
.report-index { list-style: none; counter-reset: sec; margin: 0; padding: 0; }
.report-index li { counter-increment: sec; display: grid; grid-template-columns: 64px 1fr; gap: 6px 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.report-index li::before { content: counter(sec, decimal-leading-zero); grid-row: span 2; font: 700 24px/1.2 var(--display); color: var(--muted); }
.report-index b { font-family: var(--display); font-size: 20px; font-weight: 650; }
.report-index span { color: var(--muted); }

/* Pricing */
.price { max-width: 560px; }
.amount { font: 760 64px/1 var(--display); margin: 0 0 14px; letter-spacing: -0.03em; }
.price p { margin: 0 0 22px; }
.fine { font-size: 14px; color: var(--muted); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 760px; }
summary { cursor: pointer; font-weight: 650; font-size: 17px; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
.foot { background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 48px) 1px no-repeat; padding-top: 28px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); }

/* Long-form pages (privacy) */
.doc { padding-top: 40px; padding-bottom: 72px; }
.doc > * { max-width: 720px; }
.doc h1 { font-size: clamp(44px, 5vw, 64px); max-width: none; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc .updated { color: var(--muted); margin: 14px 0 28px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }

@media (max-width: 760px) {
  .tiers, .steps, .readout { grid-template-columns: 1fr; }
  .dna { height: 170px; gap: 3px; }
  .bar { min-width: 0; }
  .bar span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar { animation: none; }
}
