/* GeniusClip download page. Dark like the app ("Studio": graphite surfaces,
   one violet accent, Onest), without decoration: no gradients or glows. */

/* Onest (OFL), the app's font. */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/onest-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/onest-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/onest-latin-ext-wght-normal.woff2) format('woff2-variations');
  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;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/onest-latin-wght-normal.woff2) format('woff2-variations');
  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;
}
/* JetBrains Mono (OFL), the app's key caps: ASCII only, one weight. */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/jetbrains-mono-ascii-500.woff2) format('woff2');
  unicode-range: U+0020-007E;
}

:root {
  color-scheme: dark;
  --bg: #141417;
  --panel: #1b1b20;
  --hover: #24242b;
  --line: #2a2a31;
  --line-2: #36363e;
  --text: #ececf1;
  --text-2: #9a9aa6;
  --text-3: #868692;
  --accent: #8b78ff;
  --accent-hover: #9d8dff;
  --accent-ink: #120b24;
  --link: #b3a6ff;
  --r: 10px;
  --r-lg: 14px;
  --font: 'Onest', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Cascadia Mono', Consolas, ui-monospace, monospace;
}
/* Chinese, Japanese and Korean: the system UI font for that script. */
:root:lang(zh-CN) {
  --font: 'Onest', 'Microsoft YaHei UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}
:root:lang(ja) {
  --font: 'Onest', 'Yu Gothic UI', 'Hiragino Sans', 'Meiryo UI', 'Meiryo', sans-serif;
}
:root:lang(ko) {
  --font: 'Onest', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
}

/* Non-English visitors: held for the moment it takes to load their
   language (see the script in <head>), instead of a flash of English. */
.i18n-wait body {
  visibility: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  scroll-padding-top: 16px;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
/* No page scrolling behind the screenshot viewer. */
html.lb-open {
  overflow: hidden;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: color-mix(in srgb, var(--accent) 40%, transparent);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  font: inherit;
  color: inherit;
}
svg {
  flex: none;
}
a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color 0.15s;
}
a:hover {
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Key caps, as in the app. */
kbd {
  display: inline-block;
  padding: 0 0.4em;
  font-family: var(--mono);
  font-size: 0.8em;
  font-weight: 500;
  line-height: 1.6;
  color: #c9c9d2;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  white-space: nowrap;
}
.keys {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  margin: 0 0.1em;
  white-space: nowrap;
}
.keys-plus {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: 1128px; /* 1080 of content + gutters */
  margin: 0 auto;
  padding: 0 24px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r);
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn-main {
  height: 48px;
  padding: 0 22px 0 18px;
  font-size: 16px;
  font-weight: 600;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
}
.btn-main svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-main:hover {
  background: var(--accent-hover);
}
.btn-main:active {
  transform: translateY(1px);
}
.btn-quiet {
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-2);
}
.btn-quiet:hover {
  background: var(--hover);
}
.btn-icon {
  width: 36px;
  padding: 0;
}
.btn-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------------------------------------------- top bar */

.top {
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: 'brand nav tools';
  align-items: center;
  column-gap: 32px;
  min-height: 64px;
}
.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 15px;
}
.nav a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
}
.nav a:hover {
  color: var(--text);
}
.tools {
  grid-area: tools;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gh .gh-mark {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.stars {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 2px;
  padding-left: 10px;
  border-left: 1px solid var(--line-2);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.stars[hidden] {
  display: none;
}
.stars svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Language switcher */
.lang {
  position: relative;
}
.lang-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.lang-btn[aria-expanded='true'] {
  background: var(--hover);
}
.lang-code {
  display: none;
}
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  width: 220px;
  max-height: min(480px, 70vh);
  overflow: auto;
  margin: 0;
  padding: 5px;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: 0 16px 40px -16px rgb(0 0 0 / 0.8);
}
.lang-menu li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 14.5px;
  color: var(--text-2);
  cursor: pointer;
}
.lang-menu li:hover,
.lang-menu li:focus-visible {
  background: var(--hover);
  color: var(--text);
  outline: none;
}
.lang-menu li[aria-selected='true'] {
  color: var(--text);
  font-weight: 550;
}
.lang-menu li[aria-selected='true']::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) translate(1px, -2px);
}

/* ---------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 64px;
}
h1,
h2 {
  font-weight: 650;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(30px, 1.1vw + 25px, 40px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
h1 span {
  display: block;
}
h1 .muted {
  color: var(--text-2);
}
.lead {
  margin: 22px 0 0;
  max-width: 34em;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--text-2);
}
.cta {
  margin: 30px 0 0;
}

/* "·"-separated lists (facts under the button, footer links). Every item
   carries its separator in front; the ones that land at the start of a line
   fall outside the clipping box, so a wrapped line never starts with a dot.
   The 6px of padding keeps focus outlines visible. */
.dots {
  --sep: 1.3em;
  overflow: hidden;
  margin-left: -6px;
  margin-right: -6px;
  padding: 4px 6px;
}
.dots > * {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 0 0 0 calc(-1 * var(--sep));
}
.dots > * > * {
  padding-left: var(--sep);
}
.dots > * > [hidden] {
  display: none;
}
.dots > * > *::before {
  content: '·';
  display: inline-block;
  width: var(--sep);
  margin-left: calc(-1 * var(--sep));
  text-align: center;
  color: var(--text-3);
}
.meta {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-3);
}
.mobile-note {
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  font-size: 15px;
  color: var(--text-2);
}
.mobile-note p {
  margin: 0 0 12px;
}

/* Screenshot frames */
.frame {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: #0f0f11;
  box-shadow: 0 18px 40px -24px rgb(0 0 0 / 0.9);
}
a.frame {
  cursor: zoom-in;
  transition: border-color 0.15s;
}
a.frame:hover {
  border-color: #4a4a54;
}
a.frame:focus-visible {
  border-radius: var(--r-lg);
}
.frame img {
  width: 100%;
  aspect-ratio: 1200 / 780;
  object-fit: cover;
}
/* The hero picture gets its language's file from app.js; without JS the
   <noscript> copy shows instead. */
.frame img:not([src]) {
  display: none;
}

/* ------------------------------------------------------------ sections */

.section {
  padding-top: 40px;
  padding-bottom: 48px;
}
.section > h2 {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: clamp(24px, 2.4vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

/* Features: a plain two-column list. */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.features li {
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--line);
}
.features p {
  margin: 4px 0 0;
  max-width: 36em;
  color: var(--text-2);
}

/* Screenshots */
.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.shots figure {
  margin: 0;
}
figcaption {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}
figcaption b {
  display: block;
  color: var(--text);
  font-weight: 600;
}

/* Open source: label / text rows in a panel, like the app's settings. */
.facts {
  margin: 0;
  padding: 0 20px;
}
.facts > div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 4px 28px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.facts > div:last-child {
  border-bottom: 0;
}
.facts dt {
  font-weight: 600;
}
.facts dd {
  margin: 0;
  max-width: 46em;
  color: var(--text-2);
}

/* Changelog */
.releases {
  margin: 0;
  padding: 0;
  list-style: none;
}
.releases > li {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 4px 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.releases > li:first-child {
  padding-top: 0;
}
.releases > li.rel-empty {
  display: block;
  color: var(--text-3);
}
.rel-head {
  display: flex;
  flex-direction: column;
}
.rel-version {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
}
.rel-version a {
  color: var(--text);
}
.rel-date {
  font-size: 14px;
  color: var(--text-3);
}
.rel-notes {
  color: var(--text-2);
  max-width: 46em;
}
.rel-notes p {
  margin: 0 0 6px;
}
.rel-notes ul {
  margin: 0 0 6px;
  padding-left: 1.2em;
}
.rel-notes li {
  margin: 3px 0;
}
.rel-notes li::marker {
  color: var(--text-3);
}
.more {
  margin: 20px 0 0;
}

/* FAQ: a panel of rows. */
.faq {
  max-width: 820px;
  padding: 0 20px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 0;
}
.faq summary {
  position: relative;
  padding: 15px 36px 15px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 1.6px solid var(--text-2);
  border-bottom: 1.6px solid var(--text-2);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  margin-top: -2px;
  transform: rotate(225deg);
}
.faq summary:hover {
  color: var(--text-2);
}
.faq summary:focus-visible {
  outline-offset: 0;
}
.faq details p {
  margin: -4px 0 18px;
  max-width: 44em;
  color: var(--text-2);
}

/* -------------------------------------------------------------- footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 28px;
  padding-bottom: 44px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-3);
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-2);
  font-weight: 600;
}
.foot a {
  color: var(--text-2);
}

/* ----------------------------------------------------- screenshot viewer */

.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}
.lightbox::backdrop {
  background: #0e0e11;
}
.lb {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  height: 100%;
  padding: 14px 24px 20px;
}
.lb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lb-count {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
}
.lb-stage {
  position: relative;
  min-height: 0;
}
/* Centred and scaled down to fit whatever room the bars leave. */
.lb-img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: min(1400px, 100%);
  max-height: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: #0f0f11;
}
.lb-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}
.lb-caption {
  margin: 0;
  max-width: 48em;
  font-size: 15px;
  color: var(--text-2);
}
.lb-caption b {
  color: var(--text);
  font-weight: 600;
  margin-right: 0.3em;
}
.lb-nav {
  display: flex;
  gap: 8px;
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] {
    animation: lb-in 0.16s ease-out;
  }
  @keyframes lb-in {
    from {
      opacity: 0;
    }
  }
}

/* ---------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .top-in {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      'brand tools'
      'nav nav';
    row-gap: 2px;
    padding-top: 12px;
    padding-bottom: 10px;
  }
  .tools {
    justify-self: end;
  }
  .nav {
    column-gap: 18px;
    font-size: 14.5px;
  }
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 44px;
    padding-bottom: 56px;
  }
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
  .shots {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .facts > div,
  .releases > li {
    grid-template-columns: minmax(0, 1fr);
  }
  .section {
    padding-top: 36px;
    padding-bottom: 44px;
  }
}
@media (max-width: 600px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .top-dl {
    display: none;
  }
  .gh-label {
    display: none;
  }
  .stars {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
  .lang-name {
    display: none;
  }
  .lang-code {
    display: inline;
  }
  .lead {
    font-size: 16.5px;
  }
  .btn-main {
    width: 100%;
  }
  .facts,
  .faq {
    padding: 0 16px;
  }
  .lb {
    padding: 10px 12px 16px;
  }
  .lb-img {
    border-radius: var(--r);
  }
}

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