/* btjek_hero_forside – Lovable cat-02 #06 (variant standard) + routes/index.tsx hero (variant situation) */

/* section relative overflow-hidden border-b border-border (standard: bg-background) */
.tjek-hero-forside {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--tjek-border);
}

.tjek-hero-forside.tjek-hero-forside--standard {
  background-color: var(--tjek-background);
}

/* standard: container-site relative grid gap-10 py-14 md:py-20 lg:grid-cols-12 lg:items-center
   situation: container-site relative grid gap-10 py-12 md:py-16 lg:grid-cols-12 lg:gap-12 lg:py-20 */
.tjek-hero-forside .tjek-hero-forside__grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.tjek-hero-forside.tjek-hero-forside--situation .tjek-hero-forside__grid {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.tjek-hero-forside .tjek-hero-forside__text,
.tjek-hero-forside .tjek-hero-forside__media {
  min-width: 0;
}

/* H1 standard: mt-4 text-3xl font-extrabold sm:text-4xl lg:text-[2.9rem] */
.tjek-hero-forside .tjek-hero-forside__title {
  margin-top: 1rem;
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 800;
}

/* H1 situation: mt-6 text-[2.1rem] font-extrabold leading-[1.08] md:text-[3.1rem] */
.tjek-hero-forside.tjek-hero-forside--situation .tjek-hero-forside__title {
  margin-top: 1.5rem;
  font-size: 2.1rem;
  line-height: 1.08;
}

/* Intro: mt-5 max-w-xl text-lg text-muted-foreground (situation: mt-6 … md:text-xl) */
.tjek-hero-forside .tjek-hero-forside__intro {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: calc(1.75 / 1.125);
  color: var(--tjek-muted-foreground);
}

.tjek-hero-forside.tjek-hero-forside--situation .tjek-hero-forside__intro {
  margin-top: 1.5rem;
}

/* Knapper: mt-7 flex flex-wrap gap-3 (situation: mt-8) */
.tjek-hero-forside .tjek-hero-forside__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tjek-hero-forside.tjek-hero-forside--situation .tjek-hero-forside__actions {
  margin-top: 2rem;
}

/* ProofStats: mt-8 grid w-full grid-cols-3 gap-4 border-t border-border pt-5 */
.tjek-hero-forside .tjek-hero-forside__stats {
  margin-top: 2rem;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  border-top: 1px solid var(--tjek-border);
  padding-top: 1.25rem;
}

/* font-display text-lg font-extrabold text-ink sm:text-xl */
.tjek-hero-forside .tjek-hero-forside__stat-value {
  font-family: var(--tjek-font-display);
  font-size: 1.125rem;
  line-height: calc(1.75 / 1.125);
  font-weight: 800;
  color: var(--tjek-ink);
}

/* mt-0.5 text-xs text-muted-foreground sm:text-sm */
.tjek-hero-forside .tjek-hero-forside__stat-label {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--tjek-muted-foreground);
}

/* Foto standard: overflow-hidden rounded-2xl border › img aspect-[4/3] w-full object-cover */
.tjek-hero-forside .tjek-hero-forside__frame {
  position: relative;
}

.tjek-hero-forside.tjek-hero-forside--standard .tjek-hero-forside__frame {
  overflow: hidden;
  border-radius: var(--tjek-radius-2xl);
  border: 1px solid var(--tjek-border);
}

.tjek-hero-forside .tjek-hero-forside__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Foto situation: aspect-[4/5] w-full rounded-2xl object-cover */
.tjek-hero-forside.tjek-hero-forside--situation .tjek-hero-forside__image {
  aspect-ratio: 4 / 5;
  border-radius: var(--tjek-radius-2xl);
}

/* "Hvor står du?": fieldset mt-10 rounded-2xl border border-border bg-card p-5 md:p-6 */
.tjek-hero-forside .tjek-hero-forside__picker {
  margin: 2.5rem 0 0;
  min-width: 0;
  border: 1px solid var(--tjek-border);
  border-radius: var(--tjek-radius-2xl);
  background-color: var(--tjek-card);
  padding: 1.25rem;
}

/* legend eyebrow px-2 text-pine */
.tjek-hero-forside .tjek-hero-forside__legend {
  display: block;
  margin: 0;
  border: 0;
  padding: 0 0.5rem;
  color: var(--tjek-pine);
  width: auto;
}

/* grid gap-2 */
.tjek-hero-forside .tjek-hero-forside__options {
  display: grid;
  gap: 0.5rem;
}

/* label flex min-h-12 cursor-pointer items-center gap-3 rounded-lg border px-4 py-2.5 text-[0.95rem] font-medium transition-colors duration-200 */
.tjek-hero-forside .tjek-hero-forside__option {
  display: flex;
  min-height: 3rem;
  cursor: pointer;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--tjek-border);
  border-radius: var(--tjek-radius-lg);
  padding: 0.625rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--tjek-ink);
  transition: color 200ms cubic-bezier(0.4, 0, 0.2, 1), background-color 200ms cubic-bezier(0.4, 0, 0.2, 1), border-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* uvalgt: hover:border-ink/30 */
.tjek-hero-forside .tjek-hero-forside__option:hover {
  border-color: color-mix(in oklab, var(--tjek-ink) 30%, transparent);
}

/* valgt: border-pine bg-sage/50 text-ink (klasse sættes af JS; :has() som CSS-fallback) */
.tjek-hero-forside .tjek-hero-forside__option.is-checked,
.tjek-hero-forside .tjek-hero-forside__option:has(.tjek-hero-forside__radio:checked) {
  border-color: var(--tjek-pine);
  background-color: color-mix(in oklab, var(--tjek-sage) 50%, transparent);
  color: var(--tjek-ink);
}

/* size-4 accent-[var(--color-pine)] */
.tjek-hero-forside .tjek-hero-forside__radio {
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--tjek-pine);
  cursor: pointer;
}

/* mt-4 flex flex-col gap-3 border-t border-border pt-4 sm:flex-row sm:items-center sm:justify-between */
.tjek-hero-forside .tjek-hero-forside__answers {
  margin-top: 1rem;
  border-top: 1px solid var(--tjek-border);
  padding-top: 1rem;
}

.tjek-hero-forside .tjek-hero-forside__answer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tjek-hero-forside .tjek-hero-forside__answer[hidden] {
  display: none;
}

/* text-sm text-muted-foreground */
.tjek-hero-forside .tjek-hero-forside__answer-text {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--tjek-muted-foreground);
}

/* inline-flex shrink-0 items-center gap-1.5 text-sm font-semibold text-pine hover:underline */
.tjek-hero-forside .tjek-hero-forside__answer-link,
.tjek-hero-forside .tjek-hero-forside__answer-link:focus {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: var(--tjek-pine);
}

.tjek-hero-forside .tjek-hero-forside__answer-link:hover {
  color: var(--tjek-pine);
  text-decoration: underline;
}

.tjek-hero-forside .tjek-hero-forside__answer-icon {
  width: 1rem;
  height: 1rem;
}

/* Eksempelkort: absolute bottom-4 left-4 right-4 rounded-xl border bg-card/95 p-4 backdrop-blur
   md:bottom-6 md:left-6 md:right-auto md:w-72 */
.tjek-hero-forside .tjek-hero-forside__card {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  border: 1px solid var(--tjek-border);
  border-radius: var(--tjek-radius-xl);
  background-color: color-mix(in oklab, var(--tjek-card) 95%, transparent);
  padding: 1rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.tjek-hero-forside .tjek-hero-forside__card-eyebrow {
  color: var(--tjek-muted-foreground);
}

/* mt-3 space-y-2 text-sm */
.tjek-hero-forside .tjek-hero-forside__card-list {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* li flex items-center justify-between gap-3 */
.tjek-hero-forside .tjek-hero-forside__card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* rounded-full px-2 py-0.5 text-xs font-semibold bg-muted text-muted-foreground (første: bg-sage text-pine) */
.tjek-hero-forside .tjek-hero-forside__badge {
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  background-color: var(--tjek-muted);
  color: var(--tjek-muted-foreground);
  white-space: nowrap;
}

.tjek-hero-forside .tjek-hero-forside__badge--done {
  background-color: var(--tjek-sage);
  color: var(--tjek-pine);
}

@media (min-width: 640px) {
  .tjek-hero-forside .tjek-hero-forside__title {
    font-size: 2.25rem;
    line-height: calc(2.5 / 2.25);
  }

  .tjek-hero-forside.tjek-hero-forside--situation .tjek-hero-forside__title {
    font-size: 2.1rem;
    line-height: 1.08;
  }

  .tjek-hero-forside .tjek-hero-forside__stat-value {
    font-size: 1.25rem;
    line-height: calc(1.75 / 1.25);
  }

  .tjek-hero-forside .tjek-hero-forside__stat-label {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .tjek-hero-forside .tjek-hero-forside__answer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 768px) {
  .tjek-hero-forside .tjek-hero-forside__grid {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .tjek-hero-forside.tjek-hero-forside--situation .tjek-hero-forside__grid {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .tjek-hero-forside.tjek-hero-forside--situation .tjek-hero-forside__title {
    font-size: 3.1rem;
  }

  .tjek-hero-forside.tjek-hero-forside--situation .tjek-hero-forside__intro {
    font-size: 1.25rem;
    line-height: calc(1.75 / 1.25);
  }

  .tjek-hero-forside .tjek-hero-forside__picker {
    padding: 1.5rem;
  }

  .tjek-hero-forside .tjek-hero-forside__card {
    bottom: 1.5rem;
    left: 1.5rem;
    right: auto;
    width: 18rem;
  }
}

@media (min-width: 1024px) {
  .tjek-hero-forside .tjek-hero-forside__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
  }

  .tjek-hero-forside.tjek-hero-forside--situation .tjek-hero-forside__grid {
    gap: 3rem;
    align-items: stretch;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .tjek-hero-forside .tjek-hero-forside__text,
  .tjek-hero-forside .tjek-hero-forside__media {
    grid-column: span 6 / span 6;
  }

  .tjek-hero-forside.tjek-hero-forside--situation .tjek-hero-forside__text {
    padding-top: 2rem;
  }

  .tjek-hero-forside.tjek-hero-forside--standard .tjek-hero-forside__title {
    font-size: 2.9rem;
  }
}
