/* DAOx app-factory template — deep-blue brand system */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700;800&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg: #eef2f6;
  --card: #ffffff;
  --border: #d7e0e8;
  --ink: #16202a;
  --muted: #4e5d6b;
  --brand: #1a5f96;
  --brand-deep: #0b2a47;
  --brand-bright: #2b7cb8;
  --brand-mid: #1b5a8b;
  --brand-tint: #e8eff5;
  --gradient: linear-gradient(121deg, #0b2a47, #1b5a8b);
  --ok: #1f8a4c;
  --err: #b3261e;
  --radius: 16px;
  --shadow: 0 2px 6px rgba(11, 42, 71, .08), 0 10px 30px rgba(11, 42, 71, .12);
  --sans: "Source Sans 3", -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font: 16.5px/1.7 var(--serif);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--sans); color: var(--ink); letter-spacing: -.2px; }

/* ---------- nav ---------- */
.nav {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky; top: 0; z-index: 10;
}
.nav .wrap { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--sans); font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -.3px; }
.logo em { font-style: normal; color: var(--brand-mid); }
.logo:hover { text-decoration: none; }
.nav nav { display: flex; gap: 22px; align-items: center; }
.nav nav a { font-family: var(--sans); color: var(--muted); font-weight: 600; font-size: 15px; }
.nav nav a:hover { color: var(--brand); text-decoration: none; }
.badge {
  font-family: var(--sans);
  background: var(--brand-tint); color: var(--brand);
  border: 1px solid #c3d6e5; border-radius: 999px;
  padding: 3px 14px; font-size: 13px; font-weight: 700;
}

/* ---------- hero (brand gradient band) ---------- */
.hero {
  background: var(--gradient);
  text-align: center;
  padding: 88px 24px 130px;
  color: #fff;
}
.eyebrow {
  display: inline-block; margin-bottom: 20px;
  font-family: var(--sans);
  color: #fff; background: rgba(255, 255, 255, .14);
  border: 1.5px solid rgba(255, 255, 255, .75);
  border-radius: 999px; padding: 5px 18px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.1; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: #fff;
  max-width: 780px; margin: 0 auto;
}
.tagline {
  font-size: 20px; color: #f2fbff;
  max-width: 640px; margin: 20px auto 0;
}
.tagline em { font-style: italic; }
.sub { color: rgba(255, 255, 255, .85); margin-top: 12px; font-size: 15.5px; }

/* ---------- product card (overlaps the gradient) ---------- */
.product { padding: 0 24px 56px; margin-top: -72px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}
.card.center { text-align: center; }
label {
  display: block; font-family: var(--sans); font-size: 13.5px; font-weight: 700;
  color: var(--ink); margin: 18px 0 6px; letter-spacing: .2px;
}
label:first-child { margin-top: 0; }
input, textarea, select {
  width: 100%; background: #f7fcfe; color: var(--ink);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; font: 15px/1.6 var(--sans);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus {
  outline: none; border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(27, 90, 139, .2);
  background: #fff;
}
::placeholder { color: #93a8b3; }

.btn {
  display: inline-block; margin-top: 20px; cursor: pointer;
  font-family: var(--serif);
  background: var(--card); color: var(--brand);
  border: 2px solid var(--brand); border-radius: 999px;
  padding: 10px 26px; font-size: 16px; font-weight: 600;
  transition: background .15s, color .15s, box-shadow .15s;
}
.btn:hover { background: var(--brand-tint); text-decoration: none; }
.btn.primary {
  background: var(--gradient); border: none; color: #fff;
  width: 100%; padding: 15px 26px; font-size: 17.5px;
  box-shadow: 0 6px 18px rgba(11, 42, 71, .35);
}
.btn.primary:hover { filter: brightness(1.07); }
.btn:disabled { opacity: .55; cursor: wait; }

.status { margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.status.err { color: var(--err); font-weight: 600; }
.status.ok { color: var(--ok); font-weight: 600; }

.result {
  margin-top: 20px; padding: 26px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 15.5px;
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 20px 24px 56px; }
.step {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 22px;
  text-align: center;
}
.step span {
  display: inline-flex; width: 38px; height: 38px;
  align-items: center; justify-content: center;
  font-family: var(--sans);
  background: var(--gradient); color: #fff;
  border-radius: 50%; font-weight: 800; font-size: 16px;
}
.step h3 { margin: 14px 0 6px; font-size: 19px; font-weight: 700; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- pricing ---------- */
.pricing { text-align: center; padding: 24px 24px 56px; }
.pricing h2 { font-size: 32px; font-weight: 700; }
.pricing .sub { color: var(--muted); }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.pack {
  position: relative;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px 20px 28px;
}
.pack.featured { border: 2px solid var(--brand-mid); }
.pack.featured::before {
  content: "Most popular";
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-family: var(--sans);
  background: var(--gradient); color: #fff;
  border-radius: 999px; padding: 2px 16px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .4px; white-space: nowrap;
}
.pack h3 { font-size: 16px; color: var(--muted); font-weight: 600; }
.pack .price { font-family: var(--sans); font-size: 40px; font-weight: 800; letter-spacing: -1px; margin: 12px 0 2px; }
.pack .per { color: var(--muted); font-size: 13px; }
.pack .btn { padding: 8px 30px; }

/* ---------- faq ---------- */
.faq { padding: 24px 24px 72px; }
.faq h2 { text-align: center; font-size: 32px; font-weight: 700; margin-bottom: 26px; }
details {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 22px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}
summary { cursor: pointer; font-family: var(--sans); font-weight: 700; font-size: 16px; }
summary::marker { color: var(--brand-mid); }
details p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 34px 0; color: var(--muted); font-size: 14px; text-align: center;
  background: var(--card);
  font-family: var(--sans);
}

@media (max-width: 680px) {
  .hero { padding: 56px 20px 110px; }
  .steps, .packs { grid-template-columns: 1fr; }
  .card { padding: 24px 18px; }
  
}

/* ---------- print the result ---------- */
@media print {
  body * { visibility: hidden; }
  #result, #result * { visibility: visible; }
  #result { position: absolute; left: 0; top: 0; width: 100%; border: none; box-shadow: none; background: #fff; color: #000; }
}

/* ---------- typography: no widows ---------- */
h1, h2, h3, h4, summary { text-wrap: balance; }
p, li, .tagline, .sub { text-wrap: pretty; }

/* ---------- positionkit form + kit output ---------- */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 14px; }
.grid3 label { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font: 600 12.5px var(--sans); color: var(--muted); }
.kit-sec { margin-top: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.kit-sec > b { display: block; font: 700 13px var(--sans); color: var(--brand-mid); letter-spacing: .6px; text-transform: uppercase; margin-bottom: 8px; }
.kit-sec p, .kit-sec li { font-size: 14.5px; }
.kit-sec ul { margin: 4px 0 0 18px; }
.kit-big { font-size: 17px; font-weight: 600; }
.kit-kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 14px; }
.kit-kv b { font-family: var(--sans); font-size: 12.5px; color: var(--muted); }
.icp { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; }
.icp:first-of-type { border-top: none; padding-top: 0; margin-top: 4px; }
.icp b { font-family: var(--sans); }
.mailcard { background: var(--brand-tint); border-radius: 8px; padding: 10px 12px; margin-top: 8px; font-size: 13.5px; white-space: pre-wrap; }
.mailcard b { font-family: var(--sans); display: block; margin-bottom: 4px; }
.kit-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.btn.mini { padding: 6px 14px; font-size: 12.5px; margin-top: 8px; }

/* market + competitive landscape tables */
.comptable { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13.5px; }
.comptable th { text-align: left; font: 700 11.5px var(--sans); color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--border); padding: 6px 8px 6px 0; }
.comptable td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.bs { display: inline-block; font: 700 9.5px var(--sans); text-transform: uppercase;
  letter-spacing: .5px; padding: 2px 6px; border-radius: 4px; margin-left: 4px; vertical-align: 1px; }
.bs-src { background: #dcf0e4; color: #1f6b41; }
.bs-est { background: #fdf0d8; color: #8a5a12; }
.unk { color: var(--muted); font-style: italic; }
.method { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* staged runner */
.progress { display: grid; gap: 4px; margin-top: 14px; }
.pstep { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px;
  font: 600 12.5px var(--sans); padding: 6px 8px; border-radius: 8px; color: var(--muted); }
.pstep .pn { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--border); color: var(--ink); font-size: 11px; }
.pstep.done { color: var(--ink); background: var(--brand-tint); }
.pstep.done .pn { background: var(--ok, #1f8a4c); color: #fff; }
.pstep.active { color: var(--ink); background: var(--brand-tint); }
.pstep.active .pn { background: var(--brand); color: #fff; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.pstep .pc { font-size: 11px; opacity: .8; }
.nextrow { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.nextrow .btn { flex: 1; min-width: 200px; }
@media (prefers-reduced-motion: reduce) { .pstep.active .pn { animation: none; } }

/* calibrated confidence: % chance the true value is within ±25% */
.cf { display: inline-block; font: 700 9.5px var(--sans); padding: 2px 6px; border-radius: 4px;
  margin-left: 4px; vertical-align: 1px; cursor: help; }
.cf-hi  { background: #dcf0e4; color: #1f6b41; }
.cf-mid { background: #fdf0d8; color: #8a5a12; }
.cf-lo  { background: #fbe0de; color: #9b2c22; }
.legend { margin-top: 14px; padding: 12px 14px; background: var(--brand-tint);
  border-radius: 10px; font-size: 12.5px; color: var(--muted); }
.legend b { display: block; font: 700 11.5px var(--sans); color: var(--ink);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.legend p { margin-top: 4px; }

/* product-dependency flags: what marketing can ship alone vs what needs a developer */
.pd { display: inline-block; font: 700 9.5px var(--sans); padding: 2px 7px; border-radius: 4px;
  margin-left: 6px; white-space: nowrap; cursor: help; }
.pd-minor { background: #e6edf7; color: #2c5282; }
.pd-major { background: #fbe0de; color: #9b2c22; }
.pdbox { margin-top: 14px; padding: 14px 16px; background: #fff6f5;
  border: 1px solid #f3cfcb; border-radius: 10px; }
.pdbox > b { display: block; font: 700 12px var(--sans); color: #9b2c22; margin-bottom: 6px; }
.pdbox ol { margin: 0 0 0 18px; font-size: 13.5px; }
.blocked td { background: #fffaf9; }
.blocknote { font: 700 11.5px var(--sans); color: #9b2c22; margin-top: 6px; }
.devstep { background: #fff6f5; border-radius: 6px; padding: 2px 6px; }

/* ---------- the nine stages: show the product before the form ---------- */
.ladder { padding: 40px 24px 8px; }
.ladder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ladder-grid > div { position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px 14px 44px; font: 700 14px var(--sans); color: var(--ink); }
.ladder-grid span { position: absolute; left: 14px; top: 14px; display: inline-flex;
  width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--gradient); color: #fff; font: 800 11px var(--sans); }
.ladder-grid i { display: block; font: 400 12.5px var(--serif); font-style: normal;
  color: var(--muted); margin-top: 3px; }
.ladder-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 14px; }

/* ---------- proof: a real excerpt, because founders don't buy adjectives ---------- */
.sample { padding: 34px 24px 8px; }
.sample h2 { text-align: center; font-size: 26px; }
.sample-sub { text-align: center; color: var(--muted); margin: 8px 0 18px; font-size: 14.5px; }
.samplecard { background: var(--bg); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px; box-shadow: var(--shadow); }
.samplecard .kit-sec { background: var(--card); }
.samplecard .kit-sec:first-child { margin-top: 0; }

.timenote { margin-top: 14px; font-size: 13px; color: var(--muted); background: var(--brand-tint);
  border-radius: 10px; padding: 10px 13px; }
.lab-hint { font-weight: 400; color: var(--muted); }

@media (max-width: 760px) {
  .ladder-grid { grid-template-columns: 1fr; }
}

/* the ladder now takes the card-overlaps-gradient role the product card used to have */
.ladder { margin-top: -62px; position: relative; z-index: 2; padding-top: 0; }
.ladder-grid > div { box-shadow: var(--shadow); }
.product { margin-top: 8px; }
@media (max-width: 760px) { .ladder { margin-top: -48px; } }

/* ============================================================
   BRAND LAYER — "shows its working"
   The differentiator is intellectual honesty: sourced / estimated /
   unknown, with the arithmetic visible. So the EVIDENCE palette becomes
   the BRAND palette, and figures are set in tabular mono — numbers in
   mono read as analysis; numbers in a marketing serif read as claims.
   Deliberate exception to the factory navy: this audience (global
   founders) shares nothing with the NZ property fleet.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Source+Sans+3:wght@400;600;700;800&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  /* ink on paper, not SaaS gradient */
  --bg: #f7f6f3;
  --card: #ffffff;
  --border: #e2ded6;
  --ink: #14161a;
  --muted: #5c6169;

  /* the evidence colours ARE the brand */
  --brand: #1f6b41;          /* sourced green — "we found it" */
  --brand-deep: #12241c;     /* ink-green, near black */
  --brand-mid: #1f6b41;
  --brand-bright: #2f8d58;
  --brand-tint: #edf3ee;
  --gradient: linear-gradient(150deg, #12241c 0%, #1c3a2a 55%, #24513a 100%);
  --shadow: 0 1px 2px rgba(20,22,26,.05), 0 12px 32px rgba(20,22,26,.09);
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

/* wordmark: a citation bracket — the mark of something that cites its sources */
.logo { position: relative; font-family: var(--sans); font-weight: 800; letter-spacing: -.3px; }
.logo::before, .logo::after {
  font-family: var(--mono); font-weight: 500; color: var(--brand);
  opacity: .85; font-size: .92em;
}
.logo::before { content: "["; margin-right: 2px; }
.logo::after  { content: "]"; margin-left: 2px; }
.logo em { font-style: normal; color: var(--brand); }

/* figures in tabular mono — the single strongest "this is analysis" signal */
.comptable td, .comptable th,
.kit-kv span, .pack .price, .pack .per, .method, .cf, .bs {
  font-variant-numeric: tabular-nums;
}
.comptable td:not(:first-child), .pack .price, .kit-big { font-family: var(--mono); }
.comptable td:not(:first-child) { font-size: 13px; letter-spacing: -.2px; }
.pack .price { font-weight: 600; letter-spacing: -1.5px; }
.method { font-family: var(--mono); font-size: 11px; }

/* evidence badges: now brand assets, so tighten them */
.bs, .cf { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }
.bs-src { background: var(--brand-tint); color: var(--brand); }
.cf-hi  { background: var(--brand-tint); color: var(--brand); }

/* hero: ink, not gradient-blue SaaS */
.hero { background: var(--gradient); }
.hero h1 { letter-spacing: -1px; }

/* the brand line — states the worldview in three words */
.brandline {
  display: block; margin-top: 22px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
footer .brandline { color: var(--muted); letter-spacing: 2px; margin-top: 0; }

/* stage numerals in mono so the ladder reads as a method, not a feature list */
.ladder-grid span { font-family: var(--mono); font-weight: 600; }
/* just-in-time email (matches the OC Forge pattern) */
.jit { margin-top: 16px; padding: 15px 16px; background: var(--brand-tint);
  border: 1px solid var(--border); border-radius: 12px; }
.jit p { font-size: 13.5px; color: var(--muted); margin-bottom: 9px; }
.jit p b { color: var(--ink); }
.jit.compact { background: none; border: none; padding: 6px 0 0; }
.jit-known { font-size: 13px; color: var(--muted); }
.jit-known b { color: var(--ink); font-weight: 700; }
.linkbtn { background: none; border: none; padding: 8px 0 8px 8px; cursor: pointer;
  font: 700 13px var(--sans); color: var(--brand); text-decoration: underline;
  text-underline-offset: 3px; }
.linkbtn:hover { color: var(--ink); }

/* An author `display:grid` on .grid3 outranks the UA rule that hides closed
   <details> content, so the fold rendered open. Restore it explicitly. */
details.tweaks:not([open]) > .grid3 { display: none; }
details.tweaks > summary {
  cursor: pointer; list-style: none;
  font: 700 13px var(--sans); color: var(--brand);
  padding: 12px 0; display: flex; align-items: center; gap: 7px;
}
details.tweaks > summary::-webkit-details-marker { display: none; }
details.tweaks > summary::before { content: "+"; font-family: var(--mono); font-weight: 600; }
details.tweaks[open] > summary::before { content: "–"; }
details.tweaks > summary:hover { color: var(--ink); }

/* hero: promise only — the tool itself is one scroll away, not seven */
.hero { padding: 52px 24px 96px; }
.hero .tagline { max-width: 620px; }
.peek { margin-top: 14px; }
.peek a { color: rgba(255,255,255,.72); font-size: 13.5px; text-decoration: underline;
  text-underline-offset: 4px; }
.peek a:hover { color: #fff; }
/* the form now takes the overlap role back from the ladder */
.product { margin-top: -62px; position: relative; z-index: 2; }
.ladder { margin-top: 26px; padding-top: 8px; }

/* the three differentiators, stated before anything is asked of the reader */
.diffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  max-width: 820px; margin: 26px auto 0; text-align: left; }
.diffs > div { border-top: 2px solid rgba(255,255,255,.22); padding-top: 10px; }
.diffs b { display: block; font: 700 13.5px var(--sans); color: #fff; margin-bottom: 4px; }
.diffs span { font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.7); }
@media (max-width: 760px) { .diffs { grid-template-columns: 1fr; gap: 12px; } }
