/* Agentable — shared styles. No build step. */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f5f2;
  --paper-2: #e7ebe6;
  --ink: #172033;
  --ink-2: #4a5568;
  --rule: #c5ccd3;
  --cobalt: #2b44e0;
  --cobalt-dark: #1d31b0;
  --marker: #f6d743;
  --panel: #172033;
  --panel-text: #dce3f5;
  --panel-key: #9fb4ff;
  --panel-muted: #7d89a6;
  --ok: #1f7a4d;
  --err: #b42318;

  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* modular scale, ratio 1.25 on a 17px base */
  --s-1: 0.85rem;
  --s0: 1.0625rem;
  --s1: 1.33rem;
  --s2: 1.66rem;
  --s3: 2.07rem;
  --s4: 2.6rem;
  --measure: 66ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--s0);
  line-height: 1.55;
  font-stretch: 100%;
}

a { color: var(--cobalt); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--cobalt-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); border-radius: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: #fff; padding: .5rem .75rem; z-index: 10; }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 750; font-stretch: 112%; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand svg { width: 26px; height: 26px; }
.site-nav { display: flex; gap: 1.5rem; align-items: center; font-size: var(--s-1); }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-cta { background: var(--ink); color: var(--paper); padding: .5rem .85rem; border-radius: 3px; }
.site-nav .nav-cta:hover { background: var(--cobalt); color: #fff; text-decoration: none; }
@media (max-width: 620px) { .site-nav a:not(.nav-cta) { display: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
  margin: 0 0 1.5rem;
  font-weight: 820;
  font-stretch: 68%;
  font-size: clamp(3rem, 8.4vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.lede { font-size: var(--s1); line-height: 1.45; max-width: 34ch; margin: 0 0 1.25rem; color: var(--ink); }
.hero-note { max-width: 46ch; color: var(--ink-2); margin: 0; }
.hero-note strong { color: var(--ink); font-weight: 650; }

/* the twin: person view and agent view of the same form */
.twin { display: grid; gap: 0; border: 1.5px solid var(--ink); border-radius: 6px; overflow: hidden; background: #fff; }
.twin-tab { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem 1rem; font-size: var(--s-1); border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.twin-tab b { color: var(--ink); font-weight: 650; }
.agent .twin-tab { background: var(--panel); color: var(--panel-muted); border-bottom-color: #2a3550; border-top: 1.5px solid var(--ink); }
.agent .twin-tab b { color: var(--panel-text); }

.scan-form { padding: 1.25rem 1rem 1.35rem; display: grid; gap: .95rem; }
.scan-form h2 { margin: 0; font-size: var(--s1); font-weight: 750; font-stretch: 100%; letter-spacing: -0.01em; }
.field { display: grid; gap: .3rem; }
.field label { font-size: var(--s-1); font-weight: 600; }
.field input {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .65rem .75rem; border: 1.5px solid var(--rule); border-radius: 3px; background: var(--paper);
  width: 100%;
}
.field input:hover { border-color: var(--ink-2); }
.field input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(43, 68, 224, .18); background: #fff; }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-size: var(--s-1); color: var(--ink-2); line-height: 1.45; }
.consent input { width: 1.1rem; height: 1.1rem; margin: .15rem 0 0; accent-color: var(--cobalt); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.error { color: var(--err); font-size: var(--s-1); min-height: 0; margin: 0; }
.error:empty { display: none; }

.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: .5rem;
  font: inherit; font-weight: 700; font-size: 1rem; font-stretch: 105%;
  padding: .8rem 1.15rem; border-radius: 3px; border: 1.5px solid var(--ink);
  background: var(--cobalt); color: #fff; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--cobalt-dark); color: #fff; text-decoration: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: var(--paper); }
/* WebMCP declarative pseudo-classes (Chrome trial). Unknown selectors are dropped elsewhere, so keep them in their own rules. */
form:tool-form-active { outline: 2px dashed var(--cobalt); outline-offset: -6px; }
button:tool-submit-active { box-shadow: 0 0 0 3px var(--marker); }

.success { padding: 1.5rem 1rem 1.6rem; display: grid; gap: .6rem; }
.success h2 { margin: 0; font-size: var(--s2); font-stretch: 80%; font-weight: 800; line-height: 1.05; }
.success p { margin: 0; color: var(--ink-2); }

.agent pre {
  margin: 0; padding: 1rem 1rem 1.15rem; background: var(--panel); color: var(--panel-text);
  font-family: var(--mono); font-size: .8rem; line-height: 1.6; overflow-x: auto; white-space: pre;
}
.agent .k { color: var(--panel-key); }
.agent .s { color: var(--marker); }
.agent .c { color: var(--panel-muted); }
.agent .v-empty { color: var(--panel-muted); }
.agent .v-live { color: #fff; background: rgba(246, 215, 67, .18); border-radius: 2px; }

/* ---------- sections ---------- */
section { scroll-margin-top: 1rem; }
.band { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--rule); }
.band h2 {
  margin: 0 0 .6rem; font-weight: 800; font-stretch: 72%; letter-spacing: -0.01em;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 0.98;
}
.band .intro { max-width: var(--measure); color: var(--ink-2); margin: 0 0 2.25rem; font-size: 1.08rem; }

/* how it works: a true sequence, so numbers are earned */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); counter-reset: step; }
.steps li { counter-increment: step; padding: 1.1rem 1.1rem 0 0; position: relative; }
.steps li::before { content: counter(step); display: block; font-family: var(--mono); font-size: .85rem; color: var(--cobalt); margin-bottom: .55rem; }
.steps h3 { margin: 0 0 .35rem; font-size: var(--s1); font-weight: 750; font-stretch: 90%; }
.steps p { margin: 0; color: var(--ink-2); font-size: .97rem; max-width: 28ch; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 1.5rem; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .steps li { border-bottom: 1px solid var(--rule); padding-bottom: 1rem; } }

/* pricing: a price list, not a card grid */
.founding-note { display: inline-block; background: var(--marker); color: var(--ink); padding: .3rem .6rem; border-radius: 2px; font-weight: 600; margin: 0 0 1.75rem; font-size: .97rem; }
.founding-note[hidden] { display: none; }
.prices { border-top: 1.5px solid var(--ink); }
.price-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) 10rem 12rem; gap: 1.5rem; align-items: start; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.price-row h3 { margin: 0; font-size: var(--s1); font-weight: 750; font-stretch: 92%; line-height: 1.15; }
.price-row .for { margin: .3rem 0 0; color: var(--ink-2); font-size: .93rem; }
.price-row ul { margin: 0; padding-left: 1.1rem; color: var(--ink); font-size: .97rem; }
.price-row li + li { margin-top: .2rem; }
.amount { font-weight: 800; font-stretch: 75%; font-size: var(--s3); line-height: 1; font-variant-numeric: tabular-nums; }
.amount small { display: block; font-size: .8rem; font-weight: 500; font-stretch: 100%; color: var(--ink-2); margin-top: .35rem; line-height: 1.35; }
.amount s { color: var(--ink-2); font-weight: 600; font-size: 1.1rem; margin-left: .35rem; }
.price-row .btn { width: 100%; }
.price-row.free { background: transparent; }
.price-fine { color: var(--ink-2); font-size: var(--s-1); margin-top: 1.25rem; max-width: var(--measure); }
@media (max-width: 900px) {
  .price-row { grid-template-columns: 1fr auto; gap: .9rem 1.25rem; }
  .price-row > div:first-child { grid-column: 1 / -1; }
  .price-row ul { grid-column: 1 / -1; }
  .price-row .btn-cell { align-self: end; }
}
@media (max-width: 480px) {
  .price-row { grid-template-columns: 1fr; }
}

/* faq */
.faq { max-width: 820px; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 700; font-size: 1.12rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; font-family: var(--mono); font-size: 1.3rem; color: var(--cobalt); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 1.25rem; max-width: var(--measure); color: var(--ink); }
.faq .a p { margin: 0 0 .75rem; }
.faq .a p:last-child { margin-bottom: 0; }
.faq code { font-family: var(--mono); font-size: .88em; background: var(--paper-2); padding: .05em .3em; border-radius: 2px; }

/* closing call */
.closing { padding: clamp(3rem, 7vw, 5rem) 0; border-top: 1px solid var(--rule); }
.closing .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: end; justify-content: space-between; }
.closing p { margin: 0; font-weight: 800; font-stretch: 70%; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1; max-width: 18ch; }

/* footer */
.site-foot { background: var(--ink); color: #c9d1e3; padding: 2.5rem 0 3rem; font-size: var(--s-1); }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-foot a { color: #fff; }
.site-foot h2 { font-size: 1rem; margin: 0 0 .5rem; color: #fff; font-weight: 700; }
.site-foot p { margin: 0 0 .4rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .35rem; }
@media (max-width: 720px) { .site-foot .wrap { grid-template-columns: 1fr; } }

/* ---------- legal + simple pages ---------- */
.doc { padding: clamp(2.5rem, 6vw, 4rem) 0 4rem; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-weight: 820; font-stretch: 72%; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: .95; margin: 0 0 .6rem; }
.doc .updated { color: var(--ink-2); margin: 0 0 2rem; font-size: var(--s-1); }
.doc h2 { font-size: var(--s1); font-weight: 750; margin: 2.25rem 0 .5rem; }
.doc p, .doc li { max-width: var(--measure); }
.doc ul { padding-left: 1.2rem; }
.doc li + li { margin-top: .3rem; }
.doc table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: .5rem 0 1rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .55rem .6rem .55rem 0; border-bottom: 1px solid var(--rule); }
.doc th { font-weight: 650; }
.big-404 { font-family: var(--mono); color: var(--cobalt); font-size: 1rem; margin: 0 0 1rem; }
