/*
 * Driftpilot promo
 * Ryddet og optimalisert versjon
 */

:root {
  --blue-950: #071b35;
  --blue-900: #0d2a52;
  --blue-800: #123f7a;
  --blue-700: #2563eb;
  --blue-600: #2f72ff;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --green-100: #dcfce7;
  --green-700: #15803d;
  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --amber-700: #b45309;
  --indigo-100: #e0e7ff;
  --indigo-700: #4338ca;
  --text: #111827;
  --muted: #4b5563;
  --muted-soft: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --shadow: 0 18px 45px -24px rgba(15, 23, 42, 0.22);
  --shadow-strong: 0 28px 70px -32px rgba(7, 27, 53, 0.35);
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1120px;
  --font-sans: Helvetica, "Helvetica Neue", Arial, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a,
button {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--amber-400);
  color: var(--blue-950);
  border-radius: 10px;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.page-top-anchor {
  position: absolute;
  top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.6rem;
}

.logo {
  display: inline-flex;
  line-height: 0;
}

.logo-img {
  width: auto;
  height: 2.2rem;
  max-width: min(52vw, 210px);
}

.logo-img--footer {
  height: 2rem;
  margin-inline: auto;
  filter: brightness(0) invert(1);
}

.nav-toggle {
  display: none;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue-900);
}

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 12px 24px -18px rgba(37, 99, 235, 0.8);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: #fff;
  background: var(--blue-600);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 6.8rem;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 30%),
    radial-gradient(circle at left 30%, rgba(96, 165, 250, 0.18), transparent 32%),
    linear-gradient(135deg, #071b35 0%, #0e3567 55%, #2563eb 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(20rem, 0.88fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.hero-copy {
  display: grid;
  align-content: start;
  max-width: 42rem;
  min-width: 0;
  padding-top: 0.85rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.65rem 1rem;
  margin-bottom: 1.35rem;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  color: #fff1c2;
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-kicker {
  margin: 0 0 0.55rem;
  color: #bfdbfe;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1.15rem;
  max-width: none;
  font-size: clamp(1.75rem, 3.4vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.lead {
  margin: 0;
  max-width: 40rem;
  color: #dbeafe;
  font-size: 1.14rem;
  line-height: 1.7;
}

.lead strong {
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.35rem;
  padding: 0.95rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: #fff;
  color: var(--blue-900);
  box-shadow: 0 18px 36px -24px rgba(255, 255, 255, 0.85);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #f8fbff;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.11);
}

.hero-aside {
  display: grid;
  gap: 1.1rem;
  align-content: start;
  justify-self: end;
  width: min(100%, 24rem);
}

.hero-screenshot-trigger {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
}

.hero-screenshot {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-strong);
}

.hero-screenshot img {
  width: 100%;
  height: auto;
}

.hero-screenshot-hint {
  display: inline-block;
  margin-top: 0.7rem;
  color: #dbeafe;
  font-size: 0.88rem;
}

.hero-pilot-card {
  width: 100%;
  padding: 1.35rem;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(12px);
}

.hero-pilot-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.hero-pilot-head i {
  color: var(--amber-400);
}

.hero-pilot-head h2 {
  margin: 0;
  font-size: 1.08rem;
}

.hero-pilot-points {
  display: grid;
  gap: 0.7rem;
  color: #dbeafe;
  font-size: 0.98rem;
}

.hero-pilot-points p {
  margin: 0;
}

.hero-pilot-points i {
  margin-right: 0.55rem;
  color: var(--amber-400);
}

.hero-pilot-link {
  display: block;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: var(--amber-400);
  color: var(--blue-950);
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
}

.hero-pilot-link:hover,
.hero-pilot-link:focus-visible {
  background: #ffd25e;
}

.section,
.contact-section {
  padding: 5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #f8fafc 0%, #f3f7fb 100%);
}

.section-title {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-intro {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.section-intro.tight {
  max-width: 38rem;
}

.section-center,
.section-heading,
.contact-header {
  max-width: 48rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.value-grid,
.feature-grid,
.apps-row,
.process-grid,
.contact-stats {
  display: grid;
  gap: 1.2rem;
}

.value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#hva .section-title,
#felt-kart .section-title,
#moduler .section-title,
.surfaces-section .section-title,
#slik .section-title {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: clamp(1.875rem, 3.2vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 700;
}

.value-item,
.feature,
.app-tile,
.process-item,
.contact-stat {
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.value-item {
  border: 0;
  text-align: center;
}

.value-item h3,
.feature h3,
.app-tile h3,
.process-item h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

.value-item p,
.feature p,
.app-tile p,
.process-item p,
.contact-stat-label {
  margin: 0;
  color: var(--muted);
}

.value-icon,
.feature-icon,
.process-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  margin-bottom: 1rem;
  border-radius: 18px;
  font-size: 1.2rem;
}

.value-icon {
  margin-inline: auto;
}

.value-icon-blue,
.feature-icon,
.process-icon-blue {
  background: var(--blue-100);
  color: var(--blue-700);
}

.value-icon-green,
.process-icon-green {
  background: var(--green-100);
  color: var(--green-700);
}

.value-icon-amber,
.process-icon-amber {
  background: var(--amber-100);
  color: var(--amber-700);
}

.process-icon-indigo {
  background: var(--indigo-100);
  color: var(--indigo-700);
}

.split-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.95fr);
  gap: 2rem;
  align-items: center;
}

.split-copy {
  max-width: 40rem;
}

.checklist {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.checklist li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--blue-700);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

.checklist strong {
  color: var(--text);
}

.mock-map-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.mock-map {
  position: relative;
  aspect-ratio: 1.18 / 1;
  background-color: #e8f0f7;
  background-image: url("hamar-map-bg.png");
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
}

.mock-pin {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--blue-700);
  box-shadow: 0 10px 18px -10px rgba(15, 23, 42, 0.9);
}

.mock-pin-a {
  left: 44%;
  top: 42%;
}

.mock-pin-b {
  left: 56%;
  top: 45%;
}

.mock-pin-c {
  left: 64%;
  top: 52%;
}

.mock-map-attribution {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 2;
  display: inline-flex;
  max-width: calc(100% - 1.4rem);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #475569;
  font-size: 0.72rem;
  line-height: 1.2;
  backdrop-filter: blur(6px);
}

.mock-map-attribution a {
  color: inherit;
  text-decoration: none;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.modules-section {
  background: #fff;
}

.feature {
  border: 0;
  background: #f3f7fc;
  text-align: center;
}

.feature-icon {
  margin-inline: auto;
}

.surfaces-section {
  background: #f3f7fb;
}

.apps-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-tile {
  position: relative;
}

.app-tile-highlight {
  border-color: rgba(37, 99, 235, 0.28);
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.app-tag {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-800);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.process-section {
  background: #fff;
}

.process-grid {
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  padding-top: 2.2rem;
}

.process-grid::before {
  content: "";
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 0.95rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0.4), rgba(37, 99, 235, 0.18));
}

.process-item {
  border: 0;
  position: relative;
  text-align: center;
}

.process-step {
  position: absolute;
  left: 50%;
  top: -2.2rem;
  transform: translateX(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-800);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
}

.contact-section {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.14), transparent 28%),
    linear-gradient(135deg, #071b35 0%, #0f315f 55%, #163f77 100%);
}

.contact-section .section-title,
.contact-section .section-intro {
  color: #fff;
}

.contact-section .section-intro {
  color: #dbeafe;
}

.contact-wrap {
  position: relative;
}

.contact-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.contact-stat {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
  backdrop-filter: blur(10px);
}

.contact-stat-value {
  margin-bottom: 0.35rem;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: #fff;
}

.contact-stat-label {
  color: #dbeafe;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.5rem;
  padding: 0.95rem 1.4rem;
  border-radius: 18px;
  background: #fff;
  color: var(--blue-900);
  text-decoration: none;
  font-weight: 700;
}

.contact-cta:hover,
.contact-cta:focus-visible {
  transform: translateY(-1px);
  background: #f8fbff;
}

.contact-email-wrap {
  text-align: center;
}

.contact-email {
  color: #dbeafe;
  text-decoration: none;
  font-weight: 600;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: #fff;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 27, 53, 0.82);
}

.image-lightbox-dialog {
  position: relative;
  margin-top: 5rem;
  padding: 0;
}

.image-lightbox-dialog img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: var(--shadow-strong);
}

.image-lightbox-close {
  position: absolute;
  top: -0.75rem;
  right: -0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-950);
  cursor: pointer;
}

.site-footer {
  padding: 2.6rem 0 3rem;
  background: #081626;
  color: #c9d8ee;
}

.footer-inner {
  display: grid;
  gap: 0.9rem;
  text-align: center;
}

.footer-tag {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
}

.footer-note {
  margin: 0;
  max-width: 58rem;
  margin-inline: auto;
  color: #c9d8ee;
  font-size: 0.95rem;
}

.footer-meta {
  margin: 0;
  color: #9db1cc;
  font-size: 0.9rem;
}

@media (min-width: 761px) {
  .value-item:hover,
  .feature:hover,
  .app-tile:hover,
  .process-item:hover,
  .contact-stat:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .split-block {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .split-copy {
    max-width: none;
  }

  .value-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apps-row,
  .process-grid,
  .contact-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    background: rgba(255, 255, 255, 0.98);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.7rem 1rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 30px -24px rgba(15, 23, 42, 0.35);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a:last-child {
    margin-top: 0.4rem;
    border-bottom: 0;
  }

  .hero {
    padding: 4.8rem 0 5.3rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.2rem, 9vw, 3.25rem);
  }

  .lead {
    font-size: 1.03rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn,
  .hero-pilot-link,
  .contact-cta {
    width: 100%;
  }

  .section,
  .contact-section {
    padding: 4rem 0;
  }

  .section-center,
  .section-heading,
  .contact-header {
    margin-bottom: 1.6rem;
  }

  .value-grid,
  .feature-grid,
  .apps-row,
  .process-grid,
  .contact-stats {
    grid-template-columns: 1fr;
  }

  .process-grid {
    padding-top: 0;
  }

  .process-grid::before {
    display: none;
  }

  .process-step {
    top: 1rem;
    left: 1rem;
    transform: none;
  }

  .process-item {
    padding-top: 3.8rem;
  }

  .image-lightbox-dialog {
    margin-top: 3.5rem;
  }

  .image-lightbox-close {
    top: -0.65rem;
    right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  button {
    transition: none;
  }

  .btn:hover,
  .btn:focus-visible,
  .contact-cta:hover,
  .contact-cta:focus-visible,
  .value-item:hover,
  .feature:hover,
  .app-tile:hover,
  .process-item:hover,
  .contact-stat:hover {
    transform: none;
  }
}
