/* Palette from design/canvas/decisions.md. One green: forest on paper, sage on ink. */
:root {
  --ink: #121311; --paper: #F3F2EE; --surface: #FFFFFC; --muted: #5D5F59; --line: #DDDBD3; --fill: #E6E4DD;
  --accent: #1E5B40; --on-accent: #F3F2EE; --live: #E5484D; --warn: #C2210F;
  --island: #121311; --island-text: #F3F2EE; --island-accent: #6FBF92;
  --tile-a: #D8D1C2; --tile-b: #DDD7C9; --tile-c: #D3D8D2; --tile-d: #D9DEDC; --tile-e: #D2D9DE; --tile-f: #D8DEE2;
  --shadow: 0 1px 0 rgba(18,19,17,.04), 0 12px 32px -12px rgba(18,19,17,.18);
  --display: Rubik, system-ui, sans-serif; --body: Assistant, system-ui, sans-serif;
  --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px; --space-xl: 48px; --space-2xl: 96px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F3F2EE; --paper: #121311; --surface: #1B1C19; --muted: #A9ABA3; --line: #2E302B; --fill: #252722;
    --accent: #6FBF92; --on-accent: #121311; --warn: #F2836F;
    --island: #050605; --island-text: #F3F2EE;
    --tile-a: #2B2922; --tile-b: #302E27; --tile-c: #272B27; --tile-d: #2B2F2C; --tile-e: #262B2E; --tile-f: #2A2F32;
    --shadow: 0 0 0 1px #2E302B, 0 16px 40px -16px rgba(0,0,0,.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; letter-spacing: -0.03em; }
p { margin: 0; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }
.caps { font-family: var(--body); font-weight: 700; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Wordmark: "ment" + the green full stop (canvas Logo 1) */
.mark { font-family: var(--display); font-weight: 800; letter-spacing: -0.05em; line-height: 1; text-decoration: none; }
/* The full stop is a round dot, as LogoStop and the app intro draw it, not Rubik's square period glyph. */
.mark i, .island .ic.m i { display: inline-block; width: .23em; height: .23em; margin-left: .13em; border-radius: 50%; background: var(--accent); color: transparent; overflow: hidden; vertical-align: baseline; font-style: normal; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.top .mark { font-size: 30px; }
.top nav { display: flex; align-items: center; gap: var(--space-lg); font-weight: 600; font-size: 16px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }
.top nav .pill { color: var(--ink); border: 1.5px solid var(--ink); border-radius: 12px; padding: 8px 14px; }
.top nav .pill:hover { background: var(--ink); color: var(--paper); }

.btn {
  height: 56px; padding: 0 24px; border: 0; border-radius: 16px; background: var(--ink); color: var(--paper);
  font: 700 17px var(--body); display: inline-flex; align-items: center; gap: 10px; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

footer { padding: var(--space-xl) 0; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-md); font-size: 15px; color: var(--muted); }
footer .mark { font-size: 24px; color: var(--ink); }
footer a { text-decoration: none; font-weight: 600; color: var(--ink); }

@media (max-width: 760px) {
  .top nav a:not(.pill) { display: none; }
}
footer .links { display: flex; flex-wrap: wrap; gap: var(--space-lg); }

/* Inner pages: support, privacy policy */
.page-head { padding-block: clamp(48px, 9vh, 112px) clamp(32px, 6vh, 72px); }
.page-head h1 { font-size: clamp(48px, 8vw, 116px); line-height: .92; letter-spacing: -0.05em; max-width: 11ch; }
.page-head p { margin-top: var(--space-lg); font-size: clamp(19px, 1.8vw, 22px); line-height: 1.45; color: var(--muted); max-width: 46ch; }
.page-head p a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.doc { display: grid; grid-template-columns: minmax(200px, 27%) minmax(0, 1fr); gap: var(--space-xl); padding-bottom: var(--space-2xl); }
.toc { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; font-size: 15px; }
.toc a { text-decoration: none; color: var(--muted); padding: 6px 0; font-weight: 600; }
.toc a:hover { color: var(--ink); }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(28px, 2.8vw, 38px); line-height: 1.02; margin: 64px 0 var(--space-md); scroll-margin-top: 24px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; letter-spacing: -0.01em; margin: var(--space-lg) 0 var(--space-sm); }
.prose p + p { margin-top: var(--space-md); }
.prose ul { margin: var(--space-sm) 0 var(--space-md); padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--muted); }
.prose a { font-weight: 600; text-underline-offset: 3px; }
.prose .meta { color: var(--muted); font-size: 16px; }
@media (max-width: 760px) {
  .doc { grid-template-columns: 1fr; }
  .toc { display: none; }
}
