/* The app's own look: white on its blue, falling to night (PageTint in the app). */
:root {
  color-scheme: dark;
  --ink: #fff;
  --soft: rgba(255, 255, 255, 0.74);
  --faint: rgba(255, 255, 255, 0.52);
  --line: rgba(255, 255, 255, 0.14);
  --card: rgba(255, 255, 255, 0.06);
  --accent: #79bbff;
  --pill-ink: #0a1a3a;
  --night: #05060f;
  --gutter: 16px;
  --wide: 68rem;
  --text: 42rem;
}

* { box-sizing: border-box; }

html { background: var(--night); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #0c4ab8 0, #0a2f86 26rem, #16114a 56rem, var(--night) 86rem) no-repeat, var(--night);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }

/* The bar on top: the name, the pages, the languages. */
.top {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { border-radius: 9px; }
.nav, .langs { display: flex; gap: 4px; }
.nav a, .langs a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.95rem;
  text-decoration: none;
}
.langs a { padding: 5px 9px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; }
.nav a:hover, .langs a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
/* The page you are on is the white pill, as the app's day switch draws it. */
.nav a[aria-current], .langs a[aria-current] { color: var(--pill-ink); background: var(--ink); }

main { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter) 72px; }

/* Home */
.hero { padding: 40px 0 0; text-align: center; }
.hero-mark { width: clamp(72px, 12vw, 104px); border-radius: 22%; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.hero h1 { margin: 18px 0 12px; font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1.05; letter-spacing: -0.035em; }
.lede { margin: 0 auto 24px; max-width: 36rem; color: var(--soft); font-size: clamp(1.1rem, 2.4vw, 1.4rem); line-height: 1.45; }
.store { margin: 0 0 40px; }
.store a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--pill-ink);
  background: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.store a:hover { background: var(--soft); }
.shot {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
  gap: 48px 32px;
  margin-top: 80px;
}
.features h2 { margin: 20px 0 6px; font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1.3; }
.features p { margin: 0; color: var(--soft); }
/* The one without a picture fills its row's height, its words in the middle. */
.features .plain {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.features .plain h2 { margin-top: 0; }
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 12px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}
.facts li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-weight: 600; }

/* Privacy, support: a column of text. */
.doc { max-width: var(--text); margin: 0 auto; padding-top: 32px; }
.doc h1 { margin: 0 0 8px; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; letter-spacing: -0.03em; }
.doc h2 { margin: 36px 0 6px; font-size: 1.2rem; letter-spacing: -0.01em; }
.doc p { margin: 0 0 12px; color: var(--soft); }
.doc .lede { margin: 16px 0 8px; max-width: none; color: var(--ink); font-size: 1.2rem; }
.doc .updated { margin: 0 0 8px; color: var(--faint); font-size: 0.95rem; }
.mail {
  display: inline-block;
  margin: 16px 0 12px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--pill-ink);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.mail:hover { background: #e3eeff; }
.doc .see-also { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); }

.bottom {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 28px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.85rem;
}
.bottom nav { display: flex; gap: 18px; margin-bottom: 10px; }
.bottom a { color: var(--soft); text-decoration: none; }
.bottom a:hover { color: var(--ink); }
.bottom p { margin: 4px 0; }

/* A phone: the name and the languages on one line, the pages under them. */
@media (max-width: 640px) {
  .top { padding-top: 14px; }
  .langs { order: 2; }
  .nav { order: 3; width: 100%; margin-left: -12px; }
  .hero { padding-top: 24px; }
  .features { margin-top: 56px; }
  .features .plain { padding: 22px; }
}
