/* 41Slop shared identity: fonts, tokens and the parts every page uses
   (header, footer, buttons, store badges, product rows). Linked by the
   homepage, product pages and company/legal documents. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-ext-standard-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: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-standard-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;
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/ibm-plex-mono-latin-ext-500-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/ibm-plex-mono-latin-500-normal.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;
}

:root {
  --paper: #f2f0eb;
  --paper-2: #e7e4dc;
  --ink: #121211;
  --ink-2: #393835;
  --muted: #64615b;
  --hair: #d3cfc6;
  --blue: #2b36f5;
  --blue-deep: #1c25c4;
  --night: #121214;
  --night-2: #1d1d20;
  --night-text: #f2f0eb;
  --night-muted: #a3a09a;
  --night-hair: #34343a;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 3.6vw, 48px);
  --max: 1440px;

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img,
video {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

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

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

h1,
h2,
h3 {
  font-weight: 800;
  text-wrap: balance;
}

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

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.mono,
.label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0;
}

/* Wordmark */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-weight: 850;
  font-stretch: 72%;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.wordmark b {
  font-weight: inherit;
  color: var(--blue);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 68px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--ink);
  color: var(--paper);
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.lang-link:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Buttons and links */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1.5px solid var(--ink);
  background: transparent;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.button:hover {
  background: var(--ink);
  color: var(--paper);
}

.button--solid {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.button--solid:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.text-link svg {
  width: 16px;
  height: 16px;
}

.text-link:hover {
  color: var(--blue);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}

/* Official store artwork, never recoloured. */
.store-badge {
  display: inline-flex;
  flex: none;
  transition: opacity 0.15s ease;
}

.store-badge img {
  width: auto;
  max-width: none;
  height: 48px;
}

/* The two Google Play files have different transparent padding. */
.store-badge--google-play-tr {
  margin: -7.25px 0;
}

.store-badge--google-play-tr img {
  height: 62.5px;
}

.store-badge--google-play-en {
  margin: -11.7px;
}

.store-badge--google-play-en img {
  height: 71.4px;
}

.store-badge:hover {
  opacity: 0.8;
}

/* Section heading bar shared by home and product pages */
.bar {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding-top: 14px;
  border-top: 2px solid currentColor;
}

.bar-end {
  justify-self: end;
}

/* 3D doodles: placeholders that the shared doodle layer draws into.
   They sit on top of section rules; the canvas itself is click-through. */
.bar,
.footer-floor {
  position: relative;
}

.doodle {
  position: absolute;
  bottom: calc(100% + 2px);
  width: 150px;
  height: 180px;
  transform: translateX(-50%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.doodle--sm {
  width: 100px;
  height: 120px;
}

.doodle--lg {
  width: 210px;
  height: 252px;
}

.doodle--floor {
  bottom: 0;
}

.doodle-layer {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 3;
  pointer-events: none;
}

.bar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.bar .text-link {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
}

.bar .text-link:hover {
  text-decoration: underline;
}

/* Product rows: the directory table on home and product pages */
.rows {
  border-top: 1px solid currentColor;
}

.row {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(180px, 1.1fr) minmax(0, 2fr) 150px 28px;
  align-items: center;
  gap: 20px;
  padding: 16px 12px 16px 0;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease, padding 0.2s ease;
}

.row:hover,
.row:focus-visible {
  background: var(--blue);
  color: #fff;
  padding-left: 12px;
  outline: none;
}

.row-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 14px;
}

.row-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row-name {
  font-size: 22px;
  font-weight: 750;
  font-stretch: 88%;
  line-height: 1.1;
}

.row-text {
  font-size: 15.5px;
  line-height: 1.45;
  opacity: 0.82;
}

.row-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
}

.row-meta em {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 6px;
  background: var(--ink);
  color: var(--paper);
  font-style: normal;
}

.row:hover .row-meta em {
  background: #fff;
  color: var(--blue);
}

.row-arrow {
  width: 24px;
  height: 24px;
  justify-self: end;
  transition: transform 0.2s ease;
}

.row:hover .row-arrow {
  transform: translateX(4px);
}

/* Shared type and blocks */
.block {
  padding-top: clamp(72px, 10vw, 140px);
}

.bar + * {
  margin-top: clamp(28px, 4vw, 48px);
}

.display {
  font-size: clamp(52px, 8.2vw, 132px);
  font-weight: 850;
  font-stretch: 70%;
  line-height: 0.88;
  letter-spacing: -0.012em;
}

.section-title {
  font-size: clamp(36px, 4.8vw, 72px);
  font-weight: 800;
  font-stretch: 76%;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.tagline {
  margin-top: 20px;
  max-width: 30ch;
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 650;
  line-height: 1.25;
}

.body-text {
  margin-top: 14px;
  max-width: 56ch;
  color: var(--ink-2);
}

.facts-inline {
  display: flex;
  flex-wrap: wrap;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}

.facts-inline li + li::before {
  content: "/";
  margin: 0 10px;
  opacity: 0.45;
}

.numbered {
  margin-top: 24px;
  counter-reset: item;
  border-top: 1px solid currentColor;
}

.numbered li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--row-line, var(--hair));
  counter-increment: item;
  font-weight: 550;
}

.numbered li::before {
  content: counter(item, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  padding-top: 3px;
  opacity: 0.6;
}

.actions {
  margin-top: 28px;
}

.actions + .actions {
  margin-top: 16px;
}

.small-link {
  margin-top: 22px;
  font-size: 15px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.link-list {
  border-top: 1px solid var(--ink);
}

.link-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 24px;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease, padding 0.2s ease;
}

.link-list strong {
  font-size: 21px;
  font-weight: 700;
  font-stretch: 88%;
  line-height: 1.15;
}

.link-list span {
  color: var(--muted);
  font-size: 15.5px;
  overflow-wrap: anywhere;
}

.link-list svg {
  justify-self: end;
  width: 22px;
  height: 22px;
}

.link-list a:hover {
  background: var(--blue);
  color: #fff;
  padding-left: 12px;
  padding-right: 12px;
}

.link-list a:hover span {
  color: inherit;
}

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid var(--ink);
}

.faq-list summary {
  position: relative;
  padding: 20px 48px 20px 0;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

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

.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.faq-list summary::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary::after {
  transform: rotate(0deg);
}

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

.faq-list details p {
  max-width: 64ch;
  padding-bottom: 22px;
  color: var(--ink-2);
}

/* Dark band */
.band {
  --row-line: var(--night-hair);
  margin-top: clamp(72px, 10vw, 140px);
  padding: clamp(56px, 8vw, 112px) 0;
  background: var(--night);
  color: var(--night-text);
}

.band .body-text {
  color: var(--night-muted);
}

.band .button {
  border-color: var(--night-text);
}

.band .button:hover {
  background: var(--night-text);
  color: var(--ink);
}

.band .button--solid {
  border-color: var(--blue);
}

.band .rows,
.band .row {
  border-color: var(--night-hair);
}

.band .row-icon {
  background: var(--night-2);
}

.band .row-meta em {
  background: var(--night-text);
  color: var(--ink);
}

/* Footer */
.site-footer {
  margin-top: clamp(80px, 12vw, 160px);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 48px;
}

.footer-top p {
  max-width: 34ch;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 500;
}

.footer-col h2 {
  margin-bottom: 14px;
  color: var(--night-muted);
}

.footer-col li + li {
  margin-top: 6px;
}

.footer-col a {
  text-decoration: none;
  font-weight: 500;
}

.footer-col a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-mark {
  display: block;
  padding-top: 20px;
  padding-bottom: 0.28em;
  font-size: clamp(64px, 10vw, 152px);
  font-weight: 900;
  font-stretch: 62%;
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: var(--blue);
  white-space: nowrap;
  user-select: none;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--night-hair);
  color: var(--night-muted);
  font-size: 14px;
}

@media (max-width: 1024px) {
  .row {
    grid-template-columns: 52px minmax(0, 1fr) 120px 28px;
  }

  .row-text {
    grid-column: 2 / 4;
    grid-row: 2;
    margin-top: -8px;
  }

  .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-top > p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-header .wrap {
    flex-wrap: wrap;
    gap: 0 16px;
    padding-top: 12px;
  }

  .site-header .lang-link {
    margin-left: auto;
  }

  .site-nav {
    order: 3;
    width: calc(100% + var(--gutter) * 2);
    margin: 12px calc(var(--gutter) * -1) 0;
    padding: 0 calc(var(--gutter) - 12px);
    border-top: 1px solid var(--hair);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    padding: 12px;
    white-space: nowrap;
    font-size: 14.5px;
  }

  .bar {
    grid-template-columns: 40px 1fr;
  }

  .bar-end {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .doodle {
    width: 100px;
    height: 120px;
  }

  /* Narrow bars keep one character each. */
  .doodle--sm {
    display: none;
  }

  .doodle--lg {
    width: 130px;
    height: 156px;
  }

  .row {
    grid-template-columns: 44px minmax(0, 1fr) 24px;
    gap: 6px 14px;
    padding: 14px 4px 14px 0;
  }

  .row:hover,
  .row:focus-visible {
    padding-left: 4px;
  }

  .row-icon {
    width: 40px;
    height: 40px;
    grid-row: 1 / 3;
    align-self: start;
  }

  .row-name {
    font-size: 19px;
  }

  .row-text {
    grid-column: 2 / 4;
    grid-row: 2;
    margin-top: 0;
    font-size: 14.5px;
  }

  .row-meta {
    grid-column: 2 / 4;
    grid-row: 3;
  }

  .row-arrow {
    grid-column: 3;
    grid-row: 1;
    width: 20px;
    height: 20px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    padding-top: 40px;
  }

  .footer-top p {
    font-size: 18px;
  }

  .footer-legal {
    flex-direction: column;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .link-list a {
    grid-template-columns: minmax(0, 1fr) 22px;
    gap: 4px 12px;
  }

  .link-list span {
    grid-row: 2;
  }

  .link-list svg {
    grid-column: 2;
    grid-row: 1;
  }

  .faq-list summary {
    font-size: 18px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
