/* Syndroo marketing stylesheet.
   Owned by the marketing site; the documentation origin keeps its own CSS.
   The palette, logo and mascot artworks are unchanged from the accepted
   prototype. What changed in the 0.3.0 design iteration is the composition:
   one hero-sized demo instead of a hero diagram plus a second demo, mascot
   sizes per role, and result rows that carry a label next to every state. */

:root {
  --canvas: #fbfbfe;
  --surface: #ffffff;
  --ink: #172038;
  --muted: #626b80;
  --border: #e4e6ef;
  --border-strong: #d3d6e4;
  --violet: #6446ed;
  --violet-dark: #5334d8;
  --blue: #267cf8;
  --lavender: #f0edff;
  --lavender-deep: #e5dfff;
  --console: #141a2e;
  --console-line: #262f4b;
  --console-text: #dfe3f5;
  --console-muted: #9aa3c2;
  --ok: #1f8a5f;
  --warn: #9a6412;
  --danger: #a53131;
  --radius-button: 10px;
  --radius-panel: 18px;
  --radius-panel-lg: 22px;
  --shadow-soft: 0 1px 2px rgba(23, 32, 56, 0.04), 0 12px 32px rgba(23, 32, 56, 0.06);
  --shadow-card: 0 1px 1px rgba(23, 32, 56, 0.04), 0 10px 24px rgba(23, 32, 56, 0.07);
  --font-sans: "Avenir Next", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: 40px;
  /* Mascot sizes are per role: an accent in the hero, a small mark in the CTA. */
  --mascot-hero: 160px;
  --mascot-cta: 96px;
}

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

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

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

/* Grid and flex children hold their own width. Nothing relies on hiding a
   broken layout with `overflow-x: hidden`; the only horizontal scrolling is
   inside a code block or a wide table. */
main,
section,
div,
ul,
ol,
li,
p,
h1,
h2,
h3 {
  min-width: 0;
}

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

a {
  color: var(--violet);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--violet-dark);
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-button);
  transition: top 120ms ease-out;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0 0 16px;
  text-wrap: balance;
}

h1 {
  font-size: 58px;
}

h2 {
  font-size: 34px;
}

h3 {
  font-size: 21px;
  line-height: 1.28;
}

p {
  margin: 0 0 18px;
}

.muted {
  color: var(--muted);
}

.lead {
  font-size: 19px;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 14px;
}

.accent {
  background: linear-gradient(96deg, #6446ed 0%, #267cf8 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

code,
kbd,
pre {
  font-family: var(--font-mono);
}

code {
  font-size: 0.9em;
  background: var(--lavender);
  border-radius: 6px;
  padding: 2px 6px;
  overflow-wrap: anywhere;
}

pre {
  margin: 0;
  overflow-x: auto;
  max-width: 100%;
}

pre code {
  background: none;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.7;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 251, 254, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 30px;
  height: 30px;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--lavender);
  color: var(--violet-dark);
}

.site-nav a[aria-current="page"] {
  color: var(--violet);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-button);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle__bars {
  display: block;
  width: 16px;
  height: 10px;
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.6px;
  background: var(--ink);
}

.nav-toggle__bars::before {
  top: 1px;
}

.nav-toggle__bars::after {
  bottom: 1px;
}

/* Layout blocks */
main {
  display: block;
}

.section {
  padding: 78px 0;
}

.section--tight {
  padding: 54px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-head h2 {
  margin-bottom: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 15px 6px 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.pill strong {
  color: var(--ink);
  font-weight: 600;
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  flex: none;
}

/* Hero: a short intro beside the single interactive demo. */
.hero {
  padding: 62px 0 56px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 52px;
  align-items: start;
}

.hero__intro .pill {
  display: flex;
  width: fit-content;
  margin-bottom: 26px;
}

.hero h1 {
  max-width: 14ch;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 19px;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 26px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero__proof {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
}

.hero__proof span {
  display: inline-block;
}

.hero__proof span + span::before {
  content: "\00b7";
  margin: 0 8px;
  color: var(--border-strong);
}

.hero__boundary {
  font-size: 14.5px;
  color: var(--muted);
  background: var(--lavender);
  border: 1px solid var(--lavender-deep);
  border-radius: 12px;
  padding: 12px 15px;
  margin: 0;
}

.hero__boundary strong {
  color: var(--ink);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out;
}

.button--primary {
  background: var(--violet);
  color: #fff;
}

.button--primary:hover {
  background: var(--violet-dark);
  color: #fff;
}

.button--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink);
}

.button--ghost:hover {
  border-color: var(--violet);
  color: var(--violet-dark);
  background: var(--surface);
}

.button[disabled],
.button[aria-disabled="true"],
.picker__option.is-inactive,
.copy-button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* The single demo: agent conversation and API responses share one scenario. */
.demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.demo__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.demo__mascot {
  width: var(--mascot-hero);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(100, 70, 237, 0.16),
    rgba(38, 124, 248, 0.08) 62%,
    rgba(251, 251, 254, 0) 80%
  );
}

.demo__title {
  font-size: 20px;
  margin: 0 0 6px;
}

.demo__subtitle {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
}

.simulated {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--violet);
  background: var(--lavender);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.demo__simulated {
  display: inline-block;
  margin: 0 0 14px;
}

/* Without JavaScript the demo controls stay inert, so the page explains where
   the same workflow is written out as text instead. */
.demo__noscript {
  font-size: 14px;
  color: var(--muted);
  background: var(--lavender);
  border: 1px solid var(--lavender-deep);
  border-radius: 12px;
  padding: 12px 15px;
  margin: 0 0 14px;
}

.picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.picker__option {
  font: inherit;
  font-size: 13.5px;
  min-height: 38px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.picker__option[aria-pressed="true"] {
  background: var(--lavender);
  border-color: var(--violet);
  color: var(--violet-dark);
  font-weight: 600;
}

.viewswitcher {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--canvas);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  margin-bottom: 14px;
}

.viewswitcher__option {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  min-height: 38px;
  padding: 7px 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.viewswitcher__option[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.demo__summary {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 16px;
}

.demo__view {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.demo__view-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

/* Agent conversation */
.conversation {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.turn {
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14.5px;
}

.turn--you {
  background: var(--canvas);
  border: 1px solid var(--border);
}

.turn--agent {
  background: var(--lavender);
  border: 1px solid var(--lavender-deep);
}

.turn--idle {
  background: var(--canvas);
  border: 1px dashed var(--border-strong);
  color: var(--muted);
  font-size: 13.5px;
}

.turn__who {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 4px;
}

.turn--you .turn__who {
  color: var(--muted);
}

.turn__text {
  display: block;
}

.previews {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 13.5px;
}

.preview__platform {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  margin-bottom: 4px;
}

.preview__text {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.demo__boundary {
  font-size: 13px;
  color: var(--muted);
  border-left: 3px solid var(--lavender-deep);
  padding-left: 12px;
  margin: 0;
}

/* API panels */
.console {
  background: var(--console);
  border-radius: 14px;
  border: 1px solid var(--console-line);
  overflow: hidden;
  max-width: 100%;
}

.console__bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--console-line);
  background: #1a2138;
}

.console__bar .tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--console-muted);
  margin: 0;
}

.console__method {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(100, 70, 237, 0.28);
  color: #d9d0ff;
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}

.console__method--get {
  background: rgba(38, 124, 248, 0.28);
  color: #cfe3ff;
}

.tag--muted {
  color: var(--console-muted);
}

.console__body {
  padding: 14px 16px;
  color: var(--console-text);
}

.console__body pre code {
  font-size: 13px;
  line-height: 1.65;
}

.console__body pre {
  overflow-x: auto;
}

.demo__receipt {
  margin-top: 12px;
}

[data-demo-response][data-state="conflict"] {
  color: #ffc9c9;
}

.demo__status-panel {
  margin-top: 12px;
}

.demo__status-panel summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--violet);
}

.demo__status-panel .console {
  margin-top: 10px;
}

/* Per-platform results: glyph plus a written label, never colour alone. */
.results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.result {
  display: grid;
  grid-template-columns: 18px minmax(0, auto) minmax(0, auto) minmax(0, 1fr);
  align-items: baseline;
  column-gap: 10px;
  row-gap: 2px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
}

.result__name {
  font-weight: 600;
}

.result__state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  white-space: nowrap;
}

.result__mark {
  font-family: var(--font-mono);
  font-weight: 700;
}

.result__detail {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.result[data-state="published"] .result__state {
  color: var(--ok);
}

.result[data-state="failed"] .result__state {
  color: var(--danger);
}

.result[data-state="publishing"] .result__state {
  color: var(--blue);
}

.result[data-state="pending"] .result__state {
  color: var(--warn);
}

.result[data-state="idle"] .result__state {
  color: var(--muted);
}

.demo__caution {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 0;
}

.demo__state {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 14px;
  min-height: 34px;
}

.demo__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.demo__controls .button {
  padding: 9px 14px;
  font-size: 14.5px;
}

.copy-button {
  font: inherit;
  font-size: 13.5px;
  min-height: 40px;
  padding: 6px 13px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.copy-button:hover {
  border-color: var(--violet);
  color: var(--violet-dark);
}

.copy-feedback {
  font-size: 13px;
  color: var(--muted);
}

/* Platform icons are CSS masks, so the stored SVG files stay byte-identical. */
.platform-icon {
  display: inline-block;
  flex: none;
  width: 30px;
  height: 30px;
  background-color: var(--ink);
  -webkit-mask-image: var(--platform-icon-src);
  mask-image: var(--platform-icon-src);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.platform-icon--sm {
  width: 17px;
  height: 17px;
  background-color: var(--muted);
}

.platform-icon--threads {
  --platform-icon-src: url("/assets/platform-threads.svg");
}

.platform-icon--bluesky {
  --platform-icon-src: url("/assets/platform-bluesky.svg");
}

.platform-icon--x {
  --platform-icon-src: url("/assets/platform-x.svg");
}

.platform-icon--tumblr {
  --platform-icon-src: url("/assets/platform-tumblr.svg");
}

.platform-icon--linkedin {
  --platform-icon-src: url("/assets/platform-linkedin.svg");
}

.status-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 9px;
  border: 1px solid;
  white-space: nowrap;
}

.status-tag--tested {
  color: var(--ok);
  border-color: #bfe3d1;
  background: #f0faf5;
}

.status-tag--experimental {
  color: var(--warn);
  border-color: #ecd9b0;
  background: #fdf7ea;
}

.card .status-tag {
  margin-bottom: 10px;
}

/* Platform strip */
.platform-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 26px 0;
}

.platform-strip__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin-bottom: 16px;
}

.platform-strip__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.platform-strip__note {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

.platform-tiles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
}

/* Each tile is one link to that platform's guide, so the whole card is the
   target and the icon stays decorative. */
.platform-tile {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 6px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.platform-tile:hover {
  border-color: var(--violet);
  color: inherit;
  box-shadow: var(--shadow-card);
}

.platform-tile__name {
  font-size: 15px;
  font-weight: 600;
}

.platform-tile .status-tag {
  grid-column: 1 / -1;
  justify-self: start;
}

.legend {
  font-size: 13.5px;
  color: var(--muted);
  margin: 14px 0 0;
  max-width: 78ch;
}

.platform-strip .legend {
  margin: 0;
}

/* Cards, infrastructure rows, notes */
.grid {
  display: grid;
  gap: 20px;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: 24px 24px 22px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 15.5px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card__step {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--violet);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  display: block;
}

.card__link {
  font-size: 14.5px;
}

.card code {
  overflow-wrap: anywhere;
}

.infra {
  border-top: 1px solid var(--border);
}

.infra__row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.infra__row h3 {
  margin: 0;
  font-size: 19px;
}

.infra__row p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.tech-note {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 20px;
}

.tech-note summary {
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  padding: 14px 0;
}

.tech-note p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  max-width: 86ch;
}

.note {
  border-left: 3px solid var(--violet);
  background: var(--lavender);
  border-radius: 0 var(--radius-panel) var(--radius-panel) 0;
  padding: 20px 24px;
}

.note h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.note p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* FAQ and closing call to action */
.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 20px;
}

.faq details[open] {
  border-color: var(--border-strong);
}

.faq summary {
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 600;
  padding: 15px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 1.8px solid var(--muted);
  border-bottom: 1.8px solid var(--muted);
  transform: rotate(45deg);
  margin-top: -3px;
}

.faq details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 3px;
}

.faq details > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 82ch;
}

.cta {
  background: var(--lavender);
  border: 1px solid var(--lavender-deep);
  border-radius: var(--radius-panel-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.cta h2 {
  margin-bottom: 10px;
}

.cta p {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta__mascot {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta__mascot img {
  width: var(--mascot-cta);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 52px 0 34px;
  margin-top: 20px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.site-footer h2 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}

.site-footer a:hover {
  color: var(--violet);
  text-decoration: underline;
}

.site-footer__brand p {
  color: var(--muted);
  font-size: 15px;
  max-width: 34ch;
}

.site-footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

/* Inner pages */
.page-head {
  padding: 56px 0 34px;
  border-bottom: 1px solid var(--border);
}

.page-head h1 {
  font-size: 46px;
  margin-bottom: 14px;
}

.page-head p {
  max-width: 70ch;
  color: var(--muted);
  margin: 0;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 29px;
  margin-top: 46px;
}

.prose h3 {
  font-size: 19px;
  margin-top: 32px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  margin: 0 0 20px;
}

.prose li {
  margin-bottom: 8px;
}

.prose li::marker {
  color: var(--muted);
}

.prose pre {
  background: var(--console);
  color: var(--console-text);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 22px;
}

.prose pre code {
  color: inherit;
}

.prose blockquote {
  margin: 0 0 22px;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--lavender-deep);
  color: var(--muted);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 15px;
}

.prose th,
.prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.prose th {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* A table cannot wrap, so it scrolls inside its own focusable region. */
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 22px;
}

.table-scroll:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.table-scroll > table {
  margin-bottom: 0;
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: 26px 28px;
  text-decoration: none;
  color: inherit;
}

.post-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.post-card h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.post-card p {
  color: var(--muted);
  margin: 0 0 12px;
}

.post-card__meta {
  font-size: 13.5px;
  color: var(--muted);
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--violet);
  background: var(--lavender);
  border-radius: 6px;
  padding: 3px 9px;
  margin-bottom: 12px;
}

.release {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-panel);
  padding: 26px 28px;
  margin-bottom: 22px;
}

.release__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.release h2 {
  font-size: 24px;
  margin: 0;
}

.release__status {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--warn);
  background: #fdf7ea;
  border: 1px solid #ecd9b0;
  border-radius: 999px;
  padding: 3px 11px;
}

.release h3 {
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 26px 0 10px;
}

.release ul {
  padding-left: 20px;
  margin: 0;
}

.release li {
  margin-bottom: 10px;
  color: #2c3448;
}

.draft-banner {
  background: #fdf7ea;
  border: 1px solid #ecd9b0;
  border-radius: var(--radius-panel);
  padding: 20px 24px;
  margin-bottom: 34px;
}

.draft-banner strong {
  display: block;
  color: var(--warn);
  font-size: 15px;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.draft-banner p {
  margin: 0;
  color: #6b5a34;
  font-size: 15px;
}

.meta-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.meta-list li {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 15.5px;
}

.meta-list dt,
.meta-list .key {
  color: var(--muted);
}

.in-page-nav {
  border-top: 1px solid var(--border);
  margin-top: 46px;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 1040px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .hero h1 {
    max-width: 20ch;
  }

  .platform-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .site-header[data-menu-open="true"] .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    position: absolute;
    left: 0;
    right: 0;
    top: 80px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 22px 20px;
    box-shadow: var(--shadow-soft);
  }

  .site-nav a {
    padding: 12px 10px;
    font-size: 17px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta__actions {
    justify-content: flex-start;
  }

  .infra__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .meta-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 22px;
    --mascot-hero: 120px;
    --mascot-cta: 80px;
  }

  body {
    font-size: 16.5px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 27px;
  }

  .prose h2 {
    font-size: 25px;
  }

  .hero {
    padding: 40px 0 40px;
  }

  .hero h1 {
    font-size: 36px;
    max-width: 100%;
  }

  .hero__subtitle {
    font-size: 17.5px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__proof span {
    display: block;
  }

  .hero__proof span + span::before {
    content: none;
  }

  .page-head h1 {
    font-size: 34px;
  }

  .section {
    padding: 52px 0;
  }

  .section--tight {
    padding: 40px 0;
  }

  .cta {
    padding: 28px 24px;
  }

  .demo {
    padding: 16px;
  }

  .demo__head {
    align-items: flex-start;
    gap: 12px;
  }

  .demo__title {
    font-size: 18px;
  }

  .platform-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-tile .status-tag {
    font-size: 11px;
    letter-spacing: 0.02em;
    padding: 3px 8px;
  }

  .result {
    grid-template-columns: 18px minmax(0, 1fr);
    row-gap: 4px;
  }

  .result__state,
  .result__detail {
    grid-column: 2;
  }

  .demo__controls .button,
  .demo__controls .copy-button {
    flex: 1 1 auto;
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .post-card,
  .release,
  .card {
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 32px;
  }

  .brand {
    font-size: 18px;
  }

  .pill {
    font-size: 12.5px;
  }

  .viewswitcher {
    width: 100%;
  }

  .viewswitcher__option {
    flex: 1 1 auto;
    padding: 7px 10px;
  }
}
