/* Comal Software — v2. Self-contained, no build step. */

@font-face { font-family: "Newsreader"; src: url("fonts/newsreader.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-italic.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-italic.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --paper: #f3efe7;
  --paper-elevated: #faf8f4;
  --paper-deep: #ebe5d9;
  --ink: #1a1d1a;
  --ink-muted: #4f564f;
  --ink-faint: #6b726b;
  --line: #d6d0c4;
  --line-strong: #c3bdb0;
  --pine: #2a4538;
  --pine-hover: #1d3329;
  --pine-deep: #18291f;
  --pine-mid: #3d6150;
  --pine-soft: #e4eee8;
  --wheat: #f4e7c2;
  --wheat-line: #e0c97a;
  --ochre: #c49a3a;
  --rust: #b5562f;
  --radius: 4px;
  --radius-lg: 22px;
  --header-h: 4.25rem;
  --wide: 72rem;
  --space: clamp(4rem, 9vw, 7rem);
  --shadow: 0 1px 2px rgba(26, 29, 26, .05), 0 12px 32px -12px rgba(26, 29, 26, .18);
  --shadow-lg: 0 2px 4px rgba(26, 29, 26, .05), 0 30px 60px -24px rgba(24, 41, 31, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-serif: "Newsreader", "Source Serif Pro", "Iowan Old Style", Georgia, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + .75rem); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--pine-hover); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; }

h1, h2, h3 { text-wrap: balance; }
h1, h2, h3, .wordmark {
  font-family: var(--font-serif);
  font-weight: 550;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); font-weight: 500; margin: 0 0 1.4rem; letter-spacing: -.035em; line-height: 1.06; }
h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); margin: 0 0 1rem; }
h3 { font-size: 1.3rem; margin: 0 0 .6rem; }
h1 em, h2 em { font-style: italic; color: var(--pine); font-weight: 450; }
p { margin: 0 0 1rem; }

.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 100; background: var(--pine); color: #fff; padding: .5rem .9rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

.wrap { width: min(calc(100% - 3rem), var(--wide)); margin-inline: auto; }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pine-mid); margin: 0 0 1.1rem; display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--ochre); border-radius: 2px; }

/* Scroll progress */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--ochre), var(--pine)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.35); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.55rem; text-decoration: none; color: var(--ink); }
.wordmark:hover { color: var(--pine); }
.mark { width: 30px; height: 30px; transition: transform .5s var(--ease); }
.mark rect { fill: var(--pine); }
.mark path { stroke: var(--paper); }
.mark circle { fill: var(--wheat-line); }
.wordmark:hover .mark { transform: rotate(-12deg); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.6rem; }
.site-nav a { position: relative; font-size: 1rem; font-weight: 600; color: var(--ink-muted); text-decoration: none; padding: .3rem 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--pine); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a[href="#kontakt"] { color: var(--paper); background: var(--pine); padding: .45rem 1.05rem; border-radius: 999px; }
.site-nav a[href="#kontakt"]::after { display: none; }
.site-nav a[href="#kontakt"]:hover { background: var(--pine-hover); color: #fff; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.1rem; padding: .7rem 1.5rem; border-radius: 999px;
  font: 600 1.02rem/1.2 var(--font-sans); text-decoration: none; border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .25s var(--ease), box-shadow .25s;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--pine); color: var(--paper); box-shadow: 0 10px 24px -12px rgba(42,69,56,.7); }
.button-primary:hover { background: var(--pine-hover); color: #fff; box-shadow: 0 14px 28px -12px rgba(42,69,56,.8); }
.button-secondary { color: var(--pine); border-color: var(--line-strong); background: transparent; }
.button-secondary:hover { border-color: var(--pine); color: var(--pine-hover); background: var(--paper-elevated); }
.arrow { display: inline-block; transition: transform .3s var(--ease); }
.button:hover .arrow { transform: translate(2px, 2px); }

/* Hero */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1rem, 3vw, 2rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 60rem; height: 60rem; right: -22rem; top: -26rem; z-index: -1;
  background: radial-gradient(closest-side, rgba(224, 201, 122, .35), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.lead { font-size: 1.24rem; color: var(--ink-muted); max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-art { margin: 0; position: relative; }
.hero-card {
  position: relative; border-radius: 28px; background: var(--paper-elevated);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 1rem;
  transition: transform .4s var(--ease);
}
.hero-card::before { /* decorative backdrop */
  content: ""; position: absolute; inset: 14% -6% -7% 10%; z-index: -1; border-radius: 30px;
  background: var(--pine); transform: rotate(3deg);
}
.flow { width: 100%; height: auto; display: block; }
.flow .chip rect { fill: #fff; stroke: var(--line-strong); }
.flow .chip .ic { fill: none; stroke: var(--ink-muted); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.flow .lbl { font: 600 13px var(--font-sans); fill: var(--ink-faint); letter-spacing: .02em; }
.flow .lbl-strong { font: italic 500 18px var(--font-serif); fill: var(--pine); }
.flow .tangle path { animation: dash 2.4s linear infinite; }
.flow .hub-core { fill: var(--pine); }
.flow .hub-ring { fill: none; stroke: var(--wheat-line); stroke-width: 2; }
.flow .hub-pulse { fill: var(--wheat-line); opacity: .5; transform-origin: center; transform-box: fill-box; animation: pulse 2.6s var(--ease) infinite; }
.flow .clean { stroke: var(--line); stroke-width: 6; stroke-linecap: round; }
.flow .clean-draw { stroke: var(--pine); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 3.2s var(--ease) infinite; }
.flow .node circle { fill: #fff; stroke: var(--pine); stroke-width: 2.5; }
.flow .node path { fill: none; stroke: var(--pine); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.flow .node { animation: pop 3.2s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
.flow .n2 { animation-delay: .35s; } .flow .n3 { animation-delay: .7s; }
.flow .runner { fill: var(--ochre); }
.flow .inputs .chip { animation: bob 5s ease-in-out infinite; }
.flow .tangle path:nth-child(even) { animation-duration: 3.1s; }
.flow .inputs > g:nth-child(2) .chip { animation-delay: -1.2s; } .flow .inputs > g:nth-child(3) .chip { animation-delay: -2.4s; } .flow .inputs > g:nth-child(4) .chip { animation-delay: -3.6s; }

.float {
  position: absolute; display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5rem .95rem;
  font-size: .9rem; font-weight: 600; color: var(--ink-muted); box-shadow: var(--shadow);
  transition: transform .3s var(--ease); white-space: nowrap;
}
.float-a { left: -1.4rem; bottom: -1.1rem; }
.float-b { right: -1rem; top: 1.6rem; }
.dot { width: .62rem; height: .62rem; border-radius: 50%; display: inline-block; flex: none; }
.dot-x { background: var(--rust); box-shadow: 0 0 0 4px rgba(181, 86, 47, .15); }
.dot-ok { background: var(--pine-mid); box-shadow: 0 0 0 4px rgba(61, 97, 80, .18); }

@keyframes dash { to { stroke-dashoffset: -22; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
@keyframes draw { 0% { stroke-dashoffset: 200; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -200; } }
@keyframes pop { 0%, 20% { transform: scale(.85); } 32% { transform: scale(1.12); } 42%, 100% { transform: scale(1); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Principles strip */
.principles { list-style: none; padding: 0; margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.principles li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem 1.4rem; border-radius: var(--radius-lg); background: var(--paper-elevated); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.principles li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.principles svg { flex: none; width: 3rem; height: 3rem; padding: .55rem; border-radius: 50%; background: var(--pine); fill: none; stroke: var(--paper); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.p-title { font: 600 1.15rem/1.25 var(--font-serif); margin: .1rem 0 .3rem; color: var(--ink); }
.principles p:not(.p-title) { margin: 0; font-size: 1rem; color: var(--ink-muted); line-height: 1.5; }

/* Sections */
.section { padding: var(--space) 0; position: relative; }
.section-tint { background: var(--paper-deep); }
.section-intro { max-width: 40rem; margin-bottom: 2.5rem; }
.section-intro p:not(.eyebrow) { color: var(--ink-muted); font-size: 1.15rem; }

.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.split .section-intro { margin-bottom: 0; }

.photo { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo:hover img { transform: scale(1.04); }
.photo-tag {
  position: absolute; left: 1rem; bottom: 1rem; background: rgba(250, 248, 244, .94);
  border-radius: 999px; padding: .45rem 1rem; font-size: .9rem; font-weight: 600; color: var(--pine);
  box-shadow: var(--shadow);
}

/* Method — interactive process */
.method { background: var(--paper-elevated); border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.25rem, 3vw, 2.5rem); box-shadow: var(--shadow); }
.method-tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.method-rail { position: absolute; left: calc(16.66% ); right: calc(16.66%); top: 1.5rem; height: 3px; background: var(--line); border-radius: 3px; z-index: 0; }
.method-rail-fill { display: block; height: 100%; width: 100%; background: var(--pine); border-radius: 3px; transform-origin: 0 50%; transform: scaleX(var(--fill, 0)); transition: transform .6s var(--ease); }
.method-tab {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .7rem; text-align: center;
  background: none; border: 0; padding: 0 .5rem .25rem; cursor: pointer; font: inherit; color: var(--ink-muted);
}
.method-dot {
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  font: 600 .95rem var(--font-sans); letter-spacing: .04em; background: var(--paper-elevated); color: var(--ink-faint);
  border: 2px solid var(--line-strong); transition: all .35s var(--ease);
}
.method-tab-title { font: 550 1.08rem/1.25 var(--font-serif); max-width: 14rem; transition: color .3s; }
.method-tab:hover .method-dot { border-color: var(--pine); color: var(--pine); transform: scale(1.06); }
.method-tab[aria-selected="true"] .method-dot { background: var(--pine); border-color: var(--pine); color: var(--paper); transform: scale(1.12); box-shadow: 0 0 0 7px var(--pine-soft); }
.method-tab[aria-selected="true"] .method-tab-title { color: var(--ink); }
.method-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; background: var(--paper); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2.25rem); }
.js .method-panel[hidden] { display: none; }
.js .method-panel.is-entering { animation: panelIn .5s var(--ease); }
.method-copy p { color: var(--ink-muted); margin: 0; }
.step-num { display: inline-block; font: italic 500 2.6rem/1 var(--font-serif); color: var(--ochre); margin-bottom: .5rem; }
.no-js-only { display: none; }
html:not(.js) .method-tabs { display: none; }
html:not(.js) .method-panels { display: grid; gap: 1rem; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.method-art { width: 100%; height: auto; max-height: 240px; }
.method-art .sk rect { stroke: var(--pine); stroke-width: 2; fill: #fff; }
.method-art .loop { stroke: var(--pine); stroke-width: 2; stroke-dasharray: 6 6; fill: none; animation: dash 1.8s linear infinite; }
.method-art .loop.warn { stroke: var(--rust); }
.method-art .warn-dot circle { fill: var(--rust); }
.method-art .warn-dot text { fill: #fff; font: 700 13px var(--font-sans); }
.method-art .warn-dot { animation: bob 2.4s ease-in-out infinite; }
.method-art .people circle, .method-art .people path { fill: none; stroke: var(--pine); stroke-width: 2.4; stroke-linecap: round; }
.method-art .board { fill: var(--wheat); stroke: var(--wheat-line); stroke-width: 2; }
.method-art .pencil { stroke: var(--ochre); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 44; animation: scribble 2.4s var(--ease) infinite; }
.method-art .lbl { font: italic 500 15px var(--font-serif); fill: var(--pine); }
.method-art .track { stroke: var(--line-strong); stroke-width: 4; stroke-linecap: round; }
.method-art .okn circle { fill: var(--pine); }
.method-art .okn path { fill: none; stroke: var(--paper); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.method-art .gear circle:first-child { fill: none; stroke: var(--ochre); stroke-width: 6; stroke-dasharray: 5 4; transform-box: fill-box; transform-origin: center; animation: spin 6s linear infinite; }
.method-art .gear-hole { fill: var(--ochre); }
.method-art .runner { fill: var(--ochre); }
@keyframes scribble { 0% { stroke-dashoffset: 44; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Before / after */
.beforeafter { margin-top: clamp(3rem, 6vw, 4.5rem); }
.ba-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; margin-bottom: 1.25rem; }
.ba-head h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 0; }
.ba-hint { margin: 0; font-size: .95rem; color: var(--ink-faint); max-width: 28rem; }
.ba-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.25rem; align-items: center; }
.ba-col { border-radius: var(--radius-lg); padding: 1.5rem; height: 100%; }
.ba-before { background: #fff; border: 1px dashed var(--line-strong); }
.ba-after { background: var(--pine); color: var(--paper); }
.ba-label { display: flex; align-items: center; gap: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: 1rem; }
.ba-after .ba-label { color: var(--wheat); }
.ba-col ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; counter-reset: s; }
.ba-col li { counter-increment: s; display: flex; gap: .75rem; align-items: center; padding: .65rem .9rem; border-radius: 12px; font-size: 1rem; line-height: 1.35; transition: background .25s, color .25s, transform .3s var(--ease), opacity .25s, box-shadow .25s; }
.ba-col li::before { content: counter(s); flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.ba-before li { background: var(--paper); color: var(--ink-muted); }
.ba-before li::before { background: var(--line); color: var(--ink-muted); }
.ba-after li { background: rgba(255,255,255,.08); cursor: default; }
.ba-after li::before { background: var(--wheat-line); color: var(--pine-deep); }
.ba-after li:hover, .ba-after li:focus-visible, .ba-after li.is-on { background: rgba(255,255,255,.16); transform: translateX(4px); outline-color: var(--wheat); }
.ba-grid.is-linking .ba-before li { opacity: .45; }
.ba-grid.is-linking .ba-before li.is-hit { opacity: 1; background: #fbeee8; color: var(--rust); box-shadow: inset 0 0 0 1.5px rgba(181,86,47,.5); text-decoration: line-through; text-decoration-color: rgba(181,86,47,.6); }
.ba-arrow svg { width: 4.5rem; fill: none; stroke: var(--pine); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; animation: nudge 2.4s ease-in-out infinite; }
.ba-note { margin: 1rem 0 0; font-size: .92rem; color: var(--ink-faint); font-style: italic; }
@keyframes nudge { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
.ba-sum { margin: 1.1rem 0 0; font: italic 500 1.15rem/1.35 var(--font-serif); color: var(--wheat); }
.ba-col { display: flex; flex-direction: column; }
.ba-sum { margin-top: auto; padding-top: 1.1rem; }

/* Pitfalls */
.pitfalls { margin-top: clamp(3rem, 6vw, 4.5rem); padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius-lg); background: var(--wheat); border: 1px solid var(--wheat-line); }
.pitfalls h3 { margin-bottom: 1.1rem; }
.pitfalls ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 2rem; }
.pitfalls li { position: relative; padding-left: 2.1rem; color: #3f3a2a; line-height: 1.5; }
.pitfalls li::before {
  content: "✕"; position: absolute; left: 0; top: .05rem; width: 1.45rem; height: 1.45rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: var(--paper); background: var(--rust);
}

/* Products — qshare-inspireret kortgitter med farvet billedflade øverst */
.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.product { display: flex; flex-direction: column; background: var(--paper-elevated); border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s; }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; }
.product-visual { position: relative; min-height: 280px; overflow: hidden; display: grid; place-items: center; perspective: 900px; }
.product-visual > * { transition: transform .5s var(--ease); }
.product-body { padding: 1.75rem 1.75rem 2rem; display: flex; flex-direction: column; }
.product-feature .product-body { justify-content: center; padding: 2.5rem; }
.product-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: .75rem; }
.product h3 { font-size: 1.7rem; margin: 0; }
.product p { color: var(--ink-muted); }
.product .note { font-size: .95rem; color: var(--ink-faint); margin-top: auto; margin-bottom: 0; padding-top: .5rem; }
.status { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .32rem .75rem; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.status-test { background: var(--pine-soft); color: var(--pine); }
.status-test::before { animation: blink 1.8s ease-in-out infinite; }
.status-dev { background: #f1ead8; color: #6a5428; }
.status-soon { background: #ebe8e2; color: #54524c; }
@keyframes blink { 50% { opacity: .25; } }
.feature-tags { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.feature-tags li { font-size: .9rem; font-weight: 600; color: var(--pine); border: 1px solid var(--line-strong); border-radius: 999px; padding: .25rem .8rem; }

/* Teero visual */
.visual-teero { background: radial-gradient(120% 90% at 20% 0%, var(--pine-mid), var(--pine-deep)); min-height: 380px; padding: 2.5rem 2rem; }
.visual-teero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; }
.device { position: relative; }
.laptop { width: min(100%, 470px); }
.laptop .screen { background: #fbfaf7; border: 10px solid #101a14; border-radius: 14px 14px 4px 4px; padding: .7rem; aspect-ratio: 16 / 10; display: flex; flex-direction: column; gap: .55rem; font-size: 11px; }
.laptop .base { height: 12px; margin: 0 -7%; background: linear-gradient(#cfd6d1, #9fa9a2); border-radius: 0 0 14px 14px; }
.app-bar { display: flex; align-items: center; gap: .5rem; }
.app-logo { font: italic 600 15px var(--font-serif); color: var(--pine); margin-right: auto; }
.app-pill { background: var(--pine-soft); color: var(--pine); border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.app-door { display: inline-flex; align-items: center; gap: 4px; color: var(--pine); font-weight: 700; }
.app-door i { width: 7px; height: 7px; border-radius: 50%; background: #4caf7a; animation: blink 1.6s infinite; }
.cal { flex: 1; display: grid; grid-template-columns: 22px repeat(4, 1fr); gap: 5px; }
.cal-times { display: grid; grid-template-rows: 16px repeat(5, 1fr); color: #8a918b; font-weight: 600; }
.cal-times span:nth-child(1) { grid-row: 2; } .cal-times span:nth-child(2) { grid-row: 3; } .cal-times span:nth-child(3) { grid-row: 4; } .cal-times span:nth-child(4) { grid-row: 5; } .cal-times span:nth-child(5) { grid-row: 6; }
.cal-times span { line-height: 1; }
.cal-col { position: relative; display: grid; grid-template-rows: 16px repeat(5, 1fr); background: repeating-linear-gradient(#fff 0 calc(20% - 1px), #eee9df calc(20% - 1px) 20%); background-clip: content-box; border-radius: 6px; }
.cal-col b { grid-row: 1; font-size: 10px; color: var(--ink-muted); text-align: center; }
.cal-col i { grid-row: calc(var(--s) + 2) / span var(--l); margin: 2px; border-radius: 5px; background: var(--pine); opacity: .9; }
.cal-col i.alt { background: var(--wheat-line); }
.cal-col i.new { background: var(--ochre); animation: newBooking 4s var(--ease) infinite; transform-origin: top; }
@keyframes newBooking { 0%, 15% { transform: scaleY(0); opacity: 0; } 30%, 85% { transform: scaleY(1); opacity: 1; } 100% { opacity: 0; } }
.phone { width: 130px; }
.phone .screen { background: #fbfaf7; border: 7px solid #101a14; border-radius: 22px; padding: 1rem .6rem .7rem; aspect-ratio: 9 / 18.5; display: flex; flex-direction: column; gap: .5rem; font-size: 10px; box-shadow: 0 24px 40px -16px rgba(0,0,0,.6); }
.phone-teero { position: absolute; right: 7%; bottom: 8%; }
.ph-title { margin: 0; font: italic 600 13px/1.2 var(--font-serif); color: var(--pine); }
.ph-card { background: var(--pine-soft); border-radius: 8px; padding: .45rem .5rem; display: grid; color: var(--ink-muted); line-height: 1.3; }
.ph-card strong { color: var(--ink); font-size: 11px; }
.ph-key { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 5px; background: var(--pine); color: var(--paper); border-radius: 999px; padding: .4rem; font-weight: 700; animation: keyGlow 2.4s ease-in-out infinite; }
.ph-key svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@keyframes keyGlow { 50% { box-shadow: 0 0 0 5px rgba(196,154,58,.45); } }

/* CoachMate + Byg visual with photo */
.visual-photo { position: absolute; inset: 0; }
.visual-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.product:hover .visual-photo img { transform: scale(1.05); }
.visual-coach::after, .visual-byg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24,41,31,.55), rgba(24,41,31,.05) 70%); pointer-events: none; }
.visual-coach, .visual-byg { min-height: 300px; }
.phone-coach { position: relative; z-index: 1; justify-self: start; margin-left: 12%; transform: rotate(-4deg); }
.pitch rect { fill: #3f7a52; stroke: #fff; stroke-width: 1.5; }
.pitch > path, .pitch circle:not(.ball):not(.cones circle) { fill: none; stroke: rgba(255,255,255,.7); stroke-width: 1.2; }
.pitch .cones circle { fill: #f0a24a; stroke: none; }
.pitch .run { fill: none; stroke: var(--wheat); stroke-width: 2; stroke-dasharray: 4 4; animation: dash 1.4s linear infinite; }
.pitch .pass { fill: none; stroke: #fff; stroke-width: 1.4; stroke-dasharray: 2 4; }
.pitch .ball { fill: #fff; stroke: #101a14; stroke-width: 1; }
.ph-row { display: flex; gap: 3px; } .ph-row span { flex: 1; text-align: center; background: var(--pine-soft); color: var(--pine); border-radius: 6px; padding: 2px 0; font-weight: 700; font-size: 8.5px; }
.ph-row span:nth-child(2) { background: var(--pine); color: var(--paper); }

.quote-card { position: relative; z-index: 1; justify-self: start; margin-left: 10%; width: 190px; background: #fff; border-radius: 14px; padding: .9rem 1rem 1rem; box-shadow: 0 24px 40px -16px rgba(0,0,0,.55); transform: rotate(3deg); }
.qc-title { margin: 0 0 .6rem; font: italic 600 1.05rem var(--font-serif); color: var(--pine); display: flex; justify-content: space-between; align-items: center; }
.qc-title span { font: 700 .62rem var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: #6a5428; background: #f1ead8; border-radius: 999px; padding: 2px 7px; }
.qc-line { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid #eee9df; }
.qc-line span { height: 7px; border-radius: 4px; background: #e2ddd2; }
.qc-line span:first-child { width: 60%; } .qc-line span:last-child { width: 22%; }
.qc-total { display: flex; justify-content: space-between; align-items: center; padding-top: .55rem; font-size: .8rem; font-weight: 700; color: var(--ink); }
.qc-bar { width: 34%; height: 9px; border-radius: 4px; background: var(--pine); animation: grow 3s var(--ease) infinite; transform-origin: right; }
@keyframes grow { 0%, 10% { transform: scaleX(.2); } 50%, 100% { transform: scaleX(1); } }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 20rem) 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; margin-top: 2rem; }
.portrait { position: relative; margin: 0; }
.portrait-deco { position: absolute; inset: -8% -10% -6% -8%; width: 118%; height: 114%; z-index: 0; }
.portrait-deco path { fill: var(--wheat); animation: morph 12s ease-in-out infinite alternate; transform-origin: center; transform-box: fill-box; }
@keyframes morph { to { transform: rotate(8deg) scale(1.04); } }
.portrait-frame {
  position: relative; z-index: 1; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); display: grid; place-items: center; text-align: center; padding: 1rem;
  background: linear-gradient(160deg, #e9e3d6, #d8d0c0); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg);
}
.about-name { font: 550 1.5rem/1.2 var(--font-serif); margin-bottom: .75rem; }
.about-copy .lede { font-size: 1.2rem; color: var(--ink); }
.about-copy p { color: var(--ink-muted); }
.linkedin { display: inline-flex; gap: .35rem; font-weight: 600; margin-top: .5rem; }

/* Why Comal */
.why { background: var(--pine); color: #e3ebe5; overflow: hidden; }
.why::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 24px 24px; }
.why-inner { position: relative; width: min(calc(100% - 3rem), var(--wide)); margin-inline: auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.why h2, .why .year { color: #f7faf7; }
.why .year { font: italic 500 clamp(3rem, 6vw, 4.5rem)/1 var(--font-serif); color: var(--wheat-line); margin: 0 0 .5rem; }
.why p { color: #d5e0d8; }
.terminal { background: #0f1a14; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; background: #16241c; }
.term-bar i { width: .7rem; height: .7rem; border-radius: 50%; background: #35503f; }
.term-bar span { margin-left: auto; font: 600 .75rem ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .1em; color: #7f9a88; }
.terminal pre { margin: 0; padding: 1.2rem 1.4rem; font: 1rem/1.7 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: #cfe3d4; white-space: pre-wrap; }
.term-code { min-height: 10.5em; }
.term-out { border-top: 1px dashed rgba(255,255,255,.12); color: var(--wheat-line); }
.ln { color: #5f7c69; } .kw { color: #9fd3ae; } .st { color: var(--wheat-line); }
.cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--wheat-line); margin-left: 2px; animation: blink 1s steps(1) infinite; }
.js .term-out.is-hidden { visibility: hidden; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.contact-intro p { color: var(--ink-muted); font-size: 1.15rem; }
.contact-intro .button { margin-top: .5rem; }
.contact-card { background: var(--paper-elevated); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.contact-list li:first-child { border-top: 0; }
.contact-list li > :last-child { justify-self: start; }
.contact-list .label { color: var(--ink-faint); font-size: .95rem; }

/* Placeholders — tydeligt markeret */
.indsæt { display: inline; background: var(--wheat); box-shadow: inset 0 -1px 0 var(--wheat-line); color: #4a3d16; font-weight: 600; font-size: .92em; padding: .05em .28em; border-radius: 2px; }
.portrait-frame .indsæt { display: inline-block; max-width: 12rem; }

/* Footer */
.site-footer { position: relative; margin-top: 2rem; color: #c9d6cd; }
.footer-wave { display: block; width: 100%; height: 60px; }
.footer-wave path { fill: var(--pine-deep); }
.footer-inner { background: var(--pine-deep); padding: 2rem 0 2rem; margin-top: -1px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { font: 550 1.6rem var(--font-serif); color: #f3efe7; margin-bottom: .4rem; }
.site-footer p { margin: 0 0 .35rem; font-size: .98rem; }
.site-footer .footer-brand { font-size: 1.6rem; }
.site-footer nav { display: grid; gap: .35rem; align-content: start; }
.site-footer a { color: #e7efe9; text-decoration: none; }
.site-footer a:hover { color: var(--wheat-line); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1.25rem; font-size: .9rem; color: #9fb3a6; }

/* Scroll reveal (kun med JS og uden reduced motion) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid, .why-inner, .about-grid, .product-feature { grid-template-columns: 1fr; }
  .hero-art { max-width: 600px; }
  .principles { grid-template-columns: 1fr; }
  .method-panel { grid-template-columns: 1fr; }
  .method-art { max-height: 200px; }
  .about-grid .portrait { max-width: 18rem; }
  .why-inner .terminal { order: 2; }
}
@media (max-width: 760px) {
  .products { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .ba-arrow { justify-self: center; transform: rotate(90deg); }
  .pitfalls ul { grid-template-columns: 1fr; }
  .float-a { left: .5rem; bottom: -1rem; }
  .hero-card::before { inset: 12% -3% -5% 8%; }
  .float-b { right: .5rem; top: -1rem; }
}
@media (max-width: 640px) {
  .wrap, .why-inner { width: min(calc(100% - 2rem), var(--wide)); }
  body { font-size: 1.06rem; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; justify-content: center; padding: .7rem 0 .8rem; min-height: 0; gap: .45rem; }
  html { scroll-padding-top: 6.5rem; }
  .site-nav { gap: .15rem 1rem; }
  .site-nav a { font-size: .92rem; }
  .lead { font-size: 1.1rem; }
  .hero-card { padding: .5rem; border-radius: 20px; }
  .method-tabs { gap: .25rem; }
  .method-tab-title { font-size: .88rem; }
  .method-dot { width: 2.5rem; height: 2.5rem; }
  .method-rail { top: 1.25rem; }
  .contact-list li { grid-template-columns: 1fr; gap: .15rem; padding: .7rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .visual-teero { min-height: 300px; padding: 1.5rem 1rem 3rem; }
  .phone-teero { width: 100px; right: 4%; bottom: 5%; }
  .product-feature .product-body, .product-body { padding: 1.5rem; }
  .button { width: 100%; }
  .site-nav a[href="#kontakt"] { padding: .3rem .85rem; }
}

/* Rigtige skærmbilleder i device-rammer */
:where(figure.device) { margin: 0; }
.has-shot .screen { padding: 0; display: block; overflow: hidden; background: #1b1f1d; }
.has-shot .screen picture, .has-shot .screen img { display: block; width: 100%; height: 100%; }
.has-shot .screen img { object-fit: cover; object-position: top center; }
.laptop.has-shot { width: min(100%, 540px); filter: drop-shadow(0 28px 40px rgba(0,0,0,.45)); }
.laptop.has-shot .screen { border-width: 9px; border-bottom-width: 11px; }
.phone.has-shot .screen { position: relative; aspect-ratio: 390 / 844; border-width: 6px; border-radius: 24px; }
.phone.has-shot .screen::before { content: ""; position: absolute; top: 4px; left: 50%; width: 26%; height: 7px; transform: translateX(-50%); background: #101a14; border-radius: 999px; z-index: 1; }
.phone-teero.has-shot { width: 136px; right: 5%; bottom: 7%; }
.phone-coach.has-shot { width: 136px; }
.visual-coach:has(.has-shot) { min-height: 340px; padding: 1rem 0; }
.has-shot .screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255,255,255,.12), rgba(255,255,255,0) 40%); pointer-events: none; }
.laptop.has-shot .screen { position: relative; }
@media (max-width: 760px) {
  .laptop.has-shot { width: 92%; margin-right: 12%; }
  .phone-teero.has-shot { width: 96px; right: 4%; bottom: 6%; }
  .phone-coach.has-shot { width: 124px; }
  .visual-coach:has(.has-shot) { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .flow .clean-draw { stroke-dashoffset: 0; }
  .cal-col i.new { opacity: 1; transform: none; }
}

/* Portrait photo */
.portrait-frame.has-photo { padding: 0; overflow: hidden; display: block; background: var(--paper-deep); }
.portrait-frame.has-photo picture, .portrait-frame.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
