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

/* Aluminium by day, graphite by night: the two halves of the app icon. */
:root {
  --bg: #e7e8eb;
  --surface: #f4f4f6;
  --ink: #1d1f25;
  --muted: #565a64;
  --line: #cfd1d6;
  --link: #b4410a;
  --pulse-a: #ffb347;
  --pulse-b: #ff6a3d;
  --pulse-c: #ff3d7f;
  --glow: rgba(255, 106, 61, 0.35);
  --button-bg: #1d1f25;
  --button-ink: #f4f4f6;
  --measure: 34rem;
  --page: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1f25;
    --surface: #262930;
    --ink: #eff0f2;
    --muted: #a3a7b0;
    --line: #363a43;
    --link: #ff9a6b;
    --glow: rgba(255, 106, 61, 0.5);
    --button-bg: #eff0f2;
    --button-ink: #1d1f25;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

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

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

.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 750;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 22.5%;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 520;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(2.5rem, 8vw, 6rem) 0;
}

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

  .hero .hero-icon {
    display: block;
  }
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.75rem, 8.5vw, 6.25rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 820;
  text-wrap: balance;
}

.lede {
  max-width: var(--measure);
  margin: 1.5rem 0 0;
  font-size: clamp(1.125rem, 2vw, 1.3rem);
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0.9rem;
  background: var(--button-bg);
  color: var(--button-ink);
  text-decoration: none;
  line-height: 1.2;
}

.button small {
  font-size: 0.78rem;
  opacity: 0.72;
}

.button strong {
  font-weight: 680;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.hero-icon {
  display: none;
  justify-self: center;
  width: min(17rem, 60vw);
  height: auto;
  aspect-ratio: 1;
  border-radius: 22.5%;
  box-shadow: 0 2rem 4rem -1.5rem var(--glow), 0 0.75rem 1.5rem -0.75rem rgba(0, 0, 0, 0.35);
}

/* The pulse: one line, drawn once, that runs the width of the page. */

.pulse {
  width: 100%;
  height: auto;
  margin-block: clamp(2rem, 6vw, 4rem);
  overflow: visible;
}

.pulse path {
  fill: none;
  stroke: url(#pulse-gradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px var(--glow));
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.8s cubic-bezier(0.6, 0, 0.2, 1) 0.2s forwards;
}

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

@media (prefers-reduced-motion: reduce) {
  .pulse path {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* Sections */

.section {
  padding-block: clamp(3rem, 8vw, 5.5rem);
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.875rem, 4.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 780;
  max-width: 20ch;
  text-wrap: balance;
}

.section .intro {
  max-width: var(--measure);
  margin: 0;
  color: var(--muted);
}

/* Features: a reference list, name on the left, what it does on the right. */

.features {
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.features > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.25rem 2rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 46rem) {
  .features > div {
    grid-template-columns: 14rem minmax(0, 1fr);
  }
}

.features dt {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.features dd {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
}

/* Setup: a real sequence, so it is numbered. */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 52rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pulse-a), var(--pulse-b) 55%, var(--pulse-c));
  color: #1d1f25;
  font-weight: 800;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}

.steps p {
  margin: 0;
  color: var(--muted);
  max-width: 24rem;
}

/* Privacy */

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

@media (min-width: 52rem) {
  .private {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

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

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

.facts li:first-child {
  border-top: 0;
  padding-top: 0;
}

.facts strong {
  display: block;
  font-weight: 700;
}

.facts span {
  color: var(--muted);
}

/* Get it */

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

@media (min-width: 52rem) {
  .get {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: end;
  }
}

.requirements {
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-radius: 1rem;
}

.requirements div + div {
  margin-top: 0.75rem;
}

.requirements dt {
  font-weight: 700;
}

.requirements dd {
  margin: 0;
  color: var(--muted);
}

/* Long-form pages: privacy policy and support */

.doc {
  max-width: 42rem;
  padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 8vw, 5rem);
}

.doc h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.doc .updated {
  margin: 0 0 2.5rem;
  color: var(--muted);
}

.doc h2 {
  margin: 2.5rem 0 0.5rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.doc h3 {
  margin: 1.75rem 0 0.25rem;
  font-size: 1.1rem;
}

.doc p,
.doc li {
  color: var(--ink);
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.4rem;
}

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

.doc details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.doc summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 1.08rem;
}

.doc details p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer .legal {
  margin: 1rem 0 0;
  font-size: 0.82rem;
}
