/* ============================================================
   Klirr — landningssida. Fristående, mörkt tema.
   Samma designspråk som klirr.co: Familjen Grotesk, myntguld,
   grönt kasinofilt, ring-shadow-kanter, radier 8–24 px.
   ============================================================ */

@font-face {
  font-family: 'Familjen Grotesk';
  src: url('/assets/fonts/FamiljenGrotesk-Variable.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg0: #0c0f14;
  --bg1: #12161e;
  --bg2: #1a202b;
  --bg3: #232b39;
  --ring: rgba(255, 255, 255, 0.09);
  --ring-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0eb;
  --muted: #a3abb9;
  --heading: #f7f4ec;
  --gold: #e2b04f;
  --gold-strong: #f0c96e;
  --gold-ink: #e8c06a;
  --gold-deep: #3c2e0c;
  --on-gold: #221a06;
  --gold-surface: #2b2312;
  --coral-ink: #ffa9a3;
  --success: #46c98f;
  --font: 'Familjen Grotesk', 'Segoe UI', system-ui, sans-serif;
  --r-s: 8px; --r-m: 12px; --r-l: 16px; --r-xl: 24px;
  --maxw: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg0);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  letter-spacing: -0.16px;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { color: var(--heading); line-height: 1.14; font-weight: 620; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5.6vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); letter-spacing: -0.025em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--gold-ink); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
img { max-width: 100%; height: auto; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 760px; }
.section { padding-block: clamp(40px, 7vw, 80px); }
.section--tight { padding-block: clamp(26px, 4vw, 48px); }
.section__head { max-width: 640px; margin-bottom: clamp(20px, 4vw, 36px); }
.section__head p { color: var(--muted); }

.kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9be3d2;
  margin-bottom: 10px;
}
.kicker--gold { color: var(--gold-ink); }

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-s);
  border: 0;
  font: 600 0.95rem/1.3 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--gold-strong), var(--gold));
  color: var(--on-gold);
  box-shadow: 0 0 0 1px var(--gold-deep) inset;
}
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -70%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
}
.btn--primary:hover::after { animation: sheen 0.7s ease; }
@keyframes sheen { to { left: 135%; } }
.btn--outline { background: transparent; color: var(--text); box-shadow: 0 0 0 1px var(--ring-strong); }
.btn--outline:hover { box-shadow: 0 0 0 1px var(--gold); color: var(--gold-ink); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--bg2); }
.btn--big { padding: 14px 28px; font-size: 1.05rem; border-radius: var(--r-m); }

/* ---------- RG-rad ---------- */
.rg-bar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--bg1);
  border-bottom: 2px solid var(--gold);
  font-size: 0.8rem;
  line-height: 1.35;
}
.rg-bar__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 7px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}
.rg-bar__msg { display: flex; align-items: center; gap: 10px; }
.rg-bar__msg .badge-21 { color: var(--coral-ink); flex-shrink: 0; }
.rg-bar__text { margin: 0; color: var(--muted); }
.rg-bar__text strong { color: var(--text); }
.rg-bar__links { display: flex; gap: 4px; flex-wrap: wrap; }
.rg-bar__links a {
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--ring);
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.rg-bar__links a:hover { box-shadow: 0 0 0 1px var(--gold); color: var(--gold-ink); }
.rg-bar__license { margin: 0; color: var(--muted); font-size: 0.72rem; }
.rg-bar__logos { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.rg-logo { display: block; height: 16px; width: auto; }
.rg-logo--si { height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 11vw, 130px);
  text-align: center;
  background:
    linear-gradient(180deg, transparent 55%, var(--bg0) 98%),
    radial-gradient(900px 480px at 50% -10%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 65%),
    url('/assets/img/bg/hero-dark.webp') center 30% / cover no-repeat,
    var(--bg0);
}
.hero__inner { position: relative; z-index: 1; max-width: 780px; }
.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  font-size: 1.4rem;
  font-weight: 680;
  letter-spacing: -0.04em;
  color: var(--heading);
}
.hero__brand i { font-style: normal; font-weight: 400; color: var(--muted); }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold-ink) 20%, #fff3c4 42%, var(--gold) 55%, var(--gold-ink) 80%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4.5s linear infinite;
}
@keyframes shimmer { to { background-position: -250% 0; } }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted); max-width: 60ch; margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.hero__trust {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
  font-size: 0.84rem;
  color: var(--muted);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.hero__suits { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__suits span {
  position: absolute;
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 1;
  color: var(--gold);
  opacity: 0.06;
  animation: suit-drift 16s ease-in-out infinite;
}
.hero__suits span:nth-child(1) { top: 10%; left: 4%; }
.hero__suits span:nth-child(2) { top: 60%; left: 12%; animation-delay: -4s; }
.hero__suits span:nth-child(3) { top: 14%; right: 8%; animation-delay: -8s; }
.hero__suits span:nth-child(4) { bottom: 6%; right: 14%; animation-delay: -12s; }
@keyframes suit-drift {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-24px) rotate(6deg); }
}

/* ---------- USP ---------- */
.usp-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.usp {
  background: var(--bg1);
  border-radius: var(--r-l);
  box-shadow: 0 0 0 1px var(--ring);
  padding: 22px;
}
.usp h3 { color: var(--gold-ink); margin-bottom: 8px; }
.usp p { color: var(--muted); margin: 0; font-size: 0.94rem; }

/* ---------- Spel på filt ---------- */
.felt {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(18px, 3vw, 30px);
  background:
    radial-gradient(130% 140% at 50% -10%, rgba(23, 74, 57, 0.78), rgba(10, 38, 29, 0.9) 72%),
    url('/assets/img/bg/felt.webp') center / cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 0 80px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--ring);
}
.felt::before {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: calc(var(--r-xl) - 8px);
  border: 1px solid color-mix(in srgb, var(--gold) 38%, transparent);
  pointer-events: none;
}
.games-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
}
.game-tile {
  display: block;
  border-radius: var(--r-m);
  overflow: hidden;
  aspect-ratio: 326 / 235;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s, box-shadow 0.18s;
}
.game-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px var(--gold), 0 0 26px color-mix(in srgb, var(--gold) 30%, transparent), 0 14px 30px rgba(0, 0, 0, 0.4);
}
.game-tile--more {
  display: grid;
  place-items: center;
  text-decoration: none;
  text-align: center;
  font: 650 1.05rem/1.3 var(--font);
  color: var(--gold-ink);
  background: linear-gradient(160deg, var(--bg2), var(--bg3));
}
.games-note { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 14px; }

/* ---------- Bonus ---------- */
.bonus-card {
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 44px);
  background:
    linear-gradient(90deg, var(--gold-surface) 36%, color-mix(in srgb, var(--gold-surface) 78%, transparent) 60%, color-mix(in srgb, var(--gold-surface) 34%, transparent)),
    url('/assets/img/bg/bonus-gold.webp') right center / cover no-repeat,
    var(--gold-surface);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent);
  max-width: 860px;
  margin-inline: auto;
}
.bonus-card h2 { color: var(--gold-ink); }
.bonus-card p { max-width: 56ch; }
.bonus-card .hero__actions { justify-content: flex-start; margin-top: 18px; }

/* ---------- Steg ---------- */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  counter-reset: steps;
}
.steps li { background: var(--bg1); border-radius: var(--r-l); box-shadow: 0 0 0 1px var(--ring); padding: 22px; }
.steps__n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
  margin-bottom: 12px;
}
.steps p { color: var(--muted); margin: 0; font-size: 0.94rem; }

/* ---------- FAQ ---------- */
.acc { display: grid; gap: 10px; }
.acc details { background: var(--bg1); border-radius: var(--r-m); box-shadow: 0 0 0 1px var(--ring); overflow: hidden; }
.acc summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-size: 1.3rem; color: var(--gold-ink); transition: transform 0.2s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc details p { padding: 0 20px 18px; color: var(--muted); margin: 0; }

/* ---------- Sidfot ---------- */
.footer {
  margin-top: clamp(30px, 6vw, 60px);
  background: var(--bg1);
  border-top: 1px solid var(--ring);
  font-size: 0.88rem;
  padding-block: clamp(32px, 5vw, 52px) 22px;
}
.footer h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.11em; color: var(--muted); margin-bottom: 12px; }
.footer p, .footer li { color: var(--muted); }
.footer__grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.footer__grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer__pay { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--ring); }
.pay-logos { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 10px; }
.logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 8px 14px;
  border-radius: var(--r-s);
  background: #141a24;
  box-shadow: 0 0 0 1px var(--ring);
}
.logo-chip img { display: block; height: 20px; width: auto; }
.logo-chip--sm { min-width: 0; padding: 4px 10px; vertical-align: middle; }
.logo-chip--sm img { height: 14px; }
.footer__bottom { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--ring); font-size: 0.8rem; }

/* ---------- Åldersgrind ---------- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: color-mix(in srgb, var(--bg0) 78%, transparent);
  backdrop-filter: blur(10px);
}
.age-gate__card {
  max-width: 480px;
  width: 100%;
  background: var(--bg1);
  border-radius: var(--r-xl);
  box-shadow: 0 0 0 1px var(--ring), 0 18px 48px rgba(0, 0, 0, 0.45);
  padding: clamp(24px, 4vw, 36px);
  text-align: center;
}
.age-gate__badge { color: var(--gold); margin-bottom: 10px; }
.age-gate__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 20px 0 6px; }
.age-gate__help { font-size: 0.84rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- Div ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg0); }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 6px; border: 3px solid var(--bg0); }
html { scrollbar-color: var(--bg3) var(--bg0); }

@media (max-width: 1023px) {
  .rg-bar__license { display: none; }
}
@media (max-width: 640px) {
  .rg-bar { font-size: 0.72rem; }
  .rg-bar__geo { display: none; }
  .rg-bar__logos .rg-logo { height: 14px; }
  .rg-bar__logos .rg-logo--si { height: 22px; }
  .btn--big { width: 100%; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
