/* =========================================================
   Klar Renhold — Demo Pakke 2 (Standard, 3 sider)
   Professional, trustworthy, structured
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f3f6f4;
  --bg-deep: #1c2522;
  --surface: #ffffff;
  --line: #dfe6e3;
  --line-strong: #c6d1cc;

  --ink: #1c2522;
  --ink-soft: #4a574f;
  --ink-faint: #75857c;

  /* Nordic sage / muted eucalyptus — calmer than “startup teal” */
  --brand: #4f6960;
  --brand-rgb: 79, 105, 96;
  --brand-dark: #3e534c;
  --brand-soft: #dbe8e4;
  --brand-tint: #eef4f2;
  --accent: #5f7a71;
  --gradient-brand: linear-gradient(138deg, #4f6960 0%, #708b82 52%, #3d534c 100%);
  --gradient-deep: linear-gradient(135deg, #3e534c 0%, #2a3832 100%);

  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow:
    0 14px 30px -14px rgba(var(--brand-rgb), 0.14),
    0 4px 12px -4px rgba(15, 23, 42, 0.06);
  --shadow-lg:
    0 30px 60px -20px rgba(15, 23, 42, 0.22),
    0 12px 24px -10px rgba(var(--brand-rgb), 0.09);
  --shadow-brand: 0 14px 32px -10px rgba(var(--brand-rgb), 0.28);

  --t: 280ms cubic-bezier(.2, .8, .2, 1);
  --t-slow: 600ms cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--brand); color: #fff;
  padding: 12px 16px; border-radius: 8px; z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

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

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

/* =========================================================
   Demo ribbon
   ========================================================= */
.demo-ribbon {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  background: var(--bg-deep); color: #fff;
  padding: 8px clamp(1rem, 3vw, 2rem);
  font-size: 0.78rem; letter-spacing: 0.04em;
}

.demo-ribbon-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 500; opacity: 0.85; transition: opacity var(--t);
}
.demo-ribbon-back:hover { opacity: 1; }

.demo-ribbon-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 0.7rem;
}

.demo-ribbon-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: ribbonPulse 2.4s ease-in-out infinite;
}

@keyframes ribbonPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0.35); }
  50%      { box-shadow: 0 0 0 5px rgba(var(--brand-rgb), 0); }
}

/* =========================================================
   Header
   ========================================================= */
.header {
  position: sticky; top: 40px; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; height: 72px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: 9px;
  font-weight: 800; font-size: 1rem;
  box-shadow: var(--shadow-brand);
}

.brand-text { color: var(--ink); }
.brand-accent { color: var(--brand); }

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

.nav a {
  font-size: 0.95rem; color: var(--ink-soft);
  font-weight: 500; position: relative;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
  border-radius: 2px;
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 600;
  transition: transform var(--t), background var(--t), box-shadow var(--t);
  box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.3);
}
.cta-btn:hover {
  background: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(var(--brand-rgb), 0.45);
  color: #fff;
}

.nav-burger {
  display: none; width: 40px; height: 40px;
  position: relative; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
}
.nav-burger span {
  position: absolute; left: 11px;
  width: 18px; height: 1.8px;
  background: var(--ink); border-radius: 2px;
  transition: transform var(--t), opacity var(--t-slow);
}
.nav-burger span:nth-child(1) { top: 14px; }
.nav-burger span:nth-child(2) { top: 19px; }
.nav-burger span:nth-child(3) { top: 24px; }

.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav, .cta-btn {
    position: fixed;
    inset: 112px clamp(1rem, 3vw, 2rem) auto;
    flex-direction: column; align-items: stretch;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: transform var(--t), opacity var(--t), visibility 0s linear var(--t);
  }
  .cta-btn {
    position: static;
    background: var(--ink); color: #fff;
    text-align: center; padding: 13px 18px;
    box-shadow: none;
  }
  .nav.is-open {
    transform: translateY(0); opacity: 1; visibility: visible;
    transition: transform var(--t), opacity var(--t), visibility 0s linear 0s;
  }
  .nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem; color: var(--ink);
  }
  .nav a:last-child { border-bottom: none; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
}

/* =========================================================
   Typography & layout
   ========================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-tint);
  border: 1px solid rgba(var(--brand-rgb), 0.2);
  padding: 6px 12px;
  border-radius: 999px;
}

.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  animation: dotPulse 2.4s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(var(--brand-rgb), 0); }
}

.display {
  font-size: clamp(2.1rem, 3.6vw + 0.9rem, 3.7rem);
  font-weight: 800; letter-spacing: -0.028em; line-height: 1.05;
}

.h2 {
  font-size: clamp(1.8rem, 2vw + 1.1rem, 2.6rem);
  font-weight: 800; letter-spacing: -0.022em; line-height: 1.1;
}

.h3 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.lead {
  font-size: 1.08rem; line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section {
  padding-block: clamp(4.25rem, 8vw, 6.75rem);
}

.section-head {
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; gap: 1rem;
  margin-bottom: clamp(2.5rem, 4.6vw, 3.85rem);
}

.section-head .h2 { max-width: 22ch; }
.section-head p { text-align: center; margin-inline: auto; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 20px;
  border-radius: 10px; font-weight: 600; font-size: 0.95rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform var(--t), background var(--t), color var(--t), box-shadow var(--t), border-color var(--t);
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.35);
}
.btn-primary:hover {
  background: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(var(--brand-rgb), 0.45);
  color: #fff;
}

.btn-brand {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(var(--brand-rgb), 0.55);
  color: #fff;
}

.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--bg-soft);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(var(--brand-rgb), 0.08), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f4f7fa 100%);
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.hero-bg::before {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(var(--brand-rgb), 0.45), transparent 65%);
  top: -180px; right: -120px;
  animation: blobDrift1 22s ease-in-out infinite alternate;
}

.hero-bg::after {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(var(--brand-rgb), 0.38), transparent 65%);
  bottom: -160px; left: -120px;
  animation: blobDrift2 26s ease-in-out infinite alternate;
}

@keyframes blobDrift1 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-60px, 40px, 0) scale(1.08); }
}
@keyframes blobDrift2 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(60px, -40px, 0) scale(1.06); }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

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

.hero-text {
  display: flex; flex-direction: column;
  gap: 1.1rem; align-items: flex-start;
}

.hero-text .display { margin-top: 0.4rem; }

.hero-trust {
  display: flex; align-items: center; gap: 10px;
  margin-top: 0.4rem;
}

.hero-trust-stars {
  display: inline-flex; gap: 1px; color: #f59e0b;
}

.hero-trust span {
  font-size: 0.88rem; color: var(--ink-soft);
}

.hero-trust strong { color: var(--ink); font-weight: 700; }

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 0.6rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 2vw, 1.6rem);
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  width: 100%;
  max-width: 540px;
}

.hero-stats > div {
  display: flex; flex-direction: column; gap: 2px;
}

.hero-stats b {
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem);
  font-weight: 800; letter-spacing: -0.02em;
  color: var(--ink); line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero-stats small {
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* Hero visual — illustrated card composition */
.hero-visual {
  position: relative;
  aspect-ratio: 5 / 6;
  max-width: 520px;
  margin-inline: auto;
  width: 100%;
}

.hv-main {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 60% at 20% 20%, rgba(167, 243, 208, 0.5), transparent 60%),
    linear-gradient(160deg, #556f67 0%, #2f3f39 100%);
  box-shadow: var(--shadow-lg), 0 30px 80px -30px rgba(var(--brand-rgb), 0.5);
  overflow: hidden;
}

.hv-main::before {
  content: "";
  position: absolute; inset: -30% -30%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(255, 255, 255, 0.12) 30%, transparent 60%);
  animation: hvShine 14s linear infinite;
}

@keyframes hvShine {
  to { transform: rotate(360deg); }
}

.hv-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.06) 1px, transparent 1.5px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.06) 1px, transparent 1.5px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.04) 1px, transparent 1.5px);
  background-size: 80px 80px;
}

.hv-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  color: #fff;
}

.hv-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 12px; border-radius: 999px;
  backdrop-filter: blur(6px);
  align-self: flex-start;
}

.hv-tag::before {
  content: ""; width: 6px; height: 6px;
  background: #34d399; border-radius: 50%;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
}

.hv-title {
  font-size: clamp(1.6rem, 2.5vw + 0.8rem, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 14ch;
}

/* Floating cards around hero visual */
.hv-float {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.hv-float-1 {
  top: 18%; left: -8%;
  display: flex; align-items: center; gap: 10px;
  animation: floatA 6s ease-in-out infinite;
}

.hv-float-1 .hv-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand);
  border-radius: 10px;
}

.hv-float-1 div { display: flex; flex-direction: column; gap: 1px; }
.hv-float-1 strong { font-size: 0.92rem; font-weight: 700; color: var(--ink); }
.hv-float-1 small { font-size: 0.74rem; color: var(--ink-soft); }

.hv-float-2 {
  bottom: 6%; right: -6%;
  display: flex; flex-direction: column; gap: 6px;
  min-width: 150px;
  animation: floatB 7s ease-in-out infinite;
}

.hv-float-2 .hv-mini-stars {
  display: inline-flex; gap: 1px; color: #f59e0b;
}

.hv-float-2 strong { font-size: 0.94rem; font-weight: 700; color: var(--ink); }
.hv-float-2 small { font-size: 0.76rem; color: var(--ink-soft); }

@keyframes floatA {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-10px) rotate(-2deg); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50%      { transform: translateY(-8px) rotate(2deg); }
}

@media (max-width: 600px) {
  .hv-float-1 { left: 0; top: 12%; }
  .hv-float-2 { right: 0; bottom: 4%; min-width: 130px; }
}

/* =========================================================
   Stats strip
   ========================================================= */
.stats-strip {
  background: var(--bg-deep);
  color: #fff;
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
}

.stats-strip::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 90% 50%, rgba(var(--brand-rgb), 0.25), transparent 70%),
    radial-gradient(35% 50% at 10% 50%, rgba(var(--brand-rgb), 0.22), transparent 70%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  position: relative;
}

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
}

.stat {
  display: flex; flex-direction: column;
  gap: 4px; text-align: center;
}

.stat b {
  font-size: clamp(2rem, 3vw + 1rem, 3.2rem);
  font-weight: 800; letter-spacing: -0.025em;
  background: linear-gradient(135deg, #ffffff 0%, #a7f3d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat small {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

/* =========================================================
   Services preview / grid
   ========================================================= */
.services {
  background: var(--bg);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.35rem, 2.8vw, 2rem);
}

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

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

.svc-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.95rem 1.7rem;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  overflow: hidden;
  isolation: isolate;
}

.svc-card::before {
  content: "";
  position: absolute;
  inset: 0; top: auto;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-slow);
}

.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--brand-rgb), 0.3);
}

.svc-card:hover::before { transform: scaleX(1); }

.svc-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--brand-tint);
  color: var(--brand);
  border-radius: 14px;
  margin-bottom: 1.2rem;
  transition: background var(--t), color var(--t), transform var(--t);
}

.svc-card:hover .svc-icon {
  background: var(--gradient-brand);
  color: #fff;
  transform: scale(1.06) rotate(-4deg);
}

.svc-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.svc-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.62;
  margin-bottom: 1.3rem;
}

.svc-card ul {
  display: flex; flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.svc-card li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--ink-soft);
}

.svc-card li::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f6960' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/10px no-repeat;
  flex-shrink: 0;
}

.svc-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 1.2rem;
  color: var(--brand-dark);
  font-weight: 600; font-size: 0.92rem;
  transition: gap var(--t);
}
.svc-card:hover .svc-arrow { gap: 10px; color: var(--brand); }

/* =========================================================
   Process steps
   ========================================================= */
.process {
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  position: relative;
}

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

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

.process-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  position: relative;
  transition: transform var(--t), box-shadow var(--t);
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.process-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 800; font-size: 0.95rem;
  border-radius: 10px;
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow-brand);
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.process-step p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* =========================================================
   Testimonial
   ========================================================= */
.testimonial {
  background: var(--bg);
}

.testimonial-card {
  max-width: 760px;
  margin-inline: auto;
  background: linear-gradient(135deg, #3e534c 0%, #2a3832 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 3vw, 3rem);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(var(--brand-rgb), 0.4);
}

.testimonial-card::before {
  content: """;
  position: absolute;
  top: -50px; right: 20px;
  font-size: 16rem;
  font-family: Georgia, serif;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  pointer-events: none;
}

.testimonial-card::after {
  content: "";
  position: absolute; inset: -30% -30%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(255, 255, 255, 0.08) 30%, transparent 60%);
  animation: hvShine 18s linear infinite;
}

.t-quote {
  font-size: clamp(1.1rem, 1vw + 1rem, 1.4rem);
  font-weight: 500; line-height: 1.58;
  margin-bottom: 1.5rem;
  position: relative; z-index: 2;
  max-width: 34ch;
}

.t-author {
  display: flex; align-items: center; gap: 14px;
  position: relative; z-index: 2;
}

.t-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%);
  display: grid; place-items: center;
  font-weight: 800; color: #33463f;
  font-size: 1rem;
}

.t-name { font-weight: 700; line-height: 1.2; }
.t-role { font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); }

/* Testimonial slider dots */
.testimonial-nav {
  display: flex; justify-content: center;
  gap: 6px;
  margin-top: 1.4rem;
}

.testimonial-nav button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background var(--t), width var(--t);
}

.testimonial-nav button.is-active {
  width: 24px; border-radius: 4px;
  background: var(--brand);
}

/* =========================================================
   CTA banner
   ========================================================= */
.cta-banner {
  background: var(--bg-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 80% 50%, rgba(var(--brand-rgb), 0.35), transparent 70%),
    radial-gradient(40% 50% at 10% 50%, rgba(var(--brand-rgb), 0.26), transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.cta-inner h2 {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.2rem);
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.6rem;
  max-width: 40ch;
}

.cta-banner .btn-brand:hover {
  filter: brightness(1.1);
}

/* =========================================================
   Page hero (subpages)
   ========================================================= */
.page-hero {
  position: relative;
  padding-block: clamp(3rem, 5vw, 4.5rem) clamp(2.5rem, 4vw, 3.5rem);
  background:
    radial-gradient(50% 60% at 80% 0%, rgba(var(--brand-rgb), 0.07), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f4f7fa 100%);
  overflow: hidden;
  isolation: isolate;
}

.page-hero-inner {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 1rem;
  max-width: 720px;
}

.breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.84rem; color: var(--ink-soft);
}

.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb-current { color: var(--ink); font-weight: 500; }

/* =========================================================
   FAQ (accordion)
   ========================================================= */
.faq-list {
  display: flex; flex-direction: column;
  gap: 10px;
  max-width: 760px;
  margin-inline: auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}

.faq-item[open] {
  border-color: rgba(var(--brand-rgb), 0.35);
  box-shadow: var(--shadow);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  transition: color var(--t);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand); }

.faq-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand-tint);
  display: grid; place-items: center;
  color: var(--brand);
  flex-shrink: 0;
  transition: transform var(--t), background var(--t);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--brand);
  color: #fff;
}

.faq-body {
  padding: 0 1.4rem 1.2rem;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.96rem;
}

/* =========================================================
   Coverage card / map placeholder
   ========================================================= */
.coverage {
  background: var(--bg-soft);
}

.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

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

.coverage-text {
  display: flex; flex-direction: column;
  gap: 1rem; align-items: flex-start;
}

.coverage-text ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  width: 100%;
}

.coverage-text li {
  font-size: 0.94rem; color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px;
}

.coverage-text li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--brand); border-radius: 50%;
  flex-shrink: 0;
}

.map-card {
  position: relative;
  aspect-ratio: 5 / 4;
  background:
    radial-gradient(60% 60% at 40% 40%, rgba(var(--brand-rgb), 0.25), transparent 60%),
    linear-gradient(135deg, #cffafe 0%, #99f6e4 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-pin {
  position: absolute;
  width: 26px; height: 26px;
  background: var(--brand);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 8px 18px -6px rgba(var(--brand-rgb), 0.7);
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: #fff;
  border-radius: 50%;
}

.map-pin-1 { top: 38%; left: 45%; animation: pinFloat 4s ease-in-out infinite; }
.map-pin-2 { top: 28%; left: 60%; animation: pinFloat 4.5s ease-in-out infinite 0.5s; }
.map-pin-3 { top: 55%; left: 35%; animation: pinFloat 5s ease-in-out infinite 1s; }

@keyframes pinFloat {
  0%, 100% { transform: rotate(-45deg) translateY(0); }
  50%      { transform: rotate(-45deg) translateY(-6px); }
}

.map-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* =========================================================
   Contact (form)
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

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

.contact-info {
  display: flex; flex-direction: column;
  gap: 1rem; align-items: flex-start;
}

.contact-list {
  display: flex; flex-direction: column;
  gap: 14px;
  padding-top: 1.2rem; margin-top: 0.6rem;
  border-top: 1px solid var(--line);
  width: 100%;
}

.contact-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color var(--t), box-shadow var(--t);
}

.contact-list li:hover {
  border-color: rgba(var(--brand-rgb), 0.3);
  box-shadow: var(--shadow);
}

.contact-list .ci-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand);
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-list strong { display: block; font-size: 0.95rem; color: var(--ink); }
.contact-list small { display: block; font-size: 0.82rem; color: var(--ink-soft); }
.contact-list a { color: inherit; }
.contact-list a:hover strong { color: var(--brand); }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 1rem;
  position: relative;
  isolation: isolate;
}

.contact-form::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.25), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

.form-row { display: flex; flex-direction: column; gap: 6px; }

.form-row label {
  font-size: 0.88rem; font-weight: 600; color: var(--ink);
}

.form-row input,
.form-row textarea,
.form-row select {
  font: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  transition: border-color var(--t), box-shadow var(--t);
  width: 100%;
}

.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--ink-faint); }

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.12);
}

.form-row textarea { resize: vertical; min-height: 110px; }

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}

.form-status {
  margin: 0; font-size: 0.92rem;
  text-align: center; min-height: 1.2em;
  color: var(--ink-soft);
}
.form-status.is-success { color: #047857; }
.form-status.is-error { color: #b91c1c; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--bg-deep);
  color: rgba(255, 255, 255, 0.65);
  padding-block: clamp(3rem, 5vw, 4rem) 1.5rem;
  position: relative; overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(40% 60% at 80% 0%, rgba(var(--brand-rgb), 0.15), transparent 70%);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer .brand { color: #fff; }
.footer .brand-mark {
  background: var(--gradient-brand);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.8rem;
  max-width: 32ch; font-size: 0.95rem;
}

.footer-col h4 {
  color: #fff; font-size: 0.84rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 1rem; font-weight: 700;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }

.footer-col a, .footer-col li {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.94rem;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  position: relative;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.4);
  padding-top: 1.5rem;
}

/* =========================================================
   Demo notes (floating annotation panel)
   ========================================================= */
.demo-notes {
  position: fixed;
  bottom: 18px; right: 18px;
  z-index: 150;
  font-family: "Inter", sans-serif;
}

.demo-notes-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff;
  padding: 11px 16px; border-radius: 999px;
  font-size: 0.84rem; font-weight: 600;
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.35);
  transition: transform var(--t), background var(--t);
}

.demo-notes-toggle:hover {
  background: var(--brand);
  transform: translateY(-2px);
}

.demo-notes-toggle svg { transition: transform var(--t); }
.demo-notes[data-open="true"] .demo-notes-toggle svg { transform: rotate(45deg); }

.demo-notes-panel {
  position: absolute;
  bottom: calc(100% + 12px); right: 0;
  width: min(340px, calc(100vw - 36px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem 1.4rem 1.4rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(8px) scale(0.98);
  opacity: 0; pointer-events: none;
  transition: transform var(--t), opacity var(--t);
}

.demo-notes[data-open="true"] .demo-notes-panel {
  transform: translateY(0) scale(1);
  opacity: 1; pointer-events: auto;
}

.demo-notes-panel header {
  display: flex; flex-direction: column; gap: 2px;
  padding-bottom: 0.9rem; margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.demo-notes-tier {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand);
}

.demo-notes-panel header strong {
  font-size: 1.05rem; font-weight: 700; color: var(--ink);
  letter-spacing: -0.015em;
}

.demo-notes-panel ul {
  display: grid; gap: 0.5rem;
}

.demo-notes-panel li {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.88rem; color: var(--ink-soft);
}

.demo-notes-panel li::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f6960' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/10px no-repeat;
  flex-shrink: 0;
}

.demo-notes-foot {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.demo-notes-pages {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 0.7rem;
}

.demo-notes-pages a {
  font-size: 0.72rem; font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  transition: background var(--t), color var(--t);
}

.demo-notes-pages a:hover,
.demo-notes-pages a.is-active {
  background: var(--brand);
  color: #fff;
}

/* Desktop: litt mindre sekundær panel */
@media (min-width: 768px) {
  .demo-notes-toggle {
    padding: 9px 14px;
    font-size: 0.795rem;
    box-shadow: 0 13px 28px -8px rgba(0, 0, 0, 0.32);
  }

  .demo-notes-toggle svg {
    width: 13px;
    height: 13px;
  }

  .demo-notes-panel {
    width: min(300px, calc(100vw - 40px));
    border-radius: 14px;
    padding: 1.05rem 1.1rem 1.14rem;
  }

  .demo-notes-panel header {
    padding-bottom: 0.68rem;
    margin-bottom: 0.68rem;
    gap: 1px;
  }

  .demo-notes-tier {
    font-size: 0.642rem;
  }

  .demo-notes-panel header strong {
    font-size: 0.98rem;
  }

  .demo-notes-panel ul {
    gap: 0.42rem;
  }

  .demo-notes-panel li {
    font-size: 0.8rem;
    gap: 7px;
  }

  .demo-notes-panel li::before {
    width: 12px;
    height: 12px;
    background-size: 9px auto;
  }

  .demo-notes-foot {
    margin-top: 0.85rem;
    padding-top: 0.72rem;
    font-size: 0.785rem;
  }

  .demo-notes-pages {
    margin-top: 0.52rem;
  }

  .demo-notes-pages a {
    font-size: 0.68rem;
    padding: 3px 8px;
  }
}

/* Pakke-demo: ikke blokkér innhold på små skjermer */
@media (max-width: 767px) {
  .demo-notes {
    display: none !important;
  }
}

/* =========================================================
   Reveal: always visible; motion enhances when flagged .is-visible
   ========================================================= */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal.is-visible {
    animation: revealSoft 640ms cubic-bezier(.2,.8,.2,1) forwards;
  }

  .svc-grid .reveal:nth-child(1),
  .process-grid .reveal:nth-child(1) { animation-delay: 0ms; }
  .svc-grid .reveal:nth-child(2),
  .process-grid .reveal:nth-child(2) { animation-delay: 72ms; }
  .svc-grid .reveal:nth-child(3),
  .process-grid .reveal:nth-child(3) { animation-delay: 148ms; }
  .svc-grid .reveal:nth-child(4),
  .process-grid .reveal:nth-child(4) { animation-delay: 224ms; }
  .svc-grid .reveal:nth-child(5) { animation-delay: 300ms; }
  .svc-grid .reveal:nth-child(6) { animation-delay: 376ms; }
}

@keyframes revealSoft {
  from {
    transform: translateY(12px);
  }
  to {
    transform: none;
  }
}

/* Page intro: subtle, never disappears */
@media (prefers-reduced-motion: no-preference) {
  main {
    animation: pageIn 580ms cubic-bezier(.2, .8, .2, 1) forwards;
  }
}

@keyframes pageIn {
  from {
    transform: translateY(6px);
  }
  to {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  main { animation: none; }
}
