/* KTL — the Cartridge System, ported from the app's globals.css.
   An arcade cabinet for two people: four voltages on two purples, flat offset "lip"
   shadows instead of blur, always dark, zero radius everywhere.
   Green is progress, magenta is commitment, gold is loot and time pressure,
   purple-bright is co-op. Each fill owns a fixed lip colour.

   Mobile first. Breakpoints match the app's Tailwind defaults:
   sm 640px · md 768px · lg 1024px. */

/* ── Fonts ───────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/geist-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ──────────────────────────────────────────────────────────────── */

:root {
  --background: #1a1030; /* app canvas */
  --void: #0c0620; /* shadows, fog, nav */
  --panel: #251646; /* every slab */
  --panel-hi: #2d1a54; /* slab under the cursor */
  --foreground: #ffffff;
  --muted: #9d8fc4; /* meta, captions */
  --line: #251646;

  --xp: #2bff88;
  --xp-lip: #0c8b45;
  --commit: #ff2e88;
  --commit-lip: #7a1049;
  --loot: #ffd23f;
  --loot-lip: #a37c00;
  --coop: #7a2ac4;
  --coop-lip: #3d1263;
  --love: #ff86bf;
  --love-lip: #8b2f5c;
  --destructive: #f87171;
  --sky: #61b8ff;

  --lip-chip: 3px;
  --lip-tile: 5px;
  --lip-panel: 6px;
  --lip-hero: 7px;
  --lip-slab: 9px;

  --font-display: 'Space Grotesk', Arial, Helvetica, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --t70: rgb(255 255 255 / 0.7);
  --t75: rgb(255 255 255 / 0.75);
  --t80: rgb(255 255 255 / 0.8);
  --t85: rgb(255 255 255 / 0.85);
}

/* ── Base ────────────────────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
}

button:not(:disabled),
[role='button']:not(:disabled),
a[href],
summary,
select:not(:disabled) {
  cursor: pointer;
}

:where(a[href], button, input, select, textarea, summary, [role='button'], [tabindex]:not([tabindex='-1'])):focus-visible {
  outline: 2px solid var(--xp);
  outline-offset: 2px;
}

* {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--muted) 60%, transparent) transparent;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: color-mix(in srgb, var(--muted) 60%, transparent);
  border-radius: 999px; /* scrollbars read as OS chrome, the one rounded thing */
}

.site-main {
  flex: 1;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 60;
  background: var(--xp);
  color: var(--void);
  padding: 8px 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.skip-link:focus {
  left: 12px;
}

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

.anchor {
  scroll-margin-top: 96px;
}

/* ── Depth: the lip system (verbatim from the app) ───────────────────────── */

.lip-chip {
  box-shadow: var(--lip-chip) var(--lip-chip) 0 0 var(--lip-colour, var(--void));
}
.lip-tile {
  box-shadow: var(--lip-tile) var(--lip-tile) 0 0 var(--lip-colour, var(--void));
}
.lip-panel {
  box-shadow: var(--lip-panel) var(--lip-panel) 0 0 var(--lip-colour, var(--void));
}
.lip-hero {
  box-shadow: var(--lip-hero) var(--lip-hero) 0 0 var(--lip-colour, var(--void));
}
.lip-slab {
  box-shadow: var(--lip-slab) var(--lip-slab) 0 0 var(--lip-colour, var(--void));
}

/* PRESS — instant, no easing. The slab travels exactly the distance the lip loses. */
.lip-press:active:not(:disabled) {
  box-shadow: 2px 2px 0 0 var(--lip-colour, var(--void));
}
.lip-chip.lip-press:active:not(:disabled) {
  transform: translate(calc(var(--lip-chip) - 2px), calc(var(--lip-chip) - 2px));
}
.lip-tile.lip-press:active:not(:disabled) {
  transform: translate(calc(var(--lip-tile) - 2px), calc(var(--lip-tile) - 2px));
}
.lip-panel.lip-press:active:not(:disabled) {
  transform: translate(calc(var(--lip-panel) - 2px), calc(var(--lip-panel) - 2px));
}
.lip-hero.lip-press:active:not(:disabled) {
  transform: translate(calc(var(--lip-hero) - 2px), calc(var(--lip-hero) - 2px));
}
.lip-slab.lip-press:active:not(:disabled) {
  transform: translate(calc(var(--lip-slab) - 2px), calc(var(--lip-slab) - 2px));
}

.hatch {
  background-image: repeating-linear-gradient(
    45deg,
    var(--coop-lip) 0 6px,
    color-mix(in srgb, var(--coop-lip) 55%, var(--panel)) 6px 12px
  );
}

/* ── Motion ──────────────────────────────────────────────────────────────── */

@keyframes ktl-pop {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(10px);
  }
  60% {
    transform: scale(1.03);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes ktl-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Held until the element scrolls into view (ktl.js). Fully visible either way:
   the animation is the enhancement, never the reveal. */
.pop-on-view {
  animation: none;
}
.pop-on-view[data-in] {
  animation: ktl-pop 0.3s ease-out both;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

.pad-y {
  padding-block: 56px;
}

.pt-11 {
  padding-top: 44px;
}
.pt-12 {
  padding-top: 48px;
}
.pb-14 {
  padding-bottom: 56px;
}
.pb-16 {
  padding-bottom: 64px;
}

.band-void {
  background: var(--void);
}

.mt-2-5 {
  margin-top: 10px;
}
.mt-3 {
  margin-top: 12px;
}
.mt-4 {
  margin-top: 16px;
}
.mt-4-5 {
  margin-top: 18px;
}
.mt-5 {
  margin-top: 20px;
}
.mt-6 {
  margin-top: 24px;
}
.mt-7 {
  margin-top: 28px;
}
.mt-8 {
  margin-top: 32px;
}
.mt-9 {
  margin-top: 36px;
}

.measure-52 {
  max-width: 52ch;
}
.measure-54 {
  max-width: 54ch;
}
.measure-56 {
  max-width: 56ch;
}
.measure-58 {
  max-width: 58ch;
}

.grid {
  display: grid;
  gap: 16px;
}

.split {
  display: grid;
  gap: 48px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.fill {
  height: 100%;
}

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

@media (min-width: 768px) {
  .wrap {
    padding-inline: 32px;
  }

  .grid--md3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split--center {
    align-items: center;
    gap: 40px;
  }
}

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

  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ── Type ────────────────────────────────────────────────────────────────── */

.eyebrow {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--loot);
  text-transform: uppercase;
}

.eyebrow--xp {
  font-size: 12px;
  color: var(--xp);
}

.label {
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--loot);
  text-transform: uppercase;
}

.label--xp {
  color: var(--xp);
}

.label--10 {
  font-size: 10px;
}

.link-cta {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--xp);
  text-transform: uppercase;
  text-decoration: underline;
  transition: color 0.15s;
}

.link-cta:hover {
  color: var(--foreground);
}

.meta-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.625;
  color: var(--muted);
  text-transform: uppercase;
}

.meta-mono--11 {
  font-size: 11px;
}

.meta-mono--xs {
  font-size: 10px;
}

.lede {
  font-size: 18px;
  line-height: 1.625;
}

.body-copy {
  font-size: 16px;
  line-height: 1.625;
}

.small {
  font-size: 14px;
  line-height: 1.625;
}

.strong {
  font-weight: 600;
}

.text-70 {
  color: var(--t70);
}
.text-75 {
  color: var(--t75);
}
.text-80 {
  color: var(--t80);
}
.text-85 {
  color: var(--t85);
}

.h-hero {
  max-width: 19ch;
  font-size: 40px;
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h-section {
  font-size: 30px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.h-energy {
  font-size: 32px;
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.h-slab {
  max-width: 20ch;
  font-size: 34px;
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h-page {
  max-width: 24ch;
  font-size: 36px;
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.h-post {
  font-size: 30px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.h-feature {
  font-size: 36px;
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.h-callout {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.03em;
}

@media (min-width: 640px) {
  .h-hero {
    font-size: 52px;
  }
}

@media (min-width: 768px) {
  .h-hero {
    font-size: 62px;
  }
  .h-section {
    font-size: 38px;
  }
  .h-energy {
    font-size: 42px;
  }
  .h-slab {
    font-size: 46px;
  }
  .h-page {
    font-size: 56px;
  }
  .h-post {
    font-size: 42px;
  }
  .h-feature {
    font-size: 46px;
  }
  .h-callout {
    font-size: 34px;
  }
}

/* ── Buttons and chips ───────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 16px 24px;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 0.15s;
}

.btn:disabled {
  opacity: 0.7;
}

.btn--xp {
  background: var(--xp);
  color: var(--void);
  --lip-colour: var(--xp-lip);
}

.btn--panel {
  background: var(--panel);
  color: var(--foreground);
}

.btn--commit {
  background: var(--commit);
  color: var(--foreground);
  font-size: 11px;
  letter-spacing: 0.08em;
  --lip-colour: var(--commit-lip);
}

@media (hover: hover) {
  .btn--panel:hover {
    background: var(--coop);
  }
}

.btn--nav {
  padding: 12px 16px;
  font-size: 11px;
}

.btn--compact {
  padding: 12px 18px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.btn--signin {
  font-size: 10px;
}

.chip {
  display: inline-block;
  align-self: flex-start;
  background: var(--panel);
  padding: 8px 12px;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--loot);
  text-transform: uppercase;
}

.chip--commit {
  background: var(--commit);
  color: var(--foreground);
  letter-spacing: 0.12em;
  --lip-colour: var(--commit-lip);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  padding: 12px 16px;
  background: var(--panel);
  color: var(--t80);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (hover: hover) {
  .filter-chip:hover {
    background: var(--panel-hi);
  }
}

.filter-chip.is-active {
  background: var(--xp);
  color: var(--void);
}

.filter-chips--love .filter-chip.is-active {
  background: var(--love);
  color: #2a0d1c;
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.cta-row__note {
  font-size: 12px;
  color: var(--muted);
}

@media (min-width: 640px) {
  .cta-row {
    flex-direction: row;
    align-items: center;
  }

  .cta-row__note {
    margin-left: 8px;
  }
}

/* ── Cards and slabs ─────────────────────────────────────────────────────── */

.card {
  display: block;
  background: var(--panel);
  padding: 20px;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}

@media (hover: hover) {
  .card--link:hover {
    background: var(--coop);
  }
}

.card--outline {
  background: var(--background);
  border: 2px solid var(--panel);
}

@media (hover: hover) {
  .card--outline:hover {
    border-color: var(--xp);
    background: var(--panel);
  }
}

.card--void {
  background: var(--void);
  --lip-colour: var(--background);
}

.card__icon {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.card__title {
  margin-top: 4px;
  font-size: 19px;
  font-weight: 700;
}

.card__title--17 {
  font-size: 17px;
}

.card__title--16 {
  font-size: 16px;
}

.card__text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.625;
  color: var(--t70);
}

.stat {
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--xp);
}

.num-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--xp);
  color: var(--void);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--panel);
  font-size: 30px;
  line-height: 1;
}

.checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checks li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.625;
  color: var(--t80);
}

.checks li::before {
  content: '✓';
  color: var(--xp);
}

.slab {
  padding: 32px;
}

.slab--coop {
  background: var(--coop);
  --lip-colour: var(--coop-lip);
}

.callout {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  background: var(--panel);
  padding: 32px;
}

.btn--callout {
  flex-shrink: 0;
  padding-inline: 28px;
}

@media (min-width: 768px) {
  .slab {
    padding: 44px;
  }

  .callout {
    flex-direction: row;
    align-items: center;
    padding: 40px;
  }
}

/* ── Announcement bar ────────────────────────────────────────────────────── */

.announce {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--loot);
  color: #2a1c00;
  padding: 10px 24px;
}

.announce__text {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.announce__link {
  background: #2a1c00;
  color: var(--loot);
  padding: 6px 12px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.15s;
}

.announce__link:hover {
  opacity: 0.85;
}

/* ── Header and navigation ───────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--panel);
  background: var(--background);
}

.admin-bar .site-header {
  top: 46px;
}

@media (min-width: 783px) {
  .admin-bar .site-header {
    top: 32px;
  }
}

@media (max-width: 600px) {
  .admin-bar .site-header {
    top: 0;
  }
}

.site-header__inner {
  max-width: 1280px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.logo__word {
  display: inline-block;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.04em;
  transform: skewX(-9deg);
}

.logo__bars {
  display: flex;
  gap: 2px;
}

.logo__bars span {
  width: 11px;
  height: 5px;
  background: var(--panel);
}

.logo__bars .is-on {
  background: var(--xp);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav__link {
  display: none;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.15s;
}

.site-nav__link:hover {
  color: var(--foreground);
}

.site-nav__link.is-current {
  border-color: var(--xp);
  color: var(--xp);
}

.from-sm {
  display: none;
}

@media (min-width: 640px) {
  .from-sm {
    display: inline;
  }

  .until-sm {
    display: none;
  }
}

@media (min-width: 768px) {
  .site-header__inner {
    padding-inline: 56px;
  }
}

@media (min-width: 1024px) {
  .site-nav {
    gap: 20px;
  }

  .site-nav__link {
    display: inline-block;
  }

  .site-nav__menu {
    display: none;
  }
}

/* The mobile menu: a bottom sheet on phones, centred from sm up. Padding lives on
   the inner panel so a click that lands on the dialog itself is the backdrop. */
.menu {
  width: calc(100% - 32px);
  max-width: 24rem;
  max-height: 85dvh;
  margin: auto auto 16px;
  padding: 0;
  border: 0;
  overflow-y: auto;
  background: var(--panel);
  color: var(--foreground);
  box-shadow: var(--lip-hero) var(--lip-hero) 0 0 var(--void);
}

.menu[open] {
  animation: ktl-pop 0.3s ease-out;
}

.menu::backdrop {
  background: rgb(12 6 32 / 0.85);
}

.menu[open]::backdrop {
  animation: ktl-fade 0.2s ease-out;
}

@media (min-width: 640px) {
  .menu {
    margin: auto;
  }
}

.menu__panel {
  padding: 20px;
}

.menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.menu__title {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--loot);
  text-transform: uppercase;
}

.menu__close {
  width: 32px;
  height: 32px;
  background: var(--void);
  font-size: 12px;
  transition: color 0.15s;
}

.menu__close:hover {
  color: var(--xp);
}

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

.menu__link {
  display: block;
  padding: 12px;
  background: var(--void);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 0.15s;
}

.menu__link:hover {
  background: var(--panel-hi);
}

.menu__link.is-current {
  background: var(--xp);
  color: var(--void);
}

.menu__link--quiet {
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.menu__link--quiet:hover {
  background: transparent;
  color: var(--foreground);
}

.menu__divider {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed #3d2770;
}

/* ── Forms ───────────────────────────────────────────────────────────────── */

.input {
  width: 100%;
  min-width: 0;
  border: 2px solid var(--coop-lip);
  border-radius: 0;
  background: var(--background);
  padding: 12px 15px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--foreground);
}

.input::placeholder {
  color: var(--muted);
}

.input:focus {
  border-color: var(--xp);
  outline: none;
}

.form-result {
  width: 100%;
}

.form-result--ok,
.form-result--dup {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--xp);
}

.form-result--dup {
  color: var(--loot);
}

.form-result--error {
  font-size: 12px;
  font-weight: 700;
  color: var(--destructive);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--panel);
  background: var(--void);
  padding: 40px 24px 46px;
}

.newsletter {
  max-width: 1180px;
  margin: 0 auto 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  background: var(--panel);
  padding: 20px;
  --lip-colour: #150c2e;
}

.newsletter__text {
  flex: 1 1 280px;
  min-width: 0;
}

.newsletter__eyebrow {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--loot);
  text-transform: uppercase;
}

.newsletter__title {
  margin-top: 7px;
  font-size: 17px;
  font-weight: 700;
}

.newsletter__body {
  margin-top: 5px;
  font-size: 13px;
  color: var(--muted);
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.newsletter__form .btn {
  --lip-colour: var(--xp-lip);
}

@media (min-width: 640px) {
  .newsletter__form {
    flex-direction: row;
    width: auto;
  }

  .newsletter__form .input {
    width: 210px;
  }
}

.footer-grid {
  max-width: 1180px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 34px;
}

.footer-col {
  min-width: 0;
}

.footer-tagline {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-col__head {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

.footer-col__list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col__list a {
  font-size: 13.5px;
  color: var(--t80);
  transition: color 0.15s;
}

.footer-col__list a:hover {
  color: var(--xp);
}

.footer-bottom {
  max-width: 1180px;
  margin: 26px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--panel);
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}

.footer-bottom__copy {
  flex: 1;
  min-width: min(240px, 100%);
}

.footer-bottom a:hover {
  color: var(--xp);
}

.status-dot {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--xp);
}

.status-dot span {
  width: 8px;
  height: 8px;
  background: currentColor;
}

.status-dot--degraded {
  color: var(--loot);
}

@media (min-width: 768px) {
  .site-footer {
    padding-inline: 30px;
  }
}

/* ── Homepage ────────────────────────────────────────────────────────────── */

.hero {
  max-width: 1180px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
  padding: 56px 24px;
}

.hero__copy {
  flex: 1;
  min-width: 0;
}

.hero__demo {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__demo .ktl-widget {
  width: 100%;
  max-width: 380px;
}

.hero__caption {
  margin-top: 16px;
  max-width: 380px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .hero {
    padding-inline: 32px;
  }

  .hero__copy {
    min-width: 400px;
  }

  .hero__demo {
    width: auto;
  }

  .hero__demo .ktl-widget {
    width: 380px;
  }
}

/* ── Demo widgets ────────────────────────────────────────────────────────── */

/* The nine interactive demos have their own stylesheet: assets/css/demos.css. */

/* ── Blog index ──────────────────────────────────────────────────────────── */

.blog-intro {
  border-bottom: 1px solid var(--line);
}

.blog-intro__inner {
  padding-top: 32px;
  padding-bottom: 40px;
}

.blog-top {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 24px;
}

.post-featured {
  display: flex;
  flex: 1 1 320px;
  flex-direction: column;
  min-width: 0;
  background: var(--panel);
  transition: background-color 0.15s;
}

.post-featured__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}

.post-meta-row--tight {
  gap: 10px;
  font-size: 9.5px;
}

.post-meta-row__tag {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--loot);
}

.post-featured__title {
  max-width: 28ch;
  font-size: 26px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.post-featured__excerpt {
  max-width: 60ch;
  font-size: 15.5px;
  line-height: 1.625;
  color: var(--t80);
}

.post-featured__cta {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--xp);
  text-transform: uppercase;
}

.post-side {
  display: flex;
  flex: 1 1 300px;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.post-side__item {
  display: block;
  background: var(--panel);
  padding: 18px;
  transition: background-color 0.15s;
}

.post-side__title {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.post-side__meta {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}

@media (hover: hover) {
  .post-featured:hover,
  .post-side__item:hover,
  .post-card:hover,
  .related__card:hover,
  .post-nav a:hover {
    background: var(--panel-hi);
  }
}

@media (min-width: 768px) {
  .post-featured {
    flex: 1.4 1 320px;
  }

  .post-featured__title {
    font-size: 32px;
  }
}

.grid-head {
  margin-top: 48px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.grid-head__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}

.post-grid {
  margin-top: 24px;
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  transition: background-color 0.15s;
}

.post-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.tag {
  align-self: flex-start;
  background: var(--panel);
  color: var(--foreground);
  padding: 6px 10px;
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tag--design {
  background: #ff2e88;
  color: #ffffff;
}
.tag--research {
  background: #ffd23f;
  color: #2a1c00;
}
.tag--long-distance {
  background: #7a2ac4;
  color: #ffffff;
}
.tag--prompts {
  background: #2bff88;
  color: #062b16;
}
.tag--comparison {
  background: #61b8ff;
  color: #0c0620;
}

.post-card__title {
  font-size: 19px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.post-card__excerpt {
  font-size: 14px;
  line-height: 1.625;
  color: var(--t80);
}

.post-card__meta {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}

/* The gold signup slab. */
.signup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 44px;
  background: var(--loot);
  color: #2a1c00;
  padding: 32px;
  --lip-colour: var(--loot-lip);
}

.signup__text {
  flex: 1;
  min-width: 0;
}

.signup__eyebrow {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}

.signup__title {
  margin-top: 12px;
  max-width: 22ch;
  font-size: 30px;
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.signup__body {
  margin-top: 14px;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.625;
  font-weight: 500;
}

.signup__form-wrap {
  flex: none;
  width: 100%;
}

.signup__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup .input {
  border-color: var(--loot-lip);
  background: #2a1c00;
  padding: 16px;
  font-family: var(--font-display);
  font-size: 15px;
}

.signup .input::placeholder {
  color: rgb(255 255 255 / 0.5);
}

.btn--signup {
  padding: 16px 20px;
  font-size: 12px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.signup .form-result {
  margin-top: 12px;
}

.signup .form-result--ok,
.signup .form-result--dup {
  background: #2a1c00;
  padding: 14px;
  color: var(--loot);
}

.signup .form-result--error {
  color: #2a1c00;
}

.signup__small {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  opacity: 0.65;
}

@media (min-width: 640px) {
  .signup__form {
    flex-direction: row;
  }

  .signup .input {
    flex: 1;
  }

  .btn--signup {
    flex: none;
  }
}

@media (min-width: 768px) {
  .signup {
    padding: 44px;
  }

  .signup__text {
    min-width: 380px;
  }

  .signup__title {
    font-size: 38px;
  }

  .signup__form-wrap {
    width: 420px;
  }
}

/* ── Blog post ───────────────────────────────────────────────────────────── */

.post {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding: 48px 24px 56px;
}

@media (min-width: 768px) {
  .post {
    padding-inline: 32px;
  }
}

.back-link {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  transition: color 0.15s;
}

.back-link--wide {
  font-size: 10px;
  letter-spacing: 0.2em;
}

.back-link:hover {
  color: var(--foreground);
}

.post__meta {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.post__excerpt {
  margin-top: 16px;
  font-size: 19px;
  line-height: 1.625;
  color: var(--t80);
}

.prose {
  margin-top: 28px;
}

.prose p {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.625;
  color: var(--t80);
}

.prose h2 {
  margin-top: 48px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin-top: 40px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

.prose blockquote {
  margin-top: 32px;
  border-left: 2px solid var(--xp);
  padding-left: 20px;
  font-style: italic;
  color: var(--t70);
}

.prose blockquote p {
  margin: 0;
  color: inherit;
}

.prose ul,
.prose ol {
  margin-top: 24px;
  border-top: 1px solid var(--coop-lip);
}

.prose li {
  border-bottom: 1px solid var(--coop-lip);
  padding-block: 12px;
  line-height: 1.625;
  color: var(--t80);
}

.prose strong {
  font-weight: 600;
  color: var(--foreground);
}

.prose a {
  color: var(--xp);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--foreground);
}

@media (min-width: 768px) {
  .prose h2 {
    font-size: 24px;
  }
}

.related {
  margin-top: 48px;
}

.related__grid {
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.related__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--panel);
  padding: 16px;
  transition: background-color 0.15s;
}

.related__tag {
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--loot);
  text-transform: uppercase;
}

.related__title {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
}

.related__meta {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}

.post-nav {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.post-nav a {
  flex: 1 1 250px;
  min-width: 0;
  background: var(--panel);
  padding: 16px;
  transition: background-color 0.15s;
}

.post-nav__next {
  text-align: right;
}

.post-nav__label {
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.post-nav__title {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
}

.post-cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  background: var(--panel);
  padding: 20px;
}

.post-cta__text {
  flex: 1;
  min-width: min(230px, 100%);
}

.post-cta__title {
  font-size: 18px;
  font-weight: 700;
}

.post-cta__body {
  margin-top: 4px;
  font-size: 14px;
  color: var(--t70);
}

.btn--post-cta {
  flex-shrink: 0;
  padding: 14px 20px;
}

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

/* ── Feature page ────────────────────────────────────────────────────────── */

.feature {
  padding-block: 48px;
}

.feature__grid {
  margin-top: 32px;
  display: grid;
  gap: 48px;
}

.others {
  margin-top: 56px;
  display: grid;
  gap: 16px;
}

.others__card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  padding: 16px;
  transition: background-color 0.15s;
}

@media (hover: hover) {
  .others__card:hover {
    background: var(--coop);
  }
}

.others__icon {
  font-size: 24px;
  line-height: 1;
}

.others__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

.others__next {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--xp);
  text-transform: uppercase;
}

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

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

/* ── Reduced motion ──────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .pop-on-view[data-in],
  .menu[open],
  .menu[open]::backdrop {
    animation: none;
  }

  /* The press keeps its lip change but stops travelling. */
  .lip-chip.lip-press:active:not(:disabled),
  .lip-tile.lip-press:active:not(:disabled),
  .lip-panel.lip-press:active:not(:disabled),
  .lip-hero.lip-press:active:not(:disabled),
  .lip-slab.lip-press:active:not(:disabled) {
    transform: none;
  }
}

/* ── No page motion ──────────────────────────────────────────────────────── */

/* Decided 13 Sep 2026: pages don't animate. Sections appear at once, hovers change
   colour instantly and the menu opens without popping. The nine demos keep their
   motion (demos.css), because there the motion is the point: it shows the game. */
body *:not(.ktl-demo):not(.ktl-demo *),
body *:not(.ktl-demo):not(.ktl-demo *)::before,
body *:not(.ktl-demo):not(.ktl-demo *)::after,
.menu[open],
.menu[open]::backdrop {
  animation: none !important;
  transition: none !important;
}

/* ── Store chips: coming soon ────────────────────────────────────────────── */

/* Plain chips rather than the official store badges: Google and Apple only allow
   their badges once they link to a live listing. Swap in the real badges then. */
.store-soon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.store-soon__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}

.store-soon__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  padding: 8px 12px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--foreground);
  text-transform: uppercase;
}

.store-chip__soon {
  background: var(--loot);
  color: #2a1c00;
  padding: 2px 6px;
  font-size: 9.5px;
  letter-spacing: 0.12em;
}

.site-footer .store-soon {
  margin-top: 16px;
}

/* ── Cookie choice (only printed when Google Analytics is switched on) ───── */

.consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 60;
  max-width: 560px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  background: var(--panel);
  padding: 16px 18px;
  --lip-colour: var(--void);
}

.consent[hidden] {
  display: none;
}

.consent__text {
  flex: 1 1 260px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--t85);
}

.consent__text a {
  color: var(--xp);
  text-decoration: underline;
}

.consent__actions {
  display: flex;
  gap: 10px;
}

.footer-bottom__button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.footer-bottom__button:hover {
  color: var(--xp);
}
