:root {
  --paper: #f3f4f7;
  --ink: #171922;
  --slate: #585d6d;
  --rule: #d8dbe4;
  --blue: #2a36d6;
  --blue-deep: #1d268f;
  --haze: #c9cef8;
  --star: #f5b940;

  --font: "Schibsted Grotesk", system-ui, sans-serif;
  --measure: 68ch;
  --gutter: clamp(16px, 4vw, 48px);
  --wide: 1180px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

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-thickness: 2px;
}

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

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

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

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
}

/* Header */

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  font-size: 0.975rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* Hero */

.hero {
  background: var(--blue);
  color: #fff;
  padding-bottom: clamp(56px, 9vw, 112px);
}

.hero .site-header a {
  color: #fff;
}

.hero h1 {
  margin: clamp(32px, 7vw, 88px) 0 0;
  max-width: 15ch;
  font-size: clamp(2.5rem, 6.4vw, 5.25rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero-lede {
  margin: 28px 0 0;
  max-width: 46ch;
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  color: var(--haze);
}

/* The memorable part: what goes in, what comes out */

.turns {
  margin: clamp(48px, 7vw, 80px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.turns li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.6fr);
  align-items: baseline;
  gap: clamp(12px, 3vw, 40px);
  padding: clamp(16px, 2.2vw, 24px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.turns .in {
  color: var(--haze);
  font-size: clamp(1.125rem, 2.2vw, 1.75rem);
  letter-spacing: -0.01em;
}

.turns .becomes {
  font-size: 0.9rem;
  color: var(--haze);
  opacity: 0.8;
}

.turns .out {
  font-size: clamp(1.25rem, 2.8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.turns .via {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--haze);
}

.turns .via a {
  color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  .turns li {
    animation: settle 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .turns .out {
    animation: arrive 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .turns li:nth-child(1),
  .turns li:nth-child(1) .out {
    animation-delay: 120ms;
  }
  .turns li:nth-child(2),
  .turns li:nth-child(2) .out {
    animation-delay: 260ms;
  }
  .turns li:nth-child(3),
  .turns li:nth-child(3) .out {
    animation-delay: 400ms;
  }
  .turns li:nth-child(4),
  .turns li:nth-child(4) .out {
    animation-delay: 540ms;
  }
  .turns li .out {
    animation-duration: 900ms;
  }
}

@keyframes settle {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .turns li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .turns .becomes {
    display: none;
  }
}

/* Sections */

.section {
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(16px, 3vw, 32px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 5vw, 72px);
}

@media (max-width: 860px) {
  .section-grid {
    grid-template-columns: 1fr;
  }
}

.section h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-intro {
  margin: 16px 0 0;
  color: var(--slate);
  max-width: 34ch;
}

.prose p {
  margin: 0 0 1.1em;
  max-width: var(--measure);
}

/* Products */

.group + .group {
  margin-top: 56px;
}

.group h3 {
  margin: 0 0 4px;
  font-size: 1.0625rem;
  font-weight: 700;
}

.group > p {
  margin: 0 0 20px;
  color: var(--slate);
  max-width: var(--measure);
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}

.product:last-child {
  border-bottom: 1px solid var(--rule);
}

.product h4 {
  margin: 0;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.product h4 a {
  text-decoration: none;
}

.product h4 a:hover {
  text-decoration: underline;
}

.product .domain {
  align-self: start;
  padding-top: 6px;
  font-size: 0.95rem;
  color: var(--blue);
}

.product .what {
  grid-column: 1 / -1;
  margin: 0;
  max-width: 62ch;
}

.product .policies {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.925rem;
  color: var(--slate);
}

/* Company */

.company {
  background: #fff;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

.registry {
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  border-top: 2px solid var(--ink);
}

.registry dt,
.registry dd {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.registry dt {
  padding-right: 32px;
  color: var(--slate);
}

.registry dd {
  font-weight: 500;
}

@media (max-width: 560px) {
  .registry {
    grid-template-columns: 1fr;
  }
  .registry dt {
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 0.925rem;
  }
  .registry dd {
    padding-top: 2px;
  }
}

.company .prose {
  margin-top: 40px;
}

/* Contact */

.contact-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-lines > li {
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}

.contact-lines > li:last-child {
  border-bottom: 1px solid var(--rule);
}

.contact-lines .label {
  display: block;
  color: var(--slate);
  margin-bottom: 4px;
}

.contact-lines .big {
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.support-note {
  margin: 14px 0 0;
  color: var(--slate);
}

.support-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 6px 24px;
}

.support-list span {
  color: var(--slate);
}

/* Footer */

.site-footer {
  margin-top: clamp(64px, 9vw, 120px);
  background: var(--blue-deep);
  color: var(--haze);
  padding: 40px 0 48px;
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

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

.site-footer p {
  margin: 0;
}

/* Legal pages */

.page-head {
  background: var(--blue);
  color: #fff;
  padding-bottom: clamp(40px, 6vw, 72px);
}

.page-head .site-header a {
  color: #fff;
}

.page-head h1 {
  margin: clamp(24px, 5vw, 56px) 0 0;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.page-head p {
  margin: 16px 0 0;
  color: var(--haze);
}

.legal {
  padding-top: clamp(40px, 6vw, 72px);
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
}

.legal h2 {
  margin: 2em 0 0.5em;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal li {
  max-width: var(--measure);
}

.legal ul {
  padding-left: 1.2em;
}

.legal li {
  margin-bottom: 0.4em;
}
