/* DupeGuard — dupeguard.com
   Direction: audit report / evidence file. Left-ruled, institutional,
   monospace for anything that is data. The palette derives from the app
   icon (navy ground, mint mark); the mint is darkened here so it passes
   contrast as text on a light ground. */

:root {
  --ink: #131a2e;
  --ink-soft: #2a3350;
  --paper: #fbfcfe;
  --panel: #eef1f7;
  --panel-2: #e3e8f2;
  --rule: #d3dae8;
  --muted: #5a6480;
  --mint: #1f9e7f;
  --mint-deep: #15705a;
  --amber: #a8641a;

  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "IBM Plex Serif", ui-serif, Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --measure: 64ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7ecf7;
    --ink-soft: #b9c2d8;
    --paper: #0d1220;
    --panel: #151c2e;
    --panel-2: #1d2639;
    --rule: #2a344b;
    --muted: #8f9ab6;
    --mint: #4fc7a4;
    --mint-deep: #7fdcbf;
    --amber: #d69544;
  }
}

:root[data-theme="dark"] {
  --ink: #e7ecf7;
  --ink-soft: #b9c2d8;
  --paper: #0d1220;
  --panel: #151c2e;
  --panel-2: #1d2639;
  --rule: #2a344b;
  --muted: #8f9ab6;
  --mint: #4fc7a4;
  --mint-deep: #7fdcbf;
  --amber: #d69544;
}

:root[data-theme="light"] {
  --ink: #131a2e;
  --ink-soft: #2a3350;
  --paper: #fbfcfe;
  --panel: #eef1f7;
  --panel-2: #e3e8f2;
  --rule: #d3dae8;
  --muted: #5a6480;
  --mint: #1f9e7f;
  --mint-deep: #15705a;
  --amber: #a8641a;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "kern";
}

h1, h2, h3, .label, nav, .btn, th, .stamp {
  font-family: var(--sans);
}

h1, h2, h3 { text-wrap: balance; line-height: 1.12; margin: 0; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); letter-spacing: -0.022em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.95rem); letter-spacing: -0.014em; }
h3 { font-size: 1.0625rem; letter-spacing: -0.005em; }

p { margin: 0; }
a { color: var(--mint-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible,
.btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  font-size: 0.6875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
}
.brand svg { display: block; }
nav { display: flex; gap: 1.4rem; align-items: center; font-size: 0.9rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }

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

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem);
}
@media (min-width: 62rem) {
  .hero { grid-template-columns: 1.02fr 1fr; align-items: start; }
}

.hero-copy { border-left: 2px solid var(--mint); padding-left: clamp(1rem, 2.5vw, 1.6rem); }
.hero-copy > * + * { margin-top: 1.1rem; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 46ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.6rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 0.72rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 550;
  text-decoration: none;
  border-radius: 3px;
  transition: transform 120ms ease, background 120ms ease;
}
.btn:hover { transform: translateY(-1px); background: var(--ink-soft); }
.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-quiet:hover { background: var(--panel); }
.fineprint { font-size: 0.85rem; color: var(--muted); font-family: var(--sans); }

/* ---------- evidence panel (the thesis) ---------- */

.evidence {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.83rem;
}
.evidence-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--rule);
  background: var(--panel-2);
}
.evidence-head .label { color: var(--ink-soft); }

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  opacity: 0;
  animation: settle 460ms cubic-bezier(.2,.7,.3,1) forwards;
}
.row:nth-child(2) { animation-delay: 120ms; }
.row:nth-child(3) { animation-delay: 260ms; }
.row:nth-child(4) { animation-delay: 400ms; }
.row:nth-child(5) { animation-delay: 540ms; }

@keyframes settle {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .row { animation: none; opacity: 1; }
}

.row .addr { color: var(--ink); word-break: break-all; }
.row .meta { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.row .note {
  grid-column: 1 / -1;
  color: var(--amber);
  font-size: 0.76rem;
  font-family: var(--sans);
}

.verdict {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  background: var(--panel-2);
  flex-wrap: wrap;
}
.stamp {
  border: 1.5px solid var(--amber);
  color: var(--amber);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  padding: 0.22rem 0.5rem;
  border-radius: 2px;
  text-transform: uppercase;
}
.verdict p { font-family: var(--sans); font-size: 0.83rem; color: var(--ink-soft); }

/* ---------- sections ---------- */

section { padding-block: clamp(2.5rem, 6vw, 4.25rem); border-top: 1px solid var(--rule); }
.section-head { max-width: var(--measure); }
.section-head > * + * { margin-top: 0.6rem; }
.section-head p { color: var(--ink-soft); }

.grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.card > * + * { margin-top: 0.5rem; }
.card h3 { color: var(--ink); }
.card p { color: var(--ink-soft); font-size: 0.97rem; }
.card .label { display: block; color: var(--mint-deep); }

.steps { counter-reset: step; margin-top: 2.25rem; display: grid; gap: 1.35rem; max-width: var(--measure); }
.step { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; }
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--mint-deep);
  border: 1px solid var(--rule);
  border-radius: 50%;
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  margin-top: 0.1rem;
}
.step h3 { margin-bottom: 0.2rem; }
.step p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- honesty block ---------- */

.honest {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--amber);
  border-radius: 3px;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  max-width: var(--measure);
  margin-top: 2rem;
}
.honest > * + * { margin-top: 0.7rem; }
.honest p { font-size: 0.97rem; color: var(--ink-soft); }

/* ---------- pricing ---------- */

.tiers {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.tier {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.tier.feature { border-color: var(--mint); }
.tier .price { font-family: var(--mono); font-size: 1.5rem; color: var(--ink); letter-spacing: -0.02em; }
.tier .price span { font-size: 0.8rem; color: var(--muted); }
.tier p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- prose (privacy / support) ---------- */

.prose { max-width: var(--measure); padding-block: clamp(2.5rem, 6vw, 4rem); }
.prose > * + * { margin-top: 1.05rem; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { margin: 0; padding-left: 1.15rem; }
.prose li + li { margin-top: 0.4rem; }
.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--panel);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}
.prose table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
.prose th, .prose td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.updated { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }

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

footer {
  border-top: 1px solid var(--rule);
  padding-block: 2rem 3rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 1.6rem; justify-content: space-between; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer nav { gap: 1.2rem; }
