/* ==========================================================================
   OCTOPUS design system
   Deep water, bright signal. A loud sans for humans, mono for machines.
   No webfonts, no JavaScript, no build step. Motion is CSS only.
   Spec + markup contract: docs/DESIGN.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* type families */
  --sans: Inter, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, "Liberation Sans", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo,
          Consolas, "Liberation Mono", monospace;

  /* type scale */
  --t-display: clamp(44px, 6.4vw, 68px);
  --t-h1: clamp(38px, 5.2vw, 58px);
  --t-h2: clamp(30px, 4.1vw, 50px);
  --t-h3: clamp(21px, 2.2vw, 27px);
  --t-h4: 18px;
  --t-lede: clamp(17.5px, 1.5vw, 21px);
  --t-body: 17px;
  --t-small: 14.5px;
  --t-micro: 12.5px;

  /* spacing scale (4px base) */
  --s1: 4px;   --s2: 8px;   --s3: 12px;  --s4: 16px;
  --s5: 20px;  --s6: 24px;  --s7: 32px;  --s8: 40px;
  --s9: 56px;  --s10: 72px; --s11: 96px; --s12: 128px;

  /* layout */
  --wrap: 1140px;
  --wrap-narrow: 760px;
  --gutter: 24px;

  /* radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* surfaces + ink (light) */
  --bg: #ffffff;
  --bg-tint: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f4f5f8;
  --ink: #0d0f14;
  --ink-muted: #565e70;
  --ink-faint: #6b7385;
  --line: #e6e8ee;
  --line-strong: #d5d9e2;

  /* brand */
  --brand: #5a31f4;
  --brand-strong: #4a22e0;
  --brand-soft: #efebff;
  --brand-ink: #ffffff;

  /* supporting signals */
  --aqua: #0e7c8c;
  --aqua-soft: #e0f4f7;
  --money: #0f7a53;
  --money-soft: #e3f4ec;
  --amber: #ffc53d;
  --amber-ink: #6b4500;
  --amber-soft: #fff4d6;
  --rose: #b02a5b;
  --rose-soft: #fdeaf0;

  /* always-dark band (identical in both colour schemes) */
  --band-bg: #0a0b10;
  --band-bg-2: #0e1018;
  --band-surface: #14171f;
  --band-ink: #ffffff;
  --band-muted: #a9b1c0;
  --band-line: rgba(255, 255, 255, 0.09);

  /* announcement bar */
  --announce-bg: #120f2e;
  --announce-ink: #e9e7fb;

  /* terminal */
  --term-bg: #0b0d14;
  --term-bg-2: #121520;
  --term-ink: #e6eaf2;
  --term-comment: #8e98ab;
  --term-str: #8ce0cf;
  --term-key: #a78bff;
  --term-ok: #63d6b4;
  --term-num: #ffd479;

  /* effects */
  --shadow-xs: 0 1px 2px rgba(13, 15, 20, 0.06);
  --shadow-sm: 0 1px 2px rgba(13, 15, 20, 0.05), 0 4px 12px -6px rgba(13, 15, 20, 0.12);
  --shadow-md: 0 1px 2px rgba(13, 15, 20, 0.05), 0 12px 28px -14px rgba(13, 15, 20, 0.22);
  --shadow-lg: 0 2px 6px rgba(13, 15, 20, 0.06), 0 30px 60px -28px rgba(13, 15, 20, 0.34);
  --shadow-float: 0 2px 4px rgba(13, 15, 20, 0.05), 0 18px 40px -20px rgba(13, 15, 20, 0.3);
  --focus-ring: 0 0 0 3px rgba(90, 49, 244, 0.32);

  --grad-brand: linear-gradient(135deg, #5a31f4 0%, #7b4bff 45%, #0bbfd6 100%);
  --grad-deep: linear-gradient(160deg, #1a1040 0%, #0a0b10 70%);
  --glow-violet: radial-gradient(75% 105% at 26% 4%, rgba(138, 92, 255, 0.95), rgba(96, 52, 214, 0.45) 42%, rgba(122, 76, 255, 0) 76%);
  --glow-aqua:   radial-gradient(75% 105% at 26% 4%, rgba(22, 214, 226, 0.9), rgba(13, 130, 170, 0.42) 42%, rgba(11, 191, 214, 0) 76%);
  --glow-rose:   radial-gradient(75% 105% at 26% 4%, rgba(240, 78, 136, 0.9), rgba(168, 40, 120, 0.42) 42%, rgba(224, 64, 122, 0) 76%);
  --glow-indigo: radial-gradient(75% 105% at 26% 4%, rgba(70, 112, 255, 0.95), rgba(40, 60, 200, 0.45) 42%, rgba(43, 92, 255, 0) 76%);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0b0f;
    --bg-tint: #0f1117;
    --surface: #13161e;
    --surface-2: #191d27;
    --ink: #e9ecf2;
    --ink-muted: #a3abbb;
    --ink-faint: #8790a1;
    --line: #242a36;
    --line-strong: #333b4b;

    --brand: #9b86ff;
    --brand-strong: #b3a3ff;
    --brand-soft: #1e1846;
    --brand-ink: #0b0718;

    --aqua: #45c9d8;
    --aqua-soft: #0d2b31;
    --money: #4ccb90;
    --money-soft: #0e2a1f;
    --amber: #ffc53d;
    --amber-ink: #ffc964;
    --amber-soft: #33260a;
    --rose: #ff7aa8;
    --rose-soft: #2f1220;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5), 0 4px 12px -6px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 28px -14px rgba(0, 0, 0, 0.75);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.5), 0 30px 60px -28px rgba(0, 0, 0, 0.9);
    --shadow-float: 0 2px 4px rgba(0, 0, 0, 0.5), 0 18px 40px -20px rgba(0, 0, 0, 0.8);
    --focus-ring: 0 0 0 3px rgba(155, 134, 255, 0.4);

    color-scheme: dark;
  }
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.032em;
  margin: 0 0 var(--s4);
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.15; letter-spacing: -0.024em; }
h4 { font-size: var(--t-h4); line-height: 1.25; letter-spacing: -0.016em; font-weight: 700; }

p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

strong, b { font-weight: 700; }
small { font-size: var(--t-small); }
hr { border: none; border-top: 1px solid var(--line); margin: var(--s9) 0; }

img, svg, video { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--brand); color: var(--brand-ink); }

/* machine-shaped text: ids, money, API, agent docs */
code, kbd, samp, pre, .mono {
  font-family: var(--mono);
  font-size: 0.9em;
  font-variant-ligatures: none;
}
code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  padding: 0.12em 0.4em;
  font-size: 0.85em;
}
pre {
  background: var(--term-bg);
  color: var(--term-ink);
  padding: var(--s5);
  border-radius: var(--r-md);
  overflow-x: auto;
  line-height: 1.65;
  font-size: 13.5px;
}
pre code { background: none; border: none; padding: 0; font-size: inherit; }

.money {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.tid {
  font-family: var(--mono);
  font-size: var(--t-micro);
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.dim { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */

main { display: block; padding-bottom: var(--s11); }

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

/* full-bleed background section */
.band { padding-block: var(--s11); }
.band-tint { background: var(--bg-tint); }
.band-dark {
  background: var(--band-bg);
  color: var(--band-ink);
  position: relative;
  isolation: isolate;
}
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4 { color: var(--band-ink); }
.band-dark p { color: var(--band-muted); }
.band-dark a { color: #b9a9ff; }

/* centred content block (also the legacy container class) */
.section {
  width: 100%;
  max-width: var(--wrap);
  margin: var(--s11) auto 0;
  padding-inline: var(--gutter);
}
.section > h2 { margin-bottom: var(--s3); }
.section > .sub {
  color: var(--ink-muted);
  font-size: var(--t-lede);
  max-width: 62ch;
  margin: 0 0 var(--s7);
}

.section-head { max-width: 700px; margin-bottom: var(--s8); }
.section-head > h2 { max-width: 17ch; }
.section-head.center { max-width: 820px; margin-inline: auto; text-align: center; }
.section-head.center > h2 { max-width: 20ch; margin-inline: auto; }
.section-head.wide { max-width: 980px; }
.section-head.wide > h2 { max-width: 22ch; }
.section-head > p {
  font-size: var(--t-lede);
  color: var(--ink-muted);
  max-width: 58ch;
  margin-top: var(--s4);
  letter-spacing: -0.005em;
}
.section-head.center > p { margin-inline: auto; }
.band-dark .section-head > p { color: var(--band-muted); }

.kicker, .eyebrow {
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 var(--s3);
  display: block;
}
.band-dark .kicker, .band-dark .eyebrow { color: #a78bff; }

.cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s5); align-items: start; }
.cols-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--s5); align-items: start; }
.cols-2.stretch, .cols-3.stretch { align-items: stretch; }
.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  align-items: center;
}

/* --------------------------------------------------------------------------
   4. ANNOUNCEMENT BAR, HEADER, FOOTER
   -------------------------------------------------------------------------- */

.announce {
  background: var(--announce-bg);
  background-image: linear-gradient(90deg, #120f2e 0%, #1b1450 50%, #0d1b36 100%);
  color: var(--announce-ink);
  font-size: 13.5px;
  line-height: 1.4;
  padding: 11px var(--gutter);
  text-align: center;
  position: relative;
  z-index: 60;
}
.announce .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  flex-wrap: wrap;
  padding: 0;
}
.announce strong { color: #fff; font-weight: 700; }
.announce a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}
.announce .tag {
  display: inline-block;
  background: var(--amber);
  color: #2a1d00;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--r-pill);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(12px)) {
  .site-header {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
  }
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--s5);
  min-height: 68px;
  padding-block: var(--s3);
  flex-wrap: wrap;
}
.site-header .wordmark { margin-right: auto; }
.site-header > .wrap > .btn { flex: none; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.wordmark:hover { text-decoration: none; }
.wordmark-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 2px 8px -2px rgba(90, 49, 244, 0.6);
  flex: none;
}
.wordmark-small {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 17px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s6);
  flex-wrap: wrap;
}
.site-nav a {
  font-size: 15px;
  font-weight: 550;
  color: var(--ink-muted);
  text-decoration: none;
  letter-spacing: -0.01em;
  padding-block: 4px;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a.active { color: var(--ink); font-weight: 700; }
.site-nav .btn { margin-left: var(--s1); color: var(--brand-ink); }
.site-nav .btn:hover { color: var(--brand-ink); }
.site-nav .btn-secondary, .site-nav .btn-ghost { color: var(--ink); }
.site-nav .btn-amber { color: #2a1d00; }

.linklike {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 550;
  color: var(--ink-muted);
}
.linklike:hover { color: var(--ink); }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-tint);
  padding: var(--s10) 0 var(--s8);
  margin-top: var(--s12);
  font-size: var(--t-small);
}
.footer-grid {
  display: grid;
  /* auto-fit cannot be combined with an fr track: the whole declaration
     would be invalid and dropped. The footer has a brand column plus three
     link columns, so state them. */
  grid-template-columns: 1.4fr repeat(3, minmax(140px, 1fr));
  gap: var(--s8) var(--s6);
}
.footer-brand p {
  color: var(--ink-muted);
  max-width: 34ch;
  margin-top: var(--s3);
}
.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: var(--s3);
  font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.footer-col a { color: var(--ink-muted); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-top: var(--s9);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 13.5px;
}
.footer-links { display: flex; gap: var(--s4); flex-wrap: wrap; align-items: baseline; }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  background: var(--brand);
  color: var(--brand-ink);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 13px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s cubic-bezier(0.2, 0.7, 0.3, 1),
              box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}
.btn:hover {
  background: var(--brand-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(90, 49, 244, 0.75), var(--shadow-xs);
  text-decoration: none;
}
.btn:active { transform: translateY(0); box-shadow: var(--shadow-xs); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring), var(--shadow-sm); }

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--ink-faint);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  box-shadow: none;
}
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; transform: translateY(-1px); }

.btn-amber { background: var(--amber); color: #2a1d00; }
.btn-amber:hover { background: #ffd469; box-shadow: 0 10px 24px -10px rgba(255, 197, 61, 0.8); }

.btn-on-dark {
  background: #fff;
  color: #0a0b10;
  border-color: transparent;
}
.btn-on-dark:hover { background: #fff; box-shadow: 0 12px 30px -12px rgba(255, 255, 255, 0.45); }

.btn-outline-dark {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}
.btn-outline-dark:hover { background: rgba(255, 255, 255, 0.12); }

/* .band-dark a sets a link colour at higher specificity than the button
   classes, which left buttons on a dark band as violet text on a white
   pill. Restate them inside the band so the button wins. */
.band-dark .btn-on-dark, .band-dark a.btn-on-dark { color: #0a0b10; }
.band-dark .btn-outline-dark, .band-dark a.btn-outline-dark { color: #fff; }
.band-dark .btn, .band-dark a.btn { text-decoration: none; }

.btn-lg { font-size: 17px; padding: 16px 30px; }
.btn-sm { font-size: 13.5px; padding: 8px 16px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* legacy alias kept working */
.btn-small { font-size: 13.5px; padding: 8px 16px; }

/* --------------------------------------------------------------------------
   6. HERO + FLOATING TASK CARD CLUSTER
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: var(--s10) 0 var(--s9);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -20% auto -20%;
  height: 70%;
  background: radial-gradient(52% 62% at 50% 38%, rgba(90, 49, 244, 0.16), rgba(11, 191, 214, 0.07) 45%, rgba(90, 49, 244, 0) 72%);
  z-index: -1;
  pointer-events: none;
}
.hero > h1, .hero > .lede, .hero > .hero-ctas, .hero > .hero-proof {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero h1 {
  font-size: var(--t-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0 auto var(--s5);
  max-width: 22ch;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not (background-clip: text) {
  .hero h1 em { color: var(--brand); }
}
.hero .lede {
  font-size: var(--t-lede);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 auto var(--s7);
  letter-spacing: -0.008em;
}
.hero-ctas {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.hero-proof {
  display: flex;
  gap: var(--s8);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--s7);
  color: var(--ink-muted);
  font-size: var(--t-small);
}
.hero-proof > div { display: flex; align-items: center; gap: var(--s2); }
.hero-proof b { color: var(--ink); font-weight: 700; }
.hero-proof .money { color: var(--ink); }

/* the stage: side columns of floating cards, hero object centred */
.hero-stage {
  position: relative;
  margin-top: var(--s9);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 620px) minmax(0, 1fr);
  align-items: center;
  gap: 0;
  padding-inline: var(--gutter);
  max-width: 1460px;
  margin-inline: auto;
}
.float-col { display: grid; gap: var(--s5); min-width: 0; }
.float-col-l { justify-items: end; }
.float-col-r { justify-items: start; }
/* only the sharp cards touch the hero object, and only by their own padding,
   so nothing readable is ever sliced by the terminal edge */
.float-col-l .float-card.is-near { margin-right: -10px; }
.float-col-r .float-card.is-near { margin-left: -10px; }
.hero-object { position: relative; z-index: 4; min-width: 0; }

.float-card {
  --dx: 0px;
  --dy: 0px;
  --sc: 1;
  width: min(320px, 100%);
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 15px;
  box-shadow: var(--shadow-float);
  transform: translate3d(var(--dx), var(--dy), 0) scale(var(--sc));
  animation: floaty 7s ease-in-out infinite;
  will-change: translate;
}
.float-card:nth-child(1) { animation-duration: 7.5s; animation-delay: -0.4s; }
.float-card:nth-child(2) { animation-duration: 9s;   animation-delay: -2.2s; }
.float-card:nth-child(3) { animation-duration: 8.2s; animation-delay: -4.1s; }
.float-card:nth-child(4) { animation-duration: 10s;  animation-delay: -1.3s; }

/* depth: --sc/--dx/--dy compose into one transform, the float loop animates
   the separate `translate` property so reduced motion cannot flatten the stack */
.float-card.is-far {
  --sc: 0.9;
  opacity: 0.4;
  filter: blur(1.1px);
  box-shadow: none;
  z-index: 1;
}
.float-card.is-mid {
  --sc: 0.96;
  opacity: 0.72;
  filter: blur(0.3px);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.float-card.is-near { z-index: 3; }

/* the further back a card is, the further out from the hero object it sits */
.float-col-l .float-card.is-far { --dx: -30px; }
.float-col-l .float-card.is-mid { --dx: -15px; }
.float-col-r .float-card.is-far { --dx: 30px; }
.float-col-r .float-card.is-mid { --dx: 15px; }

/* a little vertical scatter so a column does not read as a list */
.float-col .float-card:nth-child(1) { --dy: -12px; }
.float-col .float-card:nth-child(2) { --dy: 8px; }
.float-col .float-card:nth-child(3) { --dy: -4px; }
.float-col-r .float-card:nth-child(1) { --dy: 10px; }
.float-col-r .float-card:nth-child(2) { --dy: -8px; }
.float-col-r .float-card:nth-child(3) { --dy: 6px; }

.fc-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
}
.fc-icon.is-money { background: linear-gradient(140deg, #16a06a, #0f7a53); }
.fc-icon.is-aqua  { background: linear-gradient(140deg, #24c3d6, #0e7c8c); }
.fc-icon.is-rose  { background: linear-gradient(140deg, #f2568c, #b02a5b); }
.fc-body { min-width: 0; flex: 1; }
.fc-title {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 2px;
  color: var(--ink);
}
.fc-sub {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.4;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.fc-pay {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  flex: none;
  align-self: center;
}

/* --------------------------------------------------------------------------
   7. TERMINAL (the hero object, and a first-class block anywhere)
   -------------------------------------------------------------------------- */

.terminal {
  max-width: 100%;
  background: linear-gradient(180deg, var(--term-bg-2) 0%, var(--term-bg) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(10, 11, 16, 0.04);
  text-align: left;
  position: relative;
}
.terminal::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 255, 0.7), transparent);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 0 var(--s4);
  height: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}
.terminal-dots { display: flex; gap: 7px; flex: none; }
.terminal-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a4152;
  display: block;
}
.terminal-dots i:nth-child(1) { background: #ff5f57; }
.terminal-dots i:nth-child(2) { background: #febc2e; }
.terminal-dots i:nth-child(3) { background: #28c840; }
.terminal-title {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--term-comment);
  letter-spacing: 0.01em;
  margin-inline: auto;
}
.terminal-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--term-key);
  flex: none;
}
.terminal-body {
  margin: 0;
  padding: var(--s5) var(--s5) var(--s6);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--term-ink);
  overflow-x: auto;
  white-space: pre;
  tab-size: 2;
}
.terminal-body.wrap-lines { white-space: pre-wrap; word-break: break-word; }
.terminal-body .ln { display: block; }
.terminal-body .ln-in::before { content: "$ "; color: var(--term-key); }
.tok-cmd { color: #fff; font-weight: 600; }
.tok-flag { color: var(--term-key); }
.tok-str { color: var(--term-str); }
.tok-key { color: #87b5ff; }
.tok-num { color: var(--term-num); }
.tok-comment { color: var(--term-comment); }
.tok-ok { color: var(--term-ok); }
.tok-dim { color: var(--term-comment); }
.caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  vertical-align: -0.16em;
  background: var(--term-ok);
  animation: blink 1.15s steps(1) infinite;
}

/* legacy hero-agent block maps onto the terminal look */
.hero-agent {
  margin-top: var(--s8);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(180deg, var(--term-bg-2), var(--term-bg));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.hero-agent-head {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 12px var(--s5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--term-comment);
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.03);
}
.hero-agent-head a { color: var(--term-key); }
.hero-agent pre { margin: 0; border-radius: 0; background: none; padding: var(--s5); }

/* --------------------------------------------------------------------------
   8. BENTO (dark cinematic cards)
   -------------------------------------------------------------------------- */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5);
}
.bento-card {
  --glow: var(--glow-violet);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 410px;
  padding: var(--s7) var(--s7) 0;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)), var(--band-surface);
  border: 1px solid var(--band-line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.25s ease;
}
.bento-card::before {
  content: "";
  position: absolute;
  inset: -34% -12% auto -12%;
  height: 92%;
  background: var(--glow);
  filter: blur(22px);
  opacity: 0.92;
  z-index: -1;
  animation: drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: 0 40px 80px -34px rgba(0, 0, 0, 1); }
.bento-card.glow-violet { --glow: var(--glow-violet); }
.bento-card.glow-aqua   { --glow: var(--glow-aqua); }
.bento-card.glow-rose   { --glow: var(--glow-rose); }
.bento-card.glow-indigo { --glow: var(--glow-indigo); }
.bento-card.span-2 { grid-column: span 2; min-height: 360px; }

.bento-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 var(--s4);
}
.bento-copy {
  font-size: 16.5px;
  line-height: 1.5;
  letter-spacing: -0.008em;
  color: var(--band-muted);
  margin: 0 0 var(--s6);
  max-width: 46ch;
}
.bento-copy b, .bento-copy strong {
  color: #fff;
  font-weight: 700;
}
.bento-media {
  /* copy is short by design, so cap the gap the auto margin opens above the mock */
  margin: var(--s6) calc(var(--s7) * -1) 0;
  padding-inline: var(--s7);
  position: relative;
  min-height: 90px;
}
/* the media bleeds past the bottom edge and is clipped by the card */
.bento-media > * { margin-bottom: -38px; }
.bento-media.bleed-far > * { margin-bottom: -76px; }
.bento-media.tilt > * {
  transform: rotate(-1.4deg) scale(1.02);
  transform-origin: bottom center;
}

/* small mock UI pieces used inside bento media */
.mock {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md) var(--r-md) 0 0;
  padding: var(--s4);
  box-shadow: 0 -2px 40px -10px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 14px;
  color: var(--band-muted);
}
.mock-row:last-child { border-bottom: none; }
.mock-row b { color: #fff; font-weight: 650; }
.mock-row .money { color: #fff; }
.mock-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--s2);
}
.mock-bar {
  height: 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.mock-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grad-brand);
}
.mock-check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  font-size: 14px;
  color: var(--band-muted);
}
.mock-check::before {
  content: "";
  width: 17px;
  height: 17px;
  border-radius: 5px;
  flex: none;
  margin-top: 2px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.mock-check.done::before {
  background: var(--term-ok);
  border-color: var(--term-ok);
}
.mock-check.done::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #0b0d14;
  border-bottom: 2px solid #0b0d14;
  transform: rotate(-45deg);
}
.mock-check.done { color: #fff; }

/* --------------------------------------------------------------------------
   9. TASK BOARD
   -------------------------------------------------------------------------- */

.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--s4);
}
.task-card {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.3, 1),
              box-shadow 0.18s ease, border-color 0.18s ease;
}
.task-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
  text-decoration: none;
}
.task-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s2);
}
.task-card h3 {
  margin: 0;
  font-size: 18.5px;
  line-height: 1.25;
  letter-spacing: -0.022em;
}
.task-cat {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.task-desc {
  margin: 0;
  font-size: var(--t-small);
  color: var(--ink-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.task-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s2);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
}
.task-pay {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.task-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  text-align: right;
}
.task-card.sample { border-style: dashed; cursor: default; box-shadow: none; }
.task-card.sample:hover { transform: none; box-shadow: none; border-color: var(--line); }
.sample-note { font-size: var(--t-small); margin: 0 0 var(--s5); color: var(--ink-muted); }

.filter-bar {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  margin: var(--s5) 0 var(--s7);
}
.filter-bar a {
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-pill);
  padding: 7px 15px;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.filter-bar a:hover { color: var(--ink); border-color: var(--line-strong); text-decoration: none; }
.filter-bar a.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* --------------------------------------------------------------------------
   10. BADGES + STATUS PILLS
   -------------------------------------------------------------------------- */

.badge, .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--ink-muted);
  white-space: nowrap;
  line-height: 1.45;
}
.badge .dot, .pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.badge-open, .pill-open { background: var(--money-soft); color: var(--money); }
.badge-claimed, .pill-claimed { background: var(--amber-soft); color: var(--amber-ink); }
.badge-submitted, .pill-submitted { background: var(--brand-soft); color: var(--brand); }
.badge-approved, .pill-approved,
.badge-completed, .pill-completed { background: var(--money); color: #fff; }
.badge-expired, .pill-expired { background: var(--surface-2); color: var(--ink-faint); }
.badge-changes_requested, .pill-changes_requested { background: var(--rose-soft); color: var(--rose); }
.badge-example, .pill-example {
  background: transparent;
  border-color: var(--brand);
  border-style: dashed;
  color: var(--brand);
}
.pill-live {
  background: var(--money-soft);
  color: var(--money);
}
.pill-live .dot { animation: pulse 2s ease-in-out infinite; }

.badge-lg, .pill-lg { font-size: 12.5px; padding: 6px 13px; }

/* on dark surfaces */
.band-dark .badge, .band-dark .pill,
.bento-card .badge, .bento-card .pill,
.mock .badge, .mock .pill {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.band-dark .badge-open, .band-dark .pill-open,
.mock .badge-open, .mock .pill-open { background: rgba(99, 214, 180, 0.16); color: #63d6b4; }
.band-dark .badge-claimed, .band-dark .pill-claimed,
.mock .badge-claimed, .mock .pill-claimed { background: rgba(255, 197, 61, 0.16); color: #ffc53d; }
.band-dark .badge-submitted, .band-dark .pill-submitted,
.mock .badge-submitted, .mock .pill-submitted { background: rgba(167, 139, 255, 0.18); color: #b9a9ff; }

/* --------------------------------------------------------------------------
   11. FORMS
   -------------------------------------------------------------------------- */

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s7);
  box-shadow: var(--shadow-md);
  max-width: 460px;
}
form.stack { max-width: 460px; }
.field { margin-bottom: var(--s5); }
label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 6px;
}
.field-note, .hint {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 6px 0 0;
}
input, textarea, select {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%),
                    linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}
input.input-mono, textarea.input-mono, .input-mono { font-family: var(--mono); font-size: 15px; }
input[type="checkbox"], input[type="radio"] { width: auto; }
textarea { min-height: 120px; resize: vertical; }
fieldset { border: none; padding: 0; margin: 0 0 var(--s5); }
.checkline {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  font-size: var(--t-small);
  color: var(--ink-muted);
}
.checkline label { font-weight: 400; color: var(--ink-muted); margin: 0; }

/* --------------------------------------------------------------------------
   12. PANELS, NOTICES, STEPS, TILES
   -------------------------------------------------------------------------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s7);
  box-shadow: var(--shadow-sm);
}
.panel > h3 { margin: 0 0 var(--s5); }
.panel .panel-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-bottom: var(--s2);
}

.notice {
  border: 1px solid var(--amber);
  background: var(--amber-soft);
  color: var(--ink);
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-size: var(--t-small);
  margin: var(--s4) 0;
}
.notice-ok { border-color: var(--money); background: var(--money-soft); }
.notice-info { border-color: var(--brand); background: var(--brand-soft); }
.notice-bad { border-color: var(--rose); background: var(--rose-soft); }

.ribbon {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  border: 1px solid var(--brand);
  background: var(--brand-soft);
  color: var(--ink);
  border-radius: var(--r-md);
  padding: 12px 18px;
  font-size: var(--t-small);
  margin-top: var(--s5);
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s5); }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 56px;
  margin: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 6px 14px -8px rgba(90, 49, 244, 0.9);
}
.steps b { display: block; font-size: 17px; letter-spacing: -0.015em; margin-bottom: 2px; }
.steps .s-note { color: var(--ink-muted); font-size: var(--t-small); }

.grid-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s4); }
.cat-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5);
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.18s ease;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
/* usable as an <a> without the heading turning violet or the tile underlining */
.cat-tile, a.cat-tile { color: inherit; text-decoration: none; display: block; }
.cat-tile:hover, a.cat-tile:hover { text-decoration: none; }
.cat-tile .cat-icon { font-size: 22px; line-height: 1; }
.cat-tile h3 { margin: var(--s3) 0 4px; font-size: 17px; letter-spacing: -0.02em; }
.cat-tile p { margin: 0; font-size: var(--t-small); color: var(--ink-muted); }

/* stat tiles */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--s4);
}
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5);
  box-shadow: var(--shadow-xs);
}
.stat-tile .n, .stat .n {
  display: block;
  font-family: var(--mono);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-tile .l, .stat .l {
  display: block;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 4px;
}
.stat-tile .trend { font-size: 12.5px; color: var(--money); font-weight: 600; }
.band-dark .stat-tile {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--band-line);
  box-shadow: none;
}
.band-dark .stat-tile .n { color: #fff; }
.band-dark .stat-tile .l { color: var(--band-muted); }

/* legacy strip */
.stats-strip {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  margin-top: var(--s8);
  box-shadow: var(--shadow-xs);
}
.stats-strip .stat {
  flex: 1 1 150px;
  padding: var(--s5);
  border-right: 1px solid var(--line);
}
.stats-strip .stat:last-child { border-right: none; }

/* --------------------------------------------------------------------------
   13. TASK DETAIL
   -------------------------------------------------------------------------- */

.task-page { max-width: var(--wrap-narrow); margin: var(--s9) auto 0; padding-inline: var(--gutter); }
.task-page h1 { font-size: clamp(30px, 4.6vw, 44px); margin: var(--s3) 0 var(--s4); }
.task-headline { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.task-pay-big {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.posted-by {
  display: flex;
  gap: var(--s3);
  align-items: center;
  flex-wrap: wrap;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-size: var(--t-small);
  color: var(--ink-muted);
  margin: var(--s5) 0;
}
.posted-by b { color: var(--ink); }

.criteria { list-style: none; padding: 0; margin: 0; }
.criteria li {
  padding: 12px 0 12px 34px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.criteria li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
}
.criteria li.done::before {
  background: var(--money);
  border-color: var(--money);
}
.criteria li.done::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 19px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.task-desc-full { white-space: pre-wrap; }

.submission {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5);
  margin: var(--s4) 0;
  box-shadow: var(--shadow-xs);
}
.submission h4 {
  margin: 0 0 var(--s3);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}
.crit-q {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  margin: var(--s4) 0 2px;
}
.crit-a { margin: 0; white-space: pre-wrap; }
.attachment-list { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); }
.attachment-list a {
  font-family: var(--mono);
  font-size: 12.5px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  padding: 6px 11px;
  text-decoration: none;
  background: var(--surface-2);
  color: var(--ink-muted);
}
.attachment-list a:hover { color: var(--ink); border-color: var(--line-strong); text-decoration: none; }

/* --------------------------------------------------------------------------
   14. TABLES + DASHBOARD
   -------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; border-radius: var(--r-lg); }
table.plain, .table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
table.plain th, .table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 14px 10px 0;
  white-space: nowrap;
}
table.plain td, .table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px 13px 0;
  vertical-align: middle;
}
table.plain tbody tr:hover, .table tbody tr:hover { background: var(--surface-2); }
.table td.num, table.plain td.num {
  font-family: var(--mono);
  text-align: right;
  font-variant-numeric: tabular-nums;
  padding-right: 0;
}

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-top: var(--s9);
  margin-bottom: var(--s6);
}
.balance-chip {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s2);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--money-soft);
  color: var(--money);
  border-radius: var(--r-pill);
  padding: 10px 20px;
}
.balance-chip .l {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   15. PROSE (policy, agent docs, markdown)
   -------------------------------------------------------------------------- */

.page-narrow { max-width: var(--wrap-narrow); margin: var(--s9) auto 0; padding-inline: var(--gutter); }
.page-narrow > h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: var(--s5); }

.prose, .md-body { font-size: 17px; line-height: 1.65; }
.prose h1, .md-body h1 { font-size: clamp(32px, 4.6vw, 44px); margin-top: 0; }
.prose h2, .md-body h2 { font-size: clamp(24px, 3vw, 32px); margin-top: var(--s9); }
.prose h3, .md-body h3 { font-size: 20px; margin-top: var(--s7); }
.prose p, .md-body p { color: var(--ink); }
.prose ul, .prose ol, .md-body ul, .md-body ol { padding-left: 1.2em; }
.prose li, .md-body li { margin-bottom: var(--s2); }
.prose table, .md-body table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose td, .prose th, .md-body td, .md-body th {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
}
.prose th, .md-body th { background: var(--surface-2); font-weight: 700; }
.prose blockquote, .md-body blockquote {
  margin: var(--s5) 0;
  padding-left: var(--s5);
  border-left: 3px solid var(--brand);
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   16. MOTION
   -------------------------------------------------------------------------- */

@keyframes floaty {
  0%   { translate: 0 0; }
  50%  { translate: 0 -9px; }
  100% { translate: 0 0; }
}
@keyframes drift {
  0%   { transform: translate3d(-4%, -2%, 0) scale(1); }
  50%  { transform: translate3d(6%, 3%, 0) scale(1.12); }
  100% { transform: translate3d(-2%, 1%, 0) scale(1.04); }
}
@keyframes blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.8); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .float-card, .bento-card, .task-card, .btn, .cat-tile { will-change: auto; }
  .btn:hover, .task-card:hover, .cat-tile:hover, .bento-card:hover { transform: none; }
  .caret { opacity: 1; }
}

/* --------------------------------------------------------------------------
   17. RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero-stage {
    grid-template-columns: 1fr;
    gap: var(--s5);
    max-width: 720px;
  }
  .float-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
  }
  .float-col .float-card {
    --dx: 0px;
    --dy: 0px;
    --sc: 1;
    width: auto;
    margin: 0;
    opacity: 1;
    filter: none;
    box-shadow: var(--shadow-sm);
  }
  .float-col-l { order: 2; }
  .hero-object { order: 1; }
  .float-col-r { order: 3; }
  .float-card.is-far { display: none; }
}

@media (max-width: 860px) {
  :root { --s11: 72px; --s12: 88px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card { min-height: 380px; }
  .bento-card.span-2 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; --s11: 64px; }
  body { font-size: 16.5px; }
  .announce { font-size: 12.5px; padding: 9px var(--gutter); }
  .announce .wrap { gap: var(--s2); }
  .site-header .wrap { gap: var(--s3); row-gap: var(--s3); }
  .site-nav { order: 3; flex: 1 0 100%; justify-content: flex-start; gap: var(--s5); font-size: 14.5px; padding-block: 2px; }
  .site-nav a { font-size: 14.5px; }
  .hero { padding: var(--s8) 0 var(--s7); }
  .hero h1 { max-width: 14ch; letter-spacing: -0.03em; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-proof { gap: var(--s4); flex-direction: column; align-items: center; }
  .float-col { grid-template-columns: 1fr; }
  .float-card.is-mid { display: none; }
  .site-header .wrap { min-height: 60px; }
  .task-grid { grid-template-columns: 1fr; }
  .bento-card { padding: var(--s6) var(--s6) 0; min-height: 340px; }
  .bento-media { margin-inline: calc(var(--s6) * -1); padding-inline: var(--s6); }
  .bento-media.tilt > * { transform: none; }
  .panel, .form-card { padding: var(--s6); }
  .stats-strip .stat { flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--line); }
  .stats-strip .stat:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .dash-head { align-items: flex-start; }
  .terminal-body { font-size: 12.5px; padding: var(--s4); }
  .terminal-title { display: none; }
  .steps li { padding-left: 48px; }
}

@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .hero h1 { letter-spacing: -0.028em; }
  .btn-lg { font-size: 16px; padding: 14px 22px; }
  .task-pay { font-size: 17px; }
}

@media print {
  .announce, .site-header, .site-footer, .hero-stage { display: none; }
  body { background: #fff; color: #000; }
}

/* Honeypot for the human signup form. Off-screen rather than display:none,
   because naive bots skip hidden inputs but fill positioned ones. Paired with
   tabindex="-1" and aria-hidden so keyboard and screen-reader users never
   reach it. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
