/* Offentlig forside (landing) og innlogging – bygger på variablene i style.css */

.top-nav { display: flex; align-items: center; gap: 18px; }
.nav-link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; }
.nav-link:hover { color: var(--text); }
.login-btn { padding: 9px 18px; font-size: .95rem; }

.l-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.l-hero {
  position: relative; overflow: hidden; padding: 64px 0 40px;
  background:
    radial-gradient(700px 420px at 85% 20%, rgba(245, 179, 1, .14), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(76, 141, 255, .16), transparent 60%);
}
.l-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.l-hero h1 { font-size: 3.2rem; line-height: 1.06; letter-spacing: -.03em; margin: 0 0 18px; }
.l-lead { font-size: 1.15rem; color: #c3cfe6; max-width: 54ch; margin: 0 0 28px; }

/* Telefon */
.phone-stage { display: flex; justify-content: center; perspective: 1600px; padding: 10px 0 30px; }
.phone {
  width: 300px; border-radius: 42px; padding: 14px 12px 22px; position: relative;
  background: linear-gradient(160deg, #1c2740, #0b111d 60%);
  border: 1px solid #33456c;
  box-shadow: 0 0 0 6px #0a0f19, 0 0 0 7px #2a3a5a, 0 40px 80px rgba(0, 0, 0, .55), 0 0 70px rgba(245, 179, 1, .18);
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(4deg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: rotateY(-14deg) rotateX(6deg) rotateZ(4deg) translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .phone { animation: none; } }
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; background: #05080e; border-radius: 0 0 14px 14px; }
.phone-status { display: flex; justify-content: space-between; font-size: .72rem; font-weight: 700; color: #dbe5f7; padding: 2px 14px 12px; }
.p-top { display: flex; justify-content: space-between; align-items: center; padding: 0 6px 10px; }
.p-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .82rem; }
.p-brand svg { width: 16px; height: 16px; }
.p-clock { font-size: .72rem; font-weight: 800; background: var(--card2); border: 1px solid var(--line); border-radius: 8px; padding: 3px 7px; }
.p-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.p-progress { height: 4px; background: var(--card2); border-radius: 9px; overflow: hidden; margin-bottom: 10px; }
.p-progress div { width: 4%; height: 100%; background: linear-gradient(90deg, var(--blue), var(--accent)); }
.p-head { display: flex; justify-content: space-between; align-items: center; font-size: .66rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.p-chip { background: rgba(76, 141, 255, .14); color: #a9c6ff; border: 1px solid rgba(76, 141, 255, .3); padding: 2px 7px; border-radius: 99px; font-weight: 700; }
.p-q { font-weight: 800; font-size: .86rem; line-height: 1.3; margin-bottom: 4px; }
.p-hint { font-size: .62rem; color: var(--muted); margin-bottom: 9px; }
.p-opt { display: flex; gap: 8px; align-items: flex-start; font-size: .7rem; line-height: 1.3; padding: 8px; margin-bottom: 6px; border-radius: 9px; background: var(--card2); border: 1px solid var(--line); }
.p-opt span { flex: none; width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-weight: 800; font-size: .6rem; background: #0f1828; border: 1px solid var(--line); color: var(--muted); }
.p-opt.sel { border-color: var(--accent); background: rgba(245, 179, 1, .08); }
.p-opt.sel span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.p-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.p-btn { text-align: center; font-size: .7rem; font-weight: 800; padding: 8px; border-radius: 9px; background: #233254; border: 1px solid #35548c; }
.p-btn.next { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Nøkkeltall */
.stat-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px;
  background: rgba(24, 35, 58, .85); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(8px);
}
.stat-bar div { text-align: center; padding: 20px 10px; }
.stat-bar div + div { border-left: 1px solid var(--line); }
.stat-bar b { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.stat-bar b.acc { color: var(--accent); }
.stat-bar span { color: var(--muted); font-size: .88rem; }

/* Seksjoner */
.l-section { padding: 56px 0 8px; scroll-margin-top: 40px; } /* så overskriften ikke havner under den faste menyen */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.l-h2 { font-size: 2rem; letter-spacing: -.02em; margin: 0 0 8px; }
.l-sub { color: var(--muted); margin: 0 0 24px; font-size: 1.05rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.feature b { display: block; margin: 10px 0 4px; font-size: 1.05rem; }
.feature span { color: var(--muted); font-size: .93rem; }
.f-ico { width: 42px; height: 42px; display: grid; place-items: center; font-size: 1.3rem; border-radius: 12px; background: rgba(245, 179, 1, .1); border: 1px solid rgba(245, 179, 1, .3); }
.access {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 32px; border-radius: 20px; border: 1px solid #2c3f66;
  background: radial-gradient(500px 240px at 100% 0%, rgba(245, 179, 1, .14), transparent 60%), linear-gradient(180deg, #17233b, #111a2c);
}
.access p { margin: 0; color: #c3cfe6; max-width: 56ch; }
.landing .site-footer { margin-top: 56px; }
.landing .footer-inner { max-width: 1120px; padding-left: 20px; padding-right: 20px; }

/* Innlogging */
.login-wrap { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 40px 16px; }
.login-card { width: 100%; max-width: 400px; }
.login-card h1 { font-size: 1.7rem; margin: 10px 0 6px; }
.login-logo { width: 46px; height: 46px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input {
  font: inherit; font-size: 1rem; color: var(--text); background: #0f1828; border: 1.5px solid var(--line);
  border-radius: 10px; padding: 12px 14px; outline: none; transition: border-color .15s;
}
.field input:focus { border-color: var(--accent); }
.login-error { min-height: 1.4em; color: #ffb4b4; font-weight: 600; font-size: .92rem; margin: 0 0 10px; }
.login-card .btn { width: 100%; }
.login-foot { margin: 18px 0 0; font-size: .85rem; color: var(--muted); }
.login-foot a { color: var(--accent); }

@media (max-width: 900px) {
  .l-hero-grid { grid-template-columns: 1fr; }
  .l-hero { padding-top: 36px; }
  .l-hero h1 { font-size: 2.4rem; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-link { display: none; }
  .l-wrap { padding: 0 16px; }
  .l-hero h1 { font-size: 2rem; }
  .l-lead { font-size: 1rem; }
  .phone { width: 270px; transform: rotateZ(3deg); }
  @keyframes float { 50% { transform: rotateZ(3deg) translateY(-8px); } }
  .stat-bar { grid-template-columns: 1fr 1fr; }
  .stat-bar div:nth-child(3) { border-left: 0; }
  .stat-bar div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat-bar b { font-size: 1.5rem; }
  .l-section { padding-top: 40px; }
  .l-h2 { font-size: 1.55rem; }
  .features { grid-template-columns: 1fr; }
  .access { padding: 22px; }
  .access .btn { width: 100%; }
}

/* E-postlenke for tilgang */
a.mail { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
a.mail:hover { text-decoration: underline; }
.access-mail { margin-top: 10px !important; }

/* Regodkjenning */
.recert {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
  padding: 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line);
}
.recert p { margin: 0 0 10px; color: #c3cfe6; max-width: 70ch; }
.recert p:last-child { margin-bottom: 0; }
.recert-badge {
  width: 92px; height: 92px; border-radius: 22px; display: grid; place-items: center; text-align: center;
  font-size: 1.5rem; font-weight: 800; color: var(--accent-ink); background: var(--accent);
  box-shadow: 0 10px 30px rgba(245, 179, 1, .25);
}
@media (max-width: 600px) {
  .recert { grid-template-columns: 1fr; padding: 22px; gap: 14px; }
  .recert-badge { width: 72px; height: 72px; font-size: 1.2rem; border-radius: 18px; }
}
