/* This Source Code Form is subject to the terms of the Mozilla Public License,
   v. 2.0. If a copy of the MPL was not distributed with this file, You can
   obtain one at https://mozilla.org/MPL/2.0/. */

/* No framework, no build step, no JavaScript. The app is 1.3 MB; a 40 KB
   marketing bundle to describe it would be an odd thing to ship. */

:root {
  --blue: #629dff;   /* the app icon's blue */
  --mint: #42f1be;   /* and its mint */
  --ink: #14161a;
  --body: #4a5058;
  --line: #e4e7ec;
  --bg: #ffffff;
  --panel: #f6f8fa;
  --radius: 14px;
  --wrap: 940px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f4f7;
    --body: #a8b0ba;
    --line: #262a31;
    --bg: #0d0f12;
    --panel: #14171c;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.3rem); letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); letter-spacing: -.015em; font-weight: 650; }
h3 { font-size: 1.06rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: #1668d6; }
@media (prefers-color-scheme: dark) { a { color: var(--blue); } }

/* ---- header ---- */

header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  z-index: 10;
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  flex-wrap: wrap;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.06rem;
}
.logo img { border-radius: 8px; display: block; }
nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav a { color: var(--body); text-decoration: none; font-size: .95rem; }
nav a:hover { color: var(--ink); }

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

.hero { padding: 76px 0 8px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.lede { font-size: 1.2rem; max-width: 34ch; }
.tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0f7a5f;
  background: rgba(66, 241, 190, .16);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 20px;
}
@media (prefers-color-scheme: dark) { .tag { color: var(--mint); } }

.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #3f86f5, #1f5fd1);
}
.btn-secondary { color: var(--ink); border-color: var(--line); background: var(--panel); }

.shot { width: 100%; height: auto; border-radius: 26px; display: block; }
.shot-frame {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 7px;
  background: var(--panel);
  max-width: 300px;
  margin-inline: auto;
}

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

section { padding: 64px 0; }
section.alt { background: var(--panel); border-block: 1px solid var(--line); }
.section-head { max-width: 56ch; margin-bottom: 36px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px 32px;
}
.feature p { margin: 0; font-size: .97rem; }
.feature h3 { margin-bottom: .35em; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.facts { list-style: none; margin: 0; padding: 0; }
.facts li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: .97rem;
}
.facts li:last-child { border-bottom: 0; }
.facts b { color: var(--ink); font-weight: 600; }

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

footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 46px;
  font-size: .9rem;
}
footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--body); }

/* ---- prose (privacy) ---- */

/* padding-block, not the `padding` shorthand: this class sits on the same
   element as .wrap, and a shorthand here would reset .wrap's horizontal padding
   to zero and run the text into the edge of the screen. */
.prose { max-width: 68ch; padding-block: 56px 72px; }
.prose h2 { margin-top: 1.9em; }
.prose ul { padding-left: 1.15em; }
.prose li { margin-bottom: .45em; }
.prose .updated { font-size: .9rem; color: var(--body); }

@media (max-width: 760px) {
  .hero { padding-top: 48px; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 36px; }
  .lede { max-width: none; }
  section { padding: 48px 0; }
}
