@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-latin-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f5f6f4;
  --surface: #ffffff;
  --ink: #0f1b2a;
  --muted: #4a5868;
  --line: #d9dee3;
  --navy: #17304d;
  --navy-2: #0f2238;
  --mint: #7fe0cc;
  --link: #0a6557;
  --focus: #2462c9;
  --code-bg: #0f2238;
  --code-ink: #e4edf5;
  --radius: 14px;
  --ease: cubic-bezier(.2, .75, .2, 1);
  color-scheme: light dark;
  interpolate-size: allow-keywords;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) { --bg: #0c1622;
    --surface: #132131;
    --ink: #e8eef4;
    --muted: #a3b1bf;
    --line: #25384c;
    --link: #7fe0cc;
    --focus: #7fe0cc;
    --code-bg: #07101a; }
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
source { display: none; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
p code, li code, dd code { font-size: .88em; background: color-mix(in srgb, var(--line) 55%, transparent); padding: .1em .35em; border-radius: 5px; overflow-wrap: anywhere; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* header */
.top { padding: 20px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.top nav { display: flex; gap: 20px; font-size: .95rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }
.top nav { align-items: center; }
.top nav a.gh {
  display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none; overflow: hidden;
  transition: border-color .2s, background-color .2s;
}
.top nav a.gh:hover { border-color: var(--ink); text-decoration: none; }
.gh-name { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; }
.gh svg { width: 17px; height: 17px; }
.stars { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px 6px 10px; border-left: 1px solid var(--line); background: color-mix(in srgb, var(--line) 35%, transparent); font-variant-numeric: tabular-nums; }
.stars[hidden] { display: none; }
.stars .star { width: 14px; height: 14px; color: #e3b341; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 700; }
.lang > * { padding: 3px 10px; border-radius: 999px; line-height: 1.4; }
.top nav .lang a { color: var(--muted); text-decoration: none; }
.top nav .lang a:hover { color: var(--ink); text-decoration: none; background: var(--line); }
.lang [aria-current] { background: var(--ink); color: var(--bg, #fff); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid var(--navy); background: var(--navy); color: #fff;
  transition: transform .18s var(--ease), background-color .18s, border-color .18s, box-shadow .18s;
}
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); transform: translateY(-1px); box-shadow: 0 6px 16px rgb(15 34 56 / .18); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
@media (prefers-color-scheme: dark) {
:where(:root:not([data-theme="light"])) .btn { background: var(--mint); border-color: var(--mint); color: #08212a; }
:where(:root:not([data-theme="light"])) .btn:hover { background: #a6ecdd; border-color: #a6ecdd; box-shadow: 0 6px 16px rgb(0 0 0 / .3); }
}

/* hero */
.hero { padding: 40px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; }
.hero .lede { font-size: 1.2rem; color: var(--muted); margin-top: 20px; max-width: 34ch; }
.reqs { margin-top: 20px; font-size: .95rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.download-count { margin-top: 16px; font-size: .9rem; color: var(--muted); }
.download-count a { color: inherit; text-underline-offset: .2em; }
.download-count [data-downloads] { font-weight: 700; font-variant-numeric: tabular-nums; }

.stage {
  position: relative;
  background: var(--navy);
  border-radius: 28px;
  padding: 48px 32px 0;
  display: flex; justify-content: center; align-items: flex-end; gap: 24px;
  overflow: hidden;
}
.stage .panel { width: 52%; border-radius: 16px; box-shadow: 0 20px 50px rgb(0 0 0 / .35); margin-bottom: 40px; }
.stage .phone {
  width: 40%; border: 4px solid #05101c; border-bottom: 0;
  border-radius: 10% 10% 0 0 / 5.4% 5.4% 0 0; box-shadow: 0 20px 50px rgb(0 0 0 / .35);
  aspect-ratio: 1080 / 2000; object-fit: cover; object-position: top;
}

/* the mirrored notification that arrives on the Mac */
.banner {
  position: absolute; top: 16px; right: 16px; width: min(300px, 78%);
  display: grid; grid-template-columns: 34px 1fr; gap: 4px 10px; align-items: start;
  padding: 11px 12px; border-radius: 16px;
  background: rgb(48 52 58 / .92); color: #f2f4f7;
  border: 1px solid rgb(255 255 255 / .12);
  box-shadow: 0 14px 34px rgb(0 0 0 / .4);
  font-size: .8rem; line-height: 1.3;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.banner .app { width: 34px; height: 34px; border-radius: 8px; background: #3b82f6; display: grid; place-items: center; }
.banner .app svg { width: 20px; height: 20px; }
.banner b { font-weight: 700; }
.banner .meta { display: flex; justify-content: space-between; color: #b9c0c9; font-size: .72rem; }
.banner .code {
  grid-column: 2; justify-self: start; margin-top: 6px;
  padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / .14);
  font-weight: 600; font-size: .75rem;
}

/* sections */
section { padding: 80px 0; border-top: 1px solid var(--line); }
.head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.intro { color: var(--muted); max-width: 60ch; margin-top: 10px; }

/* download */
.downloads { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; }
.card { scroll-margin-top: 190px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 1.5rem; display: flex; align-items: baseline; gap: 10px; }
.card .sub { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.card .label { margin-top: 22px; font-weight: 600; }
.term { margin-top: 10px; background: var(--code-bg); color: var(--code-ink); border-radius: 10px; }
.term pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-size: .86rem; line-height: 1.75; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 14px; }
.copy .ok { display: none; }
.copy.done .ok { display: block; animation: pop .3s var(--ease); }
.copy.done .ic { display: none; }
.note { font-size: .92rem; color: var(--muted); margin-top: 14px; }
.alt { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.ver { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.qr-box { display: flex; gap: 22px; align-items: center; margin-top: 22px; }
.qr { width: 168px; flex: none; background: #fff; padding: 10px; border-radius: 10px; border: 1px solid var(--line); }
.touch-only { display: none; }
@media (pointer: coarse) {
  .touch-only { display: flex; margin-top: 22px; }
  .qr-box { display: none; }
}
.nightly { margin-top: 20px; font-size: .92rem; color: var(--muted); }
.card { display: flex; flex-direction: column; }
.card > .alt { margin-top: auto; }
.card > :has(+ .alt) { margin-bottom: 20px; }
.apk-steps { list-style: none; counter-reset: a; padding: 0; margin: 0; display: grid; gap: 14px; }
.apk-steps li { counter-increment: a; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; line-height: 1.45; }
.apk-steps li::before {
  content: counter(a); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: .8rem; font-weight: 800; border: 1px solid var(--line); color: var(--link);
}

/* nightly */
.nightly-box { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.nightly-box summary {
  list-style: none; cursor: pointer; padding: 18px 22px; border-radius: var(--radius);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 700;
}
.nightly-box summary::-webkit-details-marker { display: none; }
.nightly-box summary:hover { color: var(--link); }
.nightly-box summary svg { width: 20px; height: 20px; flex: none; transition: transform .25s var(--ease); }
.nightly-box[open] summary svg { transform: rotate(45deg); }
.nightly-box::details-content { block-size: 0; overflow: clip; transition: block-size .3s var(--ease), content-visibility .3s allow-discrete; }
.nightly-box[open]::details-content { block-size: auto; }
.nightly-body { padding: 0 22px 22px; }
.nightly-intro { color: var(--muted); max-width: 72ch; margin-bottom: 20px; }
.nightly-intro strong { color: var(--ink); font-weight: 600; }
.nightly-body .card h3 { font-size: 1.25rem; }
.nightly-body .card .label { margin-top: 16px; }
.nightly-body .qr-box { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .nightly-box::details-content { transition: none; } }


/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; list-style: none; padding: 0; margin: 0; }
.features p { color: var(--muted); margin-top: 6px; }

/* inside the apps */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.tile { margin: 0; min-width: 0; }
.tile.wide { grid-column: span 7; }
.tile.tall { grid-column: span 5; }
.tile .pane {
  background: var(--navy); border-radius: 20px; overflow: hidden;
  display: flex; justify-content: center; align-items: flex-end;
  padding: 32px 32px 0; height: 100%;
}
.tile .fig { display: grid; grid-template-rows: 1fr auto; height: 100%; }
.tile.wide img { border-radius: 12px 12px 0 0; width: 100%; aspect-ratio: 1440 / 1000; object-fit: cover; object-position: top; }
.tile.tall img { width: min(64%, 300px); border: 7px solid #05101c; border-bottom: 0; border-radius: 26px 26px 0 0; aspect-ratio: 1080 / 1800; object-fit: cover; object-position: top; }
.tile figcaption { margin-top: 12px; color: var(--muted); font-size: .95rem; }

/* pairing */
.pair { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 26px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.steps li::before {
  content: counter(s); width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800;
  background: var(--navy); color: #fff;
}
@media (prefers-color-scheme: dark) {
:where(:root:not([data-theme="light"])) .steps li::before { background: var(--mint); color: #08212a; }
}
.steps p { color: var(--muted); margin-top: 4px; }
.pair figure { margin: 0; }
.pair .frame {
  background: var(--navy); border-radius: 20px; padding: 36px;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: center;
}
.pair .frame img { border-radius: 12px; box-shadow: 0 16px 40px rgb(0 0 0 / .35); }
.pair .frame .ph { border-radius: 18px; aspect-ratio: 1080 / 900; object-fit: cover; }
.pair figcaption { font-size: .9rem; color: var(--muted); margin-top: 12px; }
.more { margin-top: 28px; }

/* faq */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 4px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 700; font-size: 1.1rem; border-radius: 8px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--link); }
.faq summary svg { width: 20px; height: 20px; flex: none; transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .ans { padding: 0 4px 22px; color: var(--muted); max-width: 68ch; }
.faq .ans p + p { margin-top: 10px; }
.faq details::details-content {
  block-size: 0; overflow: clip;
  transition: block-size .3s var(--ease), content-visibility .3s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }

/* changes */
.changes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.changes h3 { font-size: 1rem; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.changes ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }
.date { color: var(--muted); margin-top: 8px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: .95rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 900px) {
  .hero .wrap, .downloads, .pair { grid-template-columns: 1fr; }
  .hero { padding-top: 16px; }
  .features, .changes { grid-template-columns: 1fr 1fr; }
  .tile.wide, .tile.tall { grid-column: span 12; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top nav > a:not(.gh) { display: none; }
  .gh-text { display: none; }
  .gh-name { padding: 6px 9px; }
  .top nav { gap: 8px; }
  .top .wrap { gap: 8px; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .lang > * { padding: 3px 8px; }
  .stage { padding: 118px 16px 0; gap: 12px; border-radius: 20px; }
  .stage .phone { border-width: 3px; }
  .stage .panel { margin-bottom: 24px; }
  .banner { top: 12px; right: 12px; left: 12px; width: auto; }
  section { padding: 60px 0; }
  .features, .changes { grid-template-columns: 1fr; gap: 24px; }
  .card { padding: 22px 18px; }
  .term pre { font-size: .74rem; padding: 14px; }
  .qr-box { flex-direction: column; align-items: flex-start; }
  .tile .pane { padding: 20px 16px 0; }
  .pair .frame { padding: 18px; gap: 12px; }
  .actions .btn { flex: 1 1 100%; }
}

/* ---------- motion ---------- */
@keyframes up { from { opacity: 0; transform: translateY(18px); } }
@keyframes settle { from { opacity: 0; transform: translateY(28px) scale(.985); } }
@keyframes arrive { from { opacity: 0; transform: translate(28px, -10px) scale(.96); } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* Hero entrance. Fill mode "backwards" leaves the final state as the plain styles, so the hero shows even if animations never run. */
.hero h1 { animation: up .55s var(--ease) backwards; }
.hero .lede { animation: up .55s var(--ease) .08s backwards; }
.hero .reqs { animation: up .55s var(--ease) .12s backwards; }
.hero .actions { animation: up .55s var(--ease) .18s backwards; }
.stage { animation: settle .65s var(--ease) .22s backwards; }
.stage .phone { animation: up .6s var(--ease) .3s backwards; }
.banner { animation: arrive .6s cubic-bezier(.16, 1, .3, 1) 1s backwards; }

/* Scroll reveals, only armed when JS confirmed IntersectionObserver works (html.rv) */
.rv [data-reveal] { transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.rv [data-reveal]:not(.in) { opacity: 0; }
.rv [data-reveal="rise"]:not(.in) { transform: translateY(32px); }
.rv [data-reveal="lift"]:not(.in) { transform: translateY(12px); }
.rv [data-reveal="zoom"]:not(.in) { transform: scale(.965); }
.rv [data-reveal="left"]:not(.in) { transform: translateX(-20px); }
.rv [data-reveal="right"]:not(.in) { transform: translateX(28px); }
.rv [data-reveal="zoom"] .pane img { transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms + 80ms); }
.rv [data-reveal="zoom"]:not(.in) .pane img { transform: translateY(24px); }

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

/* theme chosen with the header switch */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="dark"] { --bg: #0c1622;
    --surface: #132131;
    --ink: #e8eef4;
    --muted: #a3b1bf;
    --line: #25384c;
    --link: #7fe0cc;
    --focus: #7fe0cc;
    --code-bg: #07101a; }
:where(:root[data-theme="dark"]) .btn { background: var(--mint); border-color: var(--mint); color: #08212a; }
:where(:root[data-theme="dark"]) .btn:hover { background: #a6ecdd; border-color: #a6ecdd; box-shadow: 0 6px 16px rgb(0 0 0 / .3); }
:where(:root[data-theme="dark"]) .steps li::before { background: var(--mint); color: #08212a; }
.theme { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s; }
.theme:hover { color: var(--ink); border-color: var(--ink); }
.theme svg { width: 16px; height: 16px; }
.theme .sun { display: none; }
:where(:root[data-theme="dark"]) .theme .sun { display: block; }
:where(:root[data-theme="dark"]) .theme .moon { display: none; }
.nightly-body .term pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.qr-box + .note { margin-top: 18px; }
.brand { flex: none; }
@media (max-width: 420px) { .brand-name { display: none; } }

/* privacy */
.legal .wrap { max-width: 72ch; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.legal h2 { font-size: 1.3rem; margin-top: 36px; }
.legal p { color: var(--muted); margin-top: 10px; }
.legal .date { font-size: .95rem; }
