:root {
  --brand: #2a3878;
  --brand-ink: #1f2a5c;
  --brand-soft: #e8ebf7;
  --ink: #1c1c1e;
  --ink-2: #48484a;
  --ink-3: #8e8e93;
  --line: #e5e5ea;
  --bg: #ffffff;
  --bg-2: #f6f7f6;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #7186f0;
    --brand-ink: #aab7ff;
    --brand-soft: #161c3a;
    --ink: #f2f2f7;
    --ink-2: #d1d1d6;
    --ink-3: #98989d;
    --line: #38383a;
    --bg: #000000;
    --bg-2: #0e0f0f;
    --card: #1c1c1e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
a { color: var(--brand); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; }
.logo img { width: 32px; height: 32px; }
.top nav a { color: var(--ink-2); text-decoration: none; margin-left: 20px; font-size: 15px; }
.top nav a:hover { color: var(--ink); }
.top nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }
/* The language menu: no script, a <details> that opens a list. */
.top nav .lang { position: relative; margin-left: 20px; font-size: 15px; }
.top nav .lang summary {
  list-style: none; cursor: pointer; font-weight: 600; color: var(--ink-2);
  padding: 4px 8px; border-radius: 8px;
}
.top nav .lang summary::-webkit-details-marker { display: none; }
.top nav .lang summary::after { content: " ▾"; font-size: 12px; }
.top nav .lang summary:hover, .top nav .lang[open] summary { color: var(--ink); background: var(--brand-soft); }
.top nav .lang ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgb(0 0 0 / .12);
  min-width: 170px;
  /* Two columns: nineteen languages in one would run past the bottom of a laptop window. */
  display: grid; grid-template-columns: repeat(2, max-content); column-gap: 4px;
}
.top nav .lang li a { display: block; margin: 0; padding: 8px 12px; border-radius: 8px; white-space: nowrap; font-size: 15px; }
.top nav .lang li a:hover { background: var(--brand-soft); }
.top nav .nav-cta { color: var(--brand); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--brand); padding: 7px 14px; border-radius: 10px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 56px 72px; }
.eyebrow { color: var(--brand); font-weight: 600; font-size: 15px; letter-spacing: .02em; margin: 0 0 12px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 20px; }
.lead { font-size: 20px; color: var(--ink-2); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-block; background: var(--brand); color: #fff; text-decoration: none;
  padding: 13px 22px; border-radius: 12px; font-weight: 600;
}
.button.ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.note { color: var(--ink-3); font-size: 14px; margin: 14px 0 0; }
/* Google's badges carry their own clear space, top and bottom: the margins line the badge up with a button.
   The English one is newer, with clear space all round, so it's drawn larger to look the same size. */
.store-badge { display: inline-block; line-height: 0; margin: -8px 0; }
.store-badge img { height: 66px; width: auto; }
.store-badge img[src$="/en.png"] { height: 75px; margin: -4px -12px; }
/* Apple's badges have no clear space: drawn at the visible height of Google's. */
.store-badge img[src*="/appstore/"] { height: 52px; margin: 7px 0; }

/* The phone: a search and its answer */
.phone {
  justify-self: center; width: 300px; border-radius: 44px; padding: 14px; background: var(--ink);
  box-shadow: var(--shadow);
}
@media (prefers-color-scheme: dark) { .phone { background: #2c2c2e; } }
.phone img { display: block; width: 100%; height: auto; border-radius: 32px; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-2); }
h2 { font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -.01em; line-height: 1.15; margin: 0 0 12px; }
.sub { color: var(--ink-2); font-size: 19px; margin: 0 0 40px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
section.alt .card { box-shadow: none; }
.card .num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink);
  display: grid; place-items: center; font-weight: 700; margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--ink-2); }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; }
.features h3 { margin: 0 0 6px; font-size: 18px; }
.features p { margin: 0; color: var(--ink-2); }
.quote { font-size: 22px; color: var(--ink-2); font-style: italic; margin: 0 0 32px; max-width: 36em; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer .wrap > div:last-child { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a.org { color: inherit; margin-right: 0; }

/* A document page (privacy) */
.doc { max-width: 700px; margin: 0 auto; padding: 24px 20px 72px; }
.doc h1 { font-size: 34px; margin: 16px 0 4px; letter-spacing: -.01em; hyphens: auto; overflow-wrap: break-word; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc .meta { color: var(--ink-3); margin: 0 0 28px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; hyphens: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }

/* Code in documents (the API guide and reference) */
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; overflow-wrap: anywhere; }
.doc :not(pre) > code { background: var(--bg-2); border-radius: 6px; padding: 1px 5px; }
.doc pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; line-height: 1.45; }
.doc pre code { font-size: 14px; overflow-wrap: normal; }
.doc h3 { font-size: 18px; margin: 28px 0 6px; overflow-wrap: anywhere; }
.doc td .table-wrap { margin: 8px 0 0; }
.doc td td, .doc td th { font-size: 14px; }
.ref-toc ul { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; list-style: none; }
.op, .schema { border-top: 1px solid var(--line); margin-top: 28px; }
.op h3 code { background: none; padding: 0; }
.method { font-size: 13px; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); border-radius: 6px; padding: 2px 7px; margin-right: 4px; }
.access, .req { font-size: 12px; font-weight: 600; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.op-summary { font-weight: 600; color: var(--ink); }
.rules { font-size: 13px; color: var(--ink-3); }
.op td, .schema td { hyphens: manual; }
.op td p, .schema td p { margin: 0 0 6px; }
.op td:first-child, .schema td:first-child { white-space: nowrap; }

/* The contact form (support) */
.contact { display: grid; gap: 16px; margin: 20px 0 8px; }
.contact label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink); }
.contact input, .contact textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; width: 100%;
}
.contact textarea { resize: vertical; }
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.contact .trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.contact .button { justify-self: start; border: 0; font: inherit; font-weight: 600; cursor: pointer; }

/* Features, use cases and their hubs */
.guide { padding-block: 8px 0; }
.guide > .wrap { padding-bottom: 64px; }
.crumbs { font-size: 14px; color: var(--ink-3); margin: 8px 0 18px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.guide h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 16px; }
.guide-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.guide-hero .phone, .guide-hero .art-frame { position: sticky; top: 24px; }
.narrow { max-width: 860px; }
.prose { color: var(--ink-2); }
.prose h2 { font-size: 24px; color: var(--ink); margin: 32px 0 8px; }
.prose p, .prose li { max-width: 40em; }
.lead.prose p { margin: 0 0 32px; }
.art-frame { justify-self: center; width: 100%; max-width: 360px; }
.art { display: block; width: 100%; height: auto; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 56px; }
.steps li { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: start; }
.step-text { padding-top: 48px; }
.steps .phone { width: 260px; border-radius: 38px; padding: 12px; }
.steps .phone img { border-radius: 28px; }
.steps .art-frame { max-width: 260px; }
.step-text h2 { font-size: 24px; margin: 12px 0 8px; }
.step-text p { color: var(--ink-2); margin: 0; }
.step-text .num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink);
  display: grid; place-items: center; font-weight: 700;
}
.updated { font-size: 14px; color: var(--ink-3); margin: -16px 0 24px; }
.faq, .sources { padding: 0; }
.faq { margin-top: 40px; }
.sources { margin-top: 32px; }
.faq h3 { font-size: 18px; color: var(--ink); margin: 24px 0 6px; }
.faq h2 { font-size: 24px; color: var(--ink); margin: 32px 0 8px; }
.faq p { color: var(--ink-2); max-width: 40em; margin: 0 0 8px; }
.table-wrap { overflow-x: auto; margin: 8px 0 32px; }
table.compare { border-collapse: collapse; width: 100%; font-size: 16px; hyphens: auto; overflow-wrap: break-word; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.compare thead th { color: var(--ink); font-size: 15px; }
.compare tbody th { color: var(--ink); font-weight: 600; width: 28%; }
.compare td { color: var(--ink-2); }
.sources ul { padding-left: 20px; color: var(--ink-3); font-size: 14px; overflow-wrap: anywhere; }
.sources a { color: var(--ink-3); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card.link { color: inherit; text-decoration: none; transition: transform .15s ease; }
.card.link:hover { transform: translateY(-2px); }
.card.link h3 { color: var(--brand-ink); }
section.alt .card.link { box-shadow: none; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-block-start: 24px; }
  .grid, .features, .cards { grid-template-columns: 1fr; }
  .guide-hero { grid-template-columns: 1fr; }
  .guide-hero .phone, .guide-hero .art-frame { position: static; }
  /* Under a long guide the picture would come last; the text stands alone. */
  .guide-pic { display: none; }
  .steps li { grid-template-columns: 1fr; gap: 20px; }
  .step-text { padding-top: 0; }
  .steps .phone, .steps .art-frame { justify-self: center; }
  /* A phone has room for the language and the one action. */
  .top nav > a:not(.nav-cta) { display: none; }
  .top nav > a, .top nav .lang { margin-left: 14px; }
}
.features h3 a { color: inherit; text-decoration: none; }
.features h3 a:hover { color: var(--brand); }
.more { margin: 32px 0 0; }

@media (max-width: 480px) {
  .top { gap: 12px; }
  .logo { font-size: 17px; gap: 8px; }
  .logo img { width: 28px; height: 28px; }
  .top nav { flex-wrap: nowrap; }
  .top nav > a, .top nav .lang { margin-left: 12px; font-size: 14px; white-space: nowrap; }
  /* The menu opens under the whole header: anchored to its summary it would run off the left edge. */
  .top { position: relative; }
  .top nav .lang { position: static; }
  .top nav .lang ul { left: 16px; right: 16px; top: calc(100% - 8px); min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top nav .lang li a { white-space: normal; padding: 8px; } /* "Português (Portugal)" keeps to one line */
  /* A long call to action ("Frühen Zugang erhalten") takes two lines, never the page's width. */
  .top nav { min-width: 0; }
  .top nav .nav-cta { padding: 6px 10px; white-space: normal; min-width: 0; text-align: center; line-height: 1.2; }
}
.press-icon { display: flex; gap: 20px; align-items: center; }
.press-icon img { border-radius: 28px; flex: none; }
.press-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0 24px; }
.press-shots img { display: block; width: 100%; height: auto; border-radius: 18px; }
@media (max-width: 480px) {
  .press-shots { grid-template-columns: repeat(2, 1fr); }
  table.compare { font-size: 14px; }
  .compare th, .compare td { padding: 10px 6px; }
}
.platforms { margin: -16px 0 24px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: -8px 0 32px; }
.get p { margin: 0; color: var(--ink-2); }
/* Phones and the iPad three in a row; two phones and a tablet in one; windows one per row. */
.platform-shots { display: grid; gap: 24px; margin: 0 0 40px; align-items: start; }
.platform-shots.portrait { grid-template-columns: repeat(3, 1fr); max-width: 900px; }
.platform-shots.mixed { grid-template-columns: 1fr 1fr 2fr; }
.platform-shots.wide { grid-template-columns: 1fr; max-width: 820px; }
.platform-shots img { display: block; width: 100%; height: auto; border-radius: 18px; }
@media (max-width: 640px) {
  .platform-shots.portrait, .platform-shots.mixed { grid-template-columns: 1fr 1fr; }
  .platform-shots.mixed img.wide { grid-column: 1 / -1; }
}
.works { columns: 3 14em; padding-left: 20px; margin: 0 0 24px; }
.works li { margin: 0 0 6px; break-inside: avoid; }
.works.not a { color: var(--ink-3); }
table.platforms-table { border-collapse: collapse; width: 100%; font-size: 16px; }
.platforms-table th, .platforms-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.platforms-table tbody th, .platforms-table thead th:first-child { text-align: left; font-weight: 600; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.table-title { margin: 56px 0 8px; }
@media (max-width: 1080px) and (min-width: 861px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .cards.four { grid-template-columns: 1fr; } }
/* A narrow desktop keeps the header on one line: use cases and guides stay in the footer. */
@media (max-width: 1100px) { .top nav > a.wide-only { display: none; } }
.platforms-table td { color: var(--ink-2); }
@media (max-width: 480px) {
  .platforms-table th, .platforms-table td { padding: 8px 4px; font-size: 14px; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
