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

:root {
  --black: #000000;
  --ink: #23292d;
  --muted: #5b646a;
  --line: #d9e0e3;
  --paper: #ffffff;
  --tint: #f0f4f5;
  --teal: #00c0c0;
  --plate: #e2e8ea;
  --key: #ffffff;
  --key-skirt: #c9d2d6;
  --legend: #4a5358;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--black);
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: var(--gutter);
  top: 12px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--black);
  color: #fff;
}

/* Header */

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.brand {
  display: block;
}

.brand img {
  width: 176px;
}

.site-nav {
  display: flex;
  gap: 32px;
  font-size: 1rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Hero */

.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title title"
    "text kb";
  align-items: end;
  gap: 48px 64px;
}

.hero h1 {
  grid-area: title;
}

.hero-text {
  grid-area: text;
}

.kb-frame {
  grid-area: kb;
}

h1 {
  max-width: 16em;
  font-size: clamp(2.375rem, 1.5rem + 3.2vw, 4rem);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 30em;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 6px;
  background: var(--black);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  box-shadow: inset 0 -4px 0 var(--teal);
}

.call {
  color: var(--black);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.call:hover {
  text-decoration-thickness: 3px;
}

/* The keyboard: Q, W, E, R, N and O are typed once when the page opens. */

.kb-frame {
  --u: clamp(28px, 2.7vw, 38px);
  --gap: calc(var(--u) * 0.11);
}

.kb {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  width: max-content;
  padding: calc(var(--u) * 0.32);
  border-radius: calc(var(--u) * 0.36);
  background: var(--plate);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 0 rgba(0, 0, 0, 0.04);
}

.kb-row {
  display: flex;
  gap: var(--gap);
}

.key {
  --w: 1;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: calc(var(--u) * var(--w) - var(--gap));
  height: calc(var(--u) - var(--gap));
  padding-bottom: calc(var(--u) * 0.05);
  border-radius: calc(var(--u) * 0.14);
  background: var(--key);
  color: var(--legend);
  box-shadow: inset 0 calc(var(--u) * -0.07) 0 var(--key-skirt), 0 1px 1px rgba(0, 0, 0, 0.08);
  font-size: calc(var(--u) * 0.36);
  font-weight: 600;
  line-height: 1;
  user-select: none;
}

.w150 { --w: 1.5; }
.w175 { --w: 1.75; }
.w225 { --w: 2.25; }
.w275 { --w: 2.75; }

.key.mod {
  align-items: flex-end;
  padding: 0 calc(var(--u) * 0.16) calc(var(--u) * 0.17);
  font-size: calc(var(--u) * 0.24);
  font-weight: 500;
}

.key.mod.left { justify-content: flex-start; }
.key.mod.right { justify-content: flex-end; }

.key.on {
  --on-bg: var(--black);
  --on-fg: #ffffff;
  --on-skirt: #3a4045;
  animation: strike 200ms cubic-bezier(0.3, 0.7, 0.4, 1) both;
}

.key.on.teal {
  --on-bg: var(--teal);
  --on-fg: var(--black);
  --on-skirt: #009da0;
}

.d0 { animation-delay: 0.6s; }
.d1 { animation-delay: 0.76s; }
.d2 { animation-delay: 0.92s; }
.d3 { animation-delay: 1.08s; }
.d4 { animation-delay: 1.36s; }
.d5 { animation-delay: 1.56s; }

@keyframes strike {
  0% {
    transform: translateY(0);
    background: var(--key);
    color: var(--legend);
    box-shadow: inset 0 calc(var(--u) * -0.07) 0 var(--key-skirt), 0 1px 1px rgba(0, 0, 0, 0.08);
  }
  40% {
    transform: translateY(calc(var(--u) * 0.05));
    background: var(--on-bg);
    color: var(--on-fg);
    box-shadow: inset 0 calc(var(--u) * -0.02) 0 var(--on-skirt), 0 0 0 rgba(0, 0, 0, 0);
  }
  100% {
    transform: translateY(0);
    background: var(--on-bg);
    color: var(--on-fg);
    box-shadow: inset 0 calc(var(--u) * -0.07) 0 var(--on-skirt), 0 1px 1px rgba(0, 0, 0, 0.08);
  }
}

/* Sections */

.block {
  padding: clamp(64px, 9vw, 120px) 0;
}

#build {
  border-top: 1px solid var(--line);
}

.tint {
  background: var(--tint);
}

h2 {
  font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: start;
  gap: 32px clamp(32px, 5vw, 64px);
}

.offerings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 48px;
}

.offering p,
.steps p {
  margin-top: 8px;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.numkey {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  padding-bottom: 3px;
  border-radius: 7px;
  background: var(--key);
  color: var(--black);
  box-shadow: inset 0 -3px 0 var(--key-skirt), 0 1px 1px rgba(0, 0, 0, 0.08);
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1;
}

.contact-intro {
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
}

.email {
  display: inline-block;
  margin-top: 16px;
  color: var(--black);
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

.email:hover {
  text-decoration-thickness: 5px;
}

.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
  margin: 48px 0 0;
}

.details dt {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.details dd {
  margin: 4px 0 0;
  color: var(--black);
}

.details a {
  text-decoration: none;
}

.details a:hover {
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Footer */

.site-footer {
  padding: 40px 0;
  background: var(--black);
  color: #c4ccd0;
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.footer-inner img {
  width: 120px;
}

.footer-inner p {
  margin-right: auto;
}

.footer-inner a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-underline-offset: 4px;
}

.site-footer :focus-visible {
  outline-color: #ffffff;
}

/* Documents (privacy, not found) */

.doc {
  max-width: 40em;
  padding: clamp(48px, 7vw, 88px) 0 clamp(72px, 9vw, 120px);
}

.doc h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem);
}

.doc h2 {
  margin-top: 44px;
  font-size: 1.5rem;
}

.doc p {
  margin-top: 12px;
}

.doc .updated {
  color: var(--muted);
}

.doc a {
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.doc .button {
  margin-top: 32px;
}

.doc h3 {
  margin-top: 30px;
  font-size: 1.1875rem;
}

.doc h2 + h3 {
  margin-top: 18px;
}

.doc .doc-lead {
  margin-top: 20px;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
}

/* Support: the setup steps on number keys, like the home page's */

.doc-steps {
  display: grid;
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.doc-steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 0 18px;
}

.doc-steps .numkey {
  margin-bottom: 0;
}

.doc .doc-steps p {
  margin-top: 7px;
}

.doc .doc-email {
  display: inline-block;
  margin-top: 20px;
  color: var(--black);
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.125rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}

.doc .doc-email:hover {
  text-decoration-thickness: 5px;
}

.doc-details {
  grid-template-columns: repeat(2, max-content);
  gap: 20px 56px;
  margin-top: 28px;
}

.nowrap {
  white-space: nowrap;
}

.doc .doc-note {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
}

/* Narrower screens */

@media (max-width: 1000px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "kb"
      "title"
      "text";
    gap: 40px;
  }

  .kb-frame {
    --u: clamp(28px, 4.6vw, 40px);
  }

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

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

@media (max-width: 640px) {
  body {
    font-size: 1.0625rem;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .brand img {
    width: 150px;
  }

  .header-inner {
    padding-top: 20px;
    padding-bottom: 8px;
  }

  .site-nav {
    flex-wrap: wrap;
    width: 100%;
    gap: 8px 20px;
    padding-bottom: 0;
    font-size: 0.9375rem;
  }

  .hero-inner {
    gap: 32px;
  }

  /* The keyboard runs off the right edge and fades, so its keys stay a readable size. */
  .kb-frame {
    --u: clamp(24px, calc(8.4vw - 2px), 34px);
    margin-right: calc(var(--gutter) * -1);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
    mask-image: linear-gradient(to right, #000 88%, transparent);
  }

  .offerings,
  .details {
    grid-template-columns: minmax(0, 1fr);
  }

  .offerings {
    gap: 28px;
  }

  .details {
    margin-top: 36px;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 360px) {
  .site-nav {
    gap: 8px 16px;
    font-size: 0.875rem;
  }
}

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

  .key.on {
    animation: none;
    background: var(--on-bg);
    color: var(--on-fg);
    box-shadow: inset 0 calc(var(--u) * -0.07) 0 var(--on-skirt), 0 1px 1px rgba(0, 0, 0, 0.08);
  }
}
