/*
 * Turnerings Generator – hemsida
 * Stil: mörk "mission control" (Harness-referensen): nästan svart botten, ljusa hårfina kanter,
 * piller-knappar, sparsam mint-accent. Rubriker Cal Sans med vid spärrning, brödtext Geist.
 */

:root {
  --void: #070707;
  --carbon: #0d0e12;
  --obsidian: #141418;
  --iron: #2e3038;
  --steel: #22222a;
  --white: #ffffff;
  --mist: #f0f0f0;
  --fog: #d9dae5;
  --ash: #c8cad0;
  --graphite: #aeaeb7;
  --slate: #a2a4a9;
  --cinder: #60606c;
  --mint: #70dcd3;
  --signal: #0092e4;
  --ice: #a6e5f2;
  --current: #00ade4;
  --iris: #929dbd;
  --gold: #f2b632;

  --line: rgba(217, 218, 229, 0.14);
  --line-strong: rgba(217, 218, 229, 0.34);

  --font-display: 'Cal Sans', 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --max: 1200px;
  --gutter: 24px;
  --section: 120px;
  --r-card: 20px;
  --r-nested: 16px;
  --r-pill: 800px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  font-feature-settings: 'liga' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(112, 220, 211, 0.35); }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--current); outline-offset: 3px; border-radius: 6px; }

/* ---------- Typografi ---------- */
.display, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.056em;
  margin: 0;
}
.display { font-size: clamp(48px, 7.4vw, 92px); line-height: 0.96; }
.h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.1; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: 0.04em; }
.mint { color: var(--mint); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 20px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.094em; text-transform: uppercase;
  color: var(--ice);
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--ash); margin: 0; max-width: 560px; }
.muted { color: var(--graphite); }

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--r-pill);
  font-size: 16px; font-weight: 500; letter-spacing: 0.01em; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, color .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary {
  background: var(--white); color: var(--void); border: 0;
  box-shadow: rgba(0, 0, 0, .05) 2px 2px 0 0, inset 0 -1px 0 #fff, inset 1px 0 0 #fff, inset -1px 0 0 #fff, inset 0 1px 0 #fff;
}
.btn--primary:hover { background: var(--mist); transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(112, 220, 211, .55); }
.btn--ghost { background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, .85); font-weight: 400; }
.btn--ghost:hover { background: var(--iron); border-color: #fff; }
.btn--dark { background: var(--void); color: var(--white); border: 0; }
.btn--dark:hover { background: #1a1b21; transform: translateY(-2px); }
.btn--lg { min-height: 58px; padding: 16px 32px; font-size: 17px; }
.btn--sm { min-height: 40px; padding: 10px 18px; font-size: 14px; }

/* ---------- Navigering ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 7, .82);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
@supports (backdrop-filter: blur(1px)) { .nav { backdrop-filter: saturate(1.4) blur(12px); } }
.nav.is-scrolled { border-bottom-color: rgba(162, 164, 169, .22); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.nav-logo { display: flex; align-items: center; flex: none; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 6px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 15px; color: var(--slate); text-decoration: none; transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--white); background: rgba(46, 48, 56, .6); }
.nav-links a.is-active { color: var(--white); }
.nav-cta { flex: none; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; margin: 4px auto; background: #fff; transition: transform .3s, opacity .3s; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto 35%; height: 120%;
  background: radial-gradient(ellipse at 60% 40%, rgba(22, 48, 82, .95), rgba(13, 14, 18, .4) 45%, transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 48px; align-items: center; min-height: min(78vh, 760px); }
.hero-copy .lead { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 13px; letter-spacing: .04em; color: var(--graphite); }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }

/* Skärmbilds-stapel i 3D */
.stack { position: relative; perspective: 1800px; height: clamp(320px, 42vw, 560px); margin-right: calc(-1 * max(var(--gutter), (100vw - var(--max)) / 2 + var(--gutter)) + 20px); }
.stack-inner { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(-18deg) rotateX(8deg) rotateZ(1deg); animation: float 9s ease-in-out infinite; }
.stack-card {
  position: absolute; width: 86%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-strong); background: var(--carbon);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4);
  transition: transform 1.1s var(--ease), opacity 1.1s var(--ease), filter 1.1s var(--ease);
}
.stack-card img { width: 100%; height: 100%; object-fit: cover; }
.stack-card[data-pos="0"] { transform: translate3d(0, 24%, 80px); z-index: 3; }
.stack-card[data-pos="1"] { transform: translate3d(9%, 8%, 0); z-index: 2; filter: brightness(.62); }
.stack-card[data-pos="2"] { transform: translate3d(18%, -8%, -80px); z-index: 1; filter: brightness(.4); }
.stack-glow { position: absolute; left: 10%; right: 0; bottom: -6%; height: 30%; background: radial-gradient(ellipse at center, rgba(112, 220, 211, .25), transparent 70%); filter: blur(20px); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* ---------- Siffror ---------- */
.stats { padding: 32px 0 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--carbon); }
.stat { padding: 28px 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { font-family: var(--font-display); font-size: clamp(34px, 4vw, 48px); letter-spacing: .04em; line-height: 1; }
.stat-label { margin-top: 10px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); }

/* ---------- Sektioner ---------- */
.section { padding: var(--section) 0 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.section-head .lead { margin-top: 20px; }

/* Turneringstyper */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.type {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--carbon);
  overflow: hidden; transition: border-color .35s, transform .45s var(--ease);
}
.type:hover { border-color: var(--line-strong); transform: translateY(-6px); }
.type-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--obsidian); border-bottom: 1px solid var(--line); }
.type-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.type:hover .type-shot img { transform: scale(1.08); }
.type-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.type-tag { align-self: flex-start; padding: 3px 10px; border-radius: var(--r-pill); border: 1px solid currentColor; font-size: 11px; font-weight: 500; letter-spacing: .094em; text-transform: uppercase; }
.type-tag--fc { color: #4fd18b; }
.type-tag--other { color: var(--current); }
.type-tag--points { color: var(--gold); }
.type p { margin: 0; color: var(--graphite); }
.type ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; color: var(--ash); }
.type li { display: flex; gap: 10px; }
.type li::before { content: ''; flex: none; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; border: 1px solid var(--mint); background: radial-gradient(circle, var(--mint) 0 2.5px, transparent 3px); }

/* Funktion med text + bild */
.feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.feature--flip .feature-copy { order: 2; }
.feature-copy .lead { margin-top: 20px; }
.checks { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ash); }
.checks svg { width: 22px; height: 22px; color: var(--mint); margin-top: 1px; }
.checks strong { color: var(--white); font-weight: 500; }

.panel {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-card);
  background: linear-gradient(160deg, rgb(22, 48, 82) 0%, var(--carbon) 55%);
  padding: 24px; overflow: hidden;
}
.panel::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at 85% 10%, rgba(166, 229, 242, .12), transparent 40%); }
.shot { position: relative; border-radius: var(--r-nested); overflow: hidden; border: 1px solid var(--line); background: var(--obsidian); cursor: zoom-in; }
.shot img { width: 100%; height: auto; }

/* Lottningsdemo (hjulet) */
.wheel-demo { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: center; min-height: 440px; }
.reel {
  position: relative; height: 396px; border-radius: var(--r-nested); overflow: hidden;
  background: linear-gradient(180deg, #07142c, #0b1f45 50%, #07142c);
  border: 1px solid rgba(90, 168, 255, .45);
  box-shadow: inset 0 0 40px rgba(0, 120, 255, .25), 0 0 40px -10px rgba(0, 146, 228, .5);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.reel-strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.reel-item { height: 132px; display: grid; place-items: center; }
.reel-item img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5)); transition: transform .4s; }
.reel-zone { position: absolute; left: 8px; right: 8px; top: 132px; height: 132px; border-radius: 14px; border: 1.5px solid rgba(120, 190, 255, .9); box-shadow: 0 0 24px rgba(70, 150, 255, .55), inset 0 0 24px rgba(70, 150, 255, .25); pointer-events: none; }
.reel.is-landed .reel-zone { animation: zone 1s ease-out; }
@keyframes zone { 0% { box-shadow: 0 0 60px rgba(242, 182, 50, .9), inset 0 0 40px rgba(242, 182, 50, .5); border-color: var(--gold); } 100% { box-shadow: 0 0 24px rgba(70, 150, 255, .55), inset 0 0 24px rgba(70, 150, 255, .25); } }
.draw { display: grid; gap: 14px; }
.draw-name {
  display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 18px;
  border-radius: 12px; border: 1px solid rgba(90, 168, 255, .55); background: rgba(7, 12, 28, .8);
  font-size: 18px;
}
.draw-name svg { width: 20px; height: 20px; color: var(--graphite); }
.caret { display: inline-block; width: 2px; height: 22px; background: var(--white); animation: blink 1s steps(1) infinite; margin-left: -8px; }
@keyframes blink { 50% { opacity: 0; } }
.draw-spin {
  height: 56px; border-radius: 12px; border: 1px solid rgba(110, 230, 150, .6);
  background: linear-gradient(180deg, #23a456, #137a3b); color: #fff;
  font-family: var(--font-display); font-size: 22px; letter-spacing: .08em;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  transition: filter .2s, transform .2s;
}
.draw-spin.is-pressed { transform: scale(.97); filter: brightness(1.2); }
.draw-result {
  min-height: 112px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(13, 14, 18, .85); padding: 16px 18px;
  display: flex; align-items: center; gap: 16px;
  opacity: .35; transition: opacity .4s, border-color .4s;
}
.draw-result.is-shown { opacity: 1; border-color: rgba(242, 182, 50, .7); }
.draw-result img { width: 64px; height: 64px; object-fit: contain; }
.draw-result .who { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite); }
.draw-result .team { font-family: var(--font-display); font-size: 26px; letter-spacing: .04em; line-height: 1.1; }
.draw-result.is-shown .team { animation: pop .6s var(--ease); }
@keyframes pop { 0% { transform: scale(.8); opacity: 0; } 60% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
.draw-list { display: flex; flex-wrap: wrap; gap: 8px; min-height: 30px; }
.draw-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 13px; color: var(--ash); animation: pop .5s var(--ease); }
.draw-chip img { width: 20px; height: 20px; object-fit: contain; }

/* Flikade skärmbilder (gruppspel/slutspel …) */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tab {
  position: relative; overflow: hidden;
  padding: 9px 16px; border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  background: transparent; font-size: 14px; color: var(--graphite); cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.tab:hover { color: var(--white); }
.tab.is-active { color: var(--white); border-color: var(--current); }
.tab-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--current); }
.tab.is-active .tab-progress { animation: progress var(--tab-time, 5s) linear forwards; }
.tabs.is-paused .tab.is-active .tab-progress { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }
.slides { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-nested); overflow: hidden; border: 1px solid var(--line); background: var(--obsidian); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s var(--ease); cursor: zoom-in; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.slide.is-active { opacity: 1; }
.slide.is-active img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.1) translate(1.5%, 1.5%); } to { transform: scale(1) translate(0, 0); } }
.slide-caption { margin: 14px 4px 0; min-height: 44px; font-size: 14px; color: var(--graphite); }

/* Poängjakt: två skärmbilder som överlappar */
.duo { position: relative; padding-bottom: 18%; }
.duo .shot:first-child { width: 88%; }
.duo .shot:last-child { position: absolute; right: 0; bottom: 0; width: 56%; box-shadow: 0 30px 60px -20px #000; animation: float 8s ease-in-out infinite 1s; }

/* TV + mobil */
.screens { position: relative; padding: 10px 0 40px; }
.tv { position: relative; width: 86%; padding: 10px; border-radius: 14px; background: #050505; border: 1px solid #2b2c33; box-shadow: 0 40px 80px -30px #000; }
.tv::after { content: ''; position: absolute; left: 50%; bottom: -26px; width: 28%; height: 16px; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: linear-gradient(#1b1c22, #0c0d10); }
.tv-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; }
.tv-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.tv-screen img.is-active { opacity: 1; }
.phone { position: absolute; right: 0; bottom: 0; width: 30%; padding: 8px; border-radius: 26px; background: #050505; border: 1px solid #2f3038; box-shadow: 0 30px 70px -20px #000; animation: float 7s ease-in-out infinite; }
.phone-screen { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.phone-screen img.is-active { opacity: 1; }
.format-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.badge { padding: 3px 11px; border-radius: var(--r-pill); border: 1px solid var(--iris); color: var(--iris); font-size: 12px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; }
.badge--blue { border-color: var(--current); color: var(--current); }
.badge--mint { border-color: var(--mint); color: var(--mint); }

/* Rutnät med mindre funktioner */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--carbon);
  padding: 28px 24px; transition: border-color .35s, transform .45s var(--ease), background-color .35s;
}
.card:hover { border-color: var(--line-strong); background: #101117; transform: translateY(-4px); }
.card-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(112, 220, 211, .35); color: var(--mint); margin-bottom: 20px; }
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 500; letter-spacing: .01em; }
.card p { margin: 0; font-size: 15px; color: var(--graphite); }

/* Rullande galleri */
.marquee { margin-top: 64px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee figure { margin: 0; width: 420px; flex: none; border-radius: var(--r-nested); overflow: hidden; border: 1px solid var(--line); background: var(--obsidian); cursor: zoom-in; }
.marquee img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }

/* Kom igång */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--carbon); padding: 28px 24px; }
.step-num { font-family: var(--font-display); font-size: 56px; line-height: 1; letter-spacing: .04em; color: transparent; -webkit-text-stroke: 1px rgba(166, 229, 242, .6); }
.step h3 { margin: 18px 0 10px; font-size: 19px; font-weight: 500; }
.step p { margin: 0; color: var(--graphite); font-size: 15px; }
.step code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 13px; padding: 2px 7px; border-radius: 6px; background: var(--obsidian); border: 1px solid var(--steel); color: var(--ash); }
.note { margin-top: 20px; padding: 16px 20px; border-radius: var(--r-nested); background: var(--obsidian); border: 1px solid var(--steel); color: var(--graphite); font-size: 14px; display: flex; gap: 12px; }
.note svg { width: 20px; height: 20px; flex: none; color: var(--ice); margin-top: 1px; }

/* Nedladdning – den enda mint-ytan */
.download {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 28px; background: var(--mint); color: #06201e;
}
.download::before { content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .55), transparent 65%); }
.download .h2 { color: #041615; }
.download p { margin: 18px 0 0; color: #0d3a37; font-size: 17px; max-width: 520px; }
.download-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.download-size { font-size: 14px; color: #0d3a37; }
.download-art { position: relative; display: grid; place-items: center; }
.download-art img { width: min(300px, 100%); filter: drop-shadow(0 30px 40px rgba(4, 40, 37, .45)); animation: float 6s ease-in-out infinite; }
.download-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: #0d3a37; }
.download-list li::before { content: '✓  '; font-weight: 600; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-nested); background: var(--carbon); transition: border-color .3s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--graphite); border-bottom: 1.5px solid var(--graphite); transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--graphite); }

/* Sidfot */
.footer { margin-top: var(--section); border-top: 1px solid rgba(162, 164, 169, .18); padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 46px; width: auto; }
.footer-brand p { margin: 16px 0 0; color: var(--graphite); font-size: 14px; max-width: 300px; }
.footer h4 { margin: 0 0 14px; font-size: 14px; font-weight: 500; }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer a { color: var(--graphite); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer a:hover { color: var(--white); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(162, 164, 169, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--cinder); }

/* Bildförstoring */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1600px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(3, 3, 5, .88); backdrop-filter: blur(6px); }
.lightbox img { max-width: min(1600px, 94vw); max-height: 86vh; width: auto; height: auto; border-radius: 12px; border: 1px solid var(--line-strong); }
.lightbox-close { position: fixed; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(13, 14, 18, .9); cursor: pointer; font-size: 22px; line-height: 1; }
.lightbox p { margin: 12px 0 0; text-align: center; color: var(--graphite); font-size: 14px; }

/* Avslöjas vid scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Mindre skärmar ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 10px; font-size: 14px; }
  .feature { gap: 40px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --section: 88px; }
  .nav-toggle { display: block; }
  .nav-links, .nav-cta { display: none; }
  .nav.is-open .nav-links {
    display: grid; position: absolute; left: 0; right: 0; top: 72px; margin: 0; padding: 12px var(--gutter) 20px;
    background: rgba(7, 7, 7, .97); border-bottom: 1px solid rgba(162, 164, 169, .22);
  }
  .nav.is-open .nav-links a { padding: 14px 4px; font-size: 17px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 24px; }
  .stack { margin-right: 0; height: 64vw; margin-top: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .types, .steps { grid-template-columns: 1fr; }
  .feature, .feature--flip { grid-template-columns: 1fr; }
  .feature--flip .feature-copy { order: 0; }
  .download { grid-template-columns: 1fr; }
  .download-art { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .wheel-demo { grid-template-columns: 1fr; }
  .reel { height: 264px; }
  .reel-item { height: 88px; }
  .reel-item img { width: 60px; height: 60px; }
  .reel-zone { top: 88px; height: 88px; }
  .grid { grid-template-columns: 1fr; }
  .marquee figure { width: 300px; }
  .hero-actions .btn { width: 100%; }
  .phone { width: 34%; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .reveal { opacity: 1; transform: none; }
}
