/* ============================================================
   Meeple Mind — landing page v2
   Dark, cinematic, image-heavy. Same warm olive/mustard family
   as v1, flipped to night mode.
   ============================================================ */

:root {
  --bg: #16190f;
  --bg-alt: #1d2113;
  --card: #252b18;
  --card-2: #2c3320;
  --ink: #ede9d3;
  --ink-soft: #b9b69a;
  --line: rgba(237, 233, 211, 0.14);
  --olive: #8fa262;
  --olive-deep: #5f6e42;
  --red: #d0654f;
  --red-deep: #a03f2e;
  --mustard: #e0ac4b;
  --mustard-deep: #b5832a;
  --blue: #8aa3b1;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

/* Subtle grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); font-weight: 900; color: #f7f4e2; }
h1 em { font-style: italic; color: var(--mustard); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.24rem; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: var(--mustard); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }
.container.wide { max-width: 1260px; }
.center { text-align: center; }

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

/* Honeypot — humans never see it */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.8em 1.7em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--mustard);
  color: #221d0d;
  box-shadow: 0 4px 0 var(--mustard-deep), 0 14px 30px rgba(224, 172, 75, 0.22);
}
.btn-primary:hover { background: #eebb5e; transform: translateY(-2px); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--mustard-deep); }
.btn-primary[disabled] { opacity: 0.65; cursor: wait; transform: none; }

.btn-small { padding: 0.55em 1.25em; font-size: 0.92rem; white-space: nowrap; }
.btn-big { font-size: 1.1rem; padding: 0.9em 2.2em; }

/* ---------------- AI honesty tags ---------------- */
.ai-tag {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(237, 233, 211, 0.85);
  background: rgba(15, 17, 9, 0.62);
  border: 1px solid rgba(237, 233, 211, 0.28);
  border-radius: 999px;
  padding: 2px 7px;
  backdrop-filter: blur(4px);
}
.real-tag { border-style: dashed; }
.corner-tag { position: absolute; right: 14px; bottom: 12px; z-index: 3; }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 18, 10, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(237, 233, 211, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 13px;
  padding-bottom: 13px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: #f7f4e2;
}

.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
}
.nav-links a:hover { color: var(--mustard); }

/* ---------------- Eyebrows ---------------- */
.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--red);
  margin: 0 0 0.9em;
}
.eyebrow-light { color: var(--mustard); }

/* ---------------- Hero: full-bleed epic art ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 11vh, 140px) 0 clamp(88px, 12vh, 150px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("img/hero-board.jpg") center right / cover no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(16, 18, 10, 0.94) 0%, rgba(16, 18, 10, 0.78) 38%, rgba(16, 18, 10, 0.25) 68%, rgba(16, 18, 10, 0.45) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 22%),
    linear-gradient(to bottom, rgba(16, 18, 10, 0.55) 0%, transparent 16%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

.lede {
  font-size: 1.18rem;
  color: #d4d1b4;
  max-width: 32em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.microcopy { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.9em; }

.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 1.6em 0 0;
}
.hero-badges li {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e3dfc6;
  background: rgba(22, 25, 15, 0.6);
  border: 1.5px solid rgba(237, 233, 211, 0.22);
  border-radius: 999px;
  padding: 6px 14px;
  backdrop-filter: blur(4px);
}

.hero-tag {
  position: absolute;
  right: 20px;
  bottom: 16px;
  z-index: 3;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
  padding: 6px 14px;
}

/* ---------------- Phone mockup ---------------- */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-art::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 420px; height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(224, 172, 75, 0.22), transparent 65%);
  pointer-events: none;
}

.phone {
  position: relative;
  width: 226px;
  background: #0d0f08;
  border-radius: 40px;
  padding: 8px 7px 9px;
  box-shadow:
    0 0 0 1px rgba(237, 233, 211, 0.16),
    0 34px 70px rgba(0, 0, 0, 0.65);
  transform: rotate(-3deg);
  z-index: 2;
}

.phone-screen {
  background: #f7f6ea;
  border-radius: 33px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 19.4;
}

.phone-island {
  display: block;
  width: 68px;
  height: 16px;
  margin: 8px auto 2px;
  background: #0d0f08;
  border-radius: 12px;
  flex-shrink: 0;
}

.phone-home {
  display: block;
  width: 86px;
  height: 4px;
  margin: 2px auto 8px;
  background: rgba(46, 49, 34, 0.22);
  border-radius: 4px;
  flex-shrink: 0;
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1.5px solid rgba(46, 49, 34, 0.15);
}
.phone-logo { height: 22px; width: auto; }
.phone-title { font-weight: 800; font-size: 0.8rem; white-space: nowrap; color: #2e3122; }
.phone-voice {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
  color: #49562f;
  background: rgba(95, 110, 66, 0.16);
  border-radius: 999px;
  padding: 2px 8px;
}
.phone-voice::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5f6e42;
  margin-right: 5px;
  vertical-align: 1px;
}

.chat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  gap: 9px;
  padding: 10px 12px 12px;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #2e3122;
}
.chat-who {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5d5f48;
  margin-bottom: -2px;
}
.chat-who::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #c25441;
  margin-right: 5px;
  vertical-align: 1px;
}

.chat-roll {
  align-self: center;
  margin: 1px 0;
  font-size: 0.62rem;
  font-weight: 800;
  color: #5d5f48;
  background: rgba(46, 49, 34, 0.07);
  border: 1px dashed rgba(46, 49, 34, 0.25);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}
.bubble {
  margin: 0;
  padding: 7px 11px;
  border-radius: 13px;
  max-width: 88%;
}
.bubble.bot {
  background: #e7e4d0;
  color: #2e3122;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.bubble.me {
  background: #5f6e42;
  color: #f7f6ea;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.phone-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 6px;
  border-top: 1.5px solid rgba(46, 49, 34, 0.15);
}
.fake-input {
  flex: 1;
  min-width: 0;
  font-size: 0.72rem;
  color: #5d5f48;
  border: 1.5px solid rgba(46, 49, 34, 0.15);
  border-radius: 999px;
  padding: 6px 12px;
  background: #faf9ef;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mic {
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: #c25441;
  border-radius: 50%;
  box-shadow: 0 2px 0 #a03f2e;
}
.mic svg { width: 16px; height: 16px; fill: #f7f6ea; }

/* ---------------- Subscribe forms ---------------- */
.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.6em;
  position: relative;
}

.subscribe-form input:not(.hp) {
  flex: 1 1 240px;
  font: inherit;
  padding: 0.78em 1.2em;
  border-radius: 999px;
  border: 2px solid rgba(237, 233, 211, 0.24);
  background: rgba(15, 17, 9, 0.62);
  color: var(--ink);
  min-width: 0;
  backdrop-filter: blur(4px);
}
.subscribe-form input:not(.hp)::placeholder { color: rgba(185, 182, 154, 0.75); }
.subscribe-form input:not(.hp):focus {
  outline: none;
  border-color: var(--mustard);
  box-shadow: 0 0 0 4px rgba(224, 172, 75, 0.18);
}

.subscribe-form.stacked { flex-direction: column; }
.subscribe-form.stacked input:not(.hp) { flex: none; width: 100%; }

.form-msg { flex-basis: 100%; margin: 4px 4px 0; font-weight: 700; font-size: 0.95rem; min-height: 1.4em; }
.form-msg.ok { color: var(--olive); }
.form-msg.err { color: var(--red); }

/* ---------------- Sections ---------------- */
.section { padding: clamp(72px, 10vh, 120px) 0; }
.section-alt { background: var(--bg-alt); }

.section-lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38em;
}
.section-lede.center { margin-left: auto; margin-right: auto; }

/* ---------------- Steps: board track ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 7%;
  right: 7%;
  border-top: 3px dashed rgba(237, 233, 211, 0.22);
}

.step { position: relative; }

.step-num {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: #f7f6ea;
  margin-bottom: 18px;
  border: 3px solid var(--bg);
}
.step:nth-child(1) .step-num { background: var(--red);     box-shadow: 0 3px 0 var(--red-deep); }
.step:nth-child(2) .step-num { background: var(--mustard); box-shadow: 0 3px 0 var(--mustard-deep); color: #221d0d; }
.step:nth-child(3) .step-num { background: var(--olive);   box-shadow: 0 3px 0 var(--olive-deep); color: #f7f6ea; }

.step p { margin: 0; color: var(--ink-soft); }
.step em { color: var(--ink); }

/* ---------------- Feature cards: image-topped ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 64px;
}

.fcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.55);
}

.fcard-art {
  position: relative;
  margin: 0;
}
.fcard-art img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.fcard-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 25, 15, 0.55), transparent 45%);
}
.fcard-art .ai-tag {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
}

.fcard-body { padding: 20px 22px 24px; }
.fcard-body h3 { margin-bottom: 0.4em; }
.fcard-body p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------------- Story: full-bleed cinematic ---------------- */
.story-bleed {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 15vh, 170px) 0;
}
.story-bg {
  position: absolute;
  inset: 0;
  background: url("img/story-board.jpg") center / cover no-repeat;
}
.story-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(10, 12, 7, 0.9) 0%, rgba(10, 12, 7, 0.72) 42%, rgba(10, 12, 7, 0.2) 75%, rgba(10, 12, 7, 0.35) 100%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 12%),
    linear-gradient(to top, var(--bg-alt) 0%, transparent 14%);
}

.story-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.story-copy h2 { color: #f7f4e2; }
.story-copy p { color: #d4d1b4; max-width: 34em; }
.story-copy em { color: var(--mustard); }

.story-list {
  list-style: none;
  padding: 0;
  margin: 1.5em 0 0;
}
.story-list li {
  position: relative;
  padding: 8px 0 8px 34px;
  font-weight: 700;
  color: #e3dfc6;
}
.story-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 20px; height: 20px;
  background: var(--mustard);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 8c8.8 0 16 7 16 15.6 0 4.4-1.9 8.4-5 11.2 7.9 2.6 14.7 7.6 19.6 14.3 2.3 3.2 4.9 6.1 8.4 8.9 3.3 2.7 1.4 8-2.8 8H67.4c1.9 7.4 5.6 14.3 10.3 20.9 2.2 3.1-.1 7.1-3.9 7.1H57.4c-2 0-3.8-1.2-4.5-3.1L50 84.6l-2.9 7.3c-.7 1.9-2.5 3.1-4.5 3.1H26.2c-3.8 0-6.1-4-3.9-7.1 4.7-6.6 8.4-13.5 10.3-20.9H13.8c-4.2 0-6.1-5.3-2.8-8 3.5-2.8 6.1-5.7 8.4-8.9 4.9-6.7 11.7-11.7 19.6-14.3-3.1-2.8-5-6.8-5-11.2C34 15 41.2 8 50 8z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 8c8.8 0 16 7 16 15.6 0 4.4-1.9 8.4-5 11.2 7.9 2.6 14.7 7.6 19.6 14.3 2.3 3.2 4.9 6.1 8.4 8.9 3.3 2.7 1.4 8-2.8 8H67.4c1.9 7.4 5.6 14.3 10.3 20.9 2.2 3.1-.1 7.1-3.9 7.1H57.4c-2 0-3.8-1.2-4.5-3.1L50 84.6l-2.9 7.3c-.7 1.9-2.5 3.1-4.5 3.1H26.2c-3.8 0-6.1-4-3.9-7.1 4.7-6.6 8.4-13.5 10.3-20.9H13.8c-4.2 0-6.1-5.3-2.8-8 3.5-2.8 6.1-5.7 8.4-8.9 4.9-6.7 11.7-11.7 19.6-14.3-3.1-2.8-5-6.8-5-11.2C34 15 41.2 8 50 8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Movie-style subtitle pinned to the bottom of the scene */
/* Centered with margins, not transform — the reveal animation owns transform */
.subtitle-bar {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  bottom: clamp(26px, 5vh, 54px);
  z-index: 2;
  width: min(680px, calc(100% - 48px));
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f2ecd7;
  background: rgba(8, 10, 5, 0.6);
  border: 1px solid rgba(237, 233, 211, 0.14);
  border-radius: 10px;
  padding: 9px 16px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(3px);
}
.subtitle-bar span { font-weight: 600; font-style: italic; opacity: 0.85; }

/* ---------------- Cat intermission ---------------- */
.cat-break { padding-bottom: clamp(72px, 10vh, 120px); }

.cat-frame {
  position: relative;
  margin: 0 auto;
  max-width: 640px;
  background: #f4f1de;
  padding: 14px 14px 18px;
  border-radius: 6px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  transform: rotate(-1.6deg);
}
.cat-frame img { border-radius: 3px; }
.cat-frame .ai-tag {
  position: absolute;
  top: 26px;
  right: 26px;
}
.cat-frame figcaption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: #4b4a38;
  padding: 14px 6px 2px;
  text-align: center;
}

/* ---------------- Minds ---------------- */
.minds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.mind p { margin: 0; color: var(--ink-soft); }

.mind-pip {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 1.5px solid var(--line);
  background: var(--card);
}
.mind-pip svg { width: 26px; height: 26px; }
.pip-red svg     { fill: var(--red); }
.pip-mustard svg { fill: var(--mustard); }
.pip-olive svg   { fill: var(--olive); }

.games-strip { margin-top: 56px; text-align: center; }
.games-label {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.games-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.games-chips li {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 7px 18px;
}
.games-chips .chip-next {
  border-style: dashed;
  color: var(--mustard);
  background: transparent;
}

/* ---------------- House rules ---------------- */
.rules {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  gap: 14px;
  counter-reset: rule;
}
.rule {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 20px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
}
.rule p { margin: 0; color: var(--ink-soft); }
.rule strong { color: var(--ink); }
.rule-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 3px;
}
.rule:nth-child(1) .rule-num { color: var(--red); }
.rule:nth-child(2) .rule-num { color: var(--mustard); }
.rule:nth-child(3) .rule-num { color: var(--olive); }
.rule:nth-child(4) .rule-num { color: var(--blue); }
.rule:nth-child(5) .rule-num { color: var(--red); }

/* ---------------- Join ---------------- */
.join-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  margin-top: 30px;
}
.join-card p { color: var(--ink-soft); max-width: 36em; margin-left: auto; margin-right: auto; }
.join-card .subscribe-form { max-width: 420px; margin: 1.6em auto 0; }

.join-meeples { position: absolute; top: -30px; left: 0; right: 0; height: 30px; }
.jm { position: absolute; width: 42px; height: 42px; }
.jm-1 { fill: var(--red);     left: 18%; transform: rotate(-8deg); }
.jm-2 { fill: var(--mustard); left: calc(50% - 21px); }
.jm-3 { fill: var(--olive);   right: 18%; transform: rotate(9deg); }

/* ---------------- Vision: big logo over epic dusk ---------------- */
.vision {
  position: relative;
  overflow: hidden;
  padding: clamp(110px, 18vh, 200px) 0;
}
.vision-bg {
  position: absolute;
  inset: 0;
  background: url("img/vision-board.jpg") center / cover no-repeat;
}
.vision-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(12, 14, 8, 0.55), rgba(12, 14, 8, 0.25) 60%, transparent),
    linear-gradient(to bottom, var(--bg-alt) 0%, transparent 14%),
    linear-gradient(to top, var(--bg) 0%, transparent 14%);
}

.vision-inner { position: relative; z-index: 2; }

.vision-logo {
  height: clamp(120px, 18vw, 190px);
  width: auto;
  margin: 0 auto 26px;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.7));
}

.vision-line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  color: #f7f4e2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  margin: 0 auto;
  max-width: none;
  white-space: nowrap;
}

/* ---------------- FAQ ---------------- */
.faq-list { margin-top: 32px; }

.faq-list details {
  border-bottom: 1.5px solid var(--line);
  padding: 0 4px;
}
.faq-list details:first-child { border-top: 1.5px solid var(--line); }

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 18px 0;
  color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--mustard);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--ink-soft); margin: 0 0 20px; max-width: 60ch; }

/* ---------------- Footer ---------------- */
.footer {
  background: #101208;
  color: var(--ink-soft);
  padding: 56px 0 48px;
  border-top: 1px solid rgba(237, 233, 211, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.footer .brand { color: #f2f1de; }
.footer-brand p { margin: 14px 0 4px; }
.footer a { color: var(--mustard); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-fine { font-size: 0.86rem; color: #8f8d72; }
.footer-fine p { margin-bottom: 0.9em; }

/* ---------------- Reveal on scroll ---------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .fcard, .btn { transition: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1120px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { margin-top: 26px; }
  .hero-bg { background-position: center; }
  .story-grid { grid-template-columns: 1fr; }
  .story-bg::after {
    background:
      linear-gradient(to bottom, rgba(10, 12, 7, 0.85), rgba(10, 12, 7, 0.55)),
      linear-gradient(to bottom, var(--bg) 0%, transparent 12%),
      linear-gradient(to top, var(--bg-alt) 0%, transparent 14%);
  }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { display: none; }
  .minds-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .vision-line { white-space: normal; }
}

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

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .lede { font-size: 1.08rem; }
  .section { padding: 60px 0; }
  .hero { padding-top: 56px; }
  .phone { transform: rotate(-2deg); }
  .subtitle-bar { font-size: 0.74rem; }
  .rule { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; }
  .cat-frame { transform: rotate(-1deg); }
  .hero-tag { position: static; display: inline-block; margin: 18px 24px 0; }
}
