:root {
  --bg-page: #ffffff;
  --bg-surface: #f8fafc;
  --bg-accent-soft: #ecfdf5;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --brand-primary: #0b4f4a;
  --brand-primary-hover: #083d39;
  --brand-on-primary: #ffffff;
  --border-subtle: #cbd5e1;
  --border-control: #64748b;
  --border-light: #e2e8f0;
  --focus-ring: #0b4f4a;
  --max-width: 72rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

.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;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-page);
}

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

a {
  color: var(--brand-primary);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand-primary-hover);
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

main:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 0.75rem 1.25rem;
  background-color: var(--brand-primary);
  color: var(--brand-on-primary);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-header {
  border-bottom: 1px solid var(--border-light);
  background-color: var(--bg-page);
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding-block: 1rem;
}

.header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
}

.brand:hover {
  color: var(--brand-primary);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background-color: var(--brand-primary);
  color: var(--brand-on-primary);
  flex-shrink: 0;
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
}

.primary-nav a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.lang-switcher {
  border-top: 1px solid var(--border-light);
  padding-top: 0.75rem;
}

.lang-switcher ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-control);
  border-radius: 999px;
  text-decoration: none;
}

.lang-switcher a:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.lang-switcher a[aria-current="page"] {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-on-primary);
}

.hero {
  padding-block: 3.25rem 3.5rem;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.badge,
.pill-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--brand-primary);
  background-color: var(--bg-accent-soft);
  border: 1px solid var(--brand-primary);
  border-radius: 999px;
}

h1,
h2,
h3 {
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.hero-subtitle,
.section-intro {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 62ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-block: 1.5rem 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0.65rem 1.35rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: var(--brand-on-primary);
  border-color: var(--brand-primary);
}

.btn-primary:hover {
  background-color: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  color: var(--brand-on-primary);
}

.btn-secondary {
  background-color: var(--bg-page);
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-accent-soft);
  color: var(--brand-primary-hover);
}

.trust-note {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-panel {
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.hero-panel-kicker {
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-primary);
}

.hero-panel h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.section {
  padding-block: 3.5rem;
}

.section--tinted {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.check-list li {
  position: relative;
  padding-left: 1.65rem;
  color: var(--text-primary);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--brand-primary);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.card {
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.card p:last-child {
  margin-bottom: 0;
  color: var(--text-secondary);
}

.steps-grid {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.step-card {
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.875rem;
  border-radius: 999px;
  background-color: var(--brand-primary);
  color: var(--brand-on-primary);
  font-weight: 800;
  font-size: 1rem;
}

.step-card p:last-child {
  margin-bottom: 0;
  color: var(--text-secondary);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
  align-items: stretch;
}

.pricing-card {
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.pricing-card--featured {
  border: 2px solid var(--brand-primary);
}

.pricing-badge {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  background-color: var(--brand-primary);
  color: var(--brand-on-primary);
}

.price-label {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 1.15rem;
}

.faq-list {
  display: grid;
  gap: 0.875rem;
  margin-top: 1.75rem;
  max-width: 54rem;
}

.faq-item {
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.25rem 1.25rem;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: 1rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-light);
  padding-top: 0.875rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.legal-main {
  padding-block: 3rem 4rem;
}

.legal-shell {
  max-width: 48rem;
}

.legal-breadcrumb {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.legal-meta-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-block: 1.5rem 2rem;
}

.legal-dl {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.legal-dl div {
  display: grid;
  gap: 0.2rem;
}

.legal-dl dt {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.legal-dl dd {
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section ul {
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-summary {
  max-width: 60ch;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  font-weight: 600;
}

.pricing-cta {
  margin-top: 1.25rem;
}

.legal-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.legal-breadcrumb li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--text-secondary);
}

.legal-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

@media (min-width: 56rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 2.5rem;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
  }
}

@media print {
  .skip-link,
  .primary-nav,
  .lang-switcher {
    display: none;
  }

  body {
    background-color: #ffffff;
    color: #000000;
  }
}

.table-wrap {
  overflow-x: auto;
  margin-block: 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-page);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.data-table thead th {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 700;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-footnote {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.calc-box {
  margin-block: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
}

.calc-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.calc-field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.calc-field select,
.calc-field input {
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--text-primary);
  background-color: var(--bg-page);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-sm);
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.875rem;
  margin: 0;
}

.calc-metric {
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-page);
}

.calc-metric dt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.calc-metric dd {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.subpage-nav {
  margin-block: 1.5rem 1rem;
}

.subpage-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.subpage-nav-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.9rem;
}

.subpage-nav-list a[aria-current="page"] {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-on-primary);
  font-weight: 600;
}

/* ==========================================================
   ReadyShelf – tillegg til styles.css (lim inn nederst)
   Kompakt header, språkmeny, beredskapsmåler, testbruker-seksjon
   ========================================================== */

:root {
  --warn: #9a3412;          /* rav: «går ut snart» / under mål (6,4:1 på --warn-soft) */
  --warn-soft: #fef3c7;
  --ok: #0b4f4a;
}

/* ---------- Header: én rad på alle skjermstørrelser ---------- */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.625rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.primary-nav {
  display: none;            /* skjult på mobil: siden er kort nok til å scrolle */
}

@media (min-width: 56rem) {
  .primary-nav {
    display: block;
    margin-inline-start: auto;
  }
}

/* ---------- Språkmeny (<details>, ingen JavaScript) ---------- */
.lang-menu {
  position: relative;
}

.lang-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.35rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-control);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
}

.lang-menu > summary::-webkit-details-marker {
  display: none;
}

.lang-menu > summary::after {
  content: "▾";
  font-size: 0.8em;
}

.lang-menu[open] > summary {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.lang-menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 12rem;
  padding: 0.4rem;
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.lang-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

.lang-menu a:hover {
  background-color: var(--bg-accent-soft);
  color: var(--brand-primary);
}

.lang-menu a[aria-current="page"] {
  font-weight: 700;
  color: var(--brand-primary);
}

.lang-menu a[aria-current="page"]::after {
  content: "✓";
  margin-inline-start: auto;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: 2rem 3rem;
}

@media (min-width: 56rem) {
  .hero {
    padding-block: 4rem 4.5rem;
  }
}

h1 {
  font-size: clamp(1.9rem, 3.2vw + 1rem, 3.25rem);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-row li::before {
  content: "✓ ";
  color: var(--brand-primary);
  font-weight: 800;
}

/* ---------- Beredskapsmåler ---------- */
.gauge-card {
  margin: 0;
  padding: 1.5rem;
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.gauge-kicker {
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.gauge-list {
  display: grid;
  gap: 1.1rem;
  margin: 0;
}

.gauge-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  align-items: baseline;
}

.gauge-row dt {
  font-weight: 700;
}

.gauge-row dd {
  margin: 0;
  text-align: right;
}

.gauge-detail {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.gauge-bar {
  grid-column: 1 / -1;
  height: 0.75rem;
  background-color: var(--border-light);
  border-radius: 999px;
  overflow: hidden;
}

.gauge-bar span {
  display: block;
  width: 0;
  height: 100%;
  background-color: var(--ok);
  border-radius: inherit;
}

.gauge-bar .fill-71 { width: 71%; }
.gauge-bar .fill-100 { width: 100%; }

.gauge-bar span.is-warn {
  background-color: var(--warn);
}

.gauge-alert {
  margin: 1.25rem 0 0;
  padding: 0.6rem 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--warn);
  background-color: var(--warn-soft);
  border-radius: var(--radius-sm);
}

.gauge-note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ---------- Diverse ---------- */
.source-line {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.25rem;
  font-weight: 700;
}

.link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.panel-note {
  margin: 1rem 0 0;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.price-sub {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.section--accent {
  background-color: var(--bg-accent-soft);
  border-top: 1px solid var(--border-light);
}

.beta-box {
  max-width: 46rem;
  text-align: center;
}

.beta-box .section-intro {
  margin-inline: auto;
}

/* Tabeller på smal skjerm: rad som kort (gjelder /standards/ m.fl.) */
@media (max-width: 37.5rem) {
  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    padding-block: 0.5rem;
    border-bottom: 1px solid var(--border-light);
  }

  .data-table th,
  .data-table td {
    border: 0;
    padding: 0.2rem 1rem;
  }

  .data-table td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--text-secondary);
  }
}

@media print {
  .lang-menu,
  .site-header {
    position: static;
  }

  .lang-menu,
  #testbruker {
    display: none;
  }
}

/* ---------- Telefon med video i hero (CSS 3D, ingen WebGL) ---------- */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 1rem 1.5rem;
  perspective: 1600px;
}

.phone {
  width: min(17.5rem, 72vw);
  padding: 0.6rem;
  background: linear-gradient(145deg, #1f2a28, #070b0a);
  border-radius: 2.6rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 2px 0 1px #2b3633,
    0 40px 70px -20px rgba(11, 79, 74, 0.45),
    0 24px 40px -24px rgba(15, 23, 42, 0.55);
  transform: rotateY(-16deg) rotateX(6deg) rotateZ(1deg);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(.2, .7, .2, 1);
}

.phone-stage:hover .phone {
  transform: rotateY(-6deg) rotateX(3deg) rotateZ(0deg);
}

.phone-screen {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 540 / 1132;
  border-radius: 2.05rem;
  background-color: #111816;
  object-fit: cover;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-primary);
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(6px);
}

.chip-top {
  top: 12%;
  left: 0;
}

.chip-bottom {
  bottom: 14%;
  right: 0;
}

@media (max-width: 37.5rem) {
  .phone {
    transform: rotateY(-8deg) rotateX(3deg);
  }

  .chip-top { left: 0.25rem; }
  .chip-bottom { right: 0.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .phone,
  .phone-stage:hover .phone {
    transition: none;
    transform: none;
  }
}

/* ---------- Skjermbilder på flere språk ---------- */
.screen-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(10rem, 1fr);
  gap: 1.25rem;
  margin: 1.75rem 0 0;
  padding: 0 0 0.75rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.screen-strip li {
  scroll-snap-align: start;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.screen-strip img {
  width: 100%;
  height: auto;
  margin-bottom: 0.6rem;
  border: 0.4rem solid #0d1312;
  border-radius: 1.4rem;
  box-shadow: 0 18px 36px -18px rgba(15, 23, 42, 0.45);
}

/* ---------- Måleren fylles opp når den vises (motion.js) ---------- */
.motion-ok .gauge-bar span {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
}

.motion-ok .gauge-card.is-visible .gauge-bar span {
  transform: scaleX(1);
}

.motion-ok .gauge-card.is-visible .gauge-row + .gauge-row .gauge-bar span {
  transition-delay: 0.2s;
}

.check-list + .source-line {
  margin-top: 1.25rem;
}

.screen-strip {
  padding-bottom: 1.75rem;
}
