/*
 * Meteor Affiliates marketing site.
 *
 * Reproduces the look of the WordPress site it replaces: Montserrat throughout,
 * full-width colour bands, white uppercase section titles over a 4px rule.
 * Colours are the ones that site used, named here rather than repeated.
 */
:root {
  --pink: rgba(201, 4, 92, 0.96);
  --orange: #ef9739;
  --hot-pink: #ff0068;
  --charcoal: #424242;
  --navy: #00457a;
  --plum: #45405b;
  --silver: #b5b5b5;
  --midnight: #0e192d;
  --rule-dark: rgba(61, 57, 81, 0.67);
  --link: #2ea3f2;
  --text: #666;
  --heading: #333;
  --header-height: 130px;
  --content: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 500 14px/1.7 'Montserrat', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.2; color: var(--heading); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 80%; max-width: var(--content); margin: 0 auto; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-height);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.site-header .bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px 0 38px;
}

.site-header .logo img { width: 216px; }

.site-header nav { display: flex; gap: 28px; }

.site-header nav a {
  color: rgba(0, 0, 0, 0.6);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.site-header nav a:hover { color: rgba(0, 0, 0, 0.85); text-decoration: none; }

/* ------------------------------------------------------- section furniture */

.band { padding: 54px 0; color: #fff; }

.band-title {
  color: #fff;
  font-size: 30px;
  text-transform: uppercase;
  text-align: center;
  padding: 27px 0 0;
}

.rule {
  width: 63%;
  margin: 50px auto 23px;
  border: 0;
  border-top: 4px solid #fff;
}
.rule.dark { width: 78%; border-top-color: var(--rule-dark); }
.rule.grey { border-top-color: #727272; }

/* ------------------------------------------------------------------ brands */

.brands {
  background-image: linear-gradient(129deg, var(--pink) 0%, var(--orange) 100%);
  padding: 20px 0 30px;
}

.brand-grid {
  width: 94%;
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 2%;
}

.brand-col { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.brand-col a { display: block; transition: transform 0.2s ease; }
.brand-col a:hover { transform: scale(1.04); }

.brand-col .rocket-slots img { width: 200px; }
.brand-col .volcano-bingo img { width: 290px; }
.brand-col .slot-machine img { width: 420px; }
.brand-col .rocket-bingo img { width: 250px; }
.brand-col .bingo-games img { width: 160px; }
.brand-col .slot-shack img { width: 200px; }
.brand-col .slot-games img { width: 200px; }
.brand-col .casino-game img { width: 130px; }

.brands .notice { font-size: 14px; color: #fff; }

/* ------------------------------------------------------------- commissions */

.commissions { background: var(--charcoal); padding-top: 0; padding-bottom: 62px; }

.commission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin-top: 60px;
}

.headline { text-align: center; text-transform: uppercase; }
.headline .lead,
.headline .tail { font-size: 20px; color: #fff; }
.headline .big {
  font-size: 150px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  margin: 24px 0;
}

.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }

.tiers li {
  display: grid;
  grid-template-columns: 47px 1fr;
  gap: 0 28%;
  align-items: center;
}

.tiers .tier {
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  text-transform: uppercase;
}

/* A ring filled to --value per cent, drawn with a conic gradient. */
.ring {
  --value: 0;
  --colour: #3cea88;
  width: 47px;
  height: 47px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(closest-side, var(--charcoal) 79%, transparent 80%),
    conic-gradient(var(--colour) calc(var(--value) * 1%), rgba(0, 0, 0, 0.25) 0);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

/* ----------------------------------------------------------- why promote us */

.why {
  background-image: linear-gradient(129deg, var(--pink) 0%, var(--hot-pink) 100%);
  padding: 58px 0 90px;
}

.why .rule { margin-bottom: 60px; }

.reasons {
  width: 94%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 3%;
  text-align: center;
  text-shadow: 0 0.1em 0.1em rgba(0, 0, 0, 0.4);
}

.reasons h4 { color: #fff; font-size: 31px; line-height: 1; margin-bottom: 12px; }
.reasons p { font-size: 14px; }

/* ----------------------------------------------------- compliance & contact */

.compliance { background: var(--navy); padding-bottom: 80px; }
.contact { background: var(--plum); padding-bottom: 80px; }

.narrow { max-width: 648px; margin: 0 auto; font-size: 14px; }
.contact .narrow { text-align: center; }
.contact a { color: #fff; }

/* ------------------------------------------------------------ testimonials */

.testimonials { background: var(--silver); color: var(--text); padding-bottom: 80px; }

.quotes { font-size: 14px; }
.quotes blockquote { margin: 0 0 32px; }
.quotes blockquote p { margin-bottom: 14px; }
.quotes blockquote.spaced { margin-top: 64px; }

/* ----------------------------------------------------------------- tagline */

.tagline {
  position: relative;
  overflow: hidden;
  background: #0a1730 url('img/stars.jpg') center / cover no-repeat;
  padding: 150px 0 150px;
}

.tagline h2 {
  color: #fff;
  font-size: 34px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.tagline .astronaut {
  position: absolute;
  right: -400px;
  top: 140px;
  width: 600px;
}

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--midnight); padding: 26px 0 10px; text-align: center; }

.badges {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  justify-items: center;
  gap: 24px 4%;
  margin-bottom: 52px;
}
.badges img { max-height: 44px; width: auto; }
.badges .gambleaware img { max-height: 22px; }

.site-footer .legal { font-size: 14px; margin-bottom: 10px; }
.site-footer .legal span { color: #666; margin: 0 4px; }
.site-footer .copyright { color: #666; font-size: 14px; padding-bottom: 6px; }

/* ----------------------------------------------------------- policy pages */

.policy { padding: 40px 0 70px; }

.policy h1 { color: #000; font-size: 30px; text-transform: uppercase; text-align: center; }
.policy .updated { text-align: center; font-size: 14px; margin-top: 12px; }
.policy .rule { margin: 40px auto 50px; }

.policy-body {
  font: 18.6px/1.4 Helvetica, Arial, sans-serif;
  color: var(--text);
}
.policy-body h2 { font: 40px/1.25 Helvetica, Arial, sans-serif; color: var(--heading); margin: 28px 0 14px; }
.policy-body h3 { font: 35px/1.25 Helvetica, Arial, sans-serif; color: var(--heading); margin: 24px 0 12px; }
.policy-body h4 { font: 29px/1.25 Helvetica, Arial, sans-serif; color: var(--heading); margin: 20px 0 10px; }
.policy-body p { margin: 0 0 14px; }
.policy-body ul { margin: 0 0 14px; padding-left: 28px; list-style: '•  '; }
.policy-body li { margin-bottom: 14px; }
.policy-body .centre { text-align: center; }
.policy-body a { word-break: break-word; }

.policy-body table { width: 100%; border-collapse: collapse; margin: 20px 0 10px; font-size: 15px; }
.policy-body th { text-align: left; color: var(--heading); font-weight: 600; background: #f6f7f9; }
.policy-body th, .policy-body td { padding: 14px 16px; border-bottom: 1px solid #e6e8ec; vertical-align: top; }
.policy-body td code { font: 14px ui-monospace, Menlo, monospace; color: #4a5068; }

/* -------------------------------------------------------------- responsive */

@media (max-width: 980px) {
  :root { --header-height: 80px; }
  .site-header .bar { padding: 0 20px; }
  .site-header .logo img { width: 150px; }
  .site-header nav { gap: 18px; }
  .site-header nav a { font-size: 13px; letter-spacing: 1px; }

  .wrap { width: 88%; }
  .headline .big { font-size: 110px; }
  .tiers .tier { font-size: 28px; }
  .reasons { grid-template-columns: repeat(2, 1fr); gap: 40px 6%; }
  .badges { grid-template-columns: repeat(3, 1fr); }
  .tagline .astronaut { width: 420px; right: -320px; }
}

@media (max-width: 640px) {
  .site-header nav a { font-size: 12px; }
  .band-title { font-size: 24px; }
  .rule, .rule.dark { width: 80%; margin-top: 30px; }

  .brand-grid { grid-template-columns: 1fr; gap: 36px; }
  .brand-col .slot-machine img { width: 300px; }
  .commission-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 30px; }
  .headline .big { font-size: 96px; }
  .tiers { justify-content: center; }
  .tiers li { gap: 0 24px; }
  .tiers .tier { font-size: 24px; }

  .reasons { grid-template-columns: 1fr; }
  .reasons h4 { font-size: 26px; }

  .tagline { padding: 70px 0 220px; }
  .tagline h2 { font-size: 28px; }
  .tagline .astronaut { top: auto; bottom: -40px; right: -60px; width: 220px; }

  .policy-body { font-size: 16px; }
  .policy-body h2 { font-size: 28px; }
  .policy-body h3 { font-size: 24px; }
  .policy-body h4 { font-size: 21px; }
  .policy-body table, .policy-body thead, .policy-body tbody, .policy-body tr,
  .policy-body th, .policy-body td { display: block; }
  .policy-body thead { display: none; }
  .policy-body tr { border-bottom: 1px solid #e6e8ec; padding: 8px 0; }
  .policy-body td { border: 0; padding: 4px 0; }
  .policy-body td::before { content: attr(data-label) ': '; font-weight: 600; color: var(--heading); }
}
