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

:root {
  --ink: #050a14;
  --navy: #0a1424;
  --navy-2: #101d33;
  --line: #1d2c44;
  --line-2: #2c405f;
  --text: #e9eef4;
  --muted: #a5b4c7;
  --teal: #3fd3c0;
  --teal-hi: #6fe3d3;
  --teal-ink: #032b27;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-hi); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
strong { font-weight: 600; color: var(--text); }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 10px;
  background: var(--teal); color: var(--teal-ink); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--teal-ink); }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 5;
  background: rgba(5, 10, 20, .86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.wordmark { font: 500 1.375rem/1 var(--serif); color: var(--text); text-decoration: none; letter-spacing: .005em; }
.wordmark:hover { color: var(--text); }
.site-head nav { margin-left: auto; }
.nav-list { display: flex; gap: 26px; }
.nav-list a { color: var(--muted); text-decoration: none; font-size: .9375rem; }
.nav-list a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 12px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--teal); color: var(--teal-ink); }
.btn-primary:hover { background: var(--teal-hi); color: var(--teal-ink); }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--teal); color: var(--text); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .9375rem; border-color: var(--line-2); color: var(--text); }
.btn-small:hover { border-color: var(--teal); color: var(--text); }
.dl { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(24px, 5vw, 72px); }
.h1-name { display: block; font: 500 1.75rem/1.2 var(--serif); color: var(--teal); margin-bottom: 14px; }
.h1-tag {
  display: block;
  font: 500 clamp(2.5rem, 5.6vw, 4.5rem)/1.04 var(--serif);
  letter-spacing: -.018em;
  text-wrap: balance;
}
.lede { margin-top: 26px; max-width: 34em; color: var(--muted); font-size: 1.1875rem; line-height: 1.55; }
.downloads { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.pending { margin-top: 14px; font-size: .9375rem; }
.fineprint { margin-top: 14px; color: var(--muted); font-size: .9375rem; }
.pending + .fineprint { margin-top: 4px; }
.which-mac { margin-top: 10px; max-width: 34em; font-size: .9375rem; color: var(--muted); }
.which-mac summary { display: inline-block; cursor: pointer; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.which-mac summary::-webkit-details-marker { display: none; }
.which-mac summary:hover { color: var(--teal-hi); }
.which-mac p { margin-top: 8px; }

.locator { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1; justify-self: center; }
.locator::before {
  content: ""; position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(63, 211, 192, .16), rgba(63, 211, 192, 0));
}
.rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring { fill: none; stroke: var(--teal); stroke-width: 1.25; transform-box: fill-box; transform-origin: center; }
.ring-1 { stroke-opacity: .6; }
.ring-2 { stroke-opacity: .36; }
.ring-3 { stroke-opacity: .2; }
.ring-dots circle { fill: var(--teal); }
.ring-labels rect { fill: var(--ink); }
.ring-labels text { fill: var(--muted); font: 500 15px var(--sans); text-anchor: middle; letter-spacing: .02em; }
.locator picture { position: absolute; left: 50%; top: 50%; width: 30%; transform: translate(-50%, -50%); }
.app-icon {
  width: 100%; height: auto; border-radius: 22.37%;
  box-shadow: 0 0 0 1px rgba(233, 238, 244, .14), 0 18px 48px rgba(0, 0, 0, .6);
}

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
h2 { font: 500 clamp(1.875rem, 3.4vw, 2.75rem)/1.1 var(--serif); letter-spacing: -.012em; }
h3 { font: 600 1.125rem/1.3 var(--sans); }
.section-intro { margin-top: 14px; max-width: 38em; color: var(--muted); font-size: 1.125rem; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.card {
  padding: 26px 24px 28px;
  background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 14px 32px rgba(0, 0, 0, .45); }
.glyph { width: 28px; height: 28px; margin-bottom: 18px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.glyph .solid { fill: var(--teal); stroke: none; }
.card p { margin-top: 8px; color: var(--muted); font-size: 1rem; }
.also { margin-top: 28px; max-width: 44em; color: var(--muted); }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; margin-top: 40px; }
.shot-wide { grid-column: 1 / -1; }
.shot-frame {
  display: grid; place-items: center; aspect-ratio: 16 / 10;
  background: var(--navy); border: 1px dashed var(--line-2); border-radius: 14px;
  color: var(--muted); font-size: .9375rem;
}
.shot-wide .shot-frame { aspect-ratio: 16 / 9; }
/* Until the first real screenshot is added, the three placeholders sit in one compact row. */
.shots:not(:has(.shot-img)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shots:not(:has(.shot-img)) .shot-wide { grid-column: auto; }
.shots:not(:has(.shot-img)) .shot-frame { aspect-ratio: 16 / 10; }
.shot-img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: 1rem; }

/* Sources */
.sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; margin-top: 36px; }
.sources > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding-block: 14px; border-top: 1px solid var(--line); }
.sources dt { font-weight: 600; }
.sources dd { color: var(--muted); }

/* Install */
.steps { counter-reset: step; max-width: 46em; margin-top: 36px; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 34px 76px; }
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -6px; width: 52px;
  font: 500 3.25rem/1 var(--serif); color: var(--teal); text-align: center;
}
.steps > li::after { content: ""; position: absolute; left: 26px; top: 56px; bottom: 10px; width: 1px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps p { margin-top: 8px; color: var(--muted); }
.os-list { margin-top: 12px; display: grid; gap: 10px; color: var(--muted); }
.os-list li { padding: 14px 16px; background: var(--navy); border: 1px solid var(--line); border-radius: 12px; }
.note { margin-top: 36px; max-width: 46em; padding-left: 76px; color: var(--muted); }

/* Privacy */
.pledges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 36px; }
.pledges li { padding-block: 22px; border-top: 1px solid var(--line); }
.pledges p { margin-top: 6px; color: var(--muted); max-width: 30em; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 36px 48px; color: var(--muted); font-size: .9375rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 36px; }
.foot-row p:last-child { margin-left: auto; }

/* Licenses page */
.doc { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.doc .wrap { width: min(760px, 100% - 48px); }
.doc h1 { font: 500 clamp(2.25rem, 5vw, 3.25rem)/1.08 var(--serif); letter-spacing: -.015em; }
.doc h2 { margin-top: 52px; font-size: 1.625rem; }
.doc p { margin-top: 14px; color: var(--muted); }
.doc .credits { margin-top: 18px; border-bottom: 1px solid var(--line); }
.doc .credits li { padding-block: 12px; border-top: 1px solid var(--line); color: var(--muted); }
.license-text {
  margin: 18px 0 0; padding: 20px 22px; white-space: pre-wrap;
  background: var(--navy); border: 1px solid var(--line); border-radius: 12px;
  color: var(--muted); font: 400 .9375rem/1.6 var(--sans);
}

/* One load moment: the rings open outward from the app icon. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .ring { animation: ring-open .9s cubic-bezier(.2, .7, .2, 1) both; }
  .ring-2 { animation-delay: .12s; }
  .ring-3 { animation-delay: .24s; }
  .ring-dots, .ring-labels { animation: fade-in .6s ease .7s both; }
  @keyframes ring-open { from { transform: scale(.55); opacity: 0; } to { transform: scale(1); opacity: 1; } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .card { transition: none; }
  .card:hover { transform: none; }
}

@media (max-width: 900px) {
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-copy { position: relative; z-index: 1; }
  /* The icon moves above the headline and the rings radiate from it, running off the edges. */
  .locator { grid-row: 1; width: 104px; max-width: none; justify-self: start; }
  .locator::before { inset: -70%; }
  .locator picture { width: 100%; }
  .rings {
    inset: auto; left: 50%; top: 50%; width: 334%; max-width: none; height: 334%; transform: translate(-50%, -50%);
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 72%); mask-image: linear-gradient(to bottom, #000 60%, transparent 72%);
  }
  .ring-labels, .ring-dots { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sources, .pledges { grid-template-columns: 1fr; }
  .nav-list { display: none; }
  .site-head .btn-small { margin-left: auto; }
}
@media (max-width: 600px) {
  .wrap { width: min(1120px, 100% - 36px); }
  .cards, .shots, .shots:not(:has(.shot-img)) { grid-template-columns: 1fr; }
  .downloads .btn { flex: 1 1 100%; }
  .locator { width: 88px; }
  .sources > div { grid-template-columns: 1fr; gap: 2px; }
  .steps > li { padding-left: 58px; }
  .steps > li::before { width: 40px; font-size: 2.75rem; }
  .steps > li::after { left: 20px; top: 50px; }
  .note { padding-left: 0; }
  .foot-row p:last-child { margin-left: 0; }
}
