/* Home page (marketplace). Loaded after styles.css. */
.home {
  --brown: #5a3a20;
  --brown-2: #7a5233;
  --tan: #e8dfd0;
  --tan-2: #f1ece2;
  --spot: #e3d7c3;
}


.btn-hero { padding: 18px 30px; font-size: 17px; }
.btn-light { padding: 16px 26px; font-size: 16px; background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--tan-2); }
.center { text-align: center; }

/* ---------- Hero ---------- */
.h-hero { text-align: center; padding: 90px 20px 0; overflow: hidden; }
.h-hero .lede { margin-bottom: 40px; }
.pixel-wall { margin: 70px calc(50% - 50vw) 0; }

/* Pixel mosaics are filled in by home.js */
.px-grid { display: grid; width: 100%; }
.px-grid i { display: block; aspect-ratio: 1; }

/* Hero wall: cells invert under the cursor and fade back, leaving a trail */
.pixel-wall .px-grid i { transition: filter .7s ease-out, background-color .7s ease-out, transform .7s ease-out; }
.pixel-wall .px-grid i.hot { transition: none; }
.pixel-wall .px-grid i.on.hot { filter: invert(.8) saturate(1.4); transform: scale(1.08); position: relative; z-index: 1; }
.pixel-wall .px-grid i:not(.on).hot { background-color: rgba(138, 98, 64, .3); }
@media (prefers-reduced-motion: reduce) {
  .pixel-wall .px-grid i { transition: none; }
}

/* ---------- Shared section bits ---------- */
.h-section { padding: 120px 20px 0; max-width: 1240px; margin: 0 auto; }
.h-title {
  font: 600 clamp(36px, 4.6vw, 64px)/1.08 var(--tight);
  letter-spacing: -.035em; text-align: center; margin: 0 0 22px;
}
.h-sub {
  max-width: 640px; margin: 0 auto 56px; text-align: center;
  font-size: clamp(16px, 1.4vw, 18px); color: var(--ink-2);
}
.h-note { text-align: center; color: var(--muted); font-size: 15px; margin: 28px 0 22px; }

/* ---------- What AI can't do ---------- */
.gap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gap-card {
  position: relative; overflow: hidden; min-height: 360px;
  padding: 34px 36px; display: flex; flex-direction: column; justify-content: space-between;
}
.gap-private { background: var(--ink); color: #fff; }
.gap-public { background: var(--tan-2); color: var(--ink-2); }
.gap-tag {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em;
}
.gap-tag i { width: 7px; height: 7px; background: currentColor; }
.gap-private .gap-tag { color: var(--accent); }
.gap-public .gap-tag { color: var(--muted); }
.gap-foot { position: relative; z-index: 1; }
.gap-kicker { margin: 0 0 10px; font-size: 15px; opacity: .7; }
.gap-word {
  margin: 0; font: 500 clamp(26px, 2.8vw, 38px)/1.1 var(--tight); letter-spacing: -.03em;
  transition: opacity .3s, transform .3s;
}
.gap-word.is-out { opacity: 0; transform: translateY(8px); }
.gap-private strong { color: #fff; }
.gap-pattern {
  position: absolute; right: -40px; bottom: -40px; width: 300px; height: 300px;
  background:
    radial-gradient(circle at 30% 30%, #3a3334 0 18%, transparent 19%),
    radial-gradient(circle at 70% 25%, #2d2728 0 14%, transparent 15%),
    radial-gradient(circle at 55% 65%, #3a3334 0 22%, transparent 23%),
    radial-gradient(circle at 20% 75%, #2d2728 0 12%, transparent 13%),
    radial-gradient(circle at 85% 70%, #2d2728 0 13%, transparent 14%);
}

/* ---------- Bridge banner ---------- */
.bridge { padding: 120px 20px 0; max-width: 1240px; margin: 0 auto; }
.bridge-scene {
  position: relative; overflow: hidden; aspect-ratio: 16 / 7.5; min-height: 380px;
  background: linear-gradient(180deg, #2d6fc4 0%, #5a98dc 45%, #a9cbea 62%);
}
.bridge-title {
  position: absolute; z-index: 2; top: 9%; left: 0; right: 0; margin: 0; text-align: center;
  font: 700 clamp(34px, 5vw, 72px)/1.04 var(--serif); letter-spacing: -.02em; color: #fff;
  text-shadow: 0 2px 14px rgba(20, 40, 80, .25);
}
.bridge-hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; }
.conveyor {
  position: absolute; z-index: 1; left: 0; bottom: 0; width: 100%; height: auto; overflow: visible;
  transform: scale(.66); transform-origin: 50% 100%;
}
.conveyor * { transform-box: fill-box; }
.cv-in { animation: cv-in 11.2s linear infinite; }
.cv-out { animation: cv-out 10.8s linear infinite; }
@keyframes cv-in { from { transform: translateX(-370px); } to { transform: translateX(490px); } }
@keyframes cv-out { from { transform: translateX(660px); } to { transform: translateX(1560px); } }
.cv-belt { animation: cv-belt .54s linear infinite; }
@keyframes cv-belt { to { stroke-dashoffset: -40; } }
.cv-roller > * { transform-origin: center; animation: cv-spin .7s linear infinite; }
@keyframes cv-spin { to { transform: rotate(360deg); } }
.cv-puff { transform-origin: center; opacity: 0; animation: cv-puff 2.4s ease-out infinite; }
@keyframes cv-puff {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  20% { opacity: .95; }
  100% { opacity: 0; transform: translate(18px, -70px) scale(2); }
}
.cv-light { animation: cv-blink 1.2s steps(1) infinite; }
@keyframes cv-blink { 50% { opacity: .35; } }

/* ---------- Asset types ---------- */
.assets {
  position: relative; border: 1px solid var(--spot);
  background-color: #faf8f3;
  background-image:
    radial-gradient(ellipse 120px 90px at 8% 12%, var(--spot) 98%, transparent 100%),
    radial-gradient(ellipse 90px 120px at 31% 46%, var(--spot) 98%, transparent 100%),
    radial-gradient(ellipse 150px 110px at 72% 8%, var(--spot) 98%, transparent 100%),
    radial-gradient(ellipse 110px 80px at 92% 40%, var(--spot) 98%, transparent 100%),
    radial-gradient(ellipse 140px 100px at 58% 62%, var(--spot) 98%, transparent 100%),
    radial-gradient(ellipse 80px 110px at 12% 82%, var(--spot) 98%, transparent 100%),
    radial-gradient(ellipse 120px 90px at 86% 88%, var(--spot) 98%, transparent 100%),
    radial-gradient(ellipse 70px 60px at 44% 95%, var(--spot) 98%, transparent 100%);
  color: #3d2a1a;
}
.assets-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); border-bottom: 1px solid var(--spot); }
.assets-index { padding: 26px 30px; border-right: 1px solid var(--spot); font: 400 12px/1 var(--mono); color: var(--brown-2); }
.assets-intro { padding: 30px 34px 34px; }
.assets-title {
  margin: 0 0 14px; font: 700 clamp(40px, 5vw, 68px)/1 var(--serif); letter-spacing: -.02em; color: var(--brown);
}
.assets-intro > p { margin: 0 0 16px; max-width: 560px; font-size: 15px; color: #5b4636; }
.assets .assets-pay { margin: 18px 0 0; font: 600 22px/1.2 var(--tight); letter-spacing: -.02em; color: var(--brown); }
.assets-pay small { font: 400 12px/1 var(--mono); color: var(--brown-2); margin-left: 6px; text-transform: uppercase; letter-spacing: .06em; }

.assets-grid { display: grid; }
.assets-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--spot); }
.assets-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.asset { padding: 22px 24px 28px; border-right: 1px solid var(--spot); }
.asset:last-child { border-right: 0; }
.asset-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.asset-num { font: 400 12px/1 var(--mono); color: var(--brown-2); }
.asset-icon { width: 26px; height: 26px; fill: none; stroke: var(--brown); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.asset h4 { margin: 0 0 8px; font: 600 20px/1.2 var(--tight); letter-spacing: -.02em; color: var(--brown); }
.asset > p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: #5b4636; }
.assets .asset-label { margin: 0 0 8px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--brown-2); }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-block; padding: 5px 9px; font-size: 12px; line-height: 1.2;
  background: rgba(255, 255, 255, .75); border: 1px solid #d9cbb4; color: #5b4636;
}
.power .center { margin-top: 32px; }

/* ---------- Experts ---------- */
.expert-board {
  position: relative; overflow: hidden; padding: clamp(28px, 5vw, 60px);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 240, 190, .55), transparent 55%),
    linear-gradient(180deg, #d9c48a 0%, #b9a35d 55%, #8a7a3a 100%);
}
.expert-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px;
}
.expert-list li {
  padding: 18px 20px; background: rgba(250, 248, 243, .92); border: 1px solid rgba(90, 58, 32, .18);
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .15s, background .15s;
}
.expert-list li:hover { transform: translateY(-2px); background: #fff; }
.expert-list b { font: 600 17px/1.2 var(--tight); letter-spacing: -.01em; }
.expert-list span { font-size: 13px; color: var(--muted); }

/* ---------- Steps ---------- */
.h-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 28px; }
.h-step { padding: 30px 32px 34px; min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.h-step.s1 { background: var(--tan); }
.h-step.s2 { background: var(--accent); }
.h-step.s3 { background: var(--brown); color: #fff; }
.h-step-num {
  position: absolute; top: 30px; left: 32px;
  display: grid; place-items: center; width: 44px; height: 44px;
  font: 500 13px/1 var(--mono); background: rgba(20, 16, 17, .08);
}
.s3 .h-step-num { background: rgba(255, 255, 255, .12); }
.h-step h3 { margin: 0 0 10px; font: 600 22px/1.2 var(--tight); letter-spacing: -.02em; }
.h-step p { margin: 0; max-width: 520px; font-size: 15px; color: var(--ink-2); }
.s3 p { color: #e2d4c3; }
.h-assure {
  max-width: 560px; margin: 40px auto 26px; font-size: 15px; color: var(--ink-2); text-align: center;
}
.h-assure i { display: inline-block; vertical-align: -1px; margin-right: 4px; width: 10px; height: 10px; border: 2px solid var(--brown-2); border-radius: 50%; }

/* ---------- Value it ---------- */
.value { margin-top: 140px; background: var(--brown); color: #fff; }
.pixel-edge { background: var(--bg); }
.value-inner {
  max-width: 1240px; margin: 0 auto; padding: 70px 20px 90px;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center;
}
.value h2 { margin: 0 0 18px; font: 600 clamp(40px, 5vw, 68px)/1.04 var(--tight); letter-spacing: -.04em; color: #f4ebdd; }
.value-copy > p:first-of-type { margin: 0 0 30px; max-width: 440px; color: #e2d4c3; }
.value-fine { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; font-size: 13px; color: #cdb9a3; }
.value-fine svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pixel-cluster { max-width: 360px; justify-self: end; width: 100%; }

/* ---------- Ticker ---------- */
.ticker { background: var(--accent); overflow: hidden; padding: 26px 0; }
.ticker-track {
  display: flex; align-items: center; gap: 40px; width: max-content;
  animation: ticker 40s linear infinite;
  font: 500 clamp(40px, 6vw, 84px)/1 var(--tight); letter-spacing: -.04em; color: #5c4a14;
}
.ticker-track span { white-space: nowrap; }
.ticker-track i { width: 12px; height: 12px; border-radius: 50%; background: currentColor; opacity: .6; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.h-footer { background: var(--ink); color: #cfcac4; font-size: 14px; }
.h-footer a { color: #f4ebdd; text-decoration: none; }
.h-footer a:hover { color: var(--accent); }
.h-footer-inner { max-width: 1240px; margin: 0 auto; padding: 60px 20px 40px; }
.h-footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.h-footer-label { margin: 0 0 18px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.h-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.h-footer-mail { margin: 50px 0 0; }
.h-footer-mail a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.h-footer-bar {
  max-width: 1240px; margin: 0 auto; padding: 26px 20px;
  border-top: 1px solid #2c2627;
  display: flex; align-items: center; gap: 18px;
}
.h-footer-bar .logo { color: #fff; }
.h-footer-bar p { margin: 0; color: #8a8585; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .gap-grid, .assets-head, .assets-grid.two, .assets-grid.three, .value-inner { grid-template-columns: 1fr; }
  .assets-index { border-right: 0; border-bottom: 1px solid var(--spot); padding: 16px 20px; }
  .asset { border-right: 0; border-bottom: 1px solid var(--spot); }
  .assets-grid.three .asset:last-child { border-bottom: 0; }
  .pixel-cluster { justify-self: start; max-width: 240px; }
}
@media (max-width: 640px) {
  .h-hero { padding: 56px 16px 0; }
  .pixel-wall { margin-top: 44px; }
  .h-section, .bridge { padding: 80px 16px 0; }
  .gap-card { min-height: 280px; padding: 26px 22px; }
  .bridge-scene { aspect-ratio: auto; min-height: 340px; }
  .conveyor { width: 220%; max-width: none; left: -60%; }
  .assets-intro { padding: 22px 20px 26px; }
  .asset { padding: 20px; }
  .asset-top { margin-bottom: 24px; }
  .h-step { padding: 90px 22px 26px; min-height: 0; }
  .h-step-num { top: 24px; left: 22px; }
  .value { margin-top: 90px; }
  .value-inner { padding: 50px 16px 60px; }
  .ticker { padding: 18px 0; }
  .h-footer-inner { padding: 44px 16px 30px; }
  .h-footer-bar { padding: 22px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .conveyor * { animation: none !important; }
  .cv-puff { opacity: 0; }
  .gap-word { transition: none; }
}

/* ---------- Review fixes ---------- */
.assets-grid.three + .assets-grid.three { border-top: 1px solid var(--spot); }
.assets .assets-pay a { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.h-footer-about { margin: 18px 0 0; max-width: 640px; color: #a9a3a3; font-size: 13px; line-height: 1.5; }
.h-footer-about b { color: #f4ebdd; font-weight: 600; }

/* ---------- v5 fixes ---------- */
/* Rotating word: never blank. Swapped instantly, then eased in from a partly visible state. */
.gap-word.is-in { animation: word-in .35s ease-out; }
@keyframes word-in { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gap-word.is-in { animation: none; } }

/* Hero */
.h-hero .lede { max-width: 680px; margin-left: auto; margin-right: auto; }
.h-hero .lede em { font-style: italic; }
.h-hero .lede sup { font-size: .6em; line-height: 0; }
.src-ref { color: var(--ink-2); text-decoration: none; padding: 0 2px; }
.hero-fine { margin: 16px auto 0; font-size: 14px; color: var(--muted); }

/* "00 Hele arbejdsgange": the title now fills the left panel instead of an empty box */
.assets-index { display: flex; flex-direction: column; gap: 22px; }
.assets-index .assets-title { margin: 0; font-size: clamp(32px, 3.3vw, 44px); }
.assets-intro { display: flex; flex-direction: column; justify-content: center; }

/* Danish labels: no all-caps tracking */
.gap-tag, .assets .asset-label, .assets-pay small, .h-footer-label { text-transform: none; letter-spacing: .01em; }
.assets-pay small { font-family: var(--sans); font-size: 13px; }

/* Security, FAQ, about, sources on the home page */
.home-sec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--spot); border: 1px solid var(--spot); max-width: 1000px; margin: 40px auto 0; }
.home-sec-grid > div { background: #faf8f3; padding: 28px 30px; }
.home-sec-grid h3 { margin: 0 0 8px; font: 600 20px/1.25 var(--tight); letter-spacing: -.02em; color: var(--brown); }
.home-sec-grid p { margin: 0; font-size: 15px; color: #5b4636; }
.home-faq { padding-bottom: 0; }
.home-faq .faq-list { margin-top: 40px; }
.more-faq { margin: 26px 0 0; font-size: 15px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; max-width: 860px; margin: 40px auto 0; align-items: start; }
.about-copy p { margin: 0 0 16px; color: var(--ink-2); font-size: 17px; }
.about-copy strong { color: var(--ink); }
.about-company { font-size: 15px !important; color: var(--muted) !important; }
.about-founder { width: 200px; text-align: center; }
.about-founder img { width: 160px; height: 160px; object-fit: cover; margin: 0 auto 12px; }
.about-founder-name { margin: 0; font-weight: 600; }
.about-founder-role { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.sources { max-width: 860px; padding-top: 80px; font-size: 14px; color: var(--ink-2); }
.sources-title { font: 600 18px/1.3 var(--tight); margin: 0 0 10px; }
.sources ol { margin: 0 0 10px; padding-left: 20px; }
.sources li { margin: 4px 0; }
.sources p { margin: 0 0 60px; color: var(--muted); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-founder { width: auto; text-align: left; } .about-founder img { margin: 0 0 12px; } }
@media (max-width: 640px) {
  .home-sec-grid { grid-template-columns: 1fr; }
  .home-sec-grid > div { padding: 22px 18px; }
  .ticker-track { font-size: 34px; }
  .h-footer-cols { grid-template-columns: 1fr; gap: 28px; }
}
.assets .asset-label { font-family: var(--sans); font-size: 12px; }

/* v6: confident copy */
.hero-stat { margin: 22px auto 0; max-width: 620px; font: 500 17px/1.45 var(--sans); color: var(--ink); }
.hero-stat small { display: block; margin-top: 4px; font: 400 12px/1.4 var(--sans); color: var(--muted); }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.h-footer-fine { margin: 18px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); max-width: 760px; }
.h-footer-fine a { color: inherit; }

/* v7: hero number, trust line, about card */
.hero-num { margin: 26px auto 0; font: 400 18px/1.2 var(--sans); color: var(--ink-2); }
.hero-num b { display: block; margin: 6px 0 4px; font: 700 clamp(44px, 7vw, 72px)/1 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.hero-num b { background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%); display: inline-block; padding: 0 6px; }
.hero-num-pre, .hero-num-post { display: block; }
.h-hero .hero-ctas { margin-top: 26px; }
.hero-src { margin: 14px auto 0; font-size: 12px; color: var(--muted); }
.hero-src a { color: inherit; }
.hero-trust { display: inline-flex; align-items: center; gap: 12px; margin: 22px auto 0; padding: 8px 14px 8px 8px; background: #fff; border: 1px solid var(--line); text-align: left; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.hero-trust a { color: var(--ink); }
.hero-face { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden; background: var(--accent); display: grid; place-items: center; font: 600 15px/1 var(--sans); color: var(--ink); }
.hero-face img { width: 100%; height: 100%; object-fit: cover; }
.about-lead { font: 600 22px/1.35 var(--tight) !important; color: var(--ink) !important; }
.about-card { display: flex; gap: 18px; align-items: center; width: 320px; padding: 18px; background: #fff; border: 1px solid var(--line); }
.about-photo { width: 96px; height: 96px; flex: none; border-radius: 50%; overflow: hidden; background: var(--accent); display: grid; place-items: center; font: 600 30px/1 var(--tight); color: var(--ink); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-who p { margin: 0; }
.about-phone, .about-email { margin-top: 8px !important; font-size: 15px; }
.about-phone a { font-weight: 600; color: var(--ink); }
.about-email a { color: var(--ink-2); }
@media (max-width: 900px) { .about-card { width: auto; } }
@media (max-width: 900px) { .assets { background-image: none; } }
@media (max-width: 640px) {
  .hero-num b { font-size: 46px; }
  .h-hero .hero-title { font-size: clamp(36px, 10.5vw, 44px); }
}
@media (max-width: 640px) { .h-hero .lede br, .h-sub br { display: none; } }
