/* ==========================================================================
   Simple PLR Shop — style.css
   Editorial, calm, trust-first. White paper, charcoal ink, muted blue,
   warm grey sections. Newsreader (display) / Public Sans (body) /
   IBM Plex Mono (data & ledgers).
   ========================================================================== */

:root {
  /* Colour */
  --paper: #ffffff;
  --warm: #f6f5f1;
  --warm-deep: #edebe4;
  --ink: #23282d;
  --ink-soft: #5b6167;
  --ink-faint: #8a9097;
  --blue: #3e5f7e;
  --blue-deep: #2d4860;
  --blue-tint: #eef3f7;
  --line: #e5e3dc;
  --green: #33684f;
  --green-tint: #edf4ef;
  --amber: #8a6d2f;
  --amber-tint: #f7f2e6;

  /* Type */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;

  /* Rhythm */
  --max: 1080px;
  --max-prose: 680px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(35, 40, 45, 0.04), 0 8px 24px rgba(35, 40, 45, 0.06);
  --shadow-lift: 0 2px 4px rgba(35, 40, 45, 0.05), 0 14px 34px rgba(35, 40, 45, 0.09);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset & base ---------- */

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--blue-tint); }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.3; }

p { margin: 0 0 1.2em; }

.lede {
  font-size: clamp(1.125rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }

/* ---------- Layout ---------- */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--max-prose); }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }

section { padding: clamp(56px, 9vw, 104px) 0; }
section.tight { padding: clamp(36px, 6vw, 64px) 0; }
.band-warm { background: var(--warm); }
.band-blue { background: var(--blue-deep); color: #e9eef3; }
.band-blue h2 { color: #ffffff; }
.band-blue p { color: #c7d3dd; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

@media (max-width: 820px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand span { color: var(--blue); }
.brand:hover { color: var(--ink); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 2px;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease);
}
.btn-primary { background: var(--blue); color: #ffffff; }
.btn-primary:hover {
  background: var(--blue-deep);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink-faint);
  color: var(--ink);
  transform: translateY(-1px);
}
.band-blue .btn-primary { background: #ffffff; color: var(--blue-deep); }
.band-blue .btn-primary:hover { background: var(--blue-tint); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------- Cards ---------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
a.card { display: block; color: var(--ink); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.975rem; }
.card .eyebrow { margin-bottom: 0.6rem; }

/* ---------- Status chips ---------- */

.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.chip-testing { background: var(--blue-tint); color: var(--blue-deep); border-color: #d5e1ea; }
.chip-verified { background: var(--green-tint); color: var(--green); border-color: #d8e6dd; }
.chip-pending { background: var(--amber-tint); color: var(--amber); border-color: #eadfc4; }

/* ---------- The ledger (signature element) ----------
   Real numbers, presented like a lab log. Mono face, dotted
   leaders, no decoration. Receipts, not marketing.            */

.ledger {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  font-family: var(--mono);
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}
.ledger-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ledger-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--line);
}
.ledger-row:last-child { border-bottom: none; }
.ledger-row .k { color: var(--ink-soft); white-space: nowrap; }
.ledger-row .dots {
  flex: 1;
  border-bottom: 1px dotted var(--warm-deep);
  transform: translateY(-4px);
}
.ledger-row .v { color: var(--ink); font-weight: 500; white-space: nowrap; }
.ledger-note {
  margin-top: 14px;
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Trust list ---------- */

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}
.trust-list li {
  position: relative;
  padding-left: 30px;
  font-size: 1.05rem;
  font-weight: 500;
}
.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue-tint);
  border: 1px solid var(--blue);
}
.trust-list li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: calc(0.42em + 3.5px);
  width: 7px;
  height: 4px;
  border-left: 1.6px solid var(--blue-deep);
  border-bottom: 1.6px solid var(--blue-deep);
  transform: rotate(-45deg);
}
@media (max-width: 640px) { .trust-list { grid-template-columns: 1fr; } }

/* ---------- Disclosure line ---------- */

.disclosure-inline {
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 1.4em 0;
}

/* ---------- Forms ---------- */

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  font-family: var(--body);
  font-size: 0.95rem;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
}
.consent { font-size: 0.8rem; color: var(--ink-faint); margin-top: 10px; }
.band-blue .consent { color: #9fb2c2; }
.band-blue .newsletter-form input[type="email"] { border-color: #45647f; background: #ffffff; }

/* ---------- Article / diary layout ---------- */

.article-header { padding: clamp(48px, 8vw, 88px) 0 clamp(24px, 4vw, 40px); }
.article-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.2rem;
}

.diary-list { display: grid; gap: 18px; }
.diary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.diary-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.diary-item .t { font-family: var(--display); font-size: 1.15rem; font-weight: 500; }
.diary-item .d { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-faint); margin-top: 2px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--warm);
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  margin-top: 0;
}
.footer-philosophy {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 28px;
  line-height: 1.4;
}
.footer-cols {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-links { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; margin: 0; padding: 0; }
.footer-links a { font-size: 0.875rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-fine { font-size: 0.8rem; color: var(--ink-faint); margin-top: 26px; max-width: 60ch; }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .diary-item { transition: none; }
}

/* ---------- Utility ---------- */

.divider { border: none; border-top: 1px solid var(--line); margin: 0; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ==========================================================================
   v2 — Test-ledger design language
   ========================================================================== */

/* ---------- Testing timeline (status stepper) ----------
   The lifecycle of every test, visible as design:
   Purchased → Installing → Testing → Week 1 → Week 2 → Review Published */

.timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  list-style: none;
  margin: 1.6rem 0;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.timeline li {
  position: relative;
  flex: 1;
  min-width: 92px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 26px;
}
.timeline li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--warm-deep);
  z-index: 2;
}
.timeline li::after {
  content: "";
  position: absolute;
  top: 12px;
  left: calc(-50% + 8px);
  width: calc(100% - 16px);
  height: 2px;
  background: var(--warm-deep);
  z-index: 1;
}
.timeline li:first-child::after { display: none; }
.timeline li.done { color: var(--ink-soft); }
.timeline li.done::before { background: var(--blue); border-color: var(--blue); }
.timeline li.done::after { background: var(--blue); }
.timeline li.current { color: var(--blue-deep); font-weight: 500; }
.timeline li.current::before {
  background: var(--paper);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-tint);
}
.timeline li.current::after { background: var(--blue); }

/* ---------- Lab report panel ----------
   The trust system: purchase facts presented like a laboratory
   report header, not a marketing box. */

.lab-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 2rem 0;
}
.lab-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--warm);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.lab-cell {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.lab-cell:nth-child(3n) { border-right: none; }
.lab-grid .lab-cell:nth-last-child(-n+3):nth-child(3n+1),
.lab-grid .lab-cell:nth-last-child(-n+2):nth-child(3n+2),
.lab-grid .lab-cell:last-child { border-bottom: none; }
.lab-cell .lab-k {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 5px;
}
.lab-cell .lab-v {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}
@media (max-width: 720px) {
  .lab-grid { grid-template-columns: 1fr 1fr; }
  .lab-cell:nth-child(3n) { border-right: 1px solid var(--line); }
  .lab-cell:nth-child(2n) { border-right: none; }
}

/* ---------- Results table ---------- */

.results-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper); }
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 760px;
}
.results-table th {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: left;
  font-weight: 500;
  padding: 14px 18px;
  background: var(--warm);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.results-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.results-table tr:last-child td { border-bottom: none; }
.results-table td.num { font-family: var(--mono); font-size: 0.88rem; white-space: nowrap; }
.results-table td.product a { font-weight: 600; color: var(--ink); }
.results-table td.product a:hover { color: var(--blue); }
.results-table tbody tr { transition: background-color 0.15s var(--ease); }
.results-table tbody tr:hover { background: var(--blue-tint); }

/* ---------- Philosophy close (end of every review) ---------- */

.philosophy-close {
  margin: 3rem 0 0;
  padding: 32px;
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.philosophy-close .pc-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.philosophy-close .pc-lines {
  font-family: var(--display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- Evidence figure ---------- */

.evidence {
  margin: 1.6em 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--warm);
}
.evidence .evidence-media {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.evidence figcaption {
  padding: 12px 18px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  background: var(--paper);
}
