/* ============================================================
   Total Sparing — powered by Maximus
   Designsystem transponert fra llamaindex.ai-teardown:
   Overused Grotesk + IBM Plex Mono, navngitt grid, gradient-border,
   4px firkant-markører, 75ms mikro-overganger.
   Signaturgradient er Maximus' egen: mynte → blå → indigo → gull.
   ============================================================ */

/* ---------- Fonter ---------- */
@font-face {
  font-family: "OverusedGrotesk";
  src: url("../fonts/OverusedGrotesk-VF.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "InstrumentSerif";
  src: url("../fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "InstrumentSerif";
  src: url("../fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBMPlexMono";
  src: url("../fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --font-primary: "OverusedGrotesk", system-ui, sans-serif;
  --font-mono: "IBMPlexMono", ui-monospace, "SF Mono", monospace;

  --white: #fff;
  --black: #000;
  --grey-bg: #f5f5f5;
  --grey-bg-2: #fafafa;
  --border: #e7e7e7;
  --border-soft: rgba(0, 0, 0, 0.08);
  --text-secondary: #6d6d6d;
  --text-tertiary: #5f5f5f;
  --text-body: #3f3f3f;
  --dark: #101a2e;      /* Maximus-navy (arv fra gammel profil) */
  --dark-2: #1c2a45;

  /* Maximus signaturfarger */
  --mint: #2fd6a3;
  --mint-2: #7deac9;
  --blue: #4b72fe;
  --blue-2: #92aeff;
  --indigo: #7a3ef9;
  --gold: #ffb01f;
  --gold-2: #ffc95e;
  --coral: #ff6b5e;

  --brand-gradient: linear-gradient(160deg, #2fd6a3, #4b72fe 40%, #7a3ef9 68%, #ffb01f);
  --brand-gradient-soft: linear-gradient(180deg, #7deac9, #92aeff, #b79bff, #ffc95e);

  --radius: 12px;
  --gap: clamp(1rem, 6vw, 2.5rem);
}

@property --from-color {
  syntax: "<color>";
  initial-value: #ffb01f;
  inherits: false;
}
@property --to-color {
  syntax: "<color>";
  initial-value: #2fd6a3;
  inherits: false;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.5;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: #ffe3ab; color: #000; }

/* ---------- Section-grid (navngitte kolonnelinjer) ---------- */
.Section {
  --full: minmax(var(--gap), 1fr);
  --content: min(calc(100% - 2 * var(--gap)), 1254px);
  display: grid;
  grid-template-columns:
    [full-start] var(--full)
    [content-start] var(--content) [content-end]
    var(--full) [full-end];
  padding: 48px 0;
}
.Section > * { grid-column: content; }
.Section > .full-bleed { grid-column: full; }
.SectionVariantLight { background: var(--grey-bg); }
.SectionVariantDark { background: var(--dark); color: #fff; }

/* ---------- Typografi ---------- */
.Heading {
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.HeadingSpecial { font-size: clamp(3rem, 2rem + 4.4vw, 5rem); }
.Heading1 { font-size: clamp(2.5rem, 2.0435rem + 2.087vw, 4rem); }
.Heading2 { font-size: clamp(2rem, 1.5435rem + 2.087vw, 3.5rem); }
.Heading3 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 3rem); }
.Heading5 { font-size: 2rem; }
.Heading6 { font-size: 1.5rem; }
.Heading7 { font-size: 1.125rem; letter-spacing: -0.03em; }
.Paragraph1 { font-size: 1.5rem; font-weight: 400; }
.Paragraph2 { font-size: 1.25rem; font-weight: 400; }
.Paragraph3 { font-size: 1rem; font-weight: 500; }
.Paragraph4 { font-size: 0.875rem; font-weight: 400; }

.Label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.SquareBoth, .SquareLeft {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.SquareBoth::before, .SquareBoth::after, .SquareLeft::before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  display: block;
  flex-shrink: 0;
}

.text-gradient {
  background: linear-gradient(323.35deg, #ffb01f 7.34%, #2fd6a3 92.66%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-blue {
  font-family: "InstrumentSerif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(323.35deg, #7a3ef9 7.34%, #2fd6a3 92.66%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Knapper ---------- */
.Button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.875rem 1.75rem;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: color 75ms ease-out, background 75ms ease-out, border-color 75ms ease-out;
  white-space: nowrap;
}
.ButtonPrimary { background: var(--black); color: var(--white); }
.ButtonPrimary:hover { background: var(--dark-2); }
.ButtonSecondary { background: var(--white); color: var(--black); border-color: var(--border); }
.ButtonSecondary:hover { border-color: var(--black); }
.ButtonOnDark { background: var(--white); color: var(--black); }
.ButtonOnDark:hover { background: var(--gold-2); }
.ButtonGhostDark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.ButtonGhostDark:hover { border-color: #fff; }
.ButtonSmall { padding: 0.5rem 1.5rem; font-size: 0.75rem; }
.Buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Gradient-border-kort ---------- */
.GradientBorder {
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--gb-fill, #fff), var(--gb-fill, #fff)) padding-box,
    var(--brand-gradient) border-box;
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.AnnouncementBar {
  --from-color: #ffb01f;
  --to-color: #2fd6a3;
  width: 100%;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--black);
  padding: 0.75rem;
  display: flex;
  gap: 0.625rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  position: relative;
  z-index: 2;
  background: linear-gradient(270deg, var(--from-color) 25%, var(--to-color) 90%);
  transition: --from-color 75ms ease-in-out, --to-color 75ms ease-in-out;
}
.AnnouncementBar:hover { --from-color: #ffc95e; --to-color: #7deac9; }
.AnnouncementBar::before, .AnnouncementBar::after {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  display: block;
}

/* ============================================================
   HEADER (flytende, sticky, krymper på scroll)
   ============================================================ */
.Header {
  margin: 1rem 2.5rem;
  border: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
  transition: margin 0.15s ease-in-out;
}
.HeaderScrolled { margin: 0 !important; }
.HeaderGrid {
  display: flex;
  justify-content: space-between;
  min-height: 52px;
  background: var(--white);
}
.Logo {
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}
.LogoMark {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background: var(--brand-gradient);
  position: relative;
  flex-shrink: 0;
}
.LogoMark::after {
  content: "M";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
}
.LogoText { font-weight: 500; font-size: 1.0625rem; letter-spacing: -0.02em; }
.LogoText small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 1px;
}
.HeaderLinks {
  width: 100%;
  border-left: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  padding-left: 2rem;
}
.HeaderLinksList { display: flex; gap: 2rem; height: 100%; }
.HeaderLinksList a {
  font-size: 0.875rem;
  color: var(--black);
  text-decoration: none;
  height: 100%;
  display: inline-flex;
  align-items: center;
  transition: opacity 75ms ease-out;
}
.HeaderLinksList a:hover { opacity: 0.6; }
.QuickLinks {
  border-left: 1px solid var(--border);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.HamburgerButton {
  display: none;
  background: none;
  border: 0;
  border-left: 1px solid var(--border);
  padding: 0 1.25rem;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.HamburgerButton span {
  width: 20px;
  height: 2px;
  background: var(--black);
  display: block;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.MobileNav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1.25rem;
}
.MobileNav a { text-decoration: none; font-size: 1.125rem; }
.MobileNavOpen .MobileNav { display: flex; }
.MobileNavOpen .HamburgerButton span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.MobileNavOpen .HamburgerButton span:nth-child(2) { opacity: 0; }
.MobileNavOpen .HamburgerButton span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .Header { margin: 0.5rem 1rem; }
  .HeaderLinks, .QuickLinks { display: none; }
  .HamburgerButton { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.Hero { padding: 3rem 0 0; overflow: hidden; }
.HeroGrid {
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(47, 214, 163, 0.10), transparent 60%),
    radial-gradient(900px 480px at 15% 110%, rgba(255, 176, 31, 0.10), transparent 60%),
    var(--white);
}
.HeroContent {
  max-width: 62ch;
  padding: 3.5rem 2.5rem 0;
  position: relative;
  z-index: 2;
}
.HeroLabel { margin-bottom: 1.5rem; }
.HeroHeader { max-width: 15ch; }
.HeroText { color: var(--text-body); margin-top: 2rem; max-width: 48ch; text-wrap: pretty; }
.HeroButtons { margin-top: 2rem; }
.HeroMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1.5rem;
  margin-top: 1.5rem;
  padding-bottom: 0.5rem;
}
.HeroMeta li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
}
.HeroMeta li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--mint);
  display: block;
}

/* Dashboard-mock i hero */
.HeroVisual {
  position: relative;
  padding: 3rem 2.5rem 3.5rem;
  display: grid;
  justify-content: center;
}
.Dashboard {
  width: min(920px, 100%);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--brand-gradient) border-box;
  box-shadow: 0 30px 80px -30px rgba(16, 26, 46, 0.25);
  overflow: hidden;
}
.DashboardBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.DashboardTitle { display: flex; align-items: center; gap: 0.625rem; font-weight: 500; font-size: 0.9375rem; }
.DashboardDot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.DashboardTag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 0.25rem 0.625rem;
  border-radius: 2px;
}
.DashboardStats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
.DashboardStat { padding: 1.125rem 1.25rem; border-right: 1px solid var(--border); }
.DashboardStat:last-child { border-right: 0; }
.DashboardStatLabel {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
  display: block;
}
.DashboardStatValue { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.02em; }
.DashboardStatDelta { font-family: var(--font-mono); font-size: 0.6875rem; margin-left: 0.25rem; }
.DeltaUp { color: #14a97c; }
.DeltaDown { color: #e05252; }
.DashboardChart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 190px;
  padding: 1.5rem 1.25rem 1.25rem;
}
.DashboardChart .col {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  transform-origin: bottom;
  transform: scaleY(0);
  animation: growBar 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.DashboardChart .col.saved { background: linear-gradient(180deg, var(--mint-2), var(--mint)); }
.DashboardChart .col.gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
@keyframes growBar { to { transform: scaleY(1); } }
.DashboardFooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.DashboardLegend { display: flex; gap: 1.25rem; }
.DashboardLegend span { display: inline-flex; align-items: center; gap: 0.5rem; }
.LegendSquare { width: 10px; height: 10px; display: inline-block; }

@media (max-width: 900px) {
  .HeroContent { padding: 2.5rem 1.5rem 0; }
  .HeroVisual { padding: 2rem 1rem 2.5rem; }
  .DashboardStats { grid-template-columns: 1fr 1fr; }
  .DashboardStat:nth-child(2) { border-right: 0; }
  .DashboardStat:nth-child(1), .DashboardStat:nth-child(2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 420px) {
  .DashboardStats { grid-template-columns: 1fr; }
  .DashboardStat { border-right: 0 !important; border-bottom: 1px solid var(--border); }
  .DashboardChart { gap: 0.3125rem; padding: 1.25rem 1rem 1rem; }
}

/* ============================================================
   LOGO-MARQUEE
   ============================================================ */
.LogosSection { padding: 0; }
.LogosSection .LogosInner {
  grid-column: full;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 2rem 0;
  overflow: hidden;
}
.LogosTitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}
.LogosWrapper {
  display: flex;
  gap: 7.5rem;
  width: max-content;
  animation: scroll-x 40s linear infinite;
}
.LogosGroup { display: flex; gap: 7.5rem; align-items: center; }
.LogoItem {
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #9a9a9a;
  white-space: nowrap;
  transition: color 150ms ease-out;
}
.LogoItem:hover { color: var(--black); }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 3.75rem)); }
}

/* ============================================================
   SEKSJONS-INTRO (CallToAction-modul)
   ============================================================ */
.SectionIntro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 0 3rem;
}
.SectionIntro .Label { margin-bottom: 1.25rem; }
.SectionIntro .Heading1, .SectionIntro .Heading2 { max-width: 22ch; }
.SectionIntroText {
  margin-top: 1.25rem;
  max-width: 60ch;
  color: var(--text-body);
  text-wrap: pretty;
}
.SectionIntroLeft { align-items: flex-start; text-align: left; }

/* ============================================================
   SLIK FUNGERER DET — stegkarusell + motor-diagram
   ============================================================ */
.Steps { padding: 0; }
.StepsScroll { height: 320vh; }
.StepsStage {
  position: sticky;
  top: 53px;
  height: calc(100vh - 53px);
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.StepsIntroGrid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: clamp(2rem, 5vw, 4rem);
  padding: 0 0 2rem;
}
.StepsIntroContent .Label { margin-bottom: 1.25rem; display: inline-flex; }
.StepsIntroContent .Heading2 { max-width: 22ch; }
.StepsIntroContent .SectionIntroText { margin-top: 1.25rem; max-width: 44ch; color: var(--text-body); }
.Engine {
  width: 100%;
  max-width: 330px;
  height: auto;
  justify-self: flex-end;
  transform: translateZ(0);
}
.Engine text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  fill: currentColor;
  stroke: none;
}
.Engine .EngineSub { font-size: 8.5px; opacity: 0.85; }
.EngineWire { color: #d6d6d6; stroke: currentColor; stroke-width: 1.5; }
.EngineStep {
  color: #b9b9b9;
  transition: color 0.35s ease-out, transform 0.35s ease-out;
  transform-box: fill-box;
  transform-origin: center;
}
.EngineStep.lit { color: var(--ec, #14a97c); opacity: 0.75; }
.EngineStep.active { color: var(--ec, #14a97c); opacity: 1; transform: scale(1.03); }
@media (max-width: 900px) {
  .StepsScroll { height: auto; }
  .StepsStage { position: static; height: auto; min-height: 0; padding: 3rem 0; }
  .StepsIntroGrid { grid-template-columns: 1fr; align-items: start; }
  .Engine { justify-self: center; max-width: 340px; margin-top: 0.5rem; }
}
.StepsCarousel {
  --gb-fill: var(--grey-bg);
  position: relative;
  display: grid;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--grey-bg), var(--grey-bg)) padding-box,
    var(--brand-gradient) border-box;
  overflow: hidden;
  min-height: 400px;
}
.StepsButtons {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.StepsButtons::before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  display: block;
}
.StepsButton {
  background: transparent;
  border: 0;
  padding: 0.25rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transition: color 0.25s ease-out;
}
.StepsButton.active, .StepsButton:hover { color: var(--black); }
.StepsButton { position: relative; }
.StepsButton .SecStepFill { bottom: -1px; }
.StepsButton.active .SecStepFill { display: block; }
.StepCard {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 4.25rem 3rem 2.25rem;
}
.StepCard.active { opacity: 1; pointer-events: auto; }
.StepEyebrow { margin-bottom: 1rem; display: inline-flex; }
.StepCard h3 { margin-bottom: 1rem; }
.StepCard p { color: var(--text-tertiary); max-width: 44ch; }
.StepVisual {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}
.StepRow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  background: var(--white);
}
.StepRow .mono {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  margin-left: auto;
}
.StepRowDot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.StepRowDot.ok { background: var(--mint); }
.StepRowDot.warn { background: var(--gold); }
.StepRowDot.info { background: var(--blue); }
.StepRowDot.alert { background: var(--coral); }

@media (max-width: 900px) {
  .StepCard { grid-template-columns: 1fr; padding: 4.5rem 1.5rem 1.5rem; }
}

/* ============================================================
   STATS
   ============================================================ */
.StatsSection { border-top: 1px solid var(--border-soft); padding: 0; }
.StatsContent { padding: 3.5rem 0; }
.StatsList {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
}
.StatsList li { display: flex; flex-direction: column; gap: 0.625rem; }
.StatValue { font-size: clamp(2.5rem, 2rem + 2.4vw, 4rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
@media (max-width: 760px) {
  .StatsList { flex-direction: column; text-align: center; align-items: center; }
}

/* ============================================================
   FEATURES / SOLUTIONS (2×2 full-bleed rutenett à la llamaindex)
   ============================================================ */
.Features { padding-bottom: 0; background: var(--grey-bg-2); }
.FeatureIcon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  flex-shrink: 0;
  background: var(--white);
}
.FeatureIcon svg { width: 20px; height: 20px; }
.SolutionsGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-top: 1px solid var(--border-soft);
}
.Solution {
  display: flex;
  gap: 3rem;
  align-items: stretch;
  padding: 2.5rem;
  min-height: 360px;
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.Solution:nth-child(2n) { border-right: 0; }
.SolutionContent {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.SolutionHeader { display: flex; align-items: center; gap: 1rem; }
.SolutionText {
  margin-top: 1.125rem;
  color: var(--text-body);
  font-size: 0.9975rem;
  max-width: 44ch;
  margin-bottom: 1.75rem;
}
.SolutionContent .Button { margin-top: auto; }

/* Animert fargeflate — konsentriske rektangler (CSS-erstatning for video) */
.SolutionVisual {
  width: 220px;
  aspect-ratio: 3 / 4;
  flex-shrink: 0;
  align-self: center;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: #f4f4f3;
  overflow: hidden;
  margin: 0;
}
.SolutionVisual img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1); }
.Solution:hover .SolutionVisual img { transform: scale(1.045); }
.sv-box {
  width: 72%;
  height: 44%;
  background: var(--sv2);
  border-radius: 4px;
  display: grid;
  place-items: center;
  animation: svFloat var(--sv-dur, 7s) ease-in-out infinite;
}
.sv-box > div {
  width: 80%;
  height: 72%;
  background: var(--sv3);
  border-radius: 3px;
  display: grid;
  place-items: center;
}
.sv-box > div > div {
  width: 74%;
  height: 64%;
  background: var(--sv4);
  border-radius: 2px;
}
@keyframes svFloat {
  0%, 100% { transform: translateY(-58%); }
  50% { transform: translateY(58%); }
}
.sv-mint   { --sv1: #2fd6a3; --sv2: #5ce2b9; --sv3: #96eed1; --sv4: #d2f9ec; --sv-dur: 7s; }
.sv-blue   { --sv1: #4b72fe; --sv2: #7392fe; --sv3: #a4b8ff; --sv4: #d6dfff; --sv-dur: 8.5s; }
.sv-gold   { --sv1: #ffb01f; --sv2: #ffc453; --sv3: #ffd98c; --sv4: #ffedc7; --sv-dur: 6.5s; }
.sv-indigo { --sv1: #7a3ef9; --sv2: #9a6bfa; --sv3: #bd9bfc; --sv4: #e2d3fe; --sv-dur: 9s; }
.sv-blue .sv-box { animation-delay: -4s; }
.sv-gold .sv-box { animation-delay: -2s; }
.sv-indigo .sv-box { animation-delay: -6s; }

@media (max-width: 1100px) {
  .Solution { flex-direction: column; gap: 2rem; }
  .SolutionVisual { align-self: flex-start; }
  .SolutionText { padding-top: 1.5rem; }
}
@media (max-width: 760px) {
  .SolutionsGrid { grid-template-columns: 1fr; }
  .Solution { border-right: 0; min-height: 0; }
}

/* ============================================================
   CHAT — «Du kan snakke med regnskapet ditt»
   ============================================================ */
.ChatSection { padding-bottom: 5rem; }
.ChatGrid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}
.ChatWindow {
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--brand-gradient) border-box;
  overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(16, 26, 46, 0.3);
}
.ChatHeader {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  font-size: 0.9375rem;
}
.ChatBody { padding: 1.5rem 1.25rem; display: flex; flex-direction: column; gap: 0.875rem; min-height: 300px; }
.Bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
}
.Bubble.visible { animation: bubbleIn 0.35s ease-out forwards; }
@keyframes bubbleIn { to { opacity: 1; transform: translateY(0); } }
.BubbleUser {
  align-self: flex-end;
  background: var(--dark);
  color: #fff;
  border-bottom-right-radius: 2px;
}
.BubbleBot {
  align-self: flex-start;
  background: var(--grey-bg);
  border-bottom-left-radius: 2px;
}
.BubbleBot strong { font-weight: 500; }
.BubbleBot .figure { font-family: var(--font-mono); font-size: 0.8125rem; }
.ChatInput {
  display: flex;
  gap: 0.625rem;
  border-top: 1px solid var(--border);
  padding: 0.875rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  align-items: center;
}
.ChatInput .cursor {
  width: 1px;
  height: 1.1em;
  background: var(--black);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.ChatSuggestions { display: flex; flex-direction: column; gap: 0.625rem; margin-top: 2rem; }
.ChatSuggestion {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 7px;
  padding: 0.75rem 1.125rem;
  font-size: 0.9375rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: border-color 75ms ease-out;
  color: var(--text-body);
}
.ChatSuggestion:hover { border-color: var(--black); color: var(--black); }
.ChatSuggestion::after { content: "↗"; font-family: var(--font-mono); color: var(--text-secondary); }
@media (max-width: 900px) {
  .ChatGrid { grid-template-columns: 1fr; }
}

/* ============================================================
   TIDSLINJE — «Fra innlogging til første innsikt»
   ============================================================ */
.Timeline { padding-bottom: 5rem; }
.TimelineList {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
}
.TimelineList::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--border);
}
.TimelineItem {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  position: relative;
}
.TimelineDot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--black);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  position: relative;
  z-index: 1;
}
.TimelineItem h3 { font-size: 1.125rem; font-weight: 500; margin-bottom: 0.375rem; letter-spacing: -0.02em; }
.TimelineItem p { color: var(--text-tertiary); font-size: 0.9375rem; max-width: 56ch; }
.TimelineItem .mono-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
}

/* ============================================================
   GRADIENT-CTA — 23 animerte søyler
   ============================================================ */
.GradientCTA {
  border-top: 1px solid var(--border-soft);
  overflow: hidden;
  position: relative;
  padding: 0;
}
.GradientCTAGrid { grid-column: full; display: grid; }
.BarTrack {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 560px;
  overflow: hidden;
}
.BarTrack .bar {
  width: 56px;
  flex-shrink: 0;
  height: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(
    to top,
    var(--grey-bg) 0%,
    #b8e9d9 35%,
    #92aeff 60%,
    #b79bff 80%,
    #ffc95e 100%
  );
  opacity: 0.85;
  transform: translateY(64%);
  transition: transform 1.2s cubic-bezier(0.3, 0.7, 0.2, 1);
  will-change: transform;
}
.GradientCTAContent {
  grid-column: 1;
  grid-row: 1;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-end;
  padding: 0 2rem 6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.88) 55%, #fff 100%);
}
.GradientCTAContent .Label { margin-bottom: 1.25rem; }
.GradientCTAContent .Heading1 { max-width: 18ch; }
.GradientCTAContent p { margin-top: 1.25rem; max-width: 56ch; color: var(--text-body); }
.GradientCTAContent .Buttons { margin-top: 2rem; justify-content: center; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.Testimonials { padding-bottom: 5rem; }
.TestimonialsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.Testimonial {
  background: var(--grey-bg);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.Stars { display: flex; gap: 3px; color: var(--gold); font-size: 0.875rem; letter-spacing: 2px; }
.TestimonialQuote { font-size: 1.0625rem; line-height: 1.5; letter-spacing: -0.01em; }
.TestimonialPerson { margin-top: auto; display: flex; align-items: center; gap: 0.875rem; }
.TestimonialAvatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.TestimonialName { font-weight: 500; font-size: 0.9375rem; }
.TestimonialRole { color: var(--text-secondary); font-size: 0.8125rem; }
@media (max-width: 900px) {
  .TestimonialsGrid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRICING
   ============================================================ */
.Pricing { padding-bottom: 3rem; }
.PricingGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.Plan {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}
.PlanFeatured {
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--brand-gradient) border-box;
}
.PlanBadge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3125rem 0.875rem;
  border-radius: 2px;
  white-space: nowrap;
}
.PlanName { font-weight: 500; font-size: 1.0625rem; letter-spacing: -0.02em; }
.PlanTagline { color: var(--text-secondary); font-size: 0.8125rem; margin-top: 0.25rem; }
.PlanPrice { font-size: 2.25rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.PlanPrice small { font-size: 0.8125rem; font-weight: 400; color: var(--text-secondary); letter-spacing: 0; }
.PlanList { display: flex; flex-direction: column; gap: 0.625rem; font-size: 0.875rem; color: var(--text-body); }
.PlanList li { display: flex; gap: 0.625rem; align-items: baseline; }
.PlanList li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--mint);
  display: inline-block;
  flex-shrink: 0;
  transform: translateY(-2px);
}
.Plan .Button { margin-top: auto; justify-content: center; }
.PricingNote {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 2rem;
}
@media (max-width: 1000px) {
  .PricingGrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .PricingGrid { grid-template-columns: 1fr; }
}

/* ============================================================
   TEAMET (mørkt interaktivt panel à la llamaindex produktseksjon)
   ============================================================ */
@property --glowA { syntax: "<color>"; initial-value: #2fd6a3; inherits: false; }
@property --glowB { syntax: "<color>"; initial-value: #4b72fe; inherits: false; }

.Team { padding: 5rem 0; overflow: hidden; }
.TeamPanel {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr 0.95fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  min-height: 560px;
}
.TeamIntro .Heading3 { margin: 1.25rem 0 1.5rem; max-width: 14ch; }
.TeamLead { color: var(--text-body); font-size: 1.0625rem; max-width: 38ch; }
.TeamLeadDim { color: var(--text-secondary); margin-top: 0.875rem; font-size: 0.9375rem; }
.TeamButtons { margin-top: 2rem; }

/* --- Scene: glød + prikkraster + stablede visuals --- */
.TeamStage {
  --glowA: #2fd6a3;
  --glowB: #4b72fe;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
  transition: --glowA 0.6s ease-in-out, --glowB 0.6s ease-in-out;
}
.TeamStage[data-active="1"] { --glowA: #ffb01f; --glowB: #4b72fe; }
.TeamStage[data-active="2"] { --glowA: #7a3ef9; --glowB: #2fd6a3; }
.TeamStage[data-active="3"] { --glowA: #ffb01f; --glowB: #7a3ef9; }
.TeamGlow, .TeamDots { position: absolute; inset: -6%; pointer-events: none; }
.TeamGlow {
  background:
    radial-gradient(46% 46% at 36% 40%, color-mix(in srgb, var(--glowA) 48%, transparent), transparent 74%),
    radial-gradient(52% 52% at 66% 60%, color-mix(in srgb, var(--glowB) 42%, transparent), transparent 74%);
  filter: blur(12px);
  opacity: 0.85;
}
.TeamDots {
  background-image: radial-gradient(rgba(16, 26, 46, 0.22) 1px, transparent 1.4px);
  background-size: 15px 15px;
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, #000 30%, transparent 78%);
  mask-image: radial-gradient(closest-side at 50% 50%, #000 30%, transparent 78%);
}
.TeamVisual {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: min(340px, 88%);
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
  pointer-events: none;
  position: relative;
  z-index: 1;
}
.TeamVisual.active { opacity: 1; transform: none; }

/* --- Hvite line-art-kort --- */
.TCard {
  background: #fff;
  color: #1f1f1f;
  border: 1px solid rgba(16, 26, 46, 0.2);
  border-radius: 10px;
  padding: 1.125rem 1.25rem;
  width: 100%;
  box-shadow: 0 20px 50px -26px rgba(16, 26, 46, 0.35);
}
.TCardHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.875rem;
}
.TTag {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  white-space: nowrap;
}
.TTagOk { color: #14a97c; border-color: #14a97c; }
.TDonutRow { display: flex; align-items: center; gap: 1.125rem; }
.TDonut {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: conic-gradient(var(--mint) 0 44%, var(--blue) 44% 72%, var(--gold) 72% 96.1%, #e5e5e5 96.1% 100%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.TDonut span {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
}
.TDonut small {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-top: 1px;
}
.TCatList { display: flex; flex-direction: column; gap: 0.4rem; flex: 1; min-width: 0; }
.TCatRow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}
.TCatRow:last-child { border-bottom: 0; padding-bottom: 0; }
.TCatRow b { margin-left: auto; font-weight: 500; font-family: var(--font-mono); font-size: 0.6875rem; }
.TCatDot { width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--mint)); flex-shrink: 0; }
.TChart { width: 100%; height: auto; display: block; }
.TeamVisual.active .TChartLine {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: tChartDraw 1.1s ease-out 0.15s forwards;
}
@keyframes tChartDraw { to { stroke-dashoffset: 0; } }
.TeamVisual.active .TChartPulse { animation: tPulse 1.6s ease-in-out 1s infinite; transform-origin: 252px 34px; }
@keyframes tPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.7); } }
.TChip {
  background: #fff;
  color: #1f1f1f;
  border: 1px solid rgba(16, 26, 46, 0.2);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.7rem;
  box-shadow: 0 10px 26px -14px rgba(16, 26, 46, 0.3);
  white-space: nowrap;
}
.TChips { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.TChipWarn { color: #9a6a00; border-color: #e3b45a; background: #fff7e8; }
.TChipFloat { align-self: flex-end; }
.TStatus {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}
.TStatus i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.TNode {
  background: #fff;
  color: #1f1f1f;
  border: 1px solid rgba(16, 26, 46, 0.2);
  border-radius: 8px;
  padding: 0.625rem 1rem;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 34px -18px rgba(16, 26, 46, 0.32);
}
.TNodeRoot { padding: 0.75rem 1.5rem; }
.TTreeConnect {
  width: 64%;
  height: 18px;
  border: 1px solid rgba(16, 26, 46, 0.3);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  position: relative;
  margin-top: 0.25rem;
}
.TTreeConnect::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -19px;
  height: 18px;
  width: 1px;
  background: rgba(16, 26, 46, 0.3);
}
.TTreeRow { display: flex; gap: 0.75rem; justify-content: space-between; width: 92%; }
.TTreeRow .TNode { flex: 1; text-align: center; font-size: 0.75rem; padding: 0.5rem 0.5rem; }

/* --- Nivåliste (høyre) --- */
.TeamList { display: flex; flex-direction: column; }
.TeamItem {
  background: none;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: left;
  padding: 1.375rem 0;
  color: inherit;
  width: 100%;
}
.TeamItem:last-child { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.TeamItemName {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #9a9a9a;
  transition: color 0.2s ease-out;
}
.TeamItemName::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  flex-shrink: 0;
  opacity: 0;
  margin-left: -1.1rem;
  transition: opacity 0.2s ease-out, margin 0.2s ease-out;
}
.TeamItem:hover .TeamItemName { color: var(--text-tertiary); }
.TeamItem.active .TeamItemName { color: var(--black); }
.TeamItem.active .TeamItemName::before { opacity: 1; margin-left: 0; }
.TeamItemDetail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
}
.TeamItemDetail > span { overflow: hidden; display: flex; flex-direction: column; gap: 0.5rem; }
.TeamItem.active .TeamItemDetail { grid-template-rows: 1fr; }
.TeamItemPrice {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c98800;
  padding-top: 0.75rem;
}
.TeamItemDesc { color: var(--text-tertiary); font-size: 0.9375rem; max-width: 40ch; }
.TeamTicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.TeamTicker::before { content: "▸"; color: #14a97c; }

@media (max-width: 1100px) {
  .TeamPanel { grid-template-columns: 1fr; }
  .TeamStage { min-height: 420px; order: 3; }
  .TeamList { order: 2; }
  .TeamIntro { order: 1; }
  .TeamIntro .Heading3 { max-width: none; }
}

/* ============================================================
   KAOS → KONTROLL (panorert scrub-scene à la llamaindex)
   ============================================================ */
.KaosSection { padding: 0; }
.KaosScroll { height: 220vh; }
.KaosStage {
  --p: 0;      /* total fremdrift 0–1 */
  --pw: 0;     /* ordflipp/SVG-bytte  */
  --mid: 0;    /* gråtoning midtveis  */
  position: sticky;
  top: 53px;
  height: calc(100vh - 53px);
  min-height: 560px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--white);
}
.KaosViewport {
  width: min(calc(100% - 2 * var(--gap)), 1400px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 14px;
}
.KaosTrack {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 1.25rem;
  transform: translateX(calc(var(--p) * (-100% - 1.25rem)));
}

/* Oppslag */
.KaosSpreadA { display: grid; }
.KaosSpreadB {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.25rem;
}
.KaosCard {
  background: var(--grey-bg);
  border-radius: 14px;
  overflow: hidden;
  min-height: min(72vh, 620px);
  position: relative;
}
.KaosCardWide {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  position: relative;
}
.KaosCardText {
  padding: clamp(2rem, 4vw, 4.5rem);
  position: relative;
  z-index: 1;
}
.KaosCardText .Heading4 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); margin: 1.25rem 0 1.75rem; max-width: 16ch; letter-spacing: -0.02em; }
.KaosList { display: flex; flex-direction: column; gap: 0.75rem; }
.KaosList li {
  color: var(--text-body);
  font-size: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}
.KaosList li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--black);
  flex-shrink: 0;
  transform: translateY(-2px);
}
.KaosListOk li::before { content: "✓"; font-family: var(--font-mono); font-size: 0.75rem; color: #14a97c; width: auto; height: auto; background: none; transform: none; }
.KaosButtons { margin-top: 2.25rem; }

/* Gråtoning midtveis i panoreringen (scrubbet) */
.KaosDim { opacity: calc(1 - var(--mid) * 0.6); }

/* Visual i oppslag A — skårene flyter over hele kortet */
.KaosVisual { position: static; height: 100%; min-height: 420px; }
.KaosShards { position: absolute; inset: 0; width: 100%; height: 100%; }
.KaosShards .shard {
  transform-box: fill-box;
  transform-origin: center;
  transform: translate(calc(var(--p) * var(--dx, 0px)), calc(var(--p) * var(--dy, 0px))) rotate(calc(var(--p) * var(--rot, 0deg)));
  opacity: calc(1 - var(--pw));
}

/* Typografien */
.KaosType {
  position: absolute;
  left: 36%;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);
  line-height: 1.1;
  white-space: nowrap;
  pointer-events: none;
}
.KWord { font-size: 1em; letter-spacing: -0.03em; }
.KFlip {
  display: grid;
  overflow: hidden;
  height: 1.12em;
  align-items: baseline;
}
.KFlip .KWord { grid-area: 1 / 1; transition: transform 0.15s linear; }
.KWordKaos { transform: translateY(calc(var(--pw) * -115%)); }
.KWordKontroll { transform: translateY(calc((1 - var(--pw)) * 115%)); }
.KWordKaos {
  font-family: "InstrumentSerif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.14em;
  letter-spacing: -0.01em;
}
.KWordGrad, .KWordKontroll {
  font-family: "InstrumentSerif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.14em;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, #14a97c, #4b72fe 55%, #7a3ef9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Oppslag B: stabel-kortet */
.KaosCardStack { display: grid; place-items: center; }
.KaosOrder {
  grid-area: 1 / 1;
  width: min(46%, 250px);
  height: auto;
}
.KaosTypeEnd {
  grid-area: 1 / 1;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem);
  line-height: 1.08;
  pointer-events: none;
}
.KaosCardSolution { display: grid; align-items: center; }

@media (max-width: 900px) {
  /* Mobil: ingen panorering — oppslagene stables */
  .KaosScroll { height: auto; }
  .KaosStage { position: static; height: auto; min-height: 0; padding: 3rem 0; }
  .KaosStage { --pw: 1; --mid: 0; }              /* vis kontroll-tilstanden */
  .KaosTrack { grid-auto-flow: row; grid-auto-columns: auto; transform: none; }
  .KaosSpreadB { grid-template-columns: 1fr; }
  .KaosCardWide { grid-template-columns: 1fr; }
  .KaosCard { min-height: 0; }
  .KaosVisual { min-height: 300px; }
  .KaosShards .shard { transform: none; opacity: 1; }
  .KWordKaos { transform: none; }
  .KWordKontroll { display: none; }
  .KaosCardStack { min-height: 420px; }
}

/* ============================================================
   SIKKERHET (lys seksjon med avhukende sjekklister)
   ============================================================ */
.Security { padding: 4rem 0 5rem; background: var(--grey-bg-2); }
.SecurityStatus {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #14a97c;
}
.PulseDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulseDot 2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(47, 214, 163, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(47, 214, 163, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 214, 163, 0); }
}
/* --- Sikkerhets-karusell: scrollstyrt isometrisk lag-stabel --- */
.SecScroll {
  height: 340vh;   /* 4 slides — scrollavstanden mellom hvert bytte */
  margin-top: 1.5rem;
}
.SecStage {
  position: sticky;
  top: 53px;
  height: calc(100vh - 53px);
  min-height: 540px;
  display: grid;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
  background:
    radial-gradient(50% 65% at 50% 45%, rgba(146, 174, 255, 0.16), transparent 70%),
    radial-gradient(38% 50% at 62% 60%, rgba(255, 150, 190, 0.10), transparent 70%),
    radial-gradient(36% 48% at 38% 35%, rgba(125, 234, 201, 0.10), transparent 70%);
}
@media (max-width: 1000px) {
  .SecScroll { height: 320vh; }
  .SecStage { top: 45px; height: calc(100vh - 45px); overflow-y: auto; }
}
.SecSteps {
  position: absolute;
  top: 1.75rem;
  left: clamp(1rem, 6vw, 2.5rem);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.SecSteps::before { content: ""; width: 4px; height: 4px; background: currentColor; display: block; }
.SecStep {
  background: none;
  border: 0;
  padding: 0.25rem 0.125rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: color 0.2s ease-out;
}
.SecStep:hover { color: var(--black); }
.SecStep.active { color: var(--black); font-weight: 500; }
.SecStep { position: relative; }
.SecStepFill {
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 0;
  background: var(--black);
  display: none;
}
.SecStep.active .SecStepFill { display: block; }
.SecStage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(46% 46% at 50% 46%, color-mix(in srgb, var(--glowA) 30%, transparent), transparent 72%);
  transition: --glowA 0.9s ease-in-out;
}
.SecStage[data-active="0"] { --glowA: #2fd6a3; }
.SecStage[data-active="1"] { --glowA: #4b72fe; }
.SecStage[data-active="2"] { --glowA: #7a3ef9; }
.SecStage[data-active="3"] { --glowA: #ffb01f; }
.SecSlide {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 0.9fr 1.3fr 0.9fr;
  align-items: center;
  align-content: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 4rem clamp(1.5rem, 6vw, 4rem) 2.5rem;
  pointer-events: none;
}
.SecSlide.active { pointer-events: auto; }
.SecTitle { max-width: 11ch; grid-column: 1; }
.SecSlide .SecDesc { grid-column: 3; }
/* Scrub-styrt: JS setter opacity/transform, liten transition glatter mellom scroll-events */
.SecSlide .SecTitle,
.SecSlide .SecDesc {
  opacity: 0;
  transition: opacity 0.12s linear, transform 0.12s linear;
  will-change: opacity, transform;
}

/* Felles isometrisk stabel — kortene akkumulerer per steg */
.SecIso {
  grid-area: 1 / 1;
  place-self: center;
  z-index: 1;
  pointer-events: none;
  display: grid;
  place-items: center;
}
.IsoStack {
  position: relative;
  width: min(250px, 52vw);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transform: rotateX(56deg) rotateZ(45deg);
  animation: isoFloat 7s ease-in-out infinite;
}
@keyframes isoFloat {
  0%, 100% { transform: rotateX(56deg) rotateZ(45deg) translateZ(0); }
  50% { transform: rotateX(56deg) rotateZ(45deg) translateZ(14px); }
}
.IsoPlate {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  border: 1px solid rgba(16, 26, 46, 0.15);
  opacity: 0;
  transform: translateZ(260px) rotateZ(14deg);
  transition: transform 0.12s linear, opacity 0.12s linear;   /* glatter scrubben */
  will-change: transform, opacity;
}
/* Hvert kort har sin egen farge */
.p1 {
  background: linear-gradient(135deg, #8feed0, #2fd6a3 70%);
  box-shadow: 0 34px 70px -28px rgba(47, 214, 163, 0.55);
}
.p2 {
  background: linear-gradient(135deg, #aabfff, #4b72fe 70%);
  box-shadow: 0 34px 70px -28px rgba(75, 114, 254, 0.55);
}
.p3 {
  background: linear-gradient(135deg, #c3a4ff, #7a3ef9 70%);
  box-shadow: 0 34px 70px -28px rgba(122, 62, 249, 0.55);
}
.p4 {
  background: linear-gradient(135deg, #ffd98c, #ffb01f 70%);
  box-shadow: 0 34px 70px -28px rgba(255, 176, 31, 0.6);
}
.IsoChip {
  position: absolute;
  left: var(--cx, 20%);
  top: var(--cy, 30%);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.05em;
  color: #1f1f1f;
  background: var(--grey-bg);
  border: 1px solid rgba(16, 26, 46, 0.18);
  border-radius: 3px;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease-out 0.3s;
}
/* Chips vises kun på stegets eget kort */
.SecStage[data-active="0"] .p1 .IsoChip,
.SecStage[data-active="1"] .p2 .IsoChip,
.SecStage[data-active="2"] .p3 .IsoChip,
.SecStage[data-active="3"] .p4 .IsoChip { opacity: 1; }

/* Beskrivelse høyre */
.SecDesc { max-width: 34ch; }
.SecDescIcon { display: block; width: 40px; height: 40px; color: var(--black); margin-bottom: 1rem; }
.SecDesc > p { color: var(--text-body); font-size: 1.0625rem; margin-bottom: 1.25rem; }
.SecChecks { display: flex; flex-direction: column; gap: 0.625rem; }
.SecChecks li {
  color: var(--text-tertiary);
  font-size: 0.9375rem;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.45s ease-out, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.SecChecks li::before {
  content: "✓";
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #14a97c;
  flex-shrink: 0;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.SecSlide.active .SecChecks li { opacity: 1; transform: none; }
.SecSlide.active .SecChecks li::before { transform: scale(1); }
.SecSlide.active .SecChecks li:nth-child(1) { transition-delay: 0.25s; }
.SecSlide.active .SecChecks li:nth-child(2) { transition-delay: 0.45s; }
.SecSlide.active .SecChecks li:nth-child(3) { transition-delay: 0.65s; }
.SecSlide.active .SecChecks li:nth-child(1)::before { transition-delay: 0.4s; }
.SecSlide.active .SecChecks li:nth-child(2)::before { transition-delay: 0.6s; }
.SecSlide.active .SecChecks li:nth-child(3)::before { transition-delay: 0.8s; }

@media (max-width: 1000px) {
  .SecSlide { grid-template-columns: 1fr; padding-top: 5rem; text-align: left; align-content: start; row-gap: 1rem; }
  .SecTitle { max-width: none; grid-column: 1; }
  .SecSlide .SecDesc { grid-column: 1; }
  .SecIso { place-self: end center; margin-bottom: 4vh; }
  .IsoStack { width: min(190px, 46vw); }
}

.SecurityBadges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 2rem;
}
.SecurityBadges li {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.4375rem 0.875rem;
  border-radius: 2px;
  transition: color 150ms ease-out, transform 150ms ease-out;
}
.SecurityBadges li:hover {
  color: var(--black);
  transform: translateY(-2px);
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--brand-gradient) border-box;
}
/* --- Store tillitskort (à la llamaindex showcase-kort) --- */
.TrustGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.TrustCard {
  border-radius: 16px;
  padding: 2.25rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 480px;
}
.TrustMint { background: linear-gradient(180deg, #fdfdfd 12%, #ddf6ec); }
.TrustBlue { background: linear-gradient(180deg, #fdfdfd 12%, #e3eaff); }
.TrustWarm { background: linear-gradient(180deg, #fdfdfd 12%, #ffe9dd 82%, #ffe0ec); }
.TrustCard h3 { letter-spacing: -0.02em; }
.TrustText { color: var(--text-tertiary); font-size: 0.9375rem; margin-top: 0.625rem; max-width: 40ch; }
.TrustVisual {
  position: relative;
  flex: 1;
  margin-top: 2rem;
  min-height: 230px;
}
.MiniCard {
  position: absolute;
  background: #fff;
  border: 1px solid rgba(16, 26, 46, 0.16);
  border-radius: 10px;
  padding: 1rem 1.125rem;
  width: 78%;
  box-shadow: 0 18px 44px -22px rgba(16, 26, 46, 0.35);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.MiniBack {
  top: 0;
  left: 0;
  transform: rotate(-2.5deg);
  opacity: 0.85;
}
.MiniFront {
  top: 34%;
  right: 0;
  transform: rotate(1.5deg);
  z-index: 1;
}
.TrustCard:hover .MiniBack { transform: rotate(-4deg) translate(-6px, -6px); }
.TrustCard:hover .MiniFront { transform: rotate(0deg) translate(4px, -4px); }
.MiniTitle {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.625rem;
}
.MiniRow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.8125rem;
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--border);
}
.MiniRow:last-child { border-bottom: 0; }
.MiniRow b {
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-align: right;
  white-space: nowrap;
}
.MiniRow.strike { color: var(--text-secondary); }
.MiniRow.strike b { text-decoration: line-through; text-decoration-color: var(--coral); }
.MiniRow.ok b { color: #14a97c; }
.MiniRow.dim { color: var(--text-secondary); }
.MiniRow.gold {
  background: #fff7e4;
  margin: 0 -0.5rem;
  padding: 0.375rem 0.5rem;
  border-radius: 4px;
  border-bottom: 0;
}
.MiniRow.gold b { color: #c98800; }
.MiniBar {
  height: 6px;
  border-radius: 3px;
  background: var(--grey-bg);
  margin: 0.375rem 0;
  overflow: hidden;
}
.MiniBar i {
  display: block;
  height: 100%;
  border-radius: 3px;
}
.MiniBar .coral { background: var(--coral); }
.MiniBar .mint { background: var(--mint); }
@media (max-width: 1000px) {
  .TrustGrid { grid-template-columns: 1fr; }
  .TrustCard { min-height: 440px; }
}


/* ============================================================
   FAQ
   ============================================================ */
.FAQ { padding-bottom: 5rem; }
.FAQGrid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.FAQList { display: flex; flex-direction: column; gap: 0.625rem; }
.FAQItem {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--white);
  overflow: hidden;
}
.FAQQuestion {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 1.125rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.FAQQuestion::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--text-secondary);
  transition: transform 0.2s ease-out;
  flex-shrink: 0;
}
.FAQItem.open .FAQQuestion::after { transform: rotate(45deg); }
.FAQAnswer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
}
.FAQAnswer p {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-tertiary);
  font-size: 0.9375rem;
}
@media (max-width: 900px) {
  .FAQGrid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ============================================================
   PREFOOTER
   ============================================================ */
.PreFooter {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  background:
    radial-gradient(900px 400px at 50% 120%, rgba(255, 176, 31, 0.14), transparent 65%),
    radial-gradient(700px 380px at 20% 110%, rgba(47, 214, 163, 0.12), transparent 60%),
    var(--white);
}
.PreFooterGrid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.PreFooterHeader { max-width: 16ch; }
.PreFooterText { margin-top: 1.25rem; max-width: 48ch; color: var(--text-body); }
.PreFooterButtons { margin-top: 2rem; justify-content: center; }
.PreFooterMeta {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.Footer { background: var(--grey-bg); padding: 0 1.25rem 0; }
.FooterWrapper {
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 3.75rem 0 0;
  overflow: hidden;
  max-width: 1440px;
  margin: 0 auto;
}
.FooterGrid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  column-gap: 4vw;
  row-gap: 3rem;
  padding: 0 2.5rem;
}
.FooterHeader { max-width: 19ch; margin-bottom: 2rem; }
.FooterCtas { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.FooterLinks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 1.5rem;
  row-gap: 2rem;
}
.FooterCol .Label { display: block; margin-bottom: 1.25rem; }
.FooterCol ul { display: flex; flex-direction: column; gap: 0.625rem; }
.FooterCol a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.15s ease-out;
}
.FooterCol a:hover { color: var(--black); }
.NewsletterIntro { color: var(--text-tertiary); font-size: 0.9375rem; margin: 0.75rem 0 1.25rem; }
.NewsletterForm { display: flex; gap: 0.5rem; }
.NewsletterForm input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  outline: none;
  transition: border-color 75ms ease-out;
}
.NewsletterForm input:focus { border-color: var(--black); }
.FooterWordmark { width: 100%; height: auto; margin-top: 3.5rem; margin-bottom: -1px; display: block; }
.Copyright {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
  color: var(--text-tertiary);
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.LegalLinks { display: flex; gap: 1rem; align-items: center; }
.LegalLinks li { display: flex; gap: 1rem; align-items: center; }
.LegalLinks li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--text-tertiary);
  display: inline-block;
}
.LegalLinks a { color: inherit; text-decoration: none; }
.LegalLinks a:hover { color: var(--black); }
@media (max-width: 900px) {
  .FooterGrid { grid-template-columns: 1fr; padding: 0 1.5rem; }
  .FooterLinks { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Scroll-reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .LogosWrapper { animation: none; }
  .DashboardChart .col { animation: none; transform: none; }
  .BarTrack .bar { transition: none; }
  .Bubble { opacity: 1; transform: none; }
  .sv-box { animation: none; transform: translateY(-30%); }
  .SecChecks li, .SecChecks li::before { opacity: 1; transform: none; transition: none; }
  .IsoStack { animation: none; }
  .SecSlide .SecTitle, .SecSlide .SecDesc { transition: opacity 0.2s ease-out; transform: none; }
  .IsoPlate { transition: opacity 0.2s ease-out; }
  .KaosShards .shard { transform: none; }
  .KFlip .KWord { transition: none; }
  .PulseDot { animation: none; }
}

/* ============================================================
   Tillegg: compliance/UX-runde
   ============================================================ */

/* Demo-merking + funn-kort */
.DemoBadge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border: 1px dashed var(--border);
  padding: 0.5rem 1rem;
  border-radius: 2px;
  background: var(--white);
}
.FindingCard { gap: 1rem; }
.FindingAmount {
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.FindingCard .TestimonialQuote { font-size: 1rem; color: var(--text-body); }
.FindingMeta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* Marquee: dempet element + pause on hover */
.LogoItemMuted { color: #c4c4c4; font-style: italic; }
.LogosInner:hover .LogosWrapper { animation-play-state: paused; }
@media (max-width: 760px) {
  .LogosWrapper { animation-duration: 60s; }
}

/* Chat-status og «tenker»-prikker */
.ChatStatus {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.LegendBlue { background: var(--blue); }
.LegendMint { background: var(--mint); }
.LegendGold { background: var(--gold); }
.DotGold { background: var(--gold) !important; }
.TypingDots {
  align-self: flex-start;
  display: inline-flex;
  gap: 5px;
  background: var(--grey-bg);
  border-radius: 10px;
  border-bottom-left-radius: 2px;
  padding: 0.875rem 1rem;
}
.TypingDots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b5b5b5;
  animation: typingDot 1.1s ease-in-out infinite;
}
.TypingDots i:nth-child(2) { animation-delay: 0.15s; }
.TypingDots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-4px); opacity: 1; } }
.ChatSuggestion.active { border-color: var(--black); color: var(--black); }

/* Plan-kort hover-løft */
.Plan { transition: transform 150ms ease-out, box-shadow 150ms ease-out; }
.Plan:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(16, 26, 46, 0.25); }

/* «Gjennomgått»-stempel slår inn ved reveal */
.ControlCard .ControlStamp { opacity: 0; transform: rotate(3deg) scale(2.2); }
.ControlCard.in .ControlStamp {
  animation: stampIn 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) 0.35s forwards;
}
@keyframes stampInOld { to { opacity: 1; transform: rotate(3deg) scale(1); } }

/* ============================================================
   Undersider (artikkel-layout)
   ============================================================ */
.SubHero { padding: 4rem 0 2rem; }
.SubHero .Label { margin-bottom: 1.25rem; }
.SubHero .Heading1 { max-width: 20ch; }
.SubHeroText { margin-top: 1.25rem; max-width: 62ch; color: var(--text-body); }
.Article {
  max-width: 760px;
  padding: 1rem 0 5rem;
  justify-self: start;
}
.Article h2 {
  font-size: 1.625rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.875rem;
}
.Article h3 { font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.02em; margin: 1.75rem 0 0.625rem; }
.Article p, .Article li { color: var(--text-body); font-size: 1rem; line-height: 1.65; }
.Article p + p { margin-top: 0.875rem; }
.Article ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin: 0.75rem 0; }
.Article ul li { display: flex; gap: 0.75rem; align-items: baseline; }
.Article ul li::before { content: ""; width: 4px; height: 4px; background: var(--mint); flex-shrink: 0; transform: translateY(-2px); }
.Article a { color: var(--black); text-underline-offset: 3px; }
.Article .DraftNote {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #c98800;
  border: 1px dashed #e3b45a;
  padding: 0.625rem 1rem;
  border-radius: 2px;
  margin: 2rem 0 0;
  display: inline-block;
}
.IntegrationBlock {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-top: 1rem;
  background: var(--white);
}
.IntegrationBlock h3 { margin: 0 0 0.5rem; }
.IntegrationBlock .mono-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
}

/* ============================================================
   SIKKERHETSSIDEN (nøktern, monokrom)
   ============================================================ */
.SecuHero { padding: 4.5rem 0 3rem; }
.SecuHeroGrid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.SecuHeroGrid .Heading1 { margin: 1.25rem 0 1.5rem; max-width: 16ch; }
.SecuLead { color: var(--text-body); font-size: 1.1875rem; max-width: 52ch; }
.SecuHeroGrid .SecurityStatus { margin-top: 1.75rem; }
.SecuFacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.SecuFacts li {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.125rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.SecuFacts b { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.02em; }
.SecuFacts span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

/* Konsentriske lag */
.SecuLayers { padding-bottom: 4rem; }
.SecuShell { margin-top: 1rem; }
.SecuLayer {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.125rem;
  padding-top: 2.5rem;
  position: relative;
  transition: border-color 150ms ease-out;
  background: var(--white);
}
.SecuLayer .SecuLayer { margin-top: 0.25rem; }
.SecuLayer:hover { border-color: var(--black); }
.SecuLayerTag {
  position: absolute;
  top: 0.875rem;
  left: 1.125rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
}
.SecuLayer:hover > .SecuLayerTag { color: var(--black); }
.SecuLayerNote {
  position: absolute;
  top: 0.875rem;
  right: 1.125rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  text-align: right;
  max-width: 46%;
}
.SecuCore {
  background: var(--grey-bg);
  border-style: dashed;
  min-height: 4.5rem;
}

/* Fakta-rutenett */
.SecuDomains { padding: 0; }
.SecurityGrid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.SecuDomain {
  padding: 2.5rem clamp(1.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--border-soft);
}
.SecuDomain:nth-child(odd) { border-right: 1px solid var(--border-soft); }
.SecuDomain:nth-child(3), .SecuDomain:nth-child(4) { border-bottom: 0; }
.SecuDomain .Label { margin-bottom: 1.25rem; }
.SecChecks2 { display: flex; flex-direction: column; gap: 0.625rem; }
.SecChecks2 li {
  color: var(--text-tertiary);
  font-size: 0.9375rem;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  max-width: 52ch;
}
.SecChecks2 li::before {
  content: "✓";
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #14a97c;
  flex-shrink: 0;
}

/* Prinsipper */
.SecuPrinciples { padding-bottom: 4rem; }
.SecuRules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.SecuRule {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.SecuRuleNr {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding-top: 0.3rem;
  flex-shrink: 0;
}
.SecuRule h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 0.375rem; }
.SecuRule p { color: var(--text-tertiary); font-size: 0.9375rem; max-width: 48ch; }

/* Databehandler-tabell */
.SecuProcessors { padding-bottom: 4rem; }
.SecuTableWrap { overflow-x: auto; }
.SecuTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.SecuTable th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: left;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--black);
}
.SecuTable td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
}
.SecuTable td:first-child { font-weight: 500; color: var(--black); }

/* Kontakt */
.SecuContact { padding: 0 0 5rem; }
.SecuContactGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border-soft);
}
.SecuContactCell {
  padding: 3rem clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.SecuContactCell:first-child { border-right: 1px solid var(--border-soft); }
.SecuContactCell p { color: var(--text-tertiary); font-size: 0.9375rem; max-width: 44ch; }

@media (max-width: 900px) {
  .SecuHeroGrid { grid-template-columns: 1fr; }
  .SecurityGrid2, .SecuRules, .SecuContactGrid { grid-template-columns: 1fr; }
  .SecuDomain:nth-child(odd) { border-right: 0; }
  .SecuDomain:nth-child(3) { border-bottom: 1px solid var(--border-soft); }
  .SecuContactCell:first-child { border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .SecuLayerNote { position: static; display: block; margin-top: 0.25rem; max-width: none; text-align: left; }
  .SecuLayer { padding-top: 2.25rem; }
}

/* ============================================================
   Polish: staggered reveals, funn-stempel, pristrapp
   ============================================================ */
/* Kort-grids: barna følger etter hverandre */
.TestimonialsGrid > *, .PricingGrid > *, .TeamList > .TeamItem, .SolutionsGrid > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease-out, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.TestimonialsGrid.in > *, .PricingGrid.in > *, .TeamList.in > .TeamItem, .SolutionsGrid.in > * {
  opacity: 1;
  transform: none;
}
.TestimonialsGrid.in > *:nth-child(2), .PricingGrid.in > *:nth-child(2),
.TeamList.in > .TeamItem:nth-child(2), .SolutionsGrid.in > *:nth-child(2) { transition-delay: 0.08s; }
.TestimonialsGrid.in > *:nth-child(3), .PricingGrid.in > *:nth-child(3),
.TeamList.in > .TeamItem:nth-child(3) { transition-delay: 0.16s; }
.PricingGrid.in > *:nth-child(4), .TeamList.in > .TeamItem:nth-child(4) { transition-delay: 0.24s; }

/* Funn-kortene: bilag-linjen «stemples» inn til slutt */
.FindingMeta { opacity: 0; transform: scale(1.12); transform-origin: left bottom; }
.TestimonialsGrid.in .FindingMeta {
  animation: stampIn 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}
.TestimonialsGrid.in > *:nth-child(1) .FindingMeta { animation-delay: 0.55s; }
.TestimonialsGrid.in > *:nth-child(2) .FindingMeta { animation-delay: 0.7s; }
.TestimonialsGrid.in > *:nth-child(3) .FindingMeta { animation-delay: 0.85s; }
@keyframes stampIn { to { opacity: 1; transform: scale(1); } }

/* «Mest populær» pulserer én gang ved inntreden */
.PricingGrid.in .PlanBadge { animation: badgePulse 0.5s ease-out 0.7s 1; }
@keyframes badgePulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.12); }
}

/* Stegkort: radene glir på plass (kategorisering demonstrert) */
.StepRow { opacity: 0; transform: translateX(-10px); transition: opacity 0.4s ease-out, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.StepCard.active .StepRow { opacity: 1; transform: none; }
.StepCard.active .StepRow:nth-child(1) { transition-delay: 0.15s; }
.StepCard.active .StepRow:nth-child(2) { transition-delay: 0.3s; }
.StepCard.active .StepRow:nth-child(3) { transition-delay: 0.45s; }

/* Nav-lenker: rolig gull-understrek */
.HeaderLinksList a { position: relative; }
.HeaderLinksList a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 14px;
  height: 2px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.HeaderLinksList a:hover::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .TestimonialsGrid > *, .PricingGrid > *, .TeamList > .TeamItem, .SolutionsGrid > *,
  .StepRow, .FindingMeta { opacity: 1; transform: none; transition: none; animation: none; }
  .PricingGrid.in .PlanBadge { animation: none; }
}

/* ============================================================
   Teknikker fra bevegelses-PDF (tilpasset Maximus-tonen)
   ============================================================ */

/* 1) Shimmer på gradient-ord — rolig sveip, aldri masete */
.text-gradient, .text-gradient-blue, .KWordGrad, .KWordKontroll {
  background-size: 220% auto;
  animation: gradientDrift 8s ease-in-out infinite alternate;
}
@keyframes gradientDrift {
  0% { background-position: 0% center; }
  100% { background-position: 100% center; }
}

/* 2) Sideorkestrert innlasting — header ned, hero-innhold opp i rekkefølge */
.Header { animation: loadDown 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.HeroContent > * { animation: loadUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both; }
.HeroContent > *:nth-child(1) { animation-delay: 0.08s; }
.HeroContent > *:nth-child(2) { animation-delay: 0.16s; }
.HeroContent > *:nth-child(3) { animation-delay: 0.26s; }
.HeroContent > *:nth-child(4) { animation-delay: 0.34s; }
.HeroContent > *:nth-child(5) { animation-delay: 0.42s; }
.HeroVisual .Dashboard { animation: loadUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both; }
@keyframes loadDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes loadUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* 3) Sheen-sveip på primærknapper ved hover */
.ButtonPrimary { position: relative; overflow: hidden; }
.ButtonPrimary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  transform: translateX(-130%);
  pointer-events: none;
}
.ButtonPrimary:hover::after { animation: sheen 0.7s ease-out; }
@keyframes sheen { to { transform: translateX(130%); } }

/* 4) Faste vertikale guidelinjer i innholdskantene (brede skjermer) */
@media (min-width: 1440px) {
  body::before, body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(16, 26, 46, 0.05);
    z-index: 2000;
    pointer-events: none;
  }
  body::before { left: calc(50% - 628px); }
  body::after { left: calc(50% + 627px); }
}

/* 5) Mouse-parallax på hero-dashbordet (JS setter --mx/--my) */
@media (min-width: 900px) {
  .Dashboard {
    transform: translate(var(--mx, 0px), var(--my, 0px));
    will-change: transform;
  }
}

@media (prefers-reduced-motion: reduce) {
  .text-gradient, .text-gradient-blue, .KWordGrad, .KWordKontroll { animation: none; }
  .Header, .HeroContent > *, .HeroVisual .Dashboard { animation: none; }
  .ButtonPrimary:hover::after { animation: none; }
  .Dashboard { transform: none; }
}

/* ============================================================
   Hero-side: søyler + svevende live-kort
   ============================================================ */
.HeroGrid { position: relative; }
.HeroSide {
  position: absolute;
  top: 2.5rem;
  right: clamp(1rem, 4vw, 4rem);
  bottom: auto;
  height: min(480px, 58vh);
  width: min(460px, 36%);
  pointer-events: none;
  z-index: 1;
}
.HeroSide .BarTrack {
  position: absolute;
  inset: 0;
  height: 100%;
  gap: 5px;
  justify-content: flex-end;
}
.HeroSide .bar { width: 34px; border-radius: 3px 3px 0 0; opacity: 0.7; }
.FloatCard {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.875rem 1.125rem;
  box-shadow: 0 22px 50px -22px rgba(16, 26, 46, 0.35);
  --rot: -2deg;
  animation: floatWobble 7s ease-in-out infinite;
  min-width: 175px;
}
.FloatCard .Label { font-size: 0.5625rem; }
.FloatCard b {
  display: block;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0.125rem;
}
.FloatCard small {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.mint-txt { color: #14a97c; }
.coral-txt { color: #e05252; }
.gold-txt { color: #c98800 !important; }
.fc1 { top: 4%; right: 2%; --rot: -2.5deg; }
.fc2 { top: 42%; left: -6%; --rot: 2deg; animation-delay: -2.4s; }
.fc3 { bottom: 2%; right: 12%; --rot: -1.5deg; animation-delay: -4.6s; }
@keyframes floatWobble {
  0%, 100% { transform: rotate(var(--rot)) translateY(0); }
  50% { transform: rotate(calc(var(--rot) * -1)) translateY(-12px); }
}
@media (max-width: 1100px) {
  .HeroSide { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .FloatCard { animation: none; transform: rotate(var(--rot)); }
}

/* ============================================================
   Demo-kortene (fire levende produktflater)
   ============================================================ */
.DemoGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.DemoCard {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.DemoHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.DemoHead h3 { font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.02em; }
.DemoText { color: var(--text-tertiary); font-size: 0.875rem; max-width: 56ch; }
.DemoFoot {
  border-top: 1px solid var(--border);
  padding-top: 0.875rem;
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
}
.DemoAlert {
  background: #fff5f0;
  border: 1px solid #f3c1ad;
  border-radius: 7px;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: var(--text-body);
  margin-top: auto;
}
.DemoAlert b { font-family: var(--font-mono); font-weight: 500; font-size: 0.8125rem; }

/* 01 Kategorisering */
.DemoSplit { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.25rem; align-items: center; }
.DemoRows { display: flex; flex-direction: column; }
.DemoRow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.4375rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
}
.DemoRow:last-child { border-bottom: 0; }
.DemoRow .mono { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.03em; color: var(--text-secondary); flex: 1; }
.DemoRow b { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; white-space: nowrap; }
.DemoChip {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--grey-bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1875rem 0.4375rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.4s ease-out, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.DemoGrid.in .DemoChip { opacity: 1; transform: none; }
.DemoGrid.in .DemoRow:nth-child(1) .DemoChip { transition-delay: 0.4s; }
.DemoGrid.in .DemoRow:nth-child(2) .DemoChip { transition-delay: 0.55s; }
.DemoGrid.in .DemoRow:nth-child(3) .DemoChip { transition-delay: 0.7s; }
.DemoGrid.in .DemoRow:nth-child(4) .DemoChip { transition-delay: 0.85s; }
.DemoGrid.in .DemoRow:nth-child(5) .DemoChip { transition-delay: 1s; }
.DemoDonutWrap { display: flex; flex-direction: column; align-items: center; gap: 0.625rem; }
.DemoDonut {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: conic-gradient(#2fd6a3 0 34%, #4b72fe 34% 58%, #ffb01f 58% 78%, #ff6b5e 78% 96.1%, #e5e5e5 96.1% 100%);
  display: grid;
  place-items: center;
  transform: rotate(-70deg) scale(0.85);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s, opacity 0.5s ease-out 0.25s;
}
.DemoGrid.in .DemoDonut { transform: none; opacity: 1; }
.DemoDonut span {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.DemoDonut small {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.DemoNote { font-size: 0.75rem; color: var(--text-tertiary); text-align: center; max-width: 20ch; }

/* 02 Benchmark */
.BenchRows { display: flex; flex-direction: column; gap: 0.875rem; }
.BenchRow { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; align-items: center; }
.BenchLabel { font-size: 0.8125rem; font-weight: 500; line-height: 1.25; }
.BenchLabel small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 2px;
}
.BenchBar { display: block; }
.BenchBar i {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: #fff;
  border-radius: 4px;
  padding: 0.4375rem 0.625rem;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.DemoGrid.in .BenchBar i { width: var(--w, 60%); }
.DemoGrid.in .BenchRow:nth-child(2) i { transition-delay: 0.15s; }
.DemoGrid.in .BenchRow:nth-child(3) i { transition-delay: 0.3s; }
.bench-you { background: #e05252; }
.bench-median { background: var(--dark); }
.bench-best { background: #14a97c; }

/* 03 Prisglidning */
.CreepChart svg { width: 100%; height: auto; display: block; }
.CreepValue { font: 500 12px var(--font-mono); fill: var(--black); letter-spacing: 0.03em; }
.CreepAxis { font: 500 9px var(--font-mono); fill: var(--text-secondary); letter-spacing: 0.04em; }
.CreepLine { stroke-dasharray: 520; stroke-dashoffset: 520; }
.DemoGrid.in .CreepLine { animation: creepDraw 1.4s ease-out 0.3s forwards; }
@keyframes creepDraw { to { stroke-dashoffset: 0; } }
.CreepDot { opacity: 0; }
.DemoGrid.in .CreepDot { animation: creepPulse 1.6s ease-in-out 1.7s infinite, creepShow 0.2s ease-out 1.6s forwards; transform-origin: 322px 34px; }
@keyframes creepShow { to { opacity: 1; } }
@keyframes creepPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.6); } }

/* 04 Dokumentert spart */
.SavedBig { display: flex; flex-direction: column; gap: 0.25rem; }
.SavedBig b { font-size: 2.5rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: #14a97c; }
.SavedBig span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.SavedRows { display: flex; flex-direction: column; }
.SavedRow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.SavedRow:last-child { border-bottom: 0; }
.SavedRow b { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; white-space: nowrap; }
.SavedRow.dim { color: var(--text-secondary); }

/* Stagger på demo-kortene */
.DemoGrid > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease-out, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.DemoGrid.in > * { opacity: 1; transform: none; }
.DemoGrid.in > *:nth-child(2) { transition-delay: 0.08s; }
.DemoGrid.in > *:nth-child(3) { transition-delay: 0.16s; }
.DemoGrid.in > *:nth-child(4) { transition-delay: 0.24s; }

@media (max-width: 1000px) {
  .DemoGrid { grid-template-columns: 1fr; }
  .DemoSplit { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .DemoGrid > *, .DemoChip, .DemoDonut, .BenchBar i { opacity: 1; transform: none; transition: none; }
  .BenchBar i { width: var(--w, 60%); }
  .CreepLine { stroke-dashoffset: 0; animation: none; }
  .CreepDot { opacity: 1; animation: none; }
}

/* ============================================================
   Levende «Regnskaps-kontroll»-stabel (Kaos-sluttkortet)
   ============================================================ */
.KaosOrder path {
  transform-box: fill-box;
  transform-origin: center;
  animation: stackBreath 5.5s ease-in-out infinite;
}
.KaosOrder path:nth-child(2) { animation-delay: -0.5s; }
.KaosOrder path:nth-child(3) { animation-delay: -1s; }
.KaosOrder path:nth-child(4) { animation-delay: -1.5s; }
.KaosOrder path:nth-child(5) { animation-delay: -2s; }
.KaosOrder path:nth-child(6) { animation-delay: -2.5s; }
.KaosOrder path:nth-child(7) { animation-delay: -3s; }
.KaosOrder path:nth-child(8) { animation-delay: -3.5s; }
.KaosOrder path:nth-child(9) { animation-delay: -4s; }
.KaosOrder path:nth-child(10) { animation-delay: -4.5s; }
@keyframes stackBreath {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
/* Lagene tegner seg inn når kontroll-fasen aktiveres */
.KaosOrder path { stroke-dasharray: 780; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .KaosOrder path { animation: none; }
}

/* ============================================================
   Higgsfield-video: levende kontroll-stabel
   ============================================================ */
.KaosCardStack { position: relative; }
.KaosOrderVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.KaosCardStack .KaosOrder { display: none; }   /* SVG er fallback */
@media (prefers-reduced-motion: reduce) {
  .KaosOrderVideo { display: none; }
  .KaosCardStack .KaosOrder { display: block; }
}

/* ============================================================
   Chat-scenen: aura, prikker og svevende spørsmål
   ============================================================ */
.ChatSection {
  background: var(--white);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 2rem;
}
.ChatStage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
  padding: 1rem 0 4rem;
}
.ChatAura {
  position: absolute;
  width: min(720px, 88%);
  aspect-ratio: 1.2;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(47, 214, 163, 0.32), rgba(75, 114, 254, 0.32),
    rgba(122, 62, 249, 0.28), rgba(255, 176, 31, 0.26),
    rgba(47, 214, 163, 0.32));
  filter: blur(72px);
  animation: auraSpin 20s linear infinite;
  pointer-events: none;
}
@keyframes auraSpin { to { transform: rotate(360deg); } }
.ChatDots {
  position: absolute;
  inset: -2% 6%;
  background-image: radial-gradient(rgba(16, 26, 46, 0.16) 1px, transparent 1.4px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, #000 30%, transparent 76%);
  mask-image: radial-gradient(closest-side at 50% 50%, #000 30%, transparent 76%);
  pointer-events: none;
}
.ChatStage .ChatWindow {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  box-shadow: 0 46px 110px -46px rgba(16, 26, 46, 0.45);
}
.OrbitChip {
  position: absolute;
  z-index: 2;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-body);
  box-shadow: 0 18px 40px -20px rgba(16, 26, 46, 0.3);
  cursor: pointer;
  --rot: -2deg;
  animation: floatWobble 8s ease-in-out infinite;
  transition: border-color 150ms ease-out, color 150ms ease-out;
  max-width: 250px;
  text-align: left;
}
.OrbitChip:hover { border-color: var(--black); color: var(--black); }
.OrbitChip.active { border-color: var(--black); color: var(--black); }
.oc1 { left: 3%; top: 12%; --rot: -2deg; }
.oc2 { left: 6%; bottom: 22%; --rot: 1.6deg; animation-delay: -2.1s; }
.oc3 { right: 3%; top: 18%; --rot: 2deg; animation-delay: -4.2s; }
.oc4 { right: 5%; bottom: 16%; --rot: -1.4deg; animation-delay: -6.3s; }
.ChatPlaceholder { color: var(--text-secondary); }
.ChatPlaceholder.hidden { display: none; }
#chatTyped { color: var(--black); }

@media (max-width: 1000px) {
  .ChatStage { display: flex; flex-direction: column; gap: 0.625rem; min-height: 0; align-items: stretch; }
  .ChatStage .ChatWindow { order: -1; margin-bottom: 1rem; width: 100%; }
  .OrbitChip { position: static; animation: none; max-width: none; }
  .ChatAura { display: none; }
  .ChatDots { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ChatAura { animation: none; }
  .OrbitChip { animation: none; transform: rotate(var(--rot)); }
}

/* ============================================================
   Hero: kinematisk Higgsfield-bakgrunn
   ============================================================ */
.HeroBgVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 40%;
  z-index: 0;
}
.HeroScrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 34%, rgba(255, 255, 255, 0.25) 58%, rgba(255, 255, 255, 0) 78%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 22%);
  pointer-events: none;
}
.HeroContent { z-index: 2; }
.HeroSide { z-index: 1; }
.HeroVisual { position: relative; z-index: 2; }
@media (max-width: 1100px) {
  .HeroBgVideo { object-position: 78% 40%; opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .HeroBgVideo { display: none; }
}

/* ============================================================
   Reisen (Slik funker det) — vertikal tidslinje, alt synlig
   ============================================================ */
.Steps { padding-bottom: 5rem; }
.Journey {
  position: relative;
  max-width: 1040px;
  margin: 1rem auto 0;
  width: 100%;
}
.JourneySpine {
  position: absolute;
  left: 27px;
  top: 10px;
  bottom: 90px;
  width: 2px;
  background: var(--border);
  border-radius: 1px;
}
.JourneySpine i {
  display: block;
  width: 100%;
  height: var(--fill, 0%);
  background: linear-gradient(180deg, #2fd6a3, #4b72fe 45%, #7a3ef9 75%, #ffb01f);
  border-radius: 1px;
  transition: height 0.15s linear;
}
.JStart {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  background: var(--black);
  color: #fff;
  border-radius: 999px;
  padding: 0.375rem 1rem;
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}
.JStart .Label { color: #fff; letter-spacing: 0.08em; }
.JStep {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr minmax(300px, 400px);
  gap: 1.25rem 2.5rem;
  align-items: center;
  padding: 2rem 0;
}
.JNode {
  width: 44px;
  height: 44px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
  align-self: start;
  transition: background 0.3s ease-out, color 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out;
}
.JStep.done .JNode {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(47, 214, 163, 0.18);
}
.JBody .Label { margin-bottom: 0.75rem; }
.JBody .Heading5 { margin-bottom: 0.625rem; }
.JText { color: var(--text-tertiary); font-size: 0.9875rem; max-width: 46ch; }
.JCard { min-height: 0; }
.JStep .StepRow { opacity: 0; transform: translateX(-10px); }
.JStep.in .StepRow { opacity: 1; transform: none; }
.JStep.in .StepRow:nth-child(1) { transition-delay: 0.15s; }
.JStep.in .StepRow:nth-child(2) { transition-delay: 0.3s; }
.JStep.in .StepRow:nth-child(3) { transition-delay: 0.45s; }

/* Mål-kortet */
.JGoal { padding: 2rem 0 0 56px; position: relative; z-index: 1; }
.JGoalCard {
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--brand-gradient) border-box;
  padding: 2rem 2.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.25rem;
  align-items: center;
  box-shadow: 0 34px 80px -42px rgba(16, 26, 46, 0.35);
}
.JGoalTime {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  white-space: nowrap;
}
.JGoalTime b {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--black);
}
.JGoalText .Label { margin-bottom: 0.5rem; }
.JGoalText .Heading5 { margin-bottom: 0.375rem; }

@media (max-width: 1000px) {
  .JStep { grid-template-columns: 56px 1fr; }
  .JStep .JCard { grid-column: 2; }
  .JGoalCard { grid-template-columns: 1fr; gap: 1.25rem; text-align: left; }
}
@media (max-width: 640px) {
  .JourneySpine { left: 21px; }
  .JNode { width: 36px; height: 36px; margin-left: 4px; font-size: 0.6875rem; }
  .JStep { grid-template-columns: 44px 1fr; gap: 1rem 1.25rem; }
  .JGoal { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .JStep .StepRow { opacity: 1; transform: none; transition: none; }
  .JourneySpine i { transition: none; }
}

/* ============================================================
   Funn-kortene som use-case-kort (pastellgradient + illustrasjon)
   ============================================================ */
.UseGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.UseCard {
  border-radius: 18px;
  padding: 2.25rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 560px;
  overflow: hidden;
}
.uc1 { background: linear-gradient(165deg, #eafaf3 0%, #dde9ff 55%, #efe4ff 100%); }
.uc2 { background: linear-gradient(165deg, #e7edff 0%, #f2e6ff 55%, #ffe7f0 100%); }
.uc3 { background: linear-gradient(165deg, #fff2df 0%, #ffe6ea 55%, #f0e6ff 100%); }
.UseCard .Label { color: var(--text-body); }
.UseArt {
  flex: 1;
  width: 100%;
  display: grid;
  place-items: center;
  position: relative;
  margin: 1.5rem 0;
  min-height: 200px;
}
.UseStatement {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.875rem;
  max-width: 20ch;
}
.UseStatement strong { font-weight: 500; }
.UseMeta {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: scale(1.1);
  transform-origin: left bottom;
}
.UseGrid.in .UseMeta { animation: stampIn 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) forwards; }
.UseGrid.in .uc1 .UseMeta { animation-delay: 0.5s; }
.UseGrid.in .uc2 .UseMeta { animation-delay: 0.65s; }
.UseGrid.in .uc3 .UseMeta { animation-delay: 0.8s; }

/* Stagger på kortene */
.UseGrid > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease-out, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.UseGrid.in > * { opacity: 1; transform: none; }
.UseGrid.in > *:nth-child(2) { transition-delay: 0.08s; }
.UseGrid.in > *:nth-child(3) { transition-delay: 0.16s; }

/* Illustrasjon 1: dokument-collage (anbud) */
.UDoc {
  position: absolute;
  width: 132px;
  background: #fff;
  border: 1px solid rgba(16, 26, 46, 0.18);
  border-radius: 8px;
  padding: 14px 12px;
  box-shadow: 0 16px 36px -18px rgba(16, 26, 46, 0.3);
}
.UDoc .ul { display: block; height: 5px; border-radius: 3px; background: #e2e2e2; margin: 7px 0; }
.ul.l80 { width: 80%; } .ul.l70 { width: 70%; } .ul.l60 { width: 60%; } .ul.l50 { width: 50%; } .ul.l45 { width: 45%; }
.ud1 { transform: rotate(-6deg) translate(-62px, -12px); }
.ud2 { transform: rotate(3deg) translate(4px, 26px); z-index: 1; }
.ud3 { transform: rotate(8deg) translate(66px, -22px); }
.UBars { display: flex; align-items: flex-end; gap: 4px; margin-top: 8px; }
.UBars i { width: 9px; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, #7deac9, #2fd6a3); }
.UStamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: #14a97c;
  border: 1px solid #14a97c;
  border-radius: 2px;
  padding: 2px 5px;
  transform: rotate(-4deg);
  margin-bottom: 4px;
}

/* Illustrasjon 2: fallende trapp (pris ned) */
.USteps { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.USteps i {
  width: 22px;
  height: var(--h, 40px);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(
    to top,
    rgba(245, 245, 245, 0.4) 0%,
    #b8e9d9 35%,
    #92aeff 60%,
    #b79bff 80%,
    #ffc95e 100%
  );
}

/* Illustrasjon 3: chevron-bånd */
.uc3 .UseArt svg { width: 100%; max-width: 330px; height: auto; }

@media (max-width: 1000px) {
  .UseGrid { grid-template-columns: 1fr; }
  .UseCard { min-height: 480px; }
}
@media (prefers-reduced-motion: reduce) {
  .UseGrid > *, .UseMeta { opacity: 1; transform: none; transition: none; animation: none; }
}

/* ============================================================
   PRISSIDEN — samme designsystem, kun små aksentvariasjoner
   ============================================================ */
.PSerif {
  font-family: "InstrumentSerif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  background: linear-gradient(100deg, #14a97c, #4b72fe 55%, #7a3ef9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.PHero { padding: 4.5rem 0 1rem; }
.PHeroInner { max-width: 880px; justify-self: center; text-align: center; display: flex; flex-direction: column; align-items: center; }
.PHeroInner .Heading1 { max-width: 20ch; margin: 1.25rem 0 1.5rem; }
.PLead { color: var(--text-body); font-size: 1.1875rem; max-width: 52ch; }

.PPlans { padding-top: 1rem; }
/* Uthevet plan: gradient-knapp (som referansens Pro-kort) */
.PlanFeatured .ButtonPrimary {
  background: linear-gradient(100deg, #2fd6a3, #4b72fe 55%, #7a3ef9);
  transition: filter 75ms ease-out;
}
.PlanFeatured .ButtonPrimary:hover { filter: brightness(1.08); }

/* Matrise */
.PMatrixSection { padding-bottom: 4rem; }
.PMatrixWrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.PMatrix { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 780px; }
.PMatrix thead th {
  position: sticky;
  top: 52px;
  background: var(--white);
  text-align: center;
  padding: 1.125rem 1rem 0.875rem;
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--black);
  z-index: 2;
}
.PMatrix thead th span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  font-weight: 500;
}
.PMatrix thead th.pm-hl::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-gradient);
}
.PMatrix tbody th {
  text-align: left;
  font-weight: 400;
  color: var(--text-body);
  padding: 0.8125rem 1.25rem;
  border-bottom: 1px solid var(--border);
  max-width: 300px;
}
.pm-note {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}
.PMatrix tbody td {
  text-align: center;
  padding: 0.8125rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
}
.PMatrix tbody tr:last-child th, .PMatrix tbody tr:last-child td { border-bottom: 0; }
.PMatrix .pm-hl { background: var(--grey-bg-2); }
.pm-yes { color: #14a97c; font-weight: 500; }
.pm-no { color: #c4c4c4; }
.pm-soon { font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-secondary); }
.pm-part { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-body); }
.PMatrix b { font-weight: 500; }

/* Moduler */
.PModules { padding-bottom: 3rem; }
.PModGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.PMod {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}
.PMod:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -26px rgba(16, 26, 46, 0.2); }
.PModHead { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.375rem; }
.PModHead h3 { font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.02em; }
.PModHead b { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.PModHead small { font-size: 0.75rem; color: var(--text-secondary); font-weight: 400; }
.PMod > p { color: var(--text-tertiary); font-size: 0.9375rem; margin-bottom: 1rem; }

/* Regneeksempler */
.PMath { padding-bottom: 4rem; }
.PMathGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.PMathCard {
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--brand-gradient) border-box;
  padding: 1.75rem;
}
.PMathRows { margin: 1.25rem 0 0.875rem; }
.PMathRow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.PMathRow:last-child { border-bottom: 0; }
.PMathRow b { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.pm-green { color: #14a97c; }
.PMathNote {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

/* FAQ + CTA */
.PFaq { padding-bottom: 3rem; }
.PCta { padding-bottom: 5rem; }
.PCtaBand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-soft);
  padding-top: 3.5rem;
}
.PCtaBand p { color: var(--text-tertiary); }
.PCtaBand .Buttons { justify-content: center; margin-top: 0.75rem; }

@media (max-width: 900px) {
  .PModGrid, .PMathGrid { grid-template-columns: 1fr; }
  .PMatrix thead th { top: 45px; }
}

/* ============================================================
   SLIK FUNKER DET-SIDEN: funn-flyt
   ============================================================ */
.FunnFlow { padding-bottom: 0; }
.FlowGrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.FlowCell {
  padding: 2rem 1.5rem 2.25rem;
  border-right: 1px solid var(--border-soft);
  position: relative;
}
.FlowCell:last-child { border-right: 0; }
.FlowCell::after {
  content: "→";
  position: absolute;
  right: -0.55em;
  top: 2rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: var(--white);
  z-index: 1;
}
.FlowCell:last-child::after { content: none; }
.FlowCell h3 { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.02em; margin: 0.875rem 0 0.5rem; }
.FlowCell p { color: var(--text-tertiary); font-size: 0.875rem; }
.FlowCellYou { background: var(--grey-bg); }
.FlowCellYou .Label { color: #14a97c; }
.Everyday { padding-bottom: 4rem; }
.NeverDoes { padding-bottom: 0; }
.NeverDoes a { color: var(--black); }
@media (max-width: 1000px) {
  .FlowGrid { grid-template-columns: 1fr; }
  .FlowCell { border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .FlowCell:last-child { border-bottom: 0; }
  .FlowCell::after { content: "↓"; right: auto; left: 1.5rem; top: auto; bottom: -0.7em; }
}
.Everyday .JCard.reveal.in .StepRow { opacity: 1; transform: none; }
.Everyday .JCard.reveal.in .StepRow:nth-child(1) { transition-delay: 0.15s; }
.Everyday .JCard.reveal.in .StepRow:nth-child(2) { transition-delay: 0.3s; }
.Everyday .JCard.reveal.in .StepRow:nth-child(3) { transition-delay: 0.45s; }
.Everyday .JCard.reveal.in .StepRow:nth-child(4) { transition-delay: 0.6s; }

/* ============================================================
   TEAMET-SIDEN: org-kart + mannskapsportretter
   ============================================================ */
.TRSerif { font-family: "InstrumentSerif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: 0; }
.TRRole {
  font-family: "InstrumentSerif", Georgia, serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--black);
  margin: 0.25rem 0 0.625rem;
}
.TRDesc { color: var(--text-tertiary); font-size: 0.9375rem; line-height: 1.55; }

/* Org-kart */
.OrgChart { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1rem 0 0; }
.OrgYou {
  display: flex; flex-direction: column; gap: 0.25rem;
  background: var(--black); color: #fff;
  border-radius: 12px; padding: 1.25rem 2.5rem;
}
.OrgYouName { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 1rem; }
.OrgYouRole { font-size: 0.8125rem; color: rgba(255,255,255,0.65); }
.OrgGate { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; padding: 0.375rem 0; }
.OrgGate i { display: block; width: 1px; height: 26px; background: var(--border-strong, #d9d9d9); }
.OrgGate .Label { color: #b7860b; }
.OrgLead {
  display: flex; flex-direction: column; gap: 0.25rem;
  border: 1px solid transparent; border-radius: 12px; padding: 1rem 2rem;
  background: linear-gradient(var(--white), var(--white)) padding-box,
              linear-gradient(160deg, #2fd6a3, #4b72fe 40%, #7a3ef9 68%, #ffb01f) border-box;
}
.OrgLeadName { font-weight: 500; letter-spacing: -0.02em; font-size: 1.125rem; }
.OrgLeadRole { font-size: 0.8125rem; color: var(--text-tertiary); max-width: 34ch; }
.OrgRail { width: 1px; height: 26px; background: var(--border-strong, #d9d9d9); }
.OrgAgents {
  list-style: none; margin: 0; padding: 1.25rem 0 0; position: relative;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; max-width: 720px;
}
.OrgAgents::before {
  content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: var(--border-strong, #d9d9d9);
}
.OrgAgents li {
  font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid var(--border-soft); border-radius: 999px; padding: 0.5rem 1rem; background: var(--white);
}
.OrgAgents .OrgSoon { color: var(--text-secondary); border-style: dashed; }
.OrgAgents .OrgSoon small { color: #b7860b; font-size: 0.6875rem; }
.OrgCaption { margin-top: 1.75rem; font-size: 0.9375rem; color: var(--text-tertiary); }

/* Maximus featured */
.TRFeatured { padding-top: 0; }
.TRFeatCard {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: center;
  border: 1px solid var(--border-soft); border-radius: 12px; background: var(--grey-bg); overflow: hidden;
}
.TRFeatMedia { margin: 0; height: 100%; min-height: 380px; }
.TRFeatMedia img { width: 100%; height: 100%; object-fit: cover; display: block; }
.TRFeatBody { padding: 2.5rem 3rem 2.5rem 0; }
.TRFeatBody .TRRole { font-size: 1.75rem; }
.TRFacts { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.TRFacts li { display: flex; align-items: center; gap: 0.625rem; font-size: 0.9375rem; }
.TRFacts .StepRowDot { opacity: 1; }

/* Roster-grid */
.TRGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.TRCard {
  border: 1px solid var(--border-soft); border-radius: 12px; background: var(--white);
  overflow: hidden; transition: transform 75ms ease, box-shadow 75ms ease;
}
.TRCard:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(16, 26, 46, 0.08); }
.TRCard figure { margin: 0; aspect-ratio: 3 / 3.2; overflow: hidden; background: #f4f4f3; }
.TRCard img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1); }
.TRCard:hover img { transform: scale(1.04); }
.TRCardBody { padding: 1.25rem 1.375rem 1.5rem; }
.TRCardBody .Heading5 { margin-top: 0.625rem; }
.TRCardBody .TRRole { font-size: 1.25rem; }
.TRCardSoon figure { opacity: 0.85; }
.TRSoonLabel { color: #b7860b; }
.TRSoonLabel::before { background: #b7860b; }

/* Bånd */
.TRHowBand { padding-bottom: 0; }
.TRBand {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  border: 1px solid var(--border-soft); border-radius: 12px; padding: 2.25rem 2.5rem; background: var(--grey-bg);
}
.TRBand p { color: var(--text-tertiary); margin-top: 0.375rem; }

@media (max-width: 1000px) {
  .TRGrid { grid-template-columns: repeat(2, 1fr); }
  .TRFeatCard { grid-template-columns: 1fr; gap: 0; }
  .TRFeatMedia { min-height: 0; max-height: 420px; }
  .TRFeatBody { padding: 1.75rem; }
}
@media (max-width: 560px) {
  .TRGrid { grid-template-columns: 1fr; }
}
.TRFeatMedia video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: reduce) { .TRFeatMedia video { display: none; } .TRFeatMedia { background: url("../img/team/maximus.jpg") center/cover; } }

/* ============================================================
   AGENTSIDENE
   ============================================================ */
a.TRCard { display: block; color: inherit; text-decoration: none; }
.TRMore {
  display: inline-block; margin-top: 0.875rem;
  font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-secondary); transition: color 75ms ease;
}
.TRCard:hover .TRMore { color: var(--black); }
.OrgAgents li a { color: inherit; text-decoration: none; }
.OrgAgents li:hover { border-color: var(--black); }

.AgHero { padding-bottom: 2rem; }
.AgHeroGrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: center; }
.AgCrumb { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); margin-bottom: 1.5rem; }
.AgCrumb a { color: inherit; text-decoration: none; }
.AgCrumb a:hover { color: var(--black); }
.AgCrumb span { margin: 0 0.375rem; }
.AgHeroText .Label { color: color-mix(in srgb, var(--ag) 70%, var(--black)); }
.AgHeroText .Label::before { background: var(--ag); }
.AgRole { font-size: 2rem; margin: 0.5rem 0 1rem; }
.AgPortrait { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-soft); background: #f4f4f3; }
.AgPortrait img { width: 100%; height: auto; display: block; }
.AgSoonLabel { color: #b7860b !important; }
.AgSoonLabel::before { background: #b7860b !important; }

.AgCard .StepRow { opacity: 1; transform: none; }
.AgCard .TCardHead { margin-bottom: 0.5rem; }

.AgNotList { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.AgNotList li {
  position: relative; padding: 1.125rem 0 1.125rem 2.25rem;
  border-top: 1px solid var(--border-soft); color: var(--text-tertiary); font-size: 0.9375rem; line-height: 1.55;
}
.AgNotList li:last-child { border-bottom: 1px solid var(--border-soft); }
.AgNotList li::before {
  content: "\00d7"; position: absolute; left: 0.25rem; top: 1rem;
  font-family: var(--font-mono); font-size: 1rem; color: var(--black);
}

.AgPeers { padding-bottom: 0; }
.AgPeersRow .Label { margin-bottom: 1.25rem; }
.AgPeerList { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.AgPeerList a {
  display: flex; flex-direction: column; gap: 0.125rem; text-decoration: none; color: inherit;
  border: 1px solid var(--border-soft); border-radius: 12px; padding: 0.875rem 1.25rem; background: var(--white);
  transition: transform 75ms ease, border-color 75ms ease;
}
.AgPeerList a:hover { transform: translateY(-2px); border-color: var(--black); }
.AgPeerList b { font-weight: 500; letter-spacing: -0.01em; }
.AgPeerList span { font-size: 0.8125rem; color: var(--text-tertiary); }
.AgPeerAll b { font-family: var(--font-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }

@media (max-width: 1000px) {
  .AgHeroGrid { grid-template-columns: 1fr; gap: 2rem; }
  .AgPortrait { max-width: 420px; }
  .AgRole { font-size: 1.625rem; }
}

/* Agent-hero v2 — helfarget i agentens aksent (llamaindex industry-mønster) */
.AgHero {
  background: var(--ag);
  color: var(--ag-ink);
  padding-top: 6.5rem;
  padding-bottom: 4rem;
  position: relative;
}
.AgHero .Heading { color: var(--ag-ink); }
.AgHeroGrid { align-items: center; }
.AgChip {
  display: inline-flex; align-items: baseline; gap: 0.75rem;
  font-family: var(--font-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em;
  border: 1px solid var(--ag-ink); border-radius: 4px; padding: 0.5rem 0.875rem;
  margin-bottom: 2rem; color: var(--ag-ink);
}
.AgChip span { font-size: 0.6875rem; color: var(--ag-dim); }
.AgHero .AgRole { color: var(--ag-ink); margin: 0.75rem 0 1.25rem; }
.AgIntro { font-size: 1.125rem; line-height: 1.6; color: var(--ag-dim); max-width: 54ch; }
.AgHeroButtons { margin-top: 2rem; display: flex; gap: 0.75rem; flex-wrap: wrap; list-style: none; padding: 0; }
.AgBtnGhost {
  border: 1px solid var(--ag-ink); color: var(--ag-ink); background: transparent;
}
.AgBtnGhost:hover { background: var(--ag-ink); color: var(--ag); }
.AgHero .AgPortrait { border: 0; box-shadow: 0 24px 64px rgba(0,0,0,0.18); }
.AgHero .AgCrumb {
  position: absolute; top: 4.25rem; left: 0; right: 0;
  max-width: 1254px; margin: 0 auto; padding: 0 2rem;
  color: var(--ag-dim); margin-bottom: 0;
}
.AgHero .AgCrumb a:hover { color: var(--ag-ink); }
@media (max-width: 1000px) {
  .AgHero { padding-top: 5.5rem; }
  .AgHero .AgCrumb { padding: 0 1.25rem; top: 3.75rem; }
}

/* ============================================================
   FORSIDEN: TEAM-KORTSTOKKEN
   ============================================================ */
.TeamIntro2 { max-width: 640px; }
.TeamIntro2 .TeamLead { margin-top: 1.25rem; }
.Deck {
  position: relative;
  height: 480px;
  margin-top: 3rem;
}
.DeckAura {
  position: absolute; left: 50%; top: 50%; width: 720px; height: 420px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(40% 55% at 32% 45%, rgba(47, 214, 163, 0.35), transparent 70%),
    radial-gradient(42% 58% at 55% 60%, rgba(75, 114, 254, 0.28), transparent 72%),
    radial-gradient(38% 52% at 72% 42%, rgba(122, 62, 249, 0.22), transparent 70%),
    radial-gradient(30% 45% at 85% 65%, rgba(255, 176, 31, 0.25), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}
.DeckCard {
  position: absolute; left: 50%; top: 50%;
  width: 176px; aspect-ratio: 3 / 4;
  margin: -124px 0 0 -88px;
  z-index: var(--z);
  transform: translate(var(--tx), var(--ty));
  transition: transform 0.7s cubic-bezier(0.34, 1.4, 0.4, 1), opacity 0.5s ease-out;
  transition-delay: calc(var(--i) * 55ms);
  text-decoration: none;
}
.DeckCardLead { width: 208px; margin: -146px 0 0 -104px; }
.Deck.reveal:not(.in) .DeckCard { transform: translate(0, 48px); opacity: 0; }
.DeckInner {
  display: block; width: 100%; height: 100%;
  border-radius: 14px; overflow: hidden; position: relative;
  border: 1px solid rgba(16, 26, 46, 0.1);
  background: #f4f4f3;
  box-shadow: 0 18px 44px rgba(16, 26, 46, 0.16);
  transform: rotate(var(--rot));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.DeckCard img, .DeckCard video { width: 100%; height: 100%; object-fit: cover; display: block; }
.DeckScrim {
  position: absolute; inset: auto 0 0 0; height: 52%;
  background: linear-gradient(to top, rgba(9, 14, 24, 0.62), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}
.DeckName {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: #fff; text-shadow: 0 1px 6px rgba(9, 14, 24, 0.5);
  opacity: 0; transform: translateY(6px); transition: opacity 0.3s ease, transform 0.3s ease;
}
.DeckRole {
  position: absolute; left: 12px; bottom: 30px; right: 12px;
  font-family: "InstrumentSerif", Georgia, serif; font-style: italic;
  font-size: 1.0625rem; color: #fff; text-shadow: 0 1px 6px rgba(9, 14, 24, 0.5);
  opacity: 0; transform: translateY(6px); transition: opacity 0.3s ease 40ms, transform 0.3s ease 40ms;
}
.DeckCard:hover, .DeckCard:focus-visible { z-index: 20; }
.DeckCard:hover .DeckInner, .DeckCard:focus-visible .DeckInner {
  transform: rotate(0deg) translateY(-30px) scale(1.07);
  box-shadow: 0 34px 72px rgba(16, 26, 46, 0.26);
}
.DeckCard:hover .DeckScrim, .DeckCard:hover .DeckName, .DeckCard:hover .DeckRole,
.DeckCard:focus-visible .DeckScrim, .DeckCard:focus-visible .DeckName, .DeckCard:focus-visible .DeckRole {
  opacity: 1; transform: translateY(0);
}
.DeckCardSoon .DeckInner { border-style: dashed; border-color: rgba(183, 134, 11, 0.5); }
.DeckActions { text-align: center; margin-top: 1.5rem; }
.DeckActions .Buttons { justify-content: center; }
.DeckHint {
  margin-top: 1rem; font-family: var(--font-mono); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary);
}
@media (prefers-reduced-motion: reduce) {
  .Deck.reveal:not(.in) .DeckCard { transform: translate(var(--tx), var(--ty)); opacity: 1; }
  .DeckCard, .DeckInner { transition: none; }
}
@media (max-width: 1100px) {
  .Deck { height: auto; margin-top: 2rem; }
  .DeckAura { display: none; }
  .DeckCard, .DeckCardLead { position: static; margin: 0; width: auto; transform: none; }
  .Deck.reveal:not(.in) .DeckCard { transform: none; opacity: 1; }
  .Deck { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .DeckInner { transform: none; }
  .DeckScrim, .DeckName, .DeckRole { opacity: 1; transform: none; }
  .DeckRole { font-size: 0.9375rem; bottom: 26px; }
}

/* Chat — kronen på verket */
.ChatSerif {
  font-family: "InstrumentSerif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg, #2fd6a3, #4b72fe 55%, #7a3ef9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.06em;
}
.ChatStage { padding-top: 5.5rem; }
.ChatOrb {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 50%;
  width: 116px;
  height: 116px;
  margin-left: -58px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(160deg, #2fd6a3, #4b72fe 40%, #7a3ef9 68%, #ffb01f);
  box-shadow: 0 18px 44px rgba(16, 26, 46, 0.22);
  animation: orbFloat 6s ease-in-out infinite;
}
.ChatOrb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background: #f4f4f3;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.ChatAvatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .ChatOrb { animation: none; }
  .ChatOrb video { display: none; }
  .ChatOrb { background-image: url("../img/team/maximus.jpg"); background-size: cover; background-position: center; }
}
@media (max-width: 1100px) {
  .ChatStage { padding-top: 0; }
  .ChatOrb { position: static; margin: 0 auto 1rem; width: 88px; height: 88px; }
}
.KaosType .KFlip, .KaosTypeEnd .KWordGrad { margin-left: 0.22em; }

/* Deck-aurora — rolig drivende lys bak kortstokken (v2, erstatter statisk aura) */
.DeckAura {
  left: 50%;
  top: 50%;
  width: min(1180px, 96vw);
  height: 620px;
  transform: translate(-50%, -52%);
  filter: blur(52px);
  background: radial-gradient(46% 58% at 50% 58%, rgba(75, 114, 254, 0.16), transparent 72%);
  animation: auraBase 26s ease-in-out infinite alternate;
}
.DeckAura::before,
.DeckAura::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.DeckAura::before {
  width: 54%;
  height: 68%;
  left: 4%;
  top: 12%;
  background:
    radial-gradient(closest-side, rgba(47, 214, 163, 0.26), transparent 74%);
  animation: auraDriftA 21s ease-in-out infinite alternate;
}
.DeckAura::after {
  width: 50%;
  height: 62%;
  right: 2%;
  top: 22%;
  background:
    radial-gradient(closest-side at 40% 40%, rgba(122, 62, 249, 0.20), transparent 72%),
    radial-gradient(closest-side at 72% 68%, rgba(255, 176, 31, 0.14), transparent 70%);
  animation: auraDriftB 29s ease-in-out infinite alternate;
}
@keyframes auraBase {
  from { transform: translate(-50%, -52%) scale(1); }
  to   { transform: translate(-48%, -55%) scale(1.07); }
}
@keyframes auraDriftA {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(9%, -7%) scale(1.14); }
  100% { transform: translate(16%, 4%) scale(0.94); }
}
@keyframes auraDriftB {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-10%, 8%) scale(1.12); }
  100% { transform: translate(-15%, -6%) scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
  .DeckAura, .DeckAura::before, .DeckAura::after { animation: none; }
}

/* ============================================================
   FUNKSJONS-MODALER
   ============================================================ */
.Modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.5rem; }
.Modal[hidden] { display: none; }
.ModalBackdrop {
  position: absolute; inset: 0;
  background: rgba(9, 14, 24, 0.44);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modalFade 0.25s ease-out;
}
.ModalCard {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  width: min(880px, 100%);
  max-height: min(640px, 92vh);
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 48px 120px rgba(9, 14, 24, 0.35);
  animation: modalPop 0.35s cubic-bezier(0.22, 1.2, 0.36, 1);
}
@keyframes modalFade { from { opacity: 0; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(18px) scale(0.97); } }
.ModalMedia { margin: 0; background: #f4f4f3; min-height: 0; }
.ModalMedia img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ModalBody { padding: 2.25rem 2.5rem; overflow-y: auto; }
.ModalBody .Heading3 { margin-top: 0.875rem; }
.ModalText { color: var(--text-body); margin: 0.875rem 0 1rem; }
.ModalBody .KaosList li { font-size: 0.9375rem; }
.ModalAgent {
  margin: 1.25rem 0 1.5rem;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}
.ModalAgent a { color: var(--black); }
.ModalBody .Buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.ModalClose {
  position: absolute; top: 0.875rem; right: 0.875rem; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border-soft); background: var(--white);
  font-size: 1.375rem; line-height: 1; color: var(--black); cursor: pointer;
  transition: transform 75ms ease, background 75ms ease;
}
.ModalClose:hover { transform: scale(1.06); background: var(--grey-bg); }
body.modal-open { overflow: hidden; }
@media (max-width: 760px) {
  .ModalCard { grid-template-columns: 1fr; max-height: 92vh; }
  .ModalMedia { max-height: 200px; }
  .ModalBody { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ModalBackdrop, .ModalCard { animation: none; }
}

/* ============================================================
   HERO v3 — typografisk teater
   ============================================================ */
.HeroAurora {
  position: absolute;
  left: 50%; top: 46%;
  width: min(1100px, 100%);
  height: 640px;
  transform: translate(-50%, -50%);
  filter: blur(56px);
  background: radial-gradient(46% 58% at 50% 52%, rgba(75, 114, 254, 0.13), transparent 72%);
  animation: auraBase 26s ease-in-out infinite alternate;
  pointer-events: none;
}
.HeroAurora::before, .HeroAurora::after { content: ""; position: absolute; border-radius: 50%; }
.HeroAurora::before {
  width: 52%; height: 66%; left: 6%; top: 10%;
  background: radial-gradient(closest-side, rgba(47, 214, 163, 0.20), transparent 74%);
  animation: auraDriftA 21s ease-in-out infinite alternate;
}
.HeroAurora::after {
  width: 48%; height: 60%; right: 4%; top: 24%;
  background:
    radial-gradient(closest-side at 40% 40%, rgba(122, 62, 249, 0.16), transparent 72%),
    radial-gradient(closest-side at 72% 68%, rgba(255, 176, 31, 0.12), transparent 70%);
  animation: auraDriftB 29s ease-in-out infinite alternate;
}
.HeroPlay {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4.5rem 2rem 3.5rem;
}
.HeroPlay .HeroLabel { justify-content: center; margin-bottom: 2.25rem; }
.HeroType { margin: 0; }
.HTMask { display: block; overflow: hidden; }
.HTLine {
  display: block;
  font-weight: 640;
  font-size: clamp(3.1rem, 9.6vw, 8.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  transform: translateY(112%);
  animation: htRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.htl1 { animation-delay: 0.05s; }
.htl2 { animation-delay: 0.17s; }
.htl3 { animation-delay: 0.29s; }
.htl4 { animation-delay: 0.41s; }
@keyframes htRise { to { transform: translateY(0); } }
.HTSerif {
  font-family: "InstrumentSerif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: clamp(2.9rem, 8.8vw, 7.7rem);
  background: linear-gradient(100deg, #2fd6a3, #4b72fe 48%, #7a3ef9 82%, #ffb01f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 0.1em 0.08em;
}
.HTOrb {
  display: inline-block;
  vertical-align: -0.06em;
  width: 0.78em;
  height: 0.78em;
  border-radius: 50%;
  padding: 0.028em;
  background: linear-gradient(160deg, #2fd6a3, #4b72fe 40%, #7a3ef9 68%, #ffb01f);
  box-shadow: 0 0.12em 0.32em rgba(16, 26, 46, 0.22);
  margin: 0 0.015em;
  transform: scale(0);
  animation: orbPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.75s forwards;
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.HeroType:hover .HTOrb { transform: scale(1.12) rotate(8deg); }
@keyframes orbPop { to { transform: scale(1); } }
.HTOrb video {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background: #f4f4f3;
}
.HTSticker {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  box-shadow: 0 16px 40px rgba(16, 26, 46, 0.14);
  opacity: 0;
  animation: stickerDrop 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) forwards, stickerSway 7s ease-in-out 1.6s infinite alternate;
  z-index: 2;
}
.HTSticker b { font-size: 1.125rem; letter-spacing: -0.02em; }
.HTSticker small { font-size: 0.6875rem; color: var(--text-tertiary); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; }
.hts1 { top: 16%; right: max(4%, calc(50% - 560px)); --rot: 5deg; animation-delay: 1.0s, 1.6s; }
.hts2 { top: 46%; left: max(3%, calc(50% - 580px)); --rot: -6deg; animation-delay: 1.15s, 2.1s; }
.hts3 { bottom: 26%; right: max(5%, calc(50% - 540px)); --rot: 4deg; animation-delay: 1.3s, 1.9s; }
@keyframes stickerDrop {
  from { opacity: 0; transform: rotate(var(--rot)) translateY(-26px) scale(0.9); }
  to   { opacity: 1; transform: rotate(var(--rot)) translateY(0) scale(1); }
}
@keyframes stickerSway {
  from { transform: rotate(var(--rot)) translateY(0); }
  to   { transform: rotate(calc(var(--rot) * -0.6)) translateY(-7px); }
}
.HeroPlayText {
  max-width: 56ch;
  margin: 2.25rem auto 0;
  color: var(--text-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.HeroPlayButtons { justify-content: center; margin-top: 1.75rem; }
.HeroPlayMeta { justify-content: center; margin-top: 1.5rem; }
@media (max-width: 900px) {
  .HTSticker { position: static; margin: 0.5rem auto 0; width: fit-content; --rot: 0deg; animation: stickerDrop 0.55s ease-out 1.0s forwards; opacity: 0; }
  .HeroPlay { padding: 3rem 1.25rem 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .HTLine { transform: none; animation: none; }
  .HTOrb { transform: scale(1); animation: none; }
  .HTOrb video { display: none; }
  .HTOrb { background-image: url("../img/team/maximus.jpg"); background-size: cover; background-position: center; }
  .HTSticker { opacity: 1; animation: none; }
  .HeroAurora, .HeroAurora::before, .HeroAurora::after { animation: none; }
}

/* ============================================================
   HERO v4 — redaksjonell presisjon
   ============================================================ */
.HeroEdit {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 4rem;
  align-items: center;
  padding: 4.5rem 3.5rem 3.75rem;
}
.HeroEditH {
  font-size: clamp(2.9rem, 5.6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 640;
  margin-top: 2rem;
  max-width: 13ch;
}
.HeroEditH em {
  font-family: "InstrumentSerif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.HeroEditP {
  margin-top: 1.75rem;
  max-width: 52ch;
  color: var(--text-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.HeroEdit .HeroButtons { margin-top: 2rem; }
.HeroEdit .HeroMeta { margin-top: 1.5rem; }
.HeroEditMedia {
  margin: 0;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: #f4f4f3;
  aspect-ratio: 4 / 4.4;
}
.HeroEditMedia video { width: 100%; height: 100%; object-fit: cover; display: block; }
.HeroEditTag {
  position: absolute;
  left: 1rem; bottom: 1rem; right: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}
.HeroLedger {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}
.HeroLedger li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid var(--border-soft);
}
.HeroLedger li:first-child { border-top: 1px solid var(--border-soft); }
.HeroLedger span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}
.HeroLedger b { font-size: 0.9375rem; letter-spacing: -0.01em; white-space: nowrap; }
@media (max-width: 1100px) {
  .HeroEdit { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 1.5rem 2.5rem; }
  .HeroEditMedia { max-width: 480px; }
}

/* Maximus-portrettet: rolig pust i stedet for video */
.BreatheImg {
  animation: breatheCalm 8s ease-in-out infinite alternate;
  transform-origin: 50% 80%;
}
@keyframes breatheCalm {
  from { transform: scale(1); }
  to   { transform: scale(1.03) translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) { .BreatheImg { animation: none; } }
.ChatOrb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; border-radius: 50%; display: block; background: #f4f4f3; }
.ChatAvatar { object-position: 50% 18%; }
/* Sirkulære beskjæringer av vokteren: senter på det glødende hjertet */
.ChatOrb img, .ChatOrb video { object-position: 50% 42%; }
.ChatAvatar { object-position: 50% 42%; }
.ChatStage { padding-top: 1rem; }

/* Graf-M-logoen */
img.LogoMark { background: none; border-radius: 5px; display: block; }
img.LogoMark::after { content: none; }

/* Graf-M inline i header + snurr på gullkula */
svg.LogoMark { width: 22px; height: 22px; border-radius: 5px; display: block; background: none; overflow: visible; }
.LogoOrb { transform-origin: 55px 35px; transform-box: view-box; }
.Logo:hover .LogoOrb { animation: logoOrbSpin 0.9s cubic-bezier(0.34, 1.2, 0.4, 1); }
@keyframes logoOrbSpin {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(200deg) scale(1.3); }
  100% { transform: rotate(360deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .Logo:hover .LogoOrb { animation: none; } }

/* ============================================================
   GRAF-M SOM MAXIMUS — animert merke
   ============================================================ */
.GrafMStage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #f4f4f3;
}
.GrafMStage .GrafM { width: 58%; max-width: 300px; height: auto; border-radius: 18%; box-shadow: 0 24px 64px rgba(16, 26, 46, 0.18); }
.GrafM .GrafMLine {
  stroke-dasharray: 112;
  stroke-dashoffset: 112;
  animation: grafDraw 3.6s ease-in-out infinite;
}
.GrafM .GrafMOrb {
  opacity: 0;
  transform-origin: 54px 36px;
  transform-box: view-box;
  animation: grafPop 3.6s ease-out infinite;
}
@keyframes grafDraw {
  0% { stroke-dashoffset: 112; }
  30% { stroke-dashoffset: 0; }
  88% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 112; }
}
@keyframes grafPop {
  0%, 28% { opacity: 0; transform: scale(0); }
  38%, 84% { opacity: 1; transform: scale(1); }
  94%, 100% { opacity: 0; transform: scale(0); }
}
.GrafMThink { padding: 0.625rem 0.875rem; }
.GrafMThink .GrafM { width: 28px; height: 28px; border-radius: 6px; display: block; }
.ChatAvatarLogo { border-radius: 6px; object-position: center; }
@media (prefers-reduced-motion: reduce) {
  .GrafM .GrafMLine { stroke-dashoffset: 0; animation: none; }
  .GrafM .GrafMOrb { opacity: 1; transform: scale(1); animation: none; }
}

/* ============================================================
   SNAKK MED MAXIMUS — undersiden
   ============================================================ */
.SMHero { padding-top: 4rem; }
.SMHeroGrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3.5rem; align-items: center; }
.SMSerif { font-family: "InstrumentSerif", Georgia, serif; font-style: italic; font-weight: 400; background: linear-gradient(100deg, #2fd6a3, #4b72fe 55%, #7a3ef9); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: 0.05em; }
.SMHeroButtons { margin-top: 2rem; }

/* Chat-vinduet */
.SMChat { border: 1px solid var(--border-soft); border-radius: 16px; background: var(--white); box-shadow: 0 40px 90px -50px rgba(16, 26, 46, 0.5); overflow: hidden; display: flex; flex-direction: column; }
.SMChatHead { display: flex; align-items: center; gap: 0.625rem; padding: 0.875rem 1.125rem; border-bottom: 1px solid var(--border-soft); }
.SMAvatar { width: 26px; height: 26px; border-radius: 6px; display: block; }
.SMChatName { font-weight: 500; letter-spacing: -0.01em; }
.SMChatStatus { margin-left: auto; display: inline-flex; align-items: center; gap: 0.375rem; font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); }
.SMChatBody { padding: 1.25rem 1.125rem; display: flex; flex-direction: column; gap: 0.75rem; min-height: 340px; max-height: 460px; overflow-y: auto; }
.SMBubble { max-width: 82%; padding: 0.75rem 1rem; border-radius: 13px; font-size: 0.9375rem; line-height: 1.5; animation: smIn 0.3s ease-out; }
@keyframes smIn { from { opacity: 0; transform: translateY(6px); } }
.SMBubble.me { align-self: flex-end; background: var(--black); color: #fff; border-bottom-right-radius: 3px; }
.SMBubble.bot { align-self: flex-start; background: var(--grey-bg); color: var(--text-body); border-bottom-left-radius: 3px; }
.SMBubble.bot strong { color: var(--black); }
.SMBubble .smfig { display: block; margin-top: 0.375rem; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-tertiary); }
.SMThink { padding: 0.5rem 0.625rem; }
.SMThink .GrafM { width: 26px; height: 26px; border-radius: 6px; display: block; }
.smcaret { display: inline-block; width: 2px; height: 1em; background: var(--indigo); margin-left: 1px; vertical-align: -2px; animation: smBlink 0.9s steps(1) infinite; }
@keyframes smBlink { 50% { opacity: 0; } }
.SMChatInput { display: flex; align-items: center; gap: 2px; padding: 0.875rem 1.125rem; border-top: 1px solid var(--border-soft); font-size: 0.9375rem; color: var(--text-secondary); min-height: 52px; }
.SMPlaceholder.hidden { display: none; }
.SMTyped { color: var(--black); }
.SMTyped:empty + .SMPlaceholder { color: var(--text-secondary); }
.SMCursor { width: 2px; height: 1.1em; background: var(--indigo); animation: smBlink 0.9s steps(1) infinite; }
.SMTyped:not(:empty) ~ .SMPlaceholder { display: none; }

/* Inline graf + rapport i boble */
.SMInlineChart { margin-top: 0.75rem; background: var(--white); border: 1px solid var(--border-soft); border-radius: 10px; padding: 0.625rem; }
.SMInlineChart canvas { width: 100%; height: auto; display: block; }
.SMInlineReport { margin-top: 0.75rem; background: var(--white); border: 1px solid var(--border-soft); border-radius: 10px; overflow: hidden; }
.SMIRHead { padding: 0.625rem 0.875rem; border-bottom: 1px solid var(--border-soft); font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); }
.SMIRLine { display: flex; justify-content: space-between; padding: 0.5rem 0.875rem; font-size: 0.85rem; border-bottom: 1px solid var(--border-soft); }
.SMIRLine b { letter-spacing: -0.01em; }
.SMIRFoot { padding: 0.5rem 0.875rem; }
.SMIRFoot .mono { font-size: 0.7rem; color: var(--text-secondary); }

/* Eksempel-spørsmål */
.SMPromptGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.875rem; margin-top: 1rem; }
.SMPrompt { border: 1px solid var(--border-soft); border-radius: 12px; padding: 1.125rem 1.25rem; background: var(--white); transition: transform 75ms ease, border-color 75ms ease; }
.SMPrompt:hover { transform: translateY(-2px); border-color: var(--black); }
.SMQ { font-family: "InstrumentSerif", Georgia, serif; font-style: italic; font-size: 1.15rem; color: var(--text-body); }
.SMAskNote { margin-top: 1.75rem; color: var(--text-tertiary); font-size: 0.9375rem; }
.SMAskNote em { font-family: "InstrumentSerif", Georgia, serif; font-style: italic; color: var(--black); }

/* BYOK-band */
.SMByok { padding-top: 0; }
.SMByokBand { border: 1px solid var(--border-soft); border-radius: 16px; background: var(--grey-bg); padding: 3rem 3rem 3.25rem; }
.SMByokFlow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.SMByokStep h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.02em; margin: 0.75rem 0 0.5rem; }
.SMByokStep p { color: var(--text-tertiary); font-size: 0.9375rem; }
.SMDeliverGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.SMCard { border: 1px solid var(--border-soft); border-radius: 14px; background: var(--white); overflow: hidden; display: flex; flex-direction: column; }
.SMCardHead { display: flex; justify-content: space-between; align-items: center; padding: 0.875rem 1rem; border-bottom: 1px solid var(--border-soft); font-size: 0.85rem; font-weight: 500; }
.SMCardHead .mono { font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); font-weight: 400; }
.SMCardHead .TTagOk { color: #14a97c; }
.SMChart { width: 100%; height: auto; display: block; padding: 1rem; }
.SMCardTag { padding: 0 1rem 1.125rem; font-family: "InstrumentSerif", Georgia, serif; font-style: italic; font-size: 1rem; color: var(--text-tertiary); margin: 0.5rem 0 0; }
.SMReport { padding: 0.25rem 0; }
.SMReportLine { display: flex; justify-content: space-between; padding: 0.5rem 1rem; font-size: 0.875rem; }
.SMReportLine b { letter-spacing: -0.01em; }
.SMReportBars { display: flex; align-items: flex-end; gap: 4px; height: 40px; padding: 0.5rem 1rem 0; }
.SMReportBars i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(to top, rgba(245,245,245,0.4), #b8e9d9 35%, #92aeff 60%, #b79bff 80%, #ffc95e); }
.SMReportBars i:nth-child(1) { height: 40%; } .SMReportBars i:nth-child(2) { height: 62%; } .SMReportBars i:nth-child(3) { height: 48%; } .SMReportBars i:nth-child(4) { height: 78%; } .SMReportBars i:nth-child(5) { height: 66%; } .SMReportBars i:nth-child(6) { height: 92%; }
.SMReportFoot { display: flex; justify-content: space-between; padding: 0.625rem 1rem 0.25rem; }
.SMReportFoot .mono { font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); }
.SMAnalysis { list-style: none; margin: 0; padding: 0.5rem 0; }
.SMAnalysis li { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; font-size: 0.85rem; color: var(--text-body); }
.SMAnalysis li b { margin-left: auto; letter-spacing: -0.01em; }
.SMDot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.SMDot.warn { background: var(--gold); } .SMDot.ok { background: var(--mint); }
.SMDeliverNote { margin-top: 1.5rem; font-size: 0.72rem; color: var(--text-secondary); letter-spacing: 0.02em; }
.SMSafe a { color: var(--black); }

@media (max-width: 1000px) {
  .SMHeroGrid { grid-template-columns: 1fr; gap: 2.5rem; }
  .SMPromptGrid, .SMByokFlow, .SMDeliverGrid { grid-template-columns: 1fr; }
  .SMByokBand { padding: 2rem 1.5rem; }
}
@media (max-width: 640px) { .SMPromptGrid { grid-template-columns: 1fr; } }
