:root {
  --surface: #f7f8fb; --sunken: #eceef5; --ink: #141a33; --muted: #484e64;
  --brand: #24337f; --line: #d8dcea; --fill: #24337f; --on-fill: #ffffff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --surface: #0e1222; --sunken: #090c17; --ink: #e6e9f5; --muted: #a3a8c1; --brand: #a9bff7; --line: #222a45; --fill: #a9bff7; --on-fill: #0e1222; }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--sunken); color: var(--ink);
  font: 1rem/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
header, main, footer { width: 100%; max-width: 55rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
header { padding-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* The app's compact language picker (UiLangPicker, SegmentedControl quiet). */
.langs { font-size: 0.75rem; line-height: 1.5; letter-spacing: 0.12em; }
.langs-wide { display: none; align-items: center; gap: 0.25rem; }
.langs-wide a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; min-width: 2.75rem; padding: 0 0.375rem;
  color: var(--muted); text-decoration: none; white-space: nowrap; text-underline-offset: 6px; }
.langs-wide a:hover { color: var(--ink); }
.langs-wide a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: underline 1px var(--brand); }
.langs .dot { color: var(--muted); }
.langs-phone { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; border-radius: 0.125rem; }
.langs-phone .code { padding: 0 0.375rem; color: var(--ink); font-weight: 600; text-decoration: underline 1px var(--brand); text-underline-offset: 6px; }
.langs-phone select { position: absolute; inset: 0; width: 100%; opacity: 0; appearance: none; font: inherit; cursor: pointer; }
.langs-phone:has(select:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (width >= 48rem) {
  .langs-phone { display: none; }
  .langs-wide { display: flex; }
}
.home { display: inline-flex; align-items: center; min-height: 2.75rem; border-radius: 0.375rem; }
.lockup { display: block; height: 1.7rem; width: auto; }
.lockup .mark { fill: var(--brand); }
.lockup .word { fill: var(--ink); }
main { flex: 1; padding-top: 2rem; padding-bottom: 3rem; }
main.soon { display: flex; flex-direction: column; justify-content: center; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 2rem 1.5rem; max-width: 34rem; }
.card p + p, .card form + p { margin-top: 1rem; }
h1 { font-weight: 700; font-size: 2rem; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.75rem; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 2rem 0 0.5rem; }
/* Russian, Ukrainian and Estonian headings hold words longer than a phone is
   wide at 200% text: hyphenate where the browser can, break where it cannot. */
h1, h2 { hyphens: auto; overflow-wrap: anywhere; }
body { overflow-wrap: break-word; }
p, ul { margin: 0 0 0.75rem; max-width: min(40rem, 70ch); }
.card p { color: var(--muted); margin: 0; }
.updated { color: var(--muted); font-size: 0.875rem; }
.lines { white-space: pre-line; }
a { color: var(--brand); }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.table { overflow-x: auto; max-width: min(40rem, 100%); margin-bottom: 0.75rem; }
table { border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--line); }
.waitlist { margin-top: 1.5rem; }
.waitlist label { display: block; font-weight: 600; margin-bottom: 0.375rem; }
.field { display: flex; flex-wrap: wrap; gap: 0.5rem; }
input[type='email'] { flex: 1 1 14rem; min-width: 0; min-height: 2.75rem; padding: 0 0.875rem; font: inherit; color: var(--ink);
  background: var(--sunken); border: 1px solid var(--muted); border-radius: 0.75rem; }
button, a.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 1.25rem;
  border: 0; border-radius: 0.75rem; background: var(--fill); color: var(--on-fill); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
button, a.button { max-width: 100%; text-align: center; overflow-wrap: anywhere; }
a.button { margin-top: 1.5rem; }
a.back { display: inline-flex; align-items: center; min-height: 2.75rem; margin-bottom: 0.5rem; font-weight: 600; text-decoration: none; }
a.back:hover { text-decoration: underline; }
input:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.card p.note { font-size: 0.875rem; margin-top: 0.5rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
footer { border-top: 1px solid var(--line); padding-top: 1rem; padding-bottom: 2rem; color: var(--muted); font-size: 0.875rem; }
footer p { margin: 0 0 0.25rem; }
footer a { display: inline-block; min-height: 2.75rem; line-height: 2.75rem; }
