/*
 * slopbot.fyi — a sibling of tokenmaxxing.fyi's "GUMDROP" sticker identity.
 * Milk paper, Liquorice ink, Mocha Mousse (Pantone 17-1230) for the thing you press,
 * butterscotch gold for value and highlights, mint only for "live", and a hot amber that only
 * ever means "this is not live": simulated, gated, illustrative. Anton for anything shouted; a plain readable sans for anything read. Panels,
 * chips, buttons and chat bubbles are stickers: a thick ink keyline and a hard offset shadow
 * that collapses when pressed.
 *
 * Shared by index.html and slides.html (slides.css adds the deck layer on top).
 */

:root {
  color-scheme: light;
  --paper: #fffdf7; /* Milk */
  --surface: #ffffff;
  --sunk: #f7f1ec;
  --ink: #211d2e; /* Liquorice */
  --ink-2: #5a5468;
  --muted: #736c82;
  --line: #dbd2e2;
  --edge: #211d2e; /* keylines and hard shadows */
  --mocha: #a47864; /* Pantone Mocha Mousse: the brand swatch (mascot, candy track) */
  --accent: #8f6552; /* Mocha, a shade deeper so white on it passes AA (5.06:1) */
  --on-accent: #ffffff;
  --accent-ink: #7a5443; /* Mocha as text or a focus ring on Milk (6.5:1) */
  --accent-soft: color-mix(in oklab, var(--mocha) 16%, var(--surface)); /* people's bubbles */
  --gold: #f5b82e; /* butterscotch: value, highlights */
  --gold-soft: #fdf0c8;
  --on-gold: #211d2e;
  --alarm: #ff8a1f; /* hot amber: simulated / gated / illustrative, never subtle */
  --alarm-soft: #ffe6c7;
  --on-alarm: #211d2e;
  --danger: #c4331b;
  --band: #211d2e; /* the dark band */
  --on-band: #fffdf7;

  /* the candy track: latte, apricot, butter, mint, periwinkle */
  --candy-latte: #c8a48a;
  --candy-apricot: #f2a65a;
  --candy-butter: #f5b82e;
  --candy-mint: #2fbe92;
  --candy-peri: #7c86e8;

  --font-display: "Anton", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-sans: "Avenir Next", Seravek, ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 22px;
  --gutter: 16px;
}

/* Dark = "Blackcurrant". An explicit [data-theme] from the header toggle wins; with no choice
   (or no JS) the media query follows the OS. The two blocks carry identical tokens. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1c1826;
  --surface: #2a2438;
  --sunk: #221d2f;
  --ink: #f7f4fb;
  --ink-2: #c9c2d6;
  --muted: #9a92ac;
  --line: #453c58;
  --edge: #0c0a12;
  --mocha: #c9a08c;
  --accent: #c9a08c; /* latte-mocha with ink on it (6.95:1) */
  --on-accent: #211d2e;
  --accent-ink: #d9b39f;
  --accent-soft: color-mix(in oklab, var(--mocha) 20%, var(--surface));
  --gold: #ffd060;
  --gold-soft: color-mix(in oklab, var(--gold) 16%, var(--surface));
  --on-gold: #211d2e;
  --alarm: #ffab40;
  --alarm-soft: color-mix(in oklab, var(--alarm) 20%, var(--surface));
  --on-alarm: #211d2e;
  --danger: #ff8a78;
  --band: #13101b;
  --on-band: #f7f4fb;

  --candy-latte: #dcbba6;
  --candy-apricot: #ffb877;
  --candy-butter: #ffd060;
  --candy-mint: #6fe0b2;
  --candy-peri: #a5afff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #1c1826;
    --surface: #2a2438;
    --sunk: #221d2f;
    --ink: #f7f4fb;
    --ink-2: #c9c2d6;
    --muted: #9a92ac;
    --line: #453c58;
    --edge: #0c0a12;
    --mocha: #c9a08c;
    --accent: #c9a08c; /* latte-mocha with ink on it (6.95:1) */
    --on-accent: #211d2e;
    --accent-ink: #d9b39f;
    --accent-soft: color-mix(in oklab, var(--mocha) 20%, var(--surface));
    --gold: #ffd060;
    --gold-soft: color-mix(in oklab, var(--gold) 16%, var(--surface));
    --on-gold: #211d2e;
    --alarm: #ffab40;
    --alarm-soft: color-mix(in oklab, var(--alarm) 20%, var(--surface));
    --on-alarm: #211d2e;
    --danger: #ff8a78;
    --band: #13101b;
    --on-band: #f7f4fb;

    --candy-latte: #dcbba6;
    --candy-apricot: #ffb877;
    --candy-butter: #ffd060;
    --candy-mint: #6fe0b2;
    --candy-peri: #a5afff;
  }
}

/* ---- base ------------------------------------------------------------------------------ */

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

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* tilted bands and stickers must never cause a sideways scroll */
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
}

/* Anton is a single heavy cut: never let the browser fake a bolder one. */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.95;
  text-wrap: balance;
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

::selection {
  background: var(--gold);
  color: var(--on-gold);
}

:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1.5px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--sunk);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}

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

/* ---- stickers ------------------------------------------------------------------------ */

/* A panel: ink keyline, a hard shadow, generous corners. */
.sticker {
  background: var(--surface);
  border: 2.5px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--edge);
}

/* Anything pressable: lifts a hair on hover, and the shadow collapses under the press. */
.press {
  --lift: 4px;
  border: 2.5px solid var(--edge);
  box-shadow: var(--lift) var(--lift) 0 var(--edge);
  transition:
    transform 90ms ease-out,
    box-shadow 90ms ease-out,
    background-color 120ms,
    opacity 120ms;
}
.press:hover {
  transform: translate(-1px, -1px);
  box-shadow: calc(var(--lift) + 1px) calc(var(--lift) + 1px) 0 var(--edge);
}
.press:active,
.press[aria-current="page"] {
  transform: translate(var(--lift), var(--lift));
  box-shadow: 0 0 0 var(--edge);
}

/* In the dark the keyline also gets a faint light rim, so an ink edge on Blackcurrant still
   reads as the edge of something. */
:root[data-theme="dark"] .sticker,
:root[data-theme="dark"] .press,
:root[data-theme="dark"] .bubble {
  outline: 1px solid color-mix(in oklab, var(--ink) 16%, transparent);
  outline-offset: -3.5px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sticker,
  :root:not([data-theme="light"]) .press,
  :root:not([data-theme="light"]) .bubble {
    outline: 1px solid color-mix(in oklab, var(--ink) 16%, transparent);
    outline-offset: -3.5px;
  }
}
.press:focus-visible {
  outline: 3px solid var(--accent-ink) !important;
  outline-offset: 3px !important;
}

/* ---- motion: the mascot and the hero thread are slapped on like stickers ----------------- */

@media (prefers-reduced-motion: no-preference) {
  .slap {
    animation: slap 700ms cubic-bezier(0.2, 0.9, 0.25, 1.2) both;
    animation-delay: var(--slap-delay, 120ms);
  }
  @keyframes slap {
    from {
      opacity: 0;
      transform: rotate(-9deg) scale(1.12) translateY(-24px);
    }
    to {
      opacity: 1;
    }
  }
}

/* ---- chips, buttons, badges, placeholders --------------------------------------------- */

.chip {
  --lift: 3px;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.btn {
  --lift: 5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  line-height: 1.05;
  text-decoration: none;
  max-width: 100%;
}
.btn--accent {
  background: var(--accent);
  color: var(--on-accent);
}
.btn .arrow {
  font-family: var(--font-sans);
  font-weight: 700;
}
.btn[aria-disabled="true"] {
  cursor: not-allowed;
}
.btn .ph {
  flex: none;
  white-space: nowrap;
  overflow-wrap: normal;
}

/* {{PLACEHOLDERS}}: loud until someone fills them in. */
.ph {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8em;
  font-weight: 700;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--on-gold);
  background: var(--gold-soft);
  border: 2.5px dashed var(--gold);
  border-radius: 10px;
  padding: 0.12em 0.45em;
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--gold) 35%, transparent);
  overflow-wrap: anywhere;
}
:root[data-theme="dark"] .ph {
  color: var(--gold);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ph {
    color: var(--gold);
  }
}

/* Badges are stickers slapped on a corner. Live is mint; anything that is not live is amber,
   striped, and bigger, because a simulated result must visibly say simulated. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 2.5px solid var(--edge);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--edge);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  color: #211d2e;
  background: var(--candy-mint);
  transform: rotate(4deg);
}
.badge--live::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #211d2e;
  box-shadow: 0 0 0 2px color-mix(in oklab, #ffffff 70%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .badge--live::before {
    animation: blink 1.6s ease-in-out infinite;
  }
  @keyframes blink {
    50% {
      opacity: 0.25;
    }
  }
}
/* An example thread is a depiction of the product, not a capture: quiet, latte, no pulse. */
.badge--example {
  background: var(--candy-latte, #c8a48a);
}
.badge--loud {
  font-size: 1.1rem;
  padding: 8px 16px;
  color: var(--on-alarm);
  background: repeating-linear-gradient(
    -45deg,
    var(--alarm) 0 12px,
    color-mix(in oklab, var(--alarm) 72%, #fff) 12px 24px
  );
  transform: rotate(-5deg);
}
.badge--loud::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--edge);
  color: var(--alarm);
  font-size: 0.85rem;
  letter-spacing: 0;
}

/* ---- Telegram-style threads (assets/chat.js) -------------------------------------------
   The root is .thread, never .chat: reveal.js puts a slide's "chat" layout class on the
   <section> and on its background, and the two must not collide. */

.thread {
  position: relative;
  margin: 0;
  padding: 26px 16px 18px;
  background: var(--sunk);
  min-width: 0;
}
.thread > .badge {
  position: absolute;
  top: -18px;
  right: 14px;
  z-index: 2;
}
.thread--loud {
  border-style: dashed;
  border-color: var(--edge);
  background:
    linear-gradient(var(--sunk), var(--sunk)) padding-box,
    var(--alarm) border-box;
  box-shadow: 6px 6px 0 var(--alarm);
}
.thread--loud::before {
  /* hazard tape along the top edge */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  border-radius: calc(var(--radius) - 3px) calc(var(--radius) - 3px) 0 0;
  background: repeating-linear-gradient(-45deg, var(--alarm) 0 10px, var(--edge) 10px 20px);
}
.thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}
.msg--bot {
  justify-content: flex-start;
  padding-right: 12%;
}
.msg--person {
  justify-content: flex-end;
  padding-left: 16%;
}
.msg--system {
  justify-content: center;
}
.avatar {
  flex: none;
  width: 34px;
  height: 38px;
  object-fit: contain;
}
.msg--run .avatar {
  visibility: hidden;
}
.bubble-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.bubble {
  position: relative;
  min-width: 0;
  max-width: 100%;
  padding: 8px 13px 9px;
  border: 2.5px solid var(--edge);
  border-radius: 18px;
  box-shadow: 3px 3px 0 var(--edge);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.msg--bot .bubble {
  border-bottom-left-radius: 6px;
}
.msg--person .bubble {
  background: var(--accent-soft);
  border-bottom-right-radius: 6px;
}
.bubble .who {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-ink);
  margin-bottom: 1px;
}
.msg--person .bubble .who {
  color: var(--ink-2);
  text-align: right;
}
.msg--cont .who {
  display: none;
}
.bubble-text {
  margin: 0;
  white-space: pre-wrap;
}
.bubble-text.is-cmd {
  font-family: var(--font-mono);
  font-size: 0.88em;
}
.bubble-text.is-stage {
  font-style: italic;
  color: var(--ink-2);
}
.pill {
  display: inline-block;
  max-width: 100%;
  padding: 4px 12px;
  border: 2px solid var(--edge);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}
.kb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}
.kb-btn {
  flex: 1 1 auto;
  padding: 6px 12px;
  border: 2px solid var(--edge);
  border-radius: 12px;
  box-shadow: 2px 2px 0 var(--edge);
  background: var(--surface);
  color: var(--accent-ink);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

/* The landing page brings bubbles in one after another when a thread scrolls into view.
   Without JS, without IntersectionObserver, or with reduced motion, they are simply there. */
@media (prefers-reduced-motion: no-preference) {
  .thread--pending .msg {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  .thread--pending.is-in .msg {
    opacity: 1;
    transform: none;
    transition:
      opacity 360ms ease-out,
      transform 460ms cubic-bezier(0.2, 0.9, 0.25, 1.25);
    transition-delay: calc(var(--i, 0) * 420ms + 150ms);
  }
}

/* ======================================================================================
 * Landing page (index.html). The deck does not use anything below this line.
 * ====================================================================================== */

.wrap {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

/* ---- header ---- */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding-top: 16px;
  padding-bottom: 8px;
}
.brand {
  display: block;
  width: 190px;
  margin-left: -4px;
  flex: none;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
}
@media (min-width: 640px) {
  .brand {
    width: 250px;
  }
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-nav .chip:nth-child(1) {
  background: var(--candy-butter);
  color: var(--on-gold);
}
.site-nav .chip:nth-child(2) {
  background: var(--candy-latte);
  color: var(--on-gold);
}
.theme-toggle {
  --lift: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle .sun {
  display: none;
}
.theme-toggle[data-current="dark"] .sun {
  display: block;
}
.theme-toggle[data-current="dark"] .moon {
  display: none;
}

/* ---- shared section furniture ---- */
.sec {
  padding: 72px 0 8px;
}
.sec-head {
  max-width: 880px;
  margin-bottom: 36px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 12px;
  border: 2px solid var(--edge);
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sec-title {
  margin: 0;
  font-size: clamp(2.3rem, 6.4vw, 3.9rem);
}
.sec-lead {
  margin: 16px 0 0;
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 56ch;
}
.prose-p {
  max-width: 64ch;
  color: var(--ink-2);
}
.coda {
  max-width: 70ch;
  margin: 36px 0 0;
  padding: 16px 20px;
  border: 2.5px solid var(--edge);
  border-radius: var(--radius);
  background: var(--gold-soft);
  font-size: 1.05rem;
  font-weight: 600;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  margin-top: 28px;
}

/* ---- hero ---- */
.sec--hero {
  padding-top: 28px;
  padding-bottom: 24px;
}
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 40px;
    padding-top: 28px;
  }
}
.hero-copy {
  min-width: 0;
}
.hero-title {
  margin: 0;
  font-size: clamp(3rem, 10vw, 5.4rem);
  line-height: 0.9;
}
.hero-lead {
  margin: 22px 0 0;
  max-width: 48ch;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.hero-art {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.hero-mascot {
  width: 100%;
  max-width: 190px;
  height: auto;
  justify-self: center;
  --slap-delay: 60ms;
}
.hero-chat {
  transform: rotate(2deg);
  margin: 18px 6px 10px 0;
}
.hero-chat .msg--bot {
  padding-right: 4%;
}
.hero-chat .msg--person {
  padding-left: 10%;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-chat.slap {
    animation-name: slap-tilt;
  }
  @keyframes slap-tilt {
    from {
      opacity: 0;
      transform: rotate(-7deg) scale(1.12) translateY(-24px);
    }
    to {
      opacity: 1;
      transform: rotate(2deg);
    }
  }
}
@media (max-width: 599px) {
  .hero-art {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hero-mascot {
    max-width: 170px;
  }
}

/* ---- cards ---- */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.card {
  position: relative;
  padding: 22px 22px 20px;
  min-width: 0;
}
.card::before {
  content: "";
  display: block;
  width: 44px;
  height: 10px;
  margin-bottom: 14px;
  border: 2px solid var(--edge);
  border-radius: 999px;
  background: var(--tone, var(--gold));
}
.card-title {
  margin: 0 0 8px;
  font-size: 1.55rem;
}
.card-body {
  margin: 0;
  color: var(--ink-2);
}
.cards--roadmap {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.cards--roadmap .card {
  background: var(--sunk);
  border-style: dashed;
  box-shadow: 6px 6px 0 color-mix(in oklab, var(--edge) 35%, transparent);
}

/* ---- how it works: numbered candy stickers ---- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 36px;
}
@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
  }
}
.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 2.5px solid var(--edge);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--edge);
  color: var(--on-gold);
  font-size: 1.9rem;
}
.step-title {
  margin: 4px 0 8px;
  font-size: 1.55rem;
}
.step-body {
  margin: 0;
  max-width: 42ch;
  color: var(--ink-2);
}

/* ---- topic modes: 4-up ---- */
.modes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
@media (min-width: 1040px) {
  .modes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.mode {
  overflow: hidden;
  min-width: 0;
}
.mode-top {
  padding: 18px 20px 14px;
  border-bottom: 2.5px solid var(--edge);
}
.mode-name {
  margin: 0;
  font-size: 2.4rem;
  color: var(--on-gold);
  text-transform: lowercase;
}
.mode-body {
  margin: 0;
  padding: 16px 20px 20px;
  color: var(--ink-2);
}

/* ---- consent: copy left, thread right ---- */
.consent-grid {
  display: grid;
  gap: 36px;
  align-items: start;
}
@media (min-width: 900px) {
  .consent-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
  }
}
.split-copy .sec-head {
  margin-bottom: 0;
}
.split-art {
  min-width: 0;
  padding-top: 18px;
}

/* ---- demo: the dark band ---- */
.sec--band {
  padding-top: 88px;
  padding-bottom: 12px;
  overflow-x: clip; /* the tilted band is wider than the page on purpose */
}
.band {
  margin: 0 -24px;
  padding: 44px 24px 48px;
  background: var(--band);
  color: var(--on-band);
  border-block: 2.5px solid var(--edge);
  transform: rotate(-1.2deg);
}
.band > .wrap {
  transform: rotate(1.2deg);
}
.band .sec-title {
  color: var(--on-band);
}
.band .sec-lead {
  color: color-mix(in oklab, var(--on-band) 78%, transparent);
}
.band .eyebrow {
  background: var(--gold);
  color: var(--on-gold);
}
.threads {
  display: grid;
  gap: 40px 26px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: start;
  padding-top: 12px;
}
.band .thread {
  box-shadow: 6px 6px 0 var(--gold);
}
.band .thread--loud {
  box-shadow: 6px 6px 0 var(--alarm);
}
.coda--band {
  background: transparent;
  color: var(--on-band);
  border-color: var(--gold);
  border-style: dashed;
}

/* ---- commands table: a sticker, stacked on phones ---- */
.table-sticker {
  overflow: hidden;
}
.cmd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}
.cmd-table th {
  text-align: left;
  padding: 14px 16px;
  background: var(--band);
  color: var(--on-band);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1rem;
}
.cmd-table td {
  padding: 13px 16px;
  border-top: 2px solid var(--line);
  vertical-align: top;
  color: var(--ink-2);
}
.cmd-table td:first-child {
  color: var(--ink);
  white-space: nowrap;
}
.cmd-table tbody tr:nth-child(even) td {
  background: var(--sunk);
}
@media (max-width: 759px) {
  .cmd-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .cmd-table,
  .cmd-table tbody,
  .cmd-table tr,
  .cmd-table td {
    display: block;
    width: 100%;
  }
  .cmd-table tr {
    padding: 12px 16px 14px;
    border-top: 2.5px solid var(--edge);
  }
  .cmd-table tbody tr:first-child {
    border-top: 0;
  }
  .cmd-table tbody tr:nth-child(even) td,
  .cmd-table tbody tr:nth-child(even) {
    background: var(--sunk);
  }
  .cmd-table td {
    padding: 3px 0;
    border: 0;
    display: grid;
    grid-template-columns: 5.5em minmax(0, 1fr);
    gap: 10px;
  }
  .cmd-table td:first-child {
    white-space: normal;
    display: block;
    padding-bottom: 6px;
  }
  .cmd-table td:not(:first-child)::before {
    content: attr(data-label);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 2px;
  }
}

/* ---- call to action ---- */
.sec--cta {
  padding-top: 96px;
}
.cta-panel {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 32px 22px;
  background: var(--accent-soft);
}
@media (min-width: 760px) {
  .cta-panel {
    grid-template-columns: minmax(0, 1fr) 210px;
    padding: 44px 48px;
  }
}
.cta-title {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.4rem);
}
.cta-lead {
  margin: 16px 0 0;
  max-width: 54ch;
  font-size: 1.12rem;
  color: var(--ink-2);
}
.cta-mascot {
  width: 100%;
  max-width: 210px;
  height: auto;
  justify-self: center;
  transform: rotate(6deg);
}
@media (max-width: 759px) {
  .cta-mascot {
    max-width: 140px;
    order: -1;
  }
}

/* ---- footer ---- */
.site-footer {
  margin-top: 96px;
  padding: 40px 0 56px;
  border-top: 2.5px solid var(--edge);
  background: var(--sunk);
}
.footer-grid {
  display: grid;
  gap: 24px;
  align-items: center;
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
  }
}
.footer-logo {
  width: 200px;
  height: auto;
}
.footer-copy p {
  margin: 0;
  max-width: 76ch;
  font-size: 0.92rem;
  color: var(--ink-2);
}

/* ---- loading and failure ---- */
.loading {
  display: grid;
  place-items: center;
  min-height: 60vh;
}
.loading img {
  width: 120px;
  height: auto;
}
@media (prefers-reduced-motion: no-preference) {
  .loading img {
    animation: bob 1.2s ease-in-out infinite;
  }
  @keyframes bob {
    50% {
      transform: translateY(-8px) rotate(-3deg);
    }
  }
}
.load-error {
  padding-top: 64px;
  padding-bottom: 64px;
}
