/*
 * One stylesheet for an app's landing page, help center and support page.
 * pnpm new-app copies it to sites/<slug>/styles.css and the fonts to sites/<slug>/fonts/, so each site
 * stays self-contained when tools/export-site.mjs copies it to maaaw.dk. Edit it here, then copy it to
 * every sites/<slug>/styles.css.
 *
 * The look of maaaw.dk (MAW_WebPagez, src/index.css @theme) and the admin console: light and monochrome,
 * Bebas Neue display, DM Sans text, JetBrains Mono labels. Token names are the website's, so a change there
 * maps 1:1. No external fonts, no scripts, no trackers.
 */

/* ─── Fonts (self-hosted, fonts/<name>.woff2) ──────────────────────────── */

@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/bebas-neue-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: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/bebas-neue-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("fonts/dm-sans-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: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-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;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

:root {
  /* maaaw.dk @theme, same names and values. */
  --color-bg: #ffffff;
  --color-bg-elevated: #f7f7f6;
  --color-fg: #111111;
  --color-accent: #111111;
  --color-accent-soft: rgba(17, 17, 17, 0.06);
  --color-border: rgba(0, 0, 0, 0.07);
  --color-border-strong: rgba(0, 0, 0, 0.14);
  /* 0.68 rather than the site's 0.6: body text here is long-form (5.6:1 on white, 5.3:1 on elevated). */
  --color-muted: rgba(17, 17, 17, 0.68);
  --color-dim: rgba(17, 17, 17, 0.4);
  /* The second line of a display heading: 4:1 on white, enough for text this large. */
  --color-display-dim: rgba(17, 17, 17, 0.55);
  --color-faint: rgba(17, 17, 17, 0.12);
  --color-grid: rgba(0, 0, 0, 0.035);

  /* The inverted (near-black) sections. */
  --color-ink: #111111;
  --color-ink-fg: #f4f4f2;
  --color-ink-muted: rgba(244, 244, 242, 0.72);
  --color-ink-border: rgba(255, 255, 255, 0.12);

  /* One status tone for warnings, as in the admin console: 5.9:1 on white. */
  --color-warn: #8a5a00;
  --color-warn-soft: #fbf6ea;
  --color-warn-line: rgba(138, 90, 0, 0.28);

  --font-heading: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-cta: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-surface:
    0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-paper:
    0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06),
    0 12px 32px rgba(0, 0, 0, 0.04);
  --ease-smooth: cubic-bezier(0.2, 0.7, 0.2, 1);

  --max: 74rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 4rem;

  color-scheme: light;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

::selection {
  background: var(--color-faint);
  color: var(--color-fg);
}

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

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--color-border-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--color-fg);
  outline-offset: 3px;
  border-radius: 2px;
}

.invert a:focus-visible,
.invert .btn:focus-visible,
.invert summary:focus-visible {
  outline-color: var(--color-ink-fg);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75rem;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

strong {
  font-weight: 600;
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: var(--color-accent-soft);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--color-fg);
  color: var(--color-bg);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── Labels and type ───────────────────────────────────────────────────── */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.display {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 40rem;
}

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

.mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  transition:
    background-color 0.25s var(--ease-smooth),
    color 0.25s var(--ease-smooth),
    transform 0.25s var(--ease-smooth),
    box-shadow 0.25s var(--ease-smooth);
}

.btn-primary {
  background: var(--color-fg);
  color: var(--color-bg);
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-fg);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-fg);
  border-color: var(--color-border-strong);
}

.btn-ghost:hover {
  border-color: var(--color-fg);
}

.btn .arrow {
  transition: transform 0.25s var(--ease-smooth);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.invert .btn-primary {
  background: var(--color-ink-fg);
  color: var(--color-ink);
  border-color: var(--color-ink-fg);
  box-shadow: none;
}

.invert .btn-primary:hover {
  background: transparent;
  color: var(--color-ink-fg);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ─── Header ────────────────────────────────────────────────────────────── */

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

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(1.4) blur(12px);
  }
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.brand::before {
  content: "";
  align-self: center;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--color-fg);
  border-radius: 2px;
  transform: rotate(45deg);
  margin-right: 0.1rem;
}

.brand small {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-fg);
  background: var(--color-accent-soft);
}

.site-nav .nav-lang a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--color-border-strong);
  min-height: 2.1rem;
  margin-left: 0.25rem;
}

.site-nav .nav-cta a {
  background: var(--color-fg);
  color: var(--color-bg);
  margin-left: 0.5rem;
  padding: 0.35rem 1rem;
}

.site-nav .nav-cta a:hover {
  background: var(--color-fg);
  color: var(--color-bg);
  box-shadow: var(--shadow-cta);
}

@media (max-width: 860px) {
  .site-header .wrap {
    flex-wrap: wrap;
    row-gap: 0;
    padding-top: 0.6rem;
  }

  .site-nav {
    width: calc(100% + 2 * var(--gutter));
    margin: 0 calc(-1 * var(--gutter));
  }

  .site-nav ul {
    overflow-x: auto;
    padding: 0.25rem var(--gutter) 0.5rem;
    scrollbar-width: none;
  }

  .site-nav ul::-webkit-scrollbar {
    display: none;
  }

  .site-nav .nav-cta {
    display: none;
  }

  html {
    scroll-padding-top: 7rem;
  }
}

/* ─── Sections ──────────────────────────────────────────────────────────── */

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
  border-top: 1px solid var(--color-border);
}

.section-alt {
  background: var(--color-bg-elevated);
}

.invert {
  background: var(--color-ink);
  color: var(--color-ink-fg);
  border-top-color: var(--color-ink);
}

.invert .eyebrow,
.invert .lead,
.invert .muted {
  color: var(--color-ink-muted);
}

.invert a {
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.section-head {
  display: grid;
  gap: 1rem 4rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

@media (min-width: 960px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
  }

  .section-head .lead,
  .section-head > p:last-child {
    margin-bottom: 0.5rem;
  }
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.5vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.section-head .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.section-head p {
  margin-bottom: 0;
  color: var(--color-muted);
  max-width: 36rem;
}

.section-head:last-child {
  margin-bottom: 0;
}

.invert .section-head p,
.invert .subhead {
  color: var(--color-ink-muted);
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(4rem, 8vw, 6.5rem);
  overflow: hidden;
  background-image:
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8rem;
  background: linear-gradient(transparent, var(--color-bg));
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(3rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(3.4rem, 9vw, 6.75rem);
  line-height: 0.9;
  letter-spacing: 0.005em;
  max-width: 12ch;
}

.hero h1 .dim {
  display: block;
  color: var(--color-display-dim);
}

.hero .lead {
  margin-bottom: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.75rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-fg);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--color-fg);
  opacity: 0;
  animation: status-pulse 2.4s var(--ease-smooth) infinite;
}

@keyframes status-pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.status-sep {
  color: var(--color-dim);
}

.audience {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  align-items: baseline;
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.audience .mono {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-fg);
}

.hero-note {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ─── Product sketch (the hero illustration; not a screenshot) ─────────── */

.sketch {
  position: relative;
  margin: 0;
}

.sketch-stage {
  position: relative;
  padding: clamp(1rem, 3vw, 2rem);
}

.sketch figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.mock {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-paper);
  font-size: 0.85rem;
  line-height: 1.4;
}

.mock + .mock {
  margin-top: 1rem;
}

.mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--color-border);
}

.mock-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.mock-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.mock-body {
  padding: 1rem 1.1rem 1.1rem;
}

.mock-stages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.mock-stages .from {
  color: var(--color-muted);
}

.mock-stages .to {
  padding: 0.15rem 0.5rem;
  background: var(--color-fg);
  color: var(--color-bg);
  border-radius: 4px;
}

.mock-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 1rem;
}

.mock-progress span {
  height: 4px;
  border-radius: 2px;
  background: var(--color-faint);
}

.mock-progress .on {
  background: var(--color-fg);
}

.mock-rows {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.mock-rows li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mock-line {
  flex: 1;
  height: 0.5rem;
  border-radius: 4px;
  background: var(--color-faint);
}

.mock-line.short {
  flex: 0 0 38%;
}

.mock-line.mid {
  flex: 0 0 58%;
}

.mock-fix {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--color-fg);
  border-radius: 4px;
}

.mock-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--color-fg);
  color: var(--color-bg);
  font-weight: 600;
  font-size: 0.82rem;
}

.mock-button.outline {
  background: transparent;
  color: var(--color-fg);
  border: 1.5px solid var(--color-fg);
}

.mock-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.mock-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
}

.mock-chip::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 2px;
  background: var(--color-fg);
}

.mock-pair {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.45rem 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.mock-pair .old {
  background: repeating-linear-gradient(
    -45deg,
    var(--color-faint) 0 4px,
    transparent 4px 8px
  );
}

.mock-pair .new {
  background: var(--color-fg);
}

.mock-flow {
  display: flex;
  justify-content: center;
  padding: 0.35rem 0;
  color: var(--color-muted);
}

.mock-flow svg {
  width: 1.5rem;
  height: 2rem;
}

.mock-flow .flow-line {
  stroke-dasharray: 3 4;
  animation: flow 1.6s linear infinite;
}

@keyframes flow {
  to {
    stroke-dashoffset: -14;
  }
}

/* Check, cross and warning marks, drawn in CSS so no icon font is needed. */
.mark {
  position: relative;
  flex: none;
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--color-fg);
}

.mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 0.28rem;
  height: 0.52rem;
  border: solid var(--color-bg);
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.mark-open {
  background: transparent;
  border: 1.5px solid var(--color-fg);
}

.mark-open::after {
  width: 0.5rem;
  height: 0;
  top: 50%;
  border-width: 0 0 2px 0;
  border-color: var(--color-fg);
  transform: translate(-50%, -50%);
}

.mark-no {
  background: transparent;
  border: 1.5px solid var(--color-fg);
}

.mark-no::before,
.mark-no::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.55rem;
  height: 2px;
  border: 0;
  background: var(--color-fg);
  transform: translate(-50%, -50%) rotate(45deg);
}

.mark-no::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.invert .mark {
  background: var(--color-ink-fg);
}

.invert .mark::after {
  border-color: var(--color-ink);
}

.invert .mark-no {
  background: transparent;
  border-color: var(--color-ink-fg);
}

.invert .mark-no::before,
.invert .mark-no::after {
  background: var(--color-ink-fg);
}

/* ─── How it works ──────────────────────────────────────────────────────── */

.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

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

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

.step-art {
  height: 7.5rem;
  margin: 1rem 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-elevated);
  background-image: radial-gradient(var(--color-faint) 1px, transparent 1px);
  background-size: 14px 14px;
  color: var(--color-fg);
}

.step-art svg {
  width: 11rem;
  height: 7rem;
}

.step h3 {
  font-size: 1.2rem;
}

.step p {
  color: var(--color-muted);
  margin-bottom: 0;
}

.after-steps {
  margin: 2rem 0 0;
  color: var(--color-muted);
  max-width: 44rem;
}

/* ─── Features ──────────────────────────────────────────────────────────── */

.features {
  display: grid;
  gap: 1px;
  background: var(--color-border-strong);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

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

.feature {
  padding: 1.75rem;
  background: var(--color-bg);
}

.section-alt .feature {
  background: var(--color-bg);
}

.feature h3 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 1.1rem;
}

.feature p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
}

.feature-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  color: var(--color-muted);
}

.subhead {
  margin: 3rem 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ─── Trust: what it creates / never does, what it stores ──────────────── */

.ledger {
  display: grid;
  gap: 1rem;
}

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

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

.ledger-col {
  padding: 1.75rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.invert .ledger-col {
  background: transparent;
  border-color: var(--color-ink-border);
}

.ledger-col h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ledger-col p {
  margin: 0;
}

.ledger-col .ledger-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ledger-col .ledger-foot {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.93rem;
}

.ledger-warn {
  border-color: var(--color-warn-line);
  background: var(--color-warn-soft);
}

.ledger-warn .ledger-title {
  color: var(--color-warn);
}

.ledger-warn .mark-no {
  border-color: var(--color-warn);
}

.ledger-warn .mark-no::before,
.ledger-warn .mark-no::after {
  background: var(--color-warn);
}

.invert .ledger-col p,
.invert .ledger-col li {
  color: var(--color-ink-muted);
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.ticks li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  line-height: 1.5;
}

.ticks .mark {
  margin-top: 0.15rem;
}

.fineprint {
  margin: 2rem 0 0;
  font-size: 0.95rem;
}

/* ─── Pricing ───────────────────────────────────────────────────────────── */

.pricing {
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  box-shadow: var(--shadow-surface);
  overflow: hidden;
}

.pricing table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.pricing caption {
  caption-side: bottom;
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
}

.pricing th,
.pricing td {
  padding: 0.9rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.pricing thead th,
.pricing thead td {
  border-top: 0;
  padding-top: 1.75rem;
  padding-bottom: 1.5rem;
  vertical-align: bottom;
}

.pricing tbody th {
  font-weight: 500;
  color: var(--color-muted);
}

.pricing col.feature-col {
  width: 34%;
}

.pricing .plan-pro {
  background: var(--color-bg-elevated);
}

.plan-name {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

.plan-price {
  display: block;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 0.9;
}

.plan-period {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-muted);
}

.plan-flag {
  display: inline-block;
  margin-left: 0.4rem;
  vertical-align: middle;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--color-fg);
  color: var(--color-bg);
  font-size: 0.6rem;
}

.pricing-note {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  color: var(--color-muted);
}

.pricing-note p {
  margin: 0;
  max-width: 46rem;
}

@media (max-width: 600px) {
  .pricing th,
  .pricing td {
    padding: 0.75rem 0.7rem;
    font-size: 0.85rem;
  }

  .pricing col.feature-col {
    width: 36%;
  }

  .plan-period {
    font-size: 0.75rem;
  }
}

/* Plan cards: for prices that are still a proposal (no comparison yet). */
.plans {
  display: grid;
  gap: 1rem;
}

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

.plan {
  padding: 2rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
}

.plan.plan-pro {
  background: var(--color-bg-elevated);
}

.plan .plan-price {
  margin-bottom: 0.4rem;
}

.plan .ticks {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* ─── FAQ ───────────────────────────────────────────────────────────────── */

.faq {
  display: grid;
  gap: 2rem 4rem;
}

@media (min-width: 960px) {
  .faq {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .faq .section-head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
    grid-template-columns: 1fr;
  }
}

.faq-list {
  border-top: 1px solid var(--color-border-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--color-border-strong);
}

.faq-list summary {
  position: relative;
  display: block;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 0.85rem;
  height: 1.5px;
  background: var(--color-fg);
  transition: transform 0.3s var(--ease-smooth);
}

.faq-list summary::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary::after {
  transform: rotate(0deg);
}

.faq-list summary:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-border-strong);
  text-underline-offset: 4px;
}

.faq-list details > :not(summary) {
  margin: 0 0 1.25rem;
  max-width: 44rem;
  color: var(--color-muted);
}

/* ─── Closing CTA ───────────────────────────────────────────────────────── */

.cta-band .wrap {
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 900px) {
  .cta-band .wrap {
    grid-template-columns: minmax(0, 1.4fr) auto;
  }
}

.cta-band .eyebrow {
  margin-bottom: 1.5rem;
}

.cta-band h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.92;
}

.cta-band p {
  margin: 1rem 0 0;
  max-width: 36rem;
}

.cta-band .actions {
  margin: 0;
}

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

.site-footer {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  padding: 3.5rem 0 2rem;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

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

.footer-name {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--color-fg);
}

.footer-grid p {
  max-width: 24rem;
}

.site-footer h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-fg);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-fg);
  text-decoration: underline;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-strong);
  font-size: 0.82rem;
}

.footer-base p {
  margin: 0;
}

/* ─── Help center: docs layout ──────────────────────────────────────────── */

.docs-top {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
}

.docs-top .wrap {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--color-dim);
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--color-fg);
  text-decoration: underline;
}

.crumbs [aria-current="page"] {
  color: var(--color-fg);
}

.docs-top h1 {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 4.75rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
}

.docs-top .lead {
  margin: 0;
  max-width: 44rem;
}

.docs-layout {
  display: grid;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 5rem;
}

@media (min-width: 1100px) {
  .docs-layout {
    grid-template-columns: 14.5rem minmax(0, 1fr);
    gap: 3.5rem;
    padding-top: 3rem;
  }

  .docs-layout.has-toc {
    grid-template-columns: 14.5rem minmax(0, 1fr) 12.5rem;
  }
}

.docs-sidebar,
.docs-toc {
  display: none;
}

@media (min-width: 1100px) {
  .docs-sidebar,
  .docs-toc {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 3rem);
    overflow-y: auto;
  }

  .docs-menu {
    display: none;
  }
}

.docs-nav-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.docs-nav ul {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.docs-nav a {
  display: block;
  padding: 0.4rem 0.75rem;
  border-left: 2px solid var(--color-border-strong);
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--color-muted);
  text-decoration: none;
}

.docs-nav a:hover {
  color: var(--color-fg);
  border-left-color: var(--color-fg);
}

.docs-nav a[aria-current="page"] {
  color: var(--color-fg);
  font-weight: 600;
  border-left-color: var(--color-fg);
  background: var(--color-accent-soft);
}

.docs-nav .sub a {
  padding-left: 1.5rem;
  font-size: 0.85rem;
}

.docs-toc a {
  font-size: 0.85rem;
}

/* Below 1100px the same navigation folds into one disclosure above the text. */
.docs-menu {
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.docs-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.docs-menu summary::-webkit-details-marker {
  display: none;
}

.docs-menu summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border: solid var(--color-fg);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s var(--ease-smooth);
}

.docs-menu[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.docs-menu summary .mono {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.docs-menu .docs-nav {
  padding: 0.25rem 1rem 0.5rem;
  border-top: 1px solid var(--color-border);
}

.docs-menu .docs-nav-title {
  margin-top: 1rem;
}

.docs-menu .docs-nav ul {
  margin-bottom: 0.75rem;
}

/* ─── Help center: the text ─────────────────────────────────────────────── */

.doc {
  max-width: 68ch;
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Screenshots in the help center: taken in a test portal at 1024px, shown at their own size or smaller. */
.doc .shot {
  margin: 1.25rem 0 1.75rem;
}

.doc .shot img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.doc .shot figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-muted);
}

/* Two shots side by side on a wide screen (the card is narrow), stacked on a phone. */
.doc .shot-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  align-items: start;
  margin: 1.25rem 0 1.75rem;
}

.doc .shot-pair .shot {
  margin: 0;
}

.doc > section,
.doc > .doc-section {
  padding: 0 0 1rem;
}

.doc > section + section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border-strong);
}

.doc h2 {
  position: relative;
  margin: 0 0 1.25rem;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1;
  letter-spacing: 0.015em;
}

.doc h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.doc p,
.doc li {
  color: #2a2a2a;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc ul > li {
  margin-bottom: 0.45rem;
  padding-left: 0.25rem;
}

.doc ul > li::marker {
  color: var(--color-dim);
}

.doc li > ul,
.doc li > ol {
  margin-top: 0.5rem;
}

/* Numbered steps: every ordered list in the help center. */
.doc ol {
  list-style: none;
  padding: 0;
  counter-reset: doc-step;
  margin: 1.25rem 0 1.5rem;
}

.doc ol > li {
  position: relative;
  counter-increment: doc-step;
  padding: 0 0 1.1rem 3rem;
  margin: 0;
}

.doc ol > li::before {
  content: counter(doc-step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-fg);
  color: var(--color-bg);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.doc ol > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(0.925rem - 0.5px);
  top: 2.15rem;
  bottom: 0.2rem;
  width: 1px;
  background: var(--color-border-strong);
}

.anchor {
  margin-left: 0.4rem;
  color: var(--color-dim);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-family: var(--font-mono);
  font-size: 0.55em;
  vertical-align: middle;
}

.anchor::before {
  content: "#";
}

h2:hover .anchor,
h3:hover .anchor,
.anchor:focus-visible {
  opacity: 1;
}

.anchor:hover {
  color: var(--color-fg);
}

@media (hover: none) {
  .anchor {
    opacity: 1;
  }
}

/* Tables in the text */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  line-height: 1.5;
}

.table-wrap th,
.table-wrap td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--color-border);
}

.table-wrap thead th {
  border-top: 0;
  background: var(--color-bg-elevated);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.table-wrap td:first-child {
  font-weight: 500;
  color: var(--color-fg);
}

@media (max-width: 600px) {
  .table-wrap th,
  .table-wrap td {
    padding: 0.65rem 0.75rem;
    font-size: 0.86rem;
  }
}

/* Callouts: a note, or a warning that matters before you act. */
.callout {
  position: relative;
  margin: 1.5rem 0;
  padding: 1rem 1.15rem 1rem 1.15rem;
  border: 1px solid var(--color-border-strong);
  border-left: 3px solid var(--color-fg);
  border-radius: var(--radius-sm);
  background: var(--color-bg-elevated);
  font-size: 0.97rem;
  line-height: 1.6;
}

.callout-label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-fg);
}

.callout-warn {
  border-color: var(--color-warn-line);
  border-left-color: var(--color-warn);
  background: var(--color-warn-soft);
}

.callout-warn .callout-label {
  color: var(--color-warn);
}

.doc .callout,
.doc p.callout {
  color: var(--color-fg);
}

/* A rule written as a sentence, as the editor shows it. */
.doc .rule-example {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--color-ink);
  color: var(--color-ink-fg);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.7;
}

/* Previous / next at the end of a help page */
.pager {
  display: grid;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-strong);
}

@media (min-width: 640px) {
  .pager {
    grid-template-columns: 1fr 1fr;
  }
}

.pager a {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.pager a:hover {
  border-color: var(--color-fg);
  box-shadow: var(--shadow-surface);
}

.pager .next {
  text-align: right;
  grid-column: -2;
}

.pager .mono {
  display: block;
  color: var(--color-muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pager strong {
  display: block;
  margin-top: 0.2rem;
}

/* ─── Support ───────────────────────────────────────────────────────────── */

.support-hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border);
}

.support-hero .wrap {
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

@media (min-width: 960px) {
  .support-hero .wrap {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.support-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  line-height: 0.9;
}

.mail-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--color-ink);
  color: var(--color-ink-fg);
  box-shadow: var(--shadow-paper);
}

.mail-card .mono {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.mail-card .mail {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-decoration: none;
  word-break: break-all;
}

.mail-card .mail:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.mail-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1.25rem;
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-ink-border);
  font-size: 0.92rem;
}

.mail-card dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  padding-top: 0.2rem;
}

.mail-card dd {
  margin: 0;
}

.support-body {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
}

.support-body h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
}

.support-body .ledger {
  margin-bottom: clamp(3rem, 7vw, 4.5rem);
}

.ledger-col .ticks strong {
  color: var(--color-fg);
}

.link-cards {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.link-cards a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.25s var(--ease-smooth);
}

.link-cards a:hover {
  border-color: var(--color-fg);
  box-shadow: var(--shadow-surface);
  transform: translateY(-2px);
}

.link-cards strong {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.link-cards strong::after {
  content: "→";
  font-weight: 400;
}

.link-cards span {
  color: var(--color-muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .status-dot::after {
    opacity: 0;
  }

  .mock-flow .flow-line {
    stroke-dasharray: none !important;
  }
}

/* ─── Print ─────────────────────────────────────────────────────────────── */

@media print {
  .site-header,
  .docs-sidebar,
  .docs-toc,
  .docs-menu,
  .pager,
  .skip-link {
    display: none !important;
  }
}
