/* Coherent Perspective — site styles. Palette/type per brand-guidelines.md */
:root {
  --ink: #101820;
  --bone: #F6F3EC;
  --amber: #E8A13D;
  --slate: #5C6670;
  --ledger: #2E6E4E;
  --rule: rgba(92, 102, 112, 0.35);
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: Inter, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3 { font-family: 'Space Grotesk', Inter, sans-serif; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(34px, 5.5vw, 56px); font-weight: 500; }
h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 500; }
h3 { font-size: 20px; font-weight: 500; }
p { max-width: 68ch; margin: 0 0 1em; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.mono, code { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; border-top: 1px solid var(--rule); }
.eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--slate); text-transform: lowercase; letter-spacing: 0.04em; margin-bottom: 14px; }

/* nav */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bone) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
header.site .bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: var(--maxw); margin: 0 auto; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .name { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 19px; color: var(--ink); white-space: nowrap; }
.brand .name span { font-weight: 400; color: var(--slate); }
nav.main { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
nav.main a { font-size: 14px; text-decoration: none; color: var(--ink); }
nav.main a:hover { color: var(--amber); }
nav.main a[aria-current="page"] { border-bottom: 2px solid var(--amber); }
.cta {
  display: inline-block; background: var(--amber); color: var(--ink);
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 15px;
  padding: 10px 20px; border-radius: 2px; text-decoration: none; border: none; cursor: pointer;
}
.cta:hover { filter: brightness(0.96); color: var(--ink); }

/* hero */
.hero { padding: 96px 0 72px; border-top: none; }
.hero h1 em { font-style: normal; color: var(--amber); display: block; }
.hero .sub { font-size: 18px; color: var(--slate); max-width: 56ch; }

/* resolve mark animation — runs once */
.mark-dots circle { transition: none; }
@media (prefers-reduced-motion: no-preference) {
  .mark-anim circle { animation: settle 1.2s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes settle { from { transform: translate(var(--dx), var(--dy)); } to { transform: translate(0, 0); } }
}

/* ledger — the signature: evidence entries in mono with sources */
.ledger { border-top: 1px solid var(--rule); }
.entry { display: grid; grid-template-columns: 130px 1fr; gap: 8px 28px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.entry .fig { font-family: 'IBM Plex Mono', monospace; font-size: 34px; line-height: 1.1; }
.entry .fig.amber { color: var(--amber); }
.entry .claim { font-size: 16px; max-width: 62ch; }
.entry .src { grid-column: 2; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--slate); overflow-wrap: anywhere; }
.entry .src a { color: var(--slate); }
.entry .src .flag { color: var(--ledger); }

/* offer ladder */
.rungs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 32px; }
.rung { background: var(--bone); padding: 28px 24px; display: flex; flex-direction: column; }
.rung .step { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--slate); }
.rung h3 { margin-top: 8px; }
.rung .price { font-family: 'IBM Plex Mono', monospace; font-size: 22px; margin: 6px 0 14px; }
.rung ul { padding-left: 18px; margin: 0 0 16px; font-size: 14.5px; }
.rung li { margin-bottom: 6px; }
.rung .note { font-size: 13px; color: var(--slate); margin-top: auto; }
.rung.feature { outline: 2px solid var(--amber); outline-offset: -2px; }

/* timeline */
.days { list-style: none; padding: 0; margin: 24px 0 0; }
.days li { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.days .d { font-family: 'IBM Plex Mono', monospace; color: var(--slate); font-size: 14px; padding-top: 2px; }

/* principles */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px; margin-top: 24px; }
.principles h3 { font-size: 17px; }
.principles p { font-size: 15px; color: var(--slate); margin: 0; }

/* footer */
footer.site { border-top: 1px solid var(--rule); padding: 40px 0 56px; }
footer.site .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer.site .legal { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--slate); line-height: 1.8; }
footer.site nav { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

/* diagnostic */
.quiz { max-width: 720px; }
.q { border: 1px solid var(--rule); padding: 24px; margin-bottom: 16px; background: color-mix(in srgb, var(--bone) 60%, white 40%); }
.q h3 { font-size: 17px; margin-bottom: 14px; }
.q .qnum { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--slate); }
.q label { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; font-size: 15px; cursor: pointer; }
.verdict { border: 2px solid var(--ink); padding: 32px; margin-top: 32px; }
.verdict .word { font-family: 'IBM Plex Mono', monospace; font-size: 44px; letter-spacing: 0.02em; }
.verdict.kill .word { color: #A03A2E; }
.verdict.fix .word { color: var(--amber); }
.verdict.rebuild .word { color: var(--ledger); }
.hidden { display: none; }

/* objections (red team) */
.objection { border-left: 3px solid var(--amber); padding: 4px 0 4px 22px; margin: 28px 0; }
.objection h3 { margin-bottom: 6px; }
.objection .a { color: var(--slate); font-size: 15px; }
.objection .a strong { color: var(--ink); }

/* tables */
table.plain { border-collapse: collapse; width: 100%; font-size: 14.5px; }
table.plain th, table.plain td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.plain th { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--slate); font-weight: 400; }

@media (max-width: 760px) {
  section { padding: 48px 0; }
  .hero { padding: 56px 0 40px; }
  .rungs { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 1fr; }
  .entry .src { grid-column: 1; }
  .days li { grid-template-columns: 64px 1fr; gap: 14px; }
  nav.main { gap: 14px; }
  nav.main a.hide-m { display: none; }
}
