/* pitch.game — "Cartridge & box art, printed" */

:root {
  --paper: #efe6d2;
  --ink: #17140f;
  --red: #e0402a;
  --red-text: #c4321f;
  --blue: #2443c4;
  --cream: #fff9ea;
  --yellow: #f2b81f;
  --shell: #8b867a;
  --stripe: #dfd5bd;
  --muted: #6b6456;
  --gutter: clamp(20px, 4vw, 48px);
  --display: 'Archivo Black', 'Arial Black', sans-serif;
  --body: 'Archivo', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, Menlo, monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.45;
}

a { color: var(--ink); }
a:hover { color: var(--red); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

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

[hidden] { display: none !important; }

/* ---------- Language switching ---------- */
html:not([data-l="fr"]) body [lang="fr"],
html[data-l="fr"] body [lang="en"] { display: none !important; }

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

/* ---------- Shared bits ---------- */
.flagbar { display: flex; height: 6px; }
.flagbar i { flex: 1; }
.flagbar i:nth-child(1) { background: var(--blue); }
.flagbar i:nth-child(2) { background: var(--cream); }
.flagbar i:nth-child(3) { background: var(--red); }

.flag { display: flex; flex: none; border: 2px solid var(--ink); }
.flag i { flex: 1; }
.flag i:nth-child(1) { background: var(--blue); }
.flag i:nth-child(2) { background: #fff; }
.flag i:nth-child(3) { background: var(--red); }

.tag {
  display: inline-block;
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.tilt { transform: rotate(-2deg); }

.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; }

.accent-red { color: var(--red); }
.accent-blue { color: var(--blue); }

.h2 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.placeholder-art {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--ink);
  background: repeating-linear-gradient(135deg, var(--stripe) 0 10px, var(--paper) 10px 20px);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  text-align: center;
}
.ratio-16x9 { aspect-ratio: 16 / 9; }

/* ---------- Buttons ---------- */
.btn {
  --sh: var(--ink);
  display: inline-block;
  border: 3px solid var(--ink);
  padding: 16px 24px;
  font-family: var(--body);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--sh);
  cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--sh); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--sh); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-red, .btn-red:hover { background: var(--red); color: #fff; }
.btn-blue, .btn-blue:hover { background: var(--blue); color: #fff; }
.btn-paper, .btn-paper:hover { background: var(--paper); color: var(--ink); --sh: var(--blue); }
.btn-outline, .btn-outline:hover { background: transparent; color: var(--ink); box-shadow: none; transform: none; }
.btn-outline[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

/* ---------- Header ---------- */
.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--gutter);
  border-bottom: 3px solid var(--ink);
}
.logo {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}
.logo span { color: var(--red); }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.topbar-right { display: flex; gap: 12px; align-items: center; font-family: var(--mono); font-size: 13px; }
.lang-btn {
  background: none;
  border: 0;
  padding: 6px 2px;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.lang-btn:hover { color: var(--red); }
html:not([data-l="fr"]) .lang-btn[data-set-lang="en"],
html[data-l="fr"] .lang-btn[data-set-lang="fr"] { font-weight: 700; text-decoration: underline; }
.btn-dark {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-family: var(--body);
  font-weight: 700;
  text-decoration: none;
}
.btn-dark:hover { background: var(--red); color: #fff; }

/* ---------- Main ---------- */
.page { flex: 1; overflow-x: clip; }

/* ---------- Home: hero ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 56px 48px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px var(--gutter) 96px;
}
.hero h1 {
  margin: 22px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 8vw, 104px);
  line-height: .92;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.lead { margin: 28px 0 0; max-width: 520px; font-size: 21px; text-wrap: pretty; }

/* Box art */
.boxart-wrap { position: relative; justify-self: center; width: min(400px, 84%); transform: rotate(3deg); }
.boxart { border: 3px solid var(--ink); background: var(--blue); box-shadow: 12px 12px 0 var(--ink); }
.boxart-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 11px;
}
.boxart-wrap .boxart-top { padding-right: 84px; }
.boxart .placeholder-art { height: 330px; margin: 14px; }
.boxart-bottom { padding: 0 14px 14px; color: #fff; }
.boxart-title { font-family: var(--display); font-size: 34px; line-height: 1; text-transform: uppercase; }
.boxart-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
}
.boxart-badge { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 4px 8px; font-weight: 700; }

.sticker {
  position: absolute;
  top: -26px;
  right: -30px;
  width: 104px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-family: var(--display);
  font-size: 13px;
  line-height: 1.1;
  text-align: center;
  transform: rotate(12deg);
}
.stamp {
  position: absolute;
  bottom: -78px;
  left: -74px;
  width: 118px;
  height: 118px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  outline: 2px dashed var(--ink);
  outline-offset: -10px;
  background: var(--cream);
  font-family: var(--display);
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
  transform: rotate(-14deg);
}
.stamp .flag { width: 44px; height: 12px; }

@media (max-width: 640px) {
  .sticker { right: -14px; width: 92px; height: 92px; font-size: 12px; }
  .stamp { left: -22px; bottom: -64px; width: 104px; height: 104px; font-size: 10px; }
  .boxart .placeholder-art { height: 260px; }
}

/* ---------- Dark band ---------- */
.band-dark { background: var(--ink); color: var(--paper); padding: 64px var(--gutter); }
.band-dark .h2 { margin-bottom: 36px; }
.band-inner { max-width: 1184px; margin: 0 auto; }

/* Cartridges */
.carts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px; }
.cart { background: var(--shell); border-radius: 10px 10px 4px 4px; padding: 16px 16px 26px; }
.cart-label { background: var(--paper); color: var(--ink); border-top: 14px solid var(--c); padding: 20px; min-height: 190px; }
.cart-no { font-family: var(--mono); font-size: 12px; font-weight: 700; }
.cart-title { margin: 8px 0; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.1; text-transform: uppercase; }
.cart p { margin: 0; font-size: 16px; }
.cart-pins { height: 10px; margin-top: 14px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px); }

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 56px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px var(--gutter);
}

/* Spec table (back of the box / pitch facts) */
.spec { border: 3px solid var(--ink); font-family: var(--mono); font-size: 15px; }
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 2px solid var(--ink);
}
.spec-row:last-child { border-bottom: 0; }
.spec-val { font-family: var(--display); font-size: 26px; }
.spec-flag { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.spec-flag .flag { width: 36px; height: 22px; }
.note { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* FAQ */
.faq details { border-top: 2px solid var(--ink); padding: 16px 0; }
.faq details:first-of-type { border-top-width: 3px; }
.faq details:last-of-type { border-bottom: 3px solid var(--ink); }
.faq summary {
  display: flex;
  gap: 14px;
  font-size: 21px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red-text); }
.faq-no { flex: none; font-family: var(--mono); color: var(--red-text); }
.faq p { margin: 8px 0 0 62px; }

/* ---------- Form pages ---------- */
.narrow { max-width: 860px; margin: 0 auto; padding: 56px var(--gutter) 80px; }
.page-title {
  margin: 10px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(42px, 7vw, 72px);
  line-height: .95;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.intro { margin: 16px 0 36px; max-width: 560px; }

.card-form, .done {
  --sh: var(--ink);
  border: 3px solid var(--ink);
  background: var(--cream);
  box-shadow: 10px 10px 0 var(--sh);
}
.card-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 22px 28px;
  padding: clamp(20px, 4vw, 36px);
}
.full { grid-column: 1 / -1; }

.field-label {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.req { color: var(--red-text); }
.input {
  display: block;
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
}
textarea.input { resize: vertical; }
.input::placeholder { color: #8b8473; }
.input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.hint { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

fieldset.chip-group { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.chip-group .field-label { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip > span {
  display: block;
  min-height: 24px;
  border: 2px solid var(--ink);
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.chip > span:hover { background: var(--paper); }
.chip > input:checked + span { background: var(--ink); color: var(--paper); }
.chip > input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  border-top: 2px dashed var(--ink);
  padding-top: 22px;
}
.form-foot.end { justify-content: flex-end; }
.form-note { font-family: var(--mono); font-size: 12px; color: #5c5648; }
.form-foot .btn { padding: 16px 28px; }

.form-error {
  grid-column: 1 / -1;
  border: 3px solid var(--red-text);
  background: #fff;
  color: var(--red-text);
  padding: 12px 16px;
  font-weight: 700;
}
.form-error a { color: inherit; }
.honeypot { display: none !important; }

.done { padding: clamp(24px, 5vw, 40px); }
.done-stamp {
  display: inline-block;
  border: 3px solid var(--c);
  color: var(--c);
  padding: 6px 14px;
  font-family: var(--display);
  font-size: 20px;
  transform: rotate(-3deg);
}
.done h2 {
  margin: 20px 0 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1;
  text-transform: uppercase;
}
.done p { margin: 0 0 24px; }
.done a { font-weight: 700; }

/* ---------- Sample pitch ---------- */
.wide { max-width: 1280px; margin: 0 auto; padding: 40px var(--gutter) 80px; }
.pitch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 48px;
  align-items: start;
  margin-top: 28px;
}
.boxart.is-red { background: var(--red); max-width: 440px; }
.boxart.is-red .placeholder-art { height: 420px; }
@media (max-width: 640px) { .boxart.is-red .placeholder-art { height: 320px; } }
.pitch-name { padding: 0 14px 14px; color: #fff; font-family: var(--display); font-size: 36px; line-height: 1; text-transform: uppercase; }
.genre { font-family: var(--mono); font-size: 13px; font-weight: 700; }
.pitch-h1 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(46px, 7vw, 84px);
  line-height: .92;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.pitch-lead { margin: 20px 0 0; max-width: 560px; font-size: 21px; text-wrap: pretty; }
.facts { margin-top: 28px; max-width: 560px; }
.facts .spec-row { padding: 12px 18px; }
.facts .spec-row.total { background: var(--ink); color: var(--paper); }
.facts .spec-val { font-size: 28px; }
.media { margin-top: 72px; padding: 0; gap: 48px; }
.h3 { margin: 0 0 16px; font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.05; text-transform: uppercase; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* ---------- About ---------- */
.about-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 48px;
  align-items: end;
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px var(--gutter) 64px;
}
.about-hero h1 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(42px, 7vw, 84px);
  line-height: .92;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.about-hero p { margin: 0; }
.about-hero p.lead { font-size: 21px; max-width: none; }
.about-hero p + p { margin-top: 16px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin: 0; padding: 0; list-style: none; border: 3px solid var(--paper); }
.step { padding: 26px; border: 1px solid var(--paper); }
.step-no { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--c); }
.step-title { margin: 12px 0 6px; font-size: 22px; font-weight: 700; }
.step p { margin: 0; font-size: 16px; color: #d6cdb8; }

.panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px var(--gutter) 80px;
}
.panel { border: 3px solid var(--ink); padding: 28px; background: var(--cream); box-shadow: 8px 8px 0 var(--sh, transparent); }
.panel-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.1; text-transform: uppercase; }
.panel a { font-weight: 700; }
.contact { font-family: var(--mono); font-size: 15px; }

/* ---------- 404 ---------- */
.gameover { max-width: 860px; margin: 0 auto; padding: 96px var(--gutter); text-align: center; }
.gameover h1 {
  margin: 18px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 12vw, 128px);
  line-height: .9;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.gameover p { margin: 24px auto 0; max-width: 480px; font-size: 21px; }
.gameover .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--gutter);
  border-top: 3px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
}
.footer-made { display: flex; align-items: center; gap: 10px; }
.footer-made .flag { width: 30px; height: 18px; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

@media (max-width: 480px) {
  .nav { gap: 6px 16px; font-size: 13px; letter-spacing: .04em; }
}
