/* Precue: warm monochrome, editorial utilitarian.
   Tokens live on :root. Dark mode is intentionally not offered on this page
   so the document reads as one continuous surface. */

:root {
  --bg: #F7F6F3;
  --surface: #FFFFFF;
  --surface-2: #FBFBFA;
  --ink: #111111;
  --ink-2: #2F3437;
  --muted: #787774;
  --line: #EAEAEA;

  --blue-bg: #E1F3FE;  --blue-ink: #1F6C9F;
  --green-bg: #EDF3EC; --green-ink: #346538;
  --yellow-bg: #FBF3DB; --yellow-ink: #956400;
  --red-bg: #FDEBEC;   --red-ink: #9F2F2D;

  --font-sans: "Geist", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "Geist Mono", "SF Mono", ui-monospace, monospace;

  --r-card: 12px;
  --r-btn: 6px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1120px;
  --wrap-narrow: 760px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 { color: var(--ink); font-weight: 500; }
h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

p { max-width: 62ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em; }
.fine { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-top: 16px; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 12px; border-radius: var(--r-btn); z-index: 100;
}
.skip:focus { left: 16px; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: var(--wrap-narrow); margin-inline: auto; width: min(100% - 48px, var(--wrap-narrow)); }

.section { padding-block: 128px; }
.section-band { background: var(--surface-2); border-block: 1px solid var(--line); }

/* ---------- Navigation: the only fixed layer, blur allowed ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 246, 243, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
.nav-links a { transition: color 200ms ease; }
.nav-links a:hover { color: var(--ink); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
}
/* Brand mark: tile, magnifier ring, handle, and tan dot.
   Sequence: ring draws, handle follows, dot pops, wordmark fades in.
   Animates stroke-dashoffset, transform, and opacity only. */
.brand-mark { width: 30px; height: 30px; flex: none; display: block; overflow: visible; }
.brand-mark .mk-tile { fill: #324C3E; }
.brand-mark .mk-ring {
  fill: none; stroke: #F4F3EE; stroke-width: 111;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: mk-draw 900ms var(--ease-out) 120ms forwards;
}
.brand-mark .mk-handle {
  stroke: #F4F3EE; stroke-width: 104; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: mk-draw 500ms var(--ease-out) 880ms forwards;
}
.brand-mark .mk-dot {
  fill: #BBA377;
  transform-box: fill-box; transform-origin: center;
  transform: scale(0);
  animation: mk-pop 500ms var(--ease-out) 1250ms forwards;
}
.brand-word { opacity: 0; animation: mk-fade 600ms var(--ease-out) 500ms forwards; }

@keyframes mk-draw { to { stroke-dashoffset: 0; } }
@keyframes mk-pop { to { transform: scale(1); } }
@keyframes mk-fade { to { opacity: 1; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px;
  border-radius: var(--r-btn);
  font: inherit; font-size: 15.5px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 200ms var(--ease-out), border-color 200ms ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: #FFFFFF; }
.btn-primary:hover { background: #333333; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #CFCFCB; background: var(--surface); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14.5px; }

/* ---------- Hero ---------- */
.hero { padding-block: 96px 112px; position: relative; }
.hero::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(225, 243, 254, 0.55), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(251, 243, 219, 0.45), transparent 70%);
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 72px;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 28px;
}
.lede { font-size: 20px; line-height: 1.55; color: var(--ink-2); margin-top: 24px; max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Live demo window (real rendered component, not a picture) ---------- */
.window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform 400ms var(--ease-out);
}
.window-bar {
  display: flex; align-items: center; gap: 7px;
  height: 44px; padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #E2E2DE; }
.window-label { margin-left: 12px; color: var(--muted); }
.window-body { padding: 28px; }

.demo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.demo-title { font-size: 21px; color: var(--ink); letter-spacing: -0.02em; margin-top: 4px; font-weight: 500; }
.score { text-align: right; min-width: 92px; }
.score-value {
  display: block; font-size: 44px; line-height: 1; letter-spacing: -0.04em;
  font-weight: 500; color: var(--red-ink);
  font-variant-numeric: tabular-nums;
  transition: color 300ms ease;
}
.score-value.is-green { color: var(--green-ink); }
.score-value.is-amber { color: var(--yellow-ink); }
.score-label { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.toggle {
  display: inline-grid; grid-auto-flow: column; gap: 4px;
  margin: 24px 0 18px; padding: 4px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-btn);
}
.toggle button {
  font: inherit; font-size: 14px; color: var(--muted);
  background: transparent; border: 0; border-radius: 4px;
  padding: 8px 14px; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}
.toggle button.is-on, .toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }

.crit-list { border-top: 1px solid var(--line); }
.crit {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  transition: opacity 300ms ease;
}
.crit:last-child { border-bottom: 0; }
.crit-id { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.crit-text { color: var(--ink); font-size: 15px; line-height: 1.45; margin-top: 2px; }
.crit-evidence { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  white-space: nowrap;
}
.tag-blue { background: var(--blue-bg); color: var(--blue-ink); }
.tag-green { background: var(--green-bg); color: var(--green-ink); }
.tag-yellow { background: var(--yellow-bg); color: var(--yellow-ink); }
.tag-red { background: var(--red-bg); color: var(--red-ink); }

/* ---------- Problem rows ---------- */
.rows { margin-top: 48px; border-top: 1px solid var(--line); }
.rows li {
  display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: baseline;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.rows p { font-size: 22px; line-height: 1.4; letter-spacing: -0.015em; color: var(--ink); }
.row-tag { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 96px; align-items: start; }
.split-head { position: sticky; top: 120px; }
.split-head p { font-size: 18px; color: var(--ink-2); }

.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { padding: 40px 0; border-bottom: 1px solid var(--line); }
.step h3 { font-size: 24px; letter-spacing: -0.02em; }
.step p { color: var(--ink-2); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p { font-size: 18px; color: var(--ink-2); margin-top: 4px; }

/* ---------- Bento ---------- */
.bento {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px;
}
.cell {
  grid-column: span 6;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 36px;
  min-height: 240px;
  display: flex; flex-direction: column; gap: 4px;
  transition: box-shadow 200ms ease, transform 200ms var(--ease-out);
}
.cell:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
.cell .tag { align-self: flex-start; margin-bottom: 28px; }
.cell p { color: var(--ink-2); font-size: 16px; margin-top: auto; padding-top: 12px; }
.cell-wide { grid-column: span 7; }
.bento .cell:nth-child(2), .bento .cell:nth-child(3) { grid-column: span 5; }
.bento .cell:nth-child(4) { grid-column: span 12; min-height: 200px; }
.bento .cell:nth-child(3) { grid-column: span 5; }

/* ---------- Roadmap ---------- */
.roadmap { display: grid; gap: 12px; }
.roadmap li {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 24px 28px;
}
.roadmap-name { font-size: 18px; color: var(--ink); letter-spacing: -0.01em; font-weight: 500; }

/* ---------- Trust ---------- */
.trust {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.trust-item { padding: 40px 40px 40px 0; border-bottom: 1px solid var(--line); }
.trust-item:nth-child(even) { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--line); }
.trust-item p { color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: 19px; color: var(--ink); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 20px; color: var(--muted);
  transition: transform 300ms var(--ease-out);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-2); }

/* ---------- Form ---------- */
.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 40px; display: grid; gap: 20px;
}
.field { display: grid; gap: 8px; }
.field label, .check { font-size: 14.5px; color: var(--ink); font-weight: 500; }
.field input, .field select {
  font: inherit; font-size: 16px; color: var(--ink);
  height: 48px; padding: 0 14px;
  background: var(--surface-2);
  border: 1px solid #DCDCD8; border-radius: var(--r-btn);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.field input::placeholder { color: #8A8A86; }
.field input:focus, .field select:focus { border-color: var(--ink); background: var(--surface); outline: none; box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08); }
.field input[aria-invalid="true"] { border-color: var(--red-ink); }
.error { font-size: 13.5px; color: var(--red-ink); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); }
.form .btn { justify-self: start; }
/* Honeypot field: hidden from people, visible to bots that fill every input */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.success { color: var(--green-ink); background: var(--green-bg); border-radius: var(--r-btn); padding: 12px 16px; font-size: 15px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 56px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; align-items: flex-start; }
.footer .brand { margin-bottom: 12px; }
.footer .fine { max-width: 60ch; margin-top: 0; }
.footer-links { display: flex; gap: 24px; font-size: 15px; color: var(--muted); white-space: nowrap; }
.footer-links a:hover { color: var(--ink); }

/* ---------- Motion: transform and opacity only, IntersectionObserver driven ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.is-in { opacity: 1; transform: none; }
.bento .reveal:nth-child(2) { --i: 1; }
.bento .reveal:nth-child(3) { --i: 2; }
.bento .reveal:nth-child(4) { --i: 3; }
.steps .reveal:nth-child(2) { --i: 1; }
.steps .reveal:nth-child(3) { --i: 2; }
.trust .reveal:nth-child(2) { --i: 1; }
.trust .reveal:nth-child(3) { --i: 2; }
.trust .reveal:nth-child(4) { --i: 3; }
.roadmap .reveal:nth-child(2) { --i: 1; }
.roadmap .reveal:nth-child(3) { --i: 2; }

.window.reveal.is-in:hover { transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { gap: 48px; }
  .split { gap: 56px; }
  .rows li { grid-template-columns: 150px 1fr; gap: 24px; }
}

@media (max-width: 860px) {
  .hero { padding-block: 56px 80px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 48px; }
  .split-head { position: static; }
  .section { padding-block: 88px; }
  .nav-links { display: none; }
  .bento .cell, .cell-wide, .bento .cell:nth-child(2), .bento .cell:nth-child(3), .bento .cell:nth-child(4) { grid-column: span 12; }
  .trust { grid-template-columns: 1fr; }
  .trust-item, .trust-item:nth-child(even) { padding: 32px 0; border-left: 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap, .narrow, .nav-inner { width: calc(100% - 32px); }
  .nav-inner { height: 60px; }
  .lede { font-size: 18px; }
  .btn { width: 100%; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .window-body { padding: 20px; }
  .demo-head { flex-direction: column; }
  .score { text-align: left; }
  .toggle { display: grid; grid-auto-flow: row; grid-template-columns: 1fr 1fr; width: 100%; }
  .rows li { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .rows p { font-size: 19px; }
  .cell { padding: 28px; min-height: 0; }
  .roadmap li { flex-direction: column; align-items: flex-start; padding: 20px; }
  .form { padding: 24px; }
  .form .btn { width: 100%; justify-self: stretch; }
  .footer-inner { flex-direction: column; }
  .faq details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .brand-mark .mk-ring, .brand-mark .mk-handle { stroke-dashoffset: 0; animation: none; }
  .brand-mark .mk-dot { transform: none; animation: none; }
  .brand-word { opacity: 1; animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
