/* ==========================================================================
   Expanding Web — agentic commerce offer page
   Design system per spec §4: technical-specification / validator-report
   aesthetic. Tokens below are the single source of truth — no template CSS.
   ========================================================================== */

@font-face {
  font-family: 'Archivo Expanded';
  font-style: normal;
  font-weight: 600 700;
  font-stretch: 125%;
  font-display: swap;
  src: url('/fonts/agentic/archivo-exp-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+20AC;
}
@font-face {
  font-family: 'Archivo Expanded';
  font-style: normal;
  font-weight: 600 700;
  font-stretch: 125%;
  font-display: swap;
  src: url('/fonts/agentic/archivo-exp-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0143-0144, U+015A-015B, U+0179-017C;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/agentic/publicsans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+20AC;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/agentic/publicsans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/agentic/plexmono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2013-2014, U+2026, U+20AC;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/agentic/plexmono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/agentic/plexmono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2013-2014, U+2026, U+20AC;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/agentic/plexmono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F;
}

:root {
  --ink:    #14181F;
  --paper:  #EAEBE6;
  --slate:  #59626E;
  --signal: #1B45C4;
  --pass:   #2E7D57;
  --stamp:  #A81F16;
  --rule:   #C9CAC4;

  --font-display: 'Archivo Expanded', 'Arial Black', sans-serif;
  --font-body: 'Public Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;
}

/* ── Reset-ish ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 0.6em; text-wrap: balance; }
p, ul, ol, dl { margin: 0 0 1em; }
a { color: var(--signal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
  border-radius: 1px;
}

.mono { font-family: var(--font-mono); }
.is-hidden { display: none !important; }
.micro { font-size: 0.82rem; color: var(--slate); }

/* ── Type scale ────────────────────────────────────────────────────────── */
h1 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  letter-spacing: -0.01em;
  max-width: 18ch;
}
h2 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 650;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  max-width: 26ch;
}
h3 { font-size: 1.05rem; font-weight: 600; }
p, li, dd { max-width: 68ch; }
.lede { font-size: 1.13rem; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1.1em;
}

/* ── Layout: manifest grid with left rail ──────────────────────────────── */
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 24px; }
main { display: block; }
main .sec { max-width: 1220px; margin: 0 auto; padding: 88px 24px; }
.sec {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 0 32px;
  border-top: 1px solid var(--rule);
}
.hero { border-top: none; padding-top: 56px; }
.rail {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.08em;
  padding-top: 0.5em;
}

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, white);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 60px;
}
.wordmark {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.site-header nav { display: flex; gap: 20px; margin-left: auto; }
.site-header nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}
.site-header nav a:hover { color: var(--signal); text-decoration: underline; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 12px 22px;
  border: 1px solid var(--signal);
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: #16389E; }
.btn-secondary { background: transparent; color: var(--signal); }
.btn-secondary:hover { background: rgba(27, 69, 196, 0.07); }
.btn-header { margin-left: 8px; padding: 9px 16px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ── Hero + scanner ────────────────────────────────────────────────────── */
.proof-bullets { list-style: none; padding: 0; }
.proof-bullets li { padding-left: 1.4em; position: relative; }
.proof-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--pass);
  font-family: var(--font-mono);
}
.hero-secondary { margin-top: 1.4em; }

.scanner {
  margin-top: 2em;
  border: 1px solid var(--ink);
  background: #fff;
  padding: 20px;
  max-width: 720px;
}
.scan-label { display: block; font-weight: 500; margin-bottom: 8px; }
.scan-row { display: flex; align-items: stretch; gap: 0; }
.scan-prefix {
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-right: none;
  background: var(--paper);
  color: var(--slate);
  font-size: 0.9rem;
}
#scan-url {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--rule);
  padding: 11px 12px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}
#scan-url:focus-visible { outline-offset: -2px; }
.scan-row .btn { border-radius: 0 2px 2px 0; }
.scan-sub { font-size: 13px; color: var(--slate); margin: 10px 0 0; }

.scan-panel {
  margin-top: 18px;
  border-top: 1px dashed var(--rule);
  padding-top: 14px;
}
.scan-panel-head { font-size: 0.8rem; color: var(--slate); letter-spacing: 0.06em; text-transform: uppercase; }
.scan-lines { list-style: none; margin: 0 0 12px; padding: 0; }
.scan-line {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 12px;
  align-items: baseline;
  font-size: 0.92rem;
  padding: 7px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 55%, transparent);
  max-width: none;
}
.check-id { font-size: 0.85rem; font-weight: 500; color: var(--slate); }
.check-glyph { font-size: 0.82rem; font-weight: 500; white-space: nowrap; }
.scan-line.is-pass .check-glyph { color: var(--pass); }
.scan-line.is-fail .check-glyph { color: var(--stamp); }
.scan-line.is-na .check-glyph { color: var(--slate); }
.scan-line.is-locked { color: var(--slate); }
.scan-line.is-locked .check-glyph { color: var(--slate); }
.scan-line.is-pending .check-glyph { color: var(--slate); }
.scan-readout {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 650;
  font-size: 1.35rem;
  margin: 10px 0 4px;
}
.scan-readout .mono { color: var(--signal); font-family: var(--font-mono); font-weight: 500; }
.scan-gate { font-size: 0.92rem; color: var(--slate); margin-bottom: 0; }
.form-error { color: var(--stamp); font-size: 0.88rem; margin: 6px 0 0; }

/* ── Proof strip ───────────────────────────────────────────────────────── */
.proof-strip { padding: 20px 24px !important; }
.proof-strip p { margin: 0; font-size: 0.85rem; color: var(--slate); max-width: none; }

/* ── Cards & content blocks ────────────────────────────────────────────── */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 1.6em 0;
}
.card {
  border: 1px solid var(--rule);
  background: #fff;
  padding: 18px 20px;
}
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-not h3 { color: var(--stamp); }

.shift-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 1.6em;
}
.arch {
  margin: 0;
  border: 1px solid var(--rule);
  background: #fff;
  padding: 18px 20px;
  overflow-x: auto;
}
.arch pre {
  margin: 0 0 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink);
}
.arch figcaption { font-size: 0.85rem; color: var(--slate); }

.diff div h2 { max-width: 30ch; }
.diff { background: color-mix(in srgb, var(--paper) 60%, white); }

.deliverables { margin: 1.6em 0; }
.deliverables > div { border-top: 1px solid var(--rule); padding: 14px 0; }
.deliverables dt { font-weight: 600; margin-bottom: 4px; }
.deliverables dt .check-id { margin-right: 10px; }
.deliverables dd { margin-left: 0; color: var(--slate); }

.callout {
  border-left: 3px solid var(--signal);
  background: #fff;
  padding: 14px 18px;
  margin: 1.4em 0;
}

.timeline { list-style: none; padding: 0; }
.timeline li {
  border-top: 1px solid var(--rule);
  padding: 12px 0;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  max-width: none;
}
.timeline .mono { color: var(--signal); font-size: 0.9rem; font-weight: 500; }

/* ── Ladder table ──────────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; }
.ladder { border-collapse: collapse; width: 100%; min-width: 640px; background: #fff; border: 1px solid var(--rule); }
.ladder th, .ladder td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 0.95rem; }
.ladder th { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); }
.ladder td.mono { white-space: nowrap; color: var(--signal); font-weight: 500; }

.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fit-grid ul { padding-left: 1.2em; }

/* ── Founder ───────────────────────────────────────────────────────────── */
.founder-grid { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start; }
.monogram {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: #fff;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 2rem;
}
.founder-links { font-size: 0.9rem; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq-item { border-top: 1px solid var(--rule); }
.faq-item summary {
  cursor: pointer;
  padding: 14px 0;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.faq-item summary::before {
  content: '+';
  font-family: var(--font-mono);
  color: var(--signal);
  flex: 0 0 auto;
}
.faq-item[open] summary::before { content: '−'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1rem; }
.faq-item p { padding: 0 0 16px 26px; color: var(--slate); }

/* ── Review form ───────────────────────────────────────────────────────── */
.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: start;
}
.review-form {
  border: 1px solid var(--ink);
  background: #fff;
  padding: 24px;
}
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 500; font-size: 0.92rem; margin-bottom: 5px; }
.field .optional { color: var(--slate); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.98rem;
}
.field textarea { resize: vertical; }
.field-check label { display: flex; gap: 10px; align-items: baseline; font-weight: 400; }
.field-check input { flex: 0 0 auto; accent-color: var(--signal); }
.hp-field { position: absolute !important; left: -9999px; top: -9999px; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--ink); margin-top: 40px; }
.site-footer .sec { border-top: none; padding: 56px 0; }
.site-footer .wrap { padding-top: 0; padding-bottom: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate); margin-bottom: 8px; }
.footer-lines { line-height: 2; }
.site-footer .wordmark { margin: 0 0 10px; }
.disclaimer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  color: var(--slate);
  max-width: none;
}

/* ── Scan line reveal animation ────────────────────────────────────────── */
.scan-line.reveal {
  animation: scanline-in 240ms ease-out both;
}
@keyframes scanline-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scan-line.reveal { animation: none; }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sec { grid-template-columns: minmax(0, 1fr); gap: 0; }
  main .sec { padding: 56px 20px; }
  .rail { padding: 0 0 10px; }
  .site-header nav { display: none; }
  .btn-header { margin-left: auto; }
  .cards-3, .fit-grid, .shift-grid, .review-grid, .footer-grid { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 88px 1fr; gap: 18px; }
  .monogram { width: 88px; height: 88px; font-size: 1.5rem; }
  .scan-row { flex-wrap: wrap; }
  .scan-prefix { display: none; }
  #scan-url { flex-basis: 100%; border-right: 1px solid var(--rule); margin-bottom: 8px; }
  .scan-row .btn { border-radius: 2px; }
  .scan-line { grid-template-columns: 78px 1fr; }
  .scan-line .check-glyph { grid-column: 2; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}
