/* ProvenStack design system - "The Journal" edition
   Editorial review publication: Newsreader serif display, mono lab annotations,
   warm paper. Light default, dark via prefers-color-scheme. */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400..700;1,6..72,400..600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --paper: #faf8f2;
  --ink: #1e1b14;
  --ink-soft: #57513f;
  --ink-faint: #8a8471;
  --accent: #0f6b4f;      /* deep green - "proven" */
  --accent-soft: #e3f0ea;
  --amber: #b06e00;
  --amber-soft: #fdf3e4;
  --red: #a34b2a;
  --red-soft: #f9e8e4;
  --card: #fffdf8;
  --panel: #f3f0e6;
  --line: #d9d4c6;
  --shadow: 0 1px 2px rgba(30,27,20,.05), 0 4px 16px rgba(30,27,20,.04);
  --radius: 12px;
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --measure: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1b1815;
    --ink: #ece9e2;
    --ink-soft: #b6b1a6;
    --ink-faint: #837e74;
    --accent: #4fb493;
    --accent-soft: #14281f;
    --amber: #d9a04c;
    --amber-soft: #2b2213;
    --red: #d97862;
    --red-soft: #2e1a15;
    --card: #221e17;
    --panel: #262218;
    --line: #363126;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  }
}

:root[data-theme="dark"] {
  --paper: #1b1815;
    --ink: #ece9e2;
    --ink-soft: #b6b1a6;
    --ink-faint: #837e74;
    --accent: #4fb493;
    --accent-soft: #14281f;
    --amber: #d9a04c;
    --amber-soft: #2b2213;
    --red: #d97862;
    --red-soft: #2e1a15;
    --card: #221e17;
    --panel: #262218;
    --line: #363126;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
}

:root[data-theme="light"] {
  --paper: #faf8f2;
    --ink: #1e1b14;
    --ink-soft: #57513f;
    --ink-faint: #8a8471;
    --accent: #0f6b4f;
    --accent-soft: #e3f0ea;
    --amber: #b06e00;
    --amber-soft: #fdf3e4;
    --red: #a34b2a;
    --red-soft: #f9e8e4;
    --card: #fffdf8;
    --panel: #f3f0e6;
    --line: #d9d4c6;
    --shadow: 0 1px 2px rgba(30,27,20,.05), 0 4px 16px rgba(30,27,20,.04);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; text-wrap: pretty; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 2.5rem 0 1rem; }
h3 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
p { margin-bottom: 1.1rem; }

.wrap { max-width: 71rem; margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: var(--measure); }
.prose > p, .prose > ul, .prose > ol { max-width: var(--measure); }
.prose ul, .prose ol { margin: 0 0 1.1rem 1.4rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem;
}
.logo {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: .5rem;
}
.logo .tick {
  display: inline-flex; width: 1.5rem; height: 1.5rem; border-radius: 6px;
  background: var(--accent); color: #fff; align-items: center; justify-content: center;
  font-size: .95rem; font-family: var(--font-body); font-weight: 800;
  box-shadow: 0 4px 0 -2px rgba(15,107,79,.55), 0 8px 0 -4px rgba(15,107,79,.28);
  position: relative; top: -2px;
}
.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav .cta {
  background: var(--accent); color: #fff; padding: .5rem 1.1rem; border-radius: 999px;
}
.nav .cta:hover { opacity: .92; color: #fff; }
@media (max-width: 640px) {
  .nav a:not(.cta) { display: none; }
  .nav .cta { font-size: .85rem; padding: .45rem .85rem; white-space: nowrap; }
  .logo { font-size: 1.15rem; }
}
.nav .cta { white-space: nowrap; }

.theme-toggle {
  background: none; border: 1.5px solid var(--line); border-radius: 99px;
  width: 2rem; height: 2rem; cursor: pointer; color: var(--ink-soft);
  font-size: .95rem; line-height: 1; display: inline-flex;
  align-items: center; justify-content: center;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0 1.5rem; }
.hero .kicker, .mono-kicker {
  font-family: var(--font-mono); color: var(--accent); font-weight: 500; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.1rem;
}
.hero h1 { max-width: 52rem; margin-bottom: 1.25rem; }
.hero .sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 40rem; margin-bottom: 1rem; line-height: 1.6; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 600;
  padding: .8rem 1.6rem; border-radius: 999px; text-decoration: none; border: none;
  font-size: 1rem; cursor: pointer;
}
.btn:hover { opacity: .92; color: #fff; }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }

/* ---------- Index picker (the hero of the homepage) ---------- */
.index { margin: 2.5rem 0 1rem; }
.index-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-faint);
  border-bottom: 2px solid var(--ink); padding-bottom: .6rem;
}
.index-rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3.5rem; }
@media (max-width: 760px) { .index-rows { grid-template-columns: 1fr; } }
.index-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.index-row:hover { background: var(--panel); }
.index-row .who { font-family: var(--font-display); font-size: 1.55rem; font-weight: 500; line-height: 1.15; }
.index-row .cost { font-family: var(--font-mono); font-size: .82rem; color: var(--ink-soft); white-space: nowrap; }
.index-row.alt .who { font-size: 1.15rem; font-style: italic; color: var(--ink-soft); font-weight: 400; }
.index-row.alt .cost { color: var(--accent); }

/* ---------- Why band (numbered rules) ---------- */
.why-band {
  border-top: 2px solid var(--ink); background: var(--panel);
  margin: 3rem 0 0;
}
.why-band .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.75rem; padding-top: 3rem; padding-bottom: 3rem; }
@media (max-width: 760px) { .why-band .wrap { grid-template-columns: 1fr; gap: 2rem; } }
.why-band .num { font-family: var(--font-display); font-size: 2.75rem; font-weight: 500; color: var(--accent); line-height: 1; }
.why-band h3 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; margin: .75rem 0 .5rem; }
.why-band p { color: var(--ink-soft); font-size: .92rem; line-height: 1.6; margin: 0; }

/* ---------- Receipts strip (honest numbers only) ---------- */
.receipts {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .8rem; color: var(--ink-soft);
}
.receipts b { color: var(--ink); font-weight: 600; }
.receipts .g { color: var(--accent); }

/* ---------- Profession chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1rem 0 1.5rem; }
.chips span { color: var(--ink-faint); font-size: .95rem; margin-right: .25rem; }
.chips a {
  display: inline-block; padding: .35rem .85rem; border-radius: 99px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  text-decoration: none; font-size: .92rem; font-weight: 600;
}
.chips a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin: 2rem 0; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h3 { margin-top: 0; display: flex; align-items: center; gap: .55rem; }
.card h3 .cicon { width: 1.35rem; height: 1.35rem; color: var(--accent); flex-shrink: 0; }
.card .meta { color: var(--ink-faint); font-size: .85rem; margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.card a.more { font-weight: 600; font-size: .95rem; }

/* ---------- Verdict card (money pages) ---------- */
.verdict {
  background: var(--card); border: 1.5px solid var(--accent); border-radius: var(--radius);
  padding: 1.75rem; margin: 2rem 0; box-shadow: var(--shadow);
}
.verdict .label {
  color: var(--accent); font-weight: 800; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem;
}
.verdict h3 { margin: 0 0 .5rem; }
.verdict .price { color: var(--ink-faint); font-size: .9rem; margin-bottom: 1rem; }

/* ---------- Score bars ---------- */
.scores { display: grid; gap: .6rem; margin: 1.25rem 0; }
.score { display: grid; grid-template-columns: 9rem 1fr 2.5rem; gap: .75rem; align-items: center; font-size: .9rem; }
.score .bar { height: .5rem; background: var(--line); border-radius: 99px; overflow: hidden; }
.score .bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.score .num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Pros / cons / skip ---------- */
.pc { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin: 1.5rem 0; }
@media (max-width: 640px) { .pc { grid-template-columns: 1fr; } }
.pc .pros, .pc .cons {
  border-radius: var(--radius); padding: 1.25rem 1.4rem; font-size: .95rem;
}
.pc .pros { background: var(--accent-soft); }
.pc .cons { background: var(--red-soft); }
.pc h4 { margin-bottom: .6rem; font-size: .95rem; }
.pc ul { margin-left: 1.1rem; }
.pc li { margin-bottom: .35rem; }
.skip {
  background: var(--amber-soft); border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.4rem; margin: 1.5rem 0;
  font-size: .97rem;
}
.skip b { color: var(--amber); }

/* ---------- Disclosure ---------- */
.disclosure {
  font-size: .78rem; color: var(--ink-faint); background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; padding: .5rem .9rem; margin: 1rem 0;
}
.disclosure a { color: var(--ink-soft); }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; background: var(--card); border-radius: var(--radius); }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
tr:last-child td { border-bottom: none; }
td .win { color: var(--accent); font-weight: 700; }

/* ---------- Email capture ---------- */
.capture {
  background: var(--ink); color: var(--paper); border-radius: var(--radius);
  padding: 2.5rem; margin: 3rem 0; text-align: center;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .capture { background: var(--card); border: 1px solid var(--line); color: var(--ink); } }
:root[data-theme="dark"] .capture { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.capture h2 { margin: 0 0 .5rem; }
.capture p { opacity: .8; max-width: 34rem; margin: 0 auto 1.5rem; }
.capture .capture-art { width: 84px; height: auto; margin: 0 auto .75rem; display: block; opacity: .95; }
.capture form { display: flex; gap: .6rem; max-width: 26rem; margin: 0 auto; flex-wrap: wrap; }
[hidden] { display: none !important; }
.capture input[type=email] {
  flex: 1; min-width: 14rem; padding: .8rem 1rem; border-radius: 10px;
  border: 1px solid var(--ink-faint); font-size: 1rem; background: var(--paper); color: var(--ink);
}
.capture .fine { font-size: .8rem; opacity: .6; margin-top: .9rem; }

/* ---------- Steps / method ---------- */
.steps { counter-reset: step; margin: 2rem 0; display: grid; gap: 1.25rem; }
.step { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  width: 3rem; height: 3rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: .3rem 0 .35rem; }
.step p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* ---------- TOC ---------- */
.toc {
  background: var(--card); border: 1.5px solid var(--accent); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; margin: 1.5rem 0 2rem; font-size: 1.05rem;
}
.toc a { font-weight: 650; }
.toc li { margin-bottom: .45rem; }
.toc b { display: block; margin-bottom: .5rem; }
.toc ol { margin-left: 1.2rem; }
.toc li { margin-bottom: .3rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 4rem; padding: 2.5rem 0 3rem;
  color: var(--ink-faint); font-size: .9rem;
}
.site-footer .cols { display: flex; gap: 3rem; flex-wrap: wrap; justify-content: space-between; }
.site-footer a { color: var(--ink-soft); text-decoration: none; display: block; margin-bottom: .4rem; }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal { margin-top: 2rem; font-size: .8rem; max-width: 50rem; }

/* ---------- Page header ---------- */
.page-head { padding: 3rem 0 1rem; }
.page-head .kicker { font-family: var(--font-mono); color: var(--accent); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.page-head .byline { color: var(--ink-faint); font-size: .9rem; margin-top: 1rem; }

.badge {
  display: inline-block; font-size: .75rem; font-weight: 700; padding: .2rem .6rem;
  border-radius: 99px; background: var(--accent-soft); color: var(--accent);
  text-transform: uppercase; letter-spacing: .05em;
}
.badge.amber { background: var(--amber-soft); color: var(--amber); }

/* "Was this page useful?" feedback bar (injected by main.js on stack/compare pages) */
.feedback-box {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  margin: 2.5rem 0 1rem; padding: .8rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--ink-soft); font-size: .9rem;
}
.fb-btn, .fb-send {
  font: inherit; padding: .25rem .9rem; cursor: pointer;
  border: 1px solid var(--accent); border-radius: 999px;
  background: transparent; color: var(--accent);
}
.fb-btn:hover, .fb-send:hover { background: var(--accent-soft); }
.fb-note { display: flex; gap: .5rem; flex: 1 1 16rem; }
.fb-note input {
  flex: 1; font: inherit; padding: .3rem .6rem;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--paper); color: var(--ink);
}
.fb-done { color: var(--accent); }
