/* AGI For Us. Layout and type follow signal.org (sampled 2026-10-14); see build.md in pills for what changed and why. */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Signal's sampled colors, written in OKLCH. Hex equivalents in comments. */
  --color-text: oklch(22.21% 0 0);                 /* #1B1B1B */
  --color-text-secondary: oklch(39.42% 0.025 266.94); /* #404654 */
  --color-text-muted: oklch(51.54% 0.0277 262);     /* #5F6878, darker than Signal's #69748C to pass AA on grey */
  --color-surface: oklch(100% 0 0);                 /* #FFFFFF */
  --color-surface-grey: oklch(97.31% 0 0);          /* #F6F6F6 */
  --color-band: oklch(79.23% 0.0933 264.11);        /* #9DBBF8 periwinkle */
  --color-panel-teal: oklch(81.57% 0.0423 217.76);  /* #A5CAD5 */
  --color-panel-lavender: oklch(79.09% 0.074 314.93); /* #CDADDC */
  --color-footer: oklch(34.71% 0.0233 302.7);       /* #3C3744 */
  --color-footer-text: oklch(93.4% 0 0);            /* #E9E9E9 */
  --color-rule: oklch(92.18% 0.0071 268.54);        /* #E3E5EA */
  --color-border: oklch(51.54% 0.0277 262);         /* #5F6878 */
  --color-placeholder-surface: oklch(90.87% 0.0105 261.79); /* #DDE1E8 */
  /* Our single accent, replacing Signal's blue. */
  --color-action: oklch(45.53% 0.092 159.42);       /* #1A6644, 6.94:1 on white */
  --color-action-hover: oklch(37.89% 0.0749 160.03); /* #134E34 */
  --color-on-action: oklch(100% 0 0);
  --color-error: oklch(50.13% 0.1783 28.7);         /* #B3261E */
  --color-focus: oklch(22.21% 0 0);

  --font: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;

  --text-h1: clamp(2.5rem, 1.75rem + 3.2vw, 3.75rem);    /* 60/64 at desktop */
  --text-h2: clamp(2rem, 1.6rem + 1.6vw, 2.5rem);        /* 40/44 */
  --text-h3: clamp(1.5rem, 1.375rem + 0.5vw, 1.75rem);   /* 28/32 */
  --text-lead: clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem); /* 20/28 */
  --text-body: 1rem;                                       /* 16/24 */
  --text-small: 0.875rem;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 120px;

  --container: 1344px;
  --gutter: 48px;
  --article: 680px;

  --radius-tag: 4px;
  --radius-control: 8px;
  --radius-box: 12px;
  --radius-panel: 16px;
  --radius-bubble: 18px;
  --radius-card: 24px;

  --shadow-sm: 0 1.25px 2.5px oklch(30% 0 0 / 0.05), 0 2.5px 5px oklch(30% 0 0 / 0.05); /* Signal's button shadow */
  --shadow-md: 0 8px 16px -2px oklch(15% 0.01 260 / 0.12), 0 0 0 1px oklch(15% 0.01 260 / 0.03);
  --shadow-lg: 0 24px 48px -12px oklch(15% 0.01 260 / 0.28), 0 0 0 1px oklch(15% 0.01 260 / 0.04);
}

@media (max-width: 768px) {
  :root { --gutter: 16px; }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-surface);
  font-kerning: normal;
}

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

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }

a { color: var(--color-action); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--color-action-hover); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--color-surface);
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 10;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-md);
}
.skip-link:focus { top: var(--space-4); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header (Signal: white bar, logo left, text links right) ---------- */

.site-header {
  background: var(--color-surface);
  padding: var(--space-4) 0;
  position: relative;
  z-index: 3;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 52px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-action);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  min-height: 44px;
}
.logo:hover { color: var(--color-action); text-decoration: none; }
.logo svg { width: 40px; height: 40px; flex: none; }

.nav-links { display: flex; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  display: block;
  padding: 14px 12px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
  line-height: 24px;
}
.nav-links a:hover { color: var(--color-text); text-decoration: underline; text-decoration-thickness: 2px; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

.nav-menu { display: none; position: relative; }
.nav-menu summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-control);
  font-weight: 600;
  color: var(--color-text);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary svg { width: 24px; height: 24px; }
.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: var(--space-2) 0;
  position: absolute;
  right: 0;
  top: calc(100% + var(--space-2));
  min-width: 260px;
  background: var(--color-surface);
  border-radius: var(--radius-box);
  box-shadow: var(--shadow-lg);
}
.nav-menu ul a {
  display: block;
  padding: var(--space-3) var(--space-5);
  color: var(--color-text);
  text-decoration: none;
  font-size: 1.125rem;
}
.nav-menu ul a:hover { background: var(--color-surface-grey); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .logo { font-size: 1.5rem; }
  .logo svg { width: 36px; height: 36px; }
}

/* ---------- Buttons (Signal: radius 8px, 20px/600, faint two-layer shadow) ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: var(--radius-control);
  font: inherit;
  font-size: 1.25rem;
  line-height: 28px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--color-surface);
  color: var(--color-action);
  box-shadow: var(--shadow-sm);
}
.button:hover { color: var(--color-action-hover); text-decoration: underline; text-decoration-thickness: 2px; }
.button--outline { border-color: var(--color-action); }
.button--outline:hover { border-color: var(--color-action-hover); }
.button[disabled] { cursor: progress; opacity: 0.7; }

@media (prefers-reduced-motion: no-preference) {
  .button { transition: color 150ms ease-out, border-color 150ms ease-out; }
}

/* ---------- Hero (Signal: full-bleed periwinkle band, 680px, art overlapping the bottom edge) ---------- */

.hero { background: var(--color-band); overflow-x: clip; overflow-y: visible; }
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
  gap: var(--space-7);
  min-height: 680px;
}
.hero-text { padding: var(--space-9) 0 var(--space-8); }
.hero h1 {
  font-size: var(--text-h1);
  line-height: 1.0667;
  font-weight: 800;
  margin-bottom: var(--space-5);
  text-wrap: balance;
}
h2, h3 { text-wrap: balance; }
.hero .lead { margin-bottom: var(--space-5); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-5); }
.hero-secondary { font-size: 1rem; line-height: 24px; }
.hero-secondary a { color: var(--color-text); font-weight: 600; }
.hero-secondary a:hover { color: var(--color-text); }
.hero-small { margin-top: var(--space-5); font-size: 1rem; line-height: 24px; color: var(--color-text); }

.lead { font-size: var(--text-lead); line-height: 1.4; }

.hero-art {
  position: relative;
  align-self: stretch;
  margin: 0 0 -112px;
  min-height: 600px;
  z-index: 1;
}
.hero-art .chat-card { position: absolute; width: min(420px, 60%); }
.hero-art .chat-card:nth-of-type(1) { left: 2%; top: 120px; transform: rotate(-5deg); z-index: 1; }
.hero-art .chat-card:nth-of-type(2) { right: 2%; bottom: 0; transform: rotate(5deg); z-index: 2; }
.hero-art figcaption {
  position: absolute;
  right: 2%;
  top: var(--space-7);
  font-size: var(--text-small);
  line-height: 20px;
  font-weight: 600;
  color: var(--color-text);
}

.chat-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
}

/* ---------- Chat bubbles (flat shapes, invented conversations) ---------- */

.thread + .thread { margin-top: var(--space-5); }
.thread-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-small);
  line-height: 20px;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.thread-label::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-text);
  opacity: 0.85;
  flex: none;
}
.bubbles { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: var(--radius-bubble);
  font-size: 1.0625rem;
  line-height: 24px;
}
.bubble--member {
  align-self: flex-end;
  background: var(--color-action);
  color: var(--color-on-action);
  border-bottom-right-radius: 6px;
}
.bubble--assistant {
  align-self: flex-start;
  background: var(--color-surface);
  color: var(--color-text);
  border-bottom-left-radius: 6px;
}
.chat-card .bubble--assistant { background: var(--color-surface-grey); }
.bubble-who { display: block; font-size: 0.75rem; line-height: 16px; font-weight: 700; margin-bottom: 2px; }
.bubble--member .bubble-who { color: var(--color-on-action); }
.bubble--assistant .bubble-who { color: var(--color-text-secondary); }

/* ---------- Sections ---------- */

.section { padding: var(--space-7) 0; }
.section--grey { background: var(--color-surface-grey); }
.section--after-hero { padding-top: calc(112px + var(--space-7)); }

.section-intro { text-align: center; max-width: 760px; margin: 0 auto; }
.section-intro h2 { margin-bottom: var(--space-4); }
.section-intro p { font-size: var(--text-lead); line-height: 1.4; }
.section-intro p + p { margin-top: var(--space-4); }

h2, .h2 { font-size: var(--text-h2); line-height: 1.1; font-weight: 800; }
h3, .h3 { font-size: var(--text-h3); line-height: 1.1429; font-weight: 800; }

/* "What it will do": eight short items, plain text on Signal's grey band (Signal's 2x2 card grid sits here). */
.will-do {
  list-style: none;
  padding: 0;
  margin: var(--space-7) 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-7) var(--space-8);
}
.will-do h3 { margin-bottom: var(--space-2); }
.will-do p { font-size: var(--text-lead); line-height: 1.4; color: var(--color-text); max-width: 34em; }

/* Text-plus-panel rows (Signal: text column 432px, panel 680px, radius 16px). */
.row {
  display: grid;
  grid-template-columns: minmax(0, 432px) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: start;
}
.row + .row { margin-top: var(--space-9); }
.rows { margin-top: var(--space-8); }
.article-signup { margin-top: var(--space-8); }
.article-signup h2 { font-size: 1.5rem; line-height: 36px; font-weight: 600; margin-bottom: var(--space-4); }
.article-signup .panel { min-height: 0; }
.row-text h2, .row-text h3 { margin-bottom: var(--space-6); }
.row-text p { font-size: var(--text-lead); line-height: 1.4; }
.row-text p + p { margin-top: var(--space-4); }
.row-text .button { margin-top: var(--space-6); }
.row .panel { justify-self: end; width: 100%; max-width: 680px; }
.row--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 432px); }
.row--reverse .row-text { order: 2; }
.row--reverse .panel { order: 1; }

.panel {
  border-radius: var(--radius-panel);
  padding: var(--space-7);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.panel--teal { background: var(--color-panel-teal); }
.panel--lavender { background: var(--color-panel-lavender); }
.panel--periwinkle { background: var(--color-band); }
.panel-threads { width: 100%; max-width: 520px; margin: 0 auto; }
.panel-note {
  margin-top: var(--space-5);
  font-size: 1rem;
  line-height: 24px;
  font-weight: 600;
  color: var(--color-text);
}

/* Lists with a bold lead (trust, cost). */
.lead-list { list-style: none; padding: 0; margin: 0; }
.lead-list li {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--color-rule);
  font-size: var(--text-lead);
  line-height: 1.4;
}
.lead-list li:last-child { border-bottom: 1px solid var(--color-rule); }
.lead-list strong { font-weight: 700; }
.list-intro { font-size: var(--text-lead); line-height: 1.4; font-weight: 700; margin-bottom: var(--space-4); }
.text-link { display: inline-block; padding: 8px 0; margin-top: var(--space-5); font-size: var(--text-lead); line-height: 1.4; font-weight: 600; }
.row-side .lead-list + .text-link { margin-top: var(--space-5); }

/* Status panel ("Where it stands"). */
.status-list { list-style: none; padding: 0; margin: 0 auto; width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: var(--space-3); }
.status-list li {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-box);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-lead);
  line-height: 1.4;
  font-weight: 600;
}
.status-list svg { width: 28px; height: 28px; flex: none; }
.status-list .status-word { margin-left: auto; font-size: 1rem; font-weight: 600; color: var(--color-text-secondary); white-space: nowrap; }
.status-list .is-done svg { color: var(--color-action); }
.status-list .is-open { background: transparent; box-shadow: inset 0 0 0 2px var(--color-surface); }
.status-list .is-open svg { color: var(--color-text); }

/* Values strip. */
.values { padding: var(--space-9) 0; }
.values p {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  font-size: var(--text-h3);
  line-height: 1.3;
  font-weight: 700;
}

/* ---------- Signup form ---------- */

.signup-form { width: 100%; max-width: 520px; margin: 0 auto; }
.field-label { display: block; font-size: 1.125rem; line-height: 24px; font-weight: 700; margin-bottom: var(--space-2); }
.field-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.input {
  flex: 1 1 260px;
  min-width: 0;
  min-height: 52px;
  padding: 0 var(--space-4);
  font: inherit;
  font-size: 1.25rem;
  line-height: 28px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
}
.input:hover { border-color: var(--color-text); }
.input:focus-visible { border-color: var(--color-text); }
.input[aria-invalid="true"] { border: 2px solid var(--color-error); }
.signup-form .button { flex: 0 0 auto; min-height: 52px; }
.field-error {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: 1rem;
  line-height: 24px;
  font-weight: 600;
  color: var(--color-text);
}
.field-error[hidden] { display: none; }
.field-error svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--color-error); }
.turnstile-slot { margin-top: var(--space-4); min-height: 65px; }
.form-small { margin-top: var(--space-4); font-size: 1rem; line-height: 24px; }
.form-small a { color: var(--color-text); }
.form-done {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-surface);
  border-radius: var(--radius-box);
  padding: var(--space-5);
  font-size: var(--text-lead);
  line-height: 1.4;
  font-weight: 700;
}
.form-done svg { width: 28px; height: 28px; flex: none; color: var(--color-action); }
.form-done[hidden] { display: none; }
.form-noscript { margin-top: var(--space-3); font-size: 1rem; line-height: 24px; }
.signup-target { display: none; }
.signup-target:target { display: block; }

/* ---------- Article layout (Signal blog post: one centered column) ---------- */

.article-wrap { padding: var(--space-7) 0 var(--space-9); }
.article { max-width: var(--article); margin: 0 auto; }
.article-header { text-align: center; margin-bottom: var(--space-7); }
.article-header h1 { font-size: 1.875rem; line-height: 40px; font-weight: 600; margin: var(--space-6) 0 var(--space-4); }
.article-header .byline { font-size: 1rem; line-height: 22px; color: var(--color-text-muted); }
.avatar {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
}
.avatar--placeholder {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: var(--color-placeholder-surface);
  color: var(--color-text-muted);
}
.avatar--placeholder svg { width: 70%; height: 70%; }

.prose { font-size: 1.25rem; line-height: 30px; }
.prose > * + * { margin-top: var(--space-6); }
.prose h2 { font-size: 1.5rem; line-height: 36px; font-weight: 600; margin-top: 60px; }
.prose h3 { font-size: 1.25rem; line-height: 30px; font-weight: 600; margin-top: var(--space-7); }
.prose h2 + *, .prose h3 + * { margin-top: var(--space-4); }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li + li { margin-top: var(--space-3); }
.prose blockquote {
  background: var(--color-surface-grey);
  border-left: 4px solid var(--color-text);
  border-radius: 0 var(--radius-box) var(--radius-box) 0;
  padding: var(--space-5) var(--space-6);
  font-size: 1.125rem;
  line-height: 28px;
}
.prose code {
  font-size: 0.9em;
  background: var(--color-surface-grey);
  padding: 1px 6px;
  border-radius: var(--radius-tag);
}
.prose h2[id], .prose h3[id] { scroll-margin-top: var(--space-5); }
.prose h2, .prose h3 { text-wrap: pretty; }

.status-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: var(--space-2);
  padding: 2px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-tag);
  font-size: 0.875rem;
  line-height: 20px;
  font-weight: 600;
  color: var(--color-text-secondary);
  white-space: normal;
}

.toc {
  background: var(--color-surface-grey);
  border-radius: var(--radius-panel);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-7);
  font-size: 1.125rem;
  line-height: 28px;
}
.toc h2 { font-size: 1rem; line-height: 24px; font-weight: 700; margin-bottom: var(--space-2); }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc li + li { margin-top: var(--space-1); }

/* Wide table, breaking out of the 680px column on large screens. */
.table-wrap { margin-left: calc(50% - min(480px, 50vw - var(--gutter))); width: min(960px, 100vw - 2 * var(--gutter)); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 24px; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: var(--space-4); border-top: 1px solid var(--color-rule); }
.table-wrap thead th { background: var(--color-surface-grey); border-top: 0; font-weight: 700; }
.table-wrap tbody th, .table-wrap td:first-child { font-weight: 700; width: 20%; }
.table-wrap td:nth-child(2) { width: 30%; }

@media (max-width: 760px) {
  .table-wrap { margin-left: 0; width: auto; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap tr { display: block; border-top: 1px solid var(--color-rule); padding: var(--space-4) 0; }
  .table-wrap td { display: block; border: 0; padding: var(--space-1) 0; width: auto !important; }
  .table-wrap td:first-child { font-size: 1.125rem; }
  .table-wrap td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; font-weight: 700; }
}

/* Architecture diagram. */
.diagram {
  background: var(--color-surface-grey);
  border-radius: var(--radius-panel);
  padding: var(--space-5);
  font-size: 1rem;
  line-height: 24px;
}
.diagram p { margin: 0; }
.dg-box { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-box); padding: var(--space-4); }
.dg-title { font-weight: 700; text-align: center; }
.dg-chips { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.prose .dg-chips li { margin: 0; }
.dg-chips li { margin: 0;border: 1px solid var(--color-border); border-radius: var(--radius-control); padding: 2px 10px; }
.dg-note { color: var(--color-text-secondary); }
.dg-arrow { width: 2px; height: 28px; margin: 4px auto; background: var(--color-text); position: relative; }
.dg-arrow::after { content: ""; position: absolute; left: -5px; bottom: -2px; border: 6px solid transparent; border-top-color: var(--color-text); border-bottom: 0; }
.dg-host { border-width: 2px; border-color: var(--color-text); }
.dg-members, .dg-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-3); }
.dg-member, .dg-service, .dg-admin, .dg-optional { border: 1px solid var(--color-border); border-radius: var(--radius-control); padding: var(--space-3); }
.dg-service { margin-top: var(--space-2); background: var(--color-surface-grey); }
.dg-optional { border-style: dashed; }
.dg-name { font-weight: 700; }
.dg-link { text-align: center; color: var(--color-text-secondary); margin-top: var(--space-2) !important; }
.dg-link::before, .dg-link::after { content: ""; display: inline-block; width: 24px; height: 2px; background: var(--color-text-secondary); vertical-align: middle; margin: 0 var(--space-2); }
.diagram figcaption { margin-top: var(--space-4); text-align: center; font-size: var(--text-small); color: var(--color-text-secondary); }
.diagram .status-tag { font-size: 0.75rem; line-height: 16px; padding: 1px 6px; margin-left: var(--space-1); }

@media (max-width: 560px) {
  .dg-members, .dg-row { grid-template-columns: 1fr; }
}

/* ---------- Footer (Signal: dark plum, copyright left, link columns) ---------- */

.site-footer {
  background: var(--color-footer);
  color: var(--color-footer-text);
  padding: var(--space-7) 0 var(--space-9);
  font-size: 1rem;
  line-height: 22px;
}
.site-footer .container {
  display: grid;
  grid-template-columns: minmax(0, 547px) repeat(3, minmax(0, 205px));
  gap: var(--space-6) var(--space-5);
}
.footer-about p + p { margin-top: var(--space-4); }
.site-footer a { color: var(--color-footer-text); text-decoration: none; display: inline-block; padding: 11px 0; }
.site-footer a:hover { text-decoration: underline; color: var(--color-footer-text); }
.site-footer :focus-visible { outline-color: var(--color-footer-text); box-shadow: 0 0 0 6px var(--color-footer); }
.footer-col h2 { font-size: 1rem; line-height: 22px; font-weight: 600; margin-bottom: var(--space-2); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col h2 + ul { margin-top: -11px; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-text { padding: var(--space-8) 0 var(--space-6); }
  .hero-art { min-height: 0; margin-bottom: -96px; display: flex; flex-direction: column; align-items: center; }
  .hero-art .chat-card:nth-of-type(n) { position: relative; width: min(400px, 100%); inset: auto; }
  .hero-art .chat-card:nth-of-type(1) { transform: rotate(-3deg); }
  .hero-art .chat-card:nth-of-type(2) { display: none; }
  .hero-art figcaption { position: static; transform: none; margin-top: var(--space-3); }
  .section--after-hero { padding-top: calc(96px + var(--space-7)); }
  .hero-art figcaption { color: var(--color-text-secondary); }

  .row, .row--reverse { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .row--reverse .row-text, .row--reverse .panel { order: 0; }
  .row .panel { justify-self: stretch; max-width: none; }
  .row .row-text { order: 0; }
  .row .panel { order: 1; }
  .row-text h2, .row-text h3 { margin-bottom: var(--space-4); }
  .row + .row { margin-top: var(--space-8); }

  .site-footer .container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; order: 2; }
}

@media (max-width: 768px) {
  .will-do { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .panel { padding: var(--space-5) var(--space-4); min-height: 0; }
  .bubble { max-width: 88%; font-size: 1rem; line-height: 22px; }
  .hero-art { margin-bottom: -80px; }
  .section--after-hero { padding-top: calc(80px + var(--space-7)); }
  .values { padding: var(--space-8) 0; }
  .site-footer .container { grid-template-columns: minmax(0, 1fr); }
  .footer-about { order: 2; }
  .signup-form .button { width: 100%; }
  .prose { font-size: 1.125rem; line-height: 28px; }
  .prose blockquote { padding: var(--space-4); }
  .toc { padding: var(--space-4); }
}
