/* gymteq.se — säljsidan. En mörk sida med limegrönt som enda färg; bilderna och
   modellerna bär resten. Modellerna (TV, telefon, adminvy) är ritade i HTML, inte
   skärmbilder: de rör sig, är skarpa i alla storlekar och bär inga riktiga namn. */

:root {
  --bg: #0b0c0d;
  --bg-2: #111214;
  --panel: #16171a;
  --panel-2: #1c1d21;
  --linje: rgba(255, 255, 255, .09);
  --linje-2: rgba(255, 255, 255, .16);
  --text: #f3f2ee;
  --svag: #a9aaa4;
  --dov: #6f706b;
  --accent: #c8f53c;
  --accent-mork: #9cc51f;
  --accent-ink: #0b0c0d;
  --rod: #ff6b57;
  --gul: #ffc857;
  --sans: "Inter", "SF Pro Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --radie: 18px;
  --huvud-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
section[id], article[id] { scroll-margin-top: calc(var(--huvud-h) + 12px); }

.inre { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: 24px; }

/* ── Topprad och huvud ─────────────────────────────────────────────────── */

.topprad { background: #070808; border-bottom: 1px solid var(--linje); font-size: 13px; color: var(--svag); }
.topprad .inre { display: flex; justify-content: space-between; align-items: center; gap: 8px 20px; flex-wrap: wrap; padding-block: 8px; }
.topprad a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--linje-2); }
.topprad a:hover { border-color: var(--accent); }
.topp-lankar { display: flex; gap: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.topp-lankar a { border: 0; color: var(--accent); }

.huvud {
  position: sticky; top: 0; z-index: 50; height: var(--huvud-h);
  background: rgba(11, 12, 13, .78); backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--linje);
}
.huvud .inre { height: 100%; display: flex; align-items: center; gap: 24px; }
.logga { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.045em; }
.logga svg { width: 30px; height: 30px; flex: none; }
.logga b { color: var(--accent); font-weight: 800; }
.meny { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.meny a { text-decoration: none; color: var(--svag); transition: color .2s; }
.meny a:hover { color: var(--text); }

.knapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700;
  border: 0; border-radius: 999px; padding: 14px 26px; text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  box-shadow: 0 0 0 0 rgba(200, 245, 60, .0);
}
.knapp:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(200, 245, 60, .55); }
.knapp.liten { padding: 9px 18px; font-size: 15px; }
.knapp.sekundar { background: transparent; color: var(--text); border: 1px solid var(--linje-2); }
.knapp.sekundar:hover { border-color: var(--text); box-shadow: none; }

.etikett {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.puls { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(200, 245, 60, .7); animation: puls 2.2s infinite; }
@keyframes puls { 0% { box-shadow: 0 0 0 0 rgba(200, 245, 60, .6); } 70% { box-shadow: 0 0 0 12px rgba(200, 245, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 245, 60, 0); } }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.028em; line-height: 1.04; }
/* Bokstavsavståndet är satt för reservtypsnitten (Segoe, Arial, Helvetica), inte bara för
   SF Pro: på −0,05em gick bokstäverna ihop i «Allt» i en vanlig Chrome på Linux. */
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); letter-spacing: -.036em; line-height: .98; margin-top: 18px; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); margin-top: 14px; }
h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); margin-top: 12px; }
.accent { color: var(--accent); }
.ingress { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--svag); max-width: 38em; margin: 20px 0 0; }
.dov { color: var(--dov); }

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero { position: relative; padding-block: 64px 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 1100px; max-height: 1100px;
  background: radial-gradient(closest-side, rgba(200, 245, 60, .13), rgba(200, 245, 60, 0));
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 40px; align-items: center; }
.knappar { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.moduler { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.moduler a {
  display: inline-block; padding: 7px 14px; border: 1px solid var(--linje-2); border-radius: 999px;
  font-size: 14px; color: var(--svag); text-decoration: none; transition: border-color .2s, color .2s;
}
.moduler a:hover { border-color: var(--accent); color: var(--text); }

/* 3D-scenen: fotot bakerst, TV:n och telefonen svävar framför. Lutningen följer
   muspekaren via --px/--py (sida.js). */
.scen-ram { perspective: 1700px; perspective-origin: 50% 40%; }
.scen {
  --px: 0; --py: 0;
  position: relative; transform-style: preserve-3d; aspect-ratio: 1 / 1.02; max-width: 620px; margin-left: auto;
  transform: rotateY(calc(-14deg + var(--px) * 7deg)) rotateX(calc(5deg - var(--py) * 5deg));
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.scen-foto {
  position: absolute; margin: 0; right: 0; top: 0; width: 66%; height: 92%;
  border-radius: 26px; overflow: hidden; transform: translateZ(0);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--linje);
}
.scen-foto img { width: 100%; height: 100%; object-fit: cover; }
.scen-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,12,13,0) 55%, rgba(11,12,13,.75)); }
.scen-foto figcaption {
  position: absolute; left: 16px; bottom: 14px; z-index: 1; font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85);
}
/* `.scen >` behövs: `.telefon { width: 100% }` står längre ner och hade annars
   vunnit, och telefonen blev lika bred som hela scenen. */
.scen > .scen-tv { position: absolute; left: 0; top: 14%; width: 64%; transform: translateZ(110px); animation: svava 7s ease-in-out infinite; }
.scen > .scen-telefon { position: absolute; right: 4%; bottom: 0; width: 31%; max-width: none; transform: translateZ(190px); animation: svava 6s ease-in-out -2s infinite; }
@keyframes svava { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ── TV ───────────────────────────────────────────────────────────────── */

/* ⚠️ Containern är det YTTRE elementet (.tv / .telefon), inte skärmen. Står
   `cqw` i paddingen på själva containern räknas den mot viewporten — 13cqw blev
   187 px, innehållet kläms ihop, och barnens cqw mäts mot den ihopklämda ytan.
   Allt blev en tredjedel så stort, utan ett enda fel i konsolen. */
.tv { position: relative; container-type: inline-size; }
.tv-skarm {
  position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, rgba(200, 245, 60, .16), transparent 55%), #050606;
  border: 7px solid #1a1b1d; box-shadow: 0 40px 80px -25px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255,255,255,.05);
  color: #fff; padding: 5.5cqw 6cqw;
}
.tv.stor .tv-skarm { border-width: 12px; border-radius: 14px; }
.tv-stativ { width: 28%; height: 10px; margin: 0 auto; background: linear-gradient(#232427, #121314); border-radius: 0 0 8px 8px; }
.tv-topp { position: absolute; left: 6cqw; right: 6cqw; top: 4.5cqw; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; font-size: 2.3cqw; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.tv-plats { color: var(--accent); }
.tv-halsning, .tv-vila { position: absolute; left: 6cqw; right: 6cqw; top: 50%; translate: 0 -46%; transition: opacity .55s, transform .55s; }
.tv-hej { font-size: 40px; font-size: 9.2cqw; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.tv-hej b { color: var(--accent); }
.tv-rad { font-size: 16px; font-size: 3.7cqw; color: rgba(255,255,255,.78); margin-top: 1.6cqw; }
.tv-rad b { color: #fff; }
.tv-vila { opacity: 0; transform: translateY(8px); }
.tv-vila-klocka { font-size: 50px; font-size: 13cqw; font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.tv-vila-rad { font-size: 15px; font-size: 3.4cqw; margin-top: 1.4cqw; color: rgba(255,255,255,.8); text-transform: none; }
.tv[data-lage="byter"] .tv-halsning { opacity: 0; transform: translateY(-8px); }
.tv[data-lage="vila"] .tv-halsning { opacity: 0; }
.tv[data-lage="vila"] .tv-vila { opacity: 1; transform: none; }

/* ── Telefon ──────────────────────────────────────────────────────────── */

.telefon { position: relative; width: 100%; max-width: 300px; container-type: inline-size; }
.telefon-skarm {
  position: relative; aspect-ratio: 9 / 19; overflow: hidden;
  border-radius: 16% / 7.6%; background: #0d0e10; border: 7px solid #1d1e21;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255,255,255,.07), inset 0 0 0 1px rgba(255,255,255,.04);
  padding: 13cqw 7cqw 7cqw; color: #fff;
}
.telefon-skarm::before { content: ""; position: absolute; top: 3.2cqw; left: 50%; width: 26cqw; height: 6.5cqw; translate: -50% 0; background: #000; border-radius: 99px; }
.tel-status { position: absolute; top: 3.4cqw; left: 9cqw; right: 9cqw; display: flex; justify-content: space-between; font-size: 11px; font-size: 4.2cqw; font-weight: 600; }
.tel-ikoner { display: flex; gap: 1.2cqw; align-items: center; }
.tel-ikoner i { width: 3cqw; height: 3cqw; border-radius: 50%; background: #fff; opacity: .85; }
.tel-app { position: relative; height: 100%; display: flex; flex-direction: column; }
.tel-liten { font-family: var(--mono); font-size: 10px; font-size: 3.9cqw; letter-spacing: .14em; text-transform: uppercase; color: var(--svag); }
.tel-kort {
  margin-top: 4cqw; padding: 6cqw 6cqw; border-radius: 6cqw;
  background: linear-gradient(135deg, #22241f, #151613); border: 1px solid rgba(200, 245, 60, .25);
  display: flex; flex-direction: column; gap: 1.5cqw;
}
.tel-namn { font-weight: 800; font-size: 16px; font-size: 7.4cqw; letter-spacing: -.03em; }
.tel-giltig { font-size: 10px; font-size: 4.2cqw; color: var(--accent); }
.dorrknapp {
  position: relative; margin: 13cqw auto 0; width: 50cqw; height: 50cqw; border-radius: 50%;
  display: grid; place-items: center; background: #1b1c1f; border: 1px solid var(--linje-2);
  transition: background .35s, transform .2s, border-color .35s;
}
.dorr-ring { position: absolute; inset: -3cqw; border-radius: 50%; border: 2px solid rgba(200, 245, 60, .35); opacity: 0; }
.dorr-ikon { width: 20cqw; height: 20cqw; color: #fff; transition: color .35s; }
.dorr-ikon svg { width: 100%; height: 100%; }
.dorr-ikon .bygel { transition: transform .35s; transform-origin: 70% 100%; }
.dorr-text { text-align: center; margin-top: 6cqw; font-weight: 700; font-size: 14px; font-size: 6.2cqw; font-variant-numeric: tabular-nums; }
.tel-not { text-align: center; margin-top: 2cqw; font-size: 10px; font-size: 3.8cqw; color: var(--dov); }
.telefon[data-lage="trycker"] .dorrknapp { transform: scale(.94); }
.telefon[data-lage="oppen"] .dorrknapp { background: var(--accent); border-color: var(--accent); }
.telefon[data-lage="oppen"] .dorr-ikon { color: var(--accent-ink); }
.telefon[data-lage="oppen"] .dorr-ikon .bygel { transform: translateY(-2.2px) rotate(-24deg); }
.telefon[data-lage="oppen"] .dorr-ring { animation: ring 1.1s ease-out infinite; }
@keyframes ring { from { opacity: .9; transform: scale(.95); } to { opacity: 0; transform: scale(1.25); } }

/* ── Fakta ────────────────────────────────────────────────────────────── */

.fakta { border-block: 1px solid var(--linje); background: var(--bg-2); }
.fakta-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fakta-grid > div { padding: 30px 24px; border-left: 1px solid var(--linje); display: flex; flex-direction: column; gap: 4px; }
.fakta-grid > div:first-child { border-left: 0; padding-left: 0; }
.fakta-grid b { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.fakta-grid span { color: var(--svag); font-size: 15px; }

/* ── Funktioner ───────────────────────────────────────────────────────── */

.funktioner { padding-block: 120px 60px; }
.sektion-huvud { max-width: 820px; }
.funktion { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-block: 90px; border-bottom: 1px solid var(--linje); }
.funktion.omvand .funktion-text { order: 2; }
.funktion-text p { color: var(--svag); font-size: 1.1rem; margin: 18px 0 0; max-width: 32em; }
.nr { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.punkter { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.punkter li { display: flex; gap: 12px; color: var(--text); font-size: 15.5px; }
.punkter li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: rgba(200, 245, 60, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l3.8 3.8L18 8' fill='none' stroke='%23c8f53c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

.funktion-bild {
  position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center;
  border-radius: 28px; background: radial-gradient(70% 70% at 50% 45%, rgba(200, 245, 60, .10), rgba(200, 245, 60, 0) 70%), var(--bg-2);
  border: 1px solid var(--linje); padding: 44px 28px; overflow: hidden;
}
.funktion-bild .telefon { max-width: 250px; }
.funktion-bild.bred { min-height: 420px; }
.funktion-bild .tv.stor { width: 100%; max-width: 560px; }
.exempel {
  position: absolute; top: 16px; left: 18px; z-index: 3; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dov); border: 1px solid var(--linje); border-radius: 999px; padding: 4px 10px;
}
.flyt { animation: svava 6.5s ease-in-out infinite; }

/* Kassan */
.kassa-vara { margin-top: 3cqw; display: flex; flex-direction: column; }
.kassa-vara b { font-size: 18px; font-size: 8.4cqw; letter-spacing: -.035em; }
.kassa-vara span { color: var(--accent); font-size: 12px; font-size: 5cqw; font-weight: 600; }
.kassa-satt { margin-top: 6cqw; display: grid; gap: 2.4cqw; }
.satt {
  display: flex; align-items: center; gap: 3.4cqw; padding: 3.8cqw 4.4cqw; border-radius: 4cqw;
  background: #17181b; border: 1px solid var(--linje); font-size: 12px; font-size: 5cqw; font-weight: 600;
  transition: border-color .3s, background .3s;
}
.satt.vald { border-color: var(--accent); background: rgba(200, 245, 60, .08); }
.satt-ikon { width: 7cqw; height: 7cqw; border-radius: 1.8cqw; flex: none; background: #2a2b2f; }
.satt-ikon.apple { background: #fff; }
.satt-ikon.kort { background: linear-gradient(135deg, #5b6cff, #9d4dff); }
.satt-ikon.klarna { background: #ffb3c7; }
.satt-ikon.google { background: conic-gradient(#4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0); }
.kassa-knapp {
  margin-top: auto; text-align: center; padding: 4.6cqw; border-radius: 99px; background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 13px; font-size: 5.4cqw; transition: transform .2s, opacity .3s;
}
.kassa-knapp.trycks { transform: scale(.95); }
.kassa-klart {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqw;
  background: #0d0e10; opacity: 0; transition: opacity .45s; text-align: center; font-size: 11px; font-size: 4.6cqw;
}
.kassa-klart b { font-size: 22px; font-size: 10cqw; letter-spacing: -.04em; }
.kassa-klart .bock { width: 22cqw; height: 22cqw; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 3cqw; transform: scale(.6); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.kassa-klart .bock svg { width: 60%; }
.telefon[data-lage="betalt"] .kassa-klart { opacity: 1; }
.telefon[data-lage="betalt"] .kassa-klart .bock { transform: scale(1); }

.kvitto {
  position: absolute; right: 7%; bottom: 12%; width: 200px; padding: 16px 16px 14px; border-radius: 12px;
  background: #f5f4ef; color: #111; font-size: 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); transform: rotate(4deg);
  font-family: var(--mono);
}
.kvitto-rubrik { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; display: flex; justify-content: space-between; border-bottom: 1px dashed #bbb; padding-bottom: 8px; margin-bottom: 8px; }
.kvitto-rubrik span { color: #777; }
.kvitto-rad { display: flex; justify-content: space-between; padding: 3px 0; }
.kvitto-rad.dov { color: #888; }
.kvitto-rad.summa { border-top: 1px dashed #bbb; margin-top: 6px; padding-top: 8px; font-weight: 700; }

/* Dörrloggen */
.panel {
  width: 100%; max-width: 480px; border-radius: 20px; background: var(--panel); border: 1px solid var(--linje-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); padding: 22px;
}
.panel-huvud { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; }
.lampa { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; background: #25262a; color: var(--svag); transition: background .3s, color .3s; }
.lampa.oppen { background: var(--accent); color: var(--accent-ink); }
.lampa.nekad { background: var(--rod); color: #1a0703; }
.dorr-vag { display: flex; align-items: center; margin: 26px 0 22px; }
.nod { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--svag); flex: none; width: 76px; text-align: center; }
.nod i { width: 48px; height: 48px; border-radius: 14px; background: #202125; border: 1px solid var(--linje-2); display: grid; place-items: center; color: var(--text); }
.nod svg { width: 24px; height: 24px; }
.led { position: relative; flex: 1; height: 2px; background: var(--linje-2); margin-bottom: 26px; }
.prick { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); opacity: 0; }
.dorrlogg.skickar .prick { animation: fard .7s ease-in forwards; }
.dorrlogg.skickar .led:nth-of-type(4) .prick { animation-delay: .7s; }
.dorrlogg.nekas .led:nth-of-type(4) .prick { animation: none; }
.dorrlogg.nekas .prick { background: var(--rod); box-shadow: 0 0 14px var(--rod); }
@keyframes fard { 0% { opacity: 0; left: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; left: calc(100% - 10px); } }
.logg { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.logg li {
  display: grid; grid-template-columns: 52px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px;
  background: #1a1b1e; font-size: 14px; animation: in .5s ease;
}
.logg time { font-family: var(--mono); color: var(--dov); font-size: 12.5px; }
.logg em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--dov); text-transform: uppercase; letter-spacing: .08em; }
.logg b { font-size: 12px; font-weight: 700; }
.logg b.ok { color: var(--accent); }
.logg b.nej { color: var(--rod); }
.logg li.ny { background: #22241c; }
@keyframes in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Fönster (adminvy / sajt) */
.fonster {
  width: 100%; max-width: 560px; border-radius: 14px; overflow: hidden; background: var(--panel);
  border: 1px solid var(--linje-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85);
}
.fonster-list { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #202125; border-bottom: 1px solid var(--linje); }
.fonster-list i { width: 10px; height: 10px; border-radius: 50%; background: #3a3b40; }
.fonster-list span { margin-left: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--dov); }
.fonster-innehall { padding: 20px; }
.adm-topp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.adm-topp b { font-size: 18px; margin-right: auto; letter-spacing: -.02em; }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(200, 245, 60, .12); color: var(--accent); }
.chip.varning { background: rgba(255, 200, 87, .12); color: var(--gul); }
.adm-tabell { display: grid; gap: 2px; font-size: 13.5px; }
.adm-rad { display: grid; grid-template-columns: 1.7fr .7fr .9fr .5fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 9px; background: #1b1c1f; }
.adm-rad.huvud { background: none; color: var(--dov); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding-block: 4px 6px; }
.adm-rad span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.adm-rad.lyser { background: #23261b; }
.bid { font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; padding: 2px 6px; border-radius: 5px; background: #183a5a; color: #9fd3ff; margin-right: 8px; vertical-align: 1px; }
.gar-ut { color: var(--gul); }
.utgangen { color: var(--rod); }

/* Butiken */
.vara {
  display: grid; grid-template-columns: 1fr auto auto; gap: 3cqw; align-items: center; margin-top: 3cqw;
  padding: 4cqw; border-radius: 4.4cqw; background: #17181b; border: 1px solid var(--linje);
  font-size: 11px; font-size: 4.4cqw;
}
.butik-app .tel-liten { margin-bottom: 1cqw; }
.vara span:first-child { display: flex; flex-direction: column; color: var(--svag); }
.vara span:first-child b { color: #fff; font-size: 13px; font-size: 5.2cqw; }
.vara span:nth-child(2) { font-weight: 700; }
.kop { font-style: normal; font-weight: 800; padding: 2cqw 4cqw; border-radius: 99px; background: #26282c; color: #fff; transition: background .25s, color .25s, transform .2s; }
.kop.trycks { background: var(--accent); color: var(--accent-ink); transform: scale(.94); }
.ark {
  position: absolute; left: -7cqw; right: -7cqw; bottom: -7cqw; padding: 5cqw 8cqw 10cqw; border-radius: 8cqw 8cqw 0 0;
  background: #202125; border-top: 1px solid var(--linje-2); display: flex; flex-direction: column; gap: 1.6cqw;
  transform: translateY(105%); transition: transform .45s cubic-bezier(.2, .8, .2, 1); font-size: 12px; font-size: 5cqw;
}
.ark-grepp { width: 14cqw; height: 1.4cqw; border-radius: 99px; background: #45464b; margin: 0 auto 3cqw; }
.ark b { font-size: 15px; font-size: 6.4cqw; letter-spacing: -.03em; }
.ark-pris { color: var(--accent); font-weight: 700; }
.ark-knappar { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3cqw; margin-top: 4cqw; }
.ark-knappar i { font-style: normal; text-align: center; padding: 3.8cqw; border-radius: 99px; background: #2c2d32; font-weight: 700; transition: transform .2s; }
.ark-knappar .ark-ja { background: var(--accent); color: var(--accent-ink); }
.ark-knappar .ark-ja.trycks { transform: scale(.94); }
.toast {
  position: absolute; left: 50%; top: 34%; translate: -50% 0; white-space: nowrap; display: flex; align-items: center; gap: 2.4cqw;
  padding: 3.6cqw 5.4cqw; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 12px; font-size: 4.8cqw;
  opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .35s, transform .35s;
}
.toast svg { width: 5.4cqw; height: 5.4cqw; }
.telefon[data-lage="ark"] .ark, .telefon[data-lage="betalar"] .ark { transform: none; }
.telefon[data-lage="klart"] .toast { opacity: 1; transform: none; }

/* Sajten + redigeringen */
.sajt .sajt-hero {
  position: relative; height: 210px; background-size: cover; background-position: center 45%; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 18px 20px;
}
.sajt .sajt-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.72)); }
.sajt-namn, .sajt-rubrik { position: relative; }
.sajt-namn { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.8); }
.sajt-rubrik { font-size: 26px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin-top: 4px; }
.sajt-kort { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px; }
.sajt-kort > div { background: #1b1c1f; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; border: 1px solid transparent; }
.sajt-kort > div.lyft { border-color: rgba(200, 245, 60, .35); }
.sajt-kort span { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.sajt-kort em { font-style: normal; display: inline-block; transition: background .4s, color .4s; border-radius: 4px; padding: 0 2px; }
.sajt-kort em.ny { background: var(--accent); color: var(--accent-ink); }
/* Uppe till höger, över sajtens bild: nere till vänster låg kortet OVANPÅ
   månadspriset — alltså precis det som skulle synas ändras. */
.redigera {
  position: absolute; right: 5%; top: 17%; width: 210px; padding: 16px; border-radius: 14px; background: #f5f4ef; color: #111;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85); font-size: 12px;
}
.red-rubrik { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #777; margin-bottom: 10px; }
.redigera label { display: block; font-weight: 600; margin-bottom: 6px; }
.red-falt { display: flex; align-items: center; gap: 1px; padding: 9px 10px; border-radius: 8px; border: 2px solid #111; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.red-falt .enhet { margin-left: auto; color: #888; font-weight: 500; }
.markor { width: 2px; height: 18px; background: #111; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.red-knapp { margin-top: 10px; text-align: center; padding: 8px; border-radius: 99px; background: #111; color: #fff; font-weight: 700; transition: transform .2s, background .3s; }
.red-knapp.trycks { transform: scale(.95); background: var(--accent-mork); color: #111; }

/* Resten */
.ovrigt { padding-top: 90px; }
.ovrigt h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.ovrigt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 28px; background: var(--linje); border: 1px solid var(--linje); border-radius: 20px; overflow: hidden; }
.ovrigt-grid > div { background: var(--bg); padding: 26px 22px; display: flex; flex-direction: column; gap: 8px; min-height: 150px; transition: background .25s; }
.ovrigt-grid > div:hover { background: var(--bg-2); }
.ovrigt-grid b { font-size: 17px; letter-spacing: -.02em; }
.ovrigt-grid b::before { content: ""; display: block; width: 22px; height: 3px; border-radius: 3px; background: var(--accent); margin-bottom: 14px; }
.ovrigt-grid span { color: var(--svag); font-size: 14.5px; }

/* ── Novus ────────────────────────────────────────────────────────────── */

.novus { padding-block: 120px 40px; background: linear-gradient(180deg, var(--bg), #0e0f10); }
.lank { display: inline-block; margin-top: 22px; color: var(--accent); text-decoration: none; font-weight: 700; border-bottom: 1px solid rgba(200, 245, 60, .4); }
.lank:hover { border-color: var(--accent); }
.remsa { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 56px; padding-inline: 6px; }
.remsa figure { margin: 0; position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 3 / 4; background: var(--panel); }
.remsa img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.remsa figure:hover img { transform: scale(1.05); }
.remsa figure:nth-child(even) { translate: 0 28px; }
.fotokredit { margin: 44px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dov); }

/* ── Pris ─────────────────────────────────────────────────────────────── */

.pris { padding-block: 120px; border-top: 1px solid var(--linje); }
.pris-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
/* «0,5 %» är dubbelt så brett som «1 %» var — storleken är satt efter det. */
.procent {
  font-size: clamp(6.5rem, 20vw, 15rem); font-weight: 800; letter-spacing: -.07em; line-height: .82; color: var(--accent);
  margin-top: 24px; text-shadow: 0 0 80px rgba(200, 245, 60, .25); white-space: nowrap;
}
.procent span { font-size: .45em; letter-spacing: -.03em; margin-left: .04em; }
.pris-under { font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--text); margin: 18px 0 0; font-weight: 600; letter-spacing: -.02em; }
.bockar { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.bockar li { display: flex; gap: 12px; align-items: center; font-size: 17px; font-weight: 600; }
.bockar li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l3.8 3.8L18 8' fill='none' stroke='%230b0c0d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.finstilt { font-size: 13.5px; color: var(--dov); margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--linje); max-width: 34em; }

/* ── Nya gym ──────────────────────────────────────────────────────────── */

.nya { padding-block: 120px 60px; border-top: 1px solid var(--linje); }
.nya-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.nya-foto { position: relative; margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 3 / 4; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9); }
.nya-foto img { width: 100%; height: 100%; object-fit: cover; }
.nya-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,12,13,0) 50%, rgba(11,12,13,.88)); }
.nya-foto figcaption { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.92); }
.nya-foto figcaption::before { content: "Novus Gym, Motala"; display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.nya-kort { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.nya-kort > div { padding: 22px 20px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--linje); display: flex; flex-direction: column; gap: 8px; }
.nya-kort > div:first-child { border-color: rgba(200, 245, 60, .35); background: linear-gradient(160deg, rgba(200, 245, 60, .12), rgba(200, 245, 60, 0) 65%), var(--bg-2); }
.nya-kort b { font-size: 18px; letter-spacing: -.02em; }
.nya-kort span { color: var(--svag); font-size: 14.5px; }

/* ── Bytet ────────────────────────────────────────────────────────────── */

.bytet { padding-block: 120px 40px; border-top: 1px solid var(--linje); }
.steg { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: steg; }
.steg li {
  position: relative; padding: 28px 24px 26px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--linje);
  display: flex; flex-direction: column; gap: 8px; counter-increment: steg; overflow: hidden;
}
.steg li::before {
  content: counter(steg); position: absolute; right: 18px; top: 6px; font-size: 96px; font-weight: 800; line-height: 1;
  letter-spacing: -.06em; color: rgba(255, 255, 255, .04);
}
/* Natten mörkast, morgonen ljusast: färgen följer klockan. */
.steg li:nth-child(2) { background: #0a0b0f; }
.steg li:nth-child(3) { background: linear-gradient(160deg, rgba(200, 245, 60, .14), rgba(200, 245, 60, .02) 60%), var(--bg-2); border-color: rgba(200, 245, 60, .3); }
.steg-tid { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.steg b { font-size: 22px; letter-spacing: -.025em; margin-top: 6px; }
.steg li > span:last-child { color: var(--svag); font-size: 15px; }

/* ── Kontakt ──────────────────────────────────────────────────────────── */

.kontakt { padding-block: 120px; background: var(--bg-2); border-top: 1px solid var(--linje); }
.kontakt-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.formular { display: grid; gap: 14px; padding: 28px; border-radius: 22px; background: var(--panel); border: 1px solid var(--linje-2); }
.falt-par { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.formular label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--svag); }
.formular input, .formular textarea {
  font: inherit; font-size: 16px; color: var(--text); background: #0f1012; border: 1px solid var(--linje-2);
  border-radius: 12px; padding: 12px 14px; transition: border-color .2s; resize: vertical;
}
.formular input:focus, .formular textarea:focus { outline: none; border-color: var(--accent); }
.formular .knapp { justify-self: start; margin-top: 4px; }
.formular .knapp[disabled] { opacity: .6; cursor: wait; }
.honung { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.svar { min-height: 1.4em; font-size: 15px; }
.svar.ok { color: var(--accent); }
.svar.fel { color: var(--rod); }

/* ── Sidfot ───────────────────────────────────────────────────────────── */

.fot { padding-block: 50px; border-top: 1px solid var(--linje); background: #070808; font-size: 14px; color: var(--svag); }
.fot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.fot-grid > div:first-child { max-width: 380px; }
.fot p { margin: 12px 0 0; }
.fot-lankar p { margin: 0 0 8px; }
.fot a:not(.logga) { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--linje-2); }
.fot a:not(.logga):hover { border-color: var(--accent); }

/* ── Insegling ────────────────────────────────────────────────────────── */

.avslojas { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.avslojas.inne { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .avslojas { opacity: 1; transform: none; transition: none; }
  .scen-tv, .scen-telefon, .flyt, .puls { animation: none; }
  .scen { transition: none; }
}

/* ── Smalare skärmar ──────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .scen { margin: 0 auto; max-width: 560px; }
  .funktion { grid-template-columns: 1fr; gap: 36px; padding-block: 70px; }
  .funktion.omvand .funktion-text { order: 0; }
  .ovrigt-grid { grid-template-columns: repeat(2, 1fr); }
  .pris-grid, .kontakt-grid { grid-template-columns: 1fr; gap: 40px; }
  .steg { grid-template-columns: 1fr; }
  .nya-grid { grid-template-columns: 1fr; gap: 40px; }
  .nya-foto { aspect-ratio: 4 / 3; }
  .fakta-grid { grid-template-columns: repeat(2, 1fr); }
  .fakta-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .fakta-grid > div:nth-child(n+3) { border-top: 1px solid var(--linje); }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .inre { padding-inline: 18px; }
  .meny { display: none; }
  .huvud .knapp { margin-left: auto; }
  .topprad .inre { justify-content: center; text-align: center; }
  .hero { padding-block: 40px 60px; }
  /* Mindre lutning: på full vinkel sköt TV:n ut över vänsterkanten. */
  .scen { width: 94%; transform: rotateY(-7deg) rotateX(4deg); }
  .funktioner, .novus, .pris, .kontakt { padding-block: 80px; }
  .bytet { padding-block: 80px 20px; }
  .nya { padding-block: 80px 20px; }
  .nya-kort { grid-template-columns: 1fr; }
  .funktion-bild { min-height: 440px; padding: 48px 16px 28px; }
  .funktion-bild .telefon { max-width: 210px; }
  .kvitto { width: 160px; right: 3%; bottom: 6%; font-size: 10.5px; padding: 12px; }
  .redigera { width: 150px; right: 3%; top: 15%; padding: 11px; }
  .funktion-bild.bred { min-height: 0; padding-block: 64px 44px; }
  .sajt .sajt-hero { height: 170px; }
  .sajt-kort { gap: 6px; padding: 10px; }
  .sajt-kort > div { padding: 8px; font-size: 11.5px; }
  .adm-rad { grid-template-columns: 1.6fr .7fr .8fr; font-size: 12.5px; }
  .adm-rad span:nth-child(4) { display: none; }
  .bid { display: none; }
  .logg li { grid-template-columns: 46px 1fr auto; font-size: 13px; }
  .logg em { display: none; }
  .nod { width: 60px; font-size: 11px; }
  .nod i { width: 42px; height: 42px; }
  .ovrigt-grid { grid-template-columns: 1fr; }
  .ovrigt-grid > div { min-height: 0; }
  .remsa { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-inline: 18px; margin-top: 40px; }
  .remsa figure { flex: 0 0 78%; scroll-snap-align: center; }
  .remsa figure:nth-child(even) { translate: none; }
  .falt-par { grid-template-columns: 1fr; }
  .formular { padding: 20px; }
  .fakta-grid > div { padding: 22px 14px; }
}
