/* =========================================================
   Forsida: tre hero-variantar og forsideseksjonar.
   Variant blir vald med ?hero=1|2|3 eller <html data-hero="…">.
   ========================================================= */

/* ---------- Vel variant ---------- */
.hero { display: none; }
html[data-hero="1"] .hero[data-variant="1"],
html[data-hero="2"] .hero[data-variant="2"],
html[data-hero="3"] .hero[data-variant="3"] { display: block; }

/* ---------- Felles hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgb(91 69 214 / 0.35), transparent 60%),
    radial-gradient(40rem 24rem at 0% 100%, rgb(156 140 255 / 0.12), transparent 60%),
    var(--c-ink-900);
  padding-block: clamp(3rem, 2rem + 6vw, 7rem);
}
.hero::before {
  /* skarpe diagonale linjer */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(-60deg, transparent 0 80px, rgb(255 255 255 / 0.025) 80px 82px);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--c-ink-600);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-paper-100);
}
.hero__eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent-light); }
.hero__title {
  margin: 0 0 var(--sp-5);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-3xl);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: #fff;
}
.hero__title em { font-style: normal; color: var(--c-accent-light); }
.hero__lead { max-width: 40ch; margin-bottom: var(--sp-6); font-size: var(--fs-md); line-height: 1.5; color: var(--c-paper-100); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__actions .btn { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.05em; text-transform: uppercase; }
.hero__parent { margin-top: var(--sp-5); font-size: var(--fs-sm); color: var(--c-grey-on-dark); }
.hero__parent a { color: #fff; font-weight: 700; }
@media (max-width: 479px) { .hero__actions .btn { width: 100%; } }

/* ---------- Variant 1: Liga ---------- */
.hero-v1__grid { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 960px) { .hero-v1__grid { grid-template-columns: 1.25fr 1fr; } }
.hero-v1__crests { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.hero-v1__crests a {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  padding: var(--sp-3);
  background: linear-gradient(160deg, var(--lag-surface) 55%, var(--lag-primary) 140%);
  border-radius: var(--radius-sm);
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
  transition: transform var(--dur) var(--ease);
}
.hero-v1__crests a:hover { transform: translateY(-6px); }
.hero-v1__crests img { width: 100%; height: auto; max-height: 100%; object-fit: contain; filter: drop-shadow(0 10px 24px rgb(0 0 0 / 0.45)); }
@media (min-width: 960px) {
  .hero-v1__crests li:nth-child(2) { transform: translateY(-2rem); }
}

/* ---------- Variant 2: Grunnprinsippet ---------- */
.hero[data-variant="2"] { text-align: left; }
.hero-v2__wordmark {
  position: absolute;
  right: -2vw;
  bottom: -0.18em;
  z-index: -1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 22vw, 22rem);
  line-height: 0.8;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgb(255 255 255 / 0.07);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.hero-v2__title { max-width: 16ch; }
.hero-v2__meta { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin: 0 0 var(--sp-6); padding: 0; list-style: none; color: var(--c-paper-100); font-weight: 600; }
.hero-v2__meta li::before { content: "■ "; color: var(--c-accent-light); font-size: 0.7em; vertical-align: 0.15em; }

/* ---------- Variant 3: Vel trinn ---------- */
.hero-v3__head { max-width: 46rem; margin-bottom: var(--sp-6); }
.hero-v3__title { font-size: clamp(2.5rem, 1.4rem + 5vw, 5.5rem); }
.hero-v3__choices { display: grid; gap: var(--sp-4); }
@media (min-width: 800px) { .hero-v3__choices { grid-template-columns: 1fr 1fr; } }
.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 18rem;
  padding: var(--sp-6);
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}
.choice:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.choice__grade { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.12em; text-transform: uppercase; }
.choice__title { margin: var(--sp-2) 0 var(--sp-3); font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); line-height: 0.95; }
.choice__steps { margin: 0 0 var(--sp-5); font-weight: 700; }
.choice__go { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 800; }
.choice__go::after { content: "→"; transition: transform var(--dur) var(--ease); }
.choice:hover .choice__go::after { transform: translateX(4px); }

.choice--u { background: var(--c-ink-800); color: #fff; border: 1px solid var(--c-ink-700); border-radius: 3px; }
.choice--u::before {
  content: ""; position: absolute; inset: 0 0 0 55%; z-index: -1;
  background: linear-gradient(115deg, transparent 0 20%, rgb(156 140 255 / 0.25) 20% 34%, transparent 34% 44%, rgb(156 140 255 / 0.12) 44% 50%, transparent 50%);
}
.choice--u .choice__grade, .choice--u .choice__go { color: var(--c-accent-light); }
.choice--u .choice__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; color: #fff; }

.choice--m { background: var(--c-accent-tint); color: var(--c-ink-900); border-radius: 28px; }
.choice--m::before {
  content: ""; position: absolute; right: -4rem; top: -4rem; width: 16rem; height: 16rem; z-index: -1;
  border-radius: 46% 54% 63% 37% / 42% 45% 55% 58%; background: #DCD5FF;
}
.choice--m::after {
  content: ""; position: absolute; right: 5rem; top: 2.5rem; width: 3rem; height: 3rem; z-index: -1;
  border-radius: 50%; background: var(--c-accent-dark); opacity: 0.85;
}
.choice--m .choice__grade, .choice--m .choice__go { color: var(--c-accent-dark); }
.choice--m .choice__title { font-family: var(--font-friendly); font-weight: 900; color: var(--c-ink-900); letter-spacing: -0.02em; }
.choice--m:focus-visible { outline-color: var(--c-accent-light); }

/* ---------- Variantvelar (berre i utkast, synleg med ?hero=) ---------- */
.hero-switch {
  position: fixed;
  left: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-1) var(--sp-1) var(--sp-3);
  background: #fff;
  color: var(--c-ink-900);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.hero-switch a {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--c-ink-900);
  text-decoration: none;
}
.hero-switch a[aria-current] { background: var(--c-accent-dark); color: #fff; }

/* ---------- Modell ---------- */
.model { display: grid; gap: var(--sp-5); }
@media (min-width: 960px) { .model { grid-template-columns: 1fr 1fr; } }
.model__card { padding: var(--sp-6); border-radius: var(--radius-lg); }
.model__card h3 { margin-bottom: var(--sp-2); }
.model__card > p { color: var(--text-muted); }
.model__card .progress-line { margin-top: var(--sp-5); }
@media (min-width: 640px) {
  .model__card .progress-line { grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
  .model__card .progress-line li { clip-path: none; margin: 0; border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); flex-direction: row; align-items: center; }
  .model__card .progress-line li:first-child { padding-left: var(--sp-4); }
}
.model__card--m { background: var(--c-accent-tint); }
.model__card--m h3 { font-family: var(--font-friendly); font-weight: 900; }
.model__card--u { background: var(--c-ink-900); }
.model__card--u h3 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); line-height: 1; }

/* ---------- Eigenskapar-teaser ---------- */
.efl-teaser { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 960px) { .efl-teaser { grid-template-columns: 1fr 1fr; } }
.efl-arc { display: grid; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.efl-arc li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.efl-arc__count { font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; line-height: 1; color: var(--accent); text-align: center; }
.efl-arc__name { display: block; font-size: var(--fs-md); font-weight: 750; }
.efl-arc__desc { display: block; font-size: var(--fs-sm); color: var(--text-muted); }
.efl-arc li:nth-child(2) { margin-left: clamp(0rem, 3vw, 2rem); }
.efl-arc li:nth-child(3) { margin-left: clamp(0rem, 6vw, 4rem); }

/* ---------- Foreldre-band ---------- */
.parents { display: grid; gap: var(--sp-6); }
@media (min-width: 960px) { .parents { grid-template-columns: 1.1fr 1fr; align-items: start; } }

/* Optisk lik storleik: Hawks er brei, Bucks og Sharks er høge. Breidda blir justert slik at merka verkar like store. */
.hero-v1__crests [data-lag="sandnes"] img { width: 80%; }
.hero-v1__crests [data-lag="matre"] img { width: 90%; }
