/* Octopus site. Colours from the app icon: lavender on a violet-black squircle. Dark only, like the
   screenshots it shows. */

:root {
  --bg: #100f17;
  --bg-raised: #17151f;
  --bg-sunk: #0c0b12;
  --line: #262335;
  --line-soft: #1d1b28;
  --fg: #ecebf3;
  --fg-muted: #9e9ab0;
  --fg-faint: #6f6b82;
  --lavender: #c9bbff;
  --lavender-deep: #a083ff;
  --on-accent: #17131f;

  /* Session states, as in the app */
  --working: #5aa9ff;
  --idle: #4ec98a;
  --waiting: #e6c14f;

  --font-display: "Familjen Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1180px;
  --wrap-wide: 1320px;
  --radius: 12px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lavender); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 6px; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--fg); }

code, kbd { font: 400 0.86em var(--font-mono); background: #221f2e; border: 1px solid var(--line); padding: 0.05em 0.4em; border-radius: 5px; color: #dcd5ff; }
kbd { margin-right: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: var(--wrap-wide); }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--lavender); color: var(--on-accent); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
.small { font-size: 0.875rem; color: var(--fg-muted); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: 10px;
  font: 600 0.97rem var(--font-body); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: background-color 0.15s, border-color 0.15s;
}
.button.primary { background: var(--lavender); color: var(--on-accent); }
.button.primary:hover { background: #ddd3ff; color: var(--on-accent); }
.button.ghost { color: var(--fg); border-color: var(--line); background: rgba(255, 255, 255, 0.02); }
.button.ghost:hover { border-color: #3a3650; color: #fff; }
.button.small { height: 34px; padding: 0 14px; font-size: 0.88rem; border-radius: 8px; background: var(--lavender); color: var(--on-accent); }
.button.small:hover { background: #ddd3ff; color: var(--on-accent); }
.button[hidden] { display: none; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(16, 15, 23, 0.78); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line-soft); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: 700 1.1rem var(--font-display); }
.brand img { border-radius: 7px; }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 0.93rem; }
.top nav a:not(.button) { color: var(--fg-muted); text-decoration: none; }
.top nav a:not(.button):hover { color: var(--fg); }
@media (max-width: 560px) { .top nav a:not(.button) { display: none; } }

/* Hero */
.hero { padding: 88px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto 0 0; height: 70%;
  background: radial-gradient(60% 55% at 50% 60%, rgba(160, 131, 255, 0.22), transparent 70%);
  pointer-events: none;
}
.hero-copy { text-align: center; display: grid; justify-items: center; gap: 22px; position: relative; }
/* drop-shadow, not box-shadow: icon.png has a transparent margin, and the glow must start at the squircle's
   edge, all round (a tight one on the edge, a wide one around it) */
.hero-icon { width: 104px; height: 104px; filter: drop-shadow(0 0 2px rgba(160, 131, 255, 0.6)) drop-shadow(0 0 22px rgba(160, 131, 255, 0.4)); }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; max-width: 21ch; text-wrap: balance; }
.lede { font-size: 1.18rem; color: var(--fg-muted); max-width: 54ch; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
@media (max-width: 600px) { .hero { padding-top: 56px; } .lede { font-size: 1.05rem; } }

/* Screenshots: the app's window, its traffic lights drawn over the title bar's empty corner */
.shot {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden;
  background: #1f1f1f; border: 1px solid #2f2c3d;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 30px 70px -30px rgba(0, 0, 0, 0.8), 0 18px 40px -24px rgba(110, 80, 220, 0.35);
  cursor: zoom-in;
}
.shot::before {
  content: ""; position: absolute; top: 1.15%; left: 1%; width: 52px; height: 12px;
  background:
    radial-gradient(circle at 6px 6px, #ff5f57 5.5px, transparent 6px),
    radial-gradient(circle at 26px 6px, #febc2e 5.5px, transparent 6px),
    radial-gradient(circle at 46px 6px, #28c840 5.5px, transparent 6px);
}
@media (max-width: 700px) { .shot::before { transform: scale(0.6); transform-origin: left top; } }
/* Screenshots that already show their own traffic lights */
.shot.own-lights::before { display: none; }

/* Crops: a part of the window, no frame, fading out where it was cut. --fl, --fr, --fb: where the
   fade from the left, to the right and to the bottom starts (none when unset). */
.shot.crop { background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
.shot.crop::before { display: none; }
.shot.crop img {
  border-radius: 10px 10px 0 0;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 var(--fl, 0%), #000 var(--fr, 100%), transparent 100%),
    linear-gradient(to bottom, #000 var(--fb, 100%), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 var(--fl, 0%), #000 var(--fr, 100%), transparent 100%),
    linear-gradient(to bottom, #000 var(--fb, 100%), transparent 100%);
  mask-composite: intersect;
}
/* After .shot, whose margin: 0 would undo the space below the buttons */
.shot-hero { max-width: 1080px; margin: 56px auto 0; }
@media (max-width: 600px) { .shot-hero { margin-top: 40px; } }

/* Feature index */
.index { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 56px; padding-bottom: 24px; }
.index a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-muted); text-decoration: none; font-size: 0.9rem; background: var(--bg-raised); }
.index a:hover { color: var(--fg); border-color: #3a3650; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--lavender)); flex: none; }

/* Features */
.feature { padding: 96px 0; }
.feature + .feature { border-top: 1px solid var(--line-soft); }
.feature-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 64px; align-items: center; }
.feature.flip .feature-row { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
.feature.flip .feature-copy { order: 2; }
.feature-copy { display: grid; gap: 18px; align-content: center; }
.kicker { font: 600 0.92rem var(--font-body); color: var(--lavender); }
h2 { font-size: clamp(1.7rem, 2.9vw, 2.35rem); line-height: 1.12; letter-spacing: -0.022em; font-weight: 700; text-wrap: balance; }
.feature-copy > p:not(.kicker):not(.small) { color: var(--fg-muted); font-size: 1.04rem; }
.points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; font-size: 0.95rem; }
.points li { position: relative; padding-left: 26px; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 14px; height: 1px; background: var(--lavender-deep); }
.points.states li { display: flex; align-items: center; gap: 10px; padding-left: 0; }
.points.states li::before { display: none; }
.points.states .dot { width: 10px; height: 10px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }

.shot-pair { display: grid; gap: 28px; }
.shot-pair .shot:last-child { width: 78%; justify-self: end; }

@media (max-width: 920px) {
  .feature { padding: 72px 0; }
  .feature-row, .feature.flip .feature-row { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .feature-copy { order: 0; }
}

/* Mido: a companion app, shown in its own colours (green and orange, from its icon) */
.mido {
  --mido-green: #2d6a5f;
  --mido-orange: #d98a3d;
  --mido-cream: #f7f3ea;
  background: radial-gradient(70% 50% at 50% 0%, rgba(45, 106, 95, 0.2), transparent 70%);
}
.mido .kicker { color: var(--mido-orange); }
.mido-head { display: grid; gap: 18px; max-width: 760px; margin: 0 auto 56px; text-align: center; justify-items: center; }
.mido-head > p:last-child { color: var(--fg-muted); font-size: 1.04rem; max-width: 62ch; text-wrap: pretty; }
.mido-head b { color: var(--fg); }
.mido-pair { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.mido-pair img { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.6)); }
.mido-plus { font: 600 1.4rem var(--font-display); color: var(--fg-faint); }
.mido .feature-row { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); }
.mido-gains { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.mido-gains li { padding-left: 18px; border-left: 2px solid var(--mido-green); color: var(--fg-muted); font-size: 0.95rem; }
.mido-gains b { display: block; font: 600 1.02rem var(--font-display); color: var(--fg); margin-bottom: 2px; }
.mido-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 56px; }
.button.mido-button { background: var(--mido-green); color: var(--mido-cream); border-color: #3b8576; }
.button.mido-button:hover { background: #357a6d; color: #fff; }
.button.mido-button img { border-radius: 5px; }
.mido-note { text-align: center; margin-top: 14px; color: var(--fg-faint); }
@media (max-width: 920px) { .mido .feature-row { grid-template-columns: 1fr; } }

/* More */
.more { padding: 96px 0; border-top: 1px solid var(--line-soft); background: var(--bg-sunk); }
.more-title { max-width: 24ch; }
.more-grid { margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.more-grid dt { font: 600 1.02rem var(--font-display); margin-bottom: 6px; }
.more-grid dd { margin: 0; color: var(--fg-muted); font-size: 0.95rem; }
@media (max-width: 900px) { .more-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .more-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Extensions */
.extensions { border-top: 1px solid var(--line-soft); background: linear-gradient(180deg, rgba(160, 131, 255, 0.07), transparent 40%); }
.ext-head { display: grid; gap: 18px; max-width: 760px; margin: 0 auto 56px; text-align: center; justify-items: center; }
.ext-head > p:last-child { color: var(--fg-muted); font-size: 1.04rem; max-width: 62ch; }
.ext-steps { list-style: none; counter-reset: step; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.ext-steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; }
.ext-steps li::before { content: counter(step); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--lavender-deep); color: var(--lavender); font: 600 0.85rem var(--font-display); margin-bottom: 6px; }
.ext-steps h3 { font-size: 1.08rem; }
.ext-steps p { color: var(--fg-muted); font-size: 0.95rem; }
@media (max-width: 760px) { .ext-steps { grid-template-columns: 1fr; gap: 28px; } }
/* Public and private marketplaces, under the steps: a card each */
.markets { margin-top: 72px; display: grid; gap: 28px; }
.markets-head { text-align: center; display: grid; gap: 6px; }
.markets-head h3 { font-size: 1.3rem; }
.markets-head p { color: var(--fg-muted); }
.markets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; width: 100%; margin: 0 auto; }
@media (max-width: 760px) { .markets-grid { grid-template-columns: 1fr; } }
.market-card { --tint: 90, 169, 255; display: grid; gap: 14px; align-content: start; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(var(--tint), 0.07), transparent 70%), var(--bg-raised); }
.market-card.private { --tint: 160, 131, 255; }
.market-top { display: flex; align-items: center; gap: 12px; }
.market-top b { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.market-top code { display: block; font: 0.8rem var(--font-mono); color: var(--fg-faint); overflow-wrap: anywhere; }
.market-icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: rgb(var(--tint)); background: rgba(var(--tint), 0.12); border: 1px solid rgba(var(--tint), 0.25); }
.market-card > p { color: var(--fg-muted); font-size: 0.95rem; }
.market-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.market-card[href] { color: inherit; text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.market-card[href]:hover { border-color: rgba(var(--tint), 0.45); transform: translateY(-2px); }
.market-link { font-size: 0.88rem; color: rgb(var(--tint)); }
.market-chips li { font-size: 0.82rem; padding: 3px 10px; border-radius: 999px; color: var(--fg); background: rgba(var(--tint), 0.1); border: 1px solid rgba(var(--tint), 0.22); }

/* Back to top: shown once the page is scrolled (to-top.js) */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 20; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(23, 21, 31, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--fg); cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 0.2s, transform 0.2s, border-color 0.2s, color 0.2s; }
.to-top.shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--lavender-deep); color: var(--lavender); }
@media (max-width: 600px) { .to-top { right: 16px; bottom: 16px; } }

.code { margin: 48px 0 0; padding: 20px 22px; background: var(--bg-sunk); border: 1px solid var(--line); border-radius: var(--radius); font: 400 0.84rem/1.7 var(--font-mono); color: #d8d4e8; overflow-x: auto; white-space: pre; }
.code .k { color: var(--lavender); }
.code .s { color: #8fd6b4; }
.code .c { color: var(--fg-faint); }
.code code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }

/* Download */
.download { padding: 110px 0 96px; border-top: 1px solid var(--line-soft); }
.download-card { text-align: center; display: grid; justify-items: center; gap: 18px; }
/* Like .hero-icon: drop-shadow follows the squircle, not icon.png's transparent margin */
.download-card img { width: 112px; height: 112px; filter: drop-shadow(0 0 2px rgba(160, 131, 255, 0.6)) drop-shadow(0 0 22px rgba(160, 131, 255, 0.4)); }
.download-card .cta { margin-top: 8px; }

.download-info { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin-top: 56px; }
.info-card { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); display: grid; gap: 12px; align-content: start; font-size: 0.93rem; color: var(--fg-muted); }
.info-card h3 { font-size: 1rem; }
.info-card b { color: var(--fg); font-weight: 600; }
.info-card .code { margin: 2px 0 0; padding: 10px 12px; font-size: 0.78rem; white-space: pre-wrap; word-break: break-all; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 24px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 9px; height: 5px; border-left: 1.5px solid var(--lavender); border-bottom: 1.5px solid var(--lavender); transform: rotate(-45deg); }
@media (max-width: 720px) { .download-info { grid-template-columns: 1fr; } }

.releases-wrap { margin-top: 64px; max-width: 760px; }
.releases-wrap[hidden] { display: none; }
.releases-wrap h3 { font-size: 1rem; color: var(--fg-muted); font-weight: 600; }
.releases { list-style: none; padding: 0; margin: 12px 0 0; border-top: 1px solid var(--line); }
.releases li { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.releases b { font-family: var(--font-display); min-width: 64px; }
.releases .grow { flex: 1; }
.releases-more[hidden] { display: none; }
.releases-more summary { cursor: pointer; padding: 12px 0; font-size: 0.93rem; color: var(--fg-muted); list-style: none; display: flex; align-items: center; gap: 8px; }
.releases-more summary::-webkit-details-marker { display: none; }
.releases-more summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s; }
.releases-more[open] summary::before { transform: rotate(45deg); }
.releases-more summary:hover { color: var(--fg); }
.releases-more .releases { margin: 0; border-top: 0; }
@media (max-width: 560px) { .releases li { display: grid; grid-template-columns: auto 1fr auto; } .releases li > a:last-child { grid-column: 1 / -1; } }

/* Footer */
.foot { border-top: 1px solid var(--line-soft); padding: 28px 0 44px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.foot .brand { font-size: 0.95rem; }
.foot .brand img { border-radius: 5px; }
.grow { flex: 1; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1800px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 7, 12, 0.88); backdrop-filter: blur(4px); }
.lightbox img { max-height: 92vh; width: auto; border-radius: 10px; border: 1px solid #2f2c3d; }
.lightbox-close { position: absolute; top: -14px; right: -14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-raised); color: var(--fg); font-size: 20px; line-height: 1; cursor: pointer; }

.ext-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; margin-top: 56px; }

/* Guide: a page of documentation (extensions/), a table of contents beside the text */
.top nav a[aria-current="page"] { color: var(--fg); }
.guide-hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line-soft); background: linear-gradient(180deg, rgba(160, 131, 255, 0.08), transparent); }
.guide-hero .wrap { display: grid; gap: 18px; }
.guide-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 22ch; }
.crumbs { font-size: 0.88rem; color: var(--fg-faint); }
.crumbs a { color: var(--fg-muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }

.guide { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-top: 56px; padding-bottom: 96px; }
.toc { position: sticky; top: 84px; align-self: start; font-size: 0.9rem; }
.toc p { font-weight: 600; color: var(--fg); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 4px 0 4px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--fg-muted); text-decoration: none; }
.toc a:hover { color: var(--fg); border-left-color: var(--lavender-deep); }
@media (max-width: 900px) {
  .guide { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 36px; }
  .toc { position: static; }
  .toc ol { grid-template-columns: 1fr 1fr; border-left: 0; }
  .toc a { padding-left: 0; }
}

.prose { max-width: 760px; min-width: 0; color: var(--fg-muted); }
.prose > section + section { margin-top: 72px; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 18px; }
.prose h3 { font-size: 1.12rem; margin: 36px 0 12px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--lavender-deep); }
.prose b, .prose strong { color: var(--fg); font-weight: 600; }
.prose .code { margin: 8px 0 22px; }
.prose .file { display: block; font: 400 0.8rem var(--font-mono); color: var(--fg-faint); margin: 22px 0 -2px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 0.92rem; }
.prose th { text-align: left; color: var(--fg); font-weight: 600; }
.prose th, .prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose td:first-child { white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.note { border: 1px solid var(--line); border-left: 3px solid var(--lavender-deep); background: var(--bg-raised); border-radius: 8px; padding: 14px 18px; margin: 8px 0 22px; font-size: 0.95rem; }
.note p:last-child { margin-bottom: 0; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 40px; margin-bottom: 14px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--lavender-deep); color: var(--lavender); font: 600 0.8rem var(--font-display); }
.guide-next { margin-top: 72px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); display: grid; gap: 14px; justify-items: start; }
.guide-next h2 { margin: 0; }


/* Support: every app is free; Ko-fi, in its warm colour, pays for the work */
.support { padding: 96px 0; border-top: 1px solid var(--line-soft); background: radial-gradient(60% 70% at 85% 50%, rgba(230, 193, 79, 0.08), transparent 70%), var(--bg-sunk); }
.support-card { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.support-copy { display: grid; gap: 16px; }
.support-copy .kicker { color: #e6c14f; }
.support-copy > p:not(.kicker) { color: var(--fg-muted); font-size: 1.04rem; max-width: 56ch; text-wrap: pretty; }
.support-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 10px; }
.button.kofi { background: #e6c14f; color: #1d1608; }
.button.kofi:hover { background: #f0d071; color: #1d1608; }
.apps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.apps a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); color: var(--fg-muted); text-decoration: none; font-size: 0.9rem; transition: border-color 0.15s; }
.apps a:hover { border-color: #3a3650; color: var(--fg-muted); }
.apps img, .app-mark { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.app-mark { display: grid; place-items: center; font: 700 1.1rem var(--font-display); color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--bg-sunk)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.apps b { display: block; color: var(--fg); font: 600 1rem var(--font-display); }
.apps .apps-more a { border-style: dashed; background: none; justify-content: center; color: var(--lavender); }
@media (max-width: 920px) { .support { padding: 72px 0; } .support-card { grid-template-columns: 1fr; gap: 40px; } }
