/* Wayreeve marketing site, DRAFT (2026-10-27). Tokens come from tokens.css (copied from
   .scratch/wayreeve-design/prototypes/tokens.css, design system v0.1). Monochrome, petrol accent
   for links and focus only, no gradients, no shadows on page surfaces, weights <= 600. */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-14);
  line-height: 1.6;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }

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

code, kbd, .mono { font-family: var(--font-mono); font-size: 0.92em; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--surface-raised); color: var(--ink); padding: 8px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-2);
}
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 760px) { .wrap { padding: 0 16px; } }

/* Draft banner */
.draft-banner {
  background: var(--degraded-bg); color: var(--ink);
  border-bottom: 1px solid var(--degraded-line);
  font-size: var(--text-13); line-height: var(--lh-13);
}
.draft-banner .wrap { padding-top: 8px; padding-bottom: 8px; display: flex; gap: 8px; align-items: baseline; }
.draft-banner strong { font-weight: 600; color: var(--degraded); white-space: nowrap; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.02em; font-size: 18px; }
.brand svg { width: 26px; height: 26px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: var(--text-14); padding: 4px 0; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.site-nav a.btn-primary, .site-nav a.btn-primary:hover { color: var(--ink-inverse); text-decoration: none; padding: 0 12px; }
@media (max-width: 760px) {
  .site-head .wrap { gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
  .site-nav { margin-left: 0; width: 100%; gap: 16px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: var(--radius-2);
  font: inherit; font-size: var(--text-14); font-weight: 500; text-decoration: none;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  cursor: pointer; transition: border-color var(--dur-1) var(--ease);
}
.btn:hover { border-color: var(--line-control); color: var(--ink); }
.btn-primary { background: var(--ink); color: var(--ink-inverse); border-color: var(--ink); }
.btn-primary:hover { color: var(--ink-inverse); border-color: var(--ink-2); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: var(--text-13); }
.btn[aria-disabled="true"] { background: var(--bg-muted); color: var(--ink-2); border-color: var(--line-strong); cursor: not-allowed; }

/* Type */
h1, h2, h3 { font-weight: 600; margin: 0; letter-spacing: -0.012em; }
.display { font-size: 48px; line-height: 1.08; letter-spacing: -0.025em; max-width: 18ch; }
.lede { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; margin: 20px 0 0; }
h2.section-title { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; max-width: 30ch; }
.section-intro { color: var(--ink-2); max-width: 68ch; margin: 12px 0 0; font-size: 16px; line-height: 1.6; }
h3 { font-size: var(--text-16); line-height: var(--lh-16); }
p { margin: 0; }
p + p { margin-top: 12px; }
.small { font-size: var(--text-13); line-height: var(--lh-13); color: var(--ink-2); }
.fine { font-size: var(--text-12); line-height: var(--lh-12); color: var(--ink-3); }
@media (max-width: 760px) {
  .display { font-size: 34px; }
  .lede { font-size: 16px; }
  h2.section-title { font-size: 23px; }
}

/* Sections */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .meta { margin-top: 20px; }
section.band { padding: 64px 0; border-bottom: 1px solid var(--line); }
section.band.subtle { background: var(--bg-subtle); }
@media (max-width: 760px) {
  .hero { padding: 40px 0 36px; }
  section.band { padding: 44px 0; }
}

/* Grids */
.grid { display: grid; gap: 16px; margin-top: 32px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-2); padding: 20px; }
.panel h3 { margin-bottom: 8px; }
.panel p { color: var(--ink-2); }
.panel .num { font-family: var(--font-mono); font-size: var(--text-12); color: var(--ink-3); display: block; margin-bottom: 8px; }

/* Lists */
.checks { list-style: none; margin: 16px 0 0; padding: 0; }
.checks li { position: relative; padding-left: 22px; margin-top: 8px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; background: var(--ink); border-radius: 50%; }
.checks.not li::before { background: transparent; border: 1.5px solid var(--ink-3); width: 8px; height: 8px; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--text-12); color: var(--ink-3); padding-top: 3px; }
.steps strong { font-weight: 600; display: block; color: var(--ink); }
.steps span { color: var(--ink-2); }

/* Architecture figure */
figure.arch { margin: 32px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-2); padding: 20px; }
figure.arch svg { width: 100%; height: auto; }
figure.arch figcaption { margin-top: 12px; font-size: var(--text-13); color: var(--ink-2); max-width: 80ch; }
.arch-scroll { overflow-x: auto; }
.arch-scroll svg { min-width: 640px; }
.arch .box { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; }
.arch .zone { fill: var(--bg-subtle); stroke: var(--line-control); stroke-width: 1; stroke-dasharray: 5 4; }
.arch .zone-hosted { fill: var(--bg-subtle); stroke: var(--line-strong); stroke-width: 1; }
.arch .dp { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.arch .t { fill: var(--ink); font-family: var(--font-sans); font-size: 13px; }
.arch .t-strong { fill: var(--ink); font-family: var(--font-sans); font-size: 14px; font-weight: 600; }
.arch .t2 { fill: var(--ink-2); font-family: var(--font-sans); font-size: 12px; }
.arch .t3 { fill: var(--ink-3); font-family: var(--font-mono); font-size: 11px; }
.arch .zlabel { fill: var(--ink-2); font-family: var(--font-sans); font-size: 12px; font-weight: 600; }
.arch .wire { stroke: var(--ink-2); stroke-width: 1.5; fill: none; }
.arch .wire-cp { stroke: var(--accent); stroke-width: 1.5; fill: none; stroke-dasharray: 6 4; }
.arch .head { fill: var(--ink-2); }
.arch .head-cp { fill: var(--accent); }
.arch .t-cp { fill: var(--accent); font-family: var(--font-sans); font-size: 12px; }
.arch .refuse { fill: none; stroke: var(--refused); stroke-width: 1.5; }
.arch .t-refuse { fill: var(--refused); font-family: var(--font-sans); font-size: 12px; }

/* Code / record sample */
.record { background: var(--bg-subtle); border: 1px solid var(--line); border-radius: var(--radius-2); padding: 16px; overflow-x: auto; margin: 0; }
.record code { font-size: 12.5px; line-height: 20px; white-space: pre; color: var(--ink); }
.record .k { font-weight: 500; }
.record .s { color: var(--accent); }
.record .c { color: var(--ink-3); }

/* Callouts */
.callout { border: 1px solid var(--line); border-left: 3px solid var(--neutral-line); background: var(--surface); border-radius: var(--radius-2); padding: 14px 16px; margin-top: 24px; }
.callout strong { display: block; font-weight: 600; margin-bottom: 4px; }
.callout p { color: var(--ink-2); }
.callout.degraded { border-left-color: var(--degraded); background: var(--degraded-bg); }
.callout.refused { border-left-color: var(--refused); background: var(--refused-bg); }

/* Status tags (shape + text + colour) */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--radius-1); font-size: var(--text-12); font-weight: 500; border: 1px solid; white-space: nowrap; }
.tag::before { content: ""; width: 8px; height: 8px; flex: none; }
.tag.healthy { color: var(--healthy); background: var(--healthy-bg); border-color: var(--healthy-line); }
.tag.healthy::before { background: var(--healthy); border-radius: 50%; }
.tag.degraded { color: var(--degraded); background: var(--degraded-bg); border-color: var(--degraded-line); }
.tag.degraded::before { background: var(--degraded); transform: rotate(45deg) scale(0.8); }
.tag.neutral { color: var(--neutral); background: var(--neutral-bg); border-color: var(--neutral-line); }
.tag.neutral::before { border: 1.5px solid var(--neutral); border-radius: 50%; }
.tag.draft { color: var(--degraded); background: var(--degraded-bg); border-color: var(--degraded-line); }
.tag.draft::before { background: var(--degraded); transform: rotate(45deg) scale(0.8); }

/* Tables */
.table-wrap { overflow-x: auto; margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius-2); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: var(--text-13); line-height: var(--lh-13); }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
thead th { background: var(--bg-subtle); color: var(--ink-3); font-size: var(--text-12); font-weight: 500; border-bottom: 1px solid var(--line-strong); }
tbody th { font-weight: 500; color: var(--ink); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td { color: var(--ink-2); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
@media (max-width: 960px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-2); padding: 24px; display: flex; flex-direction: column; }
.plan.recommended { border-color: var(--ink); }
.plan .plan-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.plan h3 { font-size: 18px; line-height: 26px; }
.plan .edition { font-family: var(--font-mono); font-size: var(--text-12); color: var(--ink-3); }
.plan .price { margin-top: 16px; font-size: 32px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.plan .price small { font-size: var(--text-14); font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
.plan .price-note { margin-top: 6px; font-size: var(--text-13); color: var(--ink-2); }
.plan .for { margin-top: 12px; color: var(--ink-2); font-size: var(--text-14); }
.plan .checks { flex: 1; }
.plan .btn { margin-top: 24px; align-self: flex-start; }
.draft-num { display: inline-block; margin-top: 8px; }

/* Pilot form stub */
.form-stub { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-2); padding: 24px; }
.field { display: grid; gap: 6px; margin-top: 16px; }
.field:first-of-type { margin-top: 0; }
.field label { font-size: var(--text-13); font-weight: 500; }
.field .help { font-size: var(--text-12); color: var(--ink-3); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--text-14); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-control); border-radius: var(--radius-2); padding: 8px 10px; min-height: 40px; width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row .field { margin-top: 16px; }
@media (max-width: 760px) { .form-row { grid-template-columns: 1fr; gap: 0; } }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Two-column layout */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Footer */
.site-foot { padding: 40px 0 56px; }
.site-foot .wrap { display: grid; gap: 12px; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot nav a { color: var(--ink-2); font-size: var(--text-13); }

@media print {
  .draft-banner, .site-nav, .skip { display: none; }
  body { background: #fff; }
}

/* Get started */
.toc { margin: 24px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 16px; }
.step-no { font-family: var(--font-mono); font-size: var(--text-12); color: var(--ink-3); margin-bottom: 8px; }
h3.sub { margin: 28px 0 10px; }
.cmd-note { margin-top: 10px; max-width: 78ch; }
.code-pair { margin-top: 24px; }
.steps code, .cmd-note code, .small code { overflow-wrap: anywhere; }

/* Tour: console screenshots (light and dark via <picture>) */
figure.shot { margin: 24px 0 0; }
figure.shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-2); background: var(--surface); }
figure.shot figcaption { margin-top: 8px; font-size: var(--text-13); line-height: var(--lh-13); color: var(--ink-3); max-width: 78ch; }
.panel h3 + p code, .panel p code { overflow-wrap: anywhere; }

/* Expandable detail (examples, requirements) */
details.more { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius-2); background: var(--surface); }
details.more > summary { cursor: pointer; padding: 12px 16px; font-weight: 500; color: var(--ink); }
details.more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
details.more[open] > summary { border-bottom: 1px solid var(--line); }
details.more > :not(summary) { margin-left: 16px; margin-right: 16px; }
details.more > :last-child { margin-bottom: 16px; }
details.more .checks { margin-top: 12px; }
details.more .record { margin-top: 12px; }

.panel details.more .record code { font-size: 12px; }

/* Visible to screen readers only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
