/* =====================================================================
   PMF-PCF — "Verdict Ledger" brand stylesheet (live since 2026-06)
   Based on Refero styles: Vanta (editorial violet ledger on parchment)
   + Ventriloc (analytics console on parchment).
   Principles: parchment canvas, white cards with 1px ink hairlines
   instead of shadows, ONE violet action color per view, serif display,
   mono verdict labels. Flat, like a printed diagnostic report.
   ===================================================================== */

:root {
  /* Surfaces */
  --bg-deep: #ffffff;            /* "alt" sections = white report pages */
  --bg-app: #f7f6f2;             /* parchment canvas */
  --bg-card: #ffffff;            /* paper cards */
  --bg-card-alt: #f1efe9;        /* recessed surface */
  --lavender-wash: #e6e1f6;      /* hero band (Vanta pattern) */

  /* Hairlines (elevation = border, never shadow) */
  --border-soft: rgba(29, 28, 38, 0.12);
  --border-strong: rgba(29, 28, 38, 0.45);
  --hairline: rgba(29, 28, 38, 0.75);

  /* Foreground — ink scale */
  --fg-primary: #1d1c26;         /* ink */
  --fg-secondary: #52506a;       /* ink soft */
  --fg-muted: #6e6a92;           /* captions, labels */
  --fg-dim: #9d99b8;             /* placeholders */

  /* Violet (single action color, AA on white) */
  --purple-50: #e6e1f6;
  --purple-100: #6f5fb0;         /* inline links */
  --purple-200: #5b4a9e;         /* THE action color (buttons, accents) */
  --purple-300: #8a86a8;
  --purple-400: #6d6890;

  /* Semantic verdict colors (data only — never buttons) */
  --sage: #5e7d6b;               /* invest */
  --sage-soft: #4c685a;
  --gold: #80702d;               /* fix */
  --rose: #a05a5a;               /* misalignment / kill */
  --slate-blue: #41708f;
  --slate-blue-soft: #355d77;

  /* Type (unchanged — brand continuity) */
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Radius — Vanta triad: pill controls / 16px cards / small tags */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --maxw: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-app);
  color: var(--fg-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }

a { color: var(--purple-100); text-decoration: none; }
a:hover { color: var(--fg-primary); text-decoration: underline; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-200);
  margin: 0 0 16px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; color: var(--fg-primary); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.8vw, 4.4rem); line-height: 1.05; margin: 0 0 18px; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.12; margin: 0 0 14px; }
h3 { font-size: 1.3rem; line-height: 1.2; margin: 0 0 8px; }
p { margin: 0 0 16px; color: var(--fg-secondary); }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--fg-secondary); max-width: 64ch; text-wrap: pretty; }
.lead strong, p strong { color: var(--fg-primary); font-weight: 600; }
.muted { color: var(--fg-muted); }

/* ---------- Header / nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 242, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--fg-primary); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; color: var(--fg-primary); }
.brand img { width: 30px; height: 30px; display: block; }
.brand .word { font-family: var(--font-sans); }
.brand .word b { font-weight: 700; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--fg-secondary); font-weight: 500; font-size: 0.96rem; }
.nav-links a:hover { color: var(--fg-primary); text-decoration: none; }
.nav-links a.btn, .nav-links a.btn:hover { color: #ffffff; }
.nav .back { color: var(--fg-secondary); font-size: 0.95rem; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- Buttons (pill = signature) ---------- */
.btn {
  display: inline-block; font-family: var(--font-sans); font-weight: 600;
  background: var(--purple-200); color: #ffffff;
  padding: 13px 26px; border-radius: var(--radius-pill); font-size: 0.96rem; border: 0; cursor: pointer;
  transition: background .15s ease, transform .08s ease;
}
.btn:hover { text-decoration: none; color: #ffffff; background: #4c3d87; transform: translateY(-1px); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--fg-primary); border: 1.5px solid var(--hairline); }
.btn.ghost:hover { background: rgba(29,28,38,0.05); color: var(--fg-primary); box-shadow: none; }

/* ---------- Sections ---------- */
section { padding: 84px 0; border-top: 1px solid var(--border-soft); }
section.alt { background: var(--bg-deep); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.hero { padding: 110px 0 88px; border-top: none; background: var(--lavender-wash); border-bottom: 1px solid var(--border-soft); }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero .trust { margin-top: 24px; font-size: 0.92rem; color: var(--fg-muted); }

/* ---------- PMF -> PCF journey ---------- */
.journey { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 780px) { .journey { grid-template-columns: 1fr; } .journey .arrow { transform: rotate(90deg); justify-self: center; } }
.stage { border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 30px; background: var(--bg-card); }
.stage.pmf { border-top: 3px solid var(--slate-blue); }
.stage.pcf { border-top: 3px solid var(--sage); }
.stage h3 { display: flex; align-items: baseline; gap: 12px; }
.stage .q { color: var(--fg-secondary); margin-bottom: 8px; }
.tag { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: .12em; padding: 4px 9px; border-radius: var(--radius-pill); }
.tag.pmf { background: rgba(65,112,143,0.12); color: var(--slate-blue-soft); }
.tag.pcf { background: rgba(94,125,107,0.12); color: var(--sage-soft); }
.stage ul { margin: 14px 0 0; padding-left: 18px; color: var(--fg-secondary); }
.stage ul li { margin-bottom: 7px; }
.arrow { display: flex; align-items: center; justify-content: center; color: var(--purple-300); font-size: 2rem; font-weight: 300; }

/* ---------- Card grids ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 28px; background: var(--bg-card); }
.card .num { font-family: var(--font-mono); font-weight: 500; color: var(--purple-200); font-size: 0.82rem; letter-spacing: .12em; margin-bottom: 10px; }
.card h3 { font-size: 1.18rem; }

/* ---------- Screenshot placeholders ---------- */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.shot {
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
  background: var(--bg-card-alt);
  aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--fg-muted); font-size: 0.9rem; padding: 18px;
}
.shot span { max-width: 230px; }
.shot strong { color: var(--fg-secondary); display: block; margin-bottom: 4px; font-weight: 600; }
.shot img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }

/* ---------- Personas ---------- */
.personas { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.persona { border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 24px; background: var(--bg-card); }
.persona h3 { font-size: 1.12rem; }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 4px 20px; margin-bottom: 12px; background: var(--bg-card); }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--font-display); font-size: 1.2rem; padding: 16px 0; color: var(--fg-primary); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--purple-200); font-size: 1.4rem; line-height: 1; font-family: var(--font-sans); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 18px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--lavender-wash);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: 64px 40px; text-align: center;
}
.cta-band p { color: var(--fg-secondary); max-width: 560px; margin: 0 auto 28px; }

/* ---------- Contact ---------- */
.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 36px 0 8px; }
.contact-card { border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 28px; background: var(--bg-card); }
.contact-card .email { font-weight: 600; color: var(--purple-100); display: inline-block; margin-top: 8px; }
.formwrap { margin-top: 48px; border-top: 1px solid var(--border-soft); padding-top: 44px; }
form { display: grid; gap: 18px; max-width: 560px; }
label { font-weight: 500; font-size: 0.92rem; display: block; margin-bottom: 7px; color: var(--fg-primary); }
input, textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  font-family: inherit; font-size: 1rem; color: var(--fg-primary); background: #ffffff;
}
input::placeholder, textarea::placeholder { color: var(--fg-dim); }
input:focus, textarea:focus { outline: none; border-color: var(--purple-200); box-shadow: 0 0 0 3px rgba(91,74,158,0.16); }
textarea { min-height: 140px; resize: vertical; }
.hint { font-size: 0.86rem; color: var(--fg-muted); margin-top: 8px; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 80px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 6px; }
.legal p, .legal li { color: var(--fg-secondary); margin: 0 0 13px; }
.legal ul { padding-left: 20px; }
.legal address { font-style: normal; color: var(--fg-secondary); }
.legal .updated { font-size: 0.9rem; color: var(--fg-muted); }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--border-soft); padding: 40px 0; color: var(--fg-muted); font-size: 0.9rem; }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg-muted); }
.foot-brand img { width: 20px; height: 20px; opacity: 0.85; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--fg-muted); }
.foot-links a:hover { color: var(--fg-primary); }

/* ---------- Screenshot figures (filled slots) ---------- */
.shot-fig { margin: 0; border: 1px solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); }
.shot-fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.shot-fig figcaption { padding: 12px 16px 14px; font-size: 0.85rem; color: var(--fg-muted); }
.shot-fig figcaption strong { display: block; color: var(--fg-secondary); font-weight: 600; margin-bottom: 2px; }

/* ---------- Verdict badges (new signature element) ---------- */
.verdict {
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 11px; border-radius: var(--radius-pill);
  border: 1.5px solid currentColor; background: transparent;
}
.verdict.invest { color: var(--sage); }
.verdict.fix    { color: var(--gold); }
.verdict.divest { color: var(--purple-300); }
.verdict.kill   { color: var(--rose); }
