/* ProTask — offentlige sider (runde 5). Fælles sektioner fra forsiden + undersider:
   sidehero, brødkrummer, indholdsfortegnelse, artikeltekst, priskort, cookiebanner. */
/* ---------- Sektioner (som forsiden) ---------- */
  .section { padding: var(--s24) 0; }
  .section-tight { padding: var(--s16) 0; }
  .section-alt { background: var(--bg); }
  .section-head { max-width: 640px; margin-bottom: var(--s10); }
  .section-head p { margin-top: var(--s3); }
  @media (max-width: 640px) { .section { padding: var(--s16) 0; } .section-tight { padding: var(--s12) 0; } .section-head { margin-bottom: var(--s8); } }

  /* Hero */
  .hero { padding: var(--s16) 0 var(--s20); position: relative; overflow: hidden; }
  .preview::before { content: ""; position: absolute; top: -400px; bottom: -110px; left: -56px; right: -100vw; background: var(--bg); border-bottom-left-radius: 48px; z-index: -1; }
  .hero-grid { display: grid; grid-template-columns: 55fr 45fr; gap: var(--s12); align-items: center; }
  .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9375rem; color: var(--primary); margin-bottom: var(--s5); }
  .eyebrow .icon { width: 18px; height: 18px; }
  .hero h1 { max-width: 14ch; }
  .hero .lead { margin-top: var(--s5); max-width: 50ch; }
  .hero-ctas { margin-top: var(--s8); display: flex; gap: var(--s3); flex-wrap: wrap; }
  .trustline { margin-top: var(--s6); display: flex; gap: var(--s2) var(--s6); flex-wrap: wrap; list-style: none; padding: 0; font-size: 0.9375rem; color: var(--ink-2); }
  .trustline li { display: inline-flex; gap: 8px; align-items: center; }
  .trustline .icon { width: 18px; height: 18px; color: var(--success); stroke-width: 2.2; }
  @media (max-width: 960px) {
    .preview::before { display: none; }
    .hero-grid { grid-template-columns: 1fr; gap: var(--s10); }
    .hero { padding: var(--s10) 0 var(--s16); }
  }
  @media (max-width: 640px) { .hero-ctas .btn { flex: 1 1 100%; } }

  /* Produktpreview i hero */
  .preview { position: relative; }
  .preview-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-3); overflow: hidden; }
  .pv-head { padding: 18px 20px 16px; border-bottom: 1px solid var(--line); }
  .pv-id { font-size: var(--fs-meta); color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
  .pv-title { font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; }
  .pv-slots { padding: 16px 20px; background: #FAFBFB; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
  .pv-bids { padding: 6px 12px 12px; }
  .pv-bid { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 8px; border-radius: var(--r-md); }
  .pv-bid + .pv-bid { border-top: 1px solid var(--line); border-radius: 0; }
  .pv-bid .co-logo { width: 40px; height: 40px; }
  .pv-bid-name { font-weight: 600; font-size: 0.9375rem; }
  .pv-bid-meta { font-size: var(--fs-meta); color: var(--muted); }
  .pv-price { text-align: right; font-weight: 700; white-space: nowrap; }
  .pv-price small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
  .pv-empty { border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); padding: 12px; margin: 6px 8px 0; font-size: var(--fs-small); color: var(--muted); display: flex; gap: 10px; align-items: center; }
  .pv-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; font-size: var(--fs-small); color: var(--ink-2); }
  .pv-foot .icon { color: var(--primary); width: 18px; height: 18px; }
  .pv-note { position: relative; margin: var(--s4) 0 0 -28px; width: max-content; background: var(--deep); color: #fff; border-radius: var(--r-lg); padding: 12px 16px; font-size: var(--fs-small); box-shadow: var(--shadow-2); max-width: 340px; display: flex; gap: 10px; align-items: flex-start; }
  .pv-note .icon { color: #8FD7C9; margin-top: 2px; width: 18px; height: 18px; }
  @media (max-width: 960px) { .pv-note { margin-left: 0; width: auto; max-width: none; } }

  /* Hurtig opgavestart */
  .quickstart { margin-top: calc(var(--s10) * -1); position: relative; z-index: 2; }
  .qs-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-2); padding: var(--s8); display: grid; grid-template-columns: 1fr; gap: var(--s4); }
  .qs-card .textarea { min-height: 110px; font-size: 1.0625rem; }
  .qs-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; }
  .qs-row .meta { max-width: 60ch; }
  @media (max-width: 640px) { .qs-card { padding: var(--s5); } .qs-row .btn { width: 100%; } .quickstart { margin-top: 0; padding-top: var(--s8); } }

  /* Sådan virker det */
  .how { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); list-style: none; padding: 0; counter-reset: how; position: relative; }
  .how li { position: relative; }
  .how-top { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s5); }
  .how-num { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.9375rem; flex: none; }
  .how-line { height: 2px; flex: 1; background: var(--line); }
  .how li:last-child .how-line { visibility: hidden; }
  .how-icon { width: 52px; height: 52px; border-radius: var(--r-lg); background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: var(--s4); }
  .how-icon .icon { width: 26px; height: 26px; stroke-width: 1.6; }
  .how h3 { margin-bottom: 6px; }
  .how p { color: var(--ink-2); font-size: 0.9375rem; max-width: 30ch; }
  @media (max-width: 900px) { .how { grid-template-columns: repeat(2, 1fr); gap: var(--s10) var(--s6); } .how li:nth-child(2) .how-line { visibility: hidden; } }
  .how li { counter-increment: how; }
  @media (max-width: 560px) { .how h3::before { content: counter(how) ". "; color: var(--primary); } .how { grid-template-columns: 1fr; gap: var(--s8); } .how-line { display: none; } .how li { display: grid; grid-template-columns: 52px 1fr; gap: 0 var(--s4); } .how-top { grid-row: 1; margin: 0; display: none; } .how-icon { grid-row: 1 / 3; margin: 0; } }

  /* Hvorfor */
  .why-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s16); align-items: start; }
  .why-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
  .why-item { padding: var(--s6) var(--s6) var(--s6) 0; border-bottom: 1px solid var(--line); }
  .why-item:nth-child(odd) { border-right: 1px solid var(--line); }
  .why-item:nth-child(even) { padding-left: var(--s6); padding-right: 0; }
  .why-item .icon { width: 26px; height: 26px; color: var(--primary); margin-bottom: var(--s4); stroke-width: 1.6; }
  .why-item h3 { margin-bottom: 6px; }
  .why-item p { color: var(--ink-2); font-size: 0.9375rem; }
  .why-aside { position: sticky; top: calc(var(--header-h) + 32px); }
  .why-aside .slots { margin-top: var(--s8); }
  .compare-mini { margin-top: var(--s8); display: grid; gap: var(--s4); }
  .compare-mini .row { display: grid; grid-template-columns: 110px 1fr; gap: var(--s3); align-items: center; font-size: var(--fs-small); }
  .compare-mini .bar { display: flex; gap: 3px; flex-wrap: wrap; }
  .compare-mini .bar i { width: 14px; height: 8px; border-radius: 2px; background: var(--line-strong); display: block; }
  .compare-mini .bar.pt i { background: var(--primary); width: 30px; }
  @media (max-width: 960px) { .why-grid { grid-template-columns: 1fr; gap: var(--s10); } .why-aside { position: static; } }
  @media (max-width: 560px) { .why-list { grid-template-columns: 1fr; } .why-item, .why-item:nth-child(even) { padding: var(--s5) 0; border-right: 0 !important; } }

  /* Aktuelle opgaver */
  .task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
  .task-card { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s4); }
  .task-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); }
  .task-card h3 { font-size: 1.0625rem; line-height: 1.35; }
  .task-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px var(--s4); font-size: var(--fs-small); }
  .task-meta div { display: flex; gap: 8px; align-items: center; color: var(--ink-2); min-width: 0; }
  .task-meta .icon { width: 16px; height: 16px; color: var(--muted); }
  .task-card-foot { margin-top: auto; padding-top: var(--s4); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
  @media (max-width: 1000px) { .task-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 640px) { .task-grid { grid-template-columns: 1fr; } .task-grid .task-card:nth-child(n+4) { display: none; } }

  /* Fagområder */
  .trades { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
  .trade { padding: var(--s6); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: var(--s2); transition: background .15s; min-height: 210px; }
  .trade:hover { background: var(--bg); color: inherit; }
  .trade h3 { display: flex; justify-content: space-between; align-items: center; }
  .trade h3 .icon { color: var(--faint); transition: transform .15s, color .15s; }
  .trade:hover h3 .icon { color: var(--primary); transform: translateX(3px); }
  .trade p { color: var(--ink-2); font-size: 0.9375rem; }
  .trade ul { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; padding-top: var(--s3); }
  .trade li { font-size: 12.5px; padding: 3px 8px; border-radius: 5px; background: var(--surface-2); color: var(--ink-2); }
  @media (max-width: 1000px) { .trades { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .trades { grid-template-columns: 1fr; } .trade { min-height: 0; } }

  /* Case */
  .case { display: grid; grid-template-columns: 4fr 8fr; gap: var(--s12); }
  .case-stats { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: var(--s6); }
  .case-stat { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .case-stat strong { font-size: 1.375rem; letter-spacing: -0.01em; }
  .case-stat span { color: var(--muted); font-size: 0.9375rem; }
  .case-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
  .case-flow h3 { display: flex; gap: 10px; align-items: center; margin-bottom: var(--s3); }
  .case-flow h3 .tag { font-size: 12px; font-weight: 700; background: var(--ink); color: #fff; border-radius: 5px; padding: 2px 7px; }
  .case-flow p { color: var(--ink-2); font-size: 0.9375rem; }
  .case-quote { margin-top: var(--s10); padding: var(--s8); background: var(--surface); border-radius: var(--r-xl); border: 1px solid var(--line); }
  .case-quote blockquote { margin: 0; font-size: 1.25rem; line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; max-width: 52ch; }
  .case-quote figcaption { margin-top: var(--s4); color: var(--muted); font-size: 0.9375rem; }
  @media (max-width: 960px) { .case { grid-template-columns: 1fr; gap: var(--s8); } .case-flow { grid-template-columns: 1fr; gap: var(--s5); } }

  /* Håndværker-bånd */
  .pro-band { background: var(--deep); color: #fff; border-radius: 24px; padding: var(--s16); display: grid; grid-template-columns: 7fr 5fr; gap: var(--s12); align-items: center; }
  .pro-band .h2 { color: #fff; max-width: 20ch; }
  .pro-band p { color: rgba(255,255,255,.75); margin-top: var(--s4); max-width: 52ch; }
  .pro-points { list-style: none; padding: 0; margin: var(--s6) 0 var(--s8); display: grid; gap: 10px; }
  .pro-points li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.88); }
  .pro-points .icon { color: #8FD7C9; margin-top: 2px; stroke-width: 2.2; }
  .token-example { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-xl); padding: var(--s6); }
  .token-example h3 { font-size: 1rem; color: #fff; margin-bottom: var(--s4); }
  .tx { display: grid; grid-template-columns: 1fr auto; gap: 4px var(--s4); padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 0.9375rem; }
  .tx:first-of-type { border-top: 0; padding-top: 0; }
  .tx b { white-space: nowrap; }
  .tx small { grid-column: 1 / -1; color: rgba(255,255,255,.6); font-size: var(--fs-meta); }
  .tx .minus { color: #F5C580; } .tx .plus { color: #8FD7C9; }
  @media (max-width: 960px) { .pro-band { grid-template-columns: 1fr; padding: var(--s10) var(--s6); gap: var(--s8); border-radius: 18px; } }
  @media (max-width: 640px) { .pro-band .btn { width: 100%; } }

  /* FAQ */
  .faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: var(--s12); }
  @media (max-width: 960px) { .faq-grid { grid-template-columns: 1fr; gap: var(--s6); } }

  /* Afsluttende CTA */
  .final-cta { text-align: center; }
  .final-cta .h2 { max-width: 22ch; margin: 0 auto; }
  .final-cta p { margin: var(--s3) auto 0; max-width: 52ch; }
  .final-cta .cluster { justify-content: center; margin-top: var(--s8); }

/* ---------- Undersider ---------- */
.page-hero { padding: var(--s12) 0 var(--s12); background: var(--bg); border-bottom: 1px solid var(--line); }
.page-hero .crumbs { display: flex; gap: 6px; flex-wrap: wrap; font-size: var(--fs-small); color: var(--muted); margin-bottom: var(--s5); list-style: none; padding: 0; }
.page-hero .crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.page-hero .crumbs a { color: var(--muted); }
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { margin-top: var(--s4); max-width: 60ch; }
.page-hero .hero-ctas { margin-top: var(--s8); display: flex; gap: var(--s3); flex-wrap: wrap; }
.page-hero.dark { background: var(--deep); color: #fff; border-bottom: 0; }
.page-hero.dark .h1, .page-hero.dark h1 { color: #fff; }
.page-hero.dark .lead { color: rgba(255,255,255,.78); }
.page-hero.dark .crumbs, .page-hero.dark .crumbs a { color: rgba(255,255,255,.6); }
.page-hero.dark .eyebrow { color: #8FD7C9; }
@media (max-width: 640px) { .page-hero { padding: var(--s8) 0; } .page-hero .hero-ctas .btn { flex: 1 1 100%; } }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s12); align-items: start; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
@media (max-width: 960px) { .two { grid-template-columns: minmax(0, 1fr); gap: var(--s8); } .three { grid-template-columns: minmax(0, 1fr); } }
.feature { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s4); align-items: start; }
.feature .fi { width: 48px; height: 48px; border-radius: var(--r-lg); background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.feature .fi .icon { width: 24px; height: 24px; stroke-width: 1.7; }
.feature h3 { margin-bottom: 4px; }
.feature p { color: var(--ink-2); font-size: 0.9375rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--success); width: 20px; height: 20px; margin-top: 2px; flex: none; stroke-width: 2.2; }
.check-list.no .icon { color: var(--danger); }
/* Artikeltekst (juridisk, guides, hjælp) */
.article-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s12); padding: var(--s12) 0 var(--s20); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: var(--fs-small); }
.toc h2 { font-size: 0.8125rem; font-weight: 700; color: var(--muted); margin-bottom: var(--s3); }
.toc ol, .toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; }
.toc a:hover { background: var(--surface-2); color: var(--ink); }
.toc a[aria-current="true"] { color: var(--primary); font-weight: 600; border-left-color: var(--primary); background: var(--primary-soft); }
@media (max-width: 960px) { .article-wrap { grid-template-columns: minmax(0, 1fr); gap: var(--s6); padding-top: var(--s8); } .toc { position: static; } }
.article { max-width: 72ch; }
.article h2 { font-size: 1.375rem; letter-spacing: -0.01em; margin: var(--s10) 0 var(--s3); scroll-margin-top: calc(var(--header-h) + 16px); }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.0625rem; margin: var(--s6) 0 var(--s2); }
.article p, .article li { color: var(--ink-2); line-height: 1.7; }
.article p + p { margin-top: var(--s3); }
.article ul, .article ol { padding-left: 1.3em; margin: var(--s3) 0; display: grid; gap: 6px; }
.article .callout { margin: var(--s5) 0; padding: var(--s4) var(--s5); border-radius: var(--r-lg); background: var(--primary-soft); border: 1px solid var(--primary-line); color: var(--ink); }
.article .callout p { color: var(--ink); }
.draft-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--warning-soft); border: 1px solid var(--warning-line); color: #6B3E06; font-size: var(--fs-small); margin-bottom: var(--s8); }
.draft-note .icon { flex: none; margin-top: 2px; }
/* Priskort */
.price-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
@media (max-width: 1000px) { .price-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .price-cards { grid-template-columns: minmax(0, 1fr); } }
.price-card { position: relative; padding: var(--s6); display: flex; flex-direction: column; gap: var(--s2); }
.price-card.popular { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-2); }
.price-card .pc-tag { position: absolute; top: -11px; left: var(--s6); background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; border-radius: var(--r-pill); padding: 2px 10px; }
.price-card .pc-tokens { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.price-card .pc-price { font-size: 1.0625rem; font-weight: 600; }
.price-card .pc-meta { font-size: var(--fs-small); color: var(--muted); }
/* Cookiebanner (§148) */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 260; max-width: 560px; margin-left: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-3); padding: var(--s5); }
.cookie[hidden] { display: none; }
.cookie h2 { font-size: 1rem; margin-bottom: 6px; }
.cookie p { font-size: var(--fs-small); color: var(--ink-2); }
.cookie .cluster { margin-top: var(--s4); gap: var(--s2); }
@media (max-width: 640px) { .cookie { left: 8px; right: 8px; bottom: 8px; } .cookie .cluster .btn { flex: 1 1 auto; } }
.cookie-row { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.cookie-row:last-child { border-bottom: 0; }
.cookie-row p { font-size: var(--fs-small); color: var(--muted); margin-top: 2px; }
.site-header .main-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.site-banner { font-size: var(--fs-small); padding: 10px 0; background: var(--info-soft); color: #173E70; border-bottom: 1px solid var(--info-line); }
.site-banner.warning { background: var(--warning-soft); color: #6B3E06; border-bottom-color: var(--warning-line); }
.site-banner .container { display: flex; gap: 10px; align-items: center; }
.site-banner .icon { width: 17px; height: 17px; flex: none; }
