@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #ffffff;
  --ink: #0b0f19;
  --text-2: #4a5263;
  --muted: #6b7280;
  --line: #e8ebf0;
  --tint: #f4f6fa;
  --blue: #1a6bff;
  --blue-hover: #0f5ae6;
  --bubble-gray: #e9e9eb;
  --code-bg: #0b0f19;
  --code-text: #e6e9ef;
  --code-dim: #8b93a3;
  --code-string: #93c3ff;
  --code-keyword: #ffab91;
  --code-number: #cdb1ff;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: 0; }
h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1.05; }
h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.12; }
h3 { font-size: 18px; line-height: 1.35; }
code, pre { font-family: var(--mono); }
:not(pre) > code { font-size: 0.86em; color: var(--ink); background: var(--tint); border-radius: 5px; padding: 0.12em 0.38em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.hidden { display: none !important; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  font: 500 15.5px/1 var(--sans); padding: 13px 18px; border: 0; border-radius: 10px;
  background: var(--blue); color: #fff; cursor: pointer; text-decoration: none;
  box-shadow: 0 1px 2px rgba(11, 15, 25, 0.12);
}
.btn:hover { background: var(--blue-hover); text-decoration: none; }
.btn:disabled { background: var(--muted); cursor: default; }
.btn.sm { padding: 9px 14px; font-size: 14.5px; }
.btn.quiet { background: var(--tint); color: var(--ink); box-shadow: none; }
.btn.quiet:hover { background: var(--line); }
.go { font-weight: 500; color: var(--ink); }
.go::after { content: " →"; color: var(--muted); }
.go:hover { color: var(--blue); text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }

/* Wordmark: the dot on the i is an outgoing bubble. */
.logo { display: inline-flex; align-items: baseline; color: var(--ink); font: 600 22px/1 var(--sans); }
.logo:hover { text-decoration: none; color: var(--ink); }
.logo .i { position: relative; display: inline-block; }
.logo .i svg { position: absolute; left: 50%; top: 0.04em; width: 0.44em; max-width: none; transform: translateX(-46%); }

/* Header and footer */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a:not(.btn) { color: var(--text-2); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }
@media (max-width: 760px) { .nav .wide { display: none; } .nav { gap: 18px; } }
@media (max-width: 400px) { .nav .narrow-hide { display: none; } }
.site-footer { margin-top: clamp(72px, 9vw, 128px); padding: 56px 0 40px; background: var(--tint); font-size: 14.5px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.site-footer h2 { font-size: 14.5px; font-weight: 600; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: var(--text-2); }
.site-footer li a:hover { color: var(--ink); text-decoration: none; }
.site-footer .about p { color: var(--text-2); max-width: 24em; margin-top: 14px; }
.site-footer .legal { grid-column: 1 / -1; color: var(--muted); font-size: 13px; padding-top: 28px; margin: 0; }

/* Hero */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero .lede { font-size: clamp(17.5px, 1.4vw, 19.5px); color: var(--text-2); max-width: 31em; margin: 22px 0 0; }
.install { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; font: 400 14.5px/1 var(--mono); color: var(--muted); }
.install code { background: none; padding: 0; font-size: 14.5px; color: var(--ink); }
.install button { font: 500 13px/1 var(--sans); color: var(--muted); background: none; border: 0; cursor: pointer; padding: 4px; }
.install button:hover { color: var(--ink); }
.facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14.5px; color: var(--text-2); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 16px; height: 16px; color: var(--blue); flex: none; }

/* The phone: a Messages thread as the app sees it. */
.stage { position: relative; display: flex; justify-content: center; padding: 0 0 24px 40px; }
.phone { position: relative; flex: none; width: 300px; padding: 10px; border-radius: 50px; background: #0b0f19; box-shadow: 0 50px 90px -40px rgba(11, 15, 25, 0.45), 0 18px 40px -24px rgba(11, 15, 25, 0.3); }
.screen { position: relative; height: 610px; border-radius: 41px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.island { position: absolute; top: 11px; left: 50%; width: 92px; height: 27px; margin-left: -46px; border-radius: 20px; background: #0b0f19; }
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 26px 0 30px; height: 46px; font: 600 14.5px/1 var(--sans); }
.statusbar svg { width: 64px; height: 12px; }
.chat-head { display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; padding: 6px 14px 10px; border-bottom: 1px solid #f0f1f4; }
.chat-head .back { color: var(--blue); width: 12px; height: 20px; }
.chat-head .who { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink); }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #a9b0bd; color: #fff; font: 500 17px/1 var(--sans); }
.chat { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 12px 12px 8px; }
.chat .when { text-align: center; font-size: 11px; color: var(--muted); margin: 2px 0 8px; }
.bubble { max-width: 78%; width: fit-content; margin: 0; padding: 7px 12px; border-radius: 18px; font-size: 15px; line-height: 1.32; }
.bubble.in { background: var(--bubble-gray); color: var(--ink); border-bottom-left-radius: 5px; align-self: flex-start; }
.bubble.out { background: var(--blue); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.bubble.in + .bubble.out, .bubble.out + .bubble.in { margin-top: 6px; }
.compose { display: flex; align-items: center; gap: 8px; padding: 8px 12px 26px; }
.compose .plus { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bubble-gray); color: var(--muted); font-size: 20px; line-height: 1; }
.compose .field { flex: 1; border: 1px solid #dcdfe5; border-radius: 18px; padding: 6px 12px; font-size: 14px; color: var(--muted); }
.code.hero-code { position: absolute; left: 0; bottom: 0; width: min(360px, 92%); margin: 0; z-index: 2; box-shadow: 0 30px 60px -30px rgba(11, 15, 25, 0.5); }
.hero-code pre { padding: 16px 18px; font-size: 12.8px; white-space: pre-wrap; }

/* Sections */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section.tint { background: var(--tint); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head p { color: var(--text-2); font-size: 18px; margin-top: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split .text p { color: var(--text-2); max-width: 31em; margin-top: 14px; }
.plain { list-style: none; padding: 0; margin: 22px 0 0; }
.plain li { padding: 7px 0 7px 26px; position: relative; color: var(--text-2); }
.plain li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.plain li strong { color: var(--ink); font-weight: 600; }

/* Three moments of signing up, each with its own small picture */
.moments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.moment .pic { display: flex; align-items: center; justify-content: center; height: 150px; border-radius: 14px; background: var(--tint); margin-bottom: 18px; padding: 0 20px; }
.moment .pic .bubble { font-size: 16px; align-self: center; }
.moment .pic code { background: #fff; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; box-shadow: 0 1px 2px rgba(11, 15, 25, 0.08); }
.moment h3 { margin-bottom: 6px; }
.moment p { color: var(--text-2); margin: 0; }

/* A smaller phone for the opt-in story */
.phone.mini { width: 270px; }
.phone.mini .screen { height: 470px; }

/* Tools */
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.tools h3 { margin-bottom: 4px; }
.tools p { color: var(--text-2); margin-bottom: 12px; }

/* Pricing and questions */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plans > div { background: var(--tint); border-radius: 16px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; }
.plans .price { font-size: 44px; font-weight: 600; line-height: 1; margin: 16px 0 12px; color: var(--ink); }
.plans .price span { font-size: 15.5px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.plans .price.later { color: var(--muted); }
.plans p { color: var(--text-2); }
.plans .actions { margin-top: auto; padding-top: 24px; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.faq h3 { margin-bottom: 8px; }
.faq p { color: var(--text-2); margin: 0; }
.closing { padding: clamp(56px, 7vw, 96px) 0 0; }
.closing h2 { font-size: clamp(30px, 3.6vw, 44px); max-width: 16em; }

/* Code */
.code { position: relative; background: var(--code-bg); color: var(--code-text); border-radius: 12px; margin: 0 0 16px; }
.code pre { margin: 0; padding: 20px 22px; overflow-x: auto; font-size: 13.5px; line-height: 1.7; tab-size: 2; }
.code-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px 0 22px; }
.code-bar ~ .panel pre { padding-top: 12px; }
.code .copy { margin-left: auto; font: 500 12.5px/1 var(--sans); color: var(--code-dim); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.code .copy:hover { color: var(--code-text); }
.code > .copy { position: absolute; top: 14px; right: 16px; }
.tabs { display: flex; gap: 18px; }
.tabs label { font: 500 13.5px/1 var(--sans); color: var(--code-dim); cursor: pointer; padding: 4px 0; }
.tabs label:hover { color: var(--code-text); }
.tabset > input { position: absolute; opacity: 0; pointer-events: none; }
.tabset .panel { display: none; }
.tabset > input:nth-of-type(1):checked ~ .code .panel:nth-of-type(1),
.tabset > input:nth-of-type(2):checked ~ .code .panel:nth-of-type(2),
.tabset > input:nth-of-type(3):checked ~ .code .panel:nth-of-type(3) { display: block; }
.tabset > input:nth-of-type(1):checked ~ .code .tabs label:nth-of-type(1),
.tabset > input:nth-of-type(2):checked ~ .code .tabs label:nth-of-type(2),
.tabset > input:nth-of-type(3):checked ~ .code .tabs label:nth-of-type(3) { color: #fff; }
.tabset > input:focus-visible ~ .code .tabs { outline: 2px solid var(--blue); outline-offset: 4px; }
.tok-s { color: var(--code-string); }
.tok-k { color: var(--code-keyword); }
.tok-c { color: var(--code-dim); }
.tok-n { color: var(--code-number); }

/* Docs, guides and legal pages */
.page-head { padding: clamp(36px, 5vw, 72px) 0 clamp(24px, 3vw, 36px); }
.page-head .lede { font-size: 18.5px; color: var(--text-2); max-width: 36em; margin-top: 16px; }
.prose { font-size: 17px; line-height: 1.72; }
.prose h2 { font-size: clamp(25px, 2.5vw, 30px); margin: 2em 0 0.55em; }
.prose h3 { font-size: 20px; margin: 1.7em 0 0.5em; }
.prose p, .prose li { color: #2b3140; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose .code { margin: 1.3em 0 1.6em; }
.prose strong { font-weight: 600; }
.note { background: #edf3ff; padding: 14px 18px; border-radius: 10px; margin: 1.3em 0; color: var(--ink); }
.docs { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.docs-nav { position: sticky; top: 24px; font-size: 14.5px; }
.docs-nav ul { list-style: none; padding: 0; margin: 0 0 24px; }
.docs-nav li { margin-bottom: 9px; }
.docs-nav a { color: var(--text-2); }
.docs-nav a:hover { color: var(--ink); text-decoration: none; }
.endpoint { margin-top: 48px; }
.endpoint h3 { font: 500 16.5px/1.4 var(--mono); overflow-wrap: anywhere; }
.endpoint h3 b { color: var(--blue); font-weight: 500; margin-right: 8px; }
.table-wrap { overflow-x: auto; }
table.ref { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0.8em 0 1.6em; }
table.ref th { text-align: left; font-weight: 600; padding: 0 16px 8px 0; }
table.ref td { padding: 9px 16px 9px 0; vertical-align: top; color: #2b3140; border-top: 1px solid var(--line); }
table.ref td:first-child { white-space: nowrap; }
.guide-index { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 36px; }
.guide-index h2 { font-size: 24px; }
.guide-index h2 a { color: var(--ink); }
.guide-index h2 a:hover { color: var(--blue); text-decoration: none; }
.guide-index p { color: var(--text-2); margin: 8px 0 0; max-width: 40em; }
.next { margin-top: 56px; padding: 28px; background: var(--tint); border-radius: 14px; }
.next h2 { font-size: 22px; margin-bottom: 8px; }
.crumbs { font-size: 14.5px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* App pages */
.app { padding: clamp(32px, 6vw, 72px) 0 40px; }
.app .lede { font-size: 18.5px; color: var(--text-2); max-width: 32em; margin-top: 16px; }
.code-word { font: 500 clamp(44px, 9vw, 64px)/1 var(--mono); letter-spacing: 0.12em; margin: 26px 0 0; }
.qr-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 36px; }
.qr svg { width: 148px; height: 148px; }
.waiting { color: var(--muted); font-size: 15px; }
.key { font: 500 14.5px/1.5 var(--mono); word-break: break-all; background: var(--tint); border-radius: 10px; padding: 14px 16px; margin: 18px 0 12px; }
input[type="text"], input[type="email"], input[type="url"] {
  font: 400 16px/1.4 var(--sans); width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid #d5d9e0; background: #fff; color: var(--ink);
}
input:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > input { flex: 1 1 200px; }
.status { font-size: 14.5px; color: var(--muted); min-height: 1.4em; margin: 8px 0 0; }
.status.error { color: #c0392b; }
.dash { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 5vw, 64px); align-items: start; margin-top: 32px; }
.dash section + section { margin-top: 40px; }
.dash h2 { font-size: 21px; margin-bottom: 6px; }
.dash .note-line { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.thread { display: flex; flex-direction: column; gap: 4px; min-height: 320px; max-height: 520px; overflow-y: auto; padding: 16px; background: var(--tint); border-radius: 14px; margin-bottom: 14px; }
.thread .meta { font-size: 12px; color: var(--muted); margin: 0 4px 8px; }
.thread .meta.out { text-align: right; }
.empty { color: var(--muted); margin: auto; text-align: center; max-width: 22em; font-size: 15px; }

@media (max-width: 960px) {
  .hero .wrap, .split, .dash, .tools, .plans, .faq, .docs, .moments { grid-template-columns: minmax(0, 1fr); }
  .stage { padding: 0 0 24px; }
  .code.hero-code { left: 50%; transform: translateX(-50%); bottom: -8px; }
  .docs-nav { position: static; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .about { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .phone { width: 270px; }
  .screen { height: 560px; }
}
