/* Self-hosted brand faces (OFL): one variable file for Bricolage Grotesque, one for Geist Mono. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/bricolage-grotesque-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: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/geist-mono-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; }

/* Macswarm home, v2. Landing anatomy per the g-agent-kit LP rules (central 1120px wrap, contained
   groups, numbered step cards, alternating benefit rows, final CTA band), tokens and no-slop rules
   kept from the first build. Dark is the default; data-theme="light" is the light option. */

:root, .page {
  --bg: #0f1113;
  --surface: #171a1e;
  --surface-2: #22262c;
  --surface-3: #2c3139;
  --ink: #eceef1;
  --muted: #a3a9b3;
  --accent: #f2b134;
  --accent-hover: #ffc24a;
  --accent-ink: #17120a;
  --field: #f2b134;
  --field-card: #e3a52c;
  --field-ink: #17120a;
  --field-muted: #4a390c;
  --field-line: rgba(23, 18, 10, 0.18);

  --ui-ground: #f4f5f7;
  --ui-surface: #ffffff;
  --ui-border: #dfe2e7;
  --ui-rule: #eceef2;
  --ui-control: #c9ced6;
  --ui-text: #15171a;
  --ui-muted: #5c6470;
  --ui-accent: #b07a12;
  --ui-accent-soft: #fbead0;
  --ui-ok: #1f7a4c;
  --ui-ok-bg: #dff5e6;
  --ui-open-bg: #e3ebfb;
  --ui-dark: #15171a;
  --ui-dark-text: #e6e8ec;
  --ui-dark-muted: #9aa1ab;
  --ui-line: #8a9099;

  --font-text: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;

  --text-small: 0.875rem;   /* 14 */
  --text-body: 1.125rem;    /* 18 */
  --text-lead: 1.375rem;    /* 22 */
  --text-h3: 2rem;          /* 32 */
  --text-h2: clamp(2rem, 1.4rem + 2vw, 3rem);          /* 32 → 48 */
  --text-h1: clamp(2.625rem, 1.5rem + 3.5vw, 4.5rem);  /* 42 → 72, leaves the top-right of the hero to the swarm */
  --text-figure: clamp(3rem, 2rem + 3vw, 4.5rem);      /* 48 → 72 */

  --wrap: 1120px;
  --gutter: 24px;
  --section: clamp(4.5rem, 3rem + 3vw, 6rem);          /* 72 → 96 */
  --radius-card: 24px;
  --radius-button: 12px;
  --radius-control: 10px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}
.page[data-theme="light"] {
  --bg: #eef0f3;
  --surface: #ffffff;
  --surface-2: #e4e7ec;
  --surface-3: #d5d9e0;
  --ink: #0b0c0e;
  --muted: #5d6470;
  --ui-line: #7c838c;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: dark; background: #0f1113; overflow-x: clip; }
body { margin: 0; font-family: var(--font-text); font-size: var(--text-body); line-height: 1.55; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-optical-sizing: auto; }
.page { background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--text-body); min-height: 100%; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 5rem; }
.page ::selection { background: var(--accent); color: var(--accent-ink); }
.page :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: 0.6rem 1rem; background: var(--accent); color: var(--accent-ink); text-decoration: none; border-radius: var(--radius-button); }
.skip:focus { top: 1rem; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 600; text-wrap: balance; hyphens: none; }
.h2 { font-size: var(--text-h2); line-height: 1.06; letter-spacing: -0.03em; }
.h3 { font-size: var(--text-h3); line-height: 1.12; letter-spacing: -0.025em; }
.lead { font-size: var(--text-lead); line-height: 1.4; }
.small { font-size: var(--text-small); line-height: 1.45; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
p { max-width: 64ch; text-wrap: pretty; }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease; }
.link--plain { text-decoration-color: currentColor; }
@media (hover: hover) { .link:hover { text-decoration-color: currentColor; } .link--plain:hover { text-decoration-color: transparent; } }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; max-width: 760px; }
.section-head p { color: var(--muted); }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.card { background: var(--surface); border-radius: var(--radius-card); padding: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-button); text-decoration: none; white-space: nowrap; font-weight: 600; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
@media (hover: hover) { .button:hover { background: var(--accent-hover); } }
.button--ink { background: var(--field-ink); color: #ffffff; }
@media (hover: hover) { .button--ink:hover { background: #000; } }
.button--ghost { background: var(--surface-2); color: var(--ink); }
@media (hover: hover) { .button--ghost:hover { background: var(--surface-3); } }

/* ---------- marks: monochrome lockups ---------- */
.mark { width: 1em; height: 1em; flex: none; fill: currentColor; }
.lockup { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; white-space: nowrap; }
.lockup .mark { font-size: 26px; }

/* ---------- nav ---------- */
.nav { background: var(--field); color: var(--field-ink); }
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.wordmark { font-weight: 600; font-size: 1.375rem; letter-spacing: -0.03em; text-decoration: none; line-height: 1; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { text-decoration: none; font-weight: 500; }
@media (hover: hover) { .nav__links a:hover { text-decoration: underline; text-underline-offset: 0.25em; } }
.nav__actions { display: flex; align-items: center; gap: 20px; }
.nav__actions .link { font-weight: 500; text-decoration: none; }
.nav__actions .button { min-height: 44px; padding: 0 18px; }

/* ---------- hero: the amber field ---------- */
.hero { background: var(--field); color: var(--field-ink); padding: 32px 0 56px; position: relative; overflow: hidden; }
.hero__title { font-size: var(--text-h1); line-height: 0.98; letter-spacing: -0.04em; max-width: 24ch; }
.hero__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; margin-top: 40px; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }
.hero__sub { color: var(--field-muted); }
.hero__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero__actions .link { font-weight: 500; }
.hero__micro { color: var(--field-muted); font-size: var(--text-small); }
.hero__with { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--field-ink); font-size: var(--text-small); }
.hero__with .lockup { font-size: 1rem; }
.hero__with .lockup .mark { font-size: 22px; }
.hero .wrap { position: relative; }
.hero__title, .hero__row, .stats { position: relative; z-index: 1; }
.hero__visual { position: relative; }
.hero__pods { position: absolute; right: 0; top: 0; width: 56%; max-width: 820px; z-index: 0; pointer-events: none; opacity: 0.55; }
.hero__pods svg { width: 100%; height: auto; }
.session { position: relative; z-index: 1; width: 100%; max-width: 600px; margin-left: auto; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--field-card); border-radius: var(--radius-card); margin-top: 48px; }
.stat { padding: 20px 24px; display: flex; flex-direction: column; gap: 4px; }
.stat + .stat { border-left: 1px solid var(--field-line); }
.stat__v { font-size: var(--text-h3); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
.stat__l { color: var(--field-muted); font-size: var(--text-small); }

/* ---------- interface fragments (data-ui): the product's own conventions apply inside ---------- */
[data-ui] { font-family: var(--font-text); font-size: 14px; line-height: 20px; color: var(--ui-text); font-variant-numeric: tabular-nums; }
[data-ui] .ui { background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: 16px; overflow: hidden; }
[data-ui] .ui__head { padding: 14px 16px; background: var(--ui-ground); border-bottom: 1px solid var(--ui-border); display: flex; flex-direction: column; gap: 2px; }
[data-ui] .ui__title { display: flex; align-items: center; gap: 10px; }
[data-ui] .ui__name { font-weight: 600; font-size: 15px; }
[data-ui] .ui__meta { color: var(--ui-muted); font-size: 13px; line-height: 18px; }
[data-ui] .ui__pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1; }
[data-ui] .ui__pill--ok { background: var(--ui-ok-bg); color: #0d4a2b; gap: 6px; }
[data-ui] .ui__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ui-ok); }
@media (prefers-reduced-motion: no-preference) { [data-ui] .ui__dot { animation: blink 1.6s ease-in-out infinite; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
[data-ui] .ui__pill--open { background: var(--ui-open-bg); color: #1d3f85; }
[data-ui] .ui__block { padding: 12px 16px; border-bottom: 1px solid var(--ui-rule); }
[data-ui] .ui__block:last-of-type { border-bottom: 0; }
[data-ui] .ui__label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--ui-muted); margin-bottom: 6px; }
[data-ui] .ui__label span:first-child { font-weight: 500; color: var(--ui-text); }
[data-ui] .ui__rows { display: flex; flex-direction: column; }
[data-ui] .ui__row { display: grid; grid-template-columns: 118px 1fr auto; gap: 12px; align-items: center; height: 34px; border-top: 1px solid var(--ui-rule); }
[data-ui] .ui__row:first-child { border-top: 0; }
[data-ui] .ui__agent { font-weight: 500; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
[data-ui] .ui__agent .mark { font-size: 15px; }
[data-ui] .ui__wt { color: var(--ui-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-ui] .ui__state { font-size: 13px; white-space: nowrap; }
[data-ui] .ui__state--wait { color: var(--ui-muted); }
[data-ui] .ui__slot { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 6px 0; }
[data-ui] .ui__slotname { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-ui] .ui__time { font-size: 13px; color: var(--ui-muted); }
[data-ui] .ui__bar { grid-column: 1 / -1; height: 6px; background: var(--ui-rule); border-radius: 3px; overflow: hidden; }
[data-ui] .ui__bar i { display: block; height: 100%; background: var(--ui-accent); border-radius: 3px; }
[data-ui] .ui__sims { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
[data-ui] .ui__sims li { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding: 6px 10px; background: var(--ui-ground); border-radius: 8px; font-size: 13px; white-space: nowrap; }
[data-ui] .ui__sims li small { font-size: 12px; color: var(--ui-muted); overflow: hidden; text-overflow: ellipsis; }
[data-ui] .ui__sims li.is-leased { background: var(--ui-accent-soft); }
[data-ui] .ui__sims li.is-leased small { color: #6e4a06; }
[data-ui] .ui__meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 12px 16px; background: var(--ui-ground); border-top: 1px solid var(--ui-border); }
[data-ui] .ui__meter div { display: flex; flex-direction: column; gap: 2px; }
[data-ui] .ui__meter b { font-weight: 600; font-size: 15px; }
[data-ui] .ui__foot { padding: 8px 16px 12px; background: var(--ui-ground); font-size: 12px; line-height: 16px; color: var(--ui-muted); }
[data-ui] .ui__button { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 8px; background: #1d1f22; color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; }
[data-ui] .ui__input { height: 36px; padding: 0 10px; border: 1px solid var(--ui-control); border-radius: 8px; background: #fff; font-size: 13px; min-width: 0; width: 100%; }
[data-ui] .ui__input.mono { font-family: var(--font-mono); font-size: 12.5px; } /* taste-skill-ignore: a key and a URL in the product's own inputs */
[data-ui] .ui__fieldlabel { display: block; font-size: 13px; color: var(--ui-muted); margin-bottom: 6px; }
[data-ui] .ui__fieldrow { display: flex; gap: 8px; }
[data-ui] .ui__note { font-size: 12px; line-height: 16px; color: var(--ui-muted); margin-top: 8px; max-width: none; }
[data-ui] .ui__tabs { display: flex; flex-wrap: wrap; gap: 0; background: var(--ui-ground); border-bottom: 1px solid var(--ui-border); }
[data-ui] .ui__slackhead .ui__name { display: inline-flex; align-items: center; gap: 8px; }
[data-ui] .ui__slackhead .mark { font-size: 15px; }
[data-ui] .ui__tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px 10px; font-size: 13px; color: var(--ui-muted); border-bottom: 2px solid transparent; white-space: nowrap; }
[data-ui] .ui__tab .mark { font-size: 15px; }
[data-ui] .ui__tab.is-active { color: var(--ui-text); border-bottom-color: var(--ui-text); font-weight: 500; }
[data-ui] .ui__panel { padding: 14px 16px 16px; }
[data-ui] .ui--row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; }
[data-ui] .ui__composerhead, [data-ui] .ui__composerfoot, [data-ui] .ui__slackhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; background: var(--ui-ground); }
[data-ui] .ui__composerhead .ui__meta { display: inline-flex; align-items: center; gap: 7px; }
[data-ui] .ui__composerhead .mark { font-size: 15px; }
[data-ui] .ui__marks { display: inline-flex; align-items: center; gap: 10px; }
[data-ui] .ui__marks .mark { font-size: 18px; }
[data-ui] .ui__composerfoot { border-top: 1px solid var(--ui-rule); }
[data-ui] .ui__chip { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--ui-accent-soft); color: #6e4a06; font-weight: 500; }
[data-ui] .ui__prompt { padding: 14px 16px; font-size: 15px; line-height: 22px; max-width: none; }
[data-ui] .ui__slackmsg { padding: 12px 16px 14px; font-size: 15px; line-height: 22px; max-width: none; }
[data-ui] .ui__mention { background: var(--ui-open-bg); color: #1d3f85; padding: 1px 4px; border-radius: 4px; font-weight: 500; }
[data-ui] .ui__term { margin: 0; font-family: var(--font-mono); font-size: 12.5px; line-height: 20px; background: var(--ui-dark); color: var(--ui-dark-text); padding: 14px 16px; border-radius: 12px; overflow-x: auto; } /* taste-skill-ignore: literal terminal output */
[data-ui] .ui__term .t-k { color: var(--accent); }
[data-ui] .ui__term .t-v { color: var(--ui-dark-muted); }
[data-ui] .ui--pr { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
[data-ui] .ui__prhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
[data-ui] .ui__prtitle { font-size: 15px; font-weight: 600; line-height: 21px; }
[data-ui] .ui__by { display: inline-flex; align-items: center; gap: 6px; }
[data-ui] .ui__by .mark { font-size: 14px; }
[data-ui] .ui__checks { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
[data-ui] .ui__checks li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
[data-ui] .ui__check { width: 14px; height: 14px; border-radius: 50%; display: inline-block; background: var(--ui-ok); }
[data-ui] .ui__sessionstrip { display: grid; grid-template-columns: repeat(3, auto); gap: 12px 20px; padding: 12px 14px; margin-top: 4px; background: var(--ui-ground); border-radius: 10px; }
[data-ui] .ui__sessionstrip div { display: flex; flex-direction: column; gap: 2px; }
[data-ui] .ui__sessionstrip b { font-weight: 600; font-size: 14px; line-height: 20px; }
[data-ui] .ui--stepper { padding: 14px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
[data-ui] .ui__stepperrow { display: flex; gap: 8px; align-items: center; }
[data-ui] .ui__step { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--ui-control); font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
[data-ui] .ui__input--num { width: 72px; text-align: center; font-size: 16px; -moz-appearance: textfield; appearance: textfield; }
[data-ui] .ui__input--num::-webkit-inner-spin-button, [data-ui] .ui__input--num::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ---------- works with ---------- */
.works { padding-block: 64px 0; }
.works__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.works__text { display: flex; flex-direction: column; gap: 24px; }
.works__text .h3 { max-width: 16ch; }
.works__row { display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap; font-size: var(--text-lead); }
.works__art svg { width: 100%; height: auto; }

/* ---------- how it works: three numbered step cards ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; align-items: start; }
.step { display: flex; flex-direction: column; gap: 16px; }
.step__head { display: flex; align-items: center; gap: 12px; }
.step__num { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; flex: none; }
.step__title { font-size: var(--text-lead); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.step__text { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.step__frag { margin-top: 4px; }
.step__frag + .step__frag { margin-top: 0; }

/* ---------- benefits: alternating rows ---------- */
.benefits { background: var(--surface); }
.page[data-theme="light"] .benefits { background: #e4e7ec; }
.benefits .card { background: var(--bg); }
.page[data-theme="light"] .benefits .card { background: #ffffff; }
.rows { display: flex; flex-direction: column; gap: 48px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.row--flip .row__text { order: 2; }
.row--wide { grid-template-columns: minmax(0, 1fr); gap: 32px; }
.row--wide .row__text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.row__lead { display: flex; flex-direction: column; gap: 20px; }
.row__text { display: flex; flex-direction: column; gap: 20px; }
.row__text p { color: var(--muted); }
ul.facts { background: var(--surface-2); border-radius: 16px; padding: 6px 32px; } /* ul[class] resets padding, so the selector has to carry the tag */
.page[data-theme="light"] .facts { background: #eef0f3; }
.facts li { padding: 14px 0; display: grid; grid-template-columns: 8px minmax(0, 1fr); column-gap: 16px; align-items: start; font-size: 1rem; line-height: 24px; }
.facts li + li { border-top: 1px solid var(--surface-3); }
.page[data-theme="light"] .facts li + li { border-top-color: #d5d9e0; }
.facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 8px; }
.row__visual { display: flex; flex-direction: column; gap: 16px; }
.row__visual .card { padding: 20px; }
.illus svg { width: 100%; height: auto; }
.visual-sims { width: 100%; }

/* the diagram: absolute cards and arrows on a 720x400 stage, scaled to the card's width by main.js */
.diagram-wrap { width: 100%; max-width: 864px; margin-inline: auto; overflow: hidden; height: 400px; }
.diagram { position: relative; width: 752px; height: 400px; transform-origin: 0 0; font-size: 13px; line-height: 18px; }
.diagram > * { position: absolute; }
.d-flow { left: 0; top: 0; width: 752px; height: 400px; overflow: visible; pointer-events: none; }
.d-flow circle { fill: var(--ui-accent); }
.d-band { background: var(--ui-ground); border: 1px solid var(--ui-border); border-radius: 12px; }
.d-bandlabel, .d-grouplabel { font-size: 13px; line-height: 16px; color: var(--ui-muted); white-space: nowrap; }
.d-bandlabel { font-weight: 600; color: var(--ui-text); }
.d-caption { font-size: 12px; line-height: 16px; color: var(--ui-muted); }
.d-line { overflow: visible; fill: none; stroke: var(--ui-line); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.d-dashed { stroke-dasharray: 6 6; }
.d-arrowlabel { font-size: 13px; line-height: 16px; text-align: center; color: var(--ui-muted); }
.d-card { box-sizing: border-box; padding: 8px 10px; display: flex; align-items: center; gap: 8px; background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: 8px; color: var(--ui-text); transition: opacity 400ms ease, border-color 400ms ease, background-color 400ms ease; }
.d-card .mark { font-size: 16px; flex: none; }
.d-card b { font-weight: 600; }
.d-card span { display: block; white-space: nowrap; }
.d-you { background: var(--ui-text); color: #fff; border-color: var(--ui-text); }
.d-sim { padding-left: 14px; gap: 10px; }
.d-sim--free { color: var(--ui-muted); }
.d-progress { display: block; height: 4px; margin-top: 5px; width: 92px; border-radius: 2px; background: var(--ui-rule); overflow: hidden; }
.d-progress b { display: block; height: 100%; width: var(--p); background: var(--ui-accent); border-radius: 2px; }
.d-dot { fill: var(--ui-accent); }
.d-card { transition: opacity 400ms ease, border-color 400ms ease, background-color 400ms ease, transform 500ms var(--ease-out); }
.diagram.is-step-1 .d-agent, .diagram.is-step-2 .d-slot, .diagram.is-step-3 .d-sim:not(.d-sim--free) { border-color: var(--ui-accent); background: var(--ui-accent-soft); transform: scale(1.04); }
.diagram.is-step-1 .d-slot, .diagram.is-step-1 .d-sim, .diagram.is-step-2 .d-sim, .diagram.is-step-2 .d-you, .diagram.is-step-3 .d-you, .diagram.is-step-3 .d-agent { opacity: 0.55; }
@media (prefers-reduced-motion: no-preference) {
  .d-progress b { animation: build var(--t, 10s) linear infinite; }
  .d-arrowlabel { animation: blink 1.8s ease-in-out infinite; }
  .d-dashed path { stroke-dasharray: 6 6; animation: flow 1.2s linear infinite; }
}
@keyframes build { from { width: 4%; } to { width: 100%; } }

/* the chart: bars standing on the card's floor */
.chart { display: flex; flex-direction: column; gap: 16px; }
.chart__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.chart__figure { font-size: var(--text-figure); line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.chart__claim { color: var(--muted); }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar { display: grid; grid-template-columns: 200px minmax(0, 1fr) 56px; align-items: center; gap: 12px; min-height: 28px; }
.bar__name { font-size: 13px; line-height: 16px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.bar__name .mark { font-size: 14px; flex: none; }
.bar__track { display: block; height: 22px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.page[data-theme="light"] .bar__track { background: #eef0f3; }
.bar__fill { display: block; height: 100%; width: var(--w); min-width: 6px; border-radius: 6px; background: var(--surface-3); transform-origin: left; }
.page[data-theme="light"] .bar__fill { background: #c9ced6; }
.bar__val { font-weight: 500; font-size: var(--text-small); line-height: 1; text-align: right; }
.bars[data-ui] { font-family: var(--font-text); color: var(--ink); }
.bar--accent .bar__fill { background: var(--accent); }
.bar--accent .bar__name { color: var(--ink); font-weight: 500; }
.bar--accent .bar__val { color: var(--accent); font-weight: 600; }
.chart__note { color: var(--muted); font-size: var(--text-small); }

/* ---------- security: one contained list ---------- */
.security__card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 40px; }
.security__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.security__list li { padding: 12px 0; border-top: 1px solid var(--surface-2); font-size: 1rem; line-height: 1.5; display: flex; gap: 12px; }
.security__list li:nth-child(-n+2) { border-top: 0; }
.security__list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 0.55em; }
.security__text { display: flex; flex-direction: column; gap: 16px; }
.security__text p { color: var(--muted); }
.security__art { margin-top: 8px; max-width: 360px; }
.security__art svg { width: 100%; height: auto; }

/* ---------- pricing ---------- */
.calc { display: flex; flex-direction: column; gap: 28px; margin-bottom: 24px; }
.calc__out { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px 32px; align-items: start; }
.calc__item { display: flex; flex-direction: column; gap: 6px; }
.calc__item--lead { padding-right: 16px; }
.calc__l { color: var(--muted); font-size: var(--text-small); }
.calc__v { font-size: var(--text-lead); font-weight: 600; line-height: 1.2; }
.calc__v--big { font-size: var(--text-figure); line-height: 1; letter-spacing: -0.04em; }
.calc__sub { color: var(--muted); font-size: var(--text-small); }
.calc__bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin: 4px 0 2px; max-width: 320px; }
.calc__bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width 400ms var(--ease-out); }
.calc__bar.is-over i { background: #e5566f; }
.calc__inputs[data-ui] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; font-size: 1rem; line-height: 1.5; color: var(--ink); }
.calc__field { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 8px 8px 8px 20px; background: var(--surface-2); border-radius: 16px; }
.calc__label { color: var(--muted); font-size: 1rem; }
.calc__stepper { display: flex; align-items: center; gap: 2px; flex: none; }
.calc__btn { width: 40px; height: 40px; border-radius: var(--radius-control); background: var(--surface-3); color: var(--ink); font-size: 20px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; transition: background-color var(--t-hover) ease; }
@media (hover: hover) { .calc__btn:hover { background: var(--accent); color: var(--accent-ink); } }
.calc__num { width: 56px; height: 40px; text-align: center; border: 0; background: transparent; color: var(--ink); font-size: 1.125rem; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.calc__num::-webkit-inner-spin-button, .calc__num::-webkit-outer-spin-button { -webkit-appearance: none; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(236px, 100%), 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 20px; transition: outline-color var(--t-hover) ease; outline: 2px solid transparent; outline-offset: 0; }
.plan.is-fit { outline-color: var(--accent); }
.plan__name { font-size: var(--text-lead); font-weight: 600; letter-spacing: -0.02em; }
.plan__price { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.plan__amount { font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5rem); line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.plan__per { color: var(--muted); font-size: var(--text-small); }
.plan__lines { display: flex; flex-direction: column; }
.plan__lines li { padding: 10px 0; border-top: 1px solid var(--surface-2); font-size: 1rem; line-height: 1.5; }
.plan__lines li:first-child { border-top: 0; padding-top: 0; }
.plan .button { margin-top: auto; }
.plan--featured { background: var(--accent); color: var(--accent-ink); }
.plan--featured .plan__per { color: var(--field-muted); }
.plan--featured .plan__lines li { border-top-color: var(--field-line); }
.plan--featured .button { background: var(--field-ink); color: #fff; }
.plan--featured.is-fit { outline-color: var(--ink); }
.pricing__foot { margin-top: 24px; display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; color: var(--muted); }

/* ---------- questions ---------- */
.faq__card { padding: 4px 24px; }
details.faq__item { border-top: 1px solid var(--surface-2); }
details.faq__item:first-child { border-top: 0; }
details.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding: 18px 0; font-size: var(--text-lead); line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; }
details.faq__item summary::-webkit-details-marker { display: none; }
details.faq__item summary::after { content: ""; flex: 0 0 16px; width: 16px; height: 16px; background: linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 16px no-repeat; transition: transform var(--t-ui) var(--ease-out); } /* taste-skill-ignore: two flat bars drawn as a plus sign */
details.faq__item[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat; } /* taste-skill-ignore */
details.faq__item p { padding: 0 0 20px; max-width: 70ch; color: var(--muted); }
@media (hover: hover) { details.faq__item summary:hover { color: var(--accent); } }

/* ---------- final CTA band ---------- */
.cta { background: var(--field); color: var(--field-ink); position: relative; overflow: hidden; }
.cta__art { position: absolute; right: 0; top: 0; bottom: 0; width: 56%; opacity: 0.5; pointer-events: none; }
.cta__art svg { width: 100%; height: 100%; }
.cta__inner { position: relative; display: flex; flex-direction: column; gap: 24px; max-width: 640px; }
.cta__form { display: flex; gap: 12px; flex-wrap: wrap; }
.cta__input { flex: 1 1 280px; min-height: 52px; padding: 0 18px; border: 0; border-radius: var(--radius-button); background: #fff; color: var(--ui-text); font-size: 1rem; }
.cta__input::placeholder { color: var(--ui-muted); }
.cta__form .button { min-height: 52px; }
.cta__note { color: var(--field-muted); font-size: var(--text-small); }

/* ---------- footer ---------- */
.foot { padding-block: 64px 32px; }
.foot .wordmark { font-size: 1.125rem; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot__brand { display: flex; flex-direction: column; gap: 12px; }
.foot__brand p { color: var(--muted); max-width: 32ch; }
.foot__col h3 { font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.foot__col ul { display: flex; flex-direction: column; gap: 8px; }
.foot__col a { text-decoration: none; color: var(--muted); }
@media (hover: hover) { .foot__col a:hover { color: var(--ink); } }
.foot__base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--surface-2); color: var(--muted); font-size: var(--text-small); display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }
.foot__base p { max-width: 72ch; }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--text-small); }
@media (hover: hover) { .theme-toggle:hover { color: var(--ink); } }

/* ---------- motion: nothing is hidden until a script animates it ---------- */
.lines .line { display: block; }
.lines [data-line] { display: block; }
.swarm .node, .pods .pod, .taps .agents circle { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  /* the swarms flow toward the Mac: dashed paths run, nodes breathe */
  .swarm .path, .swarm .paths path { stroke-dasharray: 6 10; animation: flow 1.4s linear infinite; }
  .swarm .paths path:nth-child(2n) { animation-duration: 1.9s; }
  .swarm .node { animation: breathe 3.2s ease-in-out infinite; }
  .swarm .node:nth-child(3n) { animation-delay: -1.1s; }
  .swarm .node:nth-child(4n) { animation-delay: -2.2s; animation-duration: 4s; }
  /* the hero's field of pods drifts very slowly */
  .pods .pod { animation: drift 9s ease-in-out infinite alternate; }
  .pods .pod:nth-child(3n) { animation-duration: 12s; animation-delay: -4s; }
  .pods .pod:nth-child(5n) { animation-duration: 7s; animation-delay: -2s; }
  /* the agents tap the screen: tap rings pulse, agents nudge */
  .taps .taps circle { animation: tap 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
  .taps .taps circle:nth-child(2) { animation-delay: 0.8s; }
  .taps .taps circle:nth-child(3) { animation-delay: 1.6s; }
  .taps .agents circle { animation: breathe 3s ease-in-out infinite; }
  .taps .agents circle:nth-child(2) { animation-delay: -1s; }
  .taps .agents circle:nth-child(3) { animation-delay: -2s; }
  /* the isolation ring turns, the outbound arrow dashes out */
  .security__art .ring { transform-box: fill-box; transform-origin: center; animation: turn 40s linear infinite; }
  .security__art .out path, .security__art .out line { stroke-dasharray: 6 8; animation: flow 1.6s linear infinite; }
}
@keyframes flow { to { stroke-dashoffset: -32; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(5px, -7px); } }
@keyframes tap { 0% { transform: scale(0.6); opacity: 1; } 70% { transform: scale(1.6); opacity: 0; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes turn { to { transform: rotate(360deg); } }

/* ---------- tablet and phone ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__row { height: 64px; }
  .hero { padding: 24px 0 40px; }
  .hero__row { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 28px; }
  .hero__pods { width: 90%; opacity: 0.3; }
  .security__art { max-width: 280px; }
  .session { max-width: none; margin-left: 0; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 32px; }
  .stat:nth-child(2) { border-left: 1px solid var(--field-line); }
  .stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--field-line); }
  .stat:nth-child(4) { border-top: 1px solid var(--field-line); }
  [data-ui] .ui__wt { display: none; }
  [data-ui] .ui__row { grid-template-columns: 1fr auto; }
  [data-ui] .ui__sessionstrip { grid-template-columns: 1fr 1fr; }
  .works__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .works__art { max-width: 480px; }
  .works__row { gap: 16px 28px; font-size: var(--text-body); }
  .row, .row--flip, .row--wide { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .row--flip .row__text { order: 0; }
  .row--wide .row__text { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bar { grid-template-columns: 160px minmax(0, 1fr) 52px; }
  .bar__name { font-size: 12px; }
  .security__card { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .calc { gap: 24px; }
  .calc__inputs[data-ui] { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .calc__out { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  .security__list { grid-template-columns: 1fr; }
  .security__list li:nth-child(2) { border-top: 1px solid var(--surface-2); }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .hero__title { max-width: none; font-size: 2rem; }
  .hero__sub { font-size: 1.25rem; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--field-line); }
  .stat:nth-child(2) { border-left: 0; }
  .bar { grid-template-columns: 124px minmax(0, 1fr) 48px; gap: 8px; }
  .bar__name { font-size: 12px; }
  .bar__val { font-size: 12px; }
  .calc__out { grid-template-columns: 1fr; }
  [data-ui] .ui__block--sims { display: none; }
  [data-ui] .ui__meter { grid-template-columns: 1fr 1fr; }
  [data-ui] .ui__meter div:last-child { display: none; }
  .nav__actions .link { display: none; }
  .cta__art { display: none; }
  .foot__grid { grid-template-columns: 1fr; }
  details.faq__item summary { font-size: var(--text-body); }
  /* a phone shows one fragment per step and one visual per row; the desktop carries the rest */
  .section { padding-block: 56px; }
  .step__frag.envrow, .step__frag.terminal, .step__frag.slack, .row__visual .illus, .row__visual .visual-sims { display: none; }
  .card { padding: 20px; }
  .rows { gap: 40px; }
  .section-head { margin-bottom: 28px; }
}
