/* Inter (OFL 1.1), self-hosted. Only downloaded where the system has no SF Pro. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  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: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Onyx Launcher homepage (en/, uk/). Privacy and license pages still use style.css. */



:root {
  /* SF Pro renders natively on Apple devices via the system font keywords. It cannot be
     self-hosted (Apple's font licence), so other systems fall back to Inter, its closest open relative. */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease: cubic-bezier(.32, .72, 0, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern";
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.i {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 12px 18px;
  background: #000;
  color: #fff;
  border-radius: 999px;
}

.skip:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--focus, #2f62d6);
  outline-offset: 3px;
  border-radius: 6px;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* Entrance: children of [data-reveal] rise in one after another. Only hidden once page.js
   has added .js, so content is never lost when scripts fail. */
.js [data-reveal]>* {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js [data-reveal].in>* {
  opacity: 1;
  transform: none;
}

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

  .js [data-reveal]>* {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Homepage ---------- */
:root {
  --paper: #f5f5f7;
  --white: #ffffff;
  --stone: #e8e8ed;
  --ink: #111114;
  --soft: #55555d;
  --blue: #2f62d6;
  --blue-hover: #2554c0;
  --nav-h: 72px;
  --m: clamp(20px, 4vw, 64px);
  --gap: clamp(16px, 2vw, 28px);
  --focus: var(--blue);
  --h2: clamp(32px, 3.3vw, 52px);
  --h3: 19px;
  --text: 17px;
}

body {
  background: var(--paper);
  color: var(--ink);
}

.wrap {
  padding-inline: var(--m);
  max-width: 1440px;
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

/* The top bar lives in nav.css (shared with the privacy and license pages). */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: transform .25s var(--ease), background-color .2s, color .2s;
}

.btn:active {
  transform: scale(.97);
}

.btn-blue {
  background: var(--blue);
  color: #fff;
}

.btn-blue:hover {
  background: var(--blue-hover);
}

.btn .i {
  width: 22px;
  height: 22px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 72px;
}

/* Copy on the left, a fanned stack of three app windows on the right. Whole windows with
   their title bars read as pictures of the app, so visitors don't mistake them for site buttons.
   The copy column hugs the headline; the stack takes everything up to the window edge. */
.hero-in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  width: 100%;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-media {
  min-width: 0;
  margin-right: calc(16px - var(--m));
}

@media (min-width: 901px) {
  .hero h1 .l {
    white-space: nowrap;
  }
}

/* sit the stack a little higher than the copy, where there is room under the top bar */
@media (min-width: 901px) and (min-height: 860px) {
  .hero-media {
    translate: 0 -18px;
  }
}

.hero-stack {
  position: relative;
  aspect-ratio: 1.32;
}

.hero-stack img {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 40px 60px rgba(30, 30, 60, .16)) drop-shadow(0 6px 14px rgba(30, 30, 60, .08));
  transition: transform 1s var(--ease-out);
}

.hero-stack .s1 {
  left: 0;
  top: 0;
  width: 68%;
  transform: rotate(-5deg);
}

.hero-stack .s2 {
  left: 14%;
  top: 13%;
  width: 68%;
  transform: rotate(2.5deg);
}

.hero-stack .s3 {
  left: 26%;
  top: 29%;
  width: 72%;
  transform: rotate(-1deg);
}

@media (hover: hover) {
  .hero-stack:hover .s1 {
    transform: rotate(-8deg) translate(-3%, -2%);
  }

  .hero-stack:hover .s2 {
    transform: rotate(3.5deg) translate(0, -2%);
  }

  .hero-stack:hover .s3 {
    transform: rotate(0deg) translate(1%, 1%);
  }
}

.hero h1 {
  font-size: clamp(34px, 3.8vw, 62px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
}

.hero h1 .l {
  display: block;
}

.hero .lede {
  margin-top: 32px;
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.45;
  max-width: 34ch;
}

.dl {
  margin-top: 36px;
  display: grid;
  justify-items: start;
  gap: 12px;
}

.dl-sub,
.dl-file {
  font-size: 15px;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}

.dl-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 4px;
}

.dl-more>* {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
  transition: opacity .2s;
}

.dl-more>*:hover {
  opacity: .75;
}

/* ---------- Sections ---------- */
section[id] {
  scroll-margin-top: var(--nav-h);
}

.sec {
  padding-block: clamp(72px, 8vw, 128px);
}

.sec-white {
  background: var(--white);
}

.h2 {
  font-size: var(--h2);
  line-height: 1.06;
  letter-spacing: -.032em;
  font-weight: 700;
}

.sec-lede {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.5;
  max-width: 40ch;
}

.head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: end;
}

.head .h2 {
  grid-column: 1 / 7;
}

.head .sec-lede {
  grid-column: 8 / 13;
}

/* App pictures: real window captures with their own rounded corners (transparent PNG source) */
.shot {
  display: block;
  width: 100%;
  height: auto;
}

/* Facts: a heading with its icon, then one sentence */
.facts {
  display: grid;
  gap: 28px;
}

.facts h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--h3);
  line-height: 1.25;
  letter-spacing: -.015em;
  font-weight: 600;
}

.facts h3 .i {
  width: 24px;
  height: 24px;
  color: var(--blue);
  stroke-width: 1.7;
}

.facts p {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.5;
  max-width: 36ch;
}

.facts-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(40px, 4vw, 64px);
}

.facts-row p {
  margin-left: 36px;
}

.facts-col p {
  margin-left: 36px;
}

/* Split: text beside a picture */
.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: center;
}

.split-text {
  grid-column: 1 / 6;
}

.split-media {
  grid-column: 6 / 13;
}

.split.rev .split-text {
  grid-column: 8 / 13;
  grid-row: 1;
}

.split.rev .split-media {
  grid-column: 1 / 8;
  grid-row: 1;
}

.split-text .sec-lede {
  margin-top: 20px;
}

.split-text .facts {
  margin-top: 40px;
}

/* Tabs (mods / shaders): a segmented control above one large picture */
.seg {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--stone);
  border-radius: 999px;
}

.seg button {
  min-height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color .2s, color .2s;
}

.seg button[aria-pressed="true"],
.seg button[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
}

.seg button:not([aria-pressed="true"]):not([aria-selected="true"]):hover {
  color: var(--ink);
}

.tabbar {
  display: none;
  margin-top: clamp(40px, 4vw, 56px);
  justify-content: center;
}

.js .tabbar {
  display: flex;
}

.stage {
  margin-top: 28px;
  display: grid;
  gap: 40px;
}

.stage figure {
  margin: 0;
}

.js .stage {
  grid-template-areas: "s";
  gap: 0;
}

.js .stage>* {
  grid-area: s;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), visibility 0s .45s;
}

.js .stage>.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}

.wide-shot {
  max-width: 1100px;
  margin-inline: auto;
}

/* Tour: a list of parts of the app beside the picture of the selected one */
.tour {
  margin-top: clamp(48px, 5vw, 80px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}

.tour-list {
  grid-column: 1 / 5;
  display: grid;
  gap: 4px;
}

.tour-list button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  border-radius: 18px;
  transition: background-color .25s;
}

.tour-list .tour-h {
  display: block;
  font-size: var(--h3);
  line-height: 1.25;
  letter-spacing: -.015em;
  font-weight: 600;
  transition: color .25s;
}

.tour-list .tour-p {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.5;
  max-width: 34ch;
}

.js .tour-list .tour-p {
  display: none;
}

.js .tour-list [aria-selected="true"] {
  background: var(--white);
}

.js .tour-list [aria-selected="true"] .tour-p {
  display: block;
}

.js .tour-list .tour-h {
  color: var(--soft);
}

.js .tour-list button:hover .tour-h,
.js .tour-list [aria-selected="true"] .tour-h {
  color: var(--ink);
}

.tour .stage {
  grid-column: 5 / 13;
  margin-top: 0;
}

/* Scroll mode (home.js adds .is-scrolly on wide, tall screens): list and picture stay pinned
   while the page scrolls through the extra room below, one step per tab */
.tour.is-scrolly {
  /* min-height (not padding) so the grid row itself grows and the sticky items can travel in it */
  min-height: calc(100vh - 104px + (var(--steps, 5) - 1) * 40vh);
}

.tour.is-scrolly>.tour-list,
.tour.is-scrolly>.stage {
  position: sticky;
  top: 104px; /* keep in sync with PIN in home.js */
}

/* Short windows (Safari with tab and bookmark bars): keep the whole pinned picture in view.
   1.418 = screenshot width / height (2258 / 1592), 128px = pin offset + bottom margin */
.tour.is-scrolly>.stage {
  width: 100%;
  max-width: calc((100vh - 128px) * 1.418);
}

/* Video frame (Friends): clip the window corners of the recording */
/* The recordings have black outside the window's rounded corners: clip them with the window's own radius */
.film {
  position: relative;
  border-radius: 1.6% / 2.3%;
  overflow: hidden;
  background: var(--paper);
}

.film video {
  width: 100%;
  height: auto;
}

.film-toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(20, 20, 24, .72);
  color: #fff;
  transition: transform .2s var(--ease), background-color .2s;
}

.film-toggle:hover {
  background: rgba(20, 20, 24, .9);
}

.film-toggle:active {
  transform: scale(.94);
}

.film-toggle .i {
  width: 18px;
  height: 18px;
}

/* ---------- Download ---------- */
.get {
  background: var(--blue);
  color: #fff;
  padding-block: clamp(88px, 9vw, 140px);
}

.get .grid {
  align-items: center;
}

.get-copy {
  grid-column: 1 / 7;
}

.get-copy .h2 {
  font-size: clamp(36px, 4.2vw, 64px);
}

.get-copy p {
  margin-top: 20px;
  font-size: clamp(18px, 1.4vw, 21px);
  color: #e8eeff;
  max-width: 30ch;
}

.picker {
  grid-column: 8 / 13;
  background: #fff;
  color: var(--ink);
  border-radius: 26px;
  padding: 28px;
  display: grid;
  gap: 18px;
}

.picker .seg {
  display: grid;
}

.picker .btn {
  justify-content: center;
  width: 100%;
}

.picker-list {
  display: grid;
  gap: 8px;
  font-size: 16px;
}

.picker-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.picker-list .i {
  width: 20px;
  height: 20px;
  color: var(--blue);
  margin-top: 2px;
}

/* ---------- FAQ ---------- */
.faq .grid {
  align-items: start;
}

.faq .h2 {
  grid-column: 1 / 5;
}

.faq-list {
  grid-column: 5 / 13;
  display: grid;
  gap: 8px;
}

.faq details {
  background: var(--white);
  border-radius: 18px;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: color .2s;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .i {
  width: 20px;
  height: 20px;
  color: var(--soft);
  transition: transform .3s var(--ease);
}

.faq details[open] summary .i {
  transform: rotate(45deg);
}

.faq summary:hover {
  color: var(--blue);
}

.faq details p {
  padding: 0 24px 24px;
  font-size: 16px;
  line-height: 1.6;
  max-width: 62ch;
}

/* ---------- Footer ---------- */
.foot {
  background: var(--white);
  padding-block: clamp(56px, 6vw, 88px) calc(clamp(32px, 3vw, 48px) + env(safe-area-inset-bottom));
  font-size: 15px;
}

.foot-brand {
  grid-column: 1 / 5;
}

.foot-brand .brand {
  gap: 10px;
}

.foot-brand .brand img {
  width: 48px;
  height: 48px;
  margin-left: -7px;
}

.foot-brand p {
  margin-top: 16px;
  color: var(--soft);
  max-width: 30ch;
  line-height: 1.5;
}

.foot-cols {
  grid-column: 6 / 13;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.foot-cols .foot-h {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.foot-cols ul {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.foot-cols a {
  color: var(--soft);
  transition: color .2s;
}

.foot-cols a:hover {
  color: var(--ink);
}

.foot-base {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--soft);
  font-size: 14px;
}

.foot-base .foot-legal {
  flex-basis: 100%;
  font-size: 13px;
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 900px) {
  :root {
    --nav-h: 64px;
  }

  /* Phone: copy first, then the window stack below it */
  .hero {
    min-height: 0;
    padding-bottom: 56px;
  }

  .hero-in {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-media {
    margin-right: 0;
  }


  .hero h1 {
    font-size: clamp(34px, 9.2vw, 56px);
  }

  .hero .lede {
    margin-top: 20px;
    font-size: 17px;
  }

  .dl {
    margin-top: 28px;
  }

  .head,
  .split,
  .tour {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .head .h2,
  .head .sec-lede,
  .split-text,
  .split-media,
  .split.rev .split-text,
  .split.rev .split-media,
  .tour-list,
  .tour .stage {
    grid-column: auto;
    grid-row: auto;
  }

  .split {
    gap: 40px;
  }

  .split.rev .split-media {
    order: 2;
  }

  .tour .stage {
    order: -1;
  }

  .facts-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tour-list button {
    padding: 14px 18px;
  }

  .get-copy,
  .picker {
    grid-column: 1 / -1;
  }

  .picker {
    margin-top: 32px;
    padding: 20px;
  }

  .faq .h2 {
    grid-column: 1 / -1;
    margin-bottom: 16px;
  }

  .faq-list {
    grid-column: 1 / -1;
  }

  .faq summary {
    font-size: 17px;
    padding: 14px 18px;
    min-height: 60px;
  }

  .faq details p {
    padding: 0 18px 20px;
  }

  .foot-brand,
  .foot-cols {
    grid-column: 1 / -1;
  }

  .foot-cols {
    margin-top: 32px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }
}