@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --paper: #f5f8f9;
  --white: #ffffff;
  --ink: #0a2239;
  --muted: #4d6177;
  --line: #d6dfe6;
  --fjord: #1e6fa8;
  --teal: #27a59a;
  --dawn: #f4c76b;
  --rose: #e8798b;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 72rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

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

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

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 10;
  background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: 6px;
}
.skip:focus { top: 1rem; }

/* Header */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--max); margin-inline: auto; padding: 1.5rem var(--gutter);
}
.mark { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; }
.top nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
.mark, .top nav a { white-space: nowrap; }
.top nav a { text-decoration: none; font-weight: 500; font-size: 1rem; padding-block: .25rem; }
.top nav a:hover { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: min(52rem, 100svh);
  display: flex; align-items: center;
  padding: 8rem 0 9rem;
}
.wave { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-text { position: relative; width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.hero h1 {
  font-size: clamp(2.75rem, 7.2vw, 5.75rem);
  line-height: .98; letter-spacing: -.035em; font-weight: 650;
  max-width: 13ch; text-wrap: balance;
}
.lead { margin-top: 1.75rem; max-width: 34rem; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--muted); }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }

.btn {
  display: inline-block; background: var(--ink); color: var(--white);
  text-decoration: none; font-weight: 600; padding: .85rem 1.5rem; border-radius: 999px;
  transition: background-color .2s;
}
.btn:hover { background: var(--fjord); }
.plain { font-weight: 600; text-underline-offset: .3em; text-decoration-thickness: 2px; }

/* Sections */
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 650; }

.products { background: var(--white); padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-lead { margin-top: .75rem; color: var(--muted); }

.product-list { margin-top: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.product-list li { border-bottom: 1px solid var(--line); }
.product-list a {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) auto; align-items: center;
  gap: .5rem clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(1.5rem, 3vw, 2.25rem) 1.5rem;
  text-decoration: none;
  transition: padding-left .3s cubic-bezier(.2, .7, .2, 1);
}
.product-list a::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: .625rem; height: .625rem; border-radius: 999px; background: var(--tone);
  transform: translateY(-50%);
  transition: height .3s cubic-bezier(.2, .7, .2, 1), width .3s cubic-bezier(.2, .7, .2, 1);
}
.product-list a:hover, .product-list a:focus-visible { padding-left: 2rem; }
.product-list a:hover::before, .product-list a:focus-visible::before { height: 62%; width: .3rem; }
.product-list h3 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 650; }
.product-list p { color: var(--muted); max-width: 36rem; }
.domain { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; white-space: nowrap; }
.product-list a:hover .domain { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }

.approach { padding-block: clamp(4rem, 9vw, 7.5rem) 0; }
.approach h2 { max-width: 18ch; }
.approach .section-lead { max-width: 36rem; }
.approach-list { margin-top: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem clamp(2rem, 6vw, 6rem); }
.approach-list li { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.approach-list h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.015em; font-weight: 650; }
.approach-list p { margin-top: .6rem; color: var(--muted); max-width: 30rem; }

.about { padding-block: clamp(4rem, 9vw, 7.5rem); }
.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.about p { margin-top: 1.25rem; max-width: 34rem; color: var(--muted); }
.facts { border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: .95rem; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; text-align: right; }
.facts a { text-underline-offset: .25em; }

.contact { background: var(--ink); color: var(--white); padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.contact p { margin-top: .9rem; color: #b9c8d6; }
.mail {
  display: inline-block; margin-top: 2rem;
  font-size: clamp(1.9rem, 7vw, 5rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 650;
  text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(90deg, #8fd0f2, #7fd6c8 35%, var(--dawn) 70%, #f3a0ad) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-position .8s cubic-bezier(.2, .7, .2, 1);
}
.mail:hover, .mail:focus-visible { background-position: 100% 0; }
.copy {
  margin-top: 1rem; font: inherit; font-weight: 600; color: var(--white); cursor: pointer;
  background: transparent; border: 1.5px solid #5b7389; border-radius: 999px; padding: .7rem 1.35rem;
  transition: border-color .2s, background-color .2s;
}
.copy:hover { border-color: var(--white); }
.copy.done { background: var(--white); color: var(--ink); border-color: var(--white); }

.foot { background: var(--ink); color: #b9c8d6; font-size: .9375rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: .5rem 2rem; padding-block: 1.75rem; border-top: 1px solid #23405a; }
.foot .wrap span:first-child { margin-right: auto; }

/* 404 */
.lost { min-height: 100svh; display: grid; place-content: center; gap: 1rem; padding: var(--gutter); }
.lost h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1; letter-spacing: -.035em; }

@media (max-width: 52rem) {
  .hero { align-items: flex-start; min-height: 0; padding: 7.5rem 0 17rem; }
  .wave { inset: auto 0 0 0; height: 17rem; }
  .product-list a { grid-template-columns: 1fr; }
  .product-list a::before { top: clamp(2.2rem, 5vw, 3rem); }
  .product-list a:hover::before, .product-list a:focus-visible::before { height: .625rem; width: .625rem; }
  .product-list a:hover, .product-list a:focus-visible { padding-left: 1.5rem; }
  .domain { margin-top: .5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .approach-list { grid-template-columns: 1fr; }
  .top nav a:nth-child(2) { display: none; }
}

@media (max-width: 30rem) {
  .top nav { gap: .9rem; }
  .top nav a { font-size: .9375rem; }
  .facts div { flex-direction: column; gap: .1rem; }
  .facts dd { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media (max-width: 24rem) {
  .top nav a:nth-child(3) { display: none; }
}
