/* mushroomsquad.app promo landing — Squad game-UI style
   (docs/superpowers/specs/2026-07-15-game-ui-style-spec.md). Light-only.
   Animation initial states are set by GSAP (main.js), never here, so the
   page is fully readable with JavaScript disabled. */

/* ---------- Fonts (self-hosted, no external requests) ---------- */
@font-face {
  font-family: "Baloo 2";
  src: url("fonts/Baloo2-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("fonts/Baloo2-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
/* Rounded Traditional-Chinese display face (jf open huninn, OFL — see
   fonts/LICENSE-huninn.txt), subset to this page's glyphs. Pairs with
   Baloo 2's rounded latin. */
@font-face {
  font-family: "huninn subset";
  src: url("fonts/huninn-subset.woff2?v=3") format("woff2");
  font-weight: 400;
  font-display: swap;
}
/* Rounded Japanese display face (M PLUS Rounded 1c, OFL — see
   fonts/OFL-MPLUSRounded.txt), subset to the ja page's glyphs. */
@font-face {
  font-family: "mplus rounded subset";
  src: url("fonts/mplus-rounded-subset.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
/* Rounded Korean display face (BM Jua, OFL — see fonts/OFL-Jua.txt),
   subset to the ko page's glyphs. */
@font-face {
  font-family: "jua subset";
  src: url("fonts/jua-subset.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --canvas: #FBF3E2;
  --surface: #FFFDF6;
  --ink: #4A3B2A;
  --ink-soft: #786B56;
  --border: #E8DCC3;
  --primary: #A3C940;
  --primary-deep: #7FA32C;
  --hero: #6C5BB9;
  --info: #5B8DEF;
  --accent: #E8607A;
  --serious-surface: #F4EEE4;
  --serious-accent: #AD513D;

  --cjk-fallback: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  --display-font: "Baloo 2", "huninn subset", var(--cjk-fallback);
  --body-font: "Nunito", var(--cjk-fallback);
}
/* Per-locale display faces (site i18n PR 3): each page preloads only its own
   subset; the shared tokens above stay the zh-Hant default. */
:root:lang(en) {
  --cjk-fallback: sans-serif;
  --display-font: "Baloo 2", sans-serif;
  --body-font: "Nunito", sans-serif;
}
:root:lang(ja) {
  --cjk-fallback: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  --display-font: "Baloo 2", "mplus rounded subset", var(--cjk-fallback);
  --body-font: "Nunito", var(--cjk-fallback);
}
:root:lang(ko) {
  --cjk-fallback: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --display-font: "Baloo 2", "jua subset", var(--cjk-fallback);
  --body-font: "Nunito", var(--cjk-fallback);
}

/* ---------- Language switcher ---------- */
.lang-switch {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  padding: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
}
.lang-switch a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid transparent;
}
.lang-switch a:hover { border-color: var(--border); background: var(--surface); }
.lang-switch a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--border);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

.page {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 16px 32px;
}

a { color: var(--info); }

:focus-visible {
  outline: 3px solid #3D6FD4;
  outline-offset: 2px;
  border-radius: 6px;
}

strong { font-weight: 600; }

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

/* ---------- Ambient leaves ---------- */
.leaf-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.leaf {
  position: absolute;
  width: 18px;
  height: 18px;
  opacity: 0.35;
  will-change: transform;
}
.leaf:nth-child(1) { left: 6%;  top: 12%; }
.leaf:nth-child(2) { left: 90%; top: 18%; width: 14px; }
.leaf:nth-child(3) { left: 14%; top: 55%; width: 12px; }
.leaf:nth-child(4) { left: 84%; top: 62%; }
.leaf:nth-child(5) { left: 48%; top: 30%; width: 10px; }
.leaf:nth-child(6) { left: 70%; top: 85%; width: 14px; }

.page, .page > * { position: relative; z-index: 1; }

/* ---------- Type roles ---------- */
.hero-title {
  font-family: var(--display-font);
  font-size: clamp(30px, 6vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.hero-title .hl { color: var(--primary-deep); }
.section-title {
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
}
.card-title {
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.body-text { font-size: 16px; color: var(--ink); }
.body-secondary { font-size: 14px; color: var(--ink-soft); }
.caption { font-size: 12px; color: var(--ink-soft); }

/* ---------- Leaf-chip section headers (spec: one squared corner) ---------- */
.leaf-chip {
  display: inline-block;
  background: var(--primary);
  color: var(--ink);
  border-radius: 18px 18px 18px 4px;
  padding: 6px 18px;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 24px 0 8px;
}
.hero-badge {
  display: inline-block;
  font-family: var(--display-font);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--hero);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 16px;
}
.hero-sub {
  max-width: 34em;
  margin: 14px auto 20px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-art {
  max-width: 760px;
  margin: 0 auto;
}
.hero-art img {
  display: block;
  border: 2px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 4px 0 rgba(74, 59, 42, 0.14);
}
.hero-disclaimer { margin-top: 12px; }
@media (min-width: 560px) {
  .br-narrow { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 40px 0 8px; }
.section-lead { max-width: 38em; margin-bottom: 20px; }

/* ---------- Cards ("stacked paper") ---------- */
.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 4px 0 rgba(74, 59, 42, 0.14);
}
.card .card-title { margin-bottom: 8px; }
.card-emoji { margin-bottom: 10px; }

.card-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cols-2 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Journey (how it works) ---------- */
.journey {
  position: relative;
  max-width: 560px;
  margin: 24px auto 0;
  padding-left: 36px;
}
.vine {
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 8px;
  height: calc(100% - 16px);
}
.journey-steps {
  list-style: none;
  display: grid;
  gap: 16px;
}
.jstep { position: relative; }
.jstep-who {
  position: absolute;
  top: -12px;
  left: 16px;
  font-family: var(--display-font);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 12px;
  border: 2px solid var(--border);
}
/* Chip fills darkened from --info/--accent so 13 px white text clears
   WCAG AA 4.5:1 (#3D6FD4 → 4.75:1, #C74560 → 4.7:1 vs #fff). */
.who-host   { background: var(--primary); color: var(--ink); border-color: var(--primary-deep); }
.who-helper { background: #3D6FD4; color: #fff; border-color: #2F58AC; }
.who-both   { background: #C74560; color: #fff; border-color: #A83550; }

/* ---------- Screenshots ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 720px) {
  .shots { grid-template-columns: repeat(3, 1fr); }
}
.shot {
  text-align: center;
}
.shot img {
  display: block;
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 4px 0 rgba(74, 59, 42, 0.14);
  background: var(--surface);
}
.shot figcaption { margin-top: 8px; }

/* Screenshot sub-sections: the three team-up solutions (site i18n PR 3). */
.shots-sub { margin-top: 40px; }
.shots-sub:first-of-type { margin-top: 8px; }
.shots-sub-title {
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.shots-sub-lead {
  max-width: 640px;
  margin-bottom: 20px;
}

/* ---------- Mushroom parade ---------- */
.parade {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  padding: 8px 0;
}
.shroom {
  width: 56px;
  height: 56px;
  cursor: pointer;
  will-change: transform;
  /* the GSAP wiggle is the press feedback; suppress Android Chrome's
     built-in blue tap-highlight box so it doesn't sit under the animation */
  -webkit-tap-highlight-color: transparent;
}

/* ---------- FAQ ---------- */
.faq { margin-bottom: 12px; }
.faq summary {
  cursor: pointer;
  list-style-position: outside;
}
.faq summary::marker { color: var(--primary-deep); }
.faq[open] summary { margin-bottom: 8px; }

/* ---------- Pill buttons (game-feel press) ---------- */
.pill {
  display: inline-block;
  font-family: var(--display-font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  border-radius: 999px;
  padding: 12px 24px;
}
.pill-primary {
  color: var(--ink);
  background: var(--primary);
  border: 2px solid var(--primary-deep);
  box-shadow: 0 3px 0 var(--primary-deep);
  transition: transform 150ms, box-shadow 150ms;
}
.pill-primary:active {
  transform: translateY(3px) scale(0.98);
  box-shadow: 0 0 0 var(--primary-deep);
}
.pill-secondary {
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--border);
  box-shadow: 0 3px 0 var(--border);
  transition: transform 150ms, box-shadow 150ms;
}
.pill-secondary:active {
  transform: translateY(3px) scale(0.98);
  box-shadow: 0 0 0 var(--border);
}
@media (max-width: 480px) {
  .hero-cta .pill, .cta-card .pill { display: block; width: 100%; }
}

/* ---------- Final CTA ---------- */
.cta-card {
  text-align: center;
  padding: 32px 20px;
}
.cta-title {
  font-family: var(--display-font);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.cta-card .body-text { margin-bottom: 20px; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 2px solid var(--border);
  text-align: center;
}
.footer .caption { margin-bottom: 8px; }
.footer a { color: var(--ink-soft); }
.dot { padding: 0 4px; }
