/* ==========================================================================
   SkyHills — design system
   Tokens lifted from the reference build (skyhills5.com)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,900&display=swap');

:root {
  /* Palette */
  --primary: #081259;
  --primary-dark: #060E48;
  --primary-hover: #070e40;
  --primary-soft: #0f1d85;

  --accent: #F7E113;
  --accent-hi: #FFE548;
  --accent-shadow: #745E03;
  --accent-hover: #C6B40F;

  --blue: #0B99FF;
  --blue-shadow: #074971;
  --blue-hover: #2072b1;
  --blue-pale: #DBF0FF;
  --blue-pale-2: #D0EEFD;
  --blue-ink: #286E9A;

  --cream: #FEFCE2;
  --white: #ffffff;
  --smoke: #DEE1DE;
  --grey: #7a7a7a;
  --grey-2: #7f7f7f;
  --grey-line: #E4E7F2;
  --ink: #081259;
  --black: #000000;

  --success: #11ad56;
  --danger: #ff4242;

  /* Type */
  --font: 'Poppins', 'GeneralSans', Arial, Helvetica, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 600;
  --fw-xbold: 700;
  --fw-black: 900;

  /* Metrics */
  --header-h: 64px;
  --radius-btn: 8px;
  --radius-tile: 6px;
  --radius-panel: 16px;
  --radius-card: 8px;
  --wrap: 1200px;
  --gutter: 24px;

  --shadow-header: rgba(0, 0, 0, .2) 0 4px 6px -1px, rgba(0, 0, 0, .12) 0 2px 4px -1px;
  --shadow-card: 0 2px 1px -1px rgb(0 0 0 / 20%), 0 1px 1px 0 rgb(0 0 0 / 14%), 0 1px 3px 0 rgb(0 0 0 / 12%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-weight: var(--fw-xbold); line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: clamp(18px, 2.2vw, 22px); }
p { margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.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;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--font); font-size: 13px; font-weight: var(--fw-xbold);
  line-height: 1.4; letter-spacing: .01em;
  height: 42px; padding: 0 22px;
  border-radius: var(--radius-btn);
  transition: background-color .15s ease, transform .08s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(3px); }

.btn--primary {
  background: var(--accent); color: #141414;
  box-shadow: 0 4px 0 0 var(--accent-shadow);
}
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { box-shadow: 0 1px 0 0 var(--accent-shadow); }

.btn--blue {
  background: var(--blue); color: var(--white);
  box-shadow: 0 4px 0 0 var(--blue-shadow);
}
.btn--blue:hover { background: var(--blue-hover); }
.btn--blue:active { box-shadow: 0 1px 0 0 var(--blue-shadow); }

.btn--ghost {
  background: transparent; color: var(--white);
  box-shadow: inset 0 0 0 2px var(--white);
}
.btn--ghost:hover { color: #C9C9C9; box-shadow: inset 0 0 0 2px #C9C9C9; }
.btn--ghost:active { transform: none; }

.btn--pale {
  background: var(--blue-pale); color: var(--primary);
}
.btn--pale:hover { background: #c3e6ff; }
.btn--pale:active { transform: none; }

.btn--sm { height: 34px; padding: 0 14px; font-size: 12px; }
.btn--lg { height: 50px; padding: 0 30px; font-size: 15px; }
.btn--block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--primary);
  box-shadow: var(--shadow-header);
}
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
}
.logo { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; }
.logo img, .logo svg { height: 40px; width: auto; }
.logo:hover { text-decoration: none; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--white); font-size: 16px; font-weight: var(--fw-regular);
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--blue); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.main-nav svg { width: 20px; height: 20px; flex: 0 0 20px; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
/* Login lives in the header on desktop and inside the drawer on mobile.
   Qualified with `a` so it outranks the `.main-nav a` display rule above. */
.main-nav a.main-nav__login { display: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 0; background: transparent;
  color: var(--white); cursor: pointer; border-radius: 8px;
}
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.icon-btn svg { width: 22px; height: 22px; }

.nav-toggle { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  display: block;
  margin-top: 24px;
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--primary);
  line-height: 0;
  transition: transform .18s ease, box-shadow .18s ease;
}
.hero:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(8, 18, 89, .22); text-decoration: none; }
.hero:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.hero img { width: 100%; height: auto; }

/* ---------- Trust strip ---------- */
.trust {
  margin: 30px 0 6px;
  padding: 22px 0;
  border-top: 6px solid var(--accent); border-bottom: 6px solid var(--accent);
  border-image: repeating-linear-gradient(115deg, #E8A317 0 6px, #F7C948 6px 12px) 1;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.trust__text { font-weight: var(--fw-xbold); color: var(--primary); font-size: 18px; margin: 0; }
.trust__logos { margin-left: auto; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.trust__logos span {
  font-size: 12px; font-weight: var(--fw-xbold); color: var(--grey);
  letter-spacing: .04em; text-transform: uppercase;
}

/* ==========================================================================
   Sections
   ========================================================================== */
/* margin-block, not `margin: 46px 0` — the shorthand would reset the
   `margin-inline: auto` that .wrap relies on to centre the container. */
.section { margin-block: 46px; }
.section__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.section__head h2 {
  font-size: 18px; font-weight: var(--fw-xbold); color: var(--primary-dark);
  margin: 0; display: flex; align-items: center; gap: 10px;
}
.section__head .view-all {
  margin-left: auto; font-size: 14px; font-weight: var(--fw-bold); color: var(--primary);
}

/* ==========================================================================
   Game tiles
   ========================================================================== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 16px;
}
/* Thumbnails are supplied 3:2, so tiles match rather than crop them. */
.game-tile {
  position: relative;
  border-radius: var(--radius-tile);
  overflow: hidden;
  background: linear-gradient(160deg, #12266B, #081259);
  aspect-ratio: 3 / 2;
  isolation: isolate;
}
.game-tile__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
}
/* A class selector outranks the UA `[hidden]` rule, so restore it explicitly —
   otherwise the fallback paints over a thumbnail that loaded perfectly well. */
.game-tile__fallback[hidden] { display: none; }
.game-tile__fallback {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 16px;
  background: linear-gradient(160deg, #1B3FA8, #081259);
  color: var(--white); font-weight: var(--fw-xbold); font-size: 17px; line-height: 1.2;
}
.game-tile__meta {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 30px 10px 10px;
  background: linear-gradient(180deg, rgba(8, 18, 89, 0) 0%, rgba(8, 18, 89, .88) 62%);
  color: var(--white);
  transition: opacity .18s ease;
}
.game-tile__name { font-size: 14px; font-weight: var(--fw-xbold); line-height: 1.2; }
.game-tile__prov { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }

.game-tile__overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 14px;
  background: rgba(8, 18, 89, .82);
  opacity: 0; transition: opacity .18s ease;
}
.game-tile:hover .game-tile__overlay,
.game-tile:focus-within .game-tile__overlay { opacity: 1; }
.game-tile:hover .game-tile__meta,
.game-tile:focus-within .game-tile__meta { opacity: 0; }
.game-tile--nothumb .game-tile__meta .game-tile__name { display: none; }
.game-tile--nothumb .game-tile__fallback { align-items: flex-start; padding-top: 22%; }
.game-tile__overlay .game-tile__title {
  color: var(--white); font-weight: var(--fw-xbold); font-size: 14px;
  text-align: center; line-height: 1.25; margin-bottom: 2px;
}
/* Landscape tiles have room to sit the two CTAs side by side. */
.game-tile__actions { display: flex; gap: 8px; width: 100%; justify-content: center; }
.game-tile__actions .btn { flex: 1 1 0; min-width: 0; max-width: 120px; padding: 0 8px; }


/* ==========================================================================
   Tables coming out of the source documents
   ========================================================================== */
.table-wrap {
  margin: 0 0 1.5em;
  border-radius: var(--radius-card);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
  background: var(--white);
}
.table-wrap table { font-size: 15px; min-width: 100%; }
.table-wrap thead th {
  background: var(--primary); color: var(--white);
  font-weight: var(--fw-bold); text-align: left;
  padding: 13px 18px; white-space: nowrap;
}
.table-wrap tbody th {
  text-align: left; vertical-align: top;
  padding: 13px 18px; width: 38%;
  font-weight: var(--fw-bold); color: var(--primary);
  background: var(--blue-pale-2);
}
.table-wrap tbody td {
  padding: 13px 18px; vertical-align: top;
  color: #1d2340; background: var(--white);
}
.table-wrap tbody tr:nth-child(even) th { background: #E4F4FE; }
.table-wrap tbody tr:nth-child(even) td { background: #F6F9FE; }
.table-wrap tbody tr + tr th,
.table-wrap tbody tr + tr td { border-top: 1px solid var(--grey-line); }

/* ==========================================================================
   Demo player
   ========================================================================== */
.demo {
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--primary);
  box-shadow: var(--shadow-card);
}
.demo__bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 18px; color: var(--white);
}
.demo__bar strong { font-size: 15px; font-weight: var(--fw-xbold); }
.demo__bar .demo__badge {
  font-size: 11px; font-weight: var(--fw-xbold); letter-spacing: .06em; text-transform: uppercase;
  background: var(--accent); color: #141414; padding: 4px 9px; border-radius: 4px;
}
.demo__bar .btn { margin-left: auto; }
.demo__frame { position: relative; background: #000; aspect-ratio: 16 / 10; }
.demo__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo__note {
  font-size: 13px; color: var(--grey-2); margin-top: 10px;
}

/* ==========================================================================
   Accordions (content blocks / FAQ)
   ========================================================================== */
.accordion { display: grid; gap: 12px; }
.accordion details {
  border-radius: var(--radius-card);
  background: var(--primary);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.accordion summary {
  list-style: none; cursor: pointer;
  padding: 15px 46px 15px 20px;
  color: var(--white); font-size: 16px; font-weight: var(--fw-medium);
  position: relative;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: var(--primary-hover); }
.accordion summary::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--white); border-bottom: 2px solid var(--white);
  transform: rotate(45deg); transition: transform .2s ease;
}
.accordion details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.accordion__body {
  background: var(--white);
  padding: 18px 20px 4px;
  color: #1d2340;
  border: 1px solid var(--grey-line); border-top: 0;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}
.accordion__body > :last-child { margin-bottom: 14px; }
.accordion__body h2, .accordion__body h3, .accordion__body h4 { font-size: 17px; margin-top: 1.2em; }
.accordion__body ul, .accordion__body ol { padding-left: 1.3em; }
.accordion__body .table-wrap { box-shadow: none; border: 1px solid var(--grey-line); }

/* ==========================================================================
   Prose / text block
   ========================================================================== */
/* Text blocks share the container edges with the game grids and tables above
   and below them, so every section lines up on the same left and right margin. */
.prose { max-width: none; }
.prose h2 { margin-top: 1.7em; font-size: clamp(21px, 2.6vw, 27px); }
.prose h3 { margin-top: 1.5em; font-size: 19px; }
.prose h4 { margin-top: 1.3em; font-size: 17px; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin-bottom: 1.1em; padding-left: 1.35em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--blue); font-weight: var(--fw-bold); }
.prose strong { font-weight: var(--fw-xbold); color: var(--primary); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose .table-wrap { max-width: none; }

/* The first paragraph of an intro block reads as a lede. */
.section > .prose > p:first-child { font-size: 18px; line-height: 1.6; color: #1d2340; }
.lede { font-size: 18px; line-height: 1.6; color: #1d2340; }

.panel {
  background: var(--blue-pale-2);
  border-radius: var(--radius-card);
  padding: 20px 24px;
}
.panel--cream { background: var(--cream); }
.panel h2, .panel h3 { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

.feature-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.feature-list li {
  background: var(--blue-pale); color: var(--primary);
  font-size: 13px; font-weight: var(--fw-bold);
  padding: 6px 12px; border-radius: 20px; margin: 0;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
/* padding-block only — the shorthand would wipe the inline padding .wrap sets,
   dropping the breadcrumbs flush against the screen edge. */
.breadcrumbs { padding-block: 16px 0; font-size: 13px; color: var(--grey); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: #b9bed3; }
.breadcrumbs a { color: var(--grey); }
.breadcrumbs [aria-current="page"] { color: var(--primary); font-weight: var(--fw-medium); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  margin-block: 46px;
  border-radius: var(--radius-panel);
  background: linear-gradient(122deg, #2AA3D8 0%, #1877C9 45%, #1360BD 100%);
  color: var(--white);
  padding: 34px 40px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--accent-hi); margin: 0 0 6px; font-size: clamp(22px, 3vw, 32px); }
.cta-band p { margin: 0; font-size: 17px; }
.cta-band .btn { margin-left: auto; flex: 0 0 auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: 56px;
  background: var(--primary-dark);
  color: var(--white);
  padding: 46px 0 30px;
}
.footer-cols {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
}
.footer-col h3 {
  color: var(--blue); font-size: 15px; font-weight: var(--fw-xbold); margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--white); font-size: 15px; }
.footer-col a:hover { color: var(--blue); }

.footer-badges { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.badge-18 {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--white); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: var(--fw-xbold);
}
.badge-rg {
  border: 2px solid var(--white); border-radius: 4px;
  padding: 4px 8px; font-size: 9px; line-height: 1.1; font-weight: var(--fw-xbold);
  letter-spacing: .04em; text-transform: uppercase; color: var(--white);
}
.footer-pay {
  display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap;
  margin: 34px 0 22px; padding-top: 26px;
  border-top: 2px solid rgba(255, 255, 255, .12);
}
.footer-pay span {
  font-size: 12px; font-weight: var(--fw-xbold); letter-spacing: .05em;
  text-transform: uppercase; color: rgba(255, 255, 255, .72);
}
.footer-legal {
  font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .66); text-align: center;
  max-width: 90ch; margin-inline: auto;
}
.footer-legal a { color: rgba(255, 255, 255, .9); text-decoration: underline; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --gutter: 20px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__inner { padding: 36px 32px; max-width: none; }
  .cta-band { padding: 28px 26px; }
  .cta-band .btn { margin-left: 0; }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 0; border-radius: 8px;
    background: transparent; color: var(--white); cursor: pointer;
    order: -1; margin-right: -12px;
  }
  .nav-toggle svg { width: 24px; height: 24px; }
  /* Vertical padding must stay off until the drawer opens: with border-box,
     `max-height: 0` cannot shrink a box below its own padding, so a padded
     closed drawer stays ~28px tall and paints its background over whatever
     follows the header — the breadcrumbs, or the hero banner on the home page. */
  /* Anchored to the header itself (`top: 100%`), not to a hardcoded offset:
     the sticky .site-header is the containing block, so the drawer follows
     whatever height the header actually ends up with — after the webfont
     swaps in, at larger browser text sizes, or under accessibility zoom.
     A fixed `top: var(--header-h)` silently slides under the header instead. */
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--primary); padding-inline: 20px; padding-block: 0;
    box-shadow: var(--shadow-header);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .22s ease, padding-block .22s ease;
  }
  .main-nav[data-open="true"] {
    max-height: 60vh; max-height: 60dvh; overflow: auto; visibility: visible;
    padding-block: 8px 20px;
  }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .main-nav a.main-nav__login { display: block; }

  /* The full desktop action row does not fit a phone. Shed it in stages so the
     header never exceeds the viewport — Registreren is the one that must stay. */
  .site-header__inner { gap: 10px; }
  .header-actions { gap: 8px; }
  .header-actions .btn--ghost { display: none; }
  .header-actions .icon-btn:nth-of-type(2) { display: none; }
  .nav-toggle { margin-right: 0; }
  .logo img { height: 34px; }
  .trust { flex-direction: column; align-items: flex-start; }
  .trust__logos { margin-left: 0; }
  .demo__frame { aspect-ratio: 3 / 4; }
  .demo__bar .btn { margin-left: 0; width: 100%; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
  .table-wrap tbody th { width: 44%; }
}

@media (max-width: 560px) {
  .header-actions .icon-btn { display: none; }
  .footer-cols { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-wrap { font-size: 14px; }
  .table-wrap thead th, .table-wrap tbody th, .table-wrap tbody td { padding: 10px 12px; }
  .accordion summary { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
