/* Sidens egen "lit ground" (kittet har sand, sky, sage): en dyb skovgrøn, tydeligt lysere end den sorte side
   og et klart trin mørkere end de hvide produktvinduer – så side, flade og vindue aldrig er tre ens sorte lag. */
html[data-ground="forest"] { --ground-bg: #1b2a20; --ground-surface: #243a2c; --ground-ink: #eef3ee; --ground-muted: #a9b6ab; --ground-accent: #8fc29c; }

/* Pace Indblik – side-CSS til forsiden. Kun det, der ligger inde i en visual og som kittet ikke har:
   produktets vinduer (pi-win, pi-screen), kortenes UI-fragmenter og én --p-h pr. kortgruppe. */

/* ---------- logo i nav og footer ---------- */
.pi-logo { display: inline-flex; align-items: center; gap: 10px; }
.pi-logo svg { width: 22px; height: 22px; flex: none; }

/* ---------- fælles UI: et rigtigt vindue fra produktet ---------- */
.pi-ui { --pi-line: rgba(10, 10, 10, .1); --pi-soft: #f3f4f1; --pi-good: #1f6b3a; --pi-good-bg: #e3efe6; --pi-warn: #a3341d; --pi-warn-bg: #f7e6e1;
  font-family: var(--font-text); color: #0a0a0a; background: #fff; border: 1px solid var(--pi-line); border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 24px 48px -28px rgba(10, 10, 10, .35); overflow: hidden; text-align: left; }
.pi-ui b { font-weight: 500; }
.pi-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pi-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--pi-line); font-size: 13px; color: #6a6a6a; }
.pi-bar .pi-dots { display: inline-flex; gap: 6px; } .pi-bar .pi-dots i { width: 9px; height: 9px; border-radius: 50%; background: #dcdcd8; }
.pi-bar b { color: #0a0a0a; } .pi-bar .sp { flex: 1; }
.pi-live { display: inline-flex; align-items: center; gap: 6px; } .pi-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pi-good); }
.pi-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--pi-soft); color: #3a3a3a; white-space: nowrap; }
.pi-tag--good { background: var(--pi-good-bg); color: var(--pi-good); } .pi-tag--warn { background: var(--pi-warn-bg); color: var(--pi-warn); }

/* ---------- heroens vindue: dashboardet med de tre vigtigste råd ---------- */
.pi-win__body { display: grid; grid-template-columns: 188px 1fr; min-height: 300px; }
.pi-side { border-right: 1px solid var(--pi-line); padding: 14px 10px; display: grid; align-content: start; gap: 2px; font-size: 13px; }
.pi-side span { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 7px; color: #4a4a4a; }
.pi-side .on { color: #0a0a0a; font-weight: 500; box-shadow: inset 2px 0 0 #0a0a0a; border-radius: 0; }
.pi-side em { font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--pi-warn); }
.pi-main { padding: 18px 22px; display: grid; align-content: start; gap: 12px; }
.pi-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.pi-head h4 { margin: 0; font-size: 15px; font-weight: 500; }
.pi-head .pi-num { font-size: 26px; } .pi-head small { font-size: 13px; color: #6a6a6a; }
.pi-steps { display: grid; gap: 8px; }
.pi-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--pi-line); border-radius: 9px; font-size: 14px; }
.pi-row p { margin: 0; color: #4a4a4a; font-size: 13px; }
.pi-row .pi-num { font-size: 14px; }
.pi-acts { display: flex; gap: 8px; } .pi-acts span { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 6px; font-size: 13px; font-weight: 500; border: 1px solid var(--pi-line); }
.pi-acts span:first-child { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
@media (max-width: 639px) {
  .pi-win__body { grid-template-columns: 1fr; min-height: 0; }
  .pi-side, .pi-bar .pi-hide { display: none; }
  .pi-main { padding: 14px; }
  .pi-row { grid-template-columns: 1fr auto; } .pi-row > .pi-tag { display: none; }
}

/* ---------- prognosens skærm: Penge ind og ud, 16:10, står stille ---------- */
.pi-screen { position: relative; width: 100%; aspect-ratio: 16 / 10; display: grid; grid-template-rows: 40px 1fr; }
.pi-screen__body { display: grid; grid-template-columns: 20% 1fr; min-height: 0; }
.pi-screen .pi-main { padding: 3.2% 4%; gap: 4%; align-content: start; }
.pi-screen .pi-chart { height: clamp(140px, 17vw, 240px); }
@media (max-width: 639px) { .pi-screen .pi-chart { height: 180px; } }
.pi-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; }
.pi-kpi { border: 1px solid var(--pi-line); border-radius: 9px; padding: 10px 12px; display: grid; gap: 2px; }
.pi-kpi span { font-size: 12px; color: #6a6a6a; } .pi-kpi .pi-num { font-size: 20px; }
.pi-chart { position: relative; display: grid; grid-template-columns: repeat(9, 1fr); align-items: end; gap: 3%; min-height: 0; padding-top: 8px; border-bottom: 1px solid var(--pi-line); }
.pi-col { position: relative; height: 100%; }
.pi-col i { position: absolute; left: 14%; bottom: 22px; width: 72%; height: calc(var(--v) - 22px); min-height: 4px; border-radius: 4px 4px 0 0; background: #0a0a0a; }
.pi-col small { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; }
.pi-col.is-fc i { background: repeating-linear-gradient(135deg, var(--pi-good) 0 5px, #3d8a57 5px 10px); }
.pi-col small { font-size: 11px; color: #6a6a6a; }
.pi-legend { display: flex; gap: 16px; font-size: 12px; color: #6a6a6a; }
.pi-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: #0a0a0a; }
.pi-legend span + span::before { background: var(--pi-good); }

/* ---------- funktionskort: fire fragmenter, én højde ---------- */
#funktioner .panel { --p-h: 300px; }
@media (max-width: 639px) { #funktioner .panel { --p-h: 180px; } }
.pi-frag { width: 100%; }
.pi-frag .pi-bar { height: 36px; }
.pi-list { display: grid; }
.pi-list > div { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--pi-line); font-size: 14px; }
.pi-list > div:last-child { border-bottom: 0; }
.pi-list span { color: #6a6a6a; font-size: 13px; }
.pi-kf { padding: 16px; display: grid; gap: 10px; }
.pi-kf__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pi-kf__top .pi-num { font-size: 30px; }
.pi-kf p { margin: 0; font-size: 14px; line-height: 1.5; color: #3a3a3a; }
.pi-kf code { font-family: var(--font-mono); font-size: 12px; color: #6a6a6a; background: var(--pi-soft); padding: 6px 8px; border-radius: 6px; display: block; }
.pi-ranges { padding: 6px 16px 14px; display: grid; }
.pi-range { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--pi-line); font-size: 14px; }
.pi-range:last-child { border-bottom: 0; }
.pi-range__track { grid-column: 1 / -1; position: relative; height: 6px; border-radius: 99px; background: linear-gradient(90deg, #ecd9d3, #ececec 40%, #ececec 60%, #d5e7da); }
.pi-range__track i { position: absolute; top: 50%; left: var(--pos); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #0a0a0a; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(10,10,10,.2); }
.pi-range__track::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: rgba(10,10,10,.35); }
.pi-share { padding: 12px 16px; display: grid; gap: 10px; }
.pi-share > div { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.pi-share i { display: block; height: 10px; border-radius: 3px; background: #0a0a0a; width: var(--w); }
.pi-share > div:last-child i { background: #c9cdc5; }

/* ---------- data: tal og indstillingskortet ---------- */
#data .panel { --p-h: 420px; }
.pi-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) 24px; margin-top: var(--s-7); }
.pi-stats .t-small { margin: var(--s-2) 0 0; max-width: 26ch; }
.pi-data { padding: 18px; display: grid; gap: 12px; }
.pi-data__row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--pi-line); border-radius: 9px; font-size: 14px; }
.pi-data__row p { margin: 2px 0 0; font-size: 13px; color: #6a6a6a; }
.pi-data__btn { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 6px; font-size: 13px; font-weight: 500; border: 1px solid var(--pi-line); white-space: nowrap; }
.pi-data__btn--danger { color: var(--pi-warn); border-color: #e7c3b9; }
@media (max-width: 639px) { .pi-stats { gap: var(--s-6) 12px; margin-top: var(--s-6); } }

/* ---------- integrationer ---------- */
#integrationer .panel { --p-h: 440px; }
@media (max-width: 639px) { #integrationer .panel { --p-h: 340px; } }
.pi-steps-list { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: var(--s-4); counter-reset: s; }
.pi-steps-list li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: var(--s-3); font-size: 16px; line-height: 1.6; }
.pi-steps-list li::before { content: counter(s); font-family: var(--font-mono); font-size: 13px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); margin-top: 1px; }

/* ---------- branchetjek ---------- */
#branchetjek .panel { --p-h: 440px; }
@media (max-width: 639px) { #branchetjek .panel { --p-h: 330px; } }
.pi-check { display: flex; gap: var(--s-3); align-items: end; flex-wrap: wrap; margin-top: var(--s-6); }
.pi-check .field { flex: 1 1 220px; margin: 0; }
.pi-check .field input { font-family: var(--font-mono); letter-spacing: .04em; }
.pi-result__head { padding: 16px 16px 6px; display: grid; gap: 2px; }
.pi-result__head span { font-size: 13px; color: #6a6a6a; }

/* ---------- spørgsmål ---------- */
#faq .faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) 24px; }
@media (max-width: 1023px) { #faq .faq { grid-template-columns: 1fr; gap: var(--s-5); } }

/* ---------- rammer om produktets vinduer (data, branchetjek, integrationer) ---------- */
.pi-frame { --ratio: 78%; background: radial-gradient(120% 100% at 50% 0%, #1a2a1f 0%, #111410 70%); border-color: rgba(243, 242, 236, .07); align-self: start; }
.pi-frame--dg { --ratio: 64%; padding: var(--s-5); }
.pi-frame--dg > .dg { width: 100%; }
@media (max-width: 639px) { .pi-frame { --ratio: 112%; } .pi-frame--dg { --ratio: 72%; padding: var(--s-3); } }

/* heroens underlinje i blæk (brødtekst 7:1); kittets grå er til etiketter */
.hero--centred .hero__lead { color: color-mix(in oklab, var(--ink) 88%, var(--bg)); }

/* Web Interface Guidelines: balancerede overskrifter, ingen dobbelttryk-zoom-forsinkelse */
:is(h1, h2, h3) { text-wrap: balance; }
html { -webkit-tap-highlight-color: transparent; }
:is(a, button, input, label) { touch-action: manipulation; }

/* ---------- logo-lockup ---------- */
.lockup { display: inline-flex; align-items: center; gap: 10px; }
.lockup svg { flex: none; }
.lockup__name { font-family: var(--font-display); font-weight: 600; font-size: 0.82em; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
/* Mærket: lys mønt, grøn pil; luften rundt om pilen følger grunden (var(--bg)) */
.lockup { --logo-p: var(--ink); --logo-a: var(--accent); }

/* ---------- hero: risikolinjen under knapperne ---------- */
.pi-assure { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-5); margin: var(--s-2) 0 0; font-size: var(--t-small); color: var(--muted); }
.pi-assure span { display: inline-flex; align-items: center; gap: var(--s-2); }
.pi-assure span::before { content: ""; width: 14px; height: 14px; flex: none;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2 6 9.6l4.6-5' fill='none' stroke='%230b0c0a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; border-radius: 50%; }

/* ---------- prognose: det mørke bånd ---------- */
.pi-band { align-items: start; }
.pi-band h2 { margin-top: var(--s-3); max-width: 16ch; }
.pi-band__lead { margin-top: var(--s-5); color: var(--ink); max-width: 44ch; }
.pi-band__note { margin-top: var(--s-4); font-family: var(--font-mono); font-size: var(--t-small); color: var(--muted); }
.pi-band .link { display: inline-block; margin-top: var(--s-5); }
.pi-screenframe { background: #121310; border-color: rgba(248, 248, 248, .08); padding: clamp(16px, 2.4vw, 32px); align-self: start; }
.pi-screenframe .pi-ui { box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 40px 80px -40px rgba(0,0,0,.9); }
@media (max-width: 639px) {
  .pi-screen { aspect-ratio: 4 / 5; }
  .pi-screen__body { grid-template-columns: 1fr; }
  .pi-screen .pi-side { display: none; }
}

/* ---------- tagline ---------- */
#indblik .mo-wh__text { margin-top: var(--s-5); max-width: 24ch; font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(34px, 4.4vw, 64px); line-height: 1.08; letter-spacing: var(--display-tracking-xl); }
#indblik .mo-wh__text strong { font-weight: inherit; }

/* ---------- heroens vindue: silkefolder bag dashboardet, der står i let 3D-perspektiv ---------- */
/* Grundens farver til effekten (fx.js læser --fx-*): dybe skovgrønne folder i den sort-grønne side */
.hero--centred .hero__window.pi-stage {
  --ground-bg: #0f1a13; --ground-surface: #1f3a2a; --ground-ink: #e8efe9; --ground-accent: #8fc29c;
  --fx-bg: #0f1a13; --fx-surface: #1f3a2a; --fx-ink: #e8efe9; --fx-accent: #8fc29c;
  border: 1px solid rgba(243, 242, 236, .06); perspective: 1800px; perspective-origin: 50% -20%;
}
/* Dybden: vinduet hælder let bagover og står på lyset. Én indgang ved indlæsning (ikke ved scroll, ikke ved mus).
   Kun transform animeres – aldrig opacity – så vinduet er synligt, selv hvis browseren drosler animationen. */
.hero--centred .hero__window.pi-stage > .ly-piece {
  transform-origin: 50% 0; transform: translateX(-50%) rotateX(9deg);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 50px 120px -40px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.4);
  animation: pi-rise 1100ms cubic-bezier(.22, 1, .36, 1) 120ms both;
}
@keyframes pi-rise {
  from { transform: translateX(-50%) translateY(48px) rotateX(24deg) scale(.96); }
  to { transform: translateX(-50%) rotateX(9deg); }
}
@media (max-width: 639px) {
  .hero--centred .hero__window.pi-stage > .ly-piece { transform: rotateX(6deg); animation-name: pi-rise-sm; }
  @keyframes pi-rise-sm { from { transform: translateY(32px) rotateX(18deg); } to { transform: rotateX(6deg); } }
}
@media (prefers-reduced-motion: reduce) {
  .hero--centred .hero__window.pi-stage > .ly-piece { animation: none; }
}

/* =================================================================== Forside v3 (nov. 2026)
   Sektionerne følger deres indhold med én ensartet luft – ingen skærmhøje sektioner med tomrum. */
html[data-type] main > :is(section, .section):not(.hero), html[data-type] footer.closing {
  height: auto !important; min-height: 0 !important; padding-block: clamp(72px, 8vw, 112px) !important;
}
html[data-type] main > :is(section, .section):not(.hero) > .wrap, html[data-type] footer.closing > .wrap { height: auto !important; }
.pi-sec .t-label { color: var(--accent); }
.pi-sechead { display: grid; gap: var(--s-4); max-width: 760px; margin-bottom: var(--s-8); }
.pi-sechead h2 { margin: 0; }
.pi-sechead .t-lead { margin: 0; color: color-mix(in oklab, var(--ink) 80%, var(--bg)); }
.pi-sechead__more { margin: var(--s-6) 0 0; }
.pi-split { align-items: center; row-gap: var(--s-8); }
.pi-split h2 { margin-top: var(--s-3); }
.pi-mt { margin-top: var(--s-6); } .pi-mt-sm { margin-top: var(--s-4); }
.pi-dim { color: #6a6a6a; }
.ground-surface { border-block: 1px solid rgba(243, 242, 236, .05); }

/* ---------- hero: tre trin + svævende notifikationer ---------- */
.pi-flow { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-6); font-size: var(--t-small); color: color-mix(in oklab, var(--ink) 78%, var(--bg)); }
.pi-flow li { display: inline-flex; align-items: center; gap: var(--s-2); }
.pi-flow li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 500 12px/1 var(--font-mono); color: var(--bg); background: var(--accent); }
.pi-float { position: absolute; z-index: 3; display: flex; gap: 12px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 12px; min-width: 240px;
  background: rgba(20, 22, 18, .86); border: 1px solid rgba(243, 242, 236, .12); color: #f3f2ec; font-size: 13px;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.9);
  animation: pi-pop 700ms cubic-bezier(.22, 1, .36, 1) both; }
.pi-float b { display: block; font-weight: 500; font-size: 14px; }
.pi-float small { color: #a9b6ab; }
.pi-float__dot { width: 32px; height: 32px; border-radius: 9px; flex: none; background: rgba(143, 209, 158, .16); box-shadow: inset 0 0 0 1px rgba(143,209,158,.35); position: relative; }
.pi-float__dot::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #8fd19e; }
.pi-float__dot--warn { background: rgba(224, 140, 115, .16); box-shadow: inset 0 0 0 1px rgba(224,140,115,.35); }
.pi-float__dot--warn::after { background: #e08c73; }
.pi-float--a { left: clamp(12px, 4%, 64px); top: 46%; animation-delay: 900ms; }
.pi-float--b { right: clamp(12px, 4%, 64px); top: 22%; animation-delay: 1250ms; }
@keyframes pi-pop { from { transform: translateY(14px) scale(.96); } to { transform: none; } }
@media (max-width: 1023px) { .pi-float { display: none; } }
@media (prefers-reduced-motion: reduce) { .pi-float { animation: none; } }

/* ---------- før og efter ---------- */
.ba { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); gap: var(--s-4); align-items: stretch; }
.ba__pane { border-radius: 16px; padding: var(--s-5); display: grid; gap: var(--s-4); align-content: start; }
.ba__pane--ledger { background: #f1f0ea; color: #1b1c19; }
.ba__pane--pace { background: var(--ground-bg); border: 1px solid rgba(243,242,236,.08); }
.ba__head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.ba__pane--ledger .ba__head { color: #55574f; }
.ba__dot { width: 8px; height: 8px; border-radius: 50%; background: #b9bab4; }
.ba__dot--live { background: #8fd19e; box-shadow: 0 0 0 4px rgba(143,209,158,.18); }
.ba__ledger { font-family: var(--font-mono); font-size: 13px; border: 1px solid #dcdbd3; border-radius: 10px; overflow: hidden; background: #fff; }
.ba__lrow { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; padding: 10px 14px; border-top: 1px solid #ecebe5;
  transition: background-color 220ms cubic-bezier(.22,1,.36,1), color 220ms cubic-bezier(.22,1,.36,1), box-shadow 220ms cubic-bezier(.22,1,.36,1); }
.ba__lrow:first-child { border-top: 0; }
.ba__lrow span:nth-child(2) { font-family: var(--font-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ba__lrow--h { background: #f6f5f1; font-size: 11px; color: #6a6a6a; text-transform: uppercase; letter-spacing: .06em; }
.ba__num { text-align: right; font-variant-numeric: tabular-nums; }
.ba__lrow.is-lit { background: #e3f1e6; color: #0f3d22; box-shadow: inset 3px 0 0 #2f8a52; }
.ba__foot { margin: 0; font-size: 13px; color: #6a6a6a; }
.ba__arrow { display: grid; place-items: center; color: var(--accent); }
.ba__arrow svg { width: 40px; height: 40px; }
.ba__advice { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.ba__card { width: 100%; text-align: left; display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; cursor: pointer; font: inherit; color: var(--ink);
  background: rgba(10, 12, 10, .35); border: 1px solid rgba(243,242,236,.08);
  transition: background-color 200ms cubic-bezier(.22,1,.36,1), border-color 200ms cubic-bezier(.22,1,.36,1), transform 160ms cubic-bezier(.22,1,.36,1); }
.ba__card strong { font-weight: 500; font-size: 16px; }
.ba__text { font-size: 14px; color: color-mix(in oklab, var(--ink) 72%, transparent); line-height: 1.45; }
.ba__card.is-on { background: rgba(143,209,158,.1); border-color: rgba(143,209,158,.45); }
.ba__card:active { transform: scale(.98); }
.ba__card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ba__tag { justify-self: start; font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.ba__tag--warn { background: rgba(224,140,115,.16); color: #f0a892; }
.ba__tag--watch { background: rgba(217,181,106,.16); color: #e6c47e; }
.ba__tag--good { background: rgba(143,209,158,.16); color: #8fd19e; }
@media (max-width: 899px) { .ba { grid-template-columns: 1fr; } .ba__arrow { transform: rotate(90deg); height: 40px; } }

/* ---------- produkt-tour ---------- */
.tour { display: grid; gap: var(--s-6); }
.tour__tabs { display: flex; gap: 6px; padding: 6px; border-radius: 14px; background: rgba(10,12,10,.5); border: 1px solid rgba(243,242,236,.08); overflow-x: auto; scrollbar-width: none; justify-self: start; max-width: 100%; }
.tour__tabs::-webkit-scrollbar { display: none; }
.tour__tab { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 10px; border: 0; background: transparent; color: color-mix(in oklab, var(--ink) 70%, transparent);
  font: 500 15px/1 var(--font-text); cursor: pointer; white-space: nowrap; transition: background-color 180ms cubic-bezier(.22,1,.36,1), color 180ms cubic-bezier(.22,1,.36,1); }
.tour__n { font: 500 11px/1 var(--font-mono); color: color-mix(in oklab, var(--ink) 45%, transparent); }
.tour__tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tour__tab[aria-selected="true"] .tour__n { color: color-mix(in oklab, var(--bg) 55%, transparent); }
@media (hover: hover) and (pointer: fine) { .tour__tab:not([aria-selected="true"]):hover { background: rgba(243,242,236,.06); color: var(--ink); } }
.tour__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tour__body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-7); align-items: center; }
.tour__copy h3 { margin: 0 0 var(--s-3); font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.12; }
.tour__copy p { margin: 0; font-size: 17px; line-height: 1.55; color: color-mix(in oklab, var(--ink) 78%, transparent); max-width: 36ch; }
.tour__stage { border-radius: 18px; padding: clamp(16px, 3vw, 40px); background: radial-gradient(120% 120% at 70% 0%, #24402f 0%, #121612 70%); border: 1px solid rgba(243,242,236,.07); min-height: 420px; display: grid; align-items: center; }
.tour__panel { animation: tour-in 320ms cubic-bezier(.22,1,.36,1) both; }
@keyframes tour-in { from { transform: translateY(8px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .tour__panel { animation: none; } }
.pi-tourwin { width: 100%; }
.pi-tourwin .pi-main { padding: 18px 22px; display: grid; gap: 14px; }
.pi-tourwin .pi-chart { height: 220px; }
.pi-tourlist { padding: 14px; display: grid; gap: 8px; }
.pi-tourlist .pi-row { grid-template-columns: auto 1fr; }
.pi-tourlist .pi-row > span:last-child { display: none; }
@media (max-width: 899px) { .tour__body { grid-template-columns: 1fr; gap: var(--s-5); } .tour__stage { min-height: 0; } }

/* ---------- beregner ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); }
.calc__inputs, .calc__out { border-radius: 16px; padding: clamp(20px, 3vw, 36px); background: var(--ground-bg); border: 1px solid rgba(243,242,236,.08); display: grid; gap: var(--s-6); align-content: start; }
.calc__field { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: baseline; font-size: 15px; }
.calc__val { font: 500 18px/1 var(--font-mono); color: var(--ink); }
.calc__field input { grid-column: 1 / -1; width: 100%; accent-color: #8fd19e; height: 28px; cursor: pointer; }
.calc__field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.calc__out { background: #f1f0ea; color: #1b1c19; }
.calc__res { display: grid; gap: 6px; }
.calc__res span { font-size: 14px; color: #55574f; }
.calc__res small { font-size: 13px; color: #6a6a6a; }
.calc__big { font: 500 clamp(36px, 4.4vw, 56px)/1 var(--font-display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.calc__big--good { color: #1f6b3a; }
.calc__cta { justify-self: start; }
.calc__out .btn--primary { --action: #1f6b3a; --action-ink: #fff; }
@media (max-width: 899px) { .calc { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .pi-sechead { margin-bottom: var(--s-6); } }

/* =================================================================== Det ægte produkt (nov. 2026)
   Hero og tour viser portalen selv (/demo med eksempeldata) i en glasramme med lys bag. */
.pi-grad { background: linear-gradient(180deg, #ffffff 0%, #ffffff 40%, #b9c7bb 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.pi-shot { position: relative; width: 100%; overflow: hidden; background: #f6f5f1; }
.pi-shot iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: #f6f5f1; }

.pi-device { border-radius: 14px; overflow: hidden; background: #f6f5f1;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 0 0 9px rgba(20, 24, 20, .72), 0 0 0 10px rgba(255,255,255,.07),
    0 60px 140px -40px rgba(0,0,0,.95), 0 0 120px -20px rgba(143, 209, 158, .35); }
.pi-device__bar { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 14px; background: #111410; color: #9aa59c; font-size: 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.pi-device__bar .pi-dots i { background: #2b302b; }
.pi-device__url { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 12px; color: #7f8a81; }
.pi-device__bar .pi-live { color: #8fd19e; }
.pi-device__bar .pi-live::before { background: #8fd19e; box-shadow: 0 0 10px #8fd19e; }

/* heroen: det ægte dashboard, bredere, med grønt lys under */
.hero--centred .hero__window.pi-stage { overflow: hidden; }
.hero--centred .hero__window.pi-stage::before { content: ""; position: absolute; left: 50%; top: 18%; width: 70%; height: 80%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(143, 209, 158, .45), transparent); filter: blur(40px); z-index: 0; pointer-events: none; }
.hero--centred .hero__window.pi-stage > .ly-piece.pi-device { width: min(1100px, calc(100% - 2 * var(--s-6))); }
@media (max-width: 639px) { .hero--centred .hero__window.pi-stage > .ly-piece.pi-device { width: calc(100% - 2 * var(--s-4)); } .pi-device__url { display: none; } }

/* touren: hver fane er en rigtig portalside */
.tour__stage { min-height: 0; padding: clamp(14px, 2.4vw, 32px); }
.tour__stage .pi-shot { border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 40px 90px -40px rgba(0,0,0,.9), 0 0 80px -30px rgba(143,209,158,.4); }
.tour__body { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
@media (max-width: 899px) { .tour__body { grid-template-columns: 1fr; } }

/* Heroen må være højere end én skærm, så dashboardet kan ses ordentligt */
html[data-type] main > section.hero.hero--centred { height: auto !important; min-height: 0 !important; padding-bottom: 0 !important; }
.hero--centred .hero__window.pi-stage { flex: none; height: clamp(440px, 50vw, 720px); margin-top: var(--s-8); -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
@media (max-width: 639px) { .hero--centred .hero__window.pi-stage { height: 290px; margin-top: var(--s-6); } }

/* =================================================================== Lys udgave (nov. 2026)
   Råhvid grund, mint-flader og grønne glød-gradienter. Produktet vises som video i en mørk laptop-ramme. */
html[data-ground="mint"] { --ground-bg: #dfeee3; --ground-surface: #ecf5ee; --ground-ink: #0f1a13; --ground-muted: #46534a; --ground-accent: #1f6b3a; }
.ground-surface { background: #eef4ef; border-block: 1px solid rgba(15, 26, 19, .06); }

/* hero: bløde gradienter i mint, lime og himmel */
html[data-type] main > section.hero.hero--centred {
  background:
    radial-gradient(60% 50% at 12% 8%, rgba(143, 209, 158, .45), transparent 70%),
    radial-gradient(50% 45% at 88% 14%, rgba(200, 230, 150, .40), transparent 70%),
    radial-gradient(70% 60% at 50% 100%, rgba(160, 205, 235, .30), transparent 70%),
    #f7f8f4;
}
.pi-grad { background: linear-gradient(180deg, #0f1a13 0%, #0f1a13 45%, #2f6b46 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill { background: rgba(255, 255, 255, .7); border-color: rgba(15, 26, 19, .1); }
.pi-flow li span { color: #fff; }
.hero--centred .hero__window.pi-stage {
  --ground-bg: #e3efe6; --ground-surface: #d2e7d8; --ground-ink: #0f1a13; --ground-accent: #1f6b3a;
  --fx-bg: #e7f1e9; --fx-surface: #cfe6d5; --fx-ink: #0f1a13; --fx-accent: #1f6b3a;
  border: 1px solid rgba(15, 26, 19, .06); background: rgba(255, 255, 255, .35);
}
.hero--centred .hero__window.pi-stage::before { background: radial-gradient(closest-side, rgba(31, 107, 58, .28), transparent); }
.pi-device { box-shadow: 0 0 0 1px rgba(15,26,19,.2), 0 0 0 9px #1b231e, 0 0 0 10px rgba(15,26,19,.25),
  0 50px 120px -40px rgba(15, 26, 19, .55), 0 0 90px -20px rgba(31, 107, 58, .35); }

/* videoen */
.pi-video { position: relative; background: #f6f5f1; }
.pi-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 0 0; }
.pi-video__btn { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255,255,255,.25); background: rgba(15, 26, 19, .72); color: #fff; transition: transform 160ms cubic-bezier(.22,1,.36,1), background-color 160ms; }
.pi-video__btn svg { width: 16px; height: 16px; }
.pi-video__btn:active { transform: scale(.94); }
.pi-video__btn:focus-visible { outline: 2px solid #8fd19e; outline-offset: 2px; }

/* svævende notifikationer: hvide glaskort */
.pi-float { background: rgba(255, 255, 255, .92); color: #0f1a13; border-color: rgba(15, 26, 19, .08); box-shadow: 0 24px 60px -24px rgba(15, 26, 19, .45); }
.pi-float small { color: #56615a; }
.pi-float__dot { background: rgba(31, 107, 58, .1); box-shadow: inset 0 0 0 1px rgba(31,107,58,.3); }
.pi-float__dot::after { background: #2f8a52; }
.pi-float__dot--warn { background: rgba(196, 82, 52, .1); box-shadow: inset 0 0 0 1px rgba(196,82,52,.3); }
.pi-float__dot--warn::after { background: #c45234; }

/* før og efter */
.ba__pane--ledger { background: #ffffff; border: 1px solid rgba(15, 26, 19, .08); box-shadow: 0 20px 50px -30px rgba(15,26,19,.25); }
.ba__pane--pace { background: linear-gradient(160deg, #e4f2e8, #d6ebdd); border: 1px solid rgba(31, 107, 58, .15); }
.ba__card { background: #ffffff; border-color: rgba(15, 26, 19, .08); box-shadow: 0 8px 24px -18px rgba(15,26,19,.35); }
.ba__card.is-on { background: #ffffff; border-color: #2f8a52; box-shadow: 0 0 0 3px rgba(47, 138, 82, .18), 0 14px 30px -18px rgba(15,26,19,.4); }
.ba__text { color: #46534a; }
.ba__tag--warn { background: #fbe9e3; color: #9e3b22; }
.ba__tag--watch { background: #f7efd9; color: #7a5612; }
.ba__tag--good { background: #e1f2e6; color: #1f6b3a; }
.ba__dot--live { background: #2f8a52; box-shadow: 0 0 0 4px rgba(47,138,82,.15); }

/* produkt-tour: rigtige skærmbilleder af portalen */
.tour__tabs { background: #ffffff; border-color: rgba(15, 26, 19, .08); box-shadow: 0 10px 30px -22px rgba(15,26,19,.35); }
.tour__tab { color: #46534a; }
.tour__n { color: #8a958c; }
@media (hover: hover) and (pointer: fine) { .tour__tab:not([aria-selected="true"]):hover { background: #eef4ef; color: #0f1a13; } }
.tour__copy p { color: #46534a; }
.tour__stage { background: radial-gradient(120% 120% at 70% 0%, #d6ecdc 0%, #eef4ef 70%); border-color: rgba(15, 26, 19, .06); }
.pi-still { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px rgba(15,26,19,.1), 0 40px 80px -40px rgba(15,26,19,.45); }

/* beregner */
.calc__inputs { background: #ffffff; border-color: rgba(15, 26, 19, .08); box-shadow: 0 20px 50px -30px rgba(15,26,19,.25); }
.calc__field input { accent-color: #1f6b3a; }
.calc__out { background: linear-gradient(160deg, #e4f2e8, #d3e9da); border-color: rgba(31, 107, 58, .15); }

/* rammer om diagram, branchetjek og data */
.pi-frame { background: radial-gradient(120% 100% at 50% 0%, #d9ecdf 0%, #eef4ef 70%); border-color: rgba(15, 26, 19, .06); }
.pi-sechead .t-lead { color: #46534a; }
/* logoet på lys bund: skovgrøn mønt, lysere grøn pil */
.lockup { --logo-p: #1f6b3a; --logo-a: #3faa5c; }
