/* ScaenaLabs. One stylesheet, no scripts, no web fonts: the pages are text,
   and they load at once. Light by default, dark where the system asks for it. */

:root {
  --bg: #f6f5f2;
  --ink: #14161a;
  --muted: #555961;
  --faint: #868a92;
  --line: #dbd9d3;
  /* Black and green, like the icons of SonaCue and Wintercom. The green is
     darkened where it is set on the light page. */
  --accent: #17813b;
  --mark-ground: #14161a;
  --mark-line: #49de8c;
  --wrap: 1080px;
  --gutter: 1.5rem;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101114;
    --ink: #f1f0ec;
    --muted: #a6a9b0;
    --faint: #72767e;
    --line: #272a30;
    --accent: #49de8c;
    --mark-ground: #1d2026;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

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

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

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent);
  transition: text-decoration-color 0.15s, color 0.15s;
}

a:hover {
  text-decoration-color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
  text-decoration: none;
  z-index: 10;
}

.skip:focus {
  top: 0.75rem;
}

/* ---- Header ------------------------------------------------------------- */

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand .labs {
  font-weight: 400;
  color: var(--muted);
}

.mark {
  flex: none;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 15px;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.site-header nav .lang {
  padding-left: 1.4rem;
  border-left: 1px solid var(--line);
}

/* ---- Type --------------------------------------------------------------- */

h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 650;
  text-wrap: balance;
}

.lead {
  max-width: 38rem;
  font-size: clamp(1.1rem, 1.7vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
}

.kicker {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.kicker a {
  text-decoration: none;
}

.kicker a::before {
  content: "← ";
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.3rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: opacity 0.15s, border-color 0.15s;
}

.btn:hover {
  opacity: 0.85;
}

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 28%, transparent);
}

.btn-quiet:hover {
  opacity: 1;
  border-color: var(--ink);
}

/* An app's icon. A Mac icon brings its own shape; an iOS icon is a full
   square and gets its corners here. */
.app-icon {
  flex: none;
}

.app-icon[data-square] {
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent);
}

/* ---- Home --------------------------------------------------------------- */

.hero {
  padding-block: clamp(3rem, 9vw, 6.5rem) clamp(3rem, 7vw, 5rem);
}

.hero h1 {
  max-width: 13ch;
}

.hero .lead {
  margin-top: 1.75rem;
}

.products > h2,
.contact > h2 {
  padding-bottom: 1.25rem;
}

.product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1rem 1.5rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
}

.product-text h3 {
  font-size: 1.45rem;
  letter-spacing: -0.028em;
  font-weight: 700;
}

.product-text .tagline {
  color: var(--muted);
}

.product-text .tagline + p {
  margin-top: 0.8rem;
  max-width: 34rem;
}

.product-text .platform {
  margin-top: 0.6rem;
  font-size: 14.5px;
  color: var(--faint);
}

.product-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-size: 15.5px;
  font-weight: 600;
}

.product-links li:first-child a::after {
  content: " →";
}

@media (min-width: 820px) {
  .product {
    grid-template-columns: 72px minmax(0, 1fr) 13rem;
    gap: 2rem;
  }

  .product-links {
    grid-column: auto;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.35rem;
  }
}

.contact {
  margin-top: 1rem;
  padding-block: 3rem 5rem;
  border-top: 1px solid var(--line);
}

.contact p {
  max-width: 38rem;
  font-size: 1.1rem;
}

/* ---- Support pages ------------------------------------------------------ */

.page-head {
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.5rem);
}

.page-head .kicker + h1 {
  margin-top: 0.75rem;
}

.page-head .lead {
  margin-top: 1.25rem;
}

.support-head {
  display: grid;
  gap: 1.5rem 2rem;
}

.support-head .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

@media (min-width: 700px) {
  .support-head {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .support-head .app-icon {
    margin-top: 0.4rem;
  }
}

.topic {
  padding-bottom: 2.5rem;
}

.topic > h2 {
  padding-block: 2rem 1.25rem;
  border-top: 1px solid var(--ink);
}

.qa {
  display: grid;
  gap: 0.6rem 2.5rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 820px) {
  .qa {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

.answer {
  color: var(--muted);
}

.answer b {
  color: var(--ink);
  font-weight: 600;
}

.answer a {
  color: var(--ink);
}

.answer > * + * {
  margin-top: 0.8rem;
}

.answer ul,
.prose ul {
  padding-left: 1.15rem;
  list-style: disc;
}

.answer li + li,
.prose li + li {
  margin-top: 0.4rem;
}

.answer li::marker,
.prose li::marker {
  color: var(--faint);
}

main.support {
  padding-bottom: 3rem;
}

/* ---- Legal texts -------------------------------------------------------- */

.prose {
  padding-bottom: 5rem;
}

.prose .page-head h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  max-width: 18ch;
}

.prose .updated {
  margin-top: 1rem;
  font-size: 15px;
  color: var(--muted);
}

.prose section {
  max-width: 42rem;
}

.prose section + section {
  margin-top: 2.25rem;
}

.prose section h2 {
  font-size: 1.12rem;
  letter-spacing: -0.015em;
  font-weight: 650;
}

.prose section > * + * {
  margin-top: 0.7rem;
}

.prose section p,
.prose section li {
  color: var(--muted);
}

.prose section a {
  color: var(--ink);
}

/* ---- Footer ------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
}

.site-footer .wrap {
  display: grid;
  gap: 1.75rem 3rem;
  padding-block: 2.75rem 2rem;
}

.site-footer .about {
  max-width: 24rem;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.site-footer .copyright {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--faint);
}

@media (min-width: 700px) {
  .site-footer .wrap {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
}

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

  * {
    transition: none !important;
  }
}
