/* =========================================================
   Treningssenter – prototype fra Klartil
   Energisk og ryddig: nesten svart med limegrønn aksent.
   Bytt --lime og --dark for senterets egne farger.
   ========================================================= */
:root {
  --bg: #ffffff;
  --soft: #f3f4f1;
  --line: #e2e4df;
  --ink: #121518;
  --ink-2: #3c4247;
  --muted: #687077;
  --dark: #121518;
  --dark-2: #1c2125;
  --dark-3: #262c31;
  --lime: #c8f031;
  --lime-2: #b4dc1c;
  --lime-ink: #4a6400;   /* limefarge som tekst på lys bakgrunn */
  --ok: #2c7a4b;
  --warn: #a35a00;
  --err: #b3261e;
  --radius: 16px;
  --shadow: 0 20px 44px -24px rgba(0, 0, 0, .35);
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --c-kondisjon: #ff6b3d;
  --c-styrke: #3d8bff;
  --c-mind: #9b6bff;
  --c-dans: #ff4f9a;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.6 var(--sans); color: var(--ink); background: var(--bg); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime-ink); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; line-height: 1.02; margin: 0 0 .45em; text-transform: uppercase; letter-spacing: .005em; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime-2); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); font-weight: 700; margin-bottom: .8em; }
.eyebrow--dark { color: var(--lime-ink); }
.muted { color: var(--muted); }
.muted-light { color: #b5bcc2; }
.small { font-size: .875rem; }
.center { text-align: center; }
.lead { font-size: 1.15rem; max-width: 33em; }

/* Knapper */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px; padding: .7em 1.4em; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; padding: .8em 1.7em; font-size: 1.05rem; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--lime-2); }
.btn--lime:disabled { background: #dfe6c6; color: #7d8570; cursor: not-allowed; }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--sm { min-height: 40px; padding: .4em 1em; font-size: .9rem; }
.btn--block { width: 100%; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; border: 0; background: transparent; cursor: pointer; color: inherit; }
.icon-btn:hover { background: rgba(127,127,127,.12); }

.proto-badge { background: #000; color: #e9f5bf; text-align: center; font-size: .8rem; padding: .5em 16px; }

/* Topp */
.top { position: sticky; top: 0; z-index: 30; background: rgba(18, 21, 24, .96); backdrop-filter: blur(8px); color: #fff; }
.top__in { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .55em; text-decoration: none; color: #fff; }
.logo__mark { width: 38px; height: 38px; border-radius: 10px; background: var(--lime); color: var(--ink); display: grid; place-items: center; }
.logo__mark svg { fill: currentColor; stroke: none; width: 22px; height: 22px; }
.logo__text { font: 800 1.65rem/1 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.nav { display: flex; gap: 24px; margin: 0 auto 0 32px; }
.nav a { color: #d3d8dc; text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: #fff; }
.top__trial, .top__join { min-height: 44px; padding: .45em 1.15em; font-size: .95rem; }
.nav-toggle { display: none; color: #fff; }

/* Hero */
.hero { position: relative; background: var(--dark); color: #fff; padding: clamp(48px, 8vw, 110px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(12,14,16,.94) 0%, rgba(12,14,16,.78) 46%, rgba(12,14,16,.35) 100%); }
.hero__in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hl { color: var(--lime); display: block; }
.hero .lead { color: #dfe4e7; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 30px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; gap: 32px; flex-wrap: wrap; }
.hero__facts li { display: grid; }
.hero__facts strong { font: 800 2rem/1 var(--head); color: #fff; }
.hero__facts span { color: #aab2b8; font-size: .85rem; }

.next { background: rgba(18, 21, 24, .82); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 22px; backdrop-filter: blur(10px); }
.next__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.next__head h2 { font-size: 1.5rem; margin: 0; }
.next__head a { color: var(--lime); font-size: .88rem; font-weight: 600; }
.next__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.next__list li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; background: rgba(255,255,255,.05); border-radius: 12px; }
.next__time { font: 800 1.35rem/1 var(--head); }
.next__time small { display: block; font: 500 .7rem/1.2 var(--sans); color: #aab2b8; margin-top: 3px; }
.next__name { font-weight: 650; line-height: 1.25; }
.next__name small { display: block; color: #aab2b8; font-weight: 400; font-size: .8rem; }
.next .btn--sm { min-height: 38px; padding: .35em .9em; }

/* Seksjoner */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--dark); color: #fff; }
.section__head { max-width: 680px; margin-bottom: 32px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.section__head--row > div:first-child { max-width: 620px; }

/* Medlemskap */
.price-controls { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.seg, .switch { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button, .switch button { min-height: 42px; padding: .4em 1.05em; border-radius: 999px; border: 0; background: transparent; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.seg button[aria-checked="true"] { background: var(--ink); color: #fff; }
.switch button[aria-checked="true"] { background: var(--lime); color: var(--ink); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; margin-bottom: 14px; }
.plan { position: relative; display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: 22px; padding: 28px 26px; background: #fff; }
.plan--pop { border-color: var(--ink); background: var(--dark); color: #fff; }
.plan__tag { position: absolute; top: -13px; left: 26px; background: var(--lime); color: var(--ink); font-weight: 800; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; padding: .3em .85em; border-radius: 999px; }
.plan h3 { font-size: 2rem; margin-bottom: .1em; }
.plan__for { color: var(--muted); font-size: .92rem; min-height: 2.9em; }
.plan--pop .plan__for { color: #aab2b8; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 2px; }
.plan__price strong { font: 800 3.4rem/1 var(--head); }
.plan__price span { color: var(--muted); font-weight: 600; }
.plan--pop .plan__price span { color: #aab2b8; }
.plan__was { font-size: .85rem; color: var(--muted); min-height: 1.4em; margin-bottom: 14px; }
.plan--pop .plan__was { color: #aab2b8; }
.plan__was s { opacity: .8; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.plan li svg { margin-top: 2px; stroke-width: 2.6; }
.plan li.yes svg { color: var(--lime-ink); }
.plan--pop li.yes svg { color: var(--lime); }
.plan li.no { color: #a3a9ae; }
.plan--pop li.no { color: #6b747b; }
.plan li.no svg { color: inherit; }
.plan .btn { width: 100%; }

.quiz { margin-top: 40px; display: grid; grid-template-columns: .8fr 1.6fr 1fr; gap: 24px; align-items: center; background: var(--soft); border-radius: 22px; padding: 26px; }
.quiz h3 { font-size: 1.6rem; }
.quiz__qs { display: grid; gap: 12px; }
.quiz__q p { font-weight: 650; font-size: .9rem; margin: 0 0 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills button { min-height: 40px; padding: .35em .95em; border-radius: 999px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: .88rem; }
.pills button[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.quiz__out { background: #fff; border-radius: 16px; padding: 18px; min-height: 140px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.quiz__out strong { font: 800 1.6rem/1 var(--head); text-transform: uppercase; }

/* Timeplan */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: .35em .95em; border-radius: 999px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: .88rem; }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 -2px 8px; scrollbar-width: thin; }
.day { flex: none; min-width: 92px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: #fff; cursor: pointer; text-align: left; display: grid; gap: 1px; }
.day strong { font-weight: 700; }
.day small { color: var(--muted); font-size: .78rem; }
.day[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.day[aria-selected="true"] small { color: var(--lime); }
.classes { display: grid; gap: 10px; }
.cls { display: grid; grid-template-columns: 84px 6px 1fr auto auto; gap: 16px; align-items: center; background: #fff; border-radius: 16px; padding: 14px 18px; border: 1px solid var(--line); }
.cls.is-past { opacity: .5; }
.cls__time { font: 800 1.6rem/1 var(--head); }
.cls__time small { display: block; font: 500 .78rem/1.3 var(--sans); color: var(--muted); margin-top: 3px; }
.cls__bar { align-self: stretch; border-radius: 3px; background: var(--c); }
.cls__name { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.cls__meta { color: var(--muted); font-size: .86rem; display: flex; gap: 6px 14px; flex-wrap: wrap; margin-top: 2px; }
.lvl { display: inline-flex; gap: 2px; align-items: flex-end; vertical-align: -1px; margin-right: 4px; }
.lvl i { width: 4px; border-radius: 1px; background: #cfd3d6; }
.lvl i:nth-child(1) { height: 6px; } .lvl i:nth-child(2) { height: 9px; } .lvl i:nth-child(3) { height: 12px; }
.lvl i.on { background: var(--ink-2); }
.cls__spots { font-size: .85rem; font-weight: 650; text-align: right; white-space: nowrap; }
.cls__spots.ok { color: var(--ok); }
.cls__spots.few { color: var(--warn); }
.cls__spots.full { color: var(--err); }
.cls .btn { min-width: 112px; }
.cls .btn--booked { background: #e4f3ea; color: var(--ok); border-color: transparent; }

/* Senteret */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.area { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; color: #fff; }
.area img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.area:hover img { transform: scale(1.04); }
.area::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.82)); }
.area__text { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; }
.area__text h3 { margin: 0 0 .15em; font-size: 1.8rem; }
.area__text p { margin: 0; font-size: .9rem; color: #dfe4e7; }
.amenities { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.amenities li { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 18px 10px; border-radius: 16px; background: var(--soft); font-weight: 600; font-size: .9rem; }
.amenities svg { width: 28px; height: 28px; color: var(--lime-ink); }

/* PT */
.pt { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.pt__img { border-radius: 18px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin-bottom: 24px; }
.quiz__img { border-radius: 14px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; margin-bottom: 14px; }
.terms-inline { margin: -4px 0 14px; font-size: .9rem; }
.terms-inline summary { cursor: pointer; color: var(--lime-ink); font-weight: 600; }
.pt__prices { list-style: none; padding: 0; margin: 0 0 26px; border-top: 1px solid rgba(255,255,255,.12); }
.pt__prices li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #d3d8dc; }
.pt__prices strong { color: #fff; font: 800 1.35rem/1 var(--head); }
.trainers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trainer { background: var(--dark-2); border: 1px solid var(--dark-3); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.avatar { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font: 800 1.5rem/1 var(--head); color: var(--ink); margin-bottom: 8px; }
.trainer h3 { margin: 0; font-size: 1.5rem; }
.trainer__role { color: var(--lime); font-weight: 600; font-size: .88rem; margin: 0; }
.trainer p { color: #b5bcc2; font-size: .9rem; margin: 4px 0 8px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tags span { font-size: .75rem; font-weight: 600; padding: .25em .7em; border-radius: 999px; background: rgba(200, 240, 49, .12); color: var(--lime); }
.trainer .btn { margin-top: auto; align-self: flex-start; }

/* Prøv gratis */
.trial { position: relative; color: #fff; overflow: hidden; }
.trial img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.trial::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,14,16,.9), rgba(12,14,16,.55)); z-index: 1; }
.trial__in { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: clamp(48px, 7vw, 84px) 0; }
.trial h2 { margin-bottom: .2em; }
.trial p { margin: 0; color: #dfe4e7; font-size: 1.1rem; }

/* Omtaler */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { margin: 0; background: var(--soft); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; }
.stars { color: #e8a317; letter-spacing: 2px; }
.review p { flex: 1; margin: 10px 0 14px; font-size: 1.02rem; }
.review footer { font-weight: 700; font-size: .9rem; }
.review footer small { color: var(--muted); font-weight: 400; display: block; }

/* Info */
.info { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 18px; align-items: start; }
.info__box { background: #fff; border-radius: 20px; padding: 24px; border: 1px solid var(--line); }
.info__box h3 { font-size: 1.6rem; }
.open-now { font-weight: 650; display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(44,122,75,.15); }
.dot--off { background: #9aa1a6; box-shadow: none; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: .95rem; }
.hours caption { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; padding: 6px 0 4px; }
.hours td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; }
.hours tr.today td { font-weight: 700; }
.contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact li { display: flex; gap: 12px; align-items: flex-start; }
.contact svg { color: var(--lime-ink); margin-top: 2px; }
.contact a { color: var(--ink); text-decoration: none; }
.contact a:hover { text-decoration: underline; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 12px 30px 12px 0; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--lime-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 14px; color: var(--ink-2); font-size: .94rem; }

/* Bunn */
.footer { background: #0b0d0f; color: #a3aab0; padding: 44px 0 40px; }
.footer__in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.footer a { color: var(--lime); }
.footer p { margin: 0 0 .5em; }
.footer .logo { margin-bottom: 12px; }
.credits summary { cursor: pointer; }
.credits ul { padding-left: 1.1em; margin: 8px 0 0; font-size: .78rem; display: grid; gap: 4px; }
.mobile-bar { display: none; }

/* Skjema */
label { display: grid; gap: 6px; font-size: .92rem; font-weight: 650; color: var(--ink-2); margin-bottom: 14px; }
input, select, textarea { width: 100%; min-height: 50px; padding: .65em .9em; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-weight: 400; font-size: 1rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(200, 240, 49, .5); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field-label { font-size: .92rem; font-weight: 650; color: var(--ink-2); margin: 4px 0 8px; }
.form-error { color: var(--err); font-weight: 650; font-size: .92rem; margin: 10px 0 0; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; padding: 0; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.opts { display: grid; gap: 8px; margin-bottom: 16px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: #fff; cursor: pointer; }
.opt[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt__text { flex: 1; min-width: 0; }
.opt__text strong { display: block; }
.opt__text span { font-size: .86rem; color: var(--muted); }
.opt__right { font-weight: 700; white-space: nowrap; text-align: right; font-size: .95rem; }
.opt__right small { display: block; font-weight: 500; color: var(--ok); font-size: .78rem; }
.opt .avatar { width: 46px; height: 46px; font-size: 1.25rem; margin: 0; flex: none; }
.pills--big { margin-bottom: 16px; }
.info-card p strong { font-size: .9rem; color: var(--ok); }
.pills--big button { min-height: 46px; padding: .45em 1.1em; font-size: .92rem; }
.info-card { background: var(--soft); border-radius: 16px; padding: 16px 18px; margin-bottom: 16px; display: grid; grid-template-columns: 6px 1fr; gap: 14px; }
.info-card .cls__bar { border-radius: 3px; }
.info-card strong { font-size: 1.1rem; }
.info-card p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.member-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; flex-wrap: wrap; }
.member-box p { margin: 0; font-weight: 650; }
.member-box small { display: block; font-weight: 400; color: var(--muted); }
.terms-text { color: var(--ink-2); font-size: .95rem; }
.terms-text h4 { font-family: var(--sans); text-transform: none; font-size: 1rem; font-weight: 700; margin: 16px 0 4px; }
.terms-text p { margin: 0 0 6px; }

/* Vindu */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8, 10, 12, .62); backdrop-filter: blur(3px); }
.modal__panel { position: relative; width: min(620px, 100%); max-height: min(880px, 100%); display: flex; flex-direction: column; background: #fff; border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); overflow: hidden; }
.modal__head { display: flex; align-items: center; gap: 8px; padding: 18px 18px 12px 24px; }
.modal__titles { flex: 1; min-width: 0; }
.modal__head h2 { font-size: 2rem; margin: 0; }
.modal__step { margin: 0; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lime-ink); font-weight: 700; }
.progress { height: 4px; background: var(--line); }
.progress span { display: block; height: 100%; width: 0; background: var(--lime-2); transition: width .3s; }
.modal__body { padding: 18px 24px 24px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.modal__foot { display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--line); }
.demo-note { background: #fff3d6; color: #6b4e00; font-size: .82rem; padding: .5em .9em; border-radius: 10px; margin-bottom: 14px; }
.sum { flex: 1; min-width: 0; font-size: .88rem; line-height: 1.35; }
.sum strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sum span { color: var(--muted); }
.mdays { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px 10px; }
.mday { flex: none; width: 64px; padding: 9px 0; border-radius: 12px; border: 2px solid var(--line); background: #fff; cursor: pointer; display: grid; gap: 1px; text-align: center; }
.mday small { font-size: .72rem; color: var(--muted); text-transform: uppercase; }
.mday strong { font-size: 1.1rem; }
.mday span { font-size: .68rem; color: var(--ok); font-weight: 650; }
.mday:disabled { opacity: .4; cursor: not-allowed; }
.mday[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.mday[aria-selected="true"] small, .mday[aria-selected="true"] span { color: var(--lime); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot { min-height: 46px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-weight: 650; cursor: pointer; }
.slot[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.done { text-align: center; }
.done__icon { width: 66px; height: 66px; margin: 6px auto 14px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; }
.done__icon svg { width: 34px; height: 34px; stroke-width: 2.6; }
.done h3 { font-size: 2rem; }
.done-card { text-align: left; background: var(--soft); border-radius: 14px; padding: 14px 18px; display: grid; gap: 6px; font-size: .94rem; margin: 14px 0; }
.done-card div { display: flex; justify-content: space-between; gap: 16px; }
.done-card span:first-child { color: var(--muted); }
.done-card span:last-child { font-weight: 650; text-align: right; }
.done-next { text-align: left; padding-left: 1.3em; margin: 0 0 18px; color: var(--ink-2); display: grid; gap: 6px; }

/* Innlogging og Min side */
.login-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: .4em .9em; border-radius: 999px; border: 0; background: transparent; color: #fff; font-weight: 600; font-size: .95rem; cursor: pointer; }
.login-btn:hover { background: rgba(255,255,255,.08); }
.login-btn svg { width: 22px; height: 22px; }
.demo-code { background: var(--lime); color: var(--ink); border-radius: 10px; padding: .55em .9em; font-size: .95rem; }
.link-btn { background: none; border: 0; padding: .3em 0; color: var(--lime-ink); font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; }
.ms-summary { background: var(--soft); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; margin: 6px 0 14px; }
.ms-summary div { display: flex; justify-content: space-between; gap: 14px; font-size: .95rem; }
.ms-summary span { color: var(--muted); }
.ms-summary strong { text-align: right; }
.alt { border: 2px dashed var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.alt p { width: 100%; margin: 0 0 4px; font-size: .95rem; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center; }

body.member-view main, body.member-view .mobile-bar { display: none; }
.minside { background: var(--soft); padding-bottom: 64px; min-height: 70vh; }
.ms-top { background: var(--dark); color: #fff; padding: 36px 0 90px; }
.ms-top__in { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.ms-top h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0; }
.ms-top__btns { display: flex; gap: 8px; }
.ms-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; margin-top: -60px; }
.ms-card { background: #fff; border-radius: 20px; padding: 22px; border: 1px solid var(--line); min-width: 0; }
.ms-card--dark { background: var(--dark-2); color: #fff; border-color: var(--dark-3); }
.ms-plan { display: flex; flex-direction: column; order: 1; }
.ms-access { order: 2; } .ms-activity { order: 3; } .ms-me { order: 4; } .ms-bookings { order: 5; } .ms-pay { order: 6; }
.ms-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.ms-card--dark .ms-label { color: #aab2b8; }
.ms-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ms-plan__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ms-plan h2 { font-size: 2.6rem; margin: 0; }
.badge { font-size: .8rem; font-weight: 700; padding: .35em .85em; border-radius: 999px; white-space: nowrap; }
.badge--active { background: var(--lime); color: var(--ink); }
.badge--frozen { background: #cfe3ff; color: #0f3d7a; }
.badge--cancelled { background: #ffd9d4; color: #8a1d12; }
.ms-price { color: #c8ced2; margin: 4px 0 16px; }
.ms-price strong { font: 800 2.6rem/1 var(--head); color: #fff; }
.ms-facts { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 0; flex: 1; align-content: start; }
.ms-facts li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .94rem; }
.ms-facts span { color: #aab2b8; }
.ms-facts strong { text-align: right; }
.ms-facts--light li { border-color: var(--line); }
.ms-facts--light span { color: var(--muted); }
.ms-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-actions .btn { min-height: 46px; }
.ms-access { text-align: center; }
.qr { width: 150px; height: 150px; margin: 6px auto 10px; display: block; stroke: none; }
.qr rect { stroke: none; }
.ms-pin { margin: 0 0 4px; }
.ms-pin strong { font: 800 1.5rem/1 var(--head); letter-spacing: .08em; }
.ms-paused { background: #e8f1ff; border-radius: 14px; padding: 24px 16px; display: grid; gap: 4px; color: #0f3d7a; }
.ms-big { margin: 0 0 12px; }
.ms-big strong { font: 800 2rem/1 var(--head); }
.bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; height: 110px; align-items: end; margin-bottom: 10px; }
.bar { height: 100%; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 3px; }
.bar__n { font-size: .72rem; font-weight: 700; color: var(--ink-2); }
.bar__f { width: 100%; max-width: 26px; align-self: end; background: var(--lime-2); border-radius: 4px 4px 0 0; }
.bar:last-child .bar__f { background: var(--ink); }
.bar small { font-size: .68rem; color: var(--muted); }
.ms-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; }
.ms-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: var(--soft); border-radius: 12px; }
.ms-list li div { display: grid; min-width: 0; }
.ms-list li span { font-size: .85rem; color: var(--muted); }
.ms-list--compact li { padding: 8px 12px; font-size: .9rem; }
.ms-list--compact li span { color: var(--ink-2); font-size: .9rem; }
.paid { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--ok); background: #e4f3ea; padding: .15em .55em; border-radius: 999px; margin-left: 6px; }
.ms-method { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; margin-bottom: 8px; font-weight: 600; }
@media (max-width: 1000px) {
  .ms-grid { grid-template-columns: 1fr 1fr; }
  .ms-plan { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .login-btn span { display: none; }
  .login-btn { padding: 0; width: 44px; justify-content: center; }
  .ms-grid { grid-template-columns: 1fr; }
  .ms-top { padding: 26px 0 80px; }
  .ms-plan h2 { font-size: 2.1rem; }
  .ms-actions .btn { width: 100%; }
}

/* Betaling */
.pay-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; flex: none; }
.pay-icon svg { width: 24px; height: 24px; }
.opt[aria-checked="true"] .pay-icon { background: var(--lime); }
.paying { text-align: center; padding: 30px 10px; }
.paying h3 { font-size: 1.5rem; margin-top: 18px; }
.spinner { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; border: 5px solid var(--soft); border-top-color: var(--lime-2); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Mobil og nettbrett */
@media (max-width: 1080px) {
  .nav { gap: 16px; margin-left: 20px; }
  .top__trial { display: none; }
  .quiz { grid-template-columns: 1fr 1fr; }
  .quiz__intro { grid-column: 1 / -1; }
  .amenities { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; }
  .top__join { margin-left: auto; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0; background: var(--dark); padding: 6px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .hero__in, .pt, .info { grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(180deg, rgba(12,14,16,.75), rgba(12,14,16,.85) 55%, rgba(12,14,16,.95)); }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .areas, .reviews { grid-template-columns: repeat(2, 1fr); }
  .footer__in { grid-template-columns: 1fr; }
  .footer { padding-bottom: 104px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(18, 21, 24, .97); }
}
@media (max-width: 640px) {
  .top__join { min-height: 40px; padding: .35em .9em; font-size: .88rem; }
  .logo__text { font-size: 1.4rem; }
  .hero__ctas .btn { width: 100%; }
  .hero__facts { gap: 22px; }
  .hero__facts strong { font-size: 1.7rem; }
  .price-controls { flex-direction: column; }
  .plan li.no { display: none; }
  .plan__for { min-height: 0; }
  .seg { justify-content: center; }
  .quiz { grid-template-columns: 1fr; padding: 20px 16px; }
  .cls { grid-template-columns: 62px 5px 1fr; gap: 6px 12px; padding: 12px 14px; }
  .cls__time { font-size: 1.35rem; }
  .cls__spots { grid-column: 3; text-align: left; }
  .cls .btn { grid-column: 3; justify-self: start; min-height: 40px; }
  .cls__bar { grid-row: span 3; }
  .cls__time { grid-row: span 3; align-self: start; }
  .areas, .reviews, .trainers { grid-template-columns: 1fr; }
  .amenities { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .trial__in .btn { width: 100%; }
  .modal { padding: 0; place-items: end stretch; }
  .modal__panel { width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: 22px 22px 0 0; }
  .modal__body { padding: 14px 16px 20px; }
  .modal__head { padding: 14px 10px 10px 16px; }
  .modal__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
