/* chockstonelabs.com in Aurora Ultraviolet, light and dark.
   Every colour, family and size comes from /assets/tokens.css, which swaps the
   colour vars under prefers-color-scheme: dark, so nothing here names a mode.
   Display type comes from the .t-* classes in the HTML. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body-size);
  line-height: var(--t-body-leading);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, address { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: var(--radius-thumb); }
strong { font-weight: 600; }
.ico { display: inline-block; flex: none; width: 1.125em; height: 1.125em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; z-index: 100; left: var(--space-md); top: calc(-1 * var(--space-6xl));
  padding: var(--space-sm) var(--space-md); border: 1px solid var(--line-dark); border-radius: var(--radius-control);
  background: var(--paper-soft); color: var(--ink); font-weight: 600;
}
.skip-link:focus { top: var(--space-md); }

.wrap { width: min(100% - 2 * var(--page-gutter), var(--shell-wide) + var(--space-4xl)); margin-inline: auto; }
main, .site-footer { position: relative; z-index: 1; }
/* the drifting demo parts reach past the edges; clip them without making a scroller */
main { overflow-x: clip; }

/* ---------- Backdrop: flat ground ---------- */
.aurora { display: none; }

/* ---------- Glass, cards, buttons, pills ---------- */
.glass {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 12px 40px -12px var(--shadow);
}
.panel { border-radius: var(--radius-panel); }
.card-plain { border-radius: var(--radius-card); background: var(--paper-deep); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  height: 52px; padding: 0 var(--space-xl);
  border: 1px solid transparent; border-radius: var(--radius-control);
  font-family: var(--sans); font-size: var(--t-button-size); font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--motion-standard) var(--ease-out), box-shadow var(--motion-standard) var(--ease-out), background-color var(--motion-standard) var(--ease-out);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-compact { height: 44px; padding: 0 var(--space-lg); }
.btn-primary {
  color: var(--paper);
  background: var(--ink);
}
.btn-primary:hover { background: var(--ink-2); }
.btn-secondary { color: var(--ink); background: var(--surface); border-color: var(--line-dark); }
.btn-secondary:hover { border-color: var(--accent-ink); }
.btn .ico { width: 1.1em; height: 1.1em; stroke-width: 2; }

.pill {
  display: inline-flex; align-items: center; gap: var(--space-xxs);
  padding: var(--space-xxs) var(--space-sm); border-radius: var(--radius-pill);
  font-size: var(--t-caption-size); font-weight: 600; line-height: 1.3; white-space: nowrap;
}
.pill .ico { width: 1.1em; height: 1.1em; }
.pill-ok { color: var(--green); background: var(--green-wash); }
.pill-warn { color: var(--amber); background: var(--amber-wash); }
.pill-bad { color: var(--danger); background: var(--danger-wash); }
.pill-info { color: var(--info); background: var(--info-wash); }
.pill-accent { color: var(--accent-ink); background: var(--accent-wash); }
.pill-line { color: var(--muted); background: var(--paper-deep); font-size: calc(var(--t-caption-size) * 0.92); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; padding-top: var(--space-md); }
.header-bar { display: flex; align-items: center; gap: var(--space-xs); min-height: 68px; padding: var(--space-xs) var(--space-sm) var(--space-xs) var(--space-lg); border-radius: var(--radius-panel); }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 44px; margin-right: auto; color: var(--ink); text-decoration: none; }
.brand-name { font-size: calc(var(--t-wordmark-size) * 0.91); white-space: nowrap; }
.brand-stop { color: var(--logo-stop-ink); }
.site-nav { display: flex; align-items: center; gap: var(--space-xxs); }
.site-nav a, .nav-signin {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-sm);
  border-radius: var(--radius-control); color: var(--ink-2); font-size: calc(var(--t-subhead-size) * 1.07); font-weight: 500; text-decoration: none;
}
.site-nav a:hover, .nav-signin:hover { color: var(--ink); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.site-nav a[aria-current] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent-ink); border-radius: 0; }
.nav-sep { width: 1px; height: 22px; margin: 0 var(--space-xs); background: var(--line-dark); }
.header-cta { margin-left: var(--space-xxs); }
.menu { display: none; position: relative; }
.menu > summary {
  display: grid; place-items: center; width: 44px; height: 44px; list-style: none; cursor: pointer;
  border: 1px solid var(--line-dark); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary .ico { width: 20px; height: 20px; }
.menu .i-close, .menu[open] .i-open { display: none; }
.menu[open] .i-close { display: block; }
.menu-panel { background: var(--paper-soft); position: absolute; right: 0; top: calc(100% + var(--space-xs)); display: grid; gap: var(--space-xxs); width: min(18rem, calc(100vw - 2 * var(--page-gutter))); padding: var(--space-xs); }
.menu-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-control); color: var(--ink); font-weight: 500; text-decoration: none; }
.menu-panel a:hover { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.menu-panel a[aria-current] { color: var(--accent-ink); font-weight: 600; }
.menu-panel hr { width: 100%; height: 1px; margin: var(--space-xxs) 0; border: 0; background: var(--line); }
.menu-panel .btn { margin-top: var(--space-xxs); color: var(--on-accent); }

/* ---------- Type helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--accent-ink); }
.eyebrow::before { content: ""; width: var(--space-lg); height: 2px; border-radius: var(--radius-mark); background: var(--accent-ink); }
.grad-text { color: var(--accent-ink); }
.lede { color: var(--ink-2); font-size: calc(var(--t-body-size) * 1.2); line-height: 1.6; }
.muted { color: var(--muted); }
.section-title { font-size: calc(var(--t-display-size) * 0.8); line-height: 1.08; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: var(--space-xxxl); padding-block: var(--space-4xl) var(--space-4xl); }
.hero-title { font-size: calc(var(--t-display-xl-size) * 0.92); line-height: 1.04; letter-spacing: -0.035em; }
.hero .lede { max-width: 36rem; margin-top: var(--space-xl); }
.hero .actions { margin-top: var(--space-xxl); }
.hero-note { display: flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-xl); color: var(--muted); font-size: calc(var(--t-subhead-size) * 1.07); }
.hero-note .ico { color: var(--accent-ink); }

/* ---------- Hero demo: a desktop window and an iPhone, drawn in HTML ----------
   With no data-step (JS off, reduced motion, off screen) everything shows its
   final state: drafted, checked, approved and scheduled. The loop driver sets
   data-step 1 (drafting) to 4 (scheduled) and the rules below rewind to them. */
.demo-wrap { position: relative; }
.demo { --fs: var(--t-footnote-size); position: relative; color: var(--ink); font-size: var(--fs); line-height: 1.4; }
.win { position: relative; overflow: hidden; margin-right: 64px; border-radius: var(--radius-panel); }
.win-bar { display: flex; align-items: center; gap: var(--space-xxs); height: 38px; padding: 0 var(--space-md); border-bottom: 1px solid var(--line); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-dark); }
.win-url { margin-left: var(--space-sm); padding: var(--space-xxs) var(--space-sm); border-radius: var(--radius-pill); background: color-mix(in srgb, var(--paper-soft) 55%, transparent); color: var(--muted); font-size: calc(var(--fs) * 0.9); }
.win-body { display: grid; grid-template-columns: 52px minmax(0, 1fr) 9.5rem; }
.win-rail { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); padding: var(--space-md) 0; border-right: 1px solid var(--line); }
.rail-i { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-control); color: var(--muted); }
.rail-i .ico { width: 18px; height: 18px; }
.rail-i.on { color: var(--accent-ink); background: var(--accent-wash); }
.rail-i b { position: absolute; top: -5px; right: -7px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-size: calc(var(--fs) * 0.78); }
.win-main { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-md) var(--space-lg) var(--space-lg); }
.post-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); }
.post-brand { display: inline-flex; align-items: center; gap: var(--space-xs); font-weight: 600; }
.post-brand::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.post-title { font-size: calc(var(--fs) * 1.32); line-height: 1.2; }
.post-meta { margin-top: calc(-1 * var(--space-xs)); color: var(--muted); }
.post-media {
  position: relative; height: 84px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-control);
  background: linear-gradient(135deg in srgb, var(--info-wash), var(--accent-wash));
}
.post-media::before, .post-media::after { content: ""; position: absolute; border: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent); border-radius: 50%; }
.post-media::before { left: 18%; top: 22%; width: 74px; height: 74px; }
.post-media::after { left: 34%; top: 8%; width: 52px; height: 52px; }
.play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid color-mix(in srgb, var(--white) 55%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--white) 22%, transparent); }
.play::after { content: ""; width: 11px; height: 14px; margin-left: var(--space-xxs); background: var(--ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.media-tag { position: absolute; left: var(--space-xs); bottom: var(--space-xs); padding: 0 var(--space-xs); border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); font-size: calc(var(--fs) * 0.86); font-weight: 600; }
.caption { padding: var(--space-sm); border: 1px solid var(--line); border-radius: var(--radius-control); background: color-mix(in srgb, var(--paper-soft) 50%, transparent); }
.caption-by { display: flex; align-items: center; gap: var(--space-xxs); margin-bottom: var(--space-xxs); color: var(--accent-ink); font-size: calc(var(--fs) * 0.9); font-weight: 600; }
.caption-by .ico { width: 14px; height: 14px; }
.caption-text { min-height: 3.6em; color: var(--ink-2); }
.caret { display: none; width: 2px; height: 1.1em; margin-left: 0; vertical-align: -0.2em; background: var(--accent-ink); }
.rules-head { display: flex; align-items: center; gap: var(--space-xs); color: var(--info); font-family: var(--sans); font-weight: 700; }
.rules-head .ico { width: 17px; height: 17px; }
.rules ul { display: grid; gap: var(--space-xxs); margin-top: var(--space-xxs); padding: 0; list-style: none; }
.rule { display: flex; align-items: center; gap: var(--space-xs); color: var(--ink-2); }
.tick { position: relative; flex: none; width: 16px; height: 16px; border: 1.5px solid color-mix(in srgb, var(--info) 70%, transparent); border-radius: 50%; background: var(--info-wash); transition: border-color var(--motion-slow), background-color var(--motion-slow); }
.tick::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid var(--info); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); transition: opacity var(--motion-base), transform var(--motion-slow) var(--ease-out); }
.when { display: flex; align-items: center; gap: var(--space-xxs); color: var(--ink-2); }
.when .ico { width: 15px; height: 15px; color: var(--muted); }
.decide { position: relative; display: flex; gap: var(--space-xs); }
.fake-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xxs); height: 38px; padding: 0 var(--space-md); border: 1px solid transparent; border-radius: var(--radius-pill); font-weight: 600; white-space: nowrap; }
.fake-secondary { flex: 1; color: var(--ink); background: var(--surface); border-color: var(--line-dark); }
.fake-primary { flex: 1.6; color: var(--paper); background: var(--ink); }
.fake-primary .ico { width: 15px; height: 15px; stroke-width: 2.2; }
.pointer { position: absolute; right: 26%; top: 60%; z-index: 2; width: 24px; height: 24px; border: 2px solid var(--accent-ink); border-radius: 50%; background: color-mix(in srgb, var(--accent-ink) 22%, transparent); opacity: 0; pointer-events: none; }
.pointer-tip { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: var(--space-xxs) var(--space-xs); border-radius: var(--radius-pill); background: var(--ink); color: var(--paper); font-size: calc(var(--fs) * 0.86); font-weight: 600; white-space: nowrap; }
.nets { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xxs); }
.net {
  display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid transparent; border-radius: 50%;
  color: var(--on-accent); background: linear-gradient(135deg in srgb, var(--accent), var(--accent));
  font-size: calc(var(--fs) * 0.74); font-weight: 700; letter-spacing: 0.02em; text-decoration: none; cursor: default;
  transition: background-color var(--motion-slow), color var(--motion-slow), box-shadow var(--motion-slow), border-color var(--motion-slow);
}
.nets-label { margin-left: var(--space-xxs); color: var(--muted); font-size: calc(var(--fs) * 0.92); }
.nets-label b { color: var(--green); font-weight: 600; }
.win-aside { padding: var(--space-md); border-left: 1px solid var(--line); background: color-mix(in srgb, var(--paper-soft) 28%, transparent); }
.aside-h { color: var(--muted); font-size: calc(var(--fs) * 0.82); }
.slot-card { display: grid; gap: var(--space-xxs); margin-top: var(--space-xs); padding: var(--space-xs) var(--space-sm); border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); }
.slot-card .t { font-weight: 600; }
.slot-card .s { color: var(--muted); font-size: calc(var(--fs) * 0.9); }
.slot-card .pill { justify-self: start; margin-top: var(--space-xxs); font-size: calc(var(--fs) * 0.82); }
.slot-card.dim { opacity: 0.7; }

.phone {
  position: absolute; right: 0; top: 128px; z-index: 2; width: 212px; padding: var(--space-xxs);
  border: 1px solid var(--line-dark); border-radius: var(--radius-panel); background: var(--surface);
  box-shadow: 0 24px 60px -18px var(--shadow), 0 12px 40px -12px var(--shadow);
}
.screen {
  position: relative; display: flex; flex-direction: column; height: 404px; overflow: hidden; padding: var(--space-xxs) var(--space-sm) 0;
  border-radius: var(--radius-card); --fs: calc(var(--t-footnote-size) * 0.86); font-size: var(--fs); line-height: 1.3;
  background: var(--paper);
}
.ph-status { display: flex; align-items: center; justify-content: space-between; height: 22px; padding: 0 var(--space-xs); font-weight: 700; }
.ph-island { width: 58px; height: 18px; border-radius: var(--radius-pill); background: var(--overlay); }
.ph-bars { display: flex; align-items: flex-end; gap: var(--space-xxs); }
.ph-bars i { width: 3px; border-radius: var(--radius-mark); background: var(--ink); }
.ph-bars i:nth-child(1) { height: 5px; } .ph-bars i:nth-child(2) { height: 7px; } .ph-bars i:nth-child(3) { height: 9px; }
.ph-top { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-xs); }
.ph-switch { display: inline-flex; align-items: center; gap: 4px; padding: 4px var(--space-xs); border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); font-weight: 600; }
.ph-switch .ico { width: 11px; height: 11px; }
.ph-plus { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); }
.ph-plus .ico { width: 12px; height: 12px; }
.ph-title { margin-top: var(--space-xs); font-size: calc(var(--fs) * 2.1); line-height: 1.1; }
.ph-sub { color: var(--ink-2); }
.ph-h { margin-top: var(--space-sm); font-size: calc(var(--fs) * 1.15); }
.ph-list { display: grid; gap: var(--space-xxs); margin-top: var(--space-xxs); padding: 0; list-style: none; }
.ph-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xxs); padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-xs); border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); }
.ph-row b { display: block; font-weight: 600; }
.ph-row small { display: block; color: var(--muted); font-size: calc(var(--fs) * 0.9); }
.ph-row.alert { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: color-mix(in srgb, var(--danger-wash) 80%, transparent); box-shadow: inset 3px 0 0 var(--danger); }
.ph-btn { flex: none; padding: 4px var(--space-xs); border: 1px solid var(--line-dark); border-radius: var(--radius-thumb); background: var(--surface); font-weight: 600; font-size: calc(var(--fs) * 0.92); }
.ph-toast { display: flex; align-items: center; gap: var(--space-xxs); margin: auto 0 var(--space-xs); padding: var(--space-xxs) var(--space-xs); border-radius: var(--radius-control); background: var(--ink); color: var(--paper); font-weight: 600; transition: opacity var(--motion-slow) var(--ease-out), transform var(--motion-slow) var(--ease-out); }
.ph-toast .ico { width: 13px; height: 13px; color: var(--accent-on-ink); stroke-width: 2.2; }
.ph-tabs { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 calc(-1 * var(--space-sm)); padding: var(--space-xxs) var(--space-sm) 12px; border-top: 1px solid var(--line); background: var(--surface); }
.ph-tabs span { display: grid; justify-items: center; gap: var(--space-xxs); color: var(--muted); font-size: calc(var(--fs) * 0.72); }
.ph-tabs .ico { width: 14px; height: 14px; }
.ph-tabs .on { color: var(--accent-ink); }

.demo-steps { display: flex; flex-wrap: wrap; gap: var(--space-xxs); margin: var(--space-lg) 0 0; padding: 0; list-style: none; counter-reset: step; }
.demo-steps li { display: inline-flex; align-items: center; gap: var(--space-xxs); padding: 4px var(--space-sm) 4px 4px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: calc(var(--fs) * 0.95); counter-increment: step; transition: opacity var(--motion-slow), background-color var(--motion-slow), border-color var(--motion-slow); }
.demo-steps li::before { content: counter(step); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-wash); color: var(--accent-ink); font-size: calc(var(--fs) * 0.85); }
.demo-note { margin-top: var(--space-sm); color: var(--muted); font-size: var(--t-caption-size); text-align: right; }

/* label swaps: first child is the "before" text, last the "after"; both share one grid cell */
.swap { display: inline-grid; }
.swap > * { grid-area: 1 / 1; transition: opacity var(--motion-slow) var(--ease-out); }
.swap > :first-child { opacity: 0; }

/* step 1: drafting */
.demo[data-step="1"] .caret { display: inline-block; animation: blink 1s steps(1) infinite; }
.demo[data-step="1"] .tick { border-color: var(--line-dark); background: transparent; }
.demo[data-step="1"] .tick::after { opacity: 0; transform: rotate(45deg) scale(0.4); }
.demo[data-step="1"] .rules-head { color: var(--muted); }
.demo[data-step="1"] .swap > :first-child,
.demo:is([data-step="2"], [data-step="3"]) .swap[data-flip="4"] > :first-child { opacity: 1; }
.demo[data-step="1"] .swap > :last-child,
.demo:is([data-step="2"], [data-step="3"]) .swap[data-flip="4"] > :last-child { opacity: 0; }
.demo:is([data-step="1"], [data-step="2"], [data-step="3"]) .net { color: var(--muted); background: transparent; border-color: var(--line-dark); box-shadow: none; }
.demo:is([data-step="1"], [data-step="2"], [data-step="3"]) .ph-toast { opacity: 0; transform: translateY(8px); }
.demo:is([data-step="1"], [data-step="2"], [data-step="3"]) .slot-card.new .pill { color: var(--amber); background: var(--amber-wash); }
.demo[data-step="1"] .demo-steps li:nth-child(n+2),
.demo[data-step="2"] .demo-steps li:nth-child(n+3),
.demo[data-step="3"] .demo-steps li:nth-child(n+4) { opacity: 0.5; }
.demo[data-step="1"] .demo-steps li:nth-child(1),
.demo[data-step="2"] .demo-steps li:nth-child(2),
.demo[data-step="3"] .demo-steps li:nth-child(3),
.demo[data-step="4"] .demo-steps li:nth-child(4) { border-color: var(--accent-ink); background: var(--accent-wash); color: var(--accent-ink); }
/* step 2: the rules check ticks through */
.demo[data-step="2"] .rule:nth-child(1) .tick, .demo[data-step="2"] .rule:nth-child(1) .tick::after { transition-delay: 0.2s; }
.demo[data-step="2"] .rule:nth-child(2) .tick, .demo[data-step="2"] .rule:nth-child(2) .tick::after { transition-delay: 0.7s; }
.demo[data-step="2"] .rule:nth-child(3) .tick, .demo[data-step="2"] .rule:nth-child(3) .tick::after { transition-delay: 1.2s; }
.demo[data-step="2"] .rules-head { transition: color var(--motion-slow); transition-delay: 1.5s; }
.demo[data-step="2"] .rules-head .swap > * { transition-delay: 1.5s; }
/* step 3: you approve */
.demo[data-step="3"] .pointer { animation: point 1.3s var(--ease-out) forwards; }
.demo[data-step="3"] .fake-primary { animation: press 1.3s var(--ease-out) forwards; }
/* step 4: scheduled; the networks light up in turn */
.demo[data-step="4"] .net:nth-child(1) { transition-delay: 0.1s; }
.demo[data-step="4"] .net:nth-child(2) { transition-delay: 0.25s; }
.demo[data-step="4"] .net:nth-child(3) { transition-delay: 0.4s; }
.demo[data-step="4"] .net:nth-child(4) { transition-delay: 0.55s; }
.demo[data-step="4"] .net:nth-child(5) { transition-delay: 0.7s; }
.demo[data-step="4"] .ph-toast { transition-delay: 0.6s; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes point {
  0% { opacity: 0; transform: translate(46px, 34px); }
  45% { opacity: 1; transform: translate(0, 0); }
  60% { transform: scale(0.8); }
  75%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes press {
  0%, 52% { transform: none; }
  62% { transform: scale(0.95); }
  80%, 100% { transform: none; }
}

/* ---------- How a post gets out ---------- */
.steps-sec { padding-bottom: var(--space-4xl); }
.sec-head { display: flex; align-items: center; gap: var(--space-xl); }
.sec-head h2 { white-space: nowrap; }
.sec-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg in srgb, color-mix(in srgb, transparent 60%, transparent), color-mix(in srgb, transparent 25%, transparent), transparent); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); margin-top: var(--space-xl); padding: 0; list-style: none; }
.step { padding: var(--space-xl) var(--space-xl) var(--space-xl); }
.step-num { display: flex; align-items: center; gap: var(--space-sm); color: var(--ink-2); font-weight: 700; letter-spacing: 0.16em; font-size: var(--t-subhead-size); }
.badge { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--radius-control); background: var(--accent-wash); color: var(--accent-ink); }
.badge .ico { width: 18px; height: 18px; }
.step h3 { margin: var(--space-md) 0 var(--space-xs); }
.step p { color: var(--ink-2); line-height: 1.6; }

/* ---------- Feature sections ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: center; gap: var(--space-4xl); padding-block: var(--space-4xl); }
.feature.flip .feature-copy { order: 2; }
.feature-copy h2 { margin-top: var(--space-md); }
.feature-copy > p { margin-top: var(--space-lg); color: var(--ink-2); font-size: calc(var(--t-body-size) * 1.12); line-height: 1.6; }
.ticks { display: grid; gap: var(--space-sm); margin-top: var(--space-xl); padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: var(--space-xxl); color: var(--ink-2); line-height: 1.55; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.15em; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-wash); border: 1px solid color-mix(in srgb, var(--accent-ink) 35%, transparent); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: calc(0.15em + 4px); width: 5px; height: 9px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ticks strong { color: var(--ink); }
.feature-copy .actions { margin-top: var(--space-xl); }
.text-link { color: var(--accent-ink); font-weight: 600; }
.go { display: inline-flex; align-items: center; gap: var(--space-xxs); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.go:hover { text-decoration: underline; }
.go .ico { width: 1em; height: 1em; stroke-width: 2; transition: transform var(--motion-standard) var(--ease-out); }
.go:hover .ico { transform: translateX(3px); }

.art { --fs: var(--t-footnote-size); position: relative; font-size: var(--fs); line-height: 1.4; }
.art-a { --glow-c: transparent; }
.art-b { --glow-c: transparent; }
.art-c { --glow-c: transparent; }
.art-card { position: relative; padding: var(--space-lg); }
.art-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.art-k { color: var(--muted); }
.art-t { font-weight: 600; color: var(--ink); }
.art-tag { position: absolute; right: var(--space-md); bottom: calc(-1 * var(--space-xl)); color: var(--muted); font-size: var(--t-caption-size); }
.mono { font-family: var(--mono); }
.art-label { color: var(--accent-ink); }
.art-card > .tiles, .art-card > .node-chips { margin-top: var(--space-sm); }
.post-media.short { height: 64px; }

/* a. calendar */
.seg { display: inline-flex; padding: var(--space-xxs); border: 1px solid var(--line); border-radius: var(--radius-pill); background: color-mix(in srgb, var(--paper-deep) 55%, transparent); }
.seg span { padding: var(--space-xxs) var(--space-sm); border-radius: var(--radius-pill); color: var(--muted); font-size: calc(var(--fs) * 0.92); }
.seg .on { color: var(--ink); background: var(--paper-soft); box-shadow: 0 2px 8px -4px var(--shadow); font-weight: 600; }
.bchips { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }
.bchip { display: inline-flex; align-items: center; gap: var(--space-xxs); padding: var(--space-xxs) var(--space-sm) var(--space-xxs) var(--space-xs); border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); font-weight: 600; font-size: calc(var(--fs) * 0.95); }
.bchip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.c1 { --c: transparent; } .c2 { --c: transparent; } .c3 { --c: var(--accent); }
.cal-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-xs); margin-top: var(--space-md); }
.day { display: flex; flex-direction: column; gap: var(--space-xxs); min-height: 172px; padding: var(--space-xs); border: 1px solid var(--line); border-radius: var(--radius-control); background: color-mix(in srgb, var(--paper-soft) 40%, transparent); }
.dname { color: var(--muted); font-weight: 600; font-size: calc(var(--fs) * 0.9); }
.slot { position: relative; display: grid; padding: var(--space-xxs) var(--space-xxs) var(--space-xxs) var(--space-xs); overflow: hidden; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); border-radius: var(--radius-thumb); background: color-mix(in srgb, var(--c) 14%, var(--paper-soft)); font-size: calc(var(--fs) * 0.9); line-height: 1.25; }
.slot::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.slot b { font-weight: 600; }
.slot span { color: var(--muted); }
.slot.wait { border-style: dashed; }
.slot.drag { z-index: 2; animation: drag 7s var(--ease-out) infinite; }
@keyframes drag {
  0%, 18% { transform: none; box-shadow: none; }
  26% { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 24px -8px var(--shadow); }
  44%, 76% { transform: translate(calc(100% + 2 * var(--space-xs) + var(--space-xs) + 2px), 46px) scale(1.04); box-shadow: 0 10px 24px -8px var(--shadow); }
  84%, 100% { transform: none; box-shadow: none; }
}
.cal-foot { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }

/* b. assistant, rules, person */
.flow { display: grid; justify-items: stretch; max-width: 32rem; margin-inline: auto; }
.node { display: grid; gap: var(--space-xs); padding: var(--space-lg); }
.node-head { display: flex; align-items: center; gap: var(--space-sm); }
.node-head .t-headline { font-size: calc(var(--fs) * 1.15); }
.node-chips { display: flex; flex-wrap: wrap; gap: var(--space-xxs); }
.chip { display: inline-flex; align-items: center; gap: var(--space-xxs); padding: var(--space-xxs) var(--space-sm) var(--space-xxs) var(--space-xs); border-radius: var(--radius-pill); background: var(--paper-deep); color: var(--ink-2); font-weight: 600; }
.chip .ico { width: 14px; height: 14px; color: var(--info); stroke-width: 2.2; }
.node-rules { border-color: color-mix(in srgb, var(--accent-ink) 30%, transparent); }
.held { justify-self: start; animation: held 3.6s var(--ease-out) infinite; }
@keyframes held { 0%, 30% { opacity: 0.35; } 42%, 70% { opacity: 1; } 85%, 100% { opacity: 0.35; } }
.wire { position: relative; justify-self: center; width: 2px; height: 46px; background: linear-gradient(180deg in srgb, color-mix(in srgb, transparent 70%, transparent), color-mix(in srgb, transparent 70%, transparent)); }
.pkt { position: absolute; left: 50%; top: 0; width: 10px; height: 10px; margin-left: calc(-1 * var(--space-xxs)); border-radius: 50%; background: var(--accent-ink); animation: fall 3.6s linear infinite; }
.pkt.bad { background: var(--danger); animation-delay: -1.8s; }
.pkt.later { animation-delay: -1.2s; }
@keyframes fall { 0% { top: -6px; opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { top: calc(100% - 4px); opacity: 0; } }
.nets-row { display: flex; flex-wrap: wrap; gap: var(--space-xxs); }
.nets-row .net { width: auto; height: 26px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); font-size: calc(var(--fs) * 0.88); }

/* c. link in bio */
.bio-art { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); align-items: center; gap: var(--space-md); }
.bio-page { padding: var(--space-xl) var(--space-lg); border-radius: var(--radius-panel); text-align: center; }
.bio-avatar { width: 64px; height: 64px; margin: 0 auto; border: 3px solid var(--paper-soft); border-radius: 50%; background: transparent; box-shadow: 0 8px 20px -8px var(--shadow); }
.bio-name { margin-top: var(--space-sm); font-size: calc(var(--fs) * 1.3); }
.bio-sub { color: var(--muted); }
.bio-links { display: grid; gap: var(--space-xs); margin-top: var(--space-md); padding: 0; list-style: none; }
.bl { position: relative; padding: var(--space-sm) var(--space-md); border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--paper-soft); color: var(--ink); font-weight: 600; }
.bl.code { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); border-style: dashed; border-color: var(--line-dark); text-align: left; }
.bl.code small { display: block; color: var(--muted); font-weight: 500; }
.bl.code .copy { padding: var(--space-xxs) var(--space-xs); border-radius: var(--radius-pill); background: var(--accent-wash); color: var(--accent-ink); font-size: calc(var(--fs) * 0.9); }
.bl.up { animation: tuneup 9s var(--ease-out) infinite; }
.bl.down { animation: tunedown 9s var(--ease-out) infinite; }
@keyframes tuneup { 0%, 30% { transform: translateY(calc(100% + var(--space-xs))); } 42%, 100% { transform: none; } }
@keyframes tunedown { 0%, 30% { transform: translateY(calc(-100% - var(--space-xs))); } 42%, 100% { transform: none; } }
.tap { position: absolute; right: var(--space-md); top: 50%; margin-top: calc(-1 * var(--space-xs)); padding: 0 var(--space-xxs); border-radius: var(--radius-pill); background: var(--accent-wash); color: var(--accent-ink); font-size: calc(var(--fs) * 0.85); opacity: 0; animation: tap 3s var(--ease-out) infinite 1s; }
@keyframes tap { 0% { opacity: 0; transform: translateY(4px); } 20% { opacity: 1; transform: none; } 60% { opacity: 1; transform: translateY(-14px); } 80%, 100% { opacity: 0; transform: translateY(-20px); } }
.shop-k { margin-top: var(--space-md); color: var(--muted); }
.shop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xxs); margin-top: var(--space-xs); }
.shop span { position: relative; aspect-ratio: 1; border-radius: var(--radius-thumb); border: 1px solid var(--line); background: var(--info-wash); }
.shop span:nth-child(2) { background: var(--accent-wash); }
.shop span:nth-child(3) { background: var(--info-wash); }
.shop span::after { content: ""; position: absolute; right: 5px; bottom: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper-soft); }
.minis { display: grid; gap: var(--space-sm); }
.mini { display: grid; gap: var(--space-xxs); padding: var(--space-sm) var(--space-md); }
.mini .t-label { color: var(--accent-ink); font-size: calc(var(--fs) * 0.82); }
.ab { display: grid; gap: 4px; margin-top: 4px; }
.ab i { display: flex; align-items: center; height: 14px; border-radius: var(--radius-pill); background: var(--line); font-style: normal; font-size: 0.75em; font-weight: 700; padding-left: var(--space-xxs); color: var(--muted); overflow: hidden; position: relative; }
.ab i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: var(--radius-pill); background: linear-gradient(90deg in srgb, var(--accent), var(--accent)); opacity: 0.85; animation: grow 6s var(--ease-out) infinite; }
.ab i span { position: relative; color: var(--on-accent); }
@keyframes grow { 0% { transform: scaleX(0.2); transform-origin: left; } 40%, 100% { transform: scaleX(1); transform-origin: left; } }
.qr-row { display: flex; align-items: center; gap: var(--space-sm); }
.qr { flex: none; width: 52px; height: 52px; padding: 4px; border-radius: var(--radius-thumb); background: var(--paper-soft); color: var(--ink); border: 1px solid var(--line); }

/* d. creators */
.deals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.deals .wide { grid-column: 1 / -1; }
.deal { display: grid; align-content: start; gap: var(--space-xs); padding: var(--space-md); }
.deal .t-label { color: var(--accent-ink); font-size: calc(var(--fs) * 0.82); }
.code-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); padding: var(--space-xxs) var(--space-xs); border: 1px dashed var(--line-dark); border-radius: var(--radius-thumb); }
.code-row b { font-family: var(--mono); font-weight: 600; letter-spacing: 0.04em; }
.code-row small { display: block; color: var(--muted); }
.mini-btns { display: flex; gap: var(--space-xxs); }
.mini-btns span { flex: 1; padding: var(--space-xxs) var(--space-xs); border: 1px solid var(--line-dark); border-radius: var(--radius-pill); text-align: center; font-weight: 600; }
.mini-btns .pri { border-color: transparent; color: var(--paper); background: var(--ink); }
.bars { display: flex; align-items: flex-end; gap: var(--space-xxs); height: 54px; padding-top: 4px; }
.bars i { flex: 1; height: var(--h); border-radius: var(--radius-mark); background: linear-gradient(180deg in srgb, transparent, transparent); transform-origin: bottom; animation: grow-bar 5s var(--ease-out) infinite; }
.bars i:nth-child(2) { animation-delay: 0.15s; } .bars i:nth-child(3) { animation-delay: 0.3s; } .bars i:nth-child(4) { animation-delay: 0.45s; } .bars i:nth-child(5) { animation-delay: 0.6s; } .bars i:nth-child(6) { animation-delay: 0.75s; }
@keyframes grow-bar { 0% { transform: scaleY(0.15); } 30%, 100% { transform: scaleY(1); } }
.avatars { display: flex; }
.avatars i { width: 30px; height: 30px; margin-right: -8px; border: 2px solid var(--paper-soft); border-radius: 50%; background: linear-gradient(135deg in srgb, transparent, transparent); }
.avatars i:nth-child(2) { background: linear-gradient(135deg in srgb, transparent, transparent); }
.avatars i:nth-child(3) { background: linear-gradient(135deg in srgb, var(--accent), transparent); }
.trials { display: grid; gap: var(--space-xxs); }
.trial { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; align-items: center; gap: var(--space-xs); }
.trial span { color: var(--ink-2); }
.trial i { height: 10px; border-radius: var(--radius-pill); background: var(--line); position: relative; overflow: hidden; }
.trial i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: var(--radius-pill); background: color-mix(in srgb, var(--accent-ink) 55%, transparent); transform-origin: left; animation: grow 7s var(--ease-out) infinite; }
.trial.win i::before { background: linear-gradient(90deg in srgb, var(--accent), var(--accent)); }
.trial .pill { font-size: calc(var(--fs) * 0.85); }

/* e. UGC */
.ugc { display: grid; gap: var(--space-md); }
.req-brief { padding: var(--space-sm); border-radius: var(--radius-control); background: color-mix(in srgb, var(--paper-soft) 55%, transparent); border: 1px solid var(--line); color: var(--ink-2); }
.req-link { display: inline-flex; align-items: center; gap: var(--space-xxs); color: var(--accent-ink); font-family: var(--mono); font-size: calc(var(--fs) * 0.92); }
.uploads { display: grid; gap: var(--space-xxs); }
.upl { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px var(--space-sm); }
.upl b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upl i { grid-column: 1 / -1; height: 6px; border-radius: var(--radius-pill); background: var(--line); position: relative; overflow: hidden; }
.upl i::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius-pill); background: linear-gradient(90deg in srgb, transparent, var(--accent)); transform-origin: left; animation: upload 6s var(--ease-out) infinite; }
.upl:nth-child(2) i::before { animation-delay: 0.8s; }
@keyframes upload { 0% { transform: scaleX(0.05); } 55%, 100% { transform: scaleX(1); } }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 5.5rem)); gap: var(--space-xs); }
.tile { position: relative; aspect-ratio: 9 / 14; border: 1px solid var(--line); border-radius: var(--radius-thumb); background: var(--info-wash); }
.tile:nth-child(2n) { background: var(--accent-wash); }
.tile::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 12px; margin: calc(-1 * var(--space-xxs)) 0 0 -4px; background: color-mix(in srgb, var(--ink) 55%, transparent); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.tile .heart { position: absolute; right: 4px; top: 4px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); color: var(--danger); }
.tile .heart .ico { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.tile .tagged { position: absolute; left: 4px; right: 4px; bottom: 4px; padding: 0 4px; border-radius: var(--radius-pill); background: var(--surface); font-size: calc(var(--fs) * 0.78); font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tiles.short .tile { aspect-ratio: 1; }

/* f. inbox */
.inbox-art { display: grid; gap: var(--space-sm); }
.cmts { display: grid; gap: var(--space-xxs); padding: 0; list-style: none; }
.cmt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-sm); border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); }
.cmt .who { color: var(--muted); font-size: calc(var(--fs) * 0.9); }
.cmt .net { width: 26px; height: 26px; font-size: calc(var(--fs) * 0.7); }
.cmt.hit { border-color: color-mix(in srgb, var(--accent-ink) 55%, transparent); animation: arrive 6s var(--ease-out) infinite; }
@keyframes arrive { 0% { opacity: 0; transform: translateY(-8px); } 8%, 100% { opacity: 1; transform: none; } }
.reply { display: grid; gap: var(--space-xs); padding: var(--space-md); }
.reply-text { padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-control) var(--radius-control) var(--radius-control) var(--space-xxs); background: var(--accent-wash); color: var(--ink); }
.tester { display: grid; gap: var(--space-xxs); padding: var(--space-md); }
.tester-in { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); border: 1px solid var(--line-dark); border-radius: var(--radius-control); background: var(--paper-soft); color: var(--ink); }
.tester-out { display: flex; align-items: flex-start; gap: var(--space-xxs); color: var(--ink-2); animation: result 6s var(--ease-out) infinite; }
.tester-out .ico { margin-top: var(--space-xxs); color: var(--green); stroke-width: 2.2; }
@keyframes result { 0%, 30% { opacity: 0.25; } 40%, 100% { opacity: 1; } }

/* g. iPhone */
.iphone-art { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-content: center; gap: var(--space-lg); }
.phone.big { position: relative; top: auto; right: auto; width: 268px; }
.phone.big .screen { height: 540px; --fs: var(--t-footnote-size); padding-inline: var(--space-md); }
.phone.big .ph-title { font-size: calc(var(--fs) * 2.3); }
.queue { display: grid; gap: var(--space-xs); margin-top: var(--space-sm); padding: 0; list-style: none; }
.q { position: relative; overflow: hidden; border-radius: var(--radius-control); }
.q-under { position: absolute; inset: 0; display: flex; align-items: center; padding-left: var(--space-md); gap: var(--space-xxs); border-radius: var(--radius-control); background: var(--green-wash); color: var(--green); font-weight: 700; }
.q-under .ico { stroke-width: 2.4; }
.q-row { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: var(--space-xs); padding: var(--space-xs); border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--paper-soft); }
.q-row .thumb { width: 40px; height: 48px; border-radius: var(--radius-thumb); background: var(--info-wash); }
.q:nth-child(2) .thumb { background: var(--accent-wash); }
.q-row b { display: block; font-weight: 600; font-size: calc(var(--fs) * 0.95); }
.q-row small { display: block; color: var(--muted); font-size: calc(var(--fs) * 0.85); }
.q.swipe .q-row { animation: swipe 6s var(--ease-out) infinite; }
.q.swipe .q-under { animation: under 6s linear infinite; }
@keyframes swipe { 0%, 25% { transform: none; } 45%, 62% { transform: translateX(72%); } 72%, 100% { transform: none; } }
@keyframes under { 0%, 20% { opacity: 0; } 28%, 66% { opacity: 1; } 72%, 100% { opacity: 0; } }
.undo { display: flex; align-items: center; justify-content: space-between; margin: auto 0 var(--space-sm); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-control); background: var(--ink); color: var(--paper); font-weight: 600; animation: undo 6s var(--ease-out) infinite; }
.undo span:last-child { color: var(--accent-on-ink); }
@keyframes undo { 0%, 46% { opacity: 0; transform: translateY(8px); } 54%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.share-card { display: grid; gap: var(--space-sm); width: min(100%, 15rem); padding: var(--space-md); }
.share-apps { display: flex; gap: var(--space-sm); }
.share-apps span { display: grid; justify-items: center; gap: 4px; color: var(--muted); font-size: calc(var(--fs) * 0.85); }
.share-apps i { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper-soft); }
.share-apps img { width: 44px; height: 44px; border-radius: var(--radius-thumb); animation: pick 6s var(--ease-out) infinite; }
@keyframes pick { 0%, 30%, 70%, 100% { transform: none; } 40%, 60% { transform: scale(1.08); } }
.side-stack { display: grid; gap: var(--space-sm); }

/* h. brand deals: the checks land one by one, then the deal walks to Paid */
.pipe-art { display: grid; gap: var(--space-sm); }
.deal-checks { display: grid; gap: var(--space-xs); margin-top: var(--space-sm); padding: 0; list-style: none; }
.deal-checks li { display: flex; align-items: flex-start; gap: var(--space-xs); color: var(--ink-2); animation: check-in 8s var(--ease-out) infinite both; }
.deal-checks .ico { margin-top: var(--space-xxs); color: var(--green); stroke-width: 2.2; }
.deal-checks .miss .ico { color: var(--danger); }
.deal-checks li:nth-child(2) { animation-delay: 0.6s; }
.deal-checks li:nth-child(3) { animation-delay: 1.2s; }
.deal-verdict { margin-top: var(--space-sm); animation: check-in 8s var(--ease-out) 1.8s infinite both; }
@keyframes check-in { 0%, 4% { opacity: 0; transform: translateY(var(--space-xxs)); } 10%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.stages { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-sm); padding: 0; list-style: none; }
.stages li { --on: var(--accent-ink); --on-bg: var(--accent-wash); padding: var(--space-xxs) var(--space-sm); border-radius: var(--radius-pill); color: var(--on); background: var(--on-bg); font-weight: 600; animation: stage 9s var(--ease-out) infinite both; }
.stages li:last-child { --on: var(--green); --on-bg: var(--green-wash); }
.stages li:nth-child(2) { animation-delay: 0.8s; }
.stages li:nth-child(3) { animation-delay: 1.6s; }
.stages li:nth-child(4) { animation-delay: 2.4s; }
.stages li:nth-child(5) { animation-delay: 3.2s; }
.stages li:nth-child(6) { animation-delay: 4s; }
@keyframes stage { 0%, 2% { color: var(--muted); background: var(--paper-soft); } 8%, 86% { color: var(--on); background: var(--on-bg); } 96%, 100% { color: var(--muted); background: var(--paper-soft); } }

/* ---------- Closing band (inverse) ---------- */
.band-ink { position: relative; overflow: hidden; color: var(--paper); background: var(--ink); }
.cta-band { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) auto; align-items: center; gap: var(--space-xxl); padding-block: var(--space-5xl); }
.cta-band p { margin-top: var(--space-md); max-width: 38rem; color: var(--muted-on-ink); font-size: calc(var(--t-body-size) * 1.12); line-height: 1.6; }
.cta-band .accent { color: var(--accent-on-ink); }
.cta-band .btn-secondary { color: var(--paper); background: transparent; border-color: var(--line-on-ink); }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--space-4xl) var(--space-xxl); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--paper-soft) 40%, transparent); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(0, 1fr)); gap: var(--space-xxl) var(--space-xl); }
.footer-brand .brand { margin: 0 0 var(--space-md); }
.footer-brand p { color: var(--muted); font-size: var(--t-subhead-size); line-height: 1.6; }
.footer-brand p + p { margin-top: var(--space-sm); }
.site-footer h2 { margin-bottom: var(--space-sm); color: var(--ink); }
.site-footer ul { display: grid; gap: var(--space-xxs); padding: 0; list-style: none; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-2); font-size: var(--t-subhead-size); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent-ink); text-decoration: underline; }
.footer-base { grid-column: 1 / -1; padding-top: var(--space-xl); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--t-footnote-size); }
.footer-base .md-link { margin-top: var(--space-xs); }

/* ---------- Inner pages ---------- */
.page-main { padding-block: var(--space-4xl) var(--space-5xl); }
.page-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: var(--space-xl) var(--space-xxxl); padding: var(--space-xxl) var(--space-xxl) var(--space-xxl); border-radius: var(--radius-panel); }
.page-hero h1 { font-size: calc(var(--t-display-xl-size) * 0.86); line-height: 1.04; letter-spacing: -0.035em; }
.page-hero .lede { max-width: 34rem; }
.page-hero .actions { grid-column: 1 / -1; }
.page-body { margin-top: var(--space-xxxl); }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: var(--space-xxl) var(--space-xxxl); }
.prose { max-width: 42rem; color: var(--ink-2); line-height: 1.7; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: var(--space-md); }
.prose h2 { margin: var(--space-xxl) 0 var(--space-xs); color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose strong { color: var(--ink); }
.prose address { color: var(--ink-2); font-style: normal; line-height: 1.8; }
.facts { display: grid; padding: var(--space-xs) var(--space-lg); }
.facts div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-sm); border-bottom: 1px solid var(--line); font-size: var(--t-subhead-size); line-height: 1.5; }
.facts div:last-child { border-bottom: 0; }
.facts dt { padding-top: var(--space-xxs); color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }
.facts a { color: var(--accent-ink); }
.mail { display: inline-block; margin-top: var(--space-md); overflow-wrap: anywhere; text-decoration: none; }
.mail:hover { text-decoration: underline; }

/* product page: feature cards that link to the home sections */
.tour { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); margin-top: var(--space-xxxl); padding: 0; list-style: none; }
.tour a { display: grid; gap: var(--space-xs); height: 100%; padding: var(--space-lg); color: var(--ink); text-decoration: none; transition: transform var(--motion-standard) var(--ease-out), border-color var(--motion-standard); }
.tour a:hover { transform: translateY(-2px); border-color: var(--accent-ink); }
.tour p { color: var(--ink-2); font-size: var(--t-subhead-size); line-height: 1.55; }
.tour .go { margin-top: auto; padding-top: var(--space-xs); }
.tour .tour-img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--radius-control); margin-bottom: var(--space-xs); background: var(--paper-deep); }
.hub-group { margin-top: var(--space-xxxl); }
.hub-group .tour { margin-top: var(--space-lg); }

/* apps */
.app-list { display: grid; gap: var(--space-lg); margin-top: var(--space-xxxl); }
.app { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: var(--space-xl) var(--space-xxxl); padding: var(--space-xxl); }
.app-id { display: grid; justify-items: start; align-content: start; gap: var(--space-xs); }
.app-icon { width: 88px; height: 88px; border-radius: 22.5%; box-shadow: 0 12px 30px -14px var(--shadow); }
.app-id h2, .app-id h3 { margin-top: var(--space-sm); }
.app-id .t-label { color: var(--muted); }
.hub-group .app-list, .hub-group > .app, .studio-intro .prose { margin-top: var(--space-lg); }
.section-lede { max-width: 40rem; margin-top: var(--space-sm); font-size: var(--t-body-size); }
.site-links { display: grid; gap: var(--space-xxs); padding: 0; list-style: none; }
.app-body .ticks { margin-top: 0; }
.app-body .cmd code { white-space: pre-wrap; word-break: break-all; }
.app-body { display: grid; align-content: start; gap: var(--space-sm); color: var(--ink-2); line-height: 1.65; }
.app-lead { color: var(--ink); }
.app-note { color: var(--muted); font-size: var(--t-footnote-size); font-style: italic; }
.app-flag { border-color: color-mix(in srgb, var(--accent-ink) 40%, transparent); }

/* pricing */
.plans-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); margin: var(--space-xxxl) 0 var(--space-md); }
.plans-bar p { color: var(--muted); font-size: var(--t-subhead-size); }
.billing { display: inline-flex; padding: 4px; border: 1px solid var(--line-dark); border-radius: var(--radius-pill); background: var(--surface); }
.billing[hidden] { display: none; }
.billing button { min-height: 40px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-2); font: inherit; font-size: var(--t-subhead-size); font-weight: 600; cursor: pointer; }
.billing button[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); }
.billing .save { margin-left: var(--space-xxs); color: var(--accent-ink); }
.billing button[aria-pressed="true"] .save { color: var(--on-accent); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); margin: 0; padding: 0; list-style: none; }
.plan { display: flex; flex-direction: column; padding: var(--space-xl); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 12px 40px -12px var(--shadow); }
.plan-for { min-height: 4.5em; margin-top: var(--space-xs); color: var(--ink-2); font-size: var(--t-subhead-size); line-height: 1.5; }
.price { margin-top: var(--space-md); color: var(--ink); font-size: calc(var(--t-metric-size) * 1.3); }
.price small { margin-left: var(--space-xxs); color: var(--muted); font-family: var(--sans); font-size: var(--t-subhead-size); font-weight: 500; letter-spacing: 0; }
.price-alt { min-height: 3em; margin-top: var(--space-xxs); color: var(--muted); font-size: var(--t-footnote-size); line-height: 1.5; }
.limits { display: grid; margin: var(--space-md) 0 var(--space-xl); }
.limits div { display: flex; justify-content: space-between; gap: var(--space-sm); padding-block: var(--space-xs); border-bottom: 1px solid var(--line); font-size: var(--t-subhead-size); }
.limits dt { color: var(--ink-2); }
.limits dd { margin: 0; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-adds { margin: calc(var(--space-md) - var(--space-xl)) 0 var(--space-xl); color: var(--ink-2); font-size: var(--t-footnote-size); line-height: 1.5; }
.plan .btn { margin-top: auto; width: 100%; }
.plan-pick { border-color: var(--accent); outline: 1px solid var(--accent); box-shadow: 0 16px 48px -14px var(--shadow); }
.price:has(.was) { display: flex; flex-wrap: wrap; align-items: baseline; }
.price .was { flex-basis: 100%; color: var(--muted); font-family: var(--sans); font-size: var(--t-subhead-size); font-weight: 500; letter-spacing: 0; }
.price .was[hidden] { display: none; }
.cmp { margin-top: var(--space-5xl); }
.cmp > .lede { max-width: 44rem; margin-top: var(--space-sm); font-size: var(--t-body-size); }
.cmp-wrap { margin-top: var(--space-xl); overflow: clip; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper-soft); }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: var(--t-subhead-size); line-height: 1.45; }
.cmp-label-col { width: 40%; }
.cmp-pick-col { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.cmp-table th, .cmp-table td { padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.cmp-table thead > tr > * { position: sticky; top: var(--head-h, 88px); z-index: 2; padding-block: var(--space-md); background: var(--paper-soft); border-bottom-color: var(--line-dark); }
.cmp-table thead th:nth-child(3) { background: color-mix(in srgb, var(--accent) 7%, var(--paper-soft)); }
.cmp-table thead th { color: var(--ink); font-size: var(--t-headline-size); font-weight: 600; }
.cmp-price { display: block; margin-top: var(--space-xxs); color: var(--muted); font-family: var(--sans); font-size: var(--t-footnote-size); font-weight: 500; font-variant-numeric: tabular-nums; }
.cmp-table tbody th { color: var(--ink-2); font-weight: 500; text-align: left; }
.cmp-table td { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.cmp-table td .ico { width: 20px; height: 20px; color: var(--accent-ink); stroke-width: 2.2; }
.cmp-table .cmp-group th { padding-top: var(--space-lg); color: var(--ink); background: var(--paper); }
.cmp-table tbody:last-child tr:last-child > * { border-bottom: 0; }
.fine { max-width: 52rem; margin-top: var(--space-xl); color: var(--muted); font-size: var(--t-footnote-size); line-height: 1.6; }
.price-section { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-xl) var(--space-xxxl); margin-top: var(--space-5xl); }
.price-section .lede { margin-top: var(--space-sm); font-size: var(--t-body-size); }
.includes { display: grid; gap: var(--space-sm); padding: 0; list-style: none; }
.includes li { position: relative; padding: var(--space-sm) var(--space-md) var(--space-sm) var(--space-4xl); border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--paper-soft); color: var(--ink-2); line-height: 1.55; }
.includes li::before { content: ""; position: absolute; left: var(--space-md); top: calc(var(--space-sm) + 0.15em); width: 20px; height: 20px; border-radius: 50%; background: var(--accent-wash); }
.includes li::after { content: ""; position: absolute; left: calc(var(--space-md) + 7px); top: calc(var(--space-sm) + 0.15em + 4px); width: 5px; height: 9px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.includes strong { color: var(--ink); }
.faq { display: grid; gap: var(--space-sm); }
.faq div { padding: var(--space-md) var(--space-lg); border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--paper-soft); }
.faq dt { color: var(--ink); font-weight: 600; }
.faq dd { margin: var(--space-xxs) 0 0; color: var(--ink-2); line-height: 1.6; }

/* legal: a plain reading column, no glass */
.legal-main { width: min(100% - 2 * var(--page-gutter), 48rem); margin-inline: auto; }
.legal-head { padding: var(--space-xl) 0 var(--space-xl); }
.legal-head h1 { font-size: var(--t-display-size); }
.effective-date { margin-top: var(--space-xs); color: var(--muted); font-size: var(--t-subhead-size); }
.legal-body { padding: var(--space-xxl) var(--space-xxl); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper-soft); }
.legal-body.prose { max-width: none; color: var(--ink-2); }
.legal-body.prose h2 { font-size: var(--t-title-size); }
.legal-body.prose p + p { margin-top: var(--space-md); }
.legal-body.prose h2 + p { margin-top: 0; }
.legal-body .table-scroll { margin-block: var(--space-md); }
.legal-body .compare-table tbody th { width: 22%; }

/* status: the live check, then incidents */
.status-now { display: flex; align-items: baseline; gap: var(--space-sm); color: var(--ink); }
.status-now::before { content: ""; flex: none; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--muted); }
.status-now[data-state="ok"]::before { background: var(--green); }
.status-now[data-state="down"]::before { background: var(--danger); }
.status-checked { margin-top: var(--space-sm); color: var(--muted); font-size: var(--t-footnote-size); }
.incident + .incident, .incident + .incident-none { margin-top: var(--space-xl); }

/* content pages: features, comparisons, use cases, guides, FAQ */
.page-body + .page-body { margin-top: var(--space-4xl); }
.prose ul, .prose ol { display: grid; gap: var(--space-xs); padding-left: 1.25em; }
.prose li::marker { color: var(--accent-ink); }
.prose h3 { margin: var(--space-xl) 0 var(--space-xxs); color: var(--ink); font-size: var(--t-headline-size); }
.prose code { padding: 0 var(--space-xxs); border: 1px solid var(--line); border-radius: var(--radius-thumb); background: var(--paper-soft); font-family: var(--mono); font-size: var(--t-subhead-size); overflow-wrap: anywhere; }
.cmd { margin-top: var(--space-sm); padding: var(--space-sm) var(--space-md); overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--paper-soft); }
.cmd code { padding: 0; border: 0; background: none; white-space: pre; }
.updated { margin-top: var(--space-xs); color: var(--muted); font-size: var(--t-footnote-size); }
.table-scroll { margin-top: var(--space-lg); overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper-soft); }
.compare-table { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: var(--t-subhead-size); line-height: 1.5; }
.compare-table caption { padding: var(--space-sm) var(--space-md); color: var(--muted); font-size: var(--t-footnote-size); text-align: left; caption-side: bottom; }
.compare-table th, .compare-table td { padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { color: var(--ink); background: var(--surface); font-weight: 600; }
.compare-table tbody th { width: 24%; color: var(--ink); font-weight: 600; }
.compare-table td { color: var(--ink-2); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.prompts, .prose .prompts { display: grid; gap: var(--space-sm); padding: 0; list-style: none; }
.prompts li { padding: var(--space-sm) var(--space-md); border-radius: var(--radius-control); background: var(--accent-wash); color: var(--ink); line-height: 1.55; }
.sources { display: grid; gap: var(--space-xxs); padding-left: 1.25em; color: var(--muted); font-size: var(--t-footnote-size); line-height: 1.55; }
.sources a { overflow-wrap: anywhere; }
.page-cta { margin-top: var(--space-4xl); }

/* ---------- Example photos ----------
   Each photo covers the drawn placeholder of its frame. The page script removes
   one that fails to load, so a missing file shows the placeholder again. */
.ex { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; color: transparent; }
.post-media:has(> .ex)::before, .post-media:has(> .ex)::after { display: none; }
.q-row .thumb, .bio-avatar { position: relative; overflow: hidden; }
.tile, .shop span { overflow: hidden; }
.tile:has(> .ex)::after { background: var(--white); filter: drop-shadow(0 1px 3px var(--shadow)); }

/* ---------- How people use Chockstone ----------
   A radio switch shows one panel through :has(), so it needs no script; the
   first radio starts checked. Without :has(), every panel shows in turn. */
.uses { padding-bottom: var(--space-4xl); }
.uc-switch { display: flex; flex-wrap: wrap; gap: var(--space-xxs); width: fit-content; max-width: 100%; min-inline-size: 0; margin: var(--space-xl) 0 0; padding: var(--space-xxs); border-radius: var(--radius-pill); }
.uc-switch label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-lg); border: 1px solid transparent; border-radius: var(--radius-pill); color: var(--ink-2); font-weight: 600; cursor: pointer; transition: background-color var(--motion-standard) var(--ease-out), color var(--motion-standard) var(--ease-out); }
.uc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.uc-switch label:hover { color: var(--ink); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.uc-switch label:has(:checked) { color: var(--accent-ink); background: var(--accent-wash); border-color: color-mix(in srgb, var(--accent-ink) 35%, transparent); }
.uc-switch label:has(:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.uc-panel { display: none; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: var(--space-4xl); margin-top: var(--space-xxxl); }
.uc:has([value="local"]:checked) [data-uc="local"],
.uc:has([value="creator"]:checked) [data-uc="creator"],
.uc:has([value="shop"]:checked) [data-uc="shop"],
.uc:has([value="agency"]:checked) [data-uc="agency"],
.uc:has([value="freelancer"]:checked) [data-uc="freelancer"] { display: grid; }
@supports not selector(:has(*)) {
  .uc-switch { display: none; }
  .uc-panel { display: grid; }
}
.uc-title { margin-top: var(--space-md); font-size: calc(var(--t-display-size) * 0.6); line-height: 1.12; }
.uc-copy .ticks { margin-top: var(--space-lg); }
.uc-copy .actions { margin-top: var(--space-xl); }
.uc-art { justify-self: center; width: min(100%, 30rem); }
.uc-art > .art-card { display: grid; gap: var(--space-sm); }
.uc-art > .art-card > :not(.post-meta) { margin-top: 0; }
.uc-art .queue { gap: var(--space-xs); }
.uc-art .q-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
.uc-art .q-row .pill { font-size: calc(var(--fs) * 0.82); }
.uc-art:has(> .uc-bio) { width: min(100%, 20rem); }
.post-media.tall { height: auto; aspect-ratio: 2 / 1; }
.uc-links { display: grid; gap: var(--space-xs); padding: 0; list-style: none; }
.uc-art .shop-k { margin-top: var(--space-xxs); }
.uc-art .cal-grid .day { min-height: 0; }
.slot-pic { position: relative; display: block; aspect-ratio: 4 / 3; margin: 0 0 4px calc(-1 * var(--space-xxs)); overflow: hidden; border-radius: var(--radius-thumb); background: linear-gradient(135deg in srgb, color-mix(in srgb, var(--c) 40%, var(--paper-soft)), color-mix(in srgb, var(--c) 12%, var(--paper-soft))); }
.uc-tiles { grid-template-columns: repeat(3, minmax(0, 6.5rem)); }
.uc-note { margin-top: var(--space-sm); color: var(--muted); font-size: var(--t-caption-size); text-align: right; }

/* ---------- Find us: two marquee rows of names, the assistants and the networks ---------- */
.find-us { padding-bottom: var(--space-4xl); }
.find-us .sec-head h2 { white-space: normal; }
.find-lede { max-width: 46rem; margin-top: var(--space-lg); }
.mq-rows { display: grid; gap: var(--space-xl); margin-top: var(--space-xxl); }
.mq-row { display: grid; grid-template-columns: 10rem minmax(0, 1fr); align-items: center; gap: var(--space-xl); }
.mq-label { color: var(--muted); }
.mq { border-radius: var(--radius-card); }
.mq:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.mq-view { overflow: hidden; padding-block: var(--space-xxs);
  -webkit-mask-image: linear-gradient(90deg in srgb, transparent, var(--ink) 8%, var(--ink) 92%, transparent);
  mask-image: linear-gradient(90deg in srgb, transparent, var(--ink) 8%, var(--ink) 92%, transparent); }
.mq-track { display: flex; width: max-content; animation: marquee 24s linear infinite; }
.mq-net .mq-track { animation-duration: 56s; animation-direction: reverse; }
.mq:hover .mq-track, .mq:focus-within .mq-track { animation-play-state: paused; }
.mq-set { display: flex; gap: var(--space-sm); margin: 0; padding: 0 var(--space-sm) 0 0; list-style: none; }
.mq-set li { display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-lg); border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font-weight: 600; white-space: nowrap; }
.mq-ai .mq-set li { font-size: var(--t-headline-size); }
.mq-ai .mq-set li::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: linear-gradient(135deg in srgb, var(--accent-ink), var(--accent-ink)); }
.mq-net .mq-set li { color: var(--ink-2); font-size: var(--t-subhead-size); }
.find-links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-xl); margin-top: var(--space-xxl); }
@keyframes marquee { to { transform: translateX(-25%); } }
@media (max-width: 640px) {
  .mq-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
}
@media (prefers-reduced-motion: reduce) {
  .mq-view { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .mq-track { width: auto; }
  .mq-set { flex-wrap: wrap; padding-right: 0; }
  .mq-set[aria-hidden="true"] { display: none; }
}

/* ---------- Scroll reveal (only set by the script on elements below the fold) ---------- */
.rv { opacity: 0; transform: translateY(var(--space-xl)); transition: opacity var(--motion-slow) var(--ease-out), transform var(--motion-slow) var(--ease-out); }
.rv.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-4xl); }
  .hero-copy { max-width: 44rem; }
  .demo-wrap { width: min(100%, 37rem); margin-inline: auto; }
  .site-nav a, .nav-signin { padding: 0 var(--space-xs); }
}
@media (max-width: 980px) {
  .site-nav, .nav-sep, .nav-signin { display: none; }
  .menu { display: block; }
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: var(--space-xxxl); padding-block: var(--space-4xl); }
  .feature.flip .feature-copy { order: 0; }
  .feature-copy { max-width: 42rem; }
  .art { width: min(100%, 36rem); margin-inline: auto; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .uc-panel { grid-template-columns: minmax(0, 1fr); gap: var(--space-xxxl); margin-top: var(--space-xxl); }
  .uc-copy { max-width: 42rem; }
  .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); }
  .footer-brand { grid-column: 1 / -1; }
  .page-hero, .split, .app, .price-section { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .header-bar { padding-left: var(--space-md); border-radius: var(--radius-card); }
  .brand-name { font-size: calc(var(--t-wordmark-size) * 0.82); }
  .hero { padding-block: var(--space-xxxl) var(--space-xxxl); }
  .hero-title { font-size: calc(var(--t-display-xl-size) * 0.8); }
  .lede { font-size: calc(var(--t-body-size) * 1.08); }
  .hero .actions .btn { flex: 1 1 auto; }
  .section-title { font-size: calc(var(--t-large-title-size) * 0.94); }
  .sec-head { gap: var(--space-md); }
  .sec-head h2 { white-space: normal; }
  .demo { padding-bottom: 0; }
  .win-body { grid-template-columns: minmax(0, 1fr); }
  .win-rail, .win-aside { display: none; }
  .win-main { padding: var(--space-md) var(--space-md) var(--space-4xl); }
  .demo { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .win { grid-column: 1 / -1; margin-right: 0; }
  .demo .phone { grid-column: 2; grid-row: 2; position: relative; top: auto; right: auto; margin-top: calc(-1 * var(--space-xxxl)); }
  .demo-steps { grid-column: 1; grid-row: 2; flex-direction: column; align-items: flex-start; margin: var(--space-lg) var(--space-sm) 0 0; }
  .demo-note, .uc-note { text-align: left; }
  .uc-switch { border-radius: var(--radius-card); }
  .uc-switch label { flex: 1 1 auto; justify-content: center; padding: 0 var(--space-sm); }
  .uc-title { font-size: calc(var(--t-large-title-size) * 0.8); }
  .bio-art, .iphone-art { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .minis, .side-stack { width: 100%; }
  .deals { grid-template-columns: minmax(0, 1fr); }
  .cal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .day:nth-child(n+4) { display: none; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); }
  .site-footer nav a, .site-footer .footer-brand a, .fd-crumbs a { min-height: 44px; display: inline-flex; align-items: center; }
  .site-footer ul { gap: 0; }
  .page-hero { padding: var(--space-xl); }
  .page-hero h1 { font-size: calc(var(--t-display-xl-size) * 0.82); }
  .plans, .tour { grid-template-columns: minmax(0, 1fr); }
  .plan .limits { display: none; }
  .plan .price-alt { margin-bottom: var(--space-lg); }
  .plan-for { min-height: 0; }
  .cmp-table { font-size: var(--t-footnote-size); }
  .cmp-label-col { width: 43%; }
  .cmp-table th, .cmp-table td { padding: var(--space-xs); }
  .cmp-table tbody th, .cmp-table .cmp-group th { padding-left: var(--space-sm); }
  .cmp-table thead th { font-size: var(--t-subhead-size); }
  .app { padding: var(--space-xl); }
  .facts { padding-inline: var(--space-md); }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: var(--space-xxs); }
  .legal-body { padding: var(--space-lg); }
}
/* Phones keep Start free in the header: the button and the wordmark tighten. */
@media (max-width: 440px) {
  .header-bar { padding-left: var(--space-sm); gap: var(--space-xxs); }
  .site-header .brand { gap: var(--space-xs); min-width: 0; }
  .site-header .brand-name { font-size: calc(var(--t-wordmark-size) * 0.66); }
  .header-cta { padding: 0 var(--space-sm); }
}
@media (max-width: 374px) {
  .site-header .brand-name { font-size: calc(var(--t-wordmark-size) * 0.58); }
}

/* ---------- Reduced motion: everything stops, the demo shows its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* On your iPhone: the App Store screenshots in a sideways strip. */
.screens-sec { padding-bottom: var(--space-4xl); }
.screens-lede { max-width: 46rem; margin-top: var(--space-lg); }
.screens-cta { margin-top: var(--space-xl); }
.shots { display: flex; gap: var(--space-xl); margin-top: var(--space-xxl); padding: var(--space-xs) var(--space-xxs) var(--space-lg); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
.shots:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius-card); }
.shot { flex: 0 0 auto; width: clamp(13rem, 22vw, 16.25rem); margin: 0; scroll-snap-align: start; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: 0 18px 50px -18px var(--shadow); }
.shot figcaption { display: grid; gap: var(--space-xxs); margin-top: var(--space-sm); color: var(--muted); font-size: var(--t-caption-size); }
.shot figcaption b { color: var(--ink); font-size: var(--t-subhead-size); }
@media (max-width: 640px) { .shot { width: 70vw; } }

/* ---------- Features: each chapter leads with the product's pictures, with a few short lines beside them ---------- */
.fx-hero h1 { max-width: 13ch; }
.fx-jump-nav { margin-top: var(--space-xl); }
.fx-jump { display: flex; flex-wrap: wrap; gap: var(--space-xs); padding: 0; list-style: none; }
.fx-jump a { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 40px; padding: 0 var(--space-md) 0 var(--space-sm); border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink-2); background: var(--surface); font-size: var(--t-subhead-size); font-weight: 600; text-decoration: none; transition: color var(--motion-standard) var(--ease-out), border-color var(--motion-standard) var(--ease-out); }
.fx-jump a:hover { color: var(--ink); border-color: var(--accent-ink); }
.fx-jump a:focus-visible, .fx-more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.fx-jump .ico { width: 16px; height: 16px; color: var(--accent-ink); stroke-width: 2; }
.fx { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); align-items: center; gap: var(--space-4xl); padding-block: var(--space-4xl); scroll-margin-top: var(--space-xxl); }
.fx.flip { grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr); }
.fx.flip .fx-copy { order: 2; }
.fx-copy .ticks li { color: var(--ink); font-weight: 500; }
.fx-lede { margin-top: var(--space-md); }
.fx-lede + .ticks { margin-top: var(--space-lg); }
.fx-links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-xl); margin-top: var(--space-lg); }
.fx-more { margin-top: var(--space-xl); }
.fx-more summary { display: inline-flex; align-items: center; gap: var(--space-xxs); border-radius: var(--radius-control); color: var(--accent-ink); font-weight: 600; cursor: pointer; list-style: none; }
.fx-more summary::-webkit-details-marker { display: none; }
.fx-more summary .ico { width: 1.1em; height: 1.1em; stroke-width: 2; transition: transform var(--motion-standard) var(--ease-out); }
.fx-more[open] summary .ico { transform: rotate(180deg); }
.fx-more ul { display: grid; gap: var(--space-xs); margin-top: var(--space-md); padding-left: 1.25em; color: var(--ink-2); font-size: var(--t-subhead-size); line-height: 1.6; }
.fx-more li::marker { color: var(--accent-ink); }
.fx-stage { display: grid; align-items: center; gap: var(--space-xl); }
.fx-stage.has-phone { grid-template-columns: minmax(0, 1fr) clamp(9.5rem, 14vw, 12.5rem); }
.fx-stage-pair { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.fx-cards { position: relative; display: grid; gap: var(--space-sm); }
.fx-phone { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: 0 18px 50px -18px var(--shadow); }
.fx-stage.has-phone .fx-phone { transform: translateY(var(--space-xl)); }
.fx-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
.fx-pair .fx-phone:last-child { transform: translateY(var(--space-xxxl)); }
.fx-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); padding-block: var(--space-xs); border-top: 1px solid var(--line); }
.art-row + .fx-row { margin-top: var(--space-sm); }
.fx-row b { color: var(--ink); font-weight: 600; }
.fx-row small { display: block; color: var(--muted); }
.fx-row .pill { flex: none; }
.art-card > .post-media, .art-card > .mini-btns { margin-top: var(--space-sm); }
.fx-end { margin-top: var(--space-4xl); }
@media (max-width: 980px) {
  .fx, .fx.flip { grid-template-columns: minmax(0, 1fr); gap: var(--space-xxl); padding-block: var(--space-xxxl); }
  .fx.flip .fx-copy { order: 0; }
  .fx .art { width: 100%; max-width: 44rem; margin-inline: auto; }
}
@media (max-width: 640px) {
  .fx-stage.has-phone, .fx-stage-pair { grid-template-columns: minmax(0, 1fr); }
  .fx-stage.has-phone .fx-phone { width: min(60vw, 14rem); justify-self: center; transform: none; }
  .fx-pair .fx-phone:last-child { transform: translateY(var(--space-xl)); }
  .fx-stage-pair .fx-notes { margin-top: var(--space-xl); }
}

/* Feature detail pages (/features/<slug>/) and the feature cards on /for/ pages, written by scripts/features/build.mjs */
.fx-detail { margin-top: var(--space-xl); }
.fd-crumbs { display: flex; flex-wrap: wrap; gap: var(--space-xs); color: var(--muted); font-size: var(--t-footnote-size); }
.fd-crumbs a { color: var(--ink-2); }
.fd-top { padding-top: var(--space-xxl); }
.fd-section { padding-block: var(--space-4xl) 0; scroll-margin-top: var(--space-xxl); }
.fd-head { max-width: 46rem; }
.fd-head .lede { margin-top: var(--space-md); }
.fd-points { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: var(--space-lg); margin-top: var(--space-xl); }
.fd-point { padding: var(--card-pad-y) var(--card-pad-x); scroll-margin-top: var(--space-xxl); }
.fd-n { display: block; color: var(--accent-ink); font-family: var(--mono); font-size: var(--t-footnote-size); font-weight: 600; letter-spacing: 0.04em; }
.fd-point h3 { margin-top: var(--space-xs); }
.fd-point p { margin-top: var(--space-xs); color: var(--ink-2); line-height: 1.6; }
.fd-point code { font-size: var(--t-subhead-size); overflow-wrap: anywhere; }

.fd-matrix { min-width: 54rem; }
.fd-matrix thead th { font-size: var(--t-footnote-size); }
.fd-matrix tbody th { width: 22%; }
.fd-matrix th:first-child { position: sticky; left: 0; z-index: 1; background: var(--paper-soft); }
.fd-matrix thead th:first-child { background: var(--surface); }
.fd-matrix .us { background: var(--accent-wash); }
.fd-matrix thead .us { color: var(--accent-ink); }
.ck { display: inline-flex; align-items: flex-start; gap: var(--space-xs); font-size: var(--t-footnote-size); line-height: 1.45; }
.ck-mark { position: relative; display: inline-grid; flex: none; place-items: center; width: 20px; height: 20px; border-radius: 50%; }
.ck-mark .ico { width: 12px; height: 12px; stroke-width: 2.5; }
.ck-yes .ck-mark { color: var(--accent-ink); background: var(--accent-wash); border: 1px solid color-mix(in srgb, var(--accent-ink) 35%, transparent); }
.us .ck-yes .ck-mark { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.ck-paid .ck-mark { color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.ck-part .ck-mark { box-shadow: inset 0 0 0 1.5px var(--ink-2); background: linear-gradient(90deg, var(--ink-2) 50%, transparent 50%); background-clip: content-box; padding: 4px; }
.ck-no .ck-mark { color: var(--danger); background: var(--danger-wash); }
.ck-nf .ck-mark { box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.ck-nf { color: var(--muted); }
.fd-matrix-note { margin-top: var(--space-sm); }
.fd-legend { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin-top: var(--space-sm); padding: 0; color: var(--ink-2); list-style: none; }

.fd-chart { margin-top: var(--space-xl); padding: var(--card-pad-y) var(--card-pad-x); }
.fd-chart figcaption { display: grid; gap: var(--space-xxs); }
.fd-cap { color: var(--muted); font-size: var(--t-footnote-size); line-height: 1.5; }
.fd-bars { width: 100%; margin-top: var(--space-lg); border-collapse: collapse; }
.fd-bars th { width: 9.5rem; padding: var(--space-xs) var(--space-md) var(--space-xs) 0; color: var(--ink); font-size: var(--t-subhead-size); font-weight: 600; text-align: left; vertical-align: middle; }
.fd-bars td { padding-block: var(--space-xs); }
.fd-track { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xxs) var(--space-sm); }
.fd-bar { flex: none; width: calc(var(--v) * 60%); height: 20px; border-radius: 0 4px 4px 0; background: var(--accent); }
.fd-val { color: var(--ink); font-size: var(--t-subhead-size); font-weight: 600; font-variant-numeric: tabular-nums; }
.fd-val small { color: var(--muted); font-size: var(--t-footnote-size); font-weight: 400; }
.fd-bars .us th, .fd-bars .us .fd-val { color: var(--accent-ink); }
.fd-bars .na .fd-val { color: var(--muted); font-weight: 400; }

.fd-sources { margin-top: var(--space-xl); }
.fd-sources summary { display: inline-flex; align-items: center; gap: var(--space-xxs); color: var(--accent-ink); font-weight: 600; cursor: pointer; list-style: none; }
.fd-sources summary::-webkit-details-marker { display: none; }
.fd-sources summary .ico { width: 1.1em; height: 1.1em; stroke-width: 2; transition: transform var(--motion-standard) var(--ease-out); }
.fd-sources[open] summary .ico { transform: rotate(180deg); }
.fd-sources .sources { margin-top: var(--space-md); }
.fd-more .fx-jump { margin-top: var(--space-lg); }

.fd-for { padding-bottom: var(--space-xl); }
.fd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: var(--space-lg); margin-top: var(--space-xl); padding: 0; list-style: none; }
.fd-grid > li { display: grid; }
.fd-card { position: relative; display: flex; flex-direction: column; padding: var(--card-pad-y) var(--card-pad-x); transition: border-color var(--motion-standard) var(--ease-out); }
.fd-card:hover { border-color: var(--accent-ink); }
.fd-card-k { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--accent-ink); }
.fd-card-k .ico { width: 16px; height: 16px; stroke-width: 2; }
.fd-card h3 { margin-top: var(--space-sm); }
.fd-card h3 a { color: var(--ink); text-decoration: none; }
.fd-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.fd-card h3 a:focus-visible { outline-color: transparent; }
.fd-card:has(h3 a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.fd-card .ticks { margin-top: var(--space-md); }
.fd-card .go { margin-top: auto; padding-top: var(--space-lg); }
.fd-for > .go { margin-top: var(--space-xl); }
@media (max-width: 640px) {
  .fd-bars th { width: 6.5rem; }
  .fd-bar { width: calc(var(--v) * 100%); }
  .fd-track { flex-direction: column; align-items: flex-start; }
}

/* /try: a link in bio page built from an Instagram name or a link page (server/routes/try.ts fills in the result). */
.try-start { max-width: 48rem; }
.try-title { margin-top: var(--space-xs); }
.try-start .lede, .try-copy .lede { margin-top: var(--space-md); }
.try-form { margin-top: var(--space-xl); padding: var(--card-pad-y) var(--card-pad-x); display: grid; gap: var(--space-xs); }
.try-form label { font-weight: 600; color: var(--ink); }
.try-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.try-row input { flex: 1 1 16rem; min-height: 48px; padding: 0 var(--space-sm); border: 1px solid var(--line-dark); border-radius: var(--radius-control); background: var(--paper); color: var(--ink); font: inherit; font-size: var(--t-headline-size); }
.try-row input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.try-hint { color: var(--muted); font-size: var(--t-footnote-size); }
.try-note { margin-top: var(--space-md); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-control); background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--ink); }
.try-result { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: var(--space-xxxl); align-items: start; }
.try-phone { padding: var(--space-xs); border-radius: var(--radius-panel); }
.try-phone iframe { display: block; width: 100%; height: 720px; border: 0; border-radius: var(--radius-card); background: var(--paper); }
.try-copy .actions { margin-top: var(--space-xl); }
.try-copy .hero-note { margin-top: var(--space-md); }
.try-copy h2 { margin-top: var(--space-xxl); }
.try-more { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; gap: var(--space-md); }
.try-more li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-sm); color: var(--ink-2); }
.try-more strong { color: var(--ink); }
.try-more .ico { color: var(--accent-ink); width: 24px; height: 24px; }
.try-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 4px; margin-top: var(--space-xs); max-width: 22rem; }
.try-posts img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-thumb); }
.try-again { margin-top: var(--space-xxl); }
.try-again summary { cursor: pointer; color: var(--accent-ink); font-weight: 600; }
@media (max-width: 860px) {
  /* On a phone: the heading, then the page, then Claim right under it. */
  .try-result { display: flex; flex-direction: column; gap: 0; }
  .try-copy { display: contents; }
  .try-copy > * { order: 2; }
  .try-copy > .try-head { order: 0; }
  .try-phone { order: 1; max-width: 400px; width: 100%; margin: var(--space-xl) auto 0; }
  .try-phone iframe { height: 560px; }
}

/* ---------- MCP tool list ---------- */
.mcp-groups { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); padding: 0; list-style: none; }
.mcp-group { margin-top: var(--space-xl); scroll-margin-top: var(--head-h, 88px); }
.mcp-table { min-width: 34rem; }
.mcp-table tbody th { width: 30%; overflow-wrap: anywhere; }
.mcp-table tr:target > * { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.mcp-uses { display: block; margin-top: var(--space-xxs); color: var(--muted); font-size: var(--t-footnote-size); }
.mcp-search { display: block; width: 100%; max-width: 28rem; margin-top: var(--space-md); padding: var(--space-sm) var(--space-md); border: 1px solid var(--line-dark); border-radius: var(--radius-control); background: var(--paper-soft); color: var(--ink); font: inherit; }
.mcp-count { margin-top: var(--space-xs); color: var(--muted); font-size: var(--t-footnote-size); }
