@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

/* ═══════════════════════════════════════════════════════════
   TOKENS
   Dark is the default. Light is the alternate, kept warm to
   match the app's light mode. Neutrals in both carry a faint
   teal-grey bias so they read as chosen, not inherited.
   ═══════════════════════════════════════════════════════════ */
:root {
  --paper:       #0F1215;
  --surface:     #161B22;
  --sunk:        #1A1F26;
  --raised:      #21262D;
  --ink:         rgba(255, 255, 255, .94);
  --ink-2:       rgba(255, 255, 255, .68);
  --muted:       rgba(255, 255, 255, .44);
  --faint:       rgba(255, 255, 255, .26);
  --rule:        rgba(255, 255, 255, .09);
  --rule-soft:   rgba(255, 255, 255, .055);
  --rule-strong: rgba(255, 255, 255, .15);

  --accent:      #2ED8A3;
  --accent-ink:  #4EE3B5;
  --tint:        rgba(46, 216, 163, .14);
  --tint-soft:   rgba(46, 216, 163, .07);

  --cta-bg:      #F2F4F3;
  --cta-fg:      #0F1215;

  --creator:     #A18DFF;
  --setter:      #F5C542;

  --pos:  #34D399;
  --warn: #FBBF24;
  --info: #60A5FA;
  --off:  #8A9296;

  --sh-sm: 0 1px 2px rgba(0,0,0,.34);
  --sh-md: 0 2px 6px rgba(0,0,0,.34), 0 12px 32px -14px rgba(0,0,0,.6);
  --sh-lg: 0 4px 12px rgba(0,0,0,.38), 0 40px 90px -34px rgba(0,0,0,.85);

  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", Consolas, monospace;

  --maxw: 1180px;
  --gut: 28px;
  --radius: 14px;
  --radius-sm: 9px;

  /* motion */
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-io:  cubic-bezier(.4, 0, .2, 1);
  --t-fast: .18s;
  --t-mid:  .36s;
  --t-slow: .66s;
}

@media (prefers-color-scheme: light) {
  :root {
    --paper:       #FAFAF9;
    --surface:     #FFFFFF;
    --sunk:        #F4F5F3;
    --raised:      #FFFFFF;
    --ink:         #14171A;
    --ink-2:       #4E5559;
    --muted:       #82898B;
    --faint:       #AEB4B5;
    --rule:        #E4E7E5;
    --rule-soft:   #EEF0EE;
    --rule-strong: #D6DAD8;
    --accent:      #2ED8A3;
    --accent-ink:  #087B57;
    --tint:        rgba(46, 216, 163, .13);
    --tint-soft:   rgba(46, 216, 163, .07);
    --cta-bg:      #14171A;
    --cta-fg:      #FAFAF9;
    --creator:     #6B54D6;
    --setter:      #A8791A;
    --pos:  #17835C;
    --warn: #9A6B08;
    --info: #2563A8;
    --off:  #7B8285;
    --sh-sm: 0 1px 2px rgba(20,23,26,.04);
    --sh-md: 0 1px 3px rgba(20,23,26,.05), 0 8px 24px -12px rgba(20,23,26,.10);
    --sh-lg: 0 2px 6px rgba(20,23,26,.05), 0 28px 70px -28px rgba(20,23,26,.20);
  }
}

:root[data-theme="light"] {
  --paper:       #FAFAF9;
  --surface:     #FFFFFF;
  --sunk:        #F4F5F3;
  --raised:      #FFFFFF;
  --ink:         #14171A;
  --ink-2:       #4E5559;
  --muted:       #82898B;
  --faint:       #AEB4B5;
  --rule:        #E4E7E5;
  --rule-soft:   #EEF0EE;
  --rule-strong: #D6DAD8;
  --accent:      #2ED8A3;
  --accent-ink:  #087B57;
  --tint:        rgba(46, 216, 163, .13);
  --tint-soft:   rgba(46, 216, 163, .07);
  --cta-bg:      #14171A;
  --cta-fg:      #FAFAF9;
  --creator:     #6B54D6;
  --setter:      #A8791A;
  --pos:  #17835C;
  --warn: #9A6B08;
  --info: #2563A8;
  --off:  #7B8285;
  --sh-sm: 0 1px 2px rgba(20,23,26,.04);
  --sh-md: 0 1px 3px rgba(20,23,26,.05), 0 8px 24px -12px rgba(20,23,26,.10);
  --sh-lg: 0 2px 6px rgba(20,23,26,.05), 0 28px 70px -28px rgba(20,23,26,.20);
}

:root[data-theme="dark"] {
  --paper:       #0F1215;
  --surface:     #161B22;
  --sunk:        #1A1F26;
  --raised:      #21262D;
  --ink:         rgba(255, 255, 255, .94);
  --ink-2:       rgba(255, 255, 255, .68);
  --muted:       rgba(255, 255, 255, .44);
  --faint:       rgba(255, 255, 255, .26);
  --rule:        rgba(255, 255, 255, .09);
  --rule-soft:   rgba(255, 255, 255, .055);
  --rule-strong: rgba(255, 255, 255, .15);
  --accent:      #2ED8A3;
  --accent-ink:  #4EE3B5;
  --tint:        rgba(46, 216, 163, .14);
  --tint-soft:   rgba(46, 216, 163, .07);
  --cta-bg:      #F2F4F3;
  --cta-fg:      #0F1215;
  --creator:     #A18DFF;
  --setter:      #F5C542;
  --pos:  #34D399;
  --warn: #FBBF24;
  --info: #60A5FA;
  --off:  #8A9296;
  --sh-sm: 0 1px 2px rgba(0,0,0,.34);
  --sh-md: 0 2px 6px rgba(0,0,0,.34), 0 12px 32px -14px rgba(0,0,0,.6);
  --sh-lg: 0 4px 12px rgba(0,0,0,.38), 0 40px 90px -34px rgba(0,0,0,.85);
}

/* ═══════════════════════════════════════════════════════════
   BASE
   ═══════════════════════════════════════════════════════════ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--t-mid) var(--e-io), color var(--t-mid) var(--e-io);
}

h1, h2, h3, h4 {
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }

:where(a, button, summary, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

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

/* One rhythm class. Nothing else sets section padding. */
.band { padding-block: clamp(64px, 8.5vw, 112px); }
.band--tight { padding-block: clamp(48px, 5.5vw, 72px); }
.band--edge { border-top: 1px solid var(--rule); }

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: .8125rem;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.dlabel {
  font-family: var(--mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}

.shead {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.shead__t { flex: 1; min-width: 0; }
.shead h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); margin-top: 8px; }
.shead__mark {
  flex: none;
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 700px) { .shead__mark { display: none; } }

/* ═══════════════════════════════════════════════════════════
   MOTION PRIMITIVES
   Everything on the page arrives the same way: a short rise
   with an expo-out curve. Stagger is set per-element in JS.
   ═══════════════════════════════════════════════════════════ */
.rv {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--t-slow) var(--e-out),
    transform var(--t-slow) var(--e-out);
  transition-delay: var(--d, 0ms);
}
.rv.on { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════════
   BUTTONS  (never a solid teal fill)
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition:
    transform var(--t-fast) var(--e-out),
    box-shadow var(--t-fast) var(--e-out),
    background var(--t-fast) var(--e-io),
    border-color var(--t-fast) var(--e-io),
    color var(--t-fast) var(--e-io);
}
.btn--ink { background: var(--cta-bg); color: var(--cta-fg); box-shadow: var(--sh-sm); }
.btn--ink:hover { transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn--line {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--rule-strong);
  box-shadow: var(--sh-sm);
}
.btn--line:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink-2); padding-inline: 12px; }
.btn--ghost:hover { color: var(--ink); }
.btn--sm { padding: 8px 14px; font-size: .875rem; border-radius: 8px; }
.btn__arrow { transition: transform var(--t-fast) var(--e-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid) var(--e-io), background var(--t-mid) var(--e-io);
}
.nav.is-stuck {
  border-bottom-color: var(--rule);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.nav__in {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
  transition: height var(--t-mid) var(--e-io);
}
.nav.is-stuck .nav__in { height: 56px; }

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}
.logo__img {
  display: block;
  height: 26px;
  width: auto;
  transition: opacity var(--t-fast) var(--e-io);
}
.logo:hover .logo__img { opacity: .78; }
/* the wordmark is an outline mark, so it needs a real light/dark pair
   rather than a CSS filter — swap on the resolved theme */
.logo__img--on-light { display: none; }
:root[data-theme="light"] .logo__img--on-dark  { display: none; }
:root[data-theme="light"] .logo__img--on-light { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .logo__img--on-dark  { display: none; }
  :root:not([data-theme]) .logo__img--on-light { display: block; }
}
.foot .logo__img { height: 24px; }

.nav__links { display: flex; gap: 26px; margin-left: 8px; font-size: .9063rem; font-weight: 500; }
.nav__links a {
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  padding-block: 4px;
  transition: color var(--t-fast) var(--e-io);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid) var(--e-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__end { margin-left: auto; display: flex; align-items: center; gap: 6px; }

.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: color var(--t-fast) var(--e-io), border-color var(--t-fast) var(--e-io);
}
.iconbtn:hover { color: var(--ink); border-color: var(--accent); }
.iconbtn svg { transition: transform var(--t-slow) var(--e-out); }
:root[data-theme="light"] .iconbtn--theme svg { transform: rotate(180deg); }

.nav__burger { display: none; }

/* mobile drawer */
.drawer {
  display: none;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  overflow: hidden;
}
.drawer__in {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-mid) var(--e-io);
}
.drawer.is-open .drawer__in { grid-template-rows: 1fr; }
.drawer__c { overflow: hidden; }
.drawer nav { display: flex; flex-direction: column; padding: 8px 0 18px; }
.drawer nav a {
  padding: 11px 0;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-soft);
}
.drawer nav a:last-child { border-bottom: none; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-grid; }
  .drawer { display: block; position: sticky; top: 64px; z-index: 55; }
  .nav.is-stuck + .drawer { top: 56px; }
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero { padding-top: clamp(56px, 7vw, 92px); padding-bottom: 0; }

.hero__kick {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 13px 5px 10px;
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: 999px;
  margin-bottom: 28px;
  box-shadow: var(--sh-sm);
}
.hero__kick .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.hero__kick .dot::after {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: ping 2.8s var(--e-out) infinite;
}
@keyframes ping {
  0%   { opacity: .7; transform: scale(.6); }
  60%  { opacity: 0;  transform: scale(1.9); }
  100% { opacity: 0;  transform: scale(1.9); }
}
.hero__kick span:last-child {
  font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-2);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.05rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  max-width: 22ch;
  text-wrap: pretty;
}
/* The second line steps down in weight and tone rather than repeating the
   first at full strength — two lines of solid display ink read as a wall.
   Accent lands on two words only; a whole line of display-size teal is a
   colour block, which is what this treatment exists to avoid. */
.hero h1 .turn {
  display: block;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.hero h1 .turn em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent-ink);
}
.hero__sub { margin-top: 22px; max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ── SIGNATURE: the attribution trail ── */
.trail {
  margin-top: clamp(48px, 6vw, 76px);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--sh-md);
  overflow: visible;
  position: relative;
}
.trail__top {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 13px 20px;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--sunk);
  border-radius: var(--radius) var(--radius) 0 0;
}
.trail__code {
  font-family: var(--mono);
  font-size: .8125rem;
  color: var(--ink);
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--tint);
  border: 1px solid transparent;
  cursor: help;
  position: relative;
  transition: border-color var(--t-fast) var(--e-io);
}
.trail__code:hover, .trail__code:focus-visible { border-color: var(--accent); }

/* the one true pop-up: explains the mechanic on hover */
.pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translate(-50%, 4px);
  width: max-content;
  max-width: 260px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--raised);
  border: 1px solid var(--rule-strong);
  box-shadow: var(--sh-md);
  font-family: var(--sans);
  font-size: .75rem;
  line-height: 1.45;
  color: var(--ink-2);
  letter-spacing: 0;
  text-transform: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast) var(--e-io), transform var(--t-fast) var(--e-out);
  z-index: 10;
}
.pop::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: var(--rule-strong);
}
.trail__code:hover .pop,
.trail__code:focus-visible .pop { opacity: 1; transform: translate(-50%, 0); }
.pop b { color: var(--ink); font-weight: 650; }

.trail__who { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.trail__who b { font-size: .8125rem; font-weight: 600; color: var(--ink); }

.rail { display: grid; grid-template-columns: repeat(5, 1fr); padding: 30px 20px 26px; }
.node { position: relative; padding-left: 2px; }
.node::before {
  content: "";
  position: absolute;
  top: 5px; left: 11px; right: -11px;
  height: 1px;
  background: var(--rule);
}
.node::after {
  content: "";
  position: absolute;
  top: 5px; left: 11px;
  height: 1px; width: 0;
  background: var(--accent);
  transition: width .5s var(--e-io);
}
.node:last-child::before,
.node:last-child::after { display: none; }
.trail.is-live .node::after { width: 100%; }
.trail.is-live .node:nth-child(1)::after { transition-delay: .15s; }
.trail.is-live .node:nth-child(2)::after { transition-delay: .55s; }
.trail.is-live .node:nth-child(3)::after { transition-delay: .95s; }
.trail.is-live .node:nth-child(4)::after { transition-delay: 1.35s; }

.node__ring {
  display: block;
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--rule-strong);
  background: var(--surface);
  position: relative;
  z-index: 2;
  transition:
    border-color var(--t-mid) var(--e-io),
    background var(--t-mid) var(--e-io),
    box-shadow var(--t-mid) var(--e-out);
}
.trail.is-live .node__ring { border-color: var(--accent); box-shadow: 0 0 0 3px var(--tint-soft); }
.trail.is-live .node:nth-child(1) .node__ring { transition-delay: .05s; }
.trail.is-live .node:nth-child(2) .node__ring { transition-delay: .45s; }
.trail.is-live .node:nth-child(3) .node__ring { transition-delay: .85s; }
.trail.is-live .node:nth-child(4) .node__ring { transition-delay: 1.25s; }
.trail.is-live .node:nth-child(5) .node__ring {
  transition-delay: 1.65s;
  background: var(--tint);
  box-shadow: 0 0 0 4px var(--tint-soft);
}

.node__body {
  margin-top: 14px;
  padding-right: 18px;
  opacity: .4;
  transform: translateY(3px);
  transition: opacity var(--t-mid) var(--e-io), transform var(--t-mid) var(--e-out);
}
.trail.is-live .node__body { opacity: 1; transform: none; }
.trail.is-live .node:nth-child(1) .node__body { transition-delay: .05s; }
.trail.is-live .node:nth-child(2) .node__body { transition-delay: .45s; }
.trail.is-live .node:nth-child(3) .node__body { transition-delay: .85s; }
.trail.is-live .node:nth-child(4) .node__body { transition-delay: 1.25s; }
.trail.is-live .node:nth-child(5) .node__body { transition-delay: 1.65s; }

.node__name { font-size: .8125rem; font-weight: 700; color: var(--ink); letter-spacing: -0.005em; margin-bottom: 3px; }
.node__meta {
  font-family: var(--mono); font-size: .6875rem; color: var(--muted);
  font-variant-numeric: tabular-nums; display: block;
}
.node__val {
  font-family: var(--mono); font-size: .875rem; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums; margin-top: 4px; display: block;
}
.node--paid .node__val { color: var(--accent-ink); }

.trail__foot {
  border-top: 1px solid var(--rule-soft);
  padding: 11px 20px;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  background: var(--sunk);
  border-radius: 0 0 var(--radius) var(--radius);
}
.trail__foot p { font-size: .8125rem; color: var(--ink-2); }
.trail__foot b { color: var(--ink); font-weight: 600; }

@media (max-width: 820px) {
  .rail { grid-template-columns: 1fr; padding: 22px 20px; }
  .node { padding-left: 26px; padding-bottom: 22px; }
  .node:last-child { padding-bottom: 0; }
  .node__ring { position: absolute; left: 0; top: 3px; }
  .node::before { top: 12px; left: 5px; right: auto; bottom: -6px; width: 1px; height: auto; }
  .node::after { top: 12px; left: 5px; width: 1px; height: 0; transition: height .5s var(--e-io); }
  .trail.is-live .node::after { width: 1px; height: calc(100% - 6px); }
  .node__body { margin-top: 0; padding-right: 0; }
  .node__val { display: inline-block; margin-left: 10px; margin-top: 0; }
}

/* ═══════════════════════════════════════════════════════════
   APP MOCKUP
   ═══════════════════════════════════════════════════════════ */
.app {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  position: relative;
}
.app__chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--sunk);
}
.app__dots { display: flex; gap: 6px; }
.app__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-strong); display: block; }
.app__url { flex: 1; text-align: center; font-family: var(--mono); font-size: .6875rem; color: var(--muted); }
.app__grid { display: grid; grid-template-columns: 250px 1fr 268px; min-height: 470px; }

/* diegetic toast — the product's own notification, not a marketing overlay */
.toast {
  position: absolute;
  top: 58px; right: 16px;
  z-index: 5;
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--raised);
  border: 1px solid var(--rule-strong);
  box-shadow: var(--sh-md);
  max-width: 264px;
  opacity: 0;
  transform: translateX(14px);
  transition: opacity var(--t-mid) var(--e-io), transform var(--t-slow) var(--e-out);
}
.toast.in { opacity: 1; transform: none; }
.toast__ic {
  width: 26px; height: 26px; flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--tint-soft);
  display: grid; place-items: center;
  color: var(--accent-ink);
}
.toast__t { font-size: .8125rem; font-weight: 650; color: var(--ink); letter-spacing: -0.01em; }
.toast__s { font-family: var(--mono); font-size: .6875rem; color: var(--muted); margin-top: 1px; }

.pane { border-right: 1px solid var(--rule); min-width: 0; }
.pane:last-child { border-right: none; }
.pane__head { padding: 12px 14px; border-bottom: 1px solid var(--rule-soft); display: flex; align-items: center; gap: 8px; }
.pane__head h4 { font-size: .8125rem; font-weight: 700; letter-spacing: -0.01em; }

.convo {
  display: flex; gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule-soft);
  transition: background var(--t-fast) var(--e-io);
}
.convo.is-open { background: var(--tint-soft); box-shadow: inset 2px 0 0 var(--accent); }
.av {
  width: 28px; height: 28px; flex: none;
  border-radius: 50%;
  background: var(--sunk);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  font-size: .625rem; font-weight: 700; color: var(--ink-2); letter-spacing: .02em;
}
.convo__b { min-width: 0; flex: 1; }
.convo__top { display: flex; align-items: baseline; gap: 6px; }
.convo__n { font-size: .8125rem; font-weight: 650; color: var(--ink); letter-spacing: -0.008em; }
.convo__t { margin-left: auto; font-family: var(--mono); font-size: .625rem; color: var(--muted); }
.convo__p { font-size: .75rem; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pill {
  display: inline-block; margin-top: 6px;
  font-family: var(--mono); font-size: .5625rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 4px; border: 1px solid;
}
.pill--prog { color: var(--info); border-color: color-mix(in srgb, var(--info) 34%, transparent); background: color-mix(in srgb, var(--info) 10%, transparent); }
.pill--foll { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 34%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.pill--no   { color: var(--off);  border-color: color-mix(in srgb, var(--off) 30%, transparent);  background: color-mix(in srgb, var(--off) 9%, transparent); }

.thread { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.daymark { text-align: center; font-family: var(--mono); font-size: .625rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.msg {
  max-width: 82%;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-mid) var(--e-io), transform var(--t-mid) var(--e-out);
}
.msg.in { opacity: 1; transform: none; }
.msg__b {
  padding: 9px 13px; border-radius: 12px;
  font-size: .8125rem; line-height: 1.5;
  color: var(--ink-2);
  background: var(--sunk);
  border: 1px solid var(--rule-soft);
}
.msg--out { margin-left: auto; }
.msg--out .msg__b {
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--ink);
  box-shadow: 0 0 0 3px var(--tint-soft);
}
.msg__by { font-family: var(--mono); font-size: .5938rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.msg--out .msg__by { text-align: right; }
.msg__b a { color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid var(--tint); }

/* typing indicator */
.typing { display: flex; gap: 4px; padding: 12px 14px; align-items: center; }
.typing.hide { display: none; }
.typing i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--muted); display: block;
  animation: blip 1.3s var(--e-io) infinite;
}
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blip {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30%           { opacity: 1;  transform: translateY(-3px); }
}

.ai { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.ai__card {
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface);
  opacity: 0;
  transform: scale(.97);
  transition: opacity var(--t-mid) var(--e-io), transform var(--t-mid) var(--e-out);
}
.ai__card.in { opacity: 1; transform: none; }
.ai__card--sug { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--tint-soft); }
.ai__q { font-size: .8125rem; color: var(--ink); line-height: 1.5; margin-top: 7px; }
.ai__row { display: flex; gap: 7px; margin-top: 11px; }
.mini {
  font-family: var(--sans); font-size: .6875rem; font-weight: 600;
  padding: 5px 11px; border-radius: 6px;
  border: 1px solid var(--rule-strong);
  background: var(--surface); color: var(--ink-2);
  cursor: default;
  transition: border-color var(--t-fast) var(--e-io), color var(--t-fast) var(--e-io);
}
.mini:hover { border-color: var(--accent); color: var(--ink); }
.mini--go { border-color: var(--ink-2); color: var(--ink); }

@media (max-width: 1000px) { .app__grid { grid-template-columns: 1fr 280px; } .pane--list { display: none; } }
@media (max-width: 720px)  { .app__grid { grid-template-columns: 1fr; min-height: 0; } .pane--ai { display: none; } .toast { display: none; } }

.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 34px; }
.caps h4 { font-size: .9375rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 6px; }
.caps p { font-size: .875rem; color: var(--ink-2); }
@media (max-width: 760px) { .caps { grid-template-columns: 1fr; gap: 20px; } }

/* ═══════════════════════════════════════════════════════════
   BENTO
   ═══════════════════════════════════════════════════════════ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--sh-sm);
  transition:
    border-color var(--t-mid) var(--e-io),
    box-shadow var(--t-mid) var(--e-out),
    transform var(--t-mid) var(--e-out);
}
.card:hover {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--rule));
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}
.card--wide { grid-column: span 3; }
.card__h h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.022em; }
.card__h p { font-size: .875rem; color: var(--ink-2); margin-top: 7px; max-width: 44ch; }
.card__demo {
  margin-top: auto;
  background: var(--sunk);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-sm);
  padding: 14px;
}
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } .card, .card--wide { grid-column: span 1; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } }

/* demo widgets */
.score { display: flex; flex-direction: column; gap: 9px; }
.score__top { display: flex; align-items: baseline; justify-content: space-between; }
.score__n { font-family: var(--mono); font-size: 1.375rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.bar { display: grid; grid-template-columns: 74px 1fr 34px; gap: 10px; align-items: center; }
.bar__l { font-size: .75rem; color: var(--ink-2); }
.bar__t { display: block; height: 4px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.bar__f {
  display: block; height: 100%; border-radius: 99px;
  background: var(--accent);
  width: 0;
  transition: width .9s var(--e-out);
  transition-delay: var(--d, 0ms);
}
.bar__f--low { background: var(--warn); }
.on .bar__f, .card.on .bar__f { width: var(--w, 0); }
.bar__v { font-family: var(--mono); font-size: .6875rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

.row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule-soft); }
.row:last-child { border-bottom: none; padding-bottom: 0; }
.row:first-child { padding-top: 0; }
.row__n { font-size: .8125rem; font-weight: 600; color: var(--ink); }
.row__s { font-size: .75rem; color: var(--muted); }
.row__v { margin-left: auto; font-family: var(--mono); font-size: .8125rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.row__act {
  margin-left: auto;
  font-family: var(--mono); font-size: .625rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 5px;
  border: 1px solid var(--rule-strong); color: var(--ink-2); background: var(--surface);
}
.row__act--yes { border-color: color-mix(in srgb, var(--pos) 44%, transparent); color: var(--pos); }
.row__act--no  { border-color: color-mix(in srgb, var(--off) 38%, transparent); color: var(--off); }

.total { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--rule-soft); }
.total__n { font-family: var(--mono); font-size: 1.375rem; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.funnel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.funnel__c { padding: 10px 6px; border-radius: 7px; background: var(--surface); border: 1px solid var(--rule-soft); }
.funnel__n { font-family: var(--mono); font-size: 1.125rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.funnel__c--end { border-color: color-mix(in srgb, var(--accent) 48%, transparent); background: var(--tint-soft); }
.funnel__c--end .funnel__n { color: var(--accent-ink); }

.file { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.file__ic {
  width: 26px; height: 30px; flex: none;
  border: 1px solid var(--rule-strong); border-radius: 3px;
  background: var(--surface);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: .5rem; font-weight: 700; color: var(--muted); letter-spacing: .04em;
}
.file__n { font-size: .8125rem; font-weight: 600; color: var(--ink); }
.file__s { font-family: var(--mono); font-size: .6875rem; color: var(--muted); }

.link { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule-soft); }
.link:last-child { border-bottom: none; padding-bottom: 0; }
.link__u { font-family: var(--mono); font-size: .75rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link__v { margin-left: auto; font-family: var(--mono); font-size: .75rem; font-weight: 600; color: var(--accent-ink); white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════
   MARKETPLACE
   ═══════════════════════════════════════════════════════════ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.side {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--sh-sm);
  transition: border-color var(--t-mid) var(--e-io);
}
.side:hover { border-color: var(--rule-strong); }
.side__k { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.side__k i { width: 6px; height: 6px; border-radius: 50%; display: block; flex: none; }
.side--c .side__k i { background: var(--creator); }
.side--s .side__k i { background: var(--setter); }
.side h3 { font-size: 1.0625rem; letter-spacing: -0.022em; margin-bottom: 8px; }
.side p { font-size: .875rem; color: var(--ink-2); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.tblwrap {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-x: auto;
  box-shadow: var(--sh-sm);
}
table.mkt { width: 100%; border-collapse: collapse; min-width: 780px; }
.mkt th {
  text-align: left; padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--sunk);
  font-family: var(--mono); font-size: .625rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.mkt td { padding: 14px 18px; border-bottom: 1px solid var(--rule-soft); vertical-align: middle; }
.mkt tr:last-child td { border-bottom: none; }
.mkt tbody tr { transition: background var(--t-fast) var(--e-io); }
.who { display: flex; align-items: center; gap: 11px; }
.who__n { font-size: .875rem; font-weight: 650; color: var(--ink); letter-spacing: -0.01em; }
.who__x { font-size: .75rem; color: var(--muted); margin-top: 1px; }
.roleflag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .625rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.roleflag i { width: 5px; height: 5px; border-radius: 50%; display: block; }
.roleflag--c { color: var(--creator); } .roleflag--c i { background: var(--creator); }
.roleflag--s { color: var(--setter); }  .roleflag--s i { background: var(--setter); }
.mkt .det { font-size: .8125rem; color: var(--ink-2); }
.mkt .comp { font-family: var(--mono); font-size: .8125rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.topflag {
  font-family: var(--mono); font-size: .5625rem; font-weight: 700;
  letter-spacing: .1em; padding: 2px 6px; border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  color: var(--accent-ink); background: var(--tint-soft); margin-left: 7px;
}
/* the row's action slides in on hover */

.niches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.niche {
  font-size: .75rem; font-weight: 500;
  padding: 5px 11px;
  border: 1px solid var(--rule); border-radius: 999px;
  color: var(--ink-2); background: var(--surface);
  transition: border-color var(--t-fast) var(--e-io), color var(--t-fast) var(--e-io);
}
.niche:hover { border-color: var(--accent); color: var(--ink); }

/* ═══════════════════════════════════════════════════════════
   COMPARISON
   ═══════════════════════════════════════════════════════════ */
.cmp {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.cmp__r { display: grid; grid-template-columns: 1.1fr 1.4fr 1.4fr; border-bottom: 1px solid var(--rule-soft); transition: background var(--t-fast) var(--e-io); }
.cmp__r:last-child { border-bottom: none; }
.cmp__r--h { background: var(--sunk); border-bottom: 1px solid var(--rule); }
.cmp__c { padding: 15px 20px; font-size: .875rem; }
.cmp__c + .cmp__c { border-left: 1px solid var(--rule-soft); }
.cmp__r--h .cmp__c { font-family: var(--mono); font-size: .625rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.cmp__k { font-weight: 650; color: var(--ink); letter-spacing: -0.01em; }
.cmp__was { color: var(--muted); }
.cmp__is { color: var(--ink); position: relative; padding-left: 34px; }
.cmp__is::before {
  content: ""; position: absolute; left: 20px; top: 21px;
  width: 7px; height: 7px; border-radius: 50%;
  border: 1.5px solid var(--accent);
}
.cmp__r--h .cmp__is { padding-left: 20px; }
.cmp__r--h .cmp__is::before { display: none; }
@media (max-width: 760px) {
  .cmp__r { grid-template-columns: 1fr; }
  .cmp__r--h { display: none; }
  .cmp__c + .cmp__c { border-left: none; border-top: 1px solid var(--rule-soft); }
  .cmp__k { background: var(--sunk); }
  .cmp__was::before { content: "Without Queux — "; font-weight: 600; color: var(--muted); }
  .cmp__is { padding-left: 38px; }
  .cmp__is::before { top: 22px; left: 22px; }
}

/* ═══════════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════════ */
.ptoggles { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.seg {
  display: inline-flex; padding: 3px;
  border: 1px solid var(--rule); border-radius: 10px;
  background: var(--surface); box-shadow: var(--sh-sm);
  position: relative;
}
.seg button {
  font-family: inherit; font-size: .8125rem; font-weight: 600;
  padding: 7px 15px;
  border: 1px solid transparent; border-radius: 7px;
  background: transparent; color: var(--muted);
  cursor: pointer;
  transition: color var(--t-fast) var(--e-io), background var(--t-mid) var(--e-io), border-color var(--t-mid) var(--e-io);
}
.seg button:hover { color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--sunk); border-color: var(--rule); color: var(--ink); }
.savetag {
  align-self: center;
  font-family: var(--mono); font-size: .625rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-ink);
  padding: 4px 9px; border-radius: 5px;
  background: var(--tint-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
}

.plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch;
  transition: opacity var(--t-fast) var(--e-io), transform var(--t-mid) var(--e-out);
}
.plans.swap { opacity: 0; transform: translateY(6px); }
.plan {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--sh-sm);
  transition: border-color var(--t-mid) var(--e-io), transform var(--t-mid) var(--e-out), box-shadow var(--t-mid) var(--e-out);
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--rule-strong); }
.plan--hero { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: var(--sh-md); }
.plan--hero:hover { border-color: var(--accent); }
.plan__tag {
  align-self: flex-start;
  font-family: var(--mono); font-size: .5625rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent-ink);
  padding: 3px 8px; border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  background: var(--tint-soft);
}
.plan h3 { font-size: 1.125rem; letter-spacing: -0.025em; }
.plan__sub { font-size: .8125rem; color: var(--muted); margin-top: 4px; }
.plan__p { display: flex; align-items: baseline; gap: 5px; }
.plan__amt { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.05em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.plan__per { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.plan__note { font-size: .8125rem; color: var(--ink-2); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.plan li { font-size: .8438rem; color: var(--ink-2); padding-left: 20px; position: relative; line-height: 1.45; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  border: 1.5px solid var(--accent);
}
.plan li.inherit { padding-left: 0; font-weight: 650; color: var(--ink); padding-bottom: 4px; border-bottom: 1px solid var(--rule-soft); }
.plan li.inherit::before { display: none; }
.plan .btn { justify-content: center; margin-top: auto; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════
   FAQ  (button + grid-rows so it animates; details can't)
   ═══════════════════════════════════════════════════════════ */
.faq { border-top: 1px solid var(--rule); }
.qa { border-bottom: 1px solid var(--rule); }
.qa__q {
  width: 100%;
  display: block;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 44px 20px 0;
  position: relative;
  font-family: inherit;
  font-size: 1rem; font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.015em;
  transition: color var(--t-fast) var(--e-io);
}
.qa__q:hover { color: var(--accent-ink); }
.qa__q::after {
  content: "";
  position: absolute; right: 10px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform var(--t-mid) var(--e-out), border-color var(--t-fast) var(--e-io);
}
.qa__q[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--accent); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-mid) var(--e-io); }
.qa__q[aria-expanded="true"] + .qa__a { grid-template-rows: 1fr; }
.qa__inner { overflow: hidden; }
.qa__a p { padding: 0 60px 22px 0; font-size: .9375rem; color: var(--ink-2); max-width: 74ch; margin-top: -4px; }

/* ═══════════════════════════════════════════════════════════
   CLOSE + FOOTER
   ═══════════════════════════════════════════════════════════ */
.close {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(36px, 5vw, 60px);
  box-shadow: var(--sh-md);
}
.close h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); max-width: 18ch; }
.close p { margin-top: 16px; max-width: 48ch; }
.close .hero__cta { margin-top: 28px; }

.foot { border-top: 1px solid var(--rule); background: var(--paper); }
.foot__top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; padding-block: 52px 40px; }
.foot__bl p { font-size: .875rem; color: var(--ink-2); margin-top: 14px; max-width: 30ch; }
.foot h5 { font-family: var(--mono); font-size: .625rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot ul a { font-size: .875rem; color: var(--ink-2); text-decoration: none; transition: color var(--t-fast) var(--e-io); }
.foot ul a:hover { color: var(--ink); }
.soon { font-family: var(--mono); font-size: .5rem; font-weight: 700; letter-spacing: .1em; padding: 2px 5px; border-radius: 3px; border: 1px solid var(--rule-strong); color: var(--muted); margin-left: 6px; }
.foot__bot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 20px; border-top: 1px solid var(--rule-soft); }
.foot__bot p { font-size: .8125rem; color: var(--muted); }
.status { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--ink-2); }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: block; }
@media (max-width: 900px) { .foot__top { grid-template-columns: repeat(2, 1fr); } .foot__bl { grid-column: span 2; } }
@media (max-width: 520px) { .foot__top { grid-template-columns: 1fr; } .foot__bl { grid-column: span 1; } }

/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION — everything resolves to its end state
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .rv { opacity: 1; transform: none; }
  .msg, .ai__card, .toast { opacity: 1; transform: none; }
  .trail .node::after { width: 100%; }
  .bar__f { width: var(--w, 0); }
}

/* ═══════════════════════════════════════════════════════════
   SUBPAGES — /about and /contact
   ═══════════════════════════════════════════════════════════ */
.subhero { padding-top: clamp(52px, 7vw, 84px); padding-bottom: clamp(32px, 4vw, 48px); }
.subhero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  letter-spacing: -0.042em;
  line-height: 1.04;
  max-width: 20ch;
  margin-top: 18px;
}
.subhero h1 .turn { color: var(--accent-ink); display: block; }
.subhero .lead { margin-top: 20px; }

/* long-form prose */
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 20px; }
.prose p { font-size: 1.0313rem; line-height: 1.68; color: var(--ink-2); }
.prose p.emph {
  font-size: 1.125rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.016em;
  line-height: 1.45;
}
.prose h3 {
  font-size: 1.25rem;
  letter-spacing: -0.026em;
  margin-top: 12px;
}
.prose ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.prose li { position: relative; padding-left: 22px; font-size: .9688rem; color: var(--ink-2); line-height: 1.55; }
.prose li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  border: 1.5px solid var(--accent);
}

/* two-column "before → after" pairs */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pair__c {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px;
}
.pair__c--to { border-color: color-mix(in srgb, var(--accent) 42%, transparent); }
.pair__c h4 { font-size: 1rem; letter-spacing: -0.02em; margin-bottom: 7px; }
.pair__c p { font-size: .875rem; color: var(--ink-2); }
.pair__c--to h4 { color: var(--accent-ink); }
@media (max-width: 700px) { .pair { grid-template-columns: 1fr; } }

/* ── contact ── */
.contact { display: grid; grid-template-columns: 1fr 420px; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 940px) { .contact { grid-template-columns: 1fr; } }

.reach { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.reach__row {
  display: flex; align-items: baseline; gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.reach__row:last-child { border-bottom: none; }
.reach__k { flex: none; width: 96px; }
.reach__v { font-weight: 650; color: var(--ink); font-size: .9375rem; text-decoration: none; letter-spacing: -0.012em; }
a.reach__v:hover { color: var(--accent-ink); }
.reach__note { font-size: .8125rem; color: var(--muted); margin-left: auto; text-align: right; }
@media (max-width: 560px) { .reach__note { display: none; } }

.expect { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.expect__i h4 { font-size: .9375rem; letter-spacing: -0.016em; margin-bottom: 5px; }
.expect__i p { font-size: .875rem; color: var(--ink-2); }

/* form */
.formcard {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--sh-md);
}
.formcard h2 { font-size: 1.375rem; letter-spacing: -0.028em; }
.formcard > p { font-size: .875rem; color: var(--ink-2); margin-top: 7px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-top: 18px; }
.field > label {
  font-size: .8125rem; font-weight: 600; color: var(--ink); letter-spacing: -0.006em;
}
.field input,
.field textarea {
  font-family: inherit;
  font-size: .9375rem;
  color: var(--ink);
  background: var(--sunk);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 11px 13px;
  width: 100%;
  transition: border-color var(--t-fast) var(--e-io), box-shadow var(--t-fast) var(--e-io);
}
.field textarea { resize: vertical; min-height: 118px; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--tint-soft);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--warn); }

/* role picker — segmented, no solid fills */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.roles button {
  font-family: inherit;
  font-size: .8125rem;
  font-weight: 600;
  padding: 10px 4px;
  border-radius: 9px;
  border: 1px solid var(--rule);
  background: var(--sunk);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--e-io), color var(--t-fast) var(--e-io), background var(--t-fast) var(--e-io);
}
.roles button:hover { color: var(--ink); }
.roles button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--tint-soft);
  color: var(--accent-ink);
}
@media (max-width: 420px) { .roles { grid-template-columns: repeat(2, 1fr); } }

.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formcard .btn { width: 100%; justify-content: center; margin-top: 20px; }
.formnote { font-size: .75rem; color: var(--muted); text-align: center; margin-top: 12px; }

.formmsg {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: .875rem;
  line-height: 1.5;
  display: none;
}
.formmsg.show { display: block; }
.formmsg--ok {
  color: var(--accent-ink);
  background: var(--tint-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.formmsg--err {
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn) 34%, transparent);
}

/* If JS never runs, nothing may stay hidden behind a reveal animation. */
.no-js .rv { opacity: 1; transform: none; }

/* ── contact: enquiry-type chips + about block (matching queux.io/contact) ── */
.topics { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.topics button {
  font-family: inherit;
  font-size: .8125rem;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--e-io), color var(--t-fast) var(--e-io), background var(--t-fast) var(--e-io);
}
.topics button:hover { color: var(--ink); border-color: var(--rule-strong); }
.topics button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--tint-soft);
  color: var(--accent-ink);
}

.aboutbox {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.aboutbox h4 { font-size: .9375rem; letter-spacing: -0.016em; margin-bottom: 8px; }
.aboutbox p { font-size: .875rem; color: var(--ink-2); max-width: 46ch; }
.aboutbox__links { display: flex; gap: 18px; margin-top: 14px; }
.aboutbox__links a {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--t-fast) var(--e-io);
}
.aboutbox__links a:hover { color: var(--accent-ink); }

/* role buttons carry the same emoji as the current site */
.roles button .rico { display: block; font-size: 1.0625rem; line-height: 1; margin-bottom: 5px; }

/* ── narrow phones: the nav bar can't hold four controls ── */
@media (max-width: 460px) {
  .nav__end .btn--ghost,
  .nav__end .iconbtn--theme { display: none; }
}
.drawer__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--rule-soft);
}
.drawer__foot .btn { flex: 1; justify-content: center; }

/* ═══════════════════════════════════════════════════════════
   WAITLIST — inline, sits where the two hero CTAs were.
   Deliberately not a card: the attribution trail directly below
   is the one boxed element in the hero and shouldn't compete.
   ═══════════════════════════════════════════════════════════ */
.wl { margin-top: 32px; max-width: 520px; }

/* Segmented control: one track, one thumb that slides. Two separate
   pills reads as two buttons where only one happens to be lit, which is
   what it was doing before. :has() drives it so the state stays in the
   markup — no second source of truth in JS. */
.wl__roles {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 216px;
  max-width: 100%;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--sunk);
  margin-bottom: 14px;
}
.wl__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-mid) var(--e-out);
  pointer-events: none;
}
.wl__roles:has([data-wlrole="setter"][aria-pressed="true"]) .wl__thumb {
  transform: translateX(100%);
}
.wl__roles button {
  position: relative;
  z-index: 1;
  font-family: inherit;
  font-size: .8125rem;
  font-weight: 600;
  padding: 7px 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--t-fast) var(--e-io);
}
.wl__roles button:hover { color: var(--ink-2); }
.wl__roles button[aria-pressed="true"] { color: var(--ink); }

/* No :has() — fall back to lighting the pressed button directly. */
@supports not selector(:has(*)) {
  .wl__thumb { display: none; }
  .wl__roles button[aria-pressed="true"] {
    background: var(--surface);
    box-shadow: var(--sh-sm);
  }
}

.wl__row { display: flex; gap: 10px; flex-wrap: wrap; }
.wl__row input {
  flex: 1 1 240px;
  min-width: 0;
  font-family: inherit;
  font-size: .9375rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color var(--t-fast) var(--e-io), box-shadow var(--t-fast) var(--e-io);
}
.wl__row input::placeholder { color: var(--faint); }
.wl__row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--tint-soft);
}
.wl__row .btn { flex: 0 0 auto; }

.wl__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl__note { font-size: .8125rem; color: var(--muted); margin-top: 12px; }
.wl__note b { color: var(--ink-2); font-weight: 600; }

.wl__msg {
  margin-top: 14px;
  font-size: .875rem;
  line-height: 1.5;
  display: none;
  padding-left: 20px;
  position: relative;
}
.wl__msg.show { display: block; }
.wl__msg::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 7px; height: 7px; border-radius: 50%;
  border: 1.5px solid currentColor;
}
.wl__msg--ok  { color: var(--accent-ink); }
.wl__msg--err { color: var(--warn); }

@media (max-width: 560px) {
  /* Once the button wraps below the input, a half-width button looks like a
     mistake rather than a choice. */
  .wl__row .btn { flex: 1 1 100%; justify-content: center; }
  .wl__roles { display: flex; width: 100%; }
  .wl__roles button { flex: 1; }
}

/* Role picker needs a label and a plain-English explainer — "Creator" and
   "Setter" mean nothing to someone meeting the product for the first time. */
.wl__roles { margin-bottom: 10px; }
.wl__note { transition: opacity var(--t-fast) var(--e-io); }
.wl__note.swap { opacity: 0; }

/* Role picker carries the side's colour as a hairline and a tint, never a
   fill — the two roles are colour-coded the same way throughout the app. */
.wl__roles button[data-wlrole="creator"][aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--creator) 42%, transparent);
  background: color-mix(in srgb, var(--creator) 11%, transparent);
}
.wl__roles button[data-wlrole="setter"][aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--setter) 42%, transparent);
  background: color-mix(in srgb, var(--setter) 11%, transparent);
}
.wl__roles button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── confirmation, swapped in for the form ── */
.wl__done {
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--sh-sm);
  animation: wlDoneIn var(--t-mid) var(--e-out) both;
}
@keyframes wlDoneIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.wl__done-top { display: flex; gap: 13px; align-items: flex-start; }
.wl__done-mark {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--tint-soft);
  position: relative;
}
.wl__done-mark::after {
  content: "";
  position: absolute;
  left: 7px; top: 3.5px;
  width: 5px; height: 9px;
  border: solid var(--accent-ink);
  border-width: 0 1.75px 1.75px 0;
  transform: rotate(45deg);
}
.wl__done-title { font-weight: 700; font-size: 1rem; color: var(--ink); }
.wl__done-sub {
  font-size: .8438rem;
  color: var(--muted);
  margin-top: 3px;
  overflow-wrap: anywhere;   /* long addresses shouldn't widen the card */
}

.wl__steps {
  list-style: none;
  counter-reset: wlstep;
  margin: 16px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--rule-soft);
  display: grid;
  gap: 11px;
}
.wl__steps li {
  counter-increment: wlstep;
  position: relative;
  padding-left: 29px;
  font-size: .8438rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.wl__steps li::before {
  content: counter(wlstep);
  position: absolute;
  left: 0; top: 0;
  width: 19px; height: 19px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: var(--sunk);
  color: var(--muted);
  font-size: .6875rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.wl__again {
  font-family: inherit;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  padding: 0 0 1px;
  margin-top: 16px;
  cursor: pointer;
  transition: color var(--t-fast) var(--e-io), border-color var(--t-fast) var(--e-io);
}
.wl__again:hover { color: var(--ink); border-color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .wl__done { animation: none; }
}

/* ── legal pages ───────────────────────────────────────────
   Long-form prose. Narrower measure than the marketing bands
   because these are read line by line, not scanned. */
.subhero--tight { padding-bottom: clamp(20px, 2.4vw, 30px); }

.legal__meta { color: var(--muted); font-size: .88rem; margin-top: 14px; }

.legal { max-width: 74ch; }
.legal__intro {
  color: var(--ink-2);
  font-size: 1.03rem;
  line-height: 1.7;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  border-radius: 10px;
  background: var(--tint-soft);
  margin-bottom: 40px;
}
.legal h2 {
  font-size: 1.16rem;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 40px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-soft);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal h3 {
  font-size: .97rem;
  color: var(--ink);
  margin: 24px 0 8px;
}
.legal p { color: var(--ink-2); line-height: 1.72; margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 20px; }
.legal li { color: var(--ink-2); line-height: 1.7; margin-bottom: 9px; }
.legal li strong, .legal p strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { text-decoration-thickness: 2px; }

/* ── honesty labels ────────────────────────────────────────
   Anything on this page showing invented people or numbers says
   so on the page itself, not in a class name. */
.app__tag {
  flex: none;
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 3px 7px;
}
@media (max-width: 560px) { .app__tag { display: none; } }

/* ── how it works ──────────────────────────────────────────
   Four steps, equal weight. Numbers are tinted, not filled —
   a row of solid blocks reads as a template. */
.how {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.how__s {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px 20px 24px;
  background: var(--surface);
}
.how__n {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: var(--tint);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: .75rem;
  margin-bottom: 16px;
}
.how__s h3 { font-size: 1rem; margin: 0 0 8px; color: var(--ink); }
.how__s p { font-size: .9rem; line-height: 1.62; color: var(--ink-2); margin: 0; }

.keep {
  margin-top: 16px;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  border-radius: 12px;
  padding: 24px 26px;
  background: var(--tint-soft);
}
.keep h3 { font-size: 1.06rem; margin: 0 0 10px; color: var(--ink); }
.keep p { margin: 0; color: var(--ink-2); line-height: 1.68; max-width: 82ch; }

@media (max-width: 900px) { .how { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .how { grid-template-columns: 1fr; } .keep { padding: 20px; } }

/* Standalone caps block — three bare columns float in a section of their
   own, so this variant gets the same card as the how-it-works steps. */
.caps--pad { margin-top: 30px; gap: 14px; }
.caps--pad > div {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px 20px;
  background: var(--surface);
}
.caps--pad h4 { margin-bottom: 8px; }
.caps--pad p { line-height: 1.62; }
@media (max-width: 760px) { .caps--pad { gap: 12px; } }
