/* ==========================================================================
   tiktok banner — site styles
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(760px 420px at 8% -6%, rgba(70, 219, 214, 0.14), transparent 64%),
    radial-gradient(640px 380px at 96% 2%, rgba(255, 106, 134, 0.11), transparent 66%),
    radial-gradient(900px 520px at 50% 42%, rgba(167, 139, 250, 0.07), transparent 70%);
}

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

img {
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #8ef0ec;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

::selection {
  background: rgba(70, 219, 214, 0.28);
  color: #fff;
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--cyan);
  color: var(--cyan-ink);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: 999px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 14px;
  color: var(--cyan-ink);
}

.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;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 15, 22, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  flex-wrap: wrap;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand__glyph {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(150deg, #16202b, #0d141c);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 8px 20px -12px rgba(70, 219, 214, 0.7);
  flex: none;
}

.brand__text {
  display: grid;
  line-height: 1.15;
}

.brand__name {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.brand__sub {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav a[aria-current="true"] {
  color: var(--cyan);
  background: var(--cyan-soft);
}

.header-meta {
  display: none;
}

@media (min-width: 900px) {
  .header-meta {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--faint);
  }
}

@media (max-width: 540px) {
  .site-header__inner {
    min-height: 56px;
    gap: 6px;
    padding-block: 8px 6px;
  }

  .brand__sub {
    display: none;
  }

  .brand__glyph {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .nav {
    gap: 0;
  }

  .nav a {
    min-height: 40px;
    padding: 0 9px;
    font-size: 0.82rem;
  }

  .site-header {
    position: static;
  }

  .hero .eyebrow {
    display: block;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .hero .eyebrow span {
    display: block;
  }

  .hero .eyebrow span + span {
    margin-top: 5px;
  }

  .hero .eyebrow::before {
    display: none;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(34px, 6vw, 76px) clamp(40px, 6vw, 84px);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(700px 420px at 60% 10%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(700px 420px at 60% 10%, #000 10%, transparent 78%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  gap: clamp(30px, 4vw, 48px);
  align-items: start;
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    /* headline + answer beside the artwork, then one full-width row of actions */
    grid-template-areas:
      "copy art"
      "tasks tasks"
      "note note";
    align-items: center;
    gap: 30px 52px;
  }

  .hero__copy {
    grid-area: copy;
  }

  .hero__art {
    grid-area: art;
  }

  .tasks {
    grid-area: tasks;
    margin-top: 0;
  }

  .hero__note {
    grid-area: note;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-soft);
}

.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.032em;
  font-weight: 800;
  max-width: 20ch;
}

.h1-accent {
  color: var(--cyan);
  white-space: nowrap;
}

/* ---------- short answer ---------- */

.answer {
  margin-top: 22px;
  padding: 16px 18px 17px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  background: linear-gradient(150deg, rgba(70, 219, 214, 0.08), rgba(255, 255, 255, 0.014) 62%);
}

.answer__label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.answer__list {
  display: grid;
  gap: 9px;
}

.answer__list li {
  position: relative;
  padding-left: 17px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
}

.answer__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.55;
}

.answer__list b {
  color: var(--text);
  font-weight: 600;
}

.answer__list i {
  font-style: normal;
  color: var(--text);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.28);
}

.hero__lead {
  margin-top: 20px;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.62;
  color: var(--muted);
  max-width: 56ch;
}

.hero__lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero__caveat {
  margin-top: 16px;
  padding-left: 14px;
  border-left: 2px solid var(--line-strong);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--faint);
  max-width: 58ch;
}

/* task cards */

.tasks {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .tasks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.task {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 116px;
  padding: 16px 16px 15px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
    background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.task::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.75;
}

.task:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 48%, transparent);
  box-shadow: var(--shadow-lift);
  color: var(--text);
}

.task__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  flex: none;
}

.task__label {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.28;
  letter-spacing: -0.01em;
  display: block;
  padding-right: 16px;
}

@media (min-width: 560px) {
  .task__label {
    /* reserve two lines so the three descriptions start on the same baseline */
    min-height: 2.56em;
  }
}

.task__arrow {
  position: absolute;
  top: 16px;
  right: 15px;
  color: var(--accent);
  opacity: 0.55;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.task:hover .task__arrow {
  transform: translate(2px, -2px);
  opacity: 1;
}

.task__text {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

.task--add {
  --accent: var(--cyan);
}

.task--fix {
  --accent: var(--coral);
}

.task--make {
  --accent: var(--violet);
}

.hero__note {
  margin-top: -12px;
  font-size: 0.79rem;
  color: var(--faint);
}

/* hero art */

.hero__art {
  position: relative;
}

.asset {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #101821, #0b1118 60%);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.asset > svg,
.asset > img {
  display: block;
  width: 100%;
  height: auto;
}

.asset__cap {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--faint);
  background: rgba(0, 0, 0, 0.18);
}

.asset--portrait {
  max-width: 360px;
  margin-inline: auto;
}

.asset__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
}

.tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.tag--cyan {
  color: var(--cyan);
}

.tag--coral {
  color: var(--coral);
}

.tag--violet {
  color: var(--violet);
}

/* ---------- section primitives ---------- */

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section--tight {
  padding-block: clamp(40px, 6vw, 72px);
}

.section__head {
  max-width: 62ch;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.kicker span {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.04em;
}

.kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
  max-width: 120px;
}

.section h2 {
  font-size: clamp(1.5rem, 3.1vw, 2.1rem);
  letter-spacing: -0.028em;
}

.section__lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.62;
  max-width: 62ch;
}

.figcaption {
  margin-top: 12px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--faint);
  max-width: 70ch;
}

.figcaption b {
  color: var(--muted);
  font-weight: 600;
}

.inline-link {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(70, 219, 214, 0.4);
}

.inline-link:hover {
  text-decoration-color: currentColor;
}

/* ---------- types ---------- */

.types {
  display: grid;
  gap: 14px;
  margin-top: clamp(26px, 4vw, 38px);
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.type {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.type__viz {
  height: 168px;
  padding: 14px;
  border-radius: var(--r-sm);
  background: radial-gradient(120% 120% at 20% 0%, #1b2634, #0d141c 70%);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.type h3 {
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

.type__rows {
  display: grid;
  gap: 9px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}

.type__rows div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 8px;
}

.type__rows dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: 2px;
}

.type__rows dd {
  margin: 0;
}

.type__foot {
  margin-top: auto;
  padding-top: 4px;
}

.type__foot a {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

.type__foot a:hover {
  text-decoration: underline;
}

/* mini schematics (pure CSS) */

.viz-phone {
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b1118;
  padding: 7px;
  display: grid;
  gap: 5px;
}

.viz-phone--header {
  grid-template-rows: 1.25fr 0.75fr;
  padding-bottom: 9px;
}

.viz-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-inline: 4px;
}

.viz-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0b1118;
  border: 1px solid rgba(255, 255, 255, 0.22);
  flex: none;
}

.viz-lines {
  display: grid;
  gap: 4px;
  flex: 1;
}

.viz-lines i {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.24);
  display: block;
}

.viz-lines i + i {
  width: 58%;
  opacity: 0.6;
}

.viz-band {
  border-radius: 5px;
  background: linear-gradient(115deg, #46dbd6, #5f8cff 46%, #ff6a86);
  opacity: 0.85;
}

.viz-band-2 {
  border-radius: 5px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.16) 0 22px,
    rgba(255, 255, 255, 0.05) 22px 26px
  );
}

.viz-phone--grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 6px;
}

.viz-tile {
  border-radius: 4px;
  background: linear-gradient(180deg, #ff9d68, #ff6a86 55%, #a78bfa);
  opacity: 0.9;
}

.viz-tile:nth-child(2) {
  background: linear-gradient(180deg, #46dbd6, #4aa8ff 60%, #5f6bff);
}

.viz-tile:nth-child(3) {
  background: linear-gradient(180deg, #a78bfa, #7b6cf6 60%, #46dbd6);
}

.viz-stick {
  position: relative;
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 4 / 3;
}

.viz-stick span {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(2px);
}

.viz-stick span:nth-child(1) {
  width: 46%;
  height: 26%;
  left: 6%;
  top: 16%;
  transform: rotate(-8deg);
  background: rgba(70, 219, 214, 0.22);
  border-color: rgba(70, 219, 214, 0.45);
}

.viz-stick span:nth-child(2) {
  width: 38%;
  height: 22%;
  right: 6%;
  top: 30%;
  transform: rotate(9deg);
  background: rgba(255, 106, 134, 0.2);
  border-color: rgba(255, 106, 134, 0.45);
}

.viz-stick span:nth-child(3) {
  width: 54%;
  height: 20%;
  left: 16%;
  bottom: 12%;
  transform: rotate(-3deg);
  background: rgba(167, 139, 250, 0.2);
  border-color: rgba(167, 139, 250, 0.45);
}

/* ---------- steps ---------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
  margin-top: clamp(24px, 4vw, 34px);
}

@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

.step {
  position: relative;
  padding-top: 42px;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan-ink);
  background: var(--cyan);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.step h3 {
  font-size: 0.96rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.88rem;
  line-height: 1.58;
  color: var(--muted);
}

/* get section: vertical step list beside the abstract editor figure */
.get-grid {
  display: grid;
  gap: clamp(26px, 4vw, 44px);
  margin-top: clamp(24px, 4vw, 34px);
}

@media (min-width: 900px) {
  .get-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

.add-col {
  display: grid;
  gap: 20px;
  align-content: start;
}

.steps--stack {
  grid-template-columns: 1fr !important;
  gap: 20px;
}

/* small honesty note that also balances the tall figure beside it */
.side-note {
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--faint);
}

.side-note b {
  color: var(--muted);
  font-weight: 600;
}

.steps--stack .step {
  padding-top: 0;
  padding-left: 44px;
}

.steps--stack .step::before {
  top: 2px;
}

.steps--stack .step::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 32px;
  bottom: -14px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-strong), transparent);
}

.steps--stack .step:last-child::after {
  display: none;
}

.get-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--faint);
}

/* ---------- flow ---------- */

.flow {
  margin-top: clamp(26px, 4vw, 38px);
}

.flow__root {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 106, 134, 0.4);
  background: var(--coral-soft);
  color: #ffd0d9;
  font-size: 0.86rem;
  font-weight: 600;
}

.flow__root::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.flow__rail {
  height: 26px;
  width: 1px;
  margin-left: 26px;
  background: linear-gradient(180deg, rgba(255, 106, 134, 0.5), var(--line));
}

.flow__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  position: relative;
}

@media (min-width: 760px) {
  .flow__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

.branch {
  padding: 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* three labelled rows per case: cause, check, fallback */
.branch dl {
  display: grid;
  gap: 11px;
}

.branch__top {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.branch__id {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--coral);
  border: 1px solid rgba(255, 106, 134, 0.35);
  border-radius: 6px;
  padding: 1px 6px;
  flex: none;
}

.branch h3 {
  font-size: 0.96rem;
}

.branch__row {
  display: grid;
  gap: 3px;
}

.branch__row dt {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
}

.branch__row dd {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.52;
  color: var(--muted);
}

.branch__next {
  /* keep every card's link on the same baseline when one case runs longer */
  margin-top: auto;
  padding-top: 2px;
  font-size: 0.84rem;
  font-weight: 600;
}

/* Connector: root pill -> centred trunk -> one rail across the two column
   centres -> one drop per branch. Only the first row gets a drop; a second row
   is a continuation of the same list, not a child of the row above it. */
@media (min-width: 760px) {
  .flow__root {
    display: flex;
    width: fit-content;
    margin-inline: auto;
  }

  .flow__rail {
    height: 22px;
    margin-inline: auto;
    background: linear-gradient(180deg, rgba(255, 106, 134, 0.5), rgba(255, 106, 134, 0.45));
  }

  .flow__grid {
    margin-top: 26px;
  }

  /* 25% ± half the column gap lands exactly on each column centre */
  .flow__grid::before {
    content: "";
    position: absolute;
    top: -13px;
    left: calc(25% - 3.5px);
    right: calc(25% - 3.5px);
    height: 1px;
    background: linear-gradient(
      90deg,
      rgba(255, 106, 134, 0.12),
      rgba(255, 106, 134, 0.45) 18%,
      rgba(255, 106, 134, 0.45) 82%,
      rgba(255, 106, 134, 0.12)
    );
  }

  .branch {
    position: relative;
  }

  .branch:nth-child(-n + 2)::before {
    content: "";
    position: absolute;
    top: -13px;
    left: 50%;
    width: 1px;
    height: 13px;
    transform: translateX(-50%);
    background: rgba(255, 106, 134, 0.45);
  }
}

.flow__note {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--faint);
}

.flow__note svg {
  flex: none;
  margin-top: 2px;
  color: var(--amber);
}

/* ---------- make / tiles ---------- */

.make-grid {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  margin-top: clamp(24px, 4vw, 36px);
}

@media (min-width: 900px) {
  .make-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.make-steps {
  display: grid;
  gap: 20px;
}

.make-step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 14px;
}

.make-step__num {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--violet);
  padding-top: 2px;
}

.make-step h3 {
  font-size: 0.96rem;
  margin-bottom: 6px;
}

.make-step p {
  font-size: 0.88rem;
  line-height: 1.58;
  color: var(--muted);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 10px;
}

.tile {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
  background: #0d141c;
}

.tile svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* one artwork, three windows into it — a real "split" rather than three images */
.tile {
  background-image: url("/assets/img/canvas.svg");
  background-repeat: no-repeat;
  background-size: 300% 100%;
}

.tile:nth-child(1) {
  background-position: 0% 50%;
}

.tile:nth-child(2) {
  background-position: 50% 50%;
}

.tile:nth-child(3) {
  background-position: 100% 50%;
}

.tiles {
  padding: 12px;
  background: #0a0f16;
}

.tile__label {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  background: rgba(6, 10, 15, 0.78);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 5px;
  padding: 2px 5px;
}

.order {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.order__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.order__row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--muted);
}

.order__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 9px;
}

.order__chip b {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--violet);
}

.order__arrow {
  color: var(--faint);
}

@media (max-width: 560px) {
  .order__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }

  .order__arrow {
    display: none;
  }

  .order__chip {
    width: 100%;
    justify-content: flex-start;
  }
}

.make-note {
  margin-top: 14px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--faint);
}

/* ---------- evidence ---------- */

.evidence {
  display: grid;
  gap: 12px;
  margin-top: clamp(24px, 4vw, 34px);
  grid-template-columns: 1fr;
}

@media (min-width: 780px) {
  .evidence {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ev {
  padding: 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  gap: 10px;
  align-content: start;
  border-top: 2px solid var(--ev);
}

.ev--known {
  --ev: var(--green);
}

.ev--reported {
  --ev: var(--amber);
}

.ev--unknown {
  --ev: var(--faint);
}

.ev__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ev);
}

.ev__head i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ev);
  display: inline-block;
}

.ev p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

.ev p strong {
  color: var(--text);
  font-weight: 600;
}

.ev-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--faint);
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.stamp b {
  color: var(--text);
  font-weight: 600;
}

/* ---------- faq ---------- */

.qa {
  margin-top: clamp(22px, 4vw, 32px);
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.qa__group {
  padding: 12px 0 10px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.qa__group:first-child {
  padding-top: 14px;
}

.qa__item {
  display: grid;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 760px) {
  .qa__item {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
    gap: 28px;
    align-items: start;
  }
}

.qa h3 {
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.qa p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}

.qa p a {
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(70, 219, 214, 0.35);
}

.qa p a:hover {
  border-bottom-color: currentColor;
}

/* ---------- guides ---------- */

.guides {
  display: grid;
  gap: 14px;
  margin-top: clamp(24px, 4vw, 36px);
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .guides {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .guide {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .guide__title {
    /* two-line reservation keeps the three descriptions aligned */
    min-height: 2.6em;
  }

  .guide__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

.guide {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    background 0.2s var(--ease);
  align-items: start;
}

.guide:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
  color: var(--text);
}

.guide__thumb {
  width: 96px;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d141c;
}

.guide__thumb svg {
  width: 100%;
  height: 100%;
  display: block;
}

.guide__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guide__title {
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.guide__intent {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.guide__state {
  /* pins to the card foot so all three status labels share a baseline */
  margin-top: auto;
  padding-top: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.guide__state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

.next-up {
  margin-top: 22px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--faint);
}

.next-up b {
  color: var(--muted);
  font-weight: 600;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding-block: clamp(38px, 6vw, 64px) 28px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  gap: 30px;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 0.85fr));
    gap: 40px;
  }
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--faint);
  max-width: 44ch;
}

.footer-col h2 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}

.footer-col ul {
  display: grid;
  gap: 2px;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--faint);
}

.footer-bottom p {
  max-width: 72ch;
}

.ext::after {
  content: "↗";
  font-size: 0.78em;
  margin-left: 3px;
  opacity: 0.7;
}

/* ---------- utility pages ---------- */

.page-head {
  padding-block: clamp(40px, 6vw, 72px) clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(1.8rem, 4.4vw, 2.7rem);
  letter-spacing: -0.03em;
}

.page-head p {
  margin-top: 14px;
  color: var(--muted);
  max-width: 64ch;
  font-size: 0.95rem;
}

.prose {
  padding-block: clamp(32px, 5vw, 56px) var(--section-y);
  max-width: 74ch;
}

.prose h2 {
  font-size: 1.24rem;
  margin-top: 34px;
  margin-bottom: 10px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.68;
  margin-bottom: 12px;
}

.prose ul {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.prose ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 0;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--cyan);
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.82rem;
}

.ledger caption {
  text-align: left;
  font-size: 0.76rem;
  color: var(--faint);
  padding-bottom: 10px;
}

.ledger th {
  text-align: left;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.ledger td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
  line-height: 1.5;
}

.ledger td:first-child {
  font-family: var(--mono);
  color: var(--cyan);
  font-size: 0.76rem;
  white-space: nowrap;
}

.ledger a {
  color: var(--text);
  text-decoration-color: rgba(255, 255, 255, 0.25);
  word-break: break-word;
}

.ledger .lvl {
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 5px;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .ledger thead {
    display: none;
  }

  .ledger,
  .ledger tbody,
  .ledger tr,
  .ledger td {
    display: block;
    width: 100%;
  }

  .ledger tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .ledger td {
    border: 0;
    padding: 2px 0;
  }

  .ledger td:first-child {
    margin-bottom: 4px;
  }
}

.callout {
  margin-top: 26px;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  border-left: 2px solid var(--amber);
  background: rgba(242, 183, 92, 0.06);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted);
}

.callout b {
  color: var(--text);
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .tasks,
  .site-footer {
    display: none;
  }
}
