/* Dvale – forsiden (landing.html). Farger og mål er hentet fra designet. */

:root {
  --blaa: #2282FF;
  --blaa-mork: #0D5FC8;
  --blaa-dyp: #04306B;
  --natt: #070B14;
  --natt-kort: #0F1626;
  --tekst: #0B0D12;
  --tekst-gra: #4A5263;
  --natt-tekst: #EEF2FA;
  --natt-gra: #9AA4B8;
  --gul: #FFB547;
  --mono: 'JetBrains Mono', monospace;
}

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--tekst);
  font-family: 'Geist', system-ui, sans-serif;
}

a { color: var(--blaa-mork); }
a:hover { color: var(--blaa-dyp); }

.innhold {
  max-width: 1200px;
  margin: 0 auto;
}

/* Små overskrifter over titlene ("HOW IT WORKS" osv.) */
.etikett {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blaa-mork);
}

h1, h2 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 800;
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h3, p { margin: 0; }

.seksjon-topp {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
}

/* ---------- Meny øverst ---------- */
.meny {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.meny img { height: 28px; width: auto; display: block; }

.meny nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}

.meny nav a { color: var(--tekst); text-decoration: none; }

/* På mobil viser vi bare knappen, ellers blir menyen for lang */
@media (max-width: 600px) {
  .meny nav { gap: 20px; }
  .meny nav .bare-pc { display: none; }
}

.knapp-svart {
  background: var(--tekst);
  color: #FFFFFF !important;
  padding: 12px 20px;
  border-radius: 4px;
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
}

/* ---------- Toppen (hero) ---------- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 64px;
  align-items: center;
}

.hero-tekst {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero h1 {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-ingress {
  font-size: 20px;
  line-height: 1.5;
  color: var(--tekst-gra);
  max-width: 520px;
}

.enheter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: var(--tekst-gra);
}

.enheter .merke {
  padding: 6px 12px;
  border: 1px solid #DDE2EA;
  border-radius: 4px;
  font-weight: 500;
  color: var(--tekst);
}

/* ---------- App Store-knappen ---------- */
.app-store-knapp {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  background: #000000;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

/* Hvit variant på den mørke bunnen av siden */
.app-store-knapp.lys {
  background: #FFFFFF;
  color: #000000;
}

.gratis {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--blaa-mork);
}

/* ---------- Ledertavle-kortet ---------- */
.tavle {
  background: var(--natt);
  border-radius: 6px;
  padding: 28px;
  color: var(--natt-tekst);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.tavle-topp {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.tavle-tittel { font-family: var(--mono); font-weight: 800; font-size: 22px; }
.tavle-dato { font-family: var(--mono); font-size: 13px; color: var(--natt-gra); }

.tavle-rader { display: flex; flex-direction: column; gap: 14px; }

.rad {
  display: grid;
  grid-template-columns: 28px 1fr 44px;
  gap: 12px;
  align-items: center;
}

.rad-nr { font-family: var(--mono); font-size: 14px; color: var(--natt-gra); }
.rad-midt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rad-navn { font-size: 15px; font-weight: 500; }
.rad-spor { height: 10px; background: #141C2E; border-radius: 2px; }
.rad-strek { height: 10px; border-radius: 2px; }
.rad-score { font-family: var(--mono); font-weight: 700; font-size: 18px; text-align: right; }

.tavle-bunn {
  border-top: 1px solid #1C2538;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--natt-gra);
}

.tavle-bunn .streak { font-family: var(--mono); color: var(--gul); }

.stjerne {
  position: absolute;
  border-radius: 50%;
  background: #FFFFFF;
}

/* ---------- Strekene fra logoen (skillelinje) ---------- */
.streker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: max(24px, calc((100% - 1152px) / 2));
}

.streker div { height: 18px; }

/* ---------- Slik fungerer det (mørk) ---------- */
.natt {
  background: var(--natt);
  color: var(--natt-tekst);
  padding: 112px 24px;
}

.natt .etikett { color: #6FAEFF; }

.natt .innhold {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.steg-liste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}

.steg {
  background: var(--natt-kort);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steg-nr { font-family: var(--mono); font-size: 48px; font-weight: 800; color: var(--blaa); }
.steg h3 { font-size: 22px; font-weight: 600; }
.steg p { font-size: 16px; line-height: 1.55; color: var(--natt-gra); }

/* ---------- Ligaer ---------- */
.ligaer { padding: 112px 24px; }

.ligaer .innhold {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.liga-liste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}

.liga {
  border: 1.5px solid var(--tekst);
  border-radius: 4px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 220px;
  box-sizing: border-box;
}

.liga-strek { height: 10px; }
.liga-tekst { display: flex; flex-direction: column; gap: 8px; }
.liga h3 { font-family: var(--mono); font-size: 24px; font-weight: 800; }
.liga p { font-size: 15px; line-height: 1.5; color: var(--tekst-gra); }

.liga.mork { background: var(--tekst); color: #FFFFFF; }
.liga.mork p { color: #B8C0CE; }

/* ---------- Profil-tall ---------- */
.profil { padding: 0 24px 112px; }

.profil-boks {
  max-width: 1200px;
  margin: 0 auto;
  background: #F2F5FA;
  padding: clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 40px;
}

.tall-kort { display: flex; flex-direction: column; gap: 12px; }

.stort-tall {
  font-family: var(--mono);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.tall-kort h3 { font-size: 20px; font-weight: 600; }
.tall-kort p { font-size: 15px; line-height: 1.55; color: var(--tekst-gra); }

.liten-merknad {
  max-width: 1200px;
  margin: 12px auto 0;
  font-size: 13px;
  color: #5B6474;
}

/* ---------- Wrapped (blå) ---------- */
.wrapped {
  background: var(--blaa);
  color: #FFFFFF;
  padding: 112px 24px;
  overflow: hidden;
}

.wrapped .innhold {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px;
  align-items: center;
}

.wrapped .etikett { color: var(--blaa-dyp); }

.wrapped h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.wrapped-tekst { display: flex; flex-direction: column; gap: 20px; }
.wrapped-tekst p { font-size: 19px; line-height: 1.5; max-width: 480px; }

.wrapped-kort { display: flex; gap: 16px; justify-content: center; }

.story {
  width: 180px;
  height: 320px;
  border-radius: 4px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--mono);
}

.story-liten { font-size: 11px; }
.story-stor { font-weight: 800; }

.story.mork { background: var(--natt); transform: rotate(-6deg); }
.story.mork .story-liten { color: var(--natt-gra); }
.story.mork .story-stor { font-size: 34px; color: #FFFFFF; }

.story.lys { background: #FFFFFF; transform: rotate(4deg) translateY(24px); }
.story.lys .story-liten { color: var(--tekst-gra); }
.story.lys .story-stor { font-size: 26px; color: var(--tekst); }

/* ---------- Bli med (bunnen) ---------- */
.bli-med {
  background: var(--natt);
  color: var(--natt-tekst);
  padding: 120px 24px;
}

.bli-med-midt {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;
}

.bli-med-midt img { height: 56px; width: auto; }

.bli-med h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}


.bunntekst {
  max-width: 1200px;
  margin: 96px auto 0;
  padding-top: 24px;
  border-top: 1px solid #1C2538;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 14px;
  color: var(--natt-gra);
}

.bunntekst span { display: flex; gap: 20px; }
.bunntekst a { color: var(--natt-gra); }

/* ---------- Animasjoner ---------- */
@keyframes dv-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dv-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes dv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.rad-strek { transform-origin: left center; animation: dv-grow 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.stjerne { animation: dv-twinkle 3.2s ease-in-out infinite; }
.tavle { animation: dv-float 6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .rad-strek, .stjerne, .tavle { animation: none; }
}
