/* wa-lint: skip */
/* Forside scene 4 — funktions-grid + modal. Porteret fra cd-app.css (.features-grid/.feat),
   ligestillede kort, tokeniseret. Scene-stagen giver fuld-viewport; scenen er scrollable. */

.scene--features .scene__inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.funk-head { margin-bottom: var(--space-2xl); text-align: center; }
.funk-head__kicker {
  font-size: 13px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px;
}
.funk-head__title {
  font-size: clamp(30px, 4vw, 48px); font-weight: 300;
  color: var(--primary); margin: 0; line-height: 1.05;
  letter-spacing: -0.03em; text-wrap: balance;
}
.funk-head__title b { font-weight: 700; color: var(--accent); }
.funk-head__sub { font-size: 17px; color: var(--muted); max-width: 56ch; margin: 16px auto 0; }

.funk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.funk-card {
  /* wa-button appearance=accent tegner sin interne .button med
     fill-loud (mørk accent) - som er forkert her, fordi funk-card er en
     kort-flade, ikke en accent-knap. Neutralisér wa-button's interne bg
     og lad host'ens surface-bg + tekstfarver dominere. */
  --wa-color-fill-loud: transparent;
  --wa-color-neutral-fill-loud: transparent;
  --wa-color-on-loud: var(--primary);
  --wa-color-neutral-on-loud: var(--primary);
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; flex-direction: column;
  min-height: 200px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  text-align: left; cursor: pointer; font: inherit; color: inherit;
}
/* wa-button slotter alt indhold i ::part(label) der default er inline-block -
   icon, title, text og tag stables i column via host'ens display:flex, men
   den stiles indeholder slot'en, ikke direkte børn. Replicér column-layout
   inde i label-part'en. */
.funk-card::part(label) {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.funk-card::part(base) {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  border: none;
  /* wa-button's .button sætter white-space:nowrap som forhindrer card-tekst
     i at wrappe over flere linjer. */
  white-space: normal;
  text-align: left;
}
.funk-card:hover, .funk-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px -10px rgba(49,79,89,0.15);
  outline: none;
}
.funk-card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(127,190,198,0.18); color: var(--primary);
  margin-bottom: auto;
}
.funk-card__icon svg { width: 22px; height: 22px; }
.funk-card:hover .funk-card__icon { background: var(--primary); color: rgb(255, 255, 255); }
.funk-card__title {
  margin-top: 40px;
  font-size: 19px; font-weight: 700; color: var(--primary); letter-spacing: -0.015em;
}
.funk-card__text { margin: 6px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.funk-card__tag {
  margin-top: 16px; align-self: flex-start;
  font-size: 12px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: rgba(184,90,58,0.08);
}
.funk-card--snart .funk-card__tag { color: var(--primary); background: rgba(127,190,198,0.18); }

/* Modal */
.funk-modal {
  border: none; border-radius: var(--radius-lg); padding: 0;
  width: min(520px, 92vw); background: var(--surface); color: var(--text, var(--ink));
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.35);
}
.funk-modal::backdrop { background: rgba(20,30,36,0.55); backdrop-filter: blur(3px); }
.funk-modal__inner { padding: 32px; }
.funk-modal__tag {
  font-size: 12px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: .06em;
}
.funk-modal__title { font-size: 26px; font-weight: 700; color: var(--primary); margin: 8px 0 12px; }
.funk-modal__body { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 0 24px; }
.funk-modal__more {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--accent); text-decoration: none;
}
.funk-modal__more:hover { text-decoration: underline; }
.funk-modal__close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: var(--radius-pill);
  border: none; background: rgba(0,0,0,0.05); color: var(--primary);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.funk-modal__close:hover { background: rgba(0,0,0,0.1); }
