/* ============================================================
   Tokens — the same warm paper & teal palette as the app
   ============================================================ */
:root {
  color-scheme: dark;
  --bg: #151618;
  --bg-soft: #1c1d20;
  --surface: #222327;
  --border: #2f3135;
  --text: #e6e2d9;
  --muted: #a09b91;
  --faint: #69655e;
  --heading: #f3efe6;
  --accent: #6cc3b0;
  --accent-strong: #8fd6c6;
  --accent-soft: rgba(108, 195, 176, 0.12);
  --warm: #e0a15f;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 8px 24px -12px rgba(0, 0, 0, 0.5);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* Dark by default; the switch in the header stores "light" and sets it on <html>. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fbfaf7;
  --bg-soft: #f2f0ea;
  --surface: #ffffff;
  --border: #e4e0d6;
  --text: #25221d;
  --muted: #6d685f;
  --faint: #a29d92;
  --heading: #1d1b17;
  --accent: #2d6a5f;
  --accent-strong: #1f4f46;
  --accent-soft: rgba(45, 106, 95, 0.1);
  --warm: #d98a3d;
  --shadow: 0 30px 80px -30px rgba(40, 30, 10, 0.35), 0 8px 24px -12px rgba(40, 30, 10, 0.18);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  line-height: 1.15;
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

kbd,
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

kbd {
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--muted);
}

code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-soft);
}

.container {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

.center {
  text-align: center;
}

.eyebrow {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--heading);
  text-decoration: none;
}

.brand img {
  border-radius: 7px;
}

.brand.small {
  font-size: 16px;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
}

.github-link {
  display: grid;
  place-items: center;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: -12px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--bg-soft);
}

/* Shows the theme you would switch to. */
.theme-toggle .sun,
[data-theme="light"] .theme-toggle .moon {
  display: block;
}

.theme-toggle .moon,
[data-theme="light"] .theme-toggle .sun {
  display: none;
}

@media (max-width: 640px) {
  .nav-links a:not(.github-link):not([href="#download"]) {
    display: none;
  }
}

/* ============================================================
   Buttons
   ============================================================ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.12s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  background: var(--accent);
  color: #0f1f1c;
  box-shadow: 0 10px 24px -12px var(--accent);
}

[data-theme="light"] .button.primary {
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.secondary {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.button.secondary:hover {
  border-color: var(--faint);
}

.button.block {
  display: flex;
  width: 100%;
  height: 42px;
  font-size: 14px;
}

.button.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.button-icon {
  font-size: 17px;
  line-height: 1;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 88px 0 40px;
  text-align: center;
}

.hero h1 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(40px, 6.4vw, 72px);
}

.lede {
  max-width: 640px;
  margin: 24px auto 0;
  font-size: clamp(17px, 2vw, 19.5px);
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.cta-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--faint);
}

/* Screenshots sit in a soft "window" frame. */
.window {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-shot {
  margin-top: 64px;
}

/* ============================================================
   Modes
   ============================================================ */
.modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 48px 0 24px;
}

.mode {
  padding: 24px;
  border-radius: 14px;
  background: var(--bg-soft);
}

.mode h3 {
  margin: 12px 0 6px;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
}

.mode p {
  font-size: 15px;
  color: var(--muted);
}

.mode-key {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

/* ============================================================
   Feature rows
   ============================================================ */
.features {
  padding-top: 40px;
}

.feature-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 56px;
  padding: 64px 0;
}

/* Image on the left: keep it in the wide column. */
.feature-row.reverse {
  grid-template-columns: 1.2fr 0.8fr;
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-copy h2 {
  font-size: clamp(30px, 3.6vw, 42px);
}

.feature-copy > p:not(.eyebrow) {
  margin-top: 18px;
  font-size: 17px;
  color: var(--muted);
}

.checks {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 15.5px;
}

.checks li {
  position: relative;
  padding-left: 28px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%232d6a5f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* ============================================================
   Comments illustration: the app's document and Comments panel, in HTML
   ============================================================ */
.mock-comments {
  display: grid;
  grid-template-columns: 1fr 250px;
  min-height: 380px;
  font-size: 13px;
  line-height: 1.6;
}

.mock-doc {
  position: relative;
  padding: 34px 40px;
}

.mock-doc p {
  margin: 0 0 14px;
  color: var(--text);
}

.mock-doc .mock-h {
  margin-bottom: 18px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--heading);
}

.mock-doc .mock-faint {
  color: var(--muted);
}

.mock-mark {
  background: color-mix(in srgb, var(--warm) 6%, transparent);
  text-decoration: underline dotted color-mix(in srgb, var(--warm) 80%, transparent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.mock-mark.active {
  background: color-mix(in srgb, var(--warm) 26%, transparent);
  text-decoration-style: solid;
}

.mock-ticks {
  position: absolute;
  top: 8px;
  right: 3px;
  bottom: 8px;
  width: 8px;
}

.mock-ticks i {
  position: absolute;
  right: 0;
  width: 8px;
  height: 4px;
  border-radius: 2px;
  background: var(--warm);
  opacity: 0.8;
}

.mock-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 10px 14px;
  border-left: 1px solid var(--border);
  background: var(--bg-soft);
}

.mock-panel p {
  margin: 0;
}

.mock-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding-left: 6px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
}

.mock-panel-title span {
  padding: 0 6px;
  border-radius: 8px;
  background: var(--border);
  font-size: 10px;
  letter-spacing: 0;
  color: var(--muted);
}

.mock-card {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  font-size: 12px;
}

.mock-card.active {
  background: var(--surface);
}

.mock-quote {
  margin-bottom: 8px !important;
  padding-left: 8px;
  border-left: 2px solid var(--border);
  color: var(--muted);
}

.mock-comment + .mock-comment {
  margin-top: 9px;
}

.mock-comment > p:last-child {
  margin-left: 27px;
}

.mock-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
}

.mock-meta b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 9px;
  color: #fff;
}

.mock-meta time {
  font-weight: 400;
  color: var(--faint);
}

.mock-reply {
  margin-top: 10px !important;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--faint);
}

/* ============================================================
   Themes
   ============================================================ */
.themes {
  padding: 72px 0;
  text-align: center;
}

.themes h2,
.download h2,
.grid-section h2 {
  font-size: clamp(32px, 4vw, 46px);
}

.section-lede {
  max-width: 620px;
  margin: 18px auto 0;
  font-size: 17px;
  color: var(--muted);
}

.theme-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 34px 0 28px;
}

.theme-tabs button {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.theme-tabs button:hover {
  color: var(--text);
  border-color: var(--faint);
}

.theme-tabs button[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #0f1f1c;
}

[data-theme="light"] .theme-tabs button[aria-selected="true"] {
  color: #fff;
}

.theme-shot img {
  transition: opacity 0.2s;
}

.theme-shot img.fading {
  opacity: 0.35;
}

/* ============================================================
   Feature grid
   ============================================================ */
.grid-section {
  padding: 64px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.card h3 {
  font-size: 17px;
  font-weight: 600;
}

.card p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}

/* Smaller features under the grid: a small picture and a few lines each. */
.extras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 8px 0 40px;
}

.extra-shot {
  margin: 0 0 16px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
}

.extra-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.extra h3 {
  font-size: 15px;
  font-weight: 600;
}

.extra p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.extra b {
  font-weight: 500;
  color: var(--text);
}

/* The File menu, drawn: the native menu bar can't be screenshotted from the web build. */
.mock-menu {
  position: relative;
  font-size: 13px;
  color: var(--text);
}

.mm-bar {
  display: flex;
  gap: 18px;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.mm-bar span {
  padding: 2px 8px;
  margin: 0 -8px;
  border-radius: 5px;
}

.mm-bar .mm-open {
  background: var(--accent-soft);
}

.mm-doc {
  padding: 34px 28px 0 96px;
}

.mm-doc p {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--heading);
}

.mm-doc .mm-title {
  font-size: 19px;
}

.mm-doc .mm-heading {
  margin-top: 18px;
  font-size: 15px;
}

.mm-doc i {
  display: block;
  height: 7px;
  margin-bottom: 9px;
  border-radius: 4px;
  background: var(--border);
}

.mm-doc i.short {
  width: 60%;
}

.mm-list {
  position: absolute;
  top: 34px;
  left: 50px;
  width: min(230px, 75%);
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mm-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 9px;
  border-radius: 5px;
}

.mm-item kbd {
  padding: 0;
  border: 0;
  background: none;
  color: var(--faint);
}

.mm-active {
  background: var(--accent);
  color: #0f1f1c;
}

[data-theme="light"] .mm-active {
  color: #fff;
}

.mm-active kbd {
  color: inherit;
  opacity: 0.75;
}

.mm-list hr {
  margin: 5px 9px;
  border: 0;
  border-top: 1px solid var(--border);
}

.settings-row {
  padding-top: 32px;
}

/* ============================================================
   Download
   ============================================================ */
.download {
  padding: 88px 0 96px;
  text-align: center;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
  text-align: left;
}

.platforms.single {
  grid-template-columns: minmax(0, 380px);
  justify-content: center;
}

.other-platforms {
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--faint);
}

.platform {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.platform.current {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.platform h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
}

.platform-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.version-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.asset-meta {
  font-weight: 400;
  opacity: 0.75;
}

.whats-new {
  align-self: center;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.whats-new:hover {
  text-decoration: underline;
}

.platform-sub {
  margin: -4px 0 8px;
  font-size: 14px;
  color: var(--faint);
}

.button-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* What to do before the first launch: macOS won't open the unsigned app otherwise. */
.first-launch {
  max-width: 560px;
  margin: 22px auto 0;
  padding: 22px 24px;
  border: 1px solid color-mix(in srgb, var(--warm) 55%, var(--border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--warm) 9%, var(--surface));
  text-align: left;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

.first-launch-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.first-launch-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--warm);
  color: #1d1b17;
  font-size: 14px;
  font-weight: 700;
}

.first-launch h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--heading);
}

.first-launch ol {
  margin: 12px 0;
  padding-left: 22px;
}

.first-launch li + li {
  margin-top: 8px;
}

.first-launch li::marker {
  font-weight: 600;
  color: var(--muted);
}

.first-launch strong {
  color: var(--heading);
}

.first-launch-after {
  font-size: 14px;
  color: var(--muted);
}

.command {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.command code {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  font-size: 13.5px;
  overflow-x: auto;
  white-space: nowrap;
}

.copy-button {
  flex: none;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: 500 13px var(--font-sans);
  cursor: pointer;
}

.copy-button:hover {
  border-color: var(--muted);
}

/* Smaller print further down the download section. */
.fine-print {
  max-width: 640px;
  margin: 36px auto 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--bg-soft);
  text-align: left;
  font-size: 14.5px;
  color: var(--muted);
}

.fine-print summary {
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.fine-print p {
  margin-top: 10px;
}

/* ============================================================
   Changelog
   ============================================================ */
.nav-links a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.changelog {
  max-width: 760px;
  padding: 80px 0 96px;
}

.changelog h1 {
  font-size: clamp(38px, 5vw, 54px);
}

.changelog .section-lede {
  margin-left: 0;
}

.releases {
  margin-top: 48px;
}

.releases-status {
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  text-align: center;
  color: var(--muted);
}

.release {
  position: relative;
  padding: 0 0 44px 32px;
  border-left: 2px solid var(--border);
}

.release:last-child {
  padding-bottom: 8px;
}

/* Older versions show when asked for, under the timeline. */
.releases-more {
  margin-top: 20px;
  padding-left: 34px;
}

/* Timeline dot. */
.release::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.release:first-child::before {
  background: var(--accent);
}

.release-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.release-header h2 {
  font-size: 30px;
}

.release-header h2 a {
  text-decoration: none;
}

.release-header time {
  font-size: 14.5px;
  color: var(--faint);
}

.badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.release-notes {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text);
}

.release-notes > p:first-child {
  font-size: 17px;
  color: var(--muted);
}

.release-notes h3 {
  margin: 26px 0 10px;
  font-size: 16px;
  font-weight: 600;
}

.release-notes p {
  margin: 0 0 12px;
}

.release-notes ul {
  margin: 0;
  padding-left: 20px;
}

.release-notes li {
  margin: 6px 0;
}

.release-notes li::marker {
  color: var(--faint);
}

.release-notes a {
  color: var(--accent);
}

.release-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button.small {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 9px;
}

/* ============================================================
   Support — Mido Pro or a coffee on Ko-fi
   ============================================================ */
.support {
  padding: 88px 0 96px;
  border-top: 1px solid var(--border);
  background: radial-gradient(60% 60% at 85% 40%, color-mix(in srgb, var(--warm) 9%, transparent), transparent 70%), var(--bg-soft);
}

.support-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}

.support-copy h2 {
  font-size: clamp(30px, 3.6vw, 42px);
}

.support-copy p:not(.eyebrow) {
  margin-top: 18px;
  font-size: 17px;
  color: var(--muted);
  text-wrap: pretty;
}

.support-copy .support-thanks {
  color: var(--text);
}

.support-ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.way {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.way h3 {
  font-family: var(--font-serif);
  font-size: 24px;
}

.way p:not(.way-kicker) {
  flex: 1;
  font-size: 15px;
  color: var(--muted);
}

.way-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.way-coffee .way-kicker {
  color: var(--warm);
}

.way .button {
  margin-top: 6px;
}

.way p a {
  color: var(--accent);
}

.button.kofi {
  background: var(--warm);
  color: #1f1407;
  box-shadow: 0 10px 24px -12px var(--warm);
}

.button.kofi:hover {
  filter: brightness(1.08);
}

.support-apps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--faint);
}

.support-apps ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.support-apps a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 14px 0 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.support-apps li:last-child a {
  padding-left: 14px;
  border-style: dashed;
  background: none;
  color: var(--accent);
}

.support-apps a:hover {
  border-color: var(--faint);
}

.support-apps img,
.app-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: none;
}

.app-mark {
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 15%, var(--bg));
}

@media (max-width: 960px) {
  .support-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 620px) {
  .support-ways {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 14px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer a {
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 18px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0;
  }

  .feature-row.reverse .feature-copy {
    order: 0;
  }

  .modes,
  .grid,
  .extras,
  .platforms {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .mock-comments {
    grid-template-columns: 1fr;
  }

  .mock-panel {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 56px;
  }

  .hero-shot {
    margin-top: 44px;
  }

  .modes,
  .grid,
  .extras,
  .platforms {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Motion: the hero title types itself, and sections drift in
   gently as they scroll into view. Only active with the
   "motion" class, which is skipped for reduced motion.
   ============================================================ */
:root {
  --ease-calm: cubic-bezier(0.22, 1, 0.36, 1);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Every letter keeps its place from the start, so the title never reflows while typing. */
.type-char {
  visibility: hidden;
}

.type-char.typed {
  visibility: visible;
}

/* The caret is a thin shadow off the right edge of the last typed letter: it adds nothing to
   the line, so it can't wrap on its own and always sits right after that letter. */
.type-char.caret {
  box-shadow: 0.15em 0 0 -0.09em var(--accent);
  animation: caret-blink 1.05s steps(1) infinite;
}

.typing .type-char.caret {
  animation: none;
}

.caret-gone .type-char.caret {
  box-shadow: 0.15em 0 0 -0.09em transparent;
  transition: box-shadow 0.8s var(--ease-calm);
  animation: none;
}

@keyframes caret-blink {
  50% {
    box-shadow: 0.15em 0 0 -0.09em transparent;
  }
}

.motion .reveal {
  opacity: 0;
  transition:
    opacity 1.1s var(--ease-calm),
    transform 1.3s var(--ease-calm);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.motion .reveal.up {
  transform: translateY(28px);
}

.motion .reveal.from-left {
  transform: translateX(-36px);
}

.motion .reveal.from-right {
  transform: translateX(36px);
}

.motion .reveal.settle {
  transform: translateY(48px) scale(0.965);
}

.motion .reveal.visible {
  opacity: 1;
  transform: none;
}

/* The title is typed, so it shows straight away; the rest of the hero waits for it. */
.motion #hero-title {
  opacity: 1;
}

/* Stacked rows: drift up instead of sideways, so nothing pokes past the screen edge. */
@media (max-width: 900px) {
  .motion .reveal.from-left,
  .motion .reveal.from-right {
    transform: translateY(28px);
  }
}

/* Mido Pro: buying it, under its feature. */
.pro-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 24px;
}
.pro-cta .cta-note {
  margin: 0;
}
