/* Mochi site — design system pulled straight from the app's pixel palette */
:root {
  --cream: #FFF7F0;
  --paper: #FFFDFA;
  --ink: #3A2E2B;
  --ink-soft: #6B5B54;
  --blush: #FFAABB;
  --sprout: #7CC47F;
  --sprout-dark: #3F9A4E;
  --shadow: #F2DFD4;
  --duck: #FFD94A;
  --sky: #8FB8E8;

  --font-display: 'Pixelify Sans', 'Comic Sans MS', sans-serif;
  --font-body: ui-rounded, -apple-system, 'SF Pro Rounded', 'Segoe UI', sans-serif;

  --bg: var(--cream);
  --fg: var(--ink);
  --muted: var(--ink-soft);
  --card: var(--paper);
  --line: var(--shadow);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #221B18;
    --fg: #FFF3E8;
    --muted: #C4AFa2;
    --card: #2C2420;
    --line: #40342E;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  font-size: clamp(1rem, 1.1vw, 1.0625rem);
}

.pixel { image-rendering: pixelated; }

.container { width: min(92%, 980px); margin: 0 auto; }

/* Nav */
nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}
nav .container {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0;
}
nav img { width: 30px; height: 30px; }
nav .brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--fg);
  text-decoration: none;
  margin-right: auto;
}
nav a { color: var(--muted); text-decoration: none; padding: 0.5rem 0.6rem; border-radius: 8px; }
nav a:hover, nav a[aria-current] { color: var(--fg); background: var(--line); }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem); text-align: center; }
.hero .bubble {
  display: inline-block;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  position: relative;
  margin-bottom: 0.6rem;
  box-shadow: 3px 3px 0 var(--ink);
}
.hero img.pet { width: clamp(140px, 24vw, 200px); margin: 0.5rem auto; display: block; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1;
  margin: 0.4rem 0 0.8rem;
}
.hero h1 .sprout { color: var(--sprout-dark); }
.hero p.tag { color: var(--muted); max-width: 34rem; margin: 0 auto 1.4rem; }
.badge {
  display: inline-block;
  font-family: var(--font-display);
  background: var(--ink); color: var(--cream);
  padding: 0.7rem 1.3rem; border-radius: 12px;
  text-decoration: none; font-size: 1.05rem;
  box-shadow: 4px 4px 0 var(--blush);
}
.badge:hover { transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--blush); }
.badge.soon { cursor: default; }

/* Sections */
section { padding: clamp(2rem, 6vw, 4.5rem) 0; }
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin-bottom: 1.2rem;
}
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } .grid.two { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 4px 4px 0 var(--line);
}
.card h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card.pet { text-align: center; }
.card.pet img { width: 96px; }
.card.pet .name { font-family: var(--font-display); margin-top: 0.3rem; }
.card.pet .species { color: var(--muted); font-size: 0.85rem; }

/* Verify block */
.verify {
  background: var(--ink); color: var(--cream);
  border-radius: 14px; padding: 1.1rem 1.3rem;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.85rem;
  overflow-x: auto;
  box-shadow: 4px 4px 0 var(--sprout);
  white-space: pre;
}
.verify .c { color: var(--sky); }

/* Legal pages */
main.doc { padding: clamp(2rem, 5vw, 3.5rem) 0; }
main.doc .container { max-width: 68ch; }
main.doc h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.3rem; }
main.doc .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
main.doc h2 { font-size: 1.35rem; margin: 2rem 0 0.6rem; }
main.doc p, main.doc li { color: var(--fg); }
main.doc ul { padding-left: 1.4rem; margin: 0.5rem 0 1rem; }
main.doc a { color: var(--sprout-dark); }
main.doc details {
  background: var(--card); border: 2px solid var(--line);
  border-radius: 12px; padding: 0.8rem 1rem; margin-bottom: 0.7rem;
}
main.doc summary { cursor: pointer; font-weight: 600; }
main.doc details p { margin-top: 0.6rem; color: var(--muted); }
.note {
  background: var(--card); border: 2px dashed var(--sprout);
  border-radius: 12px; padding: 0.9rem 1.1rem; margin: 1rem 0;
}

/* Footer */
footer { border-top: 2px solid var(--line); padding: 2rem 0 3rem; margin-top: 2rem; }
footer .container { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; color: var(--muted); font-size: 0.9rem; }
footer a { color: var(--muted); }
footer .spacer { margin-left: auto; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
