/* gotchamissions.com marketing pages (landing, support, privacy, 404).
   The browser game client (play.html) keeps styles.css. */

@font-face {
  font-family: "Palamecia Titling";
  src: url("/fonts/palamecia_titling.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --honey: #FFD400;       /* store yellow: the page's field */
  --honey-deep: #D6A817;  /* app primary: mission banner */
  --ink: #221F1C;         /* app ink #2B2926, a touch deeper for contrast */
  --ink-soft: #4A4540;
  --paper: #F7F5F0;       /* app card */
  --ground: #E7E4DE;      /* app background */
  --on-ink: #F7F5F0;
  --on-ink-soft: #CFC9BF;

  --display: "Palamecia Titling", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  --text: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 3vw, 32px);
  --max: 1360px;
  --section: clamp(88px, 12vw, 180px);
  --stroke: 3px;

  --step-hero: clamp(3rem, 8.6vw, 8.4rem);
  --step-h2: clamp(2.25rem, 5.4vw, 5rem);
  --step-h3: clamp(1.5rem, 2.6vw, 2.25rem);
  --step-lead: clamp(1.125rem, 1.6vw, 1.375rem);
  --step-body: 1.0625rem;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--honey);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
p, h1, h2, h3, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--honey); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-ink :focus-visible { outline-color: var(--honey); }

.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 20; background: var(--ink); color: var(--honey); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.display, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: .95;
  text-wrap: balance;
}
h1 { font-size: var(--step-hero); }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); line-height: 1; }
.lead { font-size: var(--step-lead); line-height: 1.45; max-width: 34em; text-wrap: pretty; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: var(--stroke) solid var(--ink);
  background: var(--ink); color: var(--honey);
  font-family: var(--display); font-size: 1.125rem; letter-spacing: .01em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease-out), background-color .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--honey); }
.on-ink .btn { background: var(--honey); color: var(--ink); border-color: var(--honey); }

.store-badge { display: inline-block; border-radius: 12px; transition: transform .18s var(--ease-out); }
.store-badge img { width: 168px; height: 56px; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge:active { transform: translateY(1px); }

.text-link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }
.text-link:hover { text-decoration-thickness: 4px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); min-height: 84px; }
.brand img { width: 132px; height: 32px; }
.site-nav { display: flex; gap: clamp(14px, 2.4vw, 32px); margin-left: auto; align-items: center; font-weight: 700; }
.site-nav a { text-decoration: none; padding: 8px 0; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .btn { min-height: 44px; padding: 0 20px; font-size: 1rem; }
@media (max-width: 880px) {
  .site-nav .hide-sm { display: none; }
}
@media (max-width: 420px) {
  .brand img { width: 112px; height: 27px; }
  .site-nav { gap: 14px; }
  .site-nav .btn { padding: 0 16px; }
}

/* Returning player notice */
.rejoin { display: none; background: var(--ink); color: var(--on-ink); }
.rejoin.is-visible { display: block; }
.rejoin .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; min-height: 52px; padding-top: 8px; padding-bottom: 8px; }
.rejoin a { color: var(--honey); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-bottom: clamp(48px, 7vw, 96px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.hero__copy { padding: clamp(24px, 4vw, 64px) 0; }
h1#hero-title { font-size: clamp(2.6rem, 5.6vw, 6.4rem); }
.hero h1 { margin-bottom: clamp(20px, 2.5vw, 32px); }
.hero h1 span { display: block; }
.hero .lead { margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__note { margin-top: 20px; font-size: .9375rem; color: var(--ink-soft); }

.deal { margin-right: calc(-1 * var(--gutter)); }
.deal__stage {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1536 / 1024;
  overflow: hidden;
  background: #E9B80A;
}
.deal__stage picture, .deal__stage img { width: 100%; height: 100%; object-fit: cover; }
.deal__stage img { transform-origin: 60% 50%; animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.035) translate(-0.6%, 0.4%); } }

/* The mission is written on the blank card the bee is hiding behind. */
.deal__card {
  position: absolute;
  left: 22.6%; top: 14.5%; width: 30.4%; height: 58%;
  transform: rotate(4.2deg) skewY(.6deg);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 2cqw 2.2cqw;
  color: var(--ink);
  perspective: 800px;
}
.deal__tag {
  position: absolute; top: 3.2cqw; right: 2.4cqw;
  font-family: var(--display); font-size: 1.45cqw; text-transform: uppercase; letter-spacing: .02em;
}
.deal__pack {
  position: absolute; bottom: 3.6cqw; left: 3.4cqw; right: 2cqw; text-align: left;
  font-family: var(--display); font-size: 1.3cqw; text-transform: uppercase; color: var(--ink-soft);
}
.deal__text {
  font-family: var(--display); font-size: 3.05cqw; line-height: 1.12; text-transform: uppercase;
  background: var(--honey-deep);
  border: .32cqw solid var(--ink);
  border-radius: 1.6cqw;
  padding: 1.5cqw 1.6cqw;
  width: 100%;
  text-wrap: balance;
}
.deal__card.is-dealing .deal__text { animation: flip .5s var(--ease-out); }
@keyframes flip {
  0% { transform: rotateX(0); opacity: 1; }
  45% { transform: rotateX(88deg); opacity: .2; }
  55% { transform: rotateX(-88deg); opacity: .2; }
  100% { transform: rotateX(0); opacity: 1; }
}

.deal__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px var(--gutter) 0 0; }
.deal__label { font-weight: 700; margin-right: 4px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: var(--stroke) solid var(--ink); background: transparent; cursor: pointer;
  font-weight: 700; font-size: .9375rem;
  transition: background-color .15s, color .15s, transform .15s var(--ease-out);
}
.chip:hover { transform: translateY(-1px); background: rgba(34,31,28,.08); }
.chip:active { transform: translateY(1px); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--honey); }
.deal__again { margin-left: auto; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { padding-bottom: 0; }
  .deal { margin-left: calc(-1 * var(--gutter)); }
  .deal__controls { padding-left: var(--gutter); }
  .deal__again { margin-left: 0; }
}
@media (max-width: 960px) {
  .deal__stage { aspect-ratio: 1260 / 1024; }
  .deal__stage img { object-position: 30% 50%; }
  .deal__card { left: 13.2%; width: 37.4%; }
  .deal__text { font-size: 3.7cqw; }
  .deal__tag { font-size: 1.8cqw; top: 3.8cqw; right: 2.8cqw; }
  .deal__pack { font-size: 1.6cqw; bottom: 4.4cqw; }
}

/* ---------- How it works (ink field) ---------- */
.on-ink { background: var(--ink); color: var(--on-ink); }
.how { padding: var(--section) 0; }
.how__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 120px); align-items: center; }
.how__phone img { width: 100%; max-width: 380px; margin: 0 auto; }
.how h2 { margin-bottom: clamp(28px, 4vw, 56px); }
.steps { display: grid; gap: clamp(22px, 3vw, 36px); }
.steps li { font-size: clamp(1.25rem, 2.2vw, 1.875rem); line-height: 1.3; max-width: 26em; }
.steps strong { color: var(--honey); font-weight: 700; }
.how__aside { margin-top: clamp(32px, 4vw, 48px); color: var(--on-ink-soft); max-width: 36em; }
.how__aside a { color: var(--honey); }
@media (max-width: 860px) {
  .how__grid { grid-template-columns: 1fr; }
  .how__phone { order: 2; }
  .how__phone img { max-width: 300px; }
}

/* ---------- Modes (paper field) ---------- */
.modes { background: var(--ground); padding: var(--section) 0; }
.modes h2 { margin-bottom: 16px; }
.modes .lead { margin-bottom: clamp(40px, 6vw, 80px); }
.modes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.mode img { width: min(100%, 420px); margin-bottom: 20px; }
.mode:nth-child(2) { margin-top: clamp(0px, 10vw, 140px); }
.mode h3 { margin-bottom: 12px; }
.mode p { max-width: 30em; }
.mode .meta { margin-top: 12px; font-weight: 700; }
@media (max-width: 760px) {
  .modes__grid { grid-template-columns: 1fr; }
  .mode:nth-child(2) { margin-top: 0; }
  .mode img { width: 70%; }
}

/* ---------- Packs (honey field, zig-zag) ---------- */
.packs { padding: var(--section) 0; }
.packs > .wrap > h2 { margin-bottom: 16px; }
.packs > .wrap > .lead { margin-bottom: clamp(48px, 7vw, 112px); }
.occasion {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 5vw, 80px); align-items: center;
  scroll-margin-top: 24px;
}
.occasion + .occasion { margin-top: clamp(64px, 9vw, 140px); }
.occasion:nth-of-type(even) .occasion__art { order: 2; }
.occasion__art { position: relative; }
.occasion__art img.bee { width: min(100%, 440px); margin: 0 auto; }
.occasion h3 { margin-bottom: 16px; }
.occasion p { max-width: 32em; margin-bottom: 20px; }

/* A real mission card, drawn to the app's ComicMissionCard spec. */
.mission-card {
  background: var(--paper); border: 4px solid var(--ink); border-radius: 24px;
  padding: 18px; max-width: 360px; margin: 0 0 24px;
}
.mission-card__cat { display: block; text-align: right; font-family: var(--display); text-transform: uppercase; font-size: .875rem; margin-bottom: 10px; }
.mission-card__text {
  display: block; background: var(--honey-deep); border: 3px solid var(--ink); border-radius: 16px;
  padding: 14px 16px; text-align: center;
  font-family: var(--display); text-transform: uppercase; font-size: 1.125rem; line-height: 1.15;
}
.occasion__links { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
@media (max-width: 760px) {
  .occasion { grid-template-columns: 1fr; }
  .occasion:nth-of-type(even) .occasion__art { order: 0; }
  .occasion__art img.bee { width: 62%; margin: 0; }
}

.deck { margin-top: clamp(80px, 10vw, 160px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); }
.deck h3 { max-width: 9em; }
.deck__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 4vw, 56px); }
.deck__list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); font-weight: 700; }
.deck__list li:nth-child(odd) { }
.deck__list span { font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 760px) {
  .deck { grid-template-columns: 1fr; }
  .deck__list { grid-template-columns: 1fr; }
}

/* ---------- Join from the browser (ink field) ---------- */
.join { padding: var(--section) 0; }
.join__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.join h2 { margin-bottom: 20px; }
.join .lead { margin-bottom: 32px; color: var(--on-ink); }
.join__art img { width: min(100%, 460px); margin-left: auto; }
.code-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; max-width: 520px; }
.code-form label { flex-basis: 100%; font-weight: 700; }
.code-form input {
  flex: 1 1 200px; min-height: 56px; padding: 0 20px;
  border: var(--stroke) solid var(--honey); border-radius: 999px; background: transparent; color: var(--on-ink);
  font-family: var(--display); font-size: 1.5rem; letter-spacing: .18em; text-transform: uppercase;
}
.code-form input::placeholder { color: #8d867c; letter-spacing: .18em; }
.code-form .btn { min-height: 56px; }
.code-form__hint { flex-basis: 100%; color: var(--on-ink-soft); font-size: .9375rem; }
@media (max-width: 760px) {
  .join__grid { grid-template-columns: 1fr; }
  .join__art { order: -1; }
  .join__art img { width: 56%; margin: 0; }
}

/* ---------- FAQ ---------- */
.faq { background: var(--ground); padding: var(--section) 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); }
.faq h2 { position: sticky; top: 32px; }
.faq dl { display: grid; gap: clamp(28px, 3.4vw, 44px); }
.faq dt { font-weight: 800; font-size: clamp(1.1875rem, 1.8vw, 1.5rem); line-height: 1.25; margin-bottom: 8px; }
.faq dd { max-width: 36em; }
.faq dd a { font-weight: 700; }
@media (max-width: 760px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq h2 { position: static; }
}

/* ---------- Footer: the name returns ---------- */
.site-footer { padding: clamp(72px, 10vw, 140px) 0 40px; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.site-footer__line { font-family: var(--display); text-transform: uppercase; font-size: var(--step-h2); line-height: .95; color: var(--honey); }
.site-footer__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; justify-content: flex-end; }
.site-footer__cta .store-badge { background: var(--on-ink); border-radius: 12px; }
.wordmark { width: 100%; margin: 0 0 clamp(40px, 6vw, 72px); }
.wordmark img { width: 100%; height: auto; }
.site-footer__cols { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); }
.site-footer h2.small { font-family: var(--text); text-transform: none; font-size: 1.0625rem; font-weight: 800; letter-spacing: 0; line-height: 1.3; margin-bottom: 14px; color: var(--on-ink); }
.footer-links { display: grid; gap: 8px; }
.footer-links a, .apps a { color: var(--on-ink); text-decoration: none; }
.footer-links a:hover, .apps a:hover strong { text-decoration: underline; }
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
.apps a { display: flex; gap: 14px; align-items: center; }
.apps img { width: 48px; height: 48px; border-radius: 11px; flex: none; }
.apps strong { display: block; font-weight: 700; }
.apps span { display: block; color: var(--on-ink-soft); font-size: .9375rem; line-height: 1.35; }
.site-footer__legal { margin-top: clamp(48px, 6vw, 72px); color: var(--on-ink-soft); font-size: .875rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 860px) {
  .site-footer__top, .site-footer__cols { grid-template-columns: 1fr; }
  .site-footer__cta { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .apps { grid-template-columns: 1fr; }
}

/* ---------- Simple pages (support, privacy, 404) ---------- */
.page { padding: clamp(32px, 6vw, 80px) 0 var(--section); }
.page__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.page__head h1 { font-size: clamp(2.75rem, 7vw, 6.5rem); margin-bottom: 20px; }
.page__head img { width: min(100%, 340px); margin-left: auto; }
.crumbs { font-size: .9375rem; margin-bottom: 20px; }
.crumbs a { font-weight: 700; }
.prose { background: var(--paper); padding: clamp(28px, 5vw, 72px) var(--gutter); }
.prose__inner { max-width: 44rem; }
.prose h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin: clamp(40px, 5vw, 56px) 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--text); text-transform: none; font-weight: 800; letter-spacing: 0; font-size: 1.1875rem; line-height: 1.3; margin: 24px 0 6px; }
.prose p, .prose ul { margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 1.25em; }
.prose li { margin-bottom: 6px; }
.prose a { font-weight: 700; }
.mail-cta { display: inline-flex; margin: 8px 0 8px; font-family: var(--text); text-transform: none; letter-spacing: 0; font-size: 1.125rem; font-weight: 800; }
@media (max-width: 760px) {
  .page__head { grid-template-columns: 1fr; }
  .page__head img { width: 46%; margin: 0; order: -1; }
}

/* ---------- Motion ---------- */
.js [data-reveal] > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js [data-reveal].is-in > * { opacity: 1; transform: none; }
.js [data-reveal].is-in > *:nth-child(2) { transition-delay: .08s; }
.js [data-reveal].is-in > *:nth-child(3) { transition-delay: .16s; }
.js [data-reveal].is-in > *:nth-child(4) { transition-delay: .24s; }
.js [data-reveal].is-in > *:nth-child(5) { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] > * { opacity: 1; transform: none; }
}

.on-ink .btn--line { background: transparent; color: var(--honey); border-color: var(--honey); }
.on-ink .btn--line:hover { background: var(--honey); color: var(--ink); }
