/* Fakturo landing — thème clair uniquement */

:root {
  --font: "DM Sans", system-ui, sans-serif;
  --accent: #0d6e6e;
  --accent-hover: #0a5858;
  --accent-muted: rgba(13, 110, 110, 0.12);
  --text: #0f1419;
  --text-muted: #5c6570;
  --bg: #fafbfc;
  --bg-alt: #eef1f4;
  --surface: #ffffff;
  --border: #d8dee4;
  --focus: #0d6e6e;
  --danger: #b42318;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 20, 25, 0.06), 0 8px 24px rgba(15, 20, 25, 0.06);
  --wrap: min(1120px, calc(100% - 2rem));
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

body.cookie-banner-open {
  overflow: hidden;
}

body.nav-open {
  overflow: hidden;
}

/* Ambient CRM-bakgrunn */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.ambient__mesh {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(ellipse 75% 55% at 15% 35%, var(--accent-muted), transparent 58%),
    radial-gradient(
      ellipse 65% 50% at 85% 65%,
      color-mix(in srgb, var(--accent) 14%, transparent),
      transparent 52%
    );
  animation: mesh-drift 32s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .ambient__mesh {
    animation: none;
  }
}

@keyframes mesh-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(3%, 4%) scale(1.05);
  }
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 120;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

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

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header--auth {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
  flex-wrap: nowrap;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.nav-toggle__bars {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  position: relative;
  transition: background 0.15s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.25rem;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-header__inner > .logo,
.site-header__inner .nav-toggle,
.lang-switcher-host {
  position: relative;
  z-index: 65;
}

.site-header__cluster {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.site-header__cluster--legal,
.site-header__cluster--auth {
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

/* Language combobox */
.lang-switcher {
  position: relative;
}

.lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: min(220px, 52vw);
  min-height: 2.5rem;
  padding: 0.35rem 0.55rem 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  line-height: 1.2;
  box-shadow: 0 1px 0 rgba(15, 20, 25, 0.04);
}

.lang-switcher__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-switcher__chev {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-muted);
  flex-shrink: 0;
  opacity: 0.85;
  margin-left: 0.1rem;
}

.lang-flag {
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family:
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "Twemoji Mozilla",
    sans-serif;
}

.lang-flag--btn {
  font-size: 1.35rem;
}

.lang-switcher__btn:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.lang-switcher__btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.lang-switcher__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: min(280px, calc(100vw - 2rem));
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 80;
}

.lang-switcher__search {
  width: 100%;
  margin-bottom: 0.35rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.875rem;
}

.lang-switcher__search:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.lang-switcher__list {
  max-height: min(280px, 45vh);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.875rem;
  border: 1px solid transparent;
}

.lang-option__lead {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

.lang-option .lang-flag {
  font-size: 1.35rem;
}

.lang-option:hover,
.lang-option:focus {
  background: var(--bg-alt);
}

.lang-option--active {
  background: var(--accent-muted);
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
}

.lang-option--current .lang-option__name {
  font-weight: 700;
}

.lang-option__code {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

@media (max-width: 400px) {
  .lang-switcher__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .lang-switcher__btn {
    max-width: none;
    padding: 0.35rem 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lang-switcher__btn,
  .lang-option {
    transition: none;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo--img {
  font-size: 0;
  height: 44px;
  padding: 0.25rem;
}

.logo__img {
  height: 40px;
  width: auto;
  display: block;
}

.logo--footer {
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav--auth {
  gap: 1rem;
}

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

.nav a:hover {
  color: var(--text);
}

.nav__cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-muted);
  color: var(--accent) !important;
}

.nav__cta:hover {
  background: var(--accent);
  color: #fff !important;
}

.nav__login {
  font-weight: 600 !important;
  color: var(--text) !important;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}

.nav__login:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

@media (max-width: 840px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 55;
    margin: 0;
    padding: 5.25rem 1.5rem 2rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.35rem;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
  }

  .nav.nav--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    border: 1px solid transparent;
  }

  .nav a:hover {
    background: var(--surface);
    border-color: var(--border);
  }

  .nav__login,
  .nav__cta {
    text-align: center;
    justify-content: center;
  }

  .nav__cta {
    margin-top: 0.5rem;
  }

  /* Sider utan hamburger (login, juridiske sider): hovudmeny skal synast */
  .nav.nav--legal,
  .nav.nav--auth {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    gap: 0.35rem 0.85rem;
    justify-content: flex-end;
    max-height: none;
  }

  .nav.nav--legal a,
  .nav.nav--auth a {
    padding: 0.35rem 0.45rem;
    border: none;
    font-size: 0.8125rem;
  }

  .nav.nav--legal a:hover,
  .nav.nav--auth a:hover {
    background: transparent;
    border-color: transparent;
  }
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5rem);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--bg-alt) 72%, transparent) 0%,
    color-mix(in srgb, var(--bg) 85%, transparent) 45%,
    var(--bg) 100%
  );
}

.hero__inner {
  max-width: 40rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--primary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--bg-alt);
}

.btn--ghost:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--block {
  width: 100%;
}

.input--lg {
  padding: 0.75rem 0.9rem !important;
  font-size: 1.0625rem !important;
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section__intro {
  margin: 0 0 2rem;
  max-width: 36rem;
  color: var(--text-muted);
}

/* Pillars */
.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pillar {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

@media (hover: hover) {
  .pillar:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 24px rgba(15, 20, 25, 0.1);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  }
}

@media (prefers-reduced-motion: reduce) {
  .pillar {
    transition: none;
  }

  .pillar:hover {
    transform: none;
  }
}

.pillar h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.pillar p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Features */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 42rem;
}

.features li {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, background 0.2s ease;
}

@media (hover: hover) {
  .features li:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
    background: var(--surface);
  }
}

.features strong {
  font-size: 1rem;
}

.features span {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Legal */
.legal-lead {
  margin-bottom: 1.75rem;
}

.legal-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.legal-card {
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.legal-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.legal-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.legal-footnote {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 40rem;
}

.legal-footnote--actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.legal-footnote--after-actions {
  margin-top: 0.75rem;
}

/* Juridiske sider (personvern, vilkår) */
.legal-page-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.legal-page-main {
  flex: 1;
  padding: 2rem 0 3rem;
}

.legal-doc {
  max-width: 42rem;
  margin: 0 auto;
}

.legal-doc__back {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
}

.legal-doc__back a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.legal-doc__back a:hover {
  text-decoration: underline;
}

.legal-doc__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.legal-doc__meta {
  margin: 0 0 2rem;
  padding: 1rem 1.15rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--surface) 88%, var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  line-height: 1.55;
}

.legal-doc__toc {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.legal-doc__toc-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.legal-doc__toc ol {
  margin: 0;
  padding-left: 1.35rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.legal-doc__toc a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.legal-doc__toc a:hover {
  text-decoration: underline;
}

.legal-doc > h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  scroll-margin-top: 5.5rem;
}

.legal-doc > h2:first-of-type {
  margin-top: 0;
}

.legal-doc p,
.legal-doc li {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
}

.legal-doc p {
  margin: 0 0 1rem;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.legal-doc li {
  margin-bottom: 0.35rem;
}

.legal-doc a {
  color: var(--accent);
  font-weight: 500;
}

.legal-doc abbr {
  text-decoration: underline dotted;
  cursor: help;
}

.nav--legal {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem 1.1rem;
}

.site-footer__inner--auth {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.footer-nav--auth {
  justify-content: center;
}

/* Kontakt */
.kontakt__grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .kontakt__grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
  }
}

.kontakt__intro p {
  margin: 0;
  color: var(--text-muted);
  max-width: 28rem;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
}

.req {
  color: var(--accent);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field--checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}

.field--checkbox input {
  width: auto;
  margin-top: 0.35rem;
  accent-color: var(--accent);
}

.field--checkbox label {
  margin-bottom: 0;
  font-weight: 400;
  line-height: 1.45;
}

.field-error {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--danger);
}

#consent-error {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.form-actions {
  margin-top: 1.25rem;
}

.form-status {
  margin: 1rem 0 0;
  min-height: 1.5rem;
  font-size: 0.9375rem;
}

.form-status--idle {
  color: var(--text-muted);
}

.form-status--sending {
  color: var(--text-muted);
}

.form-status--success {
  color: var(--accent);
  font-weight: 600;
}

.form-status--error {
  color: var(--danger);
}

code {
  font-size: 0.85em;
  padding: 0.15em 0.4em;
  background: var(--bg-alt);
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg-alt);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  justify-content: space-between;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-copy {
  margin: 0;
  width: 100%;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-copy--entity {
  margin-bottom: 0.35rem;
  line-height: 1.45;
}

.footer-copy--entity .footer-entity a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-copy--entity .footer-entity a:hover {
  color: var(--text);
}

@media (min-width: 600px) {
  .footer-copy {
    width: auto;
    margin-left: auto;
  }
}

/* Informasjonskapslar (GDPR) */
/* Må slå display:flex — elles kan vinne over [hidden] og gi «synleg» modal med hidden=true */
.cookie-banner[hidden] {
  display: none !important;
  pointer-events: none;
  visibility: hidden;
}

.cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cookie-banner__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  animation: slideUp 0.2s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner__card {
    animation: none;
  }
}

.cookie-banner__text-block {
  margin-bottom: 1.25rem;
}

.cookie-banner__heading {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.9375rem;
  color: #4a4a4a;
  line-height: 1.6;
}

.cookie-banner__text a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.cookie-banner__text a:hover {
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

/* Innloggingsside */
.auth-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.5rem) 1rem;
}

.auth-card-wrap {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.auth-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-card__lead {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.auth-card__foot {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  text-align: center;
  color: var(--text-muted);
}

.auth-card__foot a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-card__foot a:hover {
  text-decoration: underline;
}

.login-form .form-actions {
  margin-top: 1.5rem;
}

.login-form__row {
  margin-bottom: 0.25rem;
}

.field--inline {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 400;
}

.field--inline input {
  margin-top: 0.3rem;
  accent-color: var(--accent);
}

.site-footer--auth {
  padding: 1.25rem 0;
  margin-top: auto;
}

.site-footer--auth .footer-copy {
  width: 100%;
  text-align: center;
  margin: 0;
}

.site-footer--auth .footer-nav--auth {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.25rem;
}
