:root {
  color-scheme: light dark;
  --fg: #1d1d1f;
  --muted: #5f6368;
  --bg: #ffffff;
  --panel: #f5f6f8;
  --line: #e2e4e8;
  --accent: #2f5bea;
  --accent-fg: #ffffff;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    sans-serif;
  line-height: 1.55;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #ececf0;
    --muted: #a3a7ae;
    --bg: #131416;
    --panel: #1c1d21;
    --line: #2c2e33;
    --accent: #7b9bff;
    --accent-fg: #0d1020;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
}

a {
  color: var(--accent);
}

.wrap {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header.site {
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  min-height: 3.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

header.site .brand {
  font-weight: 650;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
  margin-inline-end: auto;
}

header.site nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  margin-inline-start: 1.25rem;
}

/* Phones: the brand and the way into the app on the first line, the rest on the second. */
@media (max-width: 720px) {
  header.site .wrap {
    gap: 0.5rem 1rem;
  }

  header.site nav {
    order: 3;
    flex: 1 1 auto;
  }

  header.site nav a {
    margin: 0;
    margin-inline-end: 1rem;
  }

  header.site details.languages {
    order: 4;
  }

  header.site .button {
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }
}

header.site nav a[aria-current="page"] {
  color: var(--fg);
}

.button {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
  text-decoration: none;
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 40rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 2rem;
}

/* The home page's first screen: the pitch and the demo side by side, stacked on narrow screens. */
.hero-split {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0 2.5rem;
}

.hero-split h1 {
  font-size: clamp(1.75rem, 6.5vw, 2.6rem);
}

.hero-split p {
  margin-bottom: 1.5rem;
}

@media (min-width: 960px) {
  .hero-split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 3rem;
    padding: 3.5rem 0 3rem;
  }

  .hero-split h1 {
    font-size: clamp(2rem, 2.8vw, 2.6rem);
  }
}

.demo {
  padding-bottom: 3rem;
}

.demo h2 {
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

.demo-frame {
  position: relative;
}

.demo-toggle {
  position: absolute;
  inset-inline-end: 0.75rem;
  bottom: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgb(17 24 39 / 0.72);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}

.demo-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.demo-video {
  cursor: pointer;
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.12);
  background: var(--panel);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem 1.5rem;
  margin: 1.25rem 0 0;
  padding-inline-start: 1.25rem;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  padding-bottom: 3rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem 1.4rem;
}

.card h2,
.card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

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

.price {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.25rem 0;
}

.price small {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 3rem;
}

th,
td {
  text-align: start;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

main.doc {
  max-width: 46rem;
  padding: 2.5rem 0 4rem;
}

main.doc h2 {
  margin-top: 2.25rem;
  font-size: 1.25rem;
}

.draft {
  border: 1px solid #d9a400;
  background: rgb(217 164 0 / 0.12);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1.5rem 0 2.5rem;
}

footer.site .legal {
  white-space: nowrap;
}

footer.site a {
  color: var(--muted);
  margin-inline-end: 1.25rem;
}

/* The language menu works without a script: a <details> element. */
details.languages {
  position: relative;
}

details.languages summary {
  cursor: pointer;
  color: var(--muted);
  list-style: none;
}

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

details.languages summary::after {
  content: " ▾";
}

details.languages ul {
  position: absolute;
  inset-inline-end: 0;
  z-index: 1;
  min-width: 9rem;
  margin: 0.5rem 0 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.12);
}

details.languages li a {
  display: block;
  padding: 0.4rem 0.9rem;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}

details.languages li a[aria-current="true"] {
  font-weight: 600;
}

.badge {
  display: inline-block;
  margin: 0;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 0.8rem;
  font-weight: 600;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.share {
  margin-bottom: 3rem;
}

.cta {
  padding-bottom: 3rem;
}
