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

:root {
  --bg:     #FFF9DA;
  --mint:   #B6FFB1;
  --yellow: #FFDC75;
  --orange: #FFB173;
  --red:    #FF8A7D;
  --white:  #FFFFFF;
  --black:  #000000;
  --border: 2px solid #000;
  --r:      18px;
  --shadow: 4px 4px 0 rgba(0,0,0,0.14);
  --font:   'Happy Monkey', cursive;
}

html {
  scroll-behavior: auto;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main content grows so the footer sits at the bottom on short pages */
main {
  flex: 1 1 auto;
  width: 100%;
}

.wip-bar,
nav {
  flex-shrink: 0;
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 18px;
  background: var(--yellow);
  border: var(--border);
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--black);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.skip-link:focus,
.skip-link:focus-visible {
  left: 5%;
  top: 10px;
  outline: 3px solid var(--black);
  outline-offset: 3px;
}

/* Keyboard focus visibility */
a:focus-visible,
button:focus-visible,
.nav-link:focus-visible,
.footer-link:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── WIP Banner ── */
.wip-bar {
  background: var(--yellow);
  border-bottom: var(--border);
  padding: 9px 5%;
  text-align: center;
  font-size: 0.8rem;
}

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 5%;
  min-height: 62px;
  background: var(--bg);
  border-bottom: var(--border);
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  font-family: var(--font);
  font-size: 0.8rem;
  background: var(--white);
  border: var(--border);
  border-radius: 50px;
  padding: 5px 14px;
  text-decoration: none;
  color: var(--black);
  transition: background .12s;
}
.nav-link:hover       { background: var(--mint); }
.nav-link.active      { background: var(--mint); }

/* ── Shared utils ── */
.pill {
  display: inline-block;
  border: var(--border);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.78rem;
  margin-bottom: 16px;
}

.btn {
  font-family: var(--font);
  font-size: 0.88rem;
  border: var(--border);
  border-radius: 50px;
  padding: 10px 24px;
  cursor: pointer;
  text-decoration: none;
  color: var(--black);
  box-shadow: var(--shadow);
  transition: transform .1s, box-shadow .1s;
  display: inline-block;
}
.btn:hover       { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 rgba(0,0,0,0.14); }
.btn-mint        { background: var(--mint); }
.btn-yellow      { background: var(--yellow); }
.btn-orange      { background: var(--orange); }

.divider { border: none; border-top: var(--border); }

/* ── Footer (fixed rhythm on every page) ── */
footer {
  flex-shrink: 0;
  border-top: var(--border);
  padding: 20px 5%;
  min-height: 76px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-size: 0.78rem;
  color: #333;
  line-height: 1.4;
}

footer > span:first-of-type {
  flex: 0 1 auto;
  min-width: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  flex: 1 1 200px;
}

.footer-link {
  background: var(--white);
  border: var(--border);
  border-radius: 50px;
  padding: 6px 14px;
  min-height: 34px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-size: 0.75rem;
  text-decoration: none;
  color: var(--black);
  transition: background .12s;
}
.footer-link:hover { background: var(--mint); }

/* ── Legal pages (Privacy, Terms) & Roadmap ── */
.page-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 5% 56px;
}

.doc-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Draft legal notice (Privacy, Terms, Cookies until finalised) */
.legal-draft-banner {
  background: var(--orange);
  border-bottom: var(--border);
  padding: 14px 20px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #222;
  text-align: center;
}

.legal-draft-banner strong {
  font-weight: 400;
}

.doc-header {
  background: var(--mint);
  border-bottom: var(--border);
  padding: 24px 28px;
}

.doc-header h1 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 4px;
}

.doc-header p {
  font-size: 0.78rem;
  color: #444;
}

.doc-content {
  padding: 28px;
}

.doc-content h2 {
  font-size: 0.92rem;
  font-weight: 400;
  background: var(--yellow);
  border: var(--border);
  border-radius: 50px;
  display: inline-block;
  padding: 5px 16px;
  margin: 22px 0 10px;
}

.doc-content h2:first-of-type { margin-top: 0; }

.doc-content p {
  font-size: 0.82rem;
  line-height: 1.8;
  color: #222;
  margin-bottom: 10px;
}

.doc-content a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc-content a:hover {
  background: var(--mint);
  text-decoration: none;
  border-radius: 4px;
}

.doc-content ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.doc-content ul li {
  font-size: 0.82rem;
  line-height: 1.8;
  color: #222;
  margin-bottom: 4px;
}

.doc-content .note {
  background: var(--yellow);
  border: var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.8rem;
  color: #333;
  margin-top: 20px;
}

/* Roadmap: phase labels */
.roadmap-phase {
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #555;
  margin-bottom: 6px;
  margin-top: 4px;
}

.doc-content h2 + .roadmap-phase { margin-top: -4px; }

/* ── Roadmap storyboard ── */
.storyboard {
  margin-top: 4px;
}

.storyboard-hero {
  background: var(--white);
  border: var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
}

.storyboard-hero__mint {
  background: var(--mint);
  border-bottom: var(--border);
  padding: 22px 24px;
}

.storyboard-hero__mint h1 {
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 6px;
}

.storyboard-hero__mint p {
  font-size: 0.8rem;
  color: #444;
  line-height: 1.5;
}

.storyboard-banner {
  background: var(--yellow);
  border: var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #333;
  margin: 20px 24px 24px;
}

.storyboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 0 24px 24px;
}

@media (min-width: 620px) {
  .storyboard-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

.story-panel {
  border: var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 168px;
  position: relative;
  background: var(--white);
}

.story-panel--mint   { background: var(--mint); }
.story-panel--yellow { background: var(--yellow); }
.story-panel--orange { background: var(--orange); }
.story-panel--red    { background: var(--red); }
.story-panel--paper  { background: #fffef8; }

.story-panel__frame {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.story-panel__scene {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #333;
}

.story-panel__pin {
  width: 28px;
  height: 28px;
  border: var(--border);
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.story-panel__title {
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--black);
}

.story-panel__placeholder {
  font-size: 0.78rem;
  line-height: 1.65;
  color: #555;
  font-style: italic;
  flex: 1;
}

.story-panel__sketch {
  margin-top: 6px;
  border: 2px dashed rgba(0, 0, 0, 0.22);
  border-radius: 10px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  font-size: 0.72rem;
  color: #777;
  text-align: center;
  background: rgba(255, 255, 255, 0.45);
}

