/* Landingsside v2: naturbilder og animerte produktskjermer.
   Bygger på base.css (kopi av v1). Skjermene følger formspråket i prototypes/skjemabygger:
   statcards med datadrevet bakgrunn, puljebånd langs forventet sluttid, bekreftelse med PÅMELDT-stempel, deltakerhub med QR. */

@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }

/* ---------- Hero-justeringer ---------- */
.hero-media img { object-position: 50% 45%; }
.hero-media::after {
  background:
    linear-gradient(180deg, rgba(26, 24, 21, .62) 0%, rgba(26, 24, 21, .12) 20%, rgba(26, 24, 21, .2) 46%, rgba(26, 24, 21, .9) 100%),
    linear-gradient(90deg, rgba(26, 24, 21, .62) 0%, rgba(26, 24, 21, 0) 64%);
}
.hero-scroll { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 6px; min-height: 44px; padding: 10px 18px; border-radius: 100px; border: 1px solid rgba(250, 249, 246, .45); color: var(--paper); text-decoration: none; font-weight: 600; font-size: 15px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: rgba(26, 24, 21, .18); transition: background var(--motion-1); }
.hero-scroll:hover { background: rgba(250, 249, 246, .16); }
.hero-scroll .ico { transform: rotate(90deg); }
.hero-place { position: absolute; right: var(--gutter); bottom: 22px; font-size: 12.5px; color: rgba(250, 249, 246, .78); letter-spacing: .02em; display: none; }

/* ---------- Produkt ---------- */
.product { padding-bottom: clamp(56px, 7vw, 96px); }
.product-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: clamp(48px, 7vw, 96px); }

.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin-bottom: clamp(72px, 10vw, 140px); }
.story--flip .story-copy { order: 2; }
.story.story--wide { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.story.story--wide.story--flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.story-copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.story-step { font-size: 13px; color: var(--coral-deep); background: var(--coral-wash); padding: 3px 10px; border-radius: 100px; }
.story-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
.story-copy > p { color: var(--ink-muted); font-size: 17px; max-width: 48ch; }
.story-ticks { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 6px; }
.story-ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.story-ticks .ico { color: var(--coral-deep); margin-top: 3px; stroke-width: 2.2; }

/* Fotoscene bak skjermen */
.stage--photo {
  position: relative; isolation: isolate; border-radius: 28px; overflow: hidden;
  display: grid; place-items: center; padding: clamp(28px, 4vw, 56px) clamp(16px, 4vw, 48px);
  background: var(--ink) var(--photo) center / cover no-repeat; box-shadow: var(--shadow-float);
}
.stage--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(26, 24, 21, .05), rgba(26, 24, 21, .45)); }
.stage--wide { padding-inline: clamp(12px, 1.6vw, 24px); }
.product .wrap { width: min(1400px, 100%); }
.wn > span, .kpi > small { overflow: hidden; text-overflow: ellipsis; }

/* Pause alle løkker til skjermen er i bildet */
.screen, .screen * { animation-play-state: paused !important; }
.screen.is-live, .screen.is-live * { animation-play-state: running !important; }

/* ---------- Telefon ---------- */
.phone {
  --pw: 300px;
  position: relative; width: var(--pw); height: calc(var(--pw) * 2.05); border-radius: 46px; padding: 10px;
  background: #121110; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.phone-notch { position: absolute; z-index: 5; top: 18px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 100px; background: #121110; }
.phone > :not(.phone-notch) { border-radius: 37px; overflow: hidden; height: 100%; background: var(--paper); }

/* Påmelding: ekspressflyt i fire paneler */
#screen-signup { display: flex; flex-direction: column; }
#screen-signup > .ph-top, #screen-signup > .ph-viewport { border-radius: 0; height: auto; }
#screen-signup > .ph-top { border-radius: 37px 37px 0 0; padding: 54px 20px 12px; background: var(--surface); border-bottom: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 10px; }
#screen-signup > .ph-viewport { flex: 1; border-radius: 0 0 37px 37px; position: relative; }
.ph-event { display: flex; flex-direction: column; line-height: 1.2; }
.ph-event b { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.ph-event small { font-size: 12.5px; color: var(--ink-muted); }
.ph-progress { height: 4px; border-radius: 4px; background: var(--paper-sunken); overflow: hidden; }
.ph-progress span { display: block; height: 100%; width: 33%; background: var(--coral); border-radius: 4px; animation: sg-progress 14s var(--ease-standard) infinite; }
.ph-viewport { overflow: hidden; }
.ph-track { display: flex; width: 400%; height: 100%; animation: sg-track 14s var(--ease-standard) infinite; }
.ph-panel { width: 25%; height: 100%; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.ph-kicker { font-size: 11.5px; color: var(--ink-muted); }
.ph-h { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; line-height: 1.1; margin-bottom: 4px; }
.ph-field { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); }
.ph-field small { font-size: 11.5px; color: var(--ink-muted); font-family: var(--font-small); }
.ph-field .type { font-size: 15px; font-weight: 500; white-space: nowrap; min-height: 1.4em; }
.type.t1 { animation: sg-type1 14s steps(12) infinite; }
.type.t2 { animation: sg-type2 14s steps(15) infinite; }
.type.t3 { animation: sg-type3 14s steps(10) infinite; }
.ph-btn { margin-top: auto; display: grid; place-items: center; min-height: 46px; border-radius: 100px; background: var(--coral); color: var(--ink); font-weight: 600; font-size: 15px; position: relative; overflow: hidden; }
.ph-panel:first-child .ph-btn { animation: sg-press-a 14s infinite; }
.ph-up { display: grid; grid-template-columns: 48px minmax(0, 1fr) 32px; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--surface); }
.ph-up-img { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; background: var(--coral-wash); color: var(--coral-deep); }
.ph-up-text { display: flex; flex-direction: column; line-height: 1.25; }
.ph-up-text b { font-size: 14.5px; font-weight: 600; }
.ph-up-text small { font-size: 12.5px; color: var(--ink-muted); }
.ph-up-add { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--hairline-strong); position: relative; }
.ph-up-add .ico { position: absolute; stroke-width: 2.2; }
.ph-up .i-check { opacity: 0; }
.ph-up.is-pick { animation: sg-pick-card 14s infinite; }
.ph-up.is-pick .ph-up-add { animation: sg-pick-btn 14s infinite; }
.ph-up.is-pick .i-plus { animation: sg-fade-out 14s infinite; }
.ph-up.is-pick .i-check { animation: sg-fade-in 14s infinite; }
.ph-sum { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding: 6px 2px 0; font-size: 14px; color: var(--ink-muted); }
.ph-sum .mono { grid-column: 2; grid-row: 1; font-size: 17px; color: var(--ink); font-weight: 500; }
.ph-sum-a { animation: sg-fade-out 14s infinite; }
.ph-sum-b { opacity: 0; animation: sg-fade-in 14s infinite; }
.ph-lines { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; font-size: 14px; }
.ph-lines > span { display: flex; justify-content: space-between; gap: 12px; }
.ph-lines b { font-weight: 500; }
.ph-total { border-top: 1px solid var(--hairline); padding-top: 8px; font-weight: 600; }
.ph-total b { font-size: 17px; }
.ph-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-paybtn { display: grid; place-items: center; min-height: 42px; border-radius: 100px; font-size: 13.5px; font-weight: 600; }
.ph-paybtn.dark { background: var(--ink); color: var(--paper); }
.ph-btn--pay { animation: sg-press-c 14s infinite; }
.pay-a, .pay-b { grid-area: 1 / 1; }
.pay-a { animation: sg-pay-a 14s infinite; }
.pay-b { opacity: 0; animation: sg-pay-b 14s infinite; }
.ph-panel--done { background: var(--ink) var(--photo) center / cover; color: var(--paper); justify-content: center; gap: 16px; }
.ph-panel--done::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 24, 21, .2), rgba(26, 24, 21, .82)); }
.ph-panel--done > * { position: relative; }
.ph-done-h { font-family: var(--font-display); font-weight: 800; font-size: 25px; line-height: 1.05; letter-spacing: -.02em; }
.ph-ticket { background: var(--surface); color: var(--ink); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7); }
.ph-ticket-k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); }
.ph-ticket > b { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.ph-ticket > small { font-size: 13px; color: var(--ink-muted); }
.ph-ticket-perf { border-top: 2px dashed var(--hairline-strong); margin: 10px -4px 8px; }
.ph-ticket-row { display: flex; justify-content: space-between; align-items: baseline; }
.ph-ticket-row small { font-size: 12px; color: var(--ink-muted); }
.ph-ticket-row b { font-size: 28px; font-weight: 500; }
.ph-stamp {
  position: absolute; right: 12px; top: 54px; transform: rotate(-7deg);
  font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: .08em;
  color: var(--coral-deep); border: 2px solid var(--coral-deep); border-radius: 8px; padding: 2px 8px; background: rgba(255, 255, 255, .9);
  animation: sg-stamp 14s infinite;
}
.ph-share { align-self: center; padding: 10px 18px; border-radius: 100px; font-size: 13.5px; font-weight: 600; background: rgba(250, 249, 246, .16); border: 1px solid rgba(250, 249, 246, .3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

@keyframes sg-track {
  0%, 1.5% { transform: translateX(0); opacity: 0; }
  2.5%, 22% { transform: translateX(0); opacity: 1; }
  26%, 47% { transform: translateX(-25%); opacity: 1; }
  51%, 72% { transform: translateX(-50%); opacity: 1; }
  76%, 96% { transform: translateX(-75%); opacity: 1; }
  100% { transform: translateX(-75%); opacity: 0; }
}
@keyframes sg-progress { 0%, 22% { width: 33%; } 26%, 47% { width: 66%; } 51%, 96% { width: 100%; } 100% { width: 33%; } }
@keyframes sg-type1 { 0%, 3% { clip-path: inset(0 100% 0 0); } 9%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes sg-type2 { 0%, 9.5% { clip-path: inset(0 100% 0 0); } 15%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes sg-type3 { 0%, 15.5% { clip-path: inset(0 100% 0 0); } 19%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes sg-press-a { 0%, 20.5% { transform: none; background: var(--coral); } 21.5% { transform: scale(.96); background: var(--coral-deep); } 23%, 100% { transform: none; background: var(--coral); } }
@keyframes sg-pick-card { 0%, 33% { border-color: var(--hairline); box-shadow: none; } 35%, 97% { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-wash); } 100% { border-color: var(--hairline); } }
@keyframes sg-pick-btn { 0%, 33% { background: transparent; border-color: var(--hairline-strong); transform: none; } 34% { transform: scale(1.2); } 35.5%, 97% { background: var(--coral); border-color: var(--coral); transform: none; } 100% { background: transparent; } }
@keyframes sg-fade-out { 0%, 33% { opacity: 1; } 35%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes sg-fade-in { 0%, 33% { opacity: 0; } 35%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sg-press-c { 0%, 66% { transform: none; } 67% { transform: scale(.96); } 68.5%, 100% { transform: none; } }
@keyframes sg-pay-a { 0%, 66.5% { opacity: 1; } 67.5%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes sg-pay-b { 0%, 66.5% { opacity: 0; } 67.5%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sg-stamp { 0%, 79% { opacity: 0; transform: rotate(-7deg) scale(2.2); } 81% { opacity: 1; transform: rotate(-7deg) scale(.94); } 82.5%, 96% { opacity: 1; transform: rotate(-7deg) scale(1); } 100% { opacity: 0; transform: rotate(-7deg) scale(1); } }

/* ---------- Nettleservindu (arrangørflaten) ---------- */
.win { width: 100%; max-width: 780px; border-radius: 18px; overflow: hidden; background: var(--paper); box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .65), 0 0 0 1px rgba(26, 24, 21, .08); container-type: inline-size; font-size: 13px; line-height: 1.4; }
.win-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--hairline); }
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--paper-sunken); border: 1px solid var(--hairline); }
.win-url { margin: 0 auto; font-size: 12px; color: var(--ink-muted); background: var(--paper); border: 1px solid var(--hairline); border-radius: 100px; padding: 3px 14px; transform: translateX(-24px); }
.win-body { display: grid; grid-template-columns: 158px minmax(0, 1fr); gap: 14px; padding: 14px; }
.win-nav { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 14px 8px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-float); }
.win-nav img { height: 15px; width: auto; align-self: flex-start; margin: 0 8px 12px; }
.wn { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 10px; color: var(--ink-muted); font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.wn.is-on { background: var(--coral-wash); color: var(--ink); font-weight: 600; }
.wn.is-on::after { content: ""; margin-left: auto; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--coral); }
.win-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.win-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.win-head > b { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.015em; }
.ex-badge { font-size: 11px; padding: 2px 8px; border-radius: 100px; background: var(--ink); color: var(--paper); }
.win-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 6px; border-radius: 100px; background: var(--surface); border: 1px solid var(--hairline); font-weight: 600; font-size: 12px; box-shadow: var(--shadow-float); }
.win-pill i { width: 18px; height: 18px; border-radius: 50%; background: url("assets/foto-hero-1200.jpg") center / cover; }

.kpis { display: grid; grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 6px; min-height: 104px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; }
.kpi > small { font-family: var(--font-small); font-size: 11.5px; color: var(--ink-muted); white-space: nowrap; }
.kpi > b { font-family: var(--font-data); font-weight: 500; font-size: 25px; letter-spacing: -.03em; line-height: 1; display: flex; align-items: baseline; gap: .2em; white-space: nowrap; }
.kpi > b small { font-family: var(--font-small); font-size: .46em; font-weight: 600; color: var(--ink-muted); letter-spacing: 0; }
.kpi-sub { font-size: 11px; color: var(--ink-muted); margin-top: auto; }
.kpi-sub.up { color: var(--success, #1F7A57); }
.kpi--accent { background: var(--coral-wash); border-color: transparent; }
.kpi-calc { font-size: 10px; color: var(--ink-muted); margin-top: auto; letter-spacing: -.04em; line-height: 1.35; }
.kpi-area { position: absolute; inset: auto 0 0 0; width: 100%; height: 56%; z-index: -1; }
.kpi-area path { fill: rgba(254, 111, 95, .16); transform-origin: bottom; transform: scaleY(0); transition: transform 1200ms var(--ease-standard) 200ms; }
.is-live .kpi-area path, .is-shown .kpi-area path { transform: none; }
.kpi--conic::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 0deg, rgba(254, 111, 95, .2) 0%, rgba(254, 111, 95, .07) calc(var(--p) * 1%), transparent calc(var(--p) * 1% + .1%)); --p: 0; transition: --p 1400ms var(--ease-standard) 300ms; }
.is-live .kpi--conic::before, .is-shown .kpi--conic::before { --p: 78; }
.dots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: auto; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); transform: scale(0); transition: transform 260ms var(--ease-standard); }
.dots i.hollow { background: none; box-shadow: inset 0 0 0 1.25px var(--hairline-strong); }
.is-live .dots i, .is-shown .dots i { transform: none; }

.chart { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 12px 14px 10px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.chart-head b { font-size: 13px; font-weight: 600; }
.chart-tip { font-size: 11px; background: var(--ink); color: var(--paper); border-radius: 6px; padding: 2px 7px; opacity: 0; transition: opacity 300ms 1500ms; }
.is-live .chart-tip, .is-shown .chart-tip { opacity: 1; }
.chart-svg { width: 100%; height: 130px; display: block; overflow: visible; }
.chart-svg .grid { stroke: var(--hairline); stroke-dasharray: 3 4; }
.chart-area { fill: rgba(254, 111, 95, .14); opacity: 0; transition: opacity 900ms 900ms; }
.chart-line { fill: none; stroke: var(--coral-deep); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1600ms var(--ease-standard); }
.chart-dot { fill: var(--ink); opacity: 0; transition: opacity 300ms 1500ms; }
.is-live .chart-area, .is-shown .chart-area { opacity: 1; }
.is-live .chart-line, .is-shown .chart-line { stroke-dashoffset: 0; }
.is-live .chart-dot, .is-shown .chart-dot { opacity: 1; }
.chart-axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-muted); padding-top: 4px; }

@container (max-width: 620px) {
  .win-body { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .win-nav { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .win-pill { display: none; }
  .chart-svg { height: 100px; }
}

/* ---------- Puljer ---------- */
.waves { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.wz { width: 100%; height: auto; display: block; background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; }
.wz-band { opacity: 0; transform-box: fill-box; transform-origin: bottom; transform: scaleY(.6); transition: opacity 500ms var(--ease-standard), transform 600ms var(--ease-standard); }
.wz-band.c0 { fill: rgba(254, 111, 95, .2); transition-delay: 0ms; }
.wz-band.c1 { fill: rgba(254, 111, 95, .12); transition-delay: 90ms; }
.wz-band.c2 { fill: rgba(26, 24, 21, .06); transition-delay: 180ms; }
.wz-band.c3 { fill: rgba(26, 24, 21, .035); transition-delay: 270ms; }
.wz-label { font-family: var(--font-data); font-size: 12px; fill: var(--ink); font-weight: 500; }
.wz-area { fill: rgba(254, 111, 95, .16); opacity: 0; transition: opacity 800ms 900ms; }
.wz-line { fill: none; stroke: var(--coral-deep); stroke-width: 2.25; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1500ms var(--ease-standard) 300ms; }
.wz-ticks text { font-family: var(--font-data); font-size: 11px; fill: var(--ink-muted); }
.is-live .wz-band, .is-shown .wz-band { opacity: 1; transform: none; }
.is-live .wz-area, .is-shown .wz-area { opacity: 1; }
.is-live .wz-line, .is-shown .wz-line { stroke-dashoffset: 0; }

.pens { display: flex; flex-direction: column; gap: 6px; }
.pen { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 10px 6px 6px; background: var(--paper-sunken); border-radius: 12px; }
.pen-code { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--hairline); font-weight: 500; }
.pen-body { position: relative; border-radius: 9px; overflow: hidden; padding: 5px 10px; min-height: 36px; display: flex; align-items: center; }
.pen-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(254, 111, 95, .18); transition: width 1100ms var(--ease-standard) 400ms; }
.pen.is-full .pen-fill { background: rgba(254, 111, 95, .34); }
.is-live .pen-fill, .is-shown .pen-fill { width: calc(var(--f) * 100%); }
.pen-text { position: relative; display: flex; gap: 10px; align-items: baseline; white-space: nowrap; }
.pen-text b { font-weight: 600; font-size: 13px; }
.pen-text small { font-size: 11px; color: var(--ink-muted); }
.pen-n { font-size: 12px; white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.pen-n em { font-style: normal; font-family: var(--font-small); font-size: 11px; display: inline-flex; align-items: center; gap: 5px; color: var(--danger, #B3362A); }
.pen-n em::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pen-n em.warn { color: var(--amber-text, #9A6A1B); }
.advice { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--coral-wash); opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease-standard) 1700ms, transform 500ms var(--ease-standard) 1700ms; }
.is-live .advice, .is-shown .advice { opacity: 1; transform: none; }
.advice-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--coral-deep); }
.advice-text { font-size: 12.5px; }
.advice-text b { font-weight: 600; }
.advice-btn { padding: 7px 13px; border-radius: 100px; background: var(--coral); font-weight: 600; font-size: 12px; white-space: nowrap; transition: transform 120ms var(--ease-standard), background 120ms; }

/* Del 2 av løkken: brukeren deler den fulle puljen (Del puljen → klippelinje → A1 + A2 → bekreftelse) */
.waves { position: relative; }
.advice-slot { display: grid; }
.advice-slot > * { grid-area: 1 / 1; }
.advice-btns { grid-column: 2; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.advice-ghost { padding: 6px 12px; border-radius: 100px; background: color-mix(in srgb, var(--paper-sunken) 60%, #fff); border: 1px solid var(--hairline); font-weight: 600; font-size: 12px; white-space: nowrap; }
.advice-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; white-space: nowrap; }
.split-toast { align-self: center; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--coral-wash); box-shadow: var(--shadow-float); opacity: 0; transform: translateY(10px); transition: opacity 450ms var(--ease-standard), transform 450ms var(--ease-standard); pointer-events: none; }
.advice-ico.is-ok { background: var(--success, #1F7A57); color: #fff; }
.advice-ico.is-ok .ico { stroke-width: 2.4; }
.w-cut .advice { opacity: 0 !important; transform: translateY(-6px) !important; transition-delay: 0ms !important; }
.w-done .split-toast { opacity: 1; transform: none; }
.w-press #split-btn { transform: scale(.93); background: var(--coral-deep); }

.cursor { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; fill: var(--ink); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 4px 6px rgba(26, 24, 21, .35)); opacity: 0; transform: translate(var(--sx, 600px), var(--sy, 520px)); transition: transform 950ms var(--ease-standard), opacity 300ms; }
.w-cursor .cursor { opacity: 1; transform: translate(var(--cx), var(--cy)); }
.w-press .cursor { transform: translate(var(--cx), var(--cy)) scale(.82); transition-duration: 120ms; }
.w-cut .cursor { opacity: 0; }

.band-split { opacity: 0; transition: opacity 350ms var(--ease-standard); }
.band-a1, .band-a2 { fill: rgba(254, 111, 95, .13); transform-box: fill-box; transition: transform 500ms var(--ease-standard); }
.band-a1 { transform: translateX(3px); }
.band-a2 { transform: translateX(-3px); }
.w-split .wz-band.band-a { opacity: 0; transition-delay: 0ms; }
.w-split .band-split { opacity: 1; }
.w-split .band-a1, .w-split .band-a2 { transform: none; }
.lbl-a, .lbl-split { transition: opacity 300ms; }
.lbl-split { opacity: 0; }
.w-split .lbl-a { opacity: 0; }
.w-split .lbl-split { opacity: 1; }
.cut { opacity: 0; transition: opacity 250ms; }
.cut-line { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 5 5; }
.cut-reveal { transform-box: fill-box; transform-origin: top; transform: scaleY(0); transition: transform 950ms cubic-bezier(.5, 0, .3, 1); }
.w-cut .cut { opacity: 1; }
.w-cut .cut-reveal { transform: none; }
.w-done .cut { opacity: 0; }
.cut-sc { opacity: 0; transform: translateY(0); transition: transform 950ms cubic-bezier(.5, 0, .3, 1), opacity 200ms; }
.cut-ico { fill: none; stroke: var(--coral-deep); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.w-cut .cut-sc { opacity: 1; transform: translateY(136px); }
.w-split .cut-sc { opacity: 0; }

.pen-n .v-before { display: inline-flex; gap: 8px; align-items: center; }
.pen-a .v-after { display: none; }
.w-split .pen-a .v-before { display: none; }
.w-split .pen-a .v-after { display: inline; }
.w-split .pen-a { --f: .5 !important; }
.w-split .pen-a .pen-fill { background: rgba(254, 111, 95, .18); transition-delay: 150ms; }
.pen-a2-wrap { max-height: 0; opacity: 0; margin-top: -6px; overflow: hidden; transition: max-height 500ms var(--ease-standard), opacity 400ms, margin-top 500ms var(--ease-standard); }
.w-split .pen-a2-wrap { max-height: 60px; opacity: 1; margin-top: 0; }
.pen-a2 .pen-fill { width: 0 !important; }
.w-split .pen-a2 .pen-fill { width: 50% !important; transition-delay: 350ms; }

@container (max-width: 520px) {
  .pen-text small { display: none; }
  .advice { grid-template-columns: 30px minmax(0, 1fr); }
  .advice-btn { grid-column: 2; justify-self: start; }
  .wz-label { font-size: 15px; }
  .wz-ticks text { font-size: 14px; }
}

/* ---------- Deltakerhub ---------- */
.hub { display: flex; flex-direction: column; }
.hub-hero { position: relative; height: 172px; padding: 0 18px 14px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--paper); background: center 40% / cover; flex: none; }
.hub-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 24, 21, .1), rgba(26, 24, 21, .75)); }
.hub-hero > * { position: relative; }
.hub-kicker { font-size: 11px; opacity: .85; }
.hub-hero b { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.hub-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.hub-name { font-weight: 600; font-size: 16px; }
.hub-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hub-facts span { display: flex; flex-direction: column; padding: 8px 10px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; }
.hub-facts small { font-size: 11px; color: var(--ink-muted); font-family: var(--font-small); }
.hub-facts b { font-size: 17px; font-weight: 500; }
.hub-qr { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; }
.qr-wrap { position: relative; width: 136px; height: 136px; overflow: hidden; }
.qr { width: 100%; height: 100%; }
.qr rect { fill: var(--ink); }
.qr-scan { position: absolute; left: -6px; right: -6px; top: 0; height: 2px; background: var(--coral); box-shadow: 0 0 12px 2px rgba(254, 111, 95, .6); animation: hub-scan 2.2s ease-in-out infinite alternate; }
.qr-renew { width: 136px; height: 3px; border-radius: 3px; background: var(--paper-sunken); overflow: hidden; }
.qr-renew span { display: block; height: 100%; background: var(--ink); animation: hub-renew 5s linear infinite; }
.qr-off { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-small); font-size: 11.5px; color: var(--ink-muted); }
.hub-checked { position: absolute; inset: 0; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--success-wash, #E7F2ED); color: var(--success, #1F7A57); text-align: center; opacity: 0; animation: hub-check 10s var(--ease-standard) infinite; }
.hub-checked-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--success, #1F7A57); color: #fff; display: grid; place-items: center; margin-bottom: 4px; }
.hub-checked-ico .ico { stroke-width: 2.4; }
.hub-checked b { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--ink); }
.hub-checked small { font-size: 12px; color: var(--ink-muted); }
.hub-msg { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--coral-wash); font-size: 13px; }
.hub-msg .ico { color: var(--coral-deep); }

@keyframes hub-scan { from { transform: translateY(0); } to { transform: translateY(134px); } }
@keyframes hub-renew { from { width: 100%; } to { width: 0; } }
@keyframes hub-check { 0%, 56% { opacity: 0; transform: scale(.96); } 60%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }

/* ---------- Grupper (kommer): gruppeportal + deltakerens telefon ---------- */
.story-steps { display: inline-flex; align-items: center; gap: 8px; }
.soon-badge { font-size: 11.5px; padding: 3px 10px; border-radius: 100px; background: var(--amber-wash, #FBF3E4); color: var(--amber-text, #9A6A1B); }
.win-head .soon-badge { font-size: 11px; padding: 2px 8px; }
.grp-screen { position: relative; width: 100%; max-width: 820px; display: grid; grid-template-columns: minmax(0, 1fr) 196px; gap: 18px; align-items: end; }
.grp-screen .win { max-width: none; }
.grp { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.grp-sub { font-size: 12.5px; color: var(--ink-muted); margin-top: -6px; }
.grp-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grp-card { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; min-width: 0; }
.grp-card > small { font-family: var(--font-small); font-size: 11.5px; color: var(--ink-muted); }
.grp-card > b { font-family: var(--font-data); font-weight: 500; font-size: 22px; letter-spacing: -.03em; line-height: 1.05; display: flex; align-items: baseline; gap: .25em; }
.grp-card > b small { font-family: var(--font-small); font-size: .5em; font-weight: 600; color: var(--ink-muted); letter-spacing: 0; }
.grp-card--accent { background: var(--coral-wash); border-color: transparent; }
.grp-mini { font-size: 11px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grp-pay { font-family: var(--font-ui) !important; font-size: 16px !important; font-weight: 600 !important; letter-spacing: 0 !important; align-items: center !important; }
.grp-pay .ico { color: var(--coral-deep); }
.grp-bar { height: 4px; border-radius: 4px; background: rgba(26, 24, 21, .08); overflow: hidden; margin-top: 4px; }
.grp-bar span { display: block; height: 100%; width: 66.67%; background: var(--coral-deep); border-radius: 4px; transition: width 700ms var(--ease-standard); }
.grp-list { display: flex; flex-direction: column; gap: 5px; }
.slot { display: grid; grid-template-columns: minmax(0, 1fr) 58px 128px; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--paper-sunken); font-size: 13px; transition: background 300ms, box-shadow 300ms, transform 300ms var(--ease-standard); }
.slot-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: grid; }
.slot-free .slot-name { font-weight: 500; color: var(--ink-muted); }
.slot-more { justify-content: center; display: flex; font-size: 11.5px; color: var(--ink-muted); background: none; padding: 2px 0 0; }
.dist { justify-self: start; display: inline-grid; font-size: 11.5px; padding: 2px 8px; border-radius: 100px; background: var(--surface); border: 1px solid var(--hairline); transition: background 300ms, border-color 300ms; }
.st { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-small); font-size: 12px; white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.st--ok { color: var(--success, #1F7A57); }
.st--warn { color: var(--amber-text, #9A6A1B); }
.st--mut { color: var(--ink-muted); }
.fee { font-style: normal; font-size: 10.5px; padding: 1px 6px; border-radius: 100px; background: var(--coral-wash); color: var(--coral-deep); opacity: 0; transform: scale(.6); transition: opacity 250ms, transform 300ms var(--ease-standard); }
.grp-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.grp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 100px; background: var(--coral); font-weight: 600; font-size: 12px; white-space: nowrap; transition: transform 120ms; }
.grp-btn.ghost { background: color-mix(in srgb, var(--paper-sunken) 60%, #fff); border: 1px solid var(--hairline); }

/* Bytt verdi før/etter */
.grp-screen .v-after { display: none; }
.g-move .grp-mini .v-before, .g-move .slot-move .v-before { display: none; }
.g-move .grp-mini .v-after, .g-move .slot-move .v-after { display: inline; }
.g-filled .grp-card--accent .v-before, .g-filled .slot-agency .v-before { display: none; }
.g-filled .grp-card--accent .v-after { display: inline; }
.g-filled .slot-agency .v-after { display: inline-flex; }
.g-filled .grp-bar span { width: 75%; }

/* 1: navnebytte uten gebyr */
.slot-name .old, .slot-name .new { grid-area: 1 / 1; }
.slot-name .old { transition: opacity 250ms, transform 300ms var(--ease-standard); }
.slot-name .new { clip-path: inset(0 100% 0 0); transition: clip-path 700ms steps(7) 200ms; }
.g-rename .slot-name .old { opacity: 0; transform: translateY(-8px); }
.g-rename .slot-name .new { clip-path: inset(0 0 0 0); }
.g-rename .fee { opacity: 1; transform: none; }
.g-rename:not(.g-move) .slot-rename,
.g-move:not(.g-invite) .slot-move,
.g-invite:not(.g-filled) .slot-agency,
.g-filled .slot-agency { background: var(--surface); box-shadow: 0 0 0 2px var(--coral-wash), var(--shadow-float); transform: translateX(4px); }
/* 2: flytt plass til annen distanse */
.g-move:not(.g-invite) .slot-move .dist { background: var(--coral-wash); border-color: var(--coral); }

/* 3: deltakeren fyller ut selv */
.mini-phone { width: 196px; height: 400px; border-radius: 34px; padding: 8px; background: #121110; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); transition: transform 400ms var(--ease-standard); }
.g-invite .mini-phone { transform: translateY(-8px) rotate(-1.5deg); }
.mp-screen { height: 100%; border-radius: 27px; background: var(--paper); padding: 30px 14px 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.mp-kick { font-size: 9.5px; color: var(--ink-muted); }
.mp-h { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.05; letter-spacing: -.01em; }
.mp-p { font-size: 11.5px; color: var(--ink-muted); line-height: 1.4; }
.mp-field { display: flex; flex-direction: column; padding: 7px 10px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--surface); }
.mp-field small { font-family: var(--font-small); font-size: 10px; color: var(--ink-muted); }
.mp-type { font-size: 12.5px; font-weight: 500; min-height: 1.4em; white-space: nowrap; clip-path: inset(0 100% 0 0); transition: clip-path 900ms steps(10); }
.mp-type.m2 { transition-delay: 1000ms; }
.g-type .mp-type { clip-path: inset(0 0 0 0); }
.mp-btn { margin-top: auto; display: grid; min-height: 38px; border-radius: 100px; background: var(--coral); font-size: 12.5px; font-weight: 600; transition: transform 120ms, background 300ms, color 300ms; }
.mp-a, .mp-b { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: opacity 250ms; }
.mp-b { opacity: 0; }
.g-press .mp-btn { transform: scale(.94); }
.g-filled .mp-btn { transform: none; background: var(--success, #1F7A57); color: #fff; }
.g-filled .mp-a { opacity: 0; }
.g-filled .mp-b { opacity: 1; }

@container (max-width: 520px) {
  .slot { grid-template-columns: minmax(0, 1fr) 52px 104px; padding: 8px 10px; }
  .fee { display: none; }
}

/* ---------- Mer i Sporta ---------- */
.morelist { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.morelist li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 100px; background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-float); font-size: 15px; font-weight: 500; }
.morelist .ico { color: var(--coral-deep); }

/* ---------- Demo ---------- */
.demo-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 100px; border: 1px solid rgba(250, 249, 246, .45); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; transition: background var(--motion-1), border-color var(--motion-1); }
.demo-pill:hover { background: rgba(250, 249, 246, .14); }
.topbar.is-solid .demo-pill { border-color: var(--hairline-strong); }
.topbar.is-solid .demo-pill:hover { background: var(--paper-sunken); }
.demo { padding: clamp(24px, 4vw, 48px) 0 0; }
.demo-card { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; background: var(--ink); color: var(--paper); min-height: 420px; display: flex; align-items: flex-end; padding: clamp(28px, 5vw, 64px); box-shadow: var(--shadow-lift); }
.demo-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; z-index: -2; }
.demo-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(26, 24, 21, .9) 0%, rgba(26, 24, 21, .62) 50%, rgba(26, 24, 21, .15) 100%); }
.demo-copy { display: flex; flex-direction: column; gap: 18px; max-width: 600px; }
.demo-lead { font-size: clamp(17px, 1.5vw, 19px); color: rgba(250, 249, 246, .88); max-width: 46ch; }
.demo-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.demo-btn { background: var(--coral); color: var(--ink); min-height: 48px; padding: 12px 24px; font-size: 16px; }
.demo-btn:hover { background: var(--coral-deep); }
.demo-fine { font-family: var(--font-small); font-size: 13px; color: rgba(250, 249, 246, .78); }
.demo + .gates { padding-top: clamp(64px, 8vw, 104px); }

/* ---------- Footer: fotokreditering og avsender ---------- */
.footer-credit { grid-column: 1 / -1; font-family: var(--font-small); font-size: 12.5px; color: var(--ink-muted); }
.footer-sender { grid-column: 1 / -1; border-top: 1px solid var(--hairline); padding-top: 16px; font-family: var(--font-small); font-size: 12.5px; line-height: 1.6; color: var(--ink-muted); }
.footer-sender a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* ---------- Redusert bevegelse: vis sluttbildet, ingen løkker ---------- */
@media (prefers-reduced-motion: reduce) {
  .screen *, .screen { animation: none !important; transition: none !important; }
  .ph-track { transform: translateX(-75%); opacity: 1; }
  .ph-progress span { width: 100%; }
  .ph-stamp { opacity: 1; }
  .qr-scan { display: none; }
  .qr-renew span { width: 60%; }
  .hub-checked { opacity: 0; }
  .kpi-area path, .wz-band { transform: none; opacity: 1; }
  .kpi--conic::before { --p: 78; }
  .dots i { transform: none; }
  .chart-area, .chart-dot, .chart-tip, .wz-area, .advice { opacity: 1; transform: none; }
  .chart-line, .wz-line { stroke-dashoffset: 0; }
  .pen-fill { width: calc(var(--f) * 100%); }
}

/* ---------- Responsivt ---------- */
@media (min-width: 1101px) {
  .hero-place { display: block; }
}
@media (max-width: 1100px) {
  .story, .story.story--wide, .story.story--wide.story--flip { grid-template-columns: minmax(0, 1fr); }
  .story--flip .story-copy { order: 0; }
}
@media (max-width: 560px) {
  .hero-scroll { display: none; }
  .demo-pill { display: none; }
  .grp-screen { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .mini-phone { justify-self: center; height: 372px; }
  .demo-card { min-height: 460px; border-radius: 22px; margin-inline: calc(var(--gutter) * -1 + 8px); }
  .demo-card::after { background: linear-gradient(180deg, rgba(26, 24, 21, .2) 0%, rgba(26, 24, 21, .9) 62%); }
  .story { gap: 28px; margin-bottom: 80px; }
  .stage--photo { border-radius: 22px; margin-inline: calc(var(--gutter) * -1 + 8px); }
  .phone { --pw: 272px; }
  .ph-panel { padding: 14px 16px 16px; gap: 8px; }
  #screen-signup > .ph-top { padding-top: 50px; }
  .qr-wrap { width: 120px; height: 120px; }
  .qr-renew { width: 120px; }
  .hub-hero { height: 150px; }
  @keyframes hub-scan { from { transform: translateY(0); } to { transform: translateY(118px); } }
  .morelist { justify-content: flex-start; }
  .morelist li { font-size: 14px; padding: 9px 14px; }
}
