/* konnektor.no — one stylesheet for both languages. */
:root {
  --paper: #f3f5f2;
  --paper-deep: #e4e9e5;
  --ink: #14262b;
  --ink-soft: #3e5257;
  --petrol: #1e5a63;
  --cable: #e9b23a;
  --deny: #c8432f;
  --rule: #c9d2cf;

  --measure: 36rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --font: "Schibsted Grotesk", system-ui, sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #102126;
    --paper-deep: #17302f;
    --ink: #e8eeea;
    --ink-soft: #a9bab6;
    --petrol: #7fbcc2;
    --rule: #2f4a4d;
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-feature-settings: "ss01";
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--cable);
}

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

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

/* Top bar */
.top {
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.mark svg {
  width: 1.6rem;
  height: 1.6rem;
}

.top nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.top nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.top nav a:hover,
.top nav a[aria-current] {
  color: var(--ink);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3rem, 7vw, 5.5rem);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 5.4vw, 4.25rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.hero .lede {
  margin: 0 0 2rem;
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 30rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.3rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
}

.button:hover {
  background: var(--petrol);
}

/* Patch panel */
.panel {
  width: 100%;
  height: auto;
  display: block;
}

.panel .socket {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.panel .label {
  fill: var(--ink);
  font: 600 15px var(--font);
}

.panel .sub {
  fill: var(--ink-soft);
  font: 400 12.5px var(--font);
}

.panel .hub {
  fill: var(--ink);
}

.panel .hub-label {
  fill: var(--paper);
  font: 700 19px var(--font);
  letter-spacing: -0.01em;
}

.panel .hub-sub {
  fill: var(--paper);
  opacity: 0.75;
  font: 400 12.5px var(--font);
}

.panel .cable {
  fill: none;
  stroke: var(--rule);
  stroke-width: 2;
}

.panel .live {
  fill: none;
  stroke: var(--cable);
  stroke-width: 3.5;
  stroke-linecap: round;
}

.panel .stopped {
  fill: none;
  stroke: var(--deny);
  stroke-width: 3.5;
  stroke-linecap: round;
}

.panel .x {
  stroke: var(--deny);
  stroke-width: 3;
  stroke-linecap: round;
}

.panel .verdict {
  font: 600 12.5px var(--font);
}

.panel .verdict.ok {
  fill: var(--petrol);
}

.panel .verdict.no {
  fill: var(--deny);
}

/* The one orchestrated moment: a call is allowed through, another is stopped. */
@media (prefers-reduced-motion: no-preference) {
  .panel .live,
  .panel .stopped {
    stroke-dasharray: var(--len);
    stroke-dashoffset: var(--len);
    animation: draw 1.4s cubic-bezier(0.6, 0, 0.2, 1) forwards;
  }

  .panel .live {
    animation-delay: 0.4s;
  }

  .panel .stopped {
    animation-delay: 1.5s;
    animation-duration: 0.8s;
  }

}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}


/* Sections */
.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid var(--rule);
}

.section h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.025em;
  max-width: 22ch;
}

.section p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(1.5rem, 5vw, 4rem);
}

.problems {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.problems li {
  max-width: var(--measure);
  padding-left: 1.1rem;
  border-left: 3px solid var(--cable);
}

.problems strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

/* A real sequence: how a call travels */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1.75rem;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0 1rem;
  max-width: 40rem;
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-weight: 700;
}

.steps strong {
  font-size: 1.15rem;
}

.steps span {
  color: var(--ink-soft);
}

/* Integrations */
.tools {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  column-gap: 3rem;
  border-top: 1px solid var(--rule);
}

.tools li {
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.tools .state {
  font-size: 0.9rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.tools .state.on::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--cable);
}

.note {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Security facts */
.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem 3rem;
}

.facts dt {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.facts dd {
  margin: 0;
  color: var(--ink-soft);
  max-width: 30rem;
}

/* Contact */
.contact {
  background: var(--ink);
  color: var(--paper);
  border-top: 0;
}

.contact h2 {
  color: var(--paper);
}

.contact p {
  color: var(--paper);
  opacity: 0.85;
}

.contact .button {
  background: var(--cable);
  color: #14262b;
}

.contact .button:hover {
  background: var(--paper);
}

@media (prefers-color-scheme: dark) {
  .contact {
    background: var(--paper-deep);
  }

  .contact h2,
  .contact p {
    color: var(--ink);
  }

  .button {
    background: var(--cable);
    color: #14262b;
  }
}

footer {
  padding-block: 2rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 52rem) {
  .hero,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero h1 {
    max-width: 14ch;
  }
}

@media (max-width: 30rem) {
  .top nav {
    gap: 0.9rem;
    font-size: 0.9rem;
  }
}
