/* Colours taken from the old friendshipisfun.com */
:root {
  --black: #000000;
  --cream: #fbf8ef;
  --purple: #b24eef;
  --purple-text: #7b2fbf;
  --navy: #1b2a5c;
  --heading: #1b597c;
  --pink: #e63875;
  --blue: #3374ff;
  --text: #2a2a2a;
  --muted: #5c5c5c;
  --radius: 14px;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Avenir Next", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 16px; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); color: var(--purple-text); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--heading); }
h3 { font-size: 1.25rem; color: var(--heading); text-transform: uppercase; }
p { margin: 0 0 16px; }
a { color: var(--purple-text); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: var(--black);
  z-index: 10;
}
.nav { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: flex; align-items: center; }
.logo img { height: 48px; width: auto; display: block; }
.nav nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav nav a { color: #fff; text-decoration: none; font-weight: 600; opacity: 0.8; white-space: nowrap; }
.nav nav a:hover, .nav nav a[aria-current="page"] { opacity: 1; }
.nav nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--pink); }
.nav-cta { white-space: nowrap; }

/* Buttons */
.button {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 3px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: transform 0.12s, filter 0.12s;
}
.button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.button-pink { background: var(--pink); }
.button-ghost { background: transparent; color: var(--purple-text); border-color: var(--purple); }
.button-ghost-light { background: transparent; color: #fff; border-color: #fff; }
.button-small { padding: 9px 18px; font-size: 0.85rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Images */
.game-logo { width: min(412px, 80%); height: auto; display: block; margin: 0 auto 8px; }
.studio-logo { width: 120px; height: auto; display: block; margin: 0 auto 16px; }
.mascot { width: 120px; height: auto; display: block; margin: 0 auto 8px; }

/* Hero */
.hero { background: var(--cream); padding: 96px 0 88px; text-align: center; }
.eyebrow {
  color: var(--pink); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.85rem;
}
.hero-pitch {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 800;
  font-style: italic;
  color: var(--purple-text);
  max-width: 42ch;
  margin: 0 auto;
}
.hero .actions { justify-content: center; }

/* Bands and sections */
.section { padding: 88px 0; }
.cream { background: var(--cream); }
.band { padding: 72px 0; color: #fff; }
.band h2 { color: #fff; }
.band-purple { background: var(--purple); }
.band-navy { background: var(--navy); }

.band iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.step img { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 20px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.gallery img { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
.tagline {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  margin: 48px 0 0;
}
.tagline em { color: var(--pink); }

.about { text-align: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 55ch; margin: 0 auto 16px; }
.text-link { font-weight: 800; text-decoration: none; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.card { border-radius: var(--radius); padding: 32px; color: #fff; }
.card h3 { color: #fff; font-size: 1.6rem; text-transform: none; }
.card p { opacity: 0.95; }
.card .button { background: #fff; }
.card-blue { background: var(--blue); }
.card-blue .button { color: var(--blue); }
.card-pink { background: var(--pink); }
.card-pink .button { color: var(--pink); }
.card-purple { background: var(--purple); }
.card-purple .button { color: var(--purple-text); }

/* Mailing list */
.signup { text-align: center; }
.signup-form {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 24px;
}
.signup-form input {
  flex: 1 1 260px;
  max-width: 360px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 0;
  font-size: 1rem;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Footer */
.site-footer { background: var(--black); color: #ccc; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.site-footer h4 { color: #fff; text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.05em; }
.site-footer a { display: block; color: #ccc; text-decoration: none; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.copyright { margin-top: 40px; font-size: 0.85rem; color: #888; }
.copyright p { margin: 0; }

/* Dark hero for the Alienate! and Assimilate! pages */
.hero-dark { color: #fff; }
.page-alienate .hero-dark { background: radial-gradient(circle at 50% 0%, #5a2a9c, #22104a 70%); }
.page-assimilate .hero-dark { background: radial-gradient(circle at 50% 0%, #2a3cb8, #0d1c82 70%); }
.hero-dark .hero-pitch { color: #fff; }
.hero-dark .button-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.game-logo-wide { width: min(560px, 90%); }

.phone-heading { color: #fff; margin-top: 48px; }
.gallery-phones { grid-template-columns: repeat(4, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; }

/* Simple page intro (Our Games, FAQ, Content Creators) */
.page-intro { background: var(--cream); padding: 72px 0 56px; text-align: center; }
.page-intro h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-intro .lead { margin-bottom: 0; }
.page-intro-navy { background: #0d1c82; color: #fff; text-align: left; }
.page-intro-navy h1 { color: #fff; margin: 0; }
.page-intro-navy .eyebrow { color: #ff8fb6; margin-bottom: 8px; }

/* Our Games banners */
.game-banner {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background-size: cover;
  background-position: left center;
  color: #fff;
}
.game-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 25%, rgba(10, 8, 40, 0.75) 60%);
}
.banner-abomin::before { background: linear-gradient(90deg, rgba(0, 0, 0, 0) 25%, rgba(60, 20, 90, 0.8) 60%); }
.game-banner-text {
  position: relative;
  width: min(560px, 100%);
  padding: 48px 32px;
  margin-right: max(24px, calc((100vw - var(--max)) / 2));
}
.game-banner h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.banner-logo { display: block; width: auto; max-width: 280px; max-height: 120px; height: auto; margin-bottom: 20px; }

/* FAQ */
.faq-intro { display: flex; align-items: center; gap: 32px; }
.faq-mascot { width: 160px; height: auto; flex-shrink: 0; }
.faq-list { max-width: 820px; }
.faq-item { border: 1px solid #c9cde6; border-radius: var(--radius); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 56px 18px 22px;
  position: relative;
  font-weight: 800;
  text-transform: uppercase;
  color: #0d1c82;
  letter-spacing: 0.02em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--pink);
}
.faq-item[open] summary { background: #f1f2fa; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-answer { padding: 8px 22px 16px; }
.faq-answer h4 { color: var(--heading); margin: 20px 0 8px; }
.faq-answer ol { padding-left: 22px; }
.faq-answer li { margin-bottom: 6px; }
.faq-more { margin-top: 28px; text-align: center; color: var(--muted); }

/* Content creators */
.creator-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.creator-card { border-radius: var(--radius); padding: 36px; background: #0d1c82; color: #fff; }
.creator-card-dark { background: #22104a; }
.creator-card h2 { color: #fff; font-size: 1.6rem; }
.creator-card a:not(.button) { color: #ffb3cd; }
.creator-card .actions { margin: 8px 0 20px; }
.creator-logo { display: block; width: auto; max-width: 240px; max-height: 110px; height: auto; margin-bottom: 20px; }
.small { font-size: 0.9rem; opacity: 0.85; }

@media (max-width: 1000px) {
  .nav { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 10px 24px; }
  .nav nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; padding-bottom: 6px; }
  .nav-cta { margin-left: auto; }
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-phones { grid-template-columns: repeat(2, 1fr); }
  .game-banner { justify-content: center; }
  .game-banner::before { background: rgba(10, 8, 40, 0.7); }
  .game-banner-text { margin: 0 auto; }
}

@media (max-width: 760px) {
  .faq-intro { flex-direction: column; text-align: center; }
  .faq-mascot { width: 120px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-phones { grid-template-columns: repeat(2, 1fr); }
  .logo img { height: 40px; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
}
