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

:root {
  /* ── Variant A — "Norsk verkstedlys" (Saga design spec) ── */
  --paper:      #f4efe6;   /* warm paper — page background */
  --paper-2:    #ece4d6;   /* deeper paper — bands / inset sections */
  --ink:        #1d1a16;   /* near-black warm — primary text */
  --ink-soft:   #4a443b;   /* muted body text */
  --ink-dim:    #7c7264;   /* weakest text — meta/trust */
  --clay:       #bd4b2e;   /* the single accent — terracotta/clay (display) */
  --clay-soft:  #d96a4a;   /* lighter clay — hover/decor */
  --clay-text:  #a83f24;   /* darker clay — small clay text only (AA on paper) */
  --line:       rgba(29,26,22,0.12);   /* hairline — main dividers */
  --line-soft:  rgba(29,26,22,0.07);   /* even softer divider */

  /* ── Legacy token aliases → mapped onto the Variant A palette so the
        existing rules re-skin without touching every declaration. ── */
  --bg:            var(--paper);
  --panel:         var(--paper-2);
  --surface:       var(--paper);
  --surface-2:     var(--paper-2);
  --surface-hover: var(--paper-2);
  --border-subtle: var(--line-soft);
  --border:        var(--line);
  --border-strong: rgba(29,26,22,0.22);
  --text:          var(--ink);
  --text-soft:     var(--ink-soft);
  --text-muted:    var(--ink-soft);
  --text-dim:      var(--ink-dim);
  --accent:        var(--clay);
  --accent-hover:  var(--clay);
  --accent-soft:   var(--clay-soft);
  --accent-tint:   rgba(189,75,46,0.08);
  --accent-glow:   rgba(189,75,46,0.12);
  --success:       var(--clay);
  --success-tint:  rgba(189,75,46,0.08);
  --warning:       #a86a1f;
  --warning-tint:  rgba(168,106,31,0.08);
  --danger:        #a8442b;
  --danger-tint:   rgba(168,68,43,0.08);
  /* Depth comes from hairlines + two paper tones, never shadow/glow. */
  --shadow:        none;
  --shadow-sm:     none;
  --shadow-lg:     none;
  --r-card:        2px;
  --r-component:   4px;
  --r-btn:         2px;   /* sharp corners — signature detail */
  --r-pill:        2px;
  --transition:    150ms ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Background texture ─────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(13,14,16,0.05) 1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 110% 80% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 110% 80% at 50% 0%, #000 0%, transparent 78%);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

/* ── Typography ─────────────────────────────────────── */
.mono {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
}

.eyebrow {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.03em; }

h1 {
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 600;
  color: var(--text);
}

h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 600;
  color: var(--text);
}

h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
  line-height: 1.7;
}

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

/* ── Layout ─────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; z-index: 1; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--r-btn);
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  border-color: rgba(16,185,129,0.3);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: rgba(16,185,129,0.5);
  box-shadow: 0 4px 16px rgba(16,185,129,0.28);
}

.btn-ghost {
  background: rgba(0,0,0,0.03);
  border-color: var(--border);
  color: var(--text-soft);
}
.btn-ghost:hover {
  background: rgba(0,0,0,0.05);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-lg {
  height: 46px;
  padding: 0 24px;
  font-size: 14.5px;
  border-radius: 2px;
}

/* ── NAV ─────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 30px;
  width: auto;
  display: block;
  box-shadow: none;
  filter: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 2px;
  transition: var(--transition);
}
.nav-link:hover { color: var(--text); background: rgba(0,0,0,0.04); }

.nav-cta {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.hero-content { position: relative; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(16,185,129,0.5);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(16,185,129,0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 16px rgba(16,185,129,0.7); }
}

.hero h1 {
  margin-bottom: 22px;
}

.hero h1 span {
  color: var(--accent);
}

.hero-sub {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.65;
  max-width: 440px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero mock UI */
.hero-ui {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin-right: -40px;
}

.hero-ui-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(16,185,129,0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.mock-window {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(16,185,129,0.06);
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--panel);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mock-dot.red { background: #ff5f57; }
.mock-dot.yellow { background: #febc2e; }
.mock-dot.green { background: #28c840; }

.mock-title {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 10px;
  color: var(--text-dim);
  margin-left: 6px;
  letter-spacing: 0.06em;
}

.mock-screenshot {
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .eyebrow {
  margin-bottom: 14px;
  display: block;
}

.section-header h2 { margin-bottom: 16px; }

.section-header p {
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto;
}

/* ── FEATURES ────────────────────────────────────────── */
.features {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
}

.feature-card {
  padding: 28px 26px;
  background: var(--surface);
  transition: var(--transition);
  position: relative;
}

.feature-card:hover {
  background: var(--panel);
}

.feature-card:hover .feature-icon-box {
  background: rgba(16,185,129,0.14);
  border-color: rgba(16,185,129,0.25);
}

.feature-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: var(--accent-tint);
  border: 1px solid rgba(16,185,129,0.15);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  transition: var(--transition);
}

.feature-icon-box svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 14.5px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── INDUSTRIES ───────────────────────────────────────── */
.industries {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--panel);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.industry-card {
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.industry-card:hover {
  border-color: rgba(16,185,129,0.25);
  box-shadow: var(--shadow);
}

.industry-icon {
  font-size: 24px;
  margin-bottom: 14px;
  display: block;
}

.industry-card h3 {
  font-size: 14.5px;
  margin-bottom: 6px;
}

.industry-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── INTEGRATIONS ─────────────────────────────────────── */
.integrations {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg);
}

.integrations-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr);
  align-items: center;
  gap: 32px;
  max-width: 920px;
  margin: 0 auto;
}

.integ-source {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
}

.integ-source-logo {
  width: 42px;
  height: 42px;
  border-radius: 2px;
  background: var(--accent-tint);
  border: 1px solid rgba(16,185,129,0.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.integ-source-logo svg { width: 22px; height: 22px; color: var(--accent); }
.integ-source-text strong { display: block; font-size: 15px; color: var(--text); }
.integ-source-text span { font-size: 12.5px; color: var(--text-muted); }

.integ-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}

.integ-connector svg { width: 26px; height: 26px; }
.integ-connector span {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.integ-targets { display: grid; gap: 14px; }

.integ-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.integ-card:hover {
  border-color: rgba(16,185,129,0.25);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.integ-logo {
  width: 42px;
  height: 42px;
  border-radius: 2px;
  background: var(--accent-tint);
  border: 1px solid rgba(16,185,129,0.18);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.integ-logo svg { width: 22px; height: 22px; color: var(--accent); display: block; }

.integ-card-body { flex: 1; min-width: 0; }
.integ-card-body strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.integ-card-body span { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }

.integ-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-tint);
  border: 1px solid rgba(5,150,105,0.18);
  border-radius: 999px;
  padding: 4px 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.integ-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.integ-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 36px;
}

@media (max-width: 760px) {
  .integrations-flow { grid-template-columns: 1fr; gap: 18px; }
  .integ-connector { flex-direction: row; }
  .integ-connector svg { transform: rotate(90deg); }
}

@media (max-width: 900px) {
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ── HOW IT WORKS ────────────────────────────────────── */
.how {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--panel);
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}

.how-role {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.how-role::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.how-role.admin::before {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.how-role.ressurs::before {
  background: linear-gradient(90deg, transparent, var(--success), transparent);
}

.how-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.how-role.admin .how-role-badge {
  background: var(--accent-tint);
  color: var(--accent);
  border: 1px solid rgba(16,185,129,0.15);
}

.how-role.ressurs .how-role-badge {
  background: var(--success-tint);
  color: var(--success);
  border: 1px solid rgba(5,150,105,0.15);
}

.how-role h3 {
  font-size: 18px;
  margin-bottom: 28px;
}

.how-steps { display: flex; flex-direction: column; gap: 0; }

.how-step {
  display: flex;
  gap: 16px;
  position: relative;
}

.how-step:not(:last-child) .how-step-line {
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 1px;
  background: var(--border-subtle);
}

.how-step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  display: grid;
  place-items: center;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.how-role.admin .how-step-num { border-color: rgba(16,185,129,0.25); color: var(--accent); background: var(--accent-tint); }
.how-role.ressurs .how-step-num { border-color: rgba(5,150,105,0.25); color: var(--success); background: var(--success-tint); }

.how-step-content {
  padding-bottom: 24px;
  flex: 1;
}

.how-step-content strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  margin-top: 5px;
  margin-bottom: 4px;
}

.how-step-content span {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ── SOCIAL PROOF ───────────────────────────────────── */
.proof {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg);
}

.proof-inner {
  max-width: 760px;
  margin: 0 auto;
}

.proof-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 48px 52px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.proof-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(16,185,129,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.proof-pilot-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 2px;
  background: var(--accent-tint);
  border: 1px solid rgba(16,185,129,0.15);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.proof-quote-mark {
  font-size: 64px;
  line-height: 0.8;
  color: rgba(16,185,129,0.25);
  font-family: Georgia, serif;
  margin-bottom: 20px;
  display: block;
}

.proof-quote {
  font-size: 18px;
  color: var(--text-soft);
  line-height: 1.65;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 28px;
}

.proof-attr {
  display: flex;
  align-items: center;
  gap: 14px;
}

.proof-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-tint);
  border: 1px solid rgba(16,185,129,0.2);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

.proof-attr-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.proof-attr-text span {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ── PRICING ─────────────────────────────────────────── */
.pricing {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 840px;
  margin: 0 auto;
}

.pricing-item {
  text-align: center;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.pricing-item:hover {
  border-color: rgba(16,185,129,0.25);
  box-shadow: var(--shadow);
}

.pricing-icon {
  width: 44px;
  height: 44px;
  border-radius: 2px;
  background: var(--accent-tint);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  color: var(--accent);
}

.pricing-icon svg {
  width: 22px;
  height: 22px;
}

.pricing-item h3 {
  margin-bottom: 8px;
}

.pricing-item p {
  font-size: 14px;
  line-height: 1.6;
}

/* ── CTA ─────────────────────────────────────────────── */
.cta-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--panel);
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.cta-inner .eyebrow { margin-bottom: 16px; display: block; }
.cta-inner h2 { margin-bottom: 14px; }

.cta-sub {
  font-size: 15.5px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.cta-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.cta-input {
  flex: 1;
  height: 46px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
  box-shadow: var(--shadow-sm);
}

.cta-input::placeholder { color: var(--text-dim); }
.cta-input:focus {
  border-color: rgba(16,185,129,0.45);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.08);
}

.cta-note {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.footer-logo img {
  height: 26px;
  width: auto;
  display: block;
  box-shadow: none;
  filter: none;
}

.footer-tagline {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-link {
  font-size: 13px;
  color: var(--text-dim);
  padding: 4px 8px;
  border-radius: 2px;
  transition: var(--transition);
}
.footer-link:hover { color: var(--text-muted); background: rgba(0,0,0,0.04); }

.footer-sep {
  color: var(--border-strong);
  font-size: 12px;
}

.footer-copy {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.footer-contact {
  font-size: 12px;
  color: var(--text-muted);
}
.footer-contact a {
  color: var(--accent);
}
.footer-contact a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

#open-privacy { cursor: pointer; }
#open-contact, .open-contact-btn { cursor: pointer; }

/* ── Cookie banner ──────────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
  padding: 18px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-soft);
  flex: 1;
}
.cookie-banner-text strong { color: var(--text); font-size: 14px; }
.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-banner-actions .btn {
  padding: 8px 14px;
  font-size: 14px;
  height: auto;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1; }
}

/* In-modal "Endre samtykke"-knapp som ser ut som lenke */
.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.link-button:hover { opacity: 0.85; }

/* ── Contact form (inside modal) ────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.contact-input,
.contact-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
  box-shadow: var(--shadow-sm);
}
.contact-input { height: 42px; }
.contact-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
  padding-top: 10px;
  padding-bottom: 10px;
}
.contact-input::placeholder,
.contact-textarea::placeholder { color: var(--text-dim); }
.contact-input:focus,
.contact-textarea:focus {
  border-color: rgba(16,185,129,0.45);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.08);
}
.contact-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}
.contact-thanks {
  padding: 24px 4px;
  text-align: center;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

/* ── Modal (privacy policy) ─────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 14, 16, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
  z-index: 1000;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 160ms ease;
}
.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: translateY(8px);
  transition: transform 160ms ease;
}
.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--panel);
}
.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--r-btn);
  display: grid;
  place-items: center;
  transition: var(--transition);
}
.modal-close:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.modal-body {
  padding: 22px 24px 26px;
  overflow-y: auto;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}
.modal-body h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 18px 0 6px;
}
.modal-body h3:first-child { margin-top: 0; }
.modal-body p {
  margin: 0 0 10px;
}
.modal-body ul {
  margin: 0 0 10px;
  padding-left: 20px;
}
.modal-body li {
  margin-bottom: 4px;
}
.modal-body a {
  color: var(--accent);
}
.modal-body a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
.modal-lead {
  font-size: 13.5px;
  color: var(--ink-dim);
  line-height: 1.55;
  margin-bottom: 22px;
}
.modal-meta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ── Scroll animations ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-ui {
    order: -1;
    max-width: 100%;
    margin-right: 0;
  }
  .hero h1 { font-size: clamp(30px, 8vw, 48px); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: 560px; }
  .how-grid { grid-template-columns: 1fr; }
  .proof-card { padding: 32px 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .pricing-item { padding: 28px 22px; }
  .cta-form { flex-direction: column; }
  .nav-link { display: none; }
  .hero { padding: 60px 0 60px; }
  .section-header { margin-bottom: 36px; }
  .proof-card { padding: 28px 22px; }
}

/* ── MOBILE PORTAL SHOWCASE ──────────────────────────── */
.mobile-portal {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg);
  overflow: hidden;
}

.mp-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}

.mp-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--success-tint);
  color: var(--success);
  border: 1px solid rgba(5,150,105,0.15);
}

.mp-content h2 {
  margin-bottom: 18px;
}

.mp-content > p {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 460px;
}

.mp-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.mp-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.mp-feature-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 2px;
  background: var(--success-tint);
  border: 1px solid rgba(5,150,105,0.15);
  display: grid;
  place-items: center;
  color: var(--success);
}

.mp-feature-icon svg { width: 15px; height: 15px; }

.mp-feature-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.mp-feature-text span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Phone frame */
.mp-phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 20px 0;
}

.mp-phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(ellipse, rgba(5,150,105,0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 240px;
  aspect-ratio: 390/844;
  border-radius: 42px;
  border: 8px solid #1a1a1a;
  background: #1a1a1a;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.28),
    0 8px 24px rgba(0,0,0,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 22px;
  background: #0a0a0a;
  border-radius: 12px;
  z-index: 3;
}

.phone-frame::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  background: rgba(255,255,255,0.85);
  border-radius: 3px;
  z-index: 3;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.mp-phone-tag {
  position: absolute;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 8px 12px;
  box-shadow: var(--shadow);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.mp-phone-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(5,150,105,0.5);
  flex-shrink: 0;
}

.mp-phone-tag strong {
  font-weight: 600;
  color: var(--text);
}

.mp-phone-tag span {
  color: var(--text-muted);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.mp-tag-1 {
  top: 18%;
  left: -28px;
}

.mp-tag-2 {
  bottom: 22%;
  right: -32px;
}

@media (max-width: 900px) {
  .mp-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .mp-phone-stage { order: -1; }
  .mp-content > p { max-width: none; }
  .mp-tag-1 { left: 0; }
  .mp-tag-2 { right: 0; }
}

@media (max-width: 600px) {
  .phone-frame { width: 210px; }
  .mp-tag-1, .mp-tag-2 { display: none; }
}

/* ── SCHEDULER DEMO ──────────────────────────────────── */
.scheduler-demo {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg);
}

.sched-wrapper {
  max-width: 980px;
  margin: 0 auto;
}

/* App window chrome — matches Virkr app */
.sched-window {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(16,185,129,0.05);
  position: relative;
  user-select: none;
}

/* ── Real Virkr app nav bar ── */
.sched-appnav {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 20px;
  height: 48px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.sched-appnav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 24px;
}

.sched-appnav-logo-img {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
  box-shadow: none;
  filter: none;
  object-fit: contain;
}

.sched-appnav-brand {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.2px;
}

.sched-appnav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.sched-appnav-link {
  font-size: 13px;
  color: #6b7280;
  padding: 5px 10px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sched-appnav-link svg { width: 13px; height: 13px; }

.sched-appnav-link-active {
  color: var(--accent);
  background: rgba(16,185,129,0.06);
  font-weight: 500;
}

.sched-appnav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.sched-appnav-icon-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  color: #9ca3af;
}

.sched-appnav-icon-btn svg { width: 15px; height: 15px; }

.sched-appnav-logout {
  font-size: 12px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Schedule page header toolbar ── */
.sched-page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px 10px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  flex-wrap: wrap;
}

.sched-page-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 8px;
}

.sched-page-icon {
  width: 36px;
  height: 36px;
  border-radius: 2px;
  background: #f97316;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.sched-page-icon svg { width: 18px; height: 18px; color: #fff; }

.sched-page-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.4px;
}

.sched-view-pills {
  display: flex;
  align-items: center;
  gap: 2px;
}

.sched-view-pill {
  font-size: 13px;
  color: #6b7280;
  padding: 4px 14px;
  border-radius: 2px;
  font-weight: 400;
}

.sched-view-pill-active {
  color: #111827;
  font-weight: 600;
  background: #f3f4f6;
}

.sched-filter-btn {
  font-size: 12.5px;
  color: #6b7280;
  padding: 5px 12px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fff;
}

.sched-filter-btn svg { width: 12px; height: 12px; }

.sched-planner-notes-btn {
  font-size: 12.5px;
  color: #374151;
  padding: 5px 12px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 2px;
  background: #fff;
}

.sched-today-btn {
  font-size: 12.5px;
  color: #374151;
  padding: 5px 12px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 2px;
  background: #fff;
  font-weight: 500;
}

.sched-cal-icon-btn {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 2px;
  background: #fff;
  display: grid;
  place-items: center;
  color: #6b7280;
}

.sched-cal-icon-btn svg { width: 14px; height: 14px; }

.sched-date-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.sched-date-nav-btn {
  width: 26px;
  height: 26px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  display: grid;
  place-items: center;
  color: #6b7280;
  font-size: 14px;
  line-height: 1;
}

.sched-date-range {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
}

/* ── Sub-toolbar (filter row) ── */
.sched-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  background: #ffffff;
}

.sched-resources-filter {
  font-size: 12.5px;
  color: #374151;
  padding: 5px 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 2px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.sched-resources-filter svg { width: 12px; height: 12px; color: #6b7280; }

.sched-hide-empty {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #6b7280;
}

.sched-checkbox {
  width: 14px;
  height: 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 2px;
  flex-shrink: 0;
}

.sched-new-assignment-btn {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 6px 14px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── Calendar grid ── */
.sched-grid-wrap {
  position: relative;
  overflow: visible;
  background: #f9fafb;
}

/* Day column header row */
.sched-day-header {
  display: flex;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}

.sched-resource-col-header {
  width: 160px;
  flex-shrink: 0;
  border-right: 1px solid rgba(0,0,0,0.08);
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: flex-end;
}

.sched-day-cols {
  display: flex;
  flex: 1;
  min-width: 0;
}

.sched-day-col-header {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 8px 4px 6px;
  border-right: 1px solid rgba(0,0,0,0.08);
}
.sched-day-col-header:last-child { border-right: none; }

.sched-day-abbr {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  display: block;
}

.sched-day-num {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  display: block;
}

/* Weekend columns (LØR/SØN) are greyed out and add no signal, so we hide
   them entirely — desktop shows the 5 weekdays MAN–FRE. The remaining 5
   columns are flex: 1 1 0, so they redistribute the freed width evenly and
   stay clean (no empty gap). The drag animation lives in MAN–TIR, untouched
   by removing weekend columns to the right of FRE. */
.sched-day-col-header.weekend,
.sched-cell.weekend { display: none; }

/* Resource rows */
.sched-rows { display: flex; flex-direction: column; }

.sched-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  min-height: 86px;
  position: relative;
}
.sched-row:last-child { border-bottom: none; }

/* Resource info cell */
.sched-resource {
  width: 160px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border-right: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}

.sched-res-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}

.sched-res-dot-blue   { background: #3b82f6; }
.sched-res-dot-green  { background: #10b981; }
.sched-res-dot-purple { background: #8b5cf6; }

.sched-resource-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sched-resource-name {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  line-height: 1.2;
}

.sched-resource-stats {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.4;
}

/* Day cells within each row */
.sched-day-cells {
  display: flex;
  flex: 1;
  min-width: 0;
}

.sched-cell {
  flex: 1 1 0;
  min-width: 0;
  border-right: 1px solid rgba(0,0,0,0.07);
  padding: 6px 5px;
  position: relative;
  min-height: 86px;
}
.sched-cell:last-child { border-right: none; }

/* Weekend cells */
.sched-cell.weekend {
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 4px,
    rgba(0,0,0,0.018) 4px,
    rgba(0,0,0,0.018) 8px
  );
}

/* Drop target cell */
.sched-cell.drop-target {
  background: rgba(16,185,129,0.06);
  outline: 1.5px dashed rgba(16,185,129,0.4);
  outline-offset: -2px;
  border-radius: 2px;
}

/* Assignment cards — matching real Virkr teal and lavender styles */
.sched-asgn {
  border-radius: 2px;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: default;
  overflow: hidden;
  margin-bottom: 4px;
}

/* Teal/green card — active assignments */
.sched-asgn-teal {
  background: rgba(16,185,129,0.10);
  border-left: 3px solid #10b981;
}

/* Lavender/blue card */
.sched-asgn-lavender {
  background: rgba(139,92,246,0.08);
  border-left: 3px solid #8b5cf6;
}

/* Blue card */
.sched-asgn-blue {
  background: rgba(59,130,246,0.09);
  border-left: 3px solid #3b82f6;
}

/* Completed (strikethrough + muted) */
.sched-asgn-done {
  background: rgba(0,0,0,0.03);
  border-left: 3px solid #d1d5db;
  opacity: 0.75;
}

.sched-asgn-customer {
  font-size: 11.5px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sched-asgn-done .sched-asgn-customer {
  text-decoration: line-through;
  color: #9ca3af;
}

.sched-asgn-meta {
  font-size: 10.5px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sched-asgn-done .sched-asgn-meta { color: #d1d5db; }

.sched-asgn-clock { flex-shrink: 0; opacity: 0.6; }

/* ── DROP ZONE ── */
.sched-drop-zone {
  position: absolute;
  top: 6px;
  left: 5px;
  right: 5px;
  height: 52px;
  border-radius: 2px;
  border: 1.5px dashed rgba(16,185,129,0.5);
  background: rgba(16,185,129,0.07);
  pointer-events: none;
  opacity: 0;
  box-sizing: border-box;
}

/* ── Ghost card (shown in source cell during drag) ── */
.sched-card-ghost {
  border-radius: 2px;
  padding: 7px 8px;
  border: 1.5px dashed rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.04);
  min-height: 52px;
  pointer-events: none;
}

/* ── Drag card — floats over grid during animation ── */
.sched-card-dragging {
  position: absolute;
  box-sizing: border-box;
  border-radius: 2px;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 20;
  will-change: transform, box-shadow;
  background: rgba(16,185,129,0.12);
  border-left: 3px solid #10b981;
  overflow: visible;
  animation: drag-card-move 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  /* top/left/width/height set by JS */
}

.sched-drag-cursor {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #6b7280;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  opacity: 0;
}

@keyframes drag-card-move {
  0%   { transform: translate(0,0) rotate(0deg) scale(1); box-shadow: none; }
  10%  { transform: translate(0,0) rotate(0deg) scale(1); box-shadow: none; }
  18%  { transform: translate(2px,-3px) rotate(1.5deg) scale(1.05);
          box-shadow: 0 12px 32px rgba(0,0,0,0.15), 0 4px 12px rgba(16,185,129,0.15); }
  52%  { transform: translate(2px, -88px) rotate(1.5deg) scale(1.04);
          box-shadow: 0 16px 40px rgba(0,0,0,0.14), 0 4px 16px rgba(16,185,129,0.18); }
  58%  { transform: translate(2px, -80px) rotate(0.5deg) scale(1.01);
          box-shadow: 0 6px 20px rgba(0,0,0,0.10), 0 2px 8px rgba(16,185,129,0.12); }
  62%  { transform: translate(0, -86px) rotate(0deg) scale(1); box-shadow: none; }
  78%  { transform: translate(0, -86px) rotate(0deg) scale(1); box-shadow: none; }
  86%  { transform: translate(2px, -90px) rotate(-1.5deg) scale(1.05);
          box-shadow: 0 12px 32px rgba(0,0,0,0.15), 0 4px 12px rgba(16,185,129,0.15); }
  96%  { transform: translate(2px, -3px) rotate(-0.5deg) scale(1.02);
          box-shadow: 0 6px 20px rgba(0,0,0,0.10); }
  98%  { transform: translate(0, 1px) rotate(0deg) scale(0.99); box-shadow: none; }
  100% { transform: translate(0,0) rotate(0deg) scale(1); box-shadow: none; }
}

.sched-card-dragging .sched-drag-cursor {
  animation: drag-cursor-show 6s ease infinite;
}

@keyframes drag-cursor-show {
  0%, 8%   { opacity: 0; }
  15%, 75% { opacity: 1; }
  80%, 100%{ opacity: 0; }
}

/* ── Mouse cursor — child of #drag-card, moves with it for free.
   Only opacity is animated; position is fixed relative to the card. ── */
.sched-cursor {
  position: absolute;
  bottom: -8px;
  right: -8px;
  top: auto;
  left: auto;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 101;
  opacity: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
  will-change: opacity;
  animation: sched-cursor-opacity 6s ease-in-out infinite;
}

.sched-cursor svg {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes sched-cursor-opacity {
  0%, 8%    { opacity: 0; }
  14%       { opacity: 1; }
  70%       { opacity: 1; }
  78%, 100% { opacity: 0; }
}

.sched-drop-zone {
  animation: drop-zone-pulse 6s ease infinite;
}

@keyframes drop-zone-pulse {
  0%, 14%   { opacity: 0; }
  20%       { opacity: 1; }
  55%, 80%  { opacity: 0.85; }
  85%, 100% { opacity: 0; }
}

.sched-card-ghost {
  animation: ghost-show 6s ease infinite;
}

@keyframes ghost-show {
  0%, 13%    { opacity: 0; }
  18%, 75%   { opacity: 1; }
  80%, 100%  { opacity: 0; }
}

/* Row highlight on drop-target row */
#row-lise {
  animation: row-highlight 6s ease infinite;
}

@keyframes row-highlight {
  0%, 14%   { background: transparent; }
  22%, 70%  { background: rgba(16,185,129,0.03); }
  80%, 100% { background: transparent; }
}

/* Toast notification */
.sched-toast {
  position: absolute;
  bottom: 14px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #111827;
  color: #fff;
  border-radius: 2px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.20);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  animation: toast-appear 6s ease infinite;
}

.sched-toast svg { color: #34d399; flex-shrink: 0; }

@keyframes toast-appear {
  0%, 55%   { opacity: 0; transform: translateY(8px); }
  62%       { opacity: 1; transform: translateY(0); }
  75%       { opacity: 1; transform: translateY(0); }
  82%       { opacity: 0; transform: translateY(-4px); }
  100%      { opacity: 0; transform: translateY(8px); }
}

/* Responsive */

@media (max-width: 760px) {
  /* The scheduler is a dense desktop-style 7-day grid. On phone widths a
     full week squishes day columns and overlaps the cards. Instead of
     horizontal scroll we show only the first 2 days (MAN/TIR) so the two
     kept columns + the resource column fill the viewport at a readable
     width — wider columns, no sideways scroll. The drag animation lives
     entirely in the MAN–TIR area (source cell on Lise's TUE, ghost/drop on
     Mari's TUE, card from Bakken), so hiding columns 3–7 is safe: the JS
     measures getBoundingClientRect() only on cells that stay visible, and
     flex redistributes the freed width across the 2 kept columns
     undistorted. (Weekend columns are already display:none above.) */
  .sched-day-col-header:nth-child(n+3),
  .sched-cell:nth-child(n+3) {
    display: none;
  }
  /* Hide chrome that adds noise but isn't part of the core
     "drag a job between resources" story. */
  .sched-appnav-links { display: none; }
  .sched-appnav-logout { display: none; }
  .sched-planner-notes-btn { display: none; }
  .sched-view-pills { display: none; }
  .sched-filter-btn { display: none; }
}
/* ══════════════════════════════════════════════════════════════════
   VARIANT A — "Norsk verkstedlys" retheme overrides
   Placed last so equal-specificity rules win by source order. Re-skins
   the existing structure (fonts, paper/ink/clay palette, hairlines,
   sharp radii, no shadow/glow) without rewriting the markup.
   ══════════════════════════════════════════════════════════════════ */

/* — Base type & texture — */
body {
  font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
body::before { display: none; }           /* drop dotted gradient texture */
h1, h2, h3 {
  font-family: "Spectral", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.06;
}
p { color: var(--ink-soft); }
.mono { font-family: "Hanken Grotesk", system-ui, sans-serif; }
.serif { font-family: "Spectral", Georgia, serif; }

.container { max-width: 1100px; padding: 0 40px; }
@media (max-width: 600px) { .container { padding: 0 22px; } }

/* — Kicker / eyebrow (replaces mono labels): clay hairline + uppercase — */
.eyebrow {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay-text);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--clay);
  vertical-align: middle;
  margin-right: 12px;
}

/* — Buttons: 2px radius, primary is ink that fills clay on hover — */
.btn { border-radius: 2px; font-weight: 600; font-family: inherit; }
.btn-lg { border-radius: 2px; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--clay); border-color: var(--clay); box-shadow: none; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }

/* — Nav: paper-glass, logo B lockup — */
nav { background: rgba(244,239,230,0.88); border-bottom-color: var(--line); }
.nav-inner { height: 74px; }
.nav-logo img { height: 32px; }

/* — Hero — */
.hero { padding: 96px 0 70px; }
.hero-content .eyebrow { display: inline-block; margin-bottom: 24px; }
.hero h1 { margin-bottom: 30px; }
.hero h1 { font-family: "Spectral", serif; font-weight: 500; letter-spacing: -0.025em; line-height: 1.02; }
.hero h1 em, .hero h1 span { font-style: italic; color: var(--clay); }
.hero-sub { font-size: 20px; color: var(--ink-soft); max-width: 50ch; line-height: 1.55; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); flex-shrink: 0; }
.hero-ui-glow { display: none; }
.mock-window { box-shadow: none; border: 1px solid var(--line); border-radius: 2px; }
.mock-titlebar { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.mock-title { font-family: "Hanken Grotesk", system-ui, sans-serif; color: var(--ink-dim); }

/* — Switch band (new component) — */

/* — Outcome rows (editorial 01/02/03) — */
.sec { padding: 96px 0; position: relative; z-index: 1; }
.sec-head { max-width: 32ch; margin-bottom: 56px; }
.sec-head h2 { font-family: "Spectral", serif; font-weight: 500; font-size: clamp(32px,4vw,50px); line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 18px; }
.sec-head p { font-size: 18px; color: var(--ink-soft); }
.rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 54px 1fr 1.3fr; gap: 32px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.row-n { font-family: "Spectral", serif; font-style: italic; font-size: 24px; color: var(--clay-text); }
.row h3 { font-family: "Spectral", serif; font-weight: 500; font-size: 25px; letter-spacing: -0.01em; color: var(--ink); }
.row p { font-size: 17px; color: var(--ink-soft); line-height: 1.55; }
.row p b { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; gap: 8px; }
}

/* — Features — */
.features-grid { background: var(--line); border: 1px solid var(--line); border-radius: 2px; }
.feature-card { background: var(--paper); }
.feature-card:hover { background: var(--paper-2); }
.feature-icon-box, .feature-card:hover .feature-icon-box { background: var(--paper-2); border: 1px solid var(--line); }
.feature-icon-box svg { color: var(--ink-soft); }
.feature-card h3 { font-size: 18px; color: var(--ink); }

/* — Industries — */
.industry-card { background: var(--paper); border: 1px solid var(--line); box-shadow: none; }
.industry-card:hover { border-color: var(--ink); box-shadow: none; }
.industry-card h3 { font-size: 18px; color: var(--ink); }

/* — Integrations (direct Tripletex + Fiken) — */
.integ-source, .integ-card { background: var(--paper); border: 1px solid var(--line); box-shadow: none; }
.integ-card:hover { border-color: var(--ink); box-shadow: none; transform: none; }
.integ-source-logo, .integ-logo { background: var(--paper-2); border: 1px solid var(--line); border-radius: 2px; }
.integ-source-logo svg, .integ-logo svg { color: var(--ink-soft); }
.integ-source-text strong, .integ-card-body strong { color: var(--ink); font-family: "Spectral", serif; font-weight: 500; }
.integ-connector { color: var(--clay); }
.integ-connector span { font-family: "Hanken Grotesk", system-ui, sans-serif; color: var(--ink-dim); letter-spacing: 0.12em; }
.integ-note { color: var(--ink-dim); }
.integ-roadmap { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.integ-tag { font-size: 13px; font-weight: 500; color: var(--ink-soft); background: var(--paper-2); border: 1px solid var(--line); border-radius: 40px; padding: 6px 14px; }
.integ-tag.planned { color: var(--ink-dim); }
.integ-tag .planned-label { color: var(--ink-dim); font-weight: 600; letter-spacing: 0.04em; }

/* — How it works — */
.how-role::before { display: none; }
.how-role-badge { font-family: "Hanken Grotesk", system-ui, sans-serif; background: none; border: none; padding: 0; letter-spacing: 0.12em; color: var(--clay-text); }
.how-role.admin .how-role-badge, .how-role.ressurs .how-role-badge { background: none; border: none; color: var(--clay-text); }
.how-role h3 { font-size: 22px; color: var(--ink); }
.how-step-num { font-family: "Hanken Grotesk", system-ui, sans-serif; }
.how-role.admin .how-step-num, .how-role.ressurs .how-step-num { background: var(--paper-2); border-color: var(--line); color: var(--clay-text); }

/* — Scheduler demo: retheme green "success" → clay (keep app chrome) — */
.sched-window { box-shadow: none; border: 1px solid var(--line); }
.sched-appnav-link-active { color: var(--clay); background: rgba(189,75,46,0.07); }
.sched-new-assignment-btn { background: var(--ink); }
.sched-res-dot-green { background: var(--clay); }
.sched-asgn-teal { background: rgba(189,75,46,0.10); border-left-color: var(--clay); }
.sched-cell.drop-target { background: rgba(189,75,46,0.06); outline-color: rgba(189,75,46,0.4); }
.sched-drop-zone { border-color: rgba(189,75,46,0.5); background: rgba(189,75,46,0.07); }
.sched-card-ghost { border-color: rgba(189,75,46,0.35); background: rgba(189,75,46,0.05); }
.sched-card-dragging { background: rgba(189,75,46,0.12); border-left-color: var(--clay); }
#drag-card .sched-asgn-customer { color: var(--clay-text) !important; }
.sched-toast svg { color: var(--clay-soft); }

/* — Mobile portal — */
.mp-content .eyebrow { background: none; border: none; padding: 0; color: var(--clay-text); }
.mp-content .eyebrow::before { display: none; }
.mp-feature-icon { background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-soft); }
.mp-phone-glow { display: none; }
.mp-phone-tag { box-shadow: none; border: 1px solid var(--line); background: var(--paper); border-radius: 2px; }
.mp-phone-tag-dot { background: var(--clay); box-shadow: none; }
.mp-phone-tag span { font-family: "Hanken Grotesk", system-ui, sans-serif; }
.phone-frame { box-shadow: 0 24px 60px rgba(29,26,22,0.14); }

/* — Recommendation / Anbefaling (#8) — under hero — */
.anbefaling {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  z-index: 1;
}
.anbefaling-band {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 36px;
  align-items: center;
  padding: 32px 36px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-2);
  box-shadow: none;
}
.anbefaling-portrait {
  width: 140px;
  height: auto;
  aspect-ratio: 803 / 954;
  border-radius: 16px;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
}
.anbefaling-body .eyebrow {
  display: inline-block;
  margin-bottom: 16px;
}
.anbefaling-quote {
  margin: 0 0 20px;
  font-family: "Spectral", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.55;
  color: var(--ink);
}
.anbefaling-byline {
  margin: 0;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.anbefaling-byline strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
@media (max-width: 700px) {
  .anbefaling { padding: 36px 0 44px; }
  .anbefaling-band {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 26px 22px;
  }
  .anbefaling-portrait {
    width: 120px;
    height: auto;
  }
}

/* — Pricing (no numbers) — */
.pricing-item { background: var(--paper); border: 1px solid var(--line); box-shadow: none; }
.pricing-item:hover { border-color: var(--ink); box-shadow: none; }
.pricing-item h3 { font-size: 20px; color: var(--ink); }
.pricing-icon { background: var(--paper-2); color: var(--ink-soft); border: 1px solid var(--line); border-radius: 2px; }

/* — CTA / forms — */
.cta-input:focus, .contact-input:focus, .contact-textarea:focus {
  border-color: var(--clay); box-shadow: 0 0 0 3px rgba(189,75,46,0.10);
}
.cta-note { font-family: "Hanken Grotesk", system-ui, sans-serif; }

/* — Footer (light paper with hairline top) — */
footer { background: var(--paper); border-top: 1px solid var(--line); }
.footer-logo img { height: 28px; }
.footer-tagline, .footer-copy { font-family: "Hanken Grotesk", system-ui, sans-serif; color: var(--ink-dim); }
.footer-link:hover { color: var(--ink); }
.footer-contact a, .modal-body a, .link-button { color: var(--clay-text); }

/* — Cookie banner & modals (overlays keep light elevation) — */
.cookie-banner { background: var(--paper); border: 1px solid var(--line); border-radius: 2px; box-shadow: none; }
.modal-overlay { background: rgba(29,26,22,0.5); }
.modal { border-radius: 2px; box-shadow: 0 20px 60px rgba(29,26,22,0.22); }
.modal-header { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.modal-meta { font-family: "Hanken Grotesk", system-ui, sans-serif; }


/* Conversion flow: compact hero, optional detail, accessible form feedback. */
[hidden] { display: none !important; }
button { font-family: inherit; cursor: pointer; }
button.footer-link { background: none; border: 0; font: inherit; }
:is(button, a, summary):focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
.hero { padding: 56px 0 64px; }
.hero h1 { font-size: clamp(36px, 4.7vw, 60px); line-height: 1.08; margin-bottom: 22px; }
.hero-content .eyebrow { margin-bottom: 20px; }
.hero-sub { font-size: 19px; margin-bottom: 24px; }
.hero-actions { gap: 12px; }
.trial-note { margin-top: 18px; max-width: 48ch; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.feature-details summary, .faq summary { padding: 22px 0; color: var(--ink); font-size: 18px; font-weight: 600; cursor: pointer; }
.feature-details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-details[open] { border-bottom: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq details p { max-width: 72ch; padding: 0 0 24px; color: var(--ink-soft); line-height: 1.6; }
.faq .sec-head { max-width: none; margin-bottom: 32px; }
.optional-label { font-weight: 400; color: var(--ink-soft); }
.field-error, .form-error { color: #B02A1E; font-size: 14px; }
.form-error { padding: 12px; border: 1px solid currentColor; border-radius: 2px; }
[aria-invalid="true"] { border-color: #B02A1E; }
.contact-input:focus, .contact-textarea:focus { border-color: var(--clay); box-shadow: 0 0 0 2px rgba(189,75,46,0.15); }
.contact-label { font-size: 14px; }
.contact-input, .contact-textarea { font-size: 16px; }
.contact-textarea { min-height: 80px; }
.contact-thanks strong { display: block; margin-bottom: 12px; font-size: 20px; }
.contact-actions .btn { min-height: 44px; }
.btn:disabled { opacity: 0.65; cursor: wait; }
#how { scroll-margin-top: 94px; }
@media (max-width: 900px) {
  .hero-ui { order: 0; }
  .hero-grid { gap: 32px; }
}
@media (max-width: 600px) {
  .hero { padding: 32px 0 40px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 18px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero .eyebrow { font-size: 11px; letter-spacing: 0.1em; }
  .trial-note { font-size: 14px; }
  .sec, .features, .pricing { padding: 56px 0; }
  .modal-overlay { padding: 16px 12px; }
  .modal { max-height: calc(100dvh - 32px); }
  .modal-header { padding: 16px; }
  .modal-body { padding: 16px; }
  .modal-close { width: 44px; height: 44px; flex-shrink: 0; }
  .contact-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Shared navigation and static content links. */
.skip-link { position: fixed; top: -120px; left: 16px; z-index: 1000; background: var(--paper); color: var(--ink); padding: 12px 18px; border: 2px solid var(--clay); }
.skip-link:focus { top: 12px; }
.section-link { margin-top: 24px; }
.section-link a { color: var(--clay-text); text-decoration: underline; text-underline-offset: 4px; }
.footer-links { flex-wrap: wrap; }
.mock-screenshot { height: auto; }
