/* ==========================================================================
   HMSPilot — Design system v3
   Premium, nordisk, dempet mørk B2B SaaS-estetikk.
   Samme klassenavn som før — trygg drop-in-erstatning.
   Struktur: Tokens → Base → Header/Nav → Layout/Typografi → Buttons →
   Hero-visuals → Trust → Cards/Sections → Pricing → FAQ → CTA → Course →
   Forms → Insight/Dashboard → Footer → Utilities → Responsive
   ========================================================================== */

:root {
  /* ---- Base surfaces (mørk grafitt / petrol, ikke standard navy) ---- */
  --bg: #07080b;
  --bg-deep: #040507;
  --bg-elevated: #0b0e13;
  --surface: #10141b;
  --surface-soft: #131922;
  --surface-warm: #171f2b;

  /* ---- Borders — kun to nivåer ---- */
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* ---- Text — tre nivåer av stillhet ---- */
  --text: #c3ccd8;
  --text-strong: #f4f7fa;
  --text-strong-rgb: 244, 247, 250;
  --muted: #8f99a8;
  --muted-2: #66707f;

  /* ---- Accent — én dempet primærfarge, blå kun for data/fokus ---- */
  --accent: #6fe0bf;
  --accent-deep: #23a884;
  --accent-rgb: 111, 224, 191;
  --accent-deep-rgb: 35, 168, 132;
  --accent-gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  --accent-soft: rgba(var(--accent-rgb), 0.1);

  --accent-2: #7cb0e8;
  --accent-2-rgb: 124, 176, 232;

  --success: #6fd6a3;
  --warning: #ecb268;
  --danger: #ea7c78;
  --danger-rgb: 234, 124, 120;

  /* ---- Shadows — diskrete, ikke diffuse glows ---- */
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.24);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.38);

  /* ---- Radius — tre nivåer ---- */
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;

  /* ---- Spacing tokens ---- */
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-10: 56px;
  --space-12: 72px;
  --space-14: 96px;
  --space-16: 128px;

  --container: 1220px;

  --font-display: "Inter", "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.66;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ett kontrollert lys, ingen kryssende gradienter eller støy */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(680px 380px at 84% -8%, rgba(var(--accent-deep-rgb), 0.1), transparent 62%),
    radial-gradient(520px 360px at 6% 2%, rgba(var(--accent-rgb), 0.06), transparent 62%),
    var(--bg);
}

::selection {
  background: rgba(var(--accent-rgb), 0.28);
  color: var(--text-strong);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}

.container.narrow {
  width: min(100% - 48px, 760px);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 40;
  padding: 10px 16px;
  background: var(--text-strong);
  color: #071b16;
  border-radius: 8px;
  font-weight: 800;
}

.skip-link:focus {
  left: 12px;
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 8, 11, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transition: background 200ms ease, border-color 200ms ease;
}

.nav-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand-copy strong {
  color: var(--text-strong);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-copy small {
  color: var(--muted-2);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a:not(.btn) {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 550;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.05);
}

.site-nav a.btn {
  margin-left: 12px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 10px;
  transition: border-color 160ms ease, background 160ms ease;
}

.nav-toggle:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  margin: 5px 0;
  background: var(--text);
  border-radius: 2px;
}

/* ==========================================================================
   Layout / sections / typografi
   ========================================================================== */

.section {
  padding: clamp(80px, 9vw, 136px) 0;
}

.section-muted,
.section-band {
  background: rgba(255, 255, 255, 0.018);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.final-section {
  padding-top: 24px;
}

.hero {
  padding: clamp(72px, 8vw, 112px) 0 clamp(68px, 7vw, 108px);
}

.hero-compact {
  padding-bottom: clamp(48px, 6vw, 84px);
}

.hero-grid,
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.88fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

.form-hero {
  align-items: start;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  background: rgba(var(--accent-rgb), 0.07);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.5rem, 4.4vw, 3.85rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.85rem, 3.3vw, 2.65rem);
  line-height: 1.12;
  font-weight: 680;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.06rem;
  line-height: 1.32;
  font-weight: 660;
  letter-spacing: -0.008em;
}

.lead {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.4vw, 1.16rem);
  line-height: 1.6;
}

.section-copy,
.body-copy,
.microcopy {
  color: var(--muted);
}

.section-copy {
  max-width: 600px;
  margin: 18px 0 0;
  font-size: 1.02rem;
  line-height: 1.6;
}

.microcopy {
  max-width: 540px;
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 0.9rem;
}

.section-head {
  max-width: 680px;
  margin-bottom: 52px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sticky-head {
  align-self: start;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

/* ==========================================================================
   Buttons — konsekvente states: default / hover / active / focus / disabled
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 660;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease,
    color 160ms ease, box-shadow 160ms ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #06201a;
  box-shadow: 0 10px 26px rgba(var(--accent-deep-rgb), 0.24);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(var(--accent-deep-rgb), 0.32);
}

.btn-primary:focus-visible {
  outline-color: var(--text-strong);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text-strong);
}

.btn-secondary:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.06);
}

.btn-header {
  min-height: 40px;
  padding: 9px 18px;
  border-color: transparent;
  background: var(--accent-gradient);
  color: #06201a;
  font-size: 0.87rem;
}

.btn-header:hover {
  box-shadow: 0 10px 24px rgba(var(--accent-deep-rgb), 0.24);
}


.btn-header-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-strong);
  box-shadow: none;
}

.btn-header-secondary:hover {
  border-color: rgba(var(--accent-rgb), 0.38);
  background: rgba(var(--accent-rgb), 0.075);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
}

.btn-small {
  min-height: 42px;
  padding: 10px 20px;
  font-size: 0.89rem;
}

/* ==========================================================================
   Hero visuals — premium produktpanel
   ========================================================================== */

.product-mockup,
.course-panel,
.form-panel {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)), var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.product-mockup {
  padding: 14px;
  overflow: hidden;
}

.mockup-window {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 500px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg-deep);
  border: 1px solid var(--line);
}

.mockup-bar {
  display: flex;
  gap: 7px;
  height: 20px;
}

.mockup-bar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(var(--text-strong-rgb), 0.16);
}

.certificate-card {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 232px;
  padding: 32px;
  border-radius: var(--radius);
  text-align: center;
  background: linear-gradient(165deg, rgba(var(--accent-rgb), 0.1), rgba(var(--accent-deep-rgb), 0.04));
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.certificate-card img {
  width: 68px;
  height: 68px;
  margin-bottom: 14px;
}

.certificate-card span,
.course-panel-head span {
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.certificate-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text-strong);
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.certificate-card p {
  max-width: 280px;
  margin: 12px 0 0;
  color: var(--muted);
}

.progress-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--line);
}

.progress-panel > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.91rem;
}

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

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-gradient);
}

.progress-panel ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.91rem;
}

.progress-panel li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-panel .icon {
  color: var(--accent);
}

/* ==========================================================================
   Trust / proof strip — presise enterprise proof-points
   ========================================================================== */

.proof-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 24px 0;
}

.proof-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 550;
  text-align: center;
  transition: background 160ms ease, color 160ms ease;
}

.proof-strip span:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-strong);
}

.proof-strip .icon {
  color: var(--accent);
  opacity: 0.9;
}

/* ==========================================================================
   Editorial / problem cards
   ========================================================================== */

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: clamp(44px, 7vw, 92px);
}

.problem-stack {
  display: grid;
  gap: 12px;
}

.editorial-card {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.editorial-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.036);
  transform: translateY(-2px);
}

.editorial-card > span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--text-2, var(--text));
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-strong);
}

.editorial-card p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
}

/* ==========================================================================
   Solution / system cards
   ========================================================================== */

.system-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.1fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: start;
}

.system-main {
  max-width: 560px;
}

.system-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.system-list article {
  min-height: 168px;
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.system-list article:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-3px);
}

.system-list .icon,
.card-icon,
.price-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.09);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.system-list .icon svg,
.card-icon svg,
.price-icon svg {
  width: 20px;
  height: 20px;
}

.system-list article:nth-child(5) {
  grid-column: 1 / -1;
  min-height: auto;
}

.system-list p {
  margin: 8px 0 0;
  color: var(--muted);
}

/* ==========================================================================
   Timeline / process steps
   ========================================================================== */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.timeline article {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  transition: border-color 180ms ease, transform 180ms ease;
}

.timeline article:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.timeline span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 999px;
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.timeline p {
  margin: 8px 0 0;
  color: var(--muted);
}

/* ==========================================================================
   Pricing — troverdig kommersiell beslutningsflate
   ========================================================================== */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(28px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.price-card.highlight {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.08), rgba(255, 255, 255, 0.022));
  border-color: rgba(var(--accent-rgb), 0.36);
  box-shadow: var(--shadow);
}

.price-card.highlight:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.recommendation {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.14);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.package-summary {
  min-height: 68px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.price {
  margin: 26px 0 4px;
  color: var(--text-strong);
  font-size: clamp(1.85rem, 3.4vw, 2.4rem);
  line-height: 1;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.price-note {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.88rem;
}

.price-card .cta-row {
  margin-top: auto;
  padding-top: 28px;
}

.check-list,
.plain-list {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(0, 1fr);
  gap: clamp(38px, 6vw, 80px);
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  padding: 6px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  transition: border-color 180ms ease, background 180ms ease;
}

.faq details[open] {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.036);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 0;
  cursor: pointer;
  color: var(--text-strong);
  font-weight: 660;
  list-style: none;
}

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

.faq summary .icon {
  color: var(--accent);
  flex: 0 0 auto;
}

.faq p {
  max-width: 720px;
  margin: 0 0 18px;
  color: var(--muted);
}

/* ==========================================================================
   CTA panel
   ========================================================================== */

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(34px, 5vw, 54px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), rgba(var(--accent-deep-rgb), 0.05));
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

/* ==========================================================================
   Course panel / modules
   ========================================================================== */

.course-panel {
  padding: 28px;
}

.course-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.course-panel-head strong {
  color: var(--text-strong);
}

.course-outline {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: module;
}

.course-outline li {
  counter-increment: module;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.course-outline li:last-child {
  border-bottom: none;
}

.course-outline li::before {
  content: counter(module, decimal-leading-zero);
  color: var(--muted-2);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.module-grid article,
.evidence-card,
.contact-note,
.card,
.notice {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
}

.module-grid article {
  min-height: 130px;
  padding: 22px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.module-grid article:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.module-grid span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.evidence-card,
.card,
.notice {
  padding: 26px;
}

.price-card h2,
.price-card h3,
.card h2,
.notice h2,
.evidence-card h2,
.disclaimer h2 {
  font-size: 1.1rem;
  line-height: 1.32;
}

.card p,
.notice p {
  margin: 10px 0 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card:hover,
.compact-card:hover {
  border-color: var(--line-strong);
}

.compact-card {
  min-height: 150px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.compact-card:hover {
  transform: translateY(-2px);
}

.tag,
.pilot-badge,
.mini-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.disclaimer {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 3px solid var(--warning);
  background: rgba(236, 178, 104, 0.06);
  color: var(--muted);
}

.disclaimer p {
  margin: 10px 0 0;
}

.contact-note {
  max-width: 520px;
  padding: 24px;
}

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

.contact-note p {
  margin: 10px 0 0;
  color: var(--muted);
}

.contact-note a,
.footer-mail a,
.card a,
.lead a,
.notice a {
  color: var(--accent);
  font-weight: 700;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.3);
}

/* ==========================================================================
   Forms — tydelige states: default / focus / error / disabled
   ========================================================================== */

.form-panel {
  padding: clamp(28px, 4vw, 38px);
}

.form-heading p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.full {
  grid-column: 1 / -1;
}

label,
.label {
  color: var(--text-strong);
  font-size: 0.89rem;
  font-weight: 640;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.022);
  color: var(--text-strong);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

input::placeholder,
textarea::placeholder {
  color: var(--muted-2);
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(var(--accent-2-rgb), 0.55);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 0 0 4px rgba(var(--accent-2-rgb), 0.12);
}

input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.015);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"],
.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea {
  border-color: rgba(var(--danger-rgb), 0.55);
  background: rgba(var(--danger-rgb), 0.05);
}

input[aria-invalid="true"]:focus,
.form-row.has-error input:focus {
  box-shadow: 0 0 0 4px rgba(var(--danger-rgb), 0.14);
}

.field-error {
  margin: 2px 0 0;
  color: #ffb4b0;
  font-size: 0.84rem;
  font-weight: 550;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  transition: border-color 160ms ease, background 160ms ease;
}

.checkbox:hover {
  border-color: var(--line-strong);
}

.checkbox input {
  width: 17px;
  min-height: 17px;
  height: 17px;
  margin-top: 4px;
  accent-color: var(--accent);
}

.consent-box {
  background: rgba(var(--accent-2-rgb), 0.035);
}

.consent-text {
  color: var(--muted);
  font-size: 0.91rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-errors {
  border: 1px solid rgba(var(--danger-rgb), 0.32);
  background: rgba(var(--danger-rgb), 0.08);
  color: #ffd7d5;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 20px 0;
}

.form-errors ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

/* ==========================================================================
   Insight row (demo-side)
   ========================================================================== */

.insight-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.insight-row article {
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  transition: border-color 180ms ease, transform 180ms ease;
}

.insight-row article:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.insight-row span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.insight-row p {
  margin: 8px 0 0;
  color: var(--muted);
}

/* ==========================================================================
   Dashboard mock (om.php)
   ========================================================================== */

.dashboard {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dashboard-top {
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.dashboard-body {
  padding: 28px;
}

.status-pill {
  display: inline-flex;
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-grid,
.task-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

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

.metric,
.task {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid var(--line);
}

.task {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.task strong {
  color: var(--success);
}

.hero-logo {
  width: min(240px, 100%);
  opacity: 0.92;
}

/* ==========================================================================
   Footer — modenhet, ikke bare lenker
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) repeat(3, minmax(0, 0.75fr));
  gap: clamp(30px, 5vw, 60px);
}

.footer-intro p {
  max-width: 420px;
}

.footer-logo {
  width: min(240px, 100%);
  height: auto;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: var(--text-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-grid p,
.footer-bottom p {
  margin: 14px 0 0;
  color: var(--muted);
}

.footer-grid a:not(.footer-brand) {
  display: block;
  color: var(--muted);
  margin: 9px 0;
  transition: color 160ms ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.86rem;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.mt-0 { margin-top: 0; }
.mt-12 { margin-top: 12px; }
.mt-18 { margin-top: 18px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.reveal-target {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 460ms ease, transform 460ms ease;
}

.reveal-target.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal-target {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .price-grid,
  .card-grid.four,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-list {
    grid-template-columns: 1fr;
  }

  .system-list article:nth-child(5) {
    grid-column: auto;
  }
}

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

  .site-nav {
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 8, 11, 0.98);
    box-shadow: var(--shadow-lg);
  }

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

  .site-nav a:not(.btn) {
    padding: 13px 14px;
    border-radius: 10px;
  }

  .site-nav a.btn {
    margin: 6px 0 0;
  }

  .hero-grid,
  .split-grid,
  .editorial-grid,
  .system-layout,
  .faq-layout,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .proof-strip,
  .timeline,
  .price-grid,
  .card-grid,
  .card-grid.two,
  .card-grid.four,
  .module-grid,
  .insight-row {
    grid-template-columns: 1fr;
  }

  .proof-strip span {
    justify-content: flex-start;
    text-align: left;
  }

  .form-grid,
  .checkbox-grid,
  .metric-grid.two {
    grid-template-columns: 1fr;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container,
  .container.narrow {
    width: min(100% - 28px, var(--container));
  }

  h1 {
    font-size: clamp(2.1rem, 10.5vw, 3rem);
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-copy strong {
    font-size: 0.98rem;
  }

  .brand-copy small {
    font-size: 0.68rem;
  }

  .cta-row,
  .cta-panel .cta-row {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .product-mockup,
  .course-panel,
  .form-panel,
  .price-card,
  .cta-panel {
    border-radius: var(--radius);
  }

  .editorial-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mockup-window {
    min-height: auto;
  }

  .task {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* ==========================================================================
   Added trust/evidence/resource components
   ========================================================================== */
.evidence-section {
  background:
    radial-gradient(520px 260px at 50% 0%, rgba(var(--accent-rgb), 0.055), transparent 64%);
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.evidence-tile {
  min-height: 220px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.024);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.evidence-tile:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.038);
  transform: translateY(-3px);
}

.evidence-tile p {
  margin: 10px 0 0;
  color: var(--muted);
}

.resource-link {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 700;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.34);
}

.resource-link:hover {
  color: var(--text-strong);
}

.optional {
  color: var(--muted-2);
  font-weight: 520;
  font-size: 0.82em;
}

.footer-meta {
  color: var(--muted-2);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .evidence-grid {
    grid-template-columns: 1fr;
  }
}


/* HMSPilot cleanup: hide oval eyebrow/pill labels on public pages */
.eyebrow { display: none !important; }
.hero .eyebrow + h1,
.section-head .eyebrow + h2,
.cta-panel .eyebrow + h2 { margin-top: 0 !important; }


/* Maintain clean spacing after removing eyebrow labels */
.hero h1:first-child,
.section-head h2:first-child,
.cta-panel h2:first-child { margin-top: 0; }

/* HMSPilot cleanup: hide recommendation badge */
.recommendation { display: none !important; }

/* HMSPilot cleanup: hide disclaimer blocks */
.disclaimer { display: none !important; }
