/*
  Design seed 6ed82e6a-80f6-4759-8812-5c375b59e448 (shared with public/styles.css)

  Colour is read straight out of the hex, six characters at a time:
    6ed82e leaf · 6a80f6 sky · 475988 slate · 125c37 forest · 5b59e4 indigo
    e4486e rose (the tail wraps to the head)
  Shape: version nibble 4 -> 4px grid; "8812" -> 8px and 12px radii;
  the 8-4-4-4-12 grouping -> the ribbon widths and an 8:4 main/rail split.
*/
:root {
  --seed-leaf: #6ed82e;
  --seed-sky: #6a80f6;
  --seed-slate: #475988;
  --seed-forest: #125c37;
  --seed-indigo: #5b59e4;
  --seed-rose: #e4486e;
  --u: 4px;
  --r-lg: 12px;
  --r-sm: 8px;

  --site-ground: #f6f7fc;
  --site-surface: #fff;
  --site-panel: #eef0f9;
  --site-ink: #161a2e;
  --site-muted: #475988;
  --site-rule: #e1e4f1;
  --site-edge: #c9cee3;
  --site-accent: #5b59e4;
  --site-accent-hover: #4543c4;
  --site-accent-ink: #fff;
  --site-accent-soft: #ecedfd;
  --site-live: #4fb516;
  --site-error: #b82850;
  --site-error-tint: #fdecf1;
  --site-error-rule: #f5bccb;
  --site-control-shadow: #161a2e14;
  --site-code-bg: #161a2e;
  --site-code-ink: #eceefa;
  --site-shadow: 0 1px 2px #161a2e0f, 0 30px 60px -30px #5b59e466;
  --site-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --site-mono: ui-monospace, "SF Mono", SFMono-Regular, Consolas, monospace;
  --site-gutter: clamp(16px, 5vw, 72px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --site-ground: #0d101e;
    --site-surface: #151930;
    --site-panel: #1d2240;
    --site-ink: #eceefa;
    --site-muted: #a4add6;
    --site-rule: #272d50;
    --site-edge: #3a4170;
    --site-accent: #98a3ff;
    --site-accent-hover: #b5bdff;
    --site-accent-ink: #0d101e;
    --site-accent-soft: #222850;
    --site-live: #6ed82e;
    --site-error: #ff8aa5;
    --site-error-tint: #381624;
    --site-error-rule: #6b2a40;
    --site-control-shadow: #0004;
    --site-code-bg: #080a14;
    --site-shadow: 0 1px 2px #0006, 0 30px 60px -30px #000;
  }
}
body:not(.dashboard-active) {
  margin: 0;
  color: var(--site-ink);
  background:
    radial-gradient(900px 520px at 12% -120px, color-mix(in srgb, var(--seed-sky) 24%, transparent), transparent 70%),
    radial-gradient(760px 460px at 96% -80px, color-mix(in srgb, var(--seed-leaf) 18%, transparent), transparent 70%),
    var(--site-ground);
  background-repeat: no-repeat;
}
body > :is(.header, #main, footer, #demo-dialog, #toast, .skip) { font-family: var(--site-sans); -webkit-font-smoothing: antialiased; }
body > :is(.header, #main, footer, #demo-dialog, #toast) { color-scheme: light dark; }
body > .skip { color-scheme: light; }
body > :is(.header, #main, footer, #toast),
body > :is(.header, #main, footer, #toast) *,
#demo-dialog, #demo-dialog .demo-heading, #demo-dialog .demo-heading * { box-sizing: border-box; }
body > :is(.header, #main, footer) { width: min(1180px, calc(100% - 2 * var(--site-gutter))); margin-inline: auto; color: var(--site-ink); }
body.dashboard-active > :is(.header, #main, footer, .seed-ribbon) { display: none; }
:is(body > .header, #main, body > footer, #demo-dialog .demo-heading) :is(button, input, select) { font-family: inherit; }
:is(body > .header, #main, body > footer, #demo-dialog .demo-heading) button { cursor: pointer; }
:is(body > .header, #main, #demo-dialog .demo-heading) button:disabled { opacity: .55; cursor: default; }
:is(body > .header, #main, body > footer, #demo-dialog .demo-heading) :is(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--seed-sky);
  outline-offset: 3px;
}
#main :is(#how-it-works, #get-started, #install, #codex-plugin) { scroll-margin-top: 24px; }
body > .skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  transform: translateY(calc(-100% - 16px));
  padding: 12px 16px;
  border: 1px solid var(--site-edge);
  border-radius: var(--r-sm);
  background: #fff;
  color: #161a2e;
  font-size: 14px;
}
body > .skip:focus { transform: none; outline: 2px solid var(--seed-sky); outline-offset: 2px; }

/* UUID ribbon: segment widths follow 8-4-4-4-12 */
body > .seed-ribbon { display: grid; grid-template-columns: 8fr 4fr 4fr 4fr 12fr; height: 4px; }
body > .seed-ribbon > span:nth-child(1) { background: var(--seed-leaf); }
body > .seed-ribbon > span:nth-child(2) { background: var(--seed-sky); }
body > .seed-ribbon > span:nth-child(3) { background: var(--seed-slate); }
body > .seed-ribbon > span:nth-child(4) { background: var(--seed-forest); }
body > .seed-ribbon > span:nth-child(5) { background: var(--seed-indigo); }

body > .header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
body > :is(.header, footer) .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: var(--site-ink);
  font: 700 17px/1 var(--site-sans);
  letter-spacing: -.015em;
  text-decoration: none;
  white-space: nowrap;
}
/* Two peers, one shared context. */
:is(body > .header, body > footer, #main) .mark { position: relative; display: inline-block; width: 34px; height: 22px; flex: none; }
:is(body > .header, body > footer, #main) .mark::before,
:is(body > .header, body > footer, #main) .mark::after { content: ""; position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; }
:is(body > .header, body > footer, #main) .mark::before { left: 0; background: var(--seed-indigo); }
:is(body > .header, body > footer, #main) .mark::after { right: 0; background: var(--seed-leaf); mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { :is(body > .header, body > footer, #main) .mark::after { mix-blend-mode: screen; } }
body > .header nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); }
body > .header nav > :is(a, button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0;
  border: 0;
  color: var(--site-muted);
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
body > .header nav > :is(a, button):hover:not(:disabled) { color: var(--site-ink); }
body > .header nav > .nav-install {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--site-ink);
  color: var(--site-ground);
  font-weight: 600;
}
body > .header nav > .nav-install:hover { background: var(--site-accent); color: var(--site-accent-ink); }
body > .header nav > .nav-install { box-shadow: 0 1px 2px var(--site-control-shadow); transition: background .15s, color .15s, box-shadow .15s; }
body > .header nav > .nav-install:active { box-shadow: inset 0 1px 3px var(--site-control-shadow); }

#main :is(h1, h2, h3, p, figure) { margin: 0; }
#main p { color: var(--site-muted); font-size: 15px; line-height: 1.6; }
#main .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Hero */
#main .intro { padding-block: calc(var(--u) * 14) calc(var(--u) * 12); }
#main .intro-copy { display: grid; justify-items: center; gap: calc(var(--u) * 6); max-width: 880px; margin-inline: auto; text-align: center; }
#main .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--site-rule);
  border-radius: 999px;
  background: var(--site-surface);
  color: var(--site-muted);
  font-size: 13px;
  font-weight: 600;
}
#main .live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--site-live);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--seed-leaf) 30%, transparent);
  animation: seed-pulse 2.4s ease-in-out infinite;
}
@keyframes seed-pulse { 50% { box-shadow: 0 0 0 8px transparent; } }
@media (prefers-reduced-motion: reduce) { #main .live-dot { animation: none; } }
#main .intro h1 {
  font: 750 clamp(38px, 6.2vw, 72px)/1.04 var(--site-sans);
  letter-spacing: -.04em;
  text-wrap: balance;
}
#main .intro h1 mark {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--seed-leaf) 70%, transparent) 62% 92%, transparent 92%);
  color: inherit;
}
#main .intro-detail { display: grid; justify-items: center; gap: calc(var(--u) * 7); }
#main .lede { max-width: 56ch; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; text-wrap: pretty; }
#main .hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; }
#main :is(.primary, .secondary), #demo-dialog .demo-heading .secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid var(--site-edge);
  border-radius: 999px;
  background: var(--site-surface);
  color: var(--site-ink);
  font: 600 15px/1.3 var(--site-sans);
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 2px var(--site-control-shadow);
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
#main .primary { color: var(--site-accent-ink); background: var(--site-accent); border-color: var(--site-accent); }
#main .primary:hover:not(:disabled) { background: var(--site-accent-hover); border-color: var(--site-accent-hover); }
#main .secondary:hover:not(:disabled), #demo-dialog .demo-heading .secondary:hover:not(:disabled) { border-color: var(--site-accent); background: var(--site-panel); color: var(--site-accent); }
#main :is(.primary, .secondary):hover:not(:disabled), #demo-dialog .demo-heading .secondary:hover:not(:disabled) { box-shadow: 0 2px 4px var(--site-control-shadow); }
#main :is(.primary, .secondary):active:not(:disabled), #demo-dialog .demo-heading .secondary:active:not(:disabled) { box-shadow: inset 0 1px 3px var(--site-control-shadow); }
#main :is(.primary, .secondary):disabled, #demo-dialog .demo-heading .secondary:disabled { box-shadow: none; }
#demo-dialog .demo-heading .secondary { min-height: 36px; padding: 6px 16px; font-size: 14px; }

/* Product preview: a still of the Home page */
#main .product-preview {
  min-width: 0;
  margin-top: calc(var(--u) * 14);
  overflow: hidden;
  border: 1px solid var(--site-rule);
  border-radius: 16px;
  background: var(--site-ground);
  box-shadow: var(--site-shadow);
  text-align: left;
}
#main .preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--site-rule);
  background: var(--site-surface);
}
#main .preview-team { display: inline-flex; align-items: center; gap: 10px; color: var(--site-ink); font-size: 14px; font-weight: 700; }
#main .preview-team .mark { transform: scale(.8); transform-origin: left center; margin-right: -6px; }
#main .preview-sample { display: inline-flex; align-items: center; gap: 8px; color: var(--site-muted); font-size: 13px; }
#main .preview-sample .live-dot { width: 6px; height: 6px; }
#main .preview-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); }
#main :is(.preview-index, .preview-people, .preview-tasks, .preview-decisions) { list-style: none; margin: 0; padding: 0; }
#main .preview-index { padding: 14px 10px; border-right: 1px solid var(--site-rule); background: var(--site-surface); }
#main .preview-index li { display: flex; justify-content: space-between; padding: 7px 10px; margin-bottom: 2px; border-radius: var(--r-sm); color: var(--site-muted); font-size: 14px; font-weight: 600; }
#main .preview-index li span, #main .preview-card h3 span { padding: 0 7px; border-radius: 999px; background: var(--site-panel); font-size: 12px; line-height: 20px; }
#main .preview-index .preview-active { background: var(--site-accent-soft); color: var(--site-accent); }
#main .preview-content { min-width: 0; padding: clamp(18px, 2.6vw, 28px); }
#main .preview-content h2 { font: 700 clamp(20px, 2.4vw, 26px)/1.2 var(--site-sans); letter-spacing: -.02em; }
#main .preview-sub { margin-top: 4px; font-size: 14px; }
#main .preview-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 16px; align-items: start; margin-top: 18px; }
#main .preview-rail { display: grid; gap: 16px; }
#main .preview-card { padding: 16px; border: 1px solid var(--site-rule); border-radius: var(--r-lg); background: var(--site-surface); }
#main .preview-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
#main .preview-people li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--site-rule); }
#main .preview-people li:first-child { border-top: 0; padding-top: 4px; }
#main .preview-people li > div { display: grid; gap: 1px; min-width: 0; }
#main .preview-who { color: var(--site-muted); font-size: 12.5px; }
#main .preview-people strong { font-size: 15px; font-weight: 600; line-height: 1.35; }
#main .preview-people p { font-size: 14px; line-height: 1.45; }
#main .preview-avatar { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700; }
#main .preview-avatar.tone-a { background: var(--seed-indigo); }
#main .preview-avatar.tone-b { background: var(--seed-rose); }
#main .preview-avatar.tone-c { background: var(--seed-forest); }
#main :is(.preview-tasks, .preview-decisions) li { position: relative; display: grid; gap: 1px; padding: 8px 0 8px 24px; border-top: 1px solid var(--site-rule); }
#main :is(.preview-tasks, .preview-decisions) li:first-child { border-top: 0; }
#main :is(.preview-tasks, .preview-decisions) strong { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
#main :is(.preview-tasks, .preview-decisions) span { color: var(--site-muted); font-size: 12.5px; }
#main .preview-tasks li::before { content: ""; position: absolute; left: 0; top: 10px; width: 14px; height: 14px; border: 2px solid var(--site-edge); border-radius: 50%; }
#main .preview-decisions li::before { content: ""; position: absolute; left: 3px; top: 13px; width: 9px; height: 9px; border-radius: 2px; background: var(--seed-rose); transform: rotate(45deg); }

/* Sections */
#main :is(.story, .start) { padding-block: calc(var(--u) * 24) 0; }
#main .section-title { display: grid; gap: 12px; }
#main :is(.story h2, .start-heading h2) { font: 750 clamp(30px, 4vw, 44px)/1.08 var(--site-sans); letter-spacing: -.035em; }
#main .story .section-title { justify-items: center; max-width: 640px; margin-inline: auto; text-align: center; }
#main .story .section-title p { font-size: 17px; }
#main .story-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: calc(var(--u) * 10) 0 0; padding: 0; list-style: none; }
#main .story-flow li { padding: 24px; border: 1px solid var(--site-rule); border-radius: var(--r-lg); background: var(--site-surface); }
#main .step-number { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 20px; border-radius: 50%; background: var(--step-color); color: var(--step-ink, #fff); font-size: 14px; font-weight: 700; }
#main .story-flow .step-write { --step-color: var(--seed-indigo); }
#main .story-flow .step-sync { --step-color: var(--seed-leaf); --step-ink: #10240a; }
#main .story-flow .step-resume { --step-color: var(--seed-rose); }
#main .story-flow h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
#main .story-flow p { font-size: 15px; }

/* Get started: 4 | 8 */
#main .start-heading > p { margin-top: 12px; font-size: 17px; }
#main .onboarding {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px;
  margin-top: calc(var(--u) * 8);
}
#main .onboarding-stack { display: grid; align-content: start; gap: 16px; min-width: 0; }
#main .plugin-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
#main .panel { min-width: 0; padding: clamp(22px, 2.6vw, 32px); border: 1px solid var(--site-rule); border-radius: 16px; background: var(--site-surface); box-shadow: 0 1px 2px #161a2e0f; }
#main .panel h2 { margin: 0 0 6px; font: 700 clamp(20px, 2.3vw, 24px)/1.22 var(--site-sans); letter-spacing: -.02em; }
#main .panel p { overflow-wrap: anywhere; font-size: 15px; }
#main .panel .fine, #main .prerequisite { font-size: 13px; }
#main .panel .fine { margin-top: 12px; }
#main .panel a, #main #account .text-button, #main #copy-setup { color: var(--site-accent); text-decoration: underline; text-underline-offset: 3px; }
#main #account .text-button, #main #copy-setup {
  min-height: 42px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
}
#main #account .text-button:disabled { text-decoration: none; }
#main #account .field { display: grid; gap: 7px; margin: 21px 0 12px; color: var(--site-ink); font-size: 13px; font-weight: 600; }
#main #account .field input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--site-edge);
  border-radius: var(--r-sm);
  background: var(--site-surface);
  color: var(--site-ink);
  font-size: 16px;
  font-weight: 400;
}
#main #account .field input:focus { outline: 2px solid var(--seed-sky); outline-offset: -1px; border-color: transparent; }
#main #account .field input::placeholder { color: var(--site-muted); opacity: .8; }
#main #account .field .otp { font-variant-numeric: tabular-nums; letter-spacing: .18em; }
#main #account .primary { width: 100%; border-radius: var(--r-sm); }
#main #account .account-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; margin-top: 7px; }
#main #account .error { margin-block: 13px; padding: 11px 13px; border: 1px solid var(--site-error-rule); border-radius: var(--r-sm); background: var(--site-error-tint); color: var(--site-error); font-size: 13px; }
#main #account > section { margin-bottom: 20px; padding: 14px 16px 10px; border-radius: var(--r-sm); background: var(--site-accent-soft); }
#main #account > section .eyebrow { margin-bottom: 7px; padding: 0; border: 0; background: none; color: var(--site-accent); font-size: 13px; font-weight: 650; }
#main #account > section .fine { margin-top: 6px; }
#main #account .success { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 11px; padding: 4px 10px; border-radius: 999px; background: var(--site-accent-soft); color: var(--site-accent); font-size: 12px; font-weight: 600; }
#main #account .account-email { margin-bottom: 7px; color: var(--site-ink); font-weight: 600; }
#main #account .team-row { display: flex; align-items: center; gap: 9px; margin-top: 11px; padding: 10px 0 0; border-top: 1px solid var(--site-rule); font-size: 13px; }
#main #account .avatar { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--seed-indigo); color: #fff; font-weight: 650; }
#main #account .team-copy { display: grid; min-width: 0; gap: 2px; overflow-wrap: anywhere; }
#main #account .team-copy small { color: var(--site-muted); font-size: 12px; }
#main #connect-computer { margin-top: 15px; }

/* Terminal */
#main .terminal { margin-block: 18px 12px; overflow: hidden; border-radius: var(--r-lg); background: var(--site-code-bg); color: var(--site-code-ink); }
#main .terminal-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 6px; border-bottom: 1px solid #ffffff1a; }
#main .terminal-heading :is(select, button) {
  min-height: 40px;
  min-width: 0;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: #ffffffcc;
  font: 12.5px/1 var(--site-sans);
  color-scheme: dark;
}
#main .terminal-heading button { padding-inline: 11px; color: var(--seed-leaf); font-weight: 600; }
#main .terminal-label { padding-inline: 8px; color: #ffffffcc; font-size: 12.5px; }
#main #copy-codex-plugin { min-height: 44px; }
#main .terminal-heading button:hover { text-decoration: underline; text-underline-offset: 3px; }
#main .terminal-heading :is(select, button):focus-visible { outline-color: var(--seed-leaf); outline-offset: -2px; }
#main code { font-family: var(--site-mono); }
#main pre { min-width: 0; overflow: auto; margin: 0; padding: 18px; font: 13px/1.7 var(--site-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
#main .prerequisite { margin-bottom: 7px; }
#main .install .fine + details { margin-top: 14px; }
#main .next-command { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin-top: 8px; color: var(--site-muted); font-size: 13px; }
#main .next-command code { padding: 2px 6px; border-radius: 5px; background: var(--site-panel); color: var(--site-ink); font-size: 12px; overflow-wrap: anywhere; }
#main #copy-setup { margin-left: auto; }
#main details { border-block-start: 1px solid var(--site-rule); }
#main .install details + .fine { border-block-start: 1px solid var(--site-rule); margin-top: 0; padding-top: 12px; }
#main details > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  color: var(--site-ink);
  font-size: 14px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}
#main details > summary::-webkit-details-marker { display: none; }
#main details > summary::after { content: "+"; flex: none; color: var(--site-muted); font-size: 18px; line-height: 1; }
#main details[open] > summary::after { content: "−"; }
#main details > summary:hover { color: var(--site-accent); }
#main .install details > p { margin-bottom: 11px; font-size: 14px; }
#main .install details > pre { margin-bottom: 10px; border-radius: var(--r-sm); background: var(--site-panel); color: var(--site-ink); }
#main .storage-details { margin-top: 24px; border-color: var(--site-rule); border-bottom: 1px solid var(--site-rule); }
#main .story-footnotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; padding: 7px 0 21px; }
#main .story-footnotes h3 { margin-bottom: 5px; font-size: 14px; }
#main .story-footnotes p { max-width: 58ch; font-size: 14px; }
#main .story-footnotes p + p { margin-top: 7px; }

/* Demo band */
#main .sample-invite {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  align-items: center;
  gap: 24px;
  margin-top: calc(var(--u) * 24);
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(520px 300px at 100% 0%, color-mix(in srgb, var(--seed-leaf) 45%, transparent), transparent 70%),
    radial-gradient(520px 320px at 0% 100%, color-mix(in srgb, var(--seed-sky) 60%, transparent), transparent 70%),
    var(--seed-indigo);
}
#main .sample-invite h2 { color: #fff; font: 750 clamp(26px, 3.6vw, 40px)/1.08 var(--site-sans); letter-spacing: -.03em; }
#main .sample-invite p { max-width: 44ch; margin-top: 10px; color: #fff; opacity: .86; font-size: 16px; }
#main .sample-invite .secondary { justify-self: end; border-color: #fff; background: #fff; color: #161a2e; white-space: nowrap; }
#main .sample-invite .secondary:hover:not(:disabled) { border-color: var(--seed-leaf); background: var(--seed-leaf); color: #10240a; }

/* Footer + colophon */
body > footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: calc(var(--u) * 20); padding-block: 24px; border-top: 1px solid var(--site-rule); }
body > footer .brand { font-size: 16px; }
body > footer .footer-note { color: var(--site-muted); font-size: 13px; }
body > footer .seed-colophon { flex: 1 0 100%; margin: 0; color: var(--site-muted); font-size: 12px; }
body > footer .seed-uuid { margin-left: 6px; color: var(--site-ink); font: 12px/1.6 var(--site-mono); word-break: break-all; }
body > footer .seed-uuid > span { padding-bottom: 1px; }
body > footer .seed-uuid > span:nth-child(1) { box-shadow: inset 0 -2px 0 var(--seed-leaf); }
body > footer .seed-uuid > span:nth-child(2) { box-shadow: inset 0 -2px 0 var(--seed-sky); }
body > footer .seed-uuid > span:nth-child(3) { box-shadow: inset 0 -2px 0 var(--seed-slate); }
body > footer .seed-uuid > span:nth-child(4) { box-shadow: inset 0 -2px 0 var(--seed-forest); }
body > footer .seed-uuid > span:nth-child(5) { box-shadow: inset 0 -2px 0 var(--seed-indigo); }

/* Demo dialog */
#demo-dialog {
  width: min(1440px, calc(100% - 24px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--site-rule);
  border-radius: 16px;
  background: var(--site-ground);
  color: var(--site-ink);
  box-shadow: 0 24px 60px #0d101e59;
}
#demo-dialog[open] { display: flex; flex-direction: column; height: min(920px, 92vh); height: min(920px, 92dvh); }
#demo-dialog::backdrop { background: #0d101e80; backdrop-filter: blur(2px); }
#demo-dialog .demo-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--site-rule); background: var(--site-surface); }
#demo-dialog .demo-heading > div:first-child { min-width: 0; }
#demo-dialog .demo-heading h2 { margin: 0; font: 700 17px/1.25 var(--site-sans); letter-spacing: -.015em; }
#demo-dialog .demo-heading-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; min-width: 0; margin-left: auto; }
#demo-dialog .demo-heading > .secondary { margin-left: auto; }
#demo-dialog .demo-heading-actions + .secondary { margin-left: 0; }
#demo-dialog .demo-heading .secondary { white-space: nowrap; }
#demo-dialog #demo-content { min-height: 0; flex: 1; overflow: auto; background: var(--site-ground); }
#demo-dialog .demo-disclosure {
  margin: 0;
  padding: 8px 16px;
  border-bottom: 1px solid var(--site-rule);
  background: var(--site-accent-soft);
  color: var(--site-muted);
  font: 500 13px/1.5 var(--site-sans);
}
#toast { display: none; position: fixed; bottom: 20px; left: 50%; z-index: 40; width: max-content; max-width: calc(100% - 40px); transform: translateX(-50%); padding: 10px 16px; border-radius: 999px; background: var(--site-ink); box-shadow: 0 8px 24px #0d101e40; color: var(--site-ground); font-size: 13px; font-weight: 600; }
#toast.show { display: block; }

@media (max-width: 860px) {
  #main .intro { padding-block: calc(var(--u) * 10) calc(var(--u) * 8); }
  #main .onboarding { grid-template-columns: minmax(0, 1fr); }
  #main .product-preview { margin-top: calc(var(--u) * 10); }
  #main .preview-grid { grid-template-columns: minmax(0, 1fr); }
  #main .story-flow { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  #main .preview-body { grid-template-columns: minmax(0, 1fr); }
  #main .preview-index { display: flex; gap: 4px; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid var(--site-rule); }
  #main .preview-index li { flex: none; gap: 6px; margin: 0; padding: 6px 10px; font-size: 13px; }
  #main .sample-invite { grid-template-columns: minmax(0, 1fr); }
  #main .sample-invite .secondary { justify-self: start; }
}
@media (max-width: 570px) {
  body > .header { min-height: 64px; gap: 12px; }
  body > .header nav { gap: 8px; }
  body > .header nav > :is(a, button) { min-height: 44px; font-size: 14px; }
  body > .header nav > .nav-install { padding-inline: 12px; }
  body > .header nav > #demo-open { display: none; }
  #main :is(.story, .start) { padding-block: calc(var(--u) * 16) 0; }
  #main .story-footnotes { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  #demo-dialog[open] { width: calc(100% - 12px); height: calc(100vh - 12px); height: calc(100dvh - 12px); }
  #demo-dialog .demo-heading { gap: 7px; padding: 8px; }
  #demo-dialog .demo-heading h2 { font-size: 16px; }
  #demo-dialog .demo-heading .secondary { min-height: 44px; padding-inline: 10px; font-size: 13px; }
  #demo-dialog .demo-disclosure { padding: 7px 9px; font-size: 12px; }
}

@media (max-width: 400px) {
  body > .header { flex-wrap: wrap; gap: 10px; padding-block: 14px; }
  body > .header nav { flex: 1 0 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  body > .header nav > .nav-install, #main :is(.primary, .secondary), #demo-dialog .demo-heading .secondary { transition: none; }
}

/* Existing privacy controls. */
body > footer .analytics-privacy { flex: 1 0 100%; max-width: 620px; color: var(--site-muted); font-size: 12px; }
body > footer .analytics-privacy summary { color: var(--site-ink); cursor: pointer; font-weight: 600; }
body > footer .analytics-privacy p { margin: 10px 0; line-height: 1.6; }
body > footer .analytics-privacy label { display: flex; align-items: flex-start; gap: 9px; color: var(--site-ink); font-size: 12px; }
body > footer .analytics-privacy input { width: auto; accent-color: var(--seed-indigo); margin-top: 3px; }
