/* Enablixa — tokens */
:root {
  --paper: #f4f6f3;
  --paper-2: #e9eeea;
  --surface: #ffffff;
  --ink: #132428;
  --muted: #58696d;
  --rule: #d3dbd7;
  --hl: #f5d547;        /* highlighter: "automate" */
  --hl-ink: #132428;
  --teal: #1c7a6c;      /* "AI assists" */
  --focus: #1c7a6c;
  --contact-bg: #132428;
  --contact-text: #f4f6f3;
  --contact-muted: #b7c6c2;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1c1f;
    --paper-2: #14252a;
    --surface: #182b30;
    --ink: #e6ece9;
    --muted: #9db0ab;
    --rule: #2a4045;
    --teal: #5cc4b2;
    --focus: #5cc4b2;
    --contact-bg: #e6ece9;
    --contact-text: #132428;
    --contact-muted: #47595d;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -48px;
  padding: 8px 14px; background: var(--ink); color: var(--paper);
  border-radius: 6px; z-index: 20; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; text-decoration: none;
}
.logo-mark { width: 28px; height: 28px; color: var(--ink); }
.logo-hl { fill: var(--hl); }
.logo-e { fill: var(--paper); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* Buttons and links */
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.btn:hover { background: color-mix(in srgb, var(--ink) 85%, var(--teal)); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 8px 16px; font-size: 0.95rem; }
.btn-hl { background: var(--hl); color: var(--hl-ink); }
.btn-hl:hover { background: color-mix(in srgb, var(--hl) 85%, #fff); }
.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--teal);
}
.link:hover { text-decoration-color: currentColor; }

/* Hero */
.hero { padding: 88px 0 104px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 13ch;
  margin-bottom: 28px;
}
.lead { max-width: 34em; font-size: 1.2rem; line-height: 1.55; color: var(--muted); margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* Process map: the one bold element */
.map {
  margin: 0;
  padding: 28px 28px 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 1px 0 var(--rule), 0 24px 48px -32px color-mix(in srgb, var(--ink) 45%, transparent);
}
.map-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 22px; }
.map-kicker { display: block; font-size: 0.875rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-bottom: 2px; }
.map-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.map-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-areas: "dot step" ". verdict";
  column-gap: 14px;
  row-gap: 8px;
  padding-bottom: 22px;
  counter-increment: step;
}
.map-steps li:last-child { padding-bottom: 0; }
/* connector line between steps */
.map-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px; top: 30px; bottom: 2px;
  width: 2px;
  background: var(--rule);
}
.map-steps li::before {
  content: counter(step);
  grid-area: dot;
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  font-size: 0.8rem; font-weight: 700;
  background: var(--surface);
}
.map-step { grid-area: step; padding-top: 2px; font-weight: 500; line-height: 1.4; }

.verdict {
  grid-area: verdict;
  justify-self: start;
  position: relative;
  padding: 2px 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  background: none;
  isolation: isolate;
}
.verdict::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  border-radius: 3px 8px 4px 9px / 7px 3px 8px 4px;
  transform-origin: left center;
}
.v-auto { color: var(--hl-ink); }
.v-auto::before { background: var(--hl); transform: rotate(-0.6deg); }
.v-assist::before { background: color-mix(in srgb, var(--teal) 18%, transparent); box-shadow: inset 0 -3px 0 var(--teal); }
.v-human::before { border: 2px dashed var(--muted); border-radius: 6px; }
.v-human { color: var(--muted); }

.map-note {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--muted);
}

/* One orchestrated moment: verdicts get marked up in order on load */
@media (prefers-reduced-motion: no-preference) {
  .verdict::before { animation: mark 0.45s cubic-bezier(.3,.7,.2,1) both; }
  .verdict { animation: show 0.3s ease both; }
  .map-steps li:nth-child(1) .verdict, .map-steps li:nth-child(1) .verdict::before { animation-delay: 0.5s; }
  .map-steps li:nth-child(2) .verdict, .map-steps li:nth-child(2) .verdict::before { animation-delay: 0.85s; }
  .map-steps li:nth-child(3) .verdict, .map-steps li:nth-child(3) .verdict::before { animation-delay: 1.2s; }
  .map-steps li:nth-child(4) .verdict, .map-steps li:nth-child(4) .verdict::before { animation-delay: 1.55s; }
  @keyframes mark { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes show { from { opacity: 0; } to { opacity: 1; } }
}

/* Content blocks */
.block { padding: 96px 0; border-top: 1px solid var(--rule); }
.block-tint { background: var(--paper-2); }
.block-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.block-head p { color: var(--muted); max-width: 34em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

/* Services: rows, not cards */
.services { margin: 0; }
.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 64px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.service:last-child { border-bottom: 1px solid var(--rule); }
.service dt { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.015em; }
.service dd { margin: 0; color: var(--muted); max-width: 34em; }

/* Stages: a real sequence */
.stages {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px;
}
.stages li { position: relative; padding-top: 24px; border-top: 3px solid var(--ink); }
.stage-num { display: block; font-size: 2.75rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--teal); margin-bottom: 14px; }
.stages h3 { margin-bottom: 8px; }
.stages p { color: var(--muted); }

/* Why */
.why { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 48px; }
.principles h3 { margin-bottom: 6px; }
.principles p { color: var(--muted); }

/* Contact */
.contact { background: var(--contact-bg); color: var(--contact-text); padding: 96px 0; }
.contact-inner h2 { max-width: 16ch; margin-bottom: 16px; }
.contact-inner p { color: var(--contact-muted); font-size: 1.15rem; max-width: 34em; margin-bottom: 32px; }
.contact :focus-visible { outline-color: var(--hl); }

/* Footer */
.footer { padding: 28px 0; color: var(--muted); font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  h1 { max-width: 16ch; }
  .block-head, .service { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; gap: 32px; }
  .why { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .block, .contact { padding: 64px 0; }
  .principles { grid-template-columns: 1fr; gap: 24px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .map { padding: 22px 18px 18px; }
  .lead { font-size: 1.1rem; }
}

/* Contact actions: email draft + copy fallback */
button.btn { font: inherit; font-weight: 600; border: 0; cursor: pointer; }
.contact-actions { display: grid; gap: 16px; justify-items: start; }
.contact-email {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  user-select: all;
  overflow-wrap: anywhere;
}
.contact-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-outline {
  background: transparent;
  color: var(--contact-text);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--contact-text) 45%, transparent);
}
button.btn-outline { border: 0; }
.btn-outline:hover { background: color-mix(in srgb, var(--contact-text) 10%, transparent); }
.contact-inner .copy-status { min-height: 1.5em; margin: 0; font-size: 0.95rem; }
