/* Tokenrein site. One motif: the run budget strap, a bar that fills to its limit and is held there.
   It is the hero's stack of runs, the stage under the product fragments, the buttons, the list
   marker and the audit bands. Light page, dark hero and footer, mint for running, pink for paused. */

:root {
  --bg: #f8f8f8;
  --surface: #eeeeee;
  --surface-2: #e2e2e2;
  --ink: #0a0a0a;
  --soft: #5b5b5b;
  --paper: #ffffff;
  --accent: #1f6b3a;
  --accent-strong: #164f2b;
  --accent-ink: #ffffff;
  --mint: #c3edce;
  --pink: #f8c7c9;

  --font: "Jost", system-ui, sans-serif;
  --ui-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --code: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; /* taste-skill-ignore: product UI / code */

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.75rem, 0.4rem + 7.8vw, 8.75rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(0.75rem, 1.4vw, 1.5rem);
  --section: clamp(6rem, 12vw, 12rem);
  --radius: 36px;
  --pill: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ul, ol, dl, dd, pre { margin: 0; }
ul[role="list"], ol[role="list"], ol.day, ol.ui-trace { 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; text-align: inherit; }
a { color: inherit; }
:target { scroll-margin-top: 1.5rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.hero :focus-visible, .foot :focus-visible, .deploy :focus-visible { outline-color: var(--mint); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nums { font-variant-numeric: tabular-nums; }
.wrap { padding-inline: var(--margin); }
p { max-width: 62ch; text-wrap: pretty; }

/* ---------- type ---------- */
h1, h2 { font-weight: 700; text-wrap: balance; }
.display { font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.03em; text-transform: uppercase; }
.head { font-size: var(--step-head); line-height: 0.98; letter-spacing: -0.02em; text-transform: uppercase; }
.lead { font-size: var(--step-lead); line-height: 1.35; }
.soft { color: var(--soft); }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.5rem; border-radius: var(--pill); background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button--small { min-height: 2.5rem; padding: 0 1.15rem; font-size: var(--step-small); }
.button--ink { background: var(--ink); color: var(--paper); }
.textbutton { font-weight: 500; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; min-height: 3rem; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .button--ink:hover { background: #2a2a2a; }
}

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--bg); min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.25rem; }
.wordmark { font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.bar__links { display: flex; gap: 1.75rem; font-size: var(--step-small); margin-left: auto; }
.bar__links a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.3em; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .bar__links a:hover { text-decoration-color: currentColor; } }
.hero__copy { padding-top: clamp(2rem, 6vh, 5rem); }
.hero__lead { margin-top: 2rem; max-width: 44ch; color: #ededed; }

.straps { margin-top: clamp(2.5rem, 6vh, 4.5rem); padding-top: 2.5rem; }
.strap { position: relative; display: block; height: 3rem; border-radius: var(--radius) var(--radius) 0 0; color: var(--ink); text-decoration: none; transition: transform var(--t-ui) var(--ease-out); }
.strap + .strap { margin-top: -0.75rem; }
.strap__tab { position: absolute; bottom: 100%; display: inline-flex; align-items: center; height: 2.5rem; padding: 0 1.25rem; border-radius: var(--pill) var(--pill) 0 0; background: inherit; font-size: var(--step-small); font-weight: 500; white-space: nowrap; }
.strap--1 { background: var(--surface); }
.strap--1 .strap__tab { left: 4%; }
.strap--2 { background: var(--pink); }
.strap--2 .strap__tab { left: 30%; }
.strap--3 { background: var(--paper); }
.strap--3 .strap__tab { left: 52%; }
.strap--front { background: var(--mint); height: auto; padding: 1.5rem clamp(1.25rem, 3vw, 2.5rem) clamp(4rem, 10vh, 6rem); margin-bottom: -2rem; }
.strap--front .strap__tab { left: 74%; }
a.strap:hover { transform: translateY(-0.4rem); }

.live__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 2rem; font-size: var(--step-small); }
.live__run b { font-weight: 700; }
.live__state { font-weight: 500; }
.meter { --fill: 0; --limit: 0.333; position: relative; height: clamp(3rem, 7vh, 4.5rem); margin-block: 1rem; border-radius: var(--pill); background: var(--paper); overflow: hidden; }
.meter__fill { position: absolute; inset: 0; border-radius: var(--pill); background: var(--accent); clip-path: inset(0 calc((1 - var(--fill)) * 100%) 0 0 round var(--pill)); }
.meter.is-paused .meter__fill { background: var(--ink); }
.meter__limit { position: absolute; top: 0.5rem; bottom: 0.5rem; left: calc(var(--limit) * 100% - 0.25rem); width: 0.5rem; border-radius: var(--pill); background: var(--pink); transition: left 600ms var(--ease-out); }
.live__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.live__spent { font-size: var(--step-lead); }
.live__spent b { font-weight: 700; }
.live__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.choice { display: inline-flex; padding: 0.25rem; border-radius: var(--pill); background: var(--paper); }
.choice button { min-width: 3.25rem; min-height: 2.5rem; padding: 0 0.9rem; border-radius: var(--pill); font-weight: 500; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.choice [aria-checked="true"] { background: var(--ink); color: var(--paper); }

/* ---------- showcase: what stops a run ---------- */
.showcase { background: var(--surface); }
.showcase__stage { position: relative; min-height: max(100svh, 46rem); padding-block: 6rem; margin-bottom: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.capsule { position: absolute; top: 50%; left: 68%; width: min(90vh, 50vw); height: min(56vh, 30vw); transform: translate(-50%, -50%); border-radius: var(--pill); background: var(--pink); transition: background-color 300ms ease; }
.capsule.is-mint { background: var(--mint); }
.frag { position: absolute; top: 50%; left: 68%; width: min(34rem, 40vw); transform: translate(-50%, -58%); opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 0s linear 300ms; }
.frag.is-on { opacity: 1; visibility: visible; transition: opacity 300ms ease; }
.frag figcaption, .frag-static figcaption { margin-top: 0.75rem; font-size: var(--step-small); }
.showcase__index { position: relative; grid-column: 1 / span 5; padding-left: 1.1rem; }
.showcase .ui-card { font-size: 1rem; padding: 1.6rem 1.75rem; }
.showcase .ui-title { font-size: 1.125rem; }
.showcase__title { color: var(--soft); margin-bottom: 0.5rem; }
.index__row { position: relative; display: block; padding-block: 0.1em; font-size: var(--step-head); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; color: var(--soft); transition: color var(--t-hover) ease; }
.index__row[aria-pressed="true"] { color: var(--ink); }
.index__row[aria-pressed="true"]::before { content: ""; position: absolute; left: -0.9em; top: 50%; width: 0.6em; height: 0.3em; border-radius: var(--pill); background: var(--accent); transform: translateY(-50%); }
@media (hover: hover) and (pointer: fine) { .index__row:hover { color: var(--ink); } }
.showcase__fact { position: absolute; left: calc(68% - min(17rem, 20vw)); bottom: 4.5rem; width: min(34rem, 40vw); font-size: var(--step-body); }

/* ---------- product fragments (the product's own look) ---------- */
[data-ui] { font-family: var(--ui-font); }
.ui-card { background: #fff; color: #14171c; border-radius: 14px; padding: 1.25rem 1.4rem; font-size: 0.875rem; line-height: 1.45; box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 12px 32px rgba(16, 24, 40, .10); } /* taste-skill-ignore: product UI / code */
.ui-card--wide { width: min(28rem, 100%); }
.ui-title { font-weight: 700; font-size: 1rem; }
.ui-sub { color: #5d6673; font-weight: 400; font-size: 0.8125rem; }
.ui-line { margin-top: 0.5rem; }
.ui-line code, .ui-trace code { font-family: var(--code); font-size: 0.8125rem; background: #f1f3f6; padding: 0.05rem 0.35rem; border-radius: 5px; }
.ui-chip { display: inline-block; padding: 0.05rem 0.55rem; border-radius: 99px; background: #e8eefe; color: #2448c4; font-size: 0.8125rem; font-weight: 600; }
.ui-chip--ok { background: #e5f5ec; color: #17693a; }
.ui-chip--warn { background: #fff3dc; color: #8a5300; }
.ui-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.9rem; }
.ui-label { color: #5d6673; }
.ui-input { display: inline-block; min-width: 4.5rem; padding: 0.35rem 0.6rem; border: 1px solid #d5dae2; border-radius: 8px; } /* taste-skill-ignore: product UI / code */
.ui-btn { display: inline-block; padding: 0.4rem 0.9rem; border-radius: 8px; background: #2f5bea; color: #fff; font-weight: 600; }
.ui-link { color: #c62f2f; font-weight: 600; }
.ui-mini { display: inline-block; padding: 0.15rem 0.6rem; border: 1px solid #d5dae2; border-radius: 7px; font-size: 0.8125rem; } /* taste-skill-ignore: product UI / code */
.ui-trace { margin-top: 0.6rem; display: grid; gap: 0.3rem; }
.ui-trace li { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.5rem; border-radius: 8px; background: #f6f7f9; }
.ui-trace span { color: #5d6673; font-variant-numeric: tabular-nums; font-size: 0.8125rem; }
.ui-trace em { margin-left: auto; font-style: normal; color: #17693a; font-size: 0.8125rem; font-weight: 600; }
.ui-trace .is-stop { background: #fde8e8; }
.ui-trace .is-stop em { color: #b42323; }
.ui-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 0.75rem 1.5rem; margin-top: 0.9rem; }
.ui-stats--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ui-stats div { padding: 0.6rem 0.75rem; border-radius: 10px; background: #f6f7f9; }
.ui-stats dt { color: #5d6673; font-size: 0.8125rem; }
.ui-stats dd { font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ui-bad { color: #b42323; }
.ui-table { width: 100%; margin-top: 0.4rem; border-collapse: collapse; font-size: 0.875rem; }
.ui-table th { text-align: left; color: #5d6673; font-weight: 500; font-size: 0.8125rem; padding: 0.35rem 0.5rem; }
.ui-table td { padding: 0.5rem; border-top: 1px solid #e2e6ec; }
.ui-table .is-hover td { background: #f1f3f6; }
.ui-slack { border-left: 4px solid #d7a12a; }

/* ---------- rollout ---------- */
.rollout { position: relative; }
.rollout__fields { display: grid; grid-template-columns: 1fr 1fr; min-height: max(88svh, 40rem); }
.rollout__text { background: var(--pink); padding: clamp(4rem, 9vh, 7rem) var(--margin) 9rem; display: flex; flex-direction: column; gap: 2rem; }
.rollout__text h2 { max-width: 11ch; }
.rollout__text p { max-width: 36ch; }
.rollout__view { position: relative; background: var(--paper); display: grid; place-items: center; padding: 3rem var(--margin) 9rem; }
.frag-static { grid-area: 1 / 1; width: min(28rem, 100%); opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 0s linear 200ms; }
.frag-static.is-on { opacity: 1; visibility: visible; transition: opacity 200ms ease; }
.rollout__control { position: absolute; left: 0; right: 0; bottom: 1.75rem; }
.rollout__control input { display: block; width: 100%; height: 2rem; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.rollout__control input::-webkit-slider-runnable-track { height: 0.5rem; border-radius: var(--pill); background: var(--ink); }
.rollout__control input::-moz-range-track { height: 0.5rem; border-radius: var(--pill); background: var(--ink); }
.rollout__control input::-webkit-slider-thumb { -webkit-appearance: none; width: 2rem; height: 2rem; margin-top: -0.75rem; border-radius: var(--pill); background: var(--accent); border: 0; }
.rollout__control input::-moz-range-thumb { width: 2rem; height: 2rem; border-radius: var(--pill); background: var(--accent); border: 0; }
.rollout__names { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 0.5rem; font-size: var(--step-body); color: var(--soft); }
.rollout__names li:nth-child(2) { text-align: center; transform: translateX(-17%); }
.rollout__names li:nth-child(3) { text-align: center; transform: translateX(17%); }
.rollout__names li:last-child { text-align: right; }
.rollout__names .is-on { color: var(--ink); font-weight: 500; }

/* ---------- agents ---------- */
.agents { margin-top: calc(var(--section) / 2); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-block: calc(var(--section) / 2); }
.agents__intro { grid-column: 1 / span 3; }
.agents__intro p { margin-top: 1.5rem; max-width: 30ch; }
.agents__tiles { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 0.625rem; }
.tile__plate { aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 1.25rem; border-radius: var(--radius); overflow: hidden; }
.tile--wide { grid-column: span 2; }
.tile--wide .tile__plate { aspect-ratio: 8 / 5; }
.tile--mint .tile__plate { background: var(--mint); }
.tile--pink .tile__plate { background: var(--pink); }
.tile--surface .tile__plate { background: var(--surface); }
.tile pre { width: 100%; padding: 1rem; border-radius: 12px; background: #fff; color: #14171c; font-family: var(--code); font-size: 0.8125rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.tile pre .c { color: #5d6673; }
.tile figcaption { margin-top: 1rem; font-size: var(--step-body); color: var(--soft); max-width: 34ch; }
.tile figcaption b { display: block; color: var(--ink); font-size: var(--step-lead); font-weight: 500; line-height: 1.25; margin-bottom: 0.25rem; }

/* ---------- record (enterprise) ---------- */
.record { padding-block: calc(var(--section) / 2); }
.record__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.record__lead { margin-top: 1.75rem; max-width: 60ch; }
.record__log { display: grid; grid-template-columns: 10rem 1fr; gap: 2.5rem; margin-top: 3.5rem; }
.days { display: grid; gap: 0.375rem; align-content: start; }
.days button { display: block; height: 4rem; padding: 0 1.25rem; border-radius: var(--pill); background: var(--surface); font-size: var(--step-small); line-height: 1.25; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.days b { display: block; font-size: var(--step-body); font-weight: 500; }
.days [aria-selected="true"] { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .days [aria-selected="false"]:hover { background: var(--surface-2); } }
.bands { font-family: var(--font); }
.day { display: grid; gap: 0.25rem; }
.day li { display: grid; grid-template-columns: 5.5rem 1fr auto; align-items: center; gap: 1.5rem; min-height: 4.75rem; padding: 0.5rem 2rem 0.5rem 1.5rem; border-radius: var(--pill); background: var(--surface); }
.day li:nth-child(even) { background: var(--surface-2); }
.day time { font-size: var(--step-lead); }
.day p { font-size: var(--step-small); color: var(--soft); line-height: 1.4; }
.day p b { display: block; font-size: var(--step-body); font-weight: 500; color: var(--ink); }
.day span { font-size: var(--step-small); text-align: right; }

/* ---------- stack ---------- */
.stack { padding-block: calc(var(--section) / 2); }
.stack__board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.stack__board li { aspect-ratio: 3 / 2; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding: 1.5rem; border-radius: var(--radius); background: var(--surface); font-size: var(--step-lead); font-weight: 700; line-height: 1.15; }
.stack__board li span { font-size: var(--step-body); font-weight: 400; color: var(--soft); line-height: 1.35; }
.stack__board .stack__lead { grid-column: span 2; aspect-ratio: auto; background: var(--accent); color: var(--accent-ink); }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-block: calc(var(--section) / 2); }
.plans { grid-column: 1 / span 6; display: grid; justify-items: start; align-content: start; }
.plans__title, .plan { font-size: var(--step-head); line-height: 1.1; letter-spacing: -0.02em; }
.plans__title { color: var(--soft); text-transform: uppercase; font-weight: 700; margin-bottom: 0.4rem; }
.plan { position: relative; font-weight: 500; color: var(--soft); padding-block: 0.08em; transition: color var(--t-hover) ease; }
.plan[aria-pressed="true"] { color: var(--ink); }
.plan[aria-pressed="true"]::before { content: ""; position: absolute; left: -0.9em; top: 50%; width: 0.6em; height: 0.3em; border-radius: var(--pill); background: var(--accent); transform: translateY(-50%); }
@media (hover: hover) and (pointer: fine) { .plan:hover { color: var(--ink); } }
.plan-stage { grid-column: 8 / -1; display: grid; }
.plan-card { grid-area: 1 / 1; display: grid; gap: 1.5rem; align-content: start; justify-items: start; }
.plan-card[hidden] { display: none; }
.plan-card__price { font-size: var(--step-display); font-weight: 700; line-height: 0.9; letter-spacing: -0.03em; }
.plan-card__price span { display: block; margin-top: 0.75rem; font-size: var(--step-body); font-weight: 400; letter-spacing: 0; }
.plan-card p:not(.plan-card__price) { max-width: 44ch; }
.plan-card__note { font-size: var(--step-small); color: var(--soft); }
.plan-card__note a { color: inherit; font-weight: 600; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-block: calc(var(--section) / 2) var(--section); }
.faq__title { grid-column: 1 / span 4; align-self: start; position: sticky; top: 6rem; }
.faq__list { grid-column: 5 / -1; display: grid; gap: 0.5rem; }
.faq details { border-radius: var(--radius); background: var(--surface); transition: background-color var(--t-ui) ease, color var(--t-ui) ease; }
.faq summary { position: relative; display: flex; align-items: center; min-height: 4.5rem; padding: 1rem 4rem 1rem 1.75rem; font-size: var(--step-lead); font-weight: 500; line-height: 1.25; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 1.75rem; top: 50%; width: 1rem; height: 3px; border-radius: 2px; background: currentColor; transition: transform var(--t-ui) var(--ease-out); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] { background: var(--accent); color: var(--accent-ink); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 1.75rem 1.75rem; max-width: 56ch; }
@media (hover: hover) and (pointer: fine) { .faq details:not([open]):hover { background: var(--surface-2); } }

/* ---------- deploy ---------- */
.deploy { background: var(--accent); color: var(--accent-ink); }
.deploy__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; min-height: max(90svh, 44rem); padding-block: 4rem; }
.deploy__close { grid-column: 1 / span 6; align-self: end; padding-bottom: 1rem; }
.closing { font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.03em; text-transform: uppercase; }
.deploy__close p { margin-top: 1.5rem; max-width: 40ch; }
.dialog { grid-column: 8 / span 5; justify-self: end; width: min(30rem, 100%); padding: 1.5rem; border-radius: 16px; background: #fff; color: #14171c; font-size: 0.9375rem; box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 24px 60px rgba(0, 0, 0, .25); } /* taste-skill-ignore: product UI / code */
.dialog__title { font-weight: 700; font-size: 1.125rem; margin-bottom: 1rem; }
.dialog__label { display: block; font-size: 0.8125rem; color: #5d6673; margin-bottom: 0.35rem; }
.dialog__field { width: 100%; min-height: 2.75rem; padding: 0 0.75rem; border: 1px solid #d5dae2; border-radius: 9px; font-family: var(--code); font-size: 0.875rem; } /* taste-skill-ignore: product UI / code */
.dialog__seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; margin-top: 0.9rem; padding: 0.25rem; border-radius: 10px; background: #f1f3f6; }
.dialog__seg button { min-height: 2.5rem; border-radius: 7px; font-weight: 600; font-size: 0.875rem; text-align: center; color: #5d6673; }
.dialog__seg [aria-checked="true"] { background: #fff; color: #14171c; } /* taste-skill-ignore: product UI / code */
.dialog__cmd { margin-top: 0.9rem; padding: 0.9rem 1rem; border-radius: 10px; background: #f1f3f6; font-family: var(--code); font-size: 0.8125rem; line-height: 1.6; white-space: pre-wrap; word-break: break-all; }
.dialog__go { width: 100%; min-height: 3rem; margin-top: 1rem; border-radius: 9px; background: #2f5bea; color: #fff; font-weight: 600; text-align: center; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.dialog__go:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .dialog__go:hover { background: #2348c9; } }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--bg); padding-block: 3rem 2rem; }
.blocks { display: block; text-decoration: none; }
.blocks svg { width: 100%; height: auto; overflow: hidden; }
.blocks text { font-family: var(--font); font-size: 150px; font-weight: 700; fill: var(--ink); }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem var(--gutter); margin-top: 3.5rem; font-size: var(--step-small); }
.foot__cols p { font-weight: 700; margin-bottom: 0.75rem; }
.foot__cols a { display: block; padding-block: 0.3rem; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.3em; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .foot__cols a:hover { text-decoration-color: currentColor; } }
.foot__last { display: flex; align-items: center; justify-content: space-between; margin-top: 3.5rem; font-size: var(--step-small); }

/* ---------- motion ---------- */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(120ms + var(--i) * 100ms); }
  .js .hero [data-load] { opacity: 0; transform: translateY(14px); animation: rise 600ms var(--ease-out) 420ms forwards; }
  .js .straps .strap { transform: translateY(2rem); opacity: 0; animation: rise 700ms var(--ease-out) forwards; }
  .js .straps .strap--1 { animation-delay: 380ms; }
  .js .straps .strap--2 { animation-delay: 450ms; }
  .js .straps .strap--3 { animation-delay: 520ms; }
  .js .straps .strap--front { animation-delay: 590ms; }
  .meter__fill { transition: clip-path 420ms var(--ease-out), background-color 200ms ease; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .frag, .frag-static, .capsule, .meter__limit { transition: none; }
}

/* ---------- phone and tablet ---------- */
@media (max-width: 60rem) {
  .bar__links { display: none; }
  .showcase__stage { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 4rem; align-items: center; }
  .capsule { grid-area: 1 / 1; position: static; transform: none; width: 100%; height: 72%; min-height: 12rem; }
  .frag { grid-area: 1 / 1; position: relative; left: auto; top: auto; transform: none; width: min(30rem, calc(100% - 2rem)); justify-self: center; margin-block: 1rem; }
  .showcase__index { grid-area: 2 / 1; margin-top: 3rem; }
  .showcase__fact { grid-area: 3 / 1; }
  .index__row { font-size: var(--step-lead); padding-block: 0.25rem; }
  .showcase__fact { position: static; transform: none; width: auto; margin-top: 1.25rem; max-width: 40ch; padding-left: 1.1rem; }
  .rollout__fields { grid-template-columns: 1fr; }
  .rollout__view { order: -1; min-height: 26rem; padding: 2.5rem var(--margin) 3rem; }
  .rollout__text { padding: 2.5rem var(--margin) 10rem; }
  .rollout__control { bottom: 1.5rem; }
  .agents__intro, .agents__tiles { grid-column: 1 / -1; }
  .agents__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem var(--gutter); align-items: end; padding-right: 0; }
  .agents__intro p { margin-top: 0; max-width: 44ch; }
  .agents__tiles { margin-top: 2.5rem; grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .tile__plate, .tile--wide .tile__plate { aspect-ratio: auto; min-height: 15rem; }
  .record__log { grid-template-columns: 1fr; gap: 1rem; }
  .days { grid-template-columns: repeat(3, 1fr); position: sticky; top: 0; z-index: 1; background: var(--bg); padding-block: 0.5rem; }
  .days button { padding: 0 0.75rem; text-align: center; }
  .day li { grid-template-columns: 1fr; gap: 0.25rem; padding: 1rem 1.5rem; border-radius: var(--radius); }
  .day span { text-align: left; }
  .stack__board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack__board li { aspect-ratio: auto; min-height: 7rem; padding: 1.1rem; }
  .plans, .plan-stage { grid-column: 1 / -1; }
  .plans { padding-left: 1.1rem; }
  .plan-stage { margin-top: 2.5rem; }
  .faq__title, .faq__list { grid-column: 1 / -1; }
  .faq__title { position: static; margin-bottom: 2rem; }
  .deploy__close, .dialog { grid-column: 1 / -1; }
  .deploy__close { align-self: start; margin-bottom: 2.5rem; }
  .dialog { justify-self: stretch; width: 100%; }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .agents__intro { grid-template-columns: 1fr; }
  .strap__tab { padding: 0 0.9rem; }
  .strap--1 .strap__tab { left: 0; }
  .strap--2 .strap__tab { left: 34%; }
  .strap--3 .strap__tab { left: auto; right: 0; }
  .strap--front .strap__tab { left: 0; }
  .live__controls .button { width: 100%; }
  .faq summary { padding-left: 1.25rem; }
  .faq details p { padding: 0 1.25rem 1.25rem; }
}
