/* Invocation Labs: one stylesheet, no external assets, no scripts. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f2f0ea;
  --text: #1a1c21;
  --muted: #474c57;
  --line: #d9d6cd;
  --accent: #1d47b8;
  --accent-text: #ffffff;
  --mark: #0f6b4f;
  --focus: #b8410f;
  /* A failing verdict. 7.3:1 on --surface, 6.4:1 on --surface-2. */
  --bad: #a4252a;
  --shadow: 0 1px 2px rgba(20, 22, 28, 0.05), 0 12px 32px rgba(20, 22, 28, 0.12);

  /* One display size, one section size, body at 17px: the whole scale. */
  --step-display: clamp(2.1rem, 5.2vw, 3rem);
  --step-section: clamp(1.35rem, 2.8vw, 1.7rem);
  --step-sub: 1.1rem;
  --step-small: 0.9rem;
  /* About 68 characters of body text: the comfortable measure. */
  --measure: 36rem;
  --radius: 10px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #181b21;
    --surface-2: #1f232a;
    --text: #e9eaed;
    --muted: #b6bac4;
    --line: #343944;
    --accent: #9db8ff;
    --accent-text: #0d1222;
    --mark: #6fd3ae;
    --focus: #ffb380;
    /* 8.6:1 on --surface. */
    --bad: #ff9b9b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.55);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
/* A plain link in the content or the footer is a little taller than its
   letters, so its tap target is at least 24 CSS pixels (WCAG 2.2 target
   size): padding on an inline box widens what a tap hits without moving a
   line of text. Links with a class of their own set their own padding. */
main a:not([class]), .site-footer a:not([class]) { padding-block: 0.15rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: var(--measure); }

/* ------------------------------------------------------------------ *
 * The header: one slim bar. Wordmark left; a sign-in icon and a
 * hamburger right. The menu is the native popover #site-menu and nothing
 * else: no JavaScript anywhere on this site.
 * ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
/* A linked heading lands below the sticky bar, not under it. */
:is(h1, h2, h3, h4)[id], :target { scroll-margin-top: 4.5rem; }
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  background: var(--accent);
  position: relative;
  flex: none;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 0.3rem;
  width: 0.3rem;
  height: 0.9rem;
  border-radius: 1px;
  background: var(--accent-text);
}

.header-actions { display: flex; align-items: center; gap: 0.4rem; }
.icon { display: block; flex: none; }

.signin, .menu-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.signin { color: var(--accent); border-color: var(--line); }
.signin:hover, .menu-button:hover { background: var(--surface-2); text-decoration: none; }
/* On a phone the two controls are icons alone; the words come back wide. */
.signin-text, .menu-text { display: none; }
@media (min-width: 34rem) {
  .signin-text, .menu-text { display: inline; }
}

/* The early access link: a quiet accent button in the bar, wide screens
   only. Narrower, the menu panel opens with the same link instead. */
.header-cta {
  display: none;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
}
.header-cta:hover { text-decoration: none; filter: brightness(1.08); }
@media (min-width: 46rem) {
  .header-cta { display: inline-flex; }
}

/* The hamburger is a real button: drop the browser's own button look so it
   matches the sign-in link beside it. */
.menu-button { background: transparent; font-family: inherit; line-height: inherit; }
.menu-button:focus-visible, .menu-close button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* The panel is a popover: the browser keeps it closed until the hamburger
   opens it, and closes it on Escape or a click outside. A popover is drawn
   centred, with a border and padding of its own, so all of that is reset
   here to the full-width panel just under the bar. Closed is the default,
   so a browser with no popover support shows nothing; the footer still
   lists every page. */
.site-nav {
  display: none;
  position: fixed;
  inset: 3.5rem 0 auto 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
  max-height: calc(100vh - 3.5rem);
  overflow-y: auto;
}
#site-menu:popover-open { display: block; }
/* The scrim: the page under the panel dims, the bar above it does not, so
   the hamburger can still be pressed to close the menu. */
#site-menu::backdrop {
  inset: 3.5rem 0 0 0;
  background: rgba(10, 12, 16, 0.32);
}

.menu-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.75rem;
}
@media (min-width: 46rem) {
  .menu-panel { grid-template-columns: repeat(4, 1fr); }
}

.nav-group { min-width: 0; }
.nav-heading {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-group ul { list-style: none; margin: 0; padding: 0; }
.nav-group li { margin: 0; }
.nav-group a {
  display: block;
  padding: 0.4rem 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.97rem;
}
.nav-group a:hover { color: var(--accent); text-decoration: underline; }
.nav-group a[aria-current="page"] {
  font-weight: 650;
  color: var(--accent);
  box-shadow: inset 2px 0 0 var(--accent);
  padding-left: 0.6rem;
}

.menu-cta { grid-column: 1 / -1; margin: 0; }
.menu-close { grid-column: 1 / -1; margin: 0.25rem 0 0; }
.menu-close button {
  display: inline-block;
  background: transparent;
  font-family: inherit;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.menu-close button:hover { background: var(--surface-2); color: var(--text); }

/* Main content */
main { padding: 3rem 0 4.5rem; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
/* The display size wants a short line: about twenty characters, balanced. */
h1 { font-size: var(--step-display); margin: 0 0 1.1rem; max-width: 20ch; text-wrap: balance; }
h2 { font-size: var(--step-section); margin: 3.25rem 0 0.9rem; }
h3 { font-size: var(--step-sub); letter-spacing: -0.005em; margin: 1.75rem 0 0.4rem; }
p, ul, ol { margin: 0 0 1.1rem; }
li { margin-bottom: 0.4rem; }
/* Body copy keeps the measure. Anything with a class of its own (the card
   grid, the numbered flow, the page's own table of contents) is laid out by
   that class instead. */
main > .wrap > :is(p, ul, ol, dl):not([class]) { max-width: var(--measure); }
/* A heading sits above its paragraph, so it may run a little wider. */
main > .wrap > :is(h2, h3) { max-width: 44rem; }
strong { font-weight: 650; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05em 0.3em;
  overflow-wrap: anywhere;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mark);
  margin-bottom: 0.6rem;
}
.lede { font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--muted); max-width: var(--measure); }

.hero { padding: 1.5rem 0 1.5rem; }
/* On a phone the whole first screen, button included, fits above the fold:
   less air around the heading, the lede and the four answers. */
@media (max-width: 40rem) {
  .hero { padding: 0 0 1rem; }
  .hero .eyebrow { margin-bottom: 0.4rem; }
  .hero h1 { font-size: 1.75rem; line-height: 1.15; margin-bottom: 0.6rem; }
  .hero .lede { line-height: 1.45; margin-bottom: 0; }
  .hero .offer { margin-top: 1rem; }
  .hero .offer dt { padding-top: 0.1rem; }
  .hero .offer dd { font-size: 1rem; line-height: 1.45; margin-bottom: 0.35rem; }
  .hero .actions { margin-top: 1rem; }
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.button {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { text-decoration: none; }
.button.primary { background: var(--accent); color: var(--accent-text); }
.button.secondary { color: var(--accent); background: transparent; }
.button.secondary:hover { background: var(--surface-2); }

/* Cards and grids */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 0.5rem;
  padding: 0;
  list-style: none;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 0.6rem;
  margin: 0;
}
.card h3 { margin-top: 0.2rem; }
.card .num {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--mark);
  margin-bottom: 0.2rem;
}

.note {
  border-left: 4px solid var(--mark);
  background: var(--surface-2);
  padding: 0.9rem 1.1rem 0.2rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  max-width: var(--measure);
}
.note p:last-child { margin-bottom: 0.7rem; }

.flow { counter-reset: step; list-style: none; padding: 0; max-width: var(--measure); }
.flow li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 0.9rem;
}
.flow li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

dl.defs { max-width: var(--measure); margin: 0 0 1rem; }
dl.defs dt { font-weight: 650; margin-top: 0.9rem; }
dl.defs dd { margin: 0.2rem 0 0; color: var(--text); }

.toc { margin: 1rem 0 0; }
.toc ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; list-style: none; padding: 0; }

.section-rule { border: 0; border-top: 1px solid var(--line); margin: 3rem 0 0; }

/* Form fields. The early access form is plain HTML in a fragment, so the
   whole of its look lives here: one column, labels above, fields the width
   of the measure and tall enough for a thumb. */
form { max-width: var(--measure); margin: 0 0 1.5rem; }
form p { margin: 0 0 1.1rem; }
form label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
/* The fragment separates a label from its field with a <br>, which a block
   label makes into an empty line. */
form br { display: none; }
input[type="text"], input[type="email"], input[type="url"], textarea {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
input:hover, textarea:hover { border-color: var(--muted); }
input:focus, textarea:focus { border-color: var(--accent); }
::placeholder { color: var(--muted); opacity: 1; }
/* The consent line: the box hangs out to the left of its own words, which
   stay in ordinary inline flow so the link inside them does not break out. */
form label:has(> input[type="checkbox"]) {
  font-weight: 400;
  margin: 1.5rem 0 0;
  padding-left: 2.1rem;
  text-indent: -2.1rem;
}
/* 24 CSS pixels square: the WCAG 2.2 target size minimum. */
input[type="checkbox"] {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 0.6rem 0 0;
  vertical-align: -0.35rem;
  accent-color: var(--accent);
}
/* What the consent covers, in full and always visible, directly under the
   box and lined up with its words; the box names it with aria-describedby. */
.consent-detail {
  margin: 0.4rem 0 0;
  padding-left: 2.1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ------------------------------------------------------------------ *
 * The footer: three quiet columns wide, stacked on a phone. The product
 * name and one line; the menu's four groups again as short lists; the
 * early access and contact links, the contact address, the sign-in link
 * with its line for a visitor with no account, and the copyright.
 * ------------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
}
@media (min-width: 52rem) {
  .footer-grid { grid-template-columns: 1fr 1.6fr 1fr; gap: 2.5rem; }
}
.site-footer p { margin-bottom: 0.4rem; max-width: var(--measure); }
.footer-brand { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.3rem; }
.footer-brand a { color: var(--text); text-decoration: none; }
.footer-brand a:hover { color: var(--accent); }

/* Two columns the four groups flow down, so a long group and a short one
   leave no hole between them. */
.footer-nav { columns: 2; column-gap: 1.5rem; }
.footer-nav .nav-group { break-inside: avoid; margin-bottom: 1.5rem; }
.footer-nav .nav-group a { font-size: 0.93rem; padding: 0.22rem 0; color: var(--muted); }
.footer-nav .nav-group a:hover { color: var(--accent); }
.footer-nav .nav-group a[aria-current="page"] { color: var(--text); box-shadow: none; padding-left: 0; }

.footer-contact a { color: var(--muted); overflow-wrap: anywhere; }
.footer-contact a:hover { color: var(--accent); }
.footer-note { font-size: 0.9rem; color: var(--muted); }
.copyright { margin-top: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  .site-nav, #site-menu:popover-open, .menu-button, .skip, .actions { display: none; }
  .site-header { position: static; box-shadow: none; }
  body { background: #fff; color: #000; }
}

/* Status tags, draft banner and footer links (added 17 October 2026) */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  vertical-align: 0.2em;
  white-space: nowrap;
}
.tag.built { color: var(--mark); }
.tag.launch { color: var(--accent); }
.tag.coming { color: var(--focus); }
h2 .tag { margin-left: 0.4rem; }

.draft-banner {
  border: 1px solid var(--focus);
  border-left-width: 4px;
  background: var(--surface-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem 0.3rem;
  margin: 0 0 2rem;
  max-width: var(--measure);
}
.draft-banner strong { color: var(--focus); }

/* Comparison tables (added for wave three) */
table.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}
table.compare caption {
  text-align: left;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
/* Rules between the rows, not a box round every cell: a quieter table. */
table.compare th, table.compare td {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0.9rem 0.7rem 0;
  text-align: left;
  vertical-align: top;
}
table.compare thead th {
  border-bottom-width: 2px;
  font-size: var(--step-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
table.compare tbody th { font-weight: 650; }

/* ------------------------------------------------------------------ *
 * SITE3: the home page's four answers, and the example run page.
 * ------------------------------------------------------------------ */

/* The first screen's four short answers: a label and a line each, on one
   row from 40rem up so the whole block is read at a glance. */
.offer {
  margin: 1.75rem 0 0;
  max-width: 44rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem 1.25rem;
}
@media (min-width: 40rem) {
  .offer { grid-template-columns: max-content 1fr; }
  .offer dt { grid-column: 1; }
  .offer dd { grid-column: 2; }
}
.offer dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.3rem;
}
.offer dd { margin: 0 0 0.7rem; }
@media (min-width: 40rem) {
  .offer dd { margin-bottom: 0.45rem; }
}

/* A verdict or a grade, in one word. The border is currentColor, so each
   kind needs only its own colour. */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  border: 1px solid currentColor;
  vertical-align: 0.1em;
  white-space: nowrap;
}
.badge.bad { color: var(--bad); }
.badge.warn { color: var(--focus); }
.badge.good { color: var(--mark); }
.badge.unknown { color: var(--muted); }

/* One finding, in full: the seven things every finding carries. */
.finding {
  border: 1px solid var(--line);
  border-left: 4px solid var(--bad);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  padding: 1.1rem 1.35rem 1.25rem;
  margin: 1.5rem 0;
  max-width: 44rem;
}
.finding-title {
  font-size: var(--step-sub);
  font-weight: 650;
  line-height: 1.3;
  margin: 0 0 0.9rem;
}
.finding-title .badge { margin-right: 0.4rem; }
.facts { margin: 0; }
.facts dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1rem;
}
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 0.25rem 0 0; }

/* A quoted piece of a run: the summary line, the report prose. Framed so a
   reader can see where our words stop and the run's begin. */
.preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.1rem 1.35rem 1.25rem;
  margin: 1.5rem 0;
  max-width: 44rem;
}
.preview-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.preview :is(h3, h4) { margin-top: 1.4rem; }
.preview :is(h3, h4):first-of-type { margin-top: 0; }
.preview h3 { font-size: var(--step-sub); }
.preview h4 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.3rem;
}
.preview p:last-child { margin-bottom: 0; }
.preview-more { color: var(--muted); font-size: 0.95rem; }

/* The run page as the signed-in view shows it, drawn in this site's own
   styling rather than screenshotted, so it reads on a phone too. */
.view {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  margin: 1.5rem 0;
  max-width: 48rem;
}
.view-bar {
  margin: 0;
  padding: 0.6rem 1.35rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.view-body { padding: 1.25rem 1.35rem 1.4rem; }
.view-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.75rem 0 0.5rem;
}
.view-body h3:first-of-type { margin-top: 0.75rem; }
.view-lead { font-size: 1.05rem; margin-bottom: 0.4rem; }
.view-lead .badge { margin-right: 0.35rem; }
.view-muted { color: var(--muted); font-size: 0.9rem; }
.view-list { list-style: none; padding: 0; margin: 0; }
.view-list li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.view-list li:first-child { border-top: 0; }
.view-list .badge { margin-right: 0.35rem; }

/* The early access form's hidden field (SG1): off the page for people and
   screen readers, still in the markup for programs that fill every field. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
