@font-face {
  font-family: "InterVariable";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f9f6;
  --paper-strong: #edf3ef;
  --panel: #ffffff;
  --ink: #12201d;
  --ink-soft: #31413d;
  --muted: #586864;
  --line: #d9e3df;
  --teal: #0f766e;
  --teal-dark: #0a514c;
  --blue: #355f86;
  --amber-text: #6d4a12;
  --charcoal: #111816;
  --focus: rgba(15, 118, 110, 0.32);
  --shadow: 0 18px 44px rgba(20, 31, 28, 0.12);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background: var(--paper);
  color: var(--ink);
  font-family: "InterVariable", Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

html[data-lang="no"] .en,
html[data-lang="en"] .no { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
}

h1,
h2,
h3,
p,
li,
a,
button,
label {
  overflow-wrap: anywhere;
}

body.menu-open { overflow: hidden; }

button,
input,
select,
textarea { font: inherit; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 0.85rem;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(217, 227, 223, 0.9);
  background: rgba(247, 249, 246, 0.97);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 820;
  text-decoration: none;
}

.wordmark .psy { color: var(--teal); }

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

.main-nav a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 570;
  text-decoration: none;
}

.main-nav a:hover { color: var(--teal-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.lang-toggle,
.menu-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 680;
  cursor: pointer;
}

.lang-toggle {
  display: none;
  padding: 0.45rem 0.75rem;
}

.js .lang-toggle { display: inline-block; }

.menu-button {
  display: none;
  width: 40px;
  padding: 0;
  font-size: 1.25rem;
}

.hero {
  position: relative;
  min-height: min(660px, calc(100vh - 68px));
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  background: var(--charcoal) url("/assets/hero-bg.webp") center 46% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 17, 15, 0.96) 0%, rgba(7, 17, 15, 0.88) 40%, rgba(7, 17, 15, 0.55) 70%, rgba(7, 17, 15, 0.36) 100%);
}

.hero-inner {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.5rem 0;
}

.hero-copy { max-width: 720px; }

.hero h1 {
  max-width: 680px;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 810;
  line-height: 0.98;
  overflow-wrap: normal;
  word-break: normal;
}

.hero h1 .accent { color: #79d8cd; }

.hero-lead {
  max-width: 680px;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.04rem, 1.7vw, 1.22rem);
}

.hero-actions,
.section-actions,
.form-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hero-actions { margin-top: 1.6rem; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--teal);
  color: #fff;
}

.button-primary:hover { background: var(--teal-dark); }

.button-secondary {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
}

.hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(17, 24, 22, 0.42);
  color: #fff;
}

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.principles li {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  padding: 0.38rem 0.65rem;
  font-size: 0.88rem;
}

section { padding: 5.5rem 0; }

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-strong);
}

.section-kicker {
  margin: 0 0 0.55rem;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 790;
  text-transform: uppercase;
}

.section-heading {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.55rem);
  line-height: 1.06;
}

.section-lead {
  max-width: 790px;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.workflow-grid,
.validator-grid,
.stat-grid,
.pilot-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.workflow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.workflow-step {
  position: relative;
  min-height: 235px;
  border-top: 3px solid var(--teal);
  padding: 1rem 0;
}

.step-number,
.validator-number {
  display: inline-flex;
  min-width: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--paper-strong);
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 760;
}

.workflow-step h3,
.validator h3,
.pilot-item h3 {
  margin: 0.8rem 0 0.4rem;
  font-size: 1.18rem;
}

.workflow-step p,
.validator p,
.pilot-item p { color: var(--ink-soft); }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr);
  gap: 3rem;
  align-items: center;
}

.product-points {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.product-point {
  border-left: 3px solid var(--teal);
  padding-left: 0.85rem;
}

.product-point strong,
.product-point span { display: block; }

.product-point span {
  margin-top: 0.2rem;
  color: var(--muted);
}

.product-shot {
  margin: 0;
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.product-shot figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.stat {
  border-left: 3px solid var(--teal);
  padding-left: 1rem;
}

.stat strong {
  display: block;
  color: var(--teal-dark);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
}

.stat p { min-height: 76px; }

.source-link,
.inline-link {
  color: var(--teal-dark);
  text-underline-offset: 3px;
}

.source-label {
  color: var(--muted);
  font-size: 0.8rem;
}

.validator-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.validator {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.roadmap-note,
.method-note {
  margin-top: 2rem;
  border-left: 4px solid var(--blue);
  background: #f4f7fa;
  padding: 1rem;
}

.roadmap-note strong { color: var(--blue); }

.pilot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pilot-item {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(500px, 1.2fr);
  gap: 3rem;
  align-items: start;
}

.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 1.1rem;
  box-shadow: 0 10px 30px rgba(20, 31, 28, 0.07);
}

.requires-js { display: none; }

.js .requires-js { display: block; }

.no-js-contact {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 1.1rem;
  color: var(--ink-soft);
}

.js .no-js-contact { display: none; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 650;
}

.field.full { grid-column: 1 / -1; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0.65rem 0.75rem;
  font-weight: 450;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #9b5d00; }

.field-error {
  color: #7a3c00;
  font-size: 0.82rem;
  font-weight: 550;
}

.form-actions { margin-top: 1rem; }

.form-message {
  margin: 0.8rem 0 0;
  border-left: 3px solid var(--teal);
  padding-left: 0.7rem;
}

.form-message.error {
  border-left-color: #9b5d00;
  color: #7a3c00;
}

.privacy-note,
.email-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.sources { padding: 3.5rem 0; }

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 2rem;
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.82);
  padding: 2.2rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 2rem;
  align-items: start;
}

.site-footer .wordmark { color: #fff; }

.footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.footer-links { margin-top: 0.8rem; }

.footer-links a {
  color: #fff;
  font-size: 0.86rem;
}

.legal-page {
  min-height: calc(100vh - 68px);
  padding: 4rem 0 6rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.article-layout h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.03;
}

.article-layout h2 {
  margin-top: 2.2rem;
  font-size: 1.45rem;
}

.article-layout p,
.article-layout li { color: var(--ink-soft); }

.article-layout .lead { font-size: 1.12rem; }

@media (max-width: 980px) {
  .main-nav { gap: 0.8rem; }
  .main-nav a { font-size: 0.84rem; }
  .product-layout,
  .contact-layout { grid-template-columns: 1fr; }
  .product-shot { max-width: 760px; }
  .validator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .header-inner,
  .section-inner,
  .footer-inner,
  .hero-inner { width: min(100% - 1.5rem, 1180px); }

  .header-inner {
    flex-wrap: wrap;
    padding: 0.55rem 0;
  }

  .main-nav {
    order: 3;
    flex: 1 0 100%;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
  }

  .main-nav a { font-size: 0.84rem; }

  html.js .header-inner {
    flex-wrap: nowrap;
    padding: 0;
  }

  html.js .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  html.js .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 68px);
    display: none;
    overflow: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    padding: 0.4rem 1rem 1rem;
  }

  html.js .main-nav.open { display: flex; }

  html.js .main-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .hero {
    min-height: 620px;
    background-position: 60% center;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(7, 17, 15, 0.96) 0%, rgba(7, 17, 15, 0.82) 68%, rgba(7, 17, 15, 0.64) 100%);
  }

  .hero h1 { font-size: clamp(2.8rem, 12vw, 4.2rem); }
  section { padding: 4rem 0; }
  .workflow-grid,
  .stat-grid,
  .pilot-grid { grid-template-columns: 1fr; }
  .workflow-step { min-height: 0; }
  .stat p { min-height: 0; }
  .source-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .lang-toggle { padding-inline: 0.55rem; }
  .hero { min-height: min(620px, calc(100vh - 68px)); }
  .hero-inner { padding: 2rem 0; }
  .hero h1 { font-size: clamp(2.35rem, 11vw, 3rem); line-height: 1.02; }
  html[data-lang="no"] .hero h1 { font-size: 2.08rem; line-height: 1.04; }
  .hero-lead { margin-top: 1rem; font-size: 1rem; }
  .principles { display: none; }
  .hero-actions,
  .section-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button,
  .section-actions .button { width: 100%; }
  .validator-grid,
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .product-layout { gap: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
