/* Monkey See Monkey Do landing page. Every colour, size, radius and shadow below is a token from
   docs/release/design/design-spec.md (frozen 2026-10-09, revision C 2026-10-15); nothing outside it. */

@font-face {
  font-family: 'Shantell Sans';
  src: url('fonts/shantell-sans.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #f7f0e3;
  --color-surface: #fffbf3;
  --color-sunken: #e8dcc6;
  --color-ink: #2b2522;
  --color-ink-muted: #6b5f57;
  --color-line: #2b2522;
  --color-brand: #7cb8e4;
  --color-brand-edge: #2b2522;
  --color-brand-deep: #2e6a99;
  --color-leaf: #3a7146;
  --color-goal: #f2c94c;
  --color-leaf-soft: #dce8d5;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --radius-sm: 14px;
  --radius-lg: 18px;
  --radius-full: 999px;
  --shadow-sheet: 0 4px 0 #2b2522;
  --shadow-pressed: 0 1px 0 #2b2522;
  --tilt-a: -0.8deg;
  --tilt-b: 1deg;
  --font-display: 'Shantell Sans', system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--color-leaf);
  text-underline-offset: 2px;
}

a:focus-visible,
.button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-leaf);
  outline-offset: 2px;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 var(--space-3);
}

h1 {
  font-size: 2.1rem;
  font-weight: 700;
}

h2 {
  font-size: 1.45rem;
  font-weight: 700;
}

h3 {
  font-size: 1.18rem;
  font-weight: 600;
}

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

.small {
  font-size: 0.78rem;
}

/* Header */
.site-header {
  padding: var(--space-4) 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
}

.brand-link img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

/* Hero */
.hero {
  padding: var(--space-5) 0 var(--space-6);
  text-align: center;
}

.hero .icon {
  width: 112px;
  height: 112px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sheet);
}

.hero h1 {
  margin-top: var(--space-4);
}

.hero .tagline {
  font-size: 1.18rem;
  color: var(--color-ink-muted);
  margin: 0 0 var(--space-5);
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

/* Buttons: design-spec §2 primary and secondary */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  text-decoration: none;
  color: var(--color-ink);
  box-shadow: var(--shadow-sheet);
}

.button:active {
  box-shadow: var(--shadow-pressed);
  transform: translateY(2px);
}

.button-primary {
  background: var(--color-brand);
  border: 3px solid var(--color-brand-edge);
}

.button-secondary {
  background: var(--color-surface);
  border: 2.5px solid var(--color-line);
  min-height: 48px;
  font-size: 1rem;
}

.badge-link img {
  height: 54px;
  width: auto;
}

/* Cards: design-spec "sheet" with the revision-C tilt (tilt.a / tilt.b) */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sheet);
  padding: var(--space-5);
  transform: rotate(var(--tilt-a));
}

.card:nth-child(even) {
  transform: rotate(var(--tilt-b));
}

section {
  padding: var(--space-6) 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-sunken);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  padding: 0;
  margin: var(--space-5) 0 0;
  list-style: none;
}

.chips li {
  background: var(--color-leaf-soft);
  color: var(--color-ink);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Image placeholders: replaced by the files named in graphics-brief.md */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-sunken);
  border: 2px dashed var(--color-line);
  border-radius: var(--radius-lg);
  color: var(--color-ink-muted);
  font-size: 0.78rem;
  padding: var(--space-4);
  margin: 0;
}

.placeholder-hero {
  aspect-ratio: 4 / 3;
  max-width: 480px;
  margin: var(--space-6) auto 0;
}

.placeholder-screen {
  aspect-ratio: 660 / 1434;
}

.screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.screens figure {
  margin: 0;
}

.screens figcaption {
  margin-top: var(--space-2);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

/* FAQ */
details {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sheet);
  margin-bottom: var(--space-3);
}

summary {
  cursor: pointer;
  min-height: 52px;
  padding: var(--space-3) var(--space-4);
  font-weight: 700;
  display: flex;
  align-items: center;
}

details > div {
  padding: 0 var(--space-4) var(--space-4);
}

/* Long-form pages: privacy, support */
.prose {
  max-width: 720px;
}

.prose h2 {
  margin-top: var(--space-6);
}

.prose li {
  margin-bottom: var(--space-2);
}

.owner-note {
  background: var(--color-leaf-soft);
  border-left: 4px solid var(--color-leaf);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-sunken);
  padding: var(--space-5) 0 var(--space-6);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

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

  .cta-row {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .screens {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card:nth-child(even) {
    transform: none;
  }

  .button:active {
    transform: none;
  }
}
