:root {
  color-scheme: dark;
  --bg: #000;
  --text: #f5f5f7;
  --muted: #a4a8b1;
  --subtle: #858b99;
  --accent: #a6cafe;
  --primary: #0069d4;
  --line: #ffffff21;
  --card: #131417;
  --select-chevron: #9daac0;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: 85px; scroll-behavior: smooth; }
body { margin: 0; color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #8fc0ff; outline-offset: 4px; }
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, pre { margin: 0; }
h1, h2, h3 { line-height: 1.01; letter-spacing: -.06em; text-wrap: balance; }
p { color: var(--muted); }
.frame { width: min(1120px, calc(100% - clamp(36px, 9vw, 104px))); margin-inline: auto; }
.skip { position: fixed; z-index: 20; left: 16px; top: 12px; padding: 10px 18px; border-radius: 12px; background: var(--primary); translate: 0 -160%; }
.skip:focus { translate: 0; }

.site-header { position: sticky; inset: 0 0 auto; z-index: 5; border-bottom: 1px solid var(--line); background: #07080bdc; backdrop-filter: blur(20px) saturate(145%); }
.header-inner, .brand, .site-nav, .actions { display: flex; align-items: center; }
.header-inner { min-height: 60px; justify-content: space-between; gap: 20px; }
.brand { gap: 10px; white-space: nowrap; font-size: 1.16rem; font-weight: 720; letter-spacing: -.044em; }
.brand img { border-radius: 8px; }
.brand-edition { color: #b6bac4; font-weight: 550; }
.site-nav { gap: clamp(14px, 2.7vw, 34px); font-size: .9rem; color: #d3d5da; }
.site-nav > a:not(.button):hover, .footer a:hover { color: #fff; }
.button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; padding: .65em 1.2em; border: 1px solid transparent; border-radius: 999px; font-size: .91rem; font-weight: 600; transition: background-color .18s, border-color .18s; }
.button.primary { background: var(--primary); color: #fff; }
.button.primary:hover { background: #1578e4; }
.button.secondary { border-color: #ffffff38; background: #0e1219a8; color: #f1f4fb; }
.button.secondary:hover { border-color: #ffffff64; background: #19212d; }
.button.compact { min-height: 34px; padding: .34em .92em; white-space: nowrap; }
.actions { flex-wrap: wrap; justify-content: center; gap: 11px; }

.hero { isolation: isolate; position: relative; overflow: clip; padding-block: clamp(48px, 5.6vw, 76px) clamp(55px, 8vw, 92px); }
.hero-light { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse 52% 48% at 50% 49%, #142e52 0%, #09121f 46%, transparent 100%); }
.hero-light::after { content: ""; position: absolute; inset: 9% 0 0; background: linear-gradient(90deg, #90bbff10 1px, transparent 1px) 50% 0 / 44px 44px, linear-gradient(#90bbff10 1px, transparent 1px) 0 50% / 44px 44px; mask-image: radial-gradient(ellipse 44% 42% at 50% 55%, #000, transparent); }
.hero-inner { text-align: center; }
.hero h1 { font-size: clamp(3.75rem, 8.15vw, 7rem); font-weight: 750; line-height: .95; letter-spacing: -.075em; word-spacing: .035em; }
.hero-lead { max-width: 57ch; margin: 24px auto 21px; font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.55; text-wrap: pretty; }
.playground { margin: clamp(32px, 4vw, 52px) auto 0; max-width: 1020px; text-align: left; border: 1px solid #a6cafe42; border-radius: 24px; background: #0a0c11; overflow: hidden; box-shadow: 0 22px 70px #000b, 0 0 1px 5px #84aaff0c; }
.playground-bar, .editor-toolbar, .guide-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 15px; border-bottom: 1px solid var(--line); }
.playground-bar { background: #141821; }
.tabs, .editor-actions, .filters { display: flex; align-items: center; gap: 5px; }
.tabs button, .filters button, .tool-button { border: 1px solid transparent; border-radius: 8px; background: transparent; color: #b8c0ce; }
.tabs button { padding: 7px 11px; font-size: .85rem; font-weight: 560; }
.tabs button[aria-selected="true"] { border-color: #91bbff31; background: #203453; color: #e6efff; }
.tabs button:hover, .tool-button:hover, .filters button:hover { color: #fff; background: #ffffff12; }
.source-link { flex: none; color: #b5c6e5; font-size: .82rem; padding: 4px 2px; }
.source-link:hover, .text-link:hover, .card-links a:hover { text-decoration: underline; text-underline-offset: .21em; }
.playground-content { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr); }
.editor { min-width: 0; padding: 3px 0 0; position: relative; display: flex; flex-direction: column; min-height: 359px; }
.editor-toolbar, .guide-toolbar { min-height: 49px; padding-inline: 18px; }
.filename { font: .84rem var(--mono); color: #c4cbd7; overflow-wrap: anywhere; }
.tool-button { padding: 4px 9px; font-size: .82rem; background: #ffffff07; border-color: #ffffff14; }
.editor-content { position: relative; flex: 1; min-height: 200px; }
pre { overflow: auto; font: clamp(.8rem, 1.22vw, .93rem)/1.86 var(--mono); padding: 18px 20px; tab-size: 4; color: #d6deed; }
.editor pre { padding-inline: 15px; }
pre:focus-visible { outline-offset: -2px; }
.code-line { display: block; min-height: 1.86em; }
.editor .code-line { display: flex; align-items: baseline; }
.line-number { flex: none; text-align: right; width: 2.25ch; margin-right: 1.5ch; color: #7d8ba3; font-variant-numeric: tabular-nums; user-select: none; }
.token-keyword { color: #cbadff; }
.token-string { color: #a7dcbb; }
.token-call { color: #9cceff; }
.token-comment { color: #a0aac0; }
.editor-footer { min-height: 34px; display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 5px 16px; border-top: 1px solid #ffffff13; color: var(--muted); font-size: .79rem; }
.copy-status { color: #a7dcbb; }
.falling-code { position: absolute; pointer-events: none; inset: 0; overflow: hidden; z-index: 1; }
.falling-code span { position: absolute; white-space: pre; font: inherit; }
.editor-content.is-falling pre { opacity: .13; }
.editor-content.is-falling pre:focus { opacity: 1; }

.picker { min-width: 0; min-height: 100%; padding: 16px; background: linear-gradient(155deg, #181d28, #10131b 65%); border-left: 1px solid var(--line); }
.picker-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.picker-title h2 { font-size: 1.01rem; letter-spacing: -.028em; }
.picker-title > span { font-size: .77rem; color: #b5bfce; }
.picker-search { display: flex; gap: 10px; align-items: center; background: #070a0f; border: 1px solid #ffffff24; border-radius: 10px; padding: 0 11px; }
.picker-search:focus-within { border-color: #a6cafe; }
.picker-search input { width: 100%; min-width: 0; min-height: 35px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: .88rem; }
.picker-search input::placeholder { color: #abb5c6; }
.magnifier { width: 12px; height: 12px; border: 1.5px solid #b3c2d6; border-radius: 50%; position: relative; flex: none; }
.magnifier::after { content: ""; position: absolute; top: 8px; left: 8px; background: #b3c2d6; border-radius: 3px; width: 5px; height: 1.5px; transform: rotate(45deg); }
.filters { margin: 10px 0; flex-wrap: wrap; }
.filters button { font-size: .8rem; padding: 3px 9px; background: #ffffff08; border: 1px solid #ffffff14; }
.filters button[aria-pressed="true"] { color: #d6e7ff; background: #203553; border-color: #a6cafe30; }
.clip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-height: 100px; }
.clip { padding: 0; overflow: hidden; position: relative; aspect-ratio: 1.87; text-align: left; border: 1px solid #ffffff1f; border-radius: 9px; background: #0b0d12; }
.clip:hover, .clip[aria-pressed="true"] { border-color: #a6cafe; }
.clip img { width: 100%; height: 100%; object-fit: cover; }
.clip span { position: absolute; inset: auto 0 0; padding: 11px 8px 4px; color: #fff; background: linear-gradient(transparent, #000c); font-size: .77rem; font-weight: 620; }
.picker-feedback { margin-top: 10px; font-size: .79rem; color: #b9c3d2; min-height: 1.5em; }

.section { padding-block: clamp(58px, 8vw, 105px); border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 770px; margin-bottom: 36px; }
.section-head h2, .contact h2 { font-size: clamp(2.85rem, 6vw, 5rem); font-weight: 720; }
.section-label { font-weight: 650; color: var(--accent); }
.section-head > p:not(.section-label), .contact p { font-size: clamp(1.05rem, 1.8vw, 1.22rem); max-width: 63ch; }
.section-head code, .sdk-card code { color: #d3e2f9; font: .88em var(--mono); }
.sdk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sdk-card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, #191b21, #101115); padding: 24px 20px 19px; }
.platform-symbol { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 12px; border: 1px solid #ffffff25; background: #ffffff08; font: 600 1rem var(--mono); }
.platform-symbol.apple { color: #d7e7fc; font-size: 1.35rem; }
.platform-symbol.android { color: #afe0bc; }
.platform-symbol.flutter { color: #aacaff; }
.platform-symbol.web { color: #dfcdf8; }
.sdk-card h3 { font-size: 1.9rem; }
.sdk-card p { margin: 12px 0 18px; font-size: 1rem; }
.card-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; width: 100%; }
.text-link { padding: 0; border: 0; background: none; color: var(--accent); font-size: .94rem; font-weight: 560; text-align: left; }
.card-links a { font-size: .88rem; color: #c6cad1; }

.guide { display: grid; align-items: start; grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); gap: clamp(25px, 5vw, 66px); }
.guide-steps { border-left: 1px solid #ffffff2c; padding-left: 23px; }
.guide-step { position: relative; display: flex; min-height: clamp(160px, 29vh, 240px); flex-direction: column; justify-content: center; gap: 12px; max-width: 36ch; }
.guide-step::before { content: ""; position: absolute; inset: 21% auto 21% -24px; width: 2px; border-radius: 2px; background: transparent; transition: background .25s, box-shadow .25s; }
.guide-step.is-current::before { background: #76aaff; box-shadow: 0 0 18px #76aaff6c; }
.guide-step h3 button { color: #b9bec9; font-weight: 680; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -.06em; padding: 0; background: none; border: 0; }
.guide-step.is-current h3 button { color: var(--text); }
.guide-preview, .api-panel { border: 1px solid #a6cafe32; border-radius: 20px; background: #10141d; overflow: hidden; }
.guide-preview { position: sticky; top: max(90px, 20vh); min-width: 0; box-shadow: 0 10px 36px #060e19; }
.guide-preview pre { background: radial-gradient(ellipse at 2% 40%, #182a44, #0d1119 72%); min-height: 230px; }
.guide-preview .code-line.is-highlighted { color: #edf5ff; background: #9dc5ff12; box-shadow: -2px 0 #9dc5ff99; }
.guide-preview .code-line { padding-inline: 8px; }
.endpoints { list-style: none; padding: 0; margin: 0; }
.endpoints li { display: grid; grid-template-columns: 58px minmax(0, 1fr) max-content; gap: 12px; padding: 15px clamp(15px, 3vw, 27px); align-items: center; border-bottom: 1px solid var(--line); }
.endpoints li span:first-child { font: 660 .84rem var(--mono); color: #a7dcbb; }
.endpoints li code { color: #d7e8ff; word-break: break-word; }
.endpoints li span:last-child { color: var(--muted); font-size: .9rem; }
.api-actions { display: flex; gap: 13px 22px; padding: 16px clamp(15px, 3vw, 27px); align-items: center; flex-wrap: wrap; }
.migration-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.resource { border: 1px solid var(--line); border-radius: 19px; background: var(--card); padding: 22px 25px; display: grid; gap: 6px; transition: border-color .2s, background-color .2s; }
.resource:hover { border-color: #a6cafe70; background: #171d29; }
.resource strong { font-size: 1.22rem; letter-spacing: -.026em; }
.resource span { color: var(--muted); }
.contact { text-align: center; }
.contact img { border-radius: 17px; margin: 0 auto 25px; }
.contact p { margin: 21px auto 24px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }

@media (max-width: 900px) {
  .sdk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .playground-content { grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); }
  .editor pre { padding-inline: 10px; }
}
@media (max-width: 700px) {
  .site-nav a[href="#migration"], .site-nav a[href$="/documentation"] { display: none; }
  .playground-content { grid-template-columns: minmax(0, 1fr); }
  .picker { border-top: 1px solid var(--line); border-left: 0; }
  .editor { min-height: 310px; }
  .guide { grid-template-columns: 1fr; gap: 18px; }
  .guide-steps { border-left: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
  .guide-step { justify-content: flex-start; padding: 11px 0 6px; min-height: 0; }
  .guide-step::before { inset: 0 0 auto; width: auto; height: 2px; }
  .guide-step h3 button { font-size: clamp(1.12rem, 4vw, 1.65rem); letter-spacing: -.04em; }
  .guide-step p { display: none; }
  .guide-preview { position: static; }
  .guide-preview pre { min-height: 162px; }
}
@media (max-width: 490px) {
  .header-inner { min-height: 55px; gap: 14px; }
  .brand { gap: 7px; font-size: 1.02rem; }
  .brand img { width: 25px; height: 25px; }
  .site-nav { gap: 10px; font-size: .82rem; }
  .site-nav a[href="#api"] { display: none; }
  .hero h1 { font-size: clamp(2.9rem, 12vw, 3.75rem); }
  .hero-lead { margin-top: 21px; }
  .playground { border-radius: 18px; }
  .playground-bar { flex-wrap: wrap; gap: 5px 10px; padding: 8px 10px; }
  .tabs { gap: 1px; }
  .tabs button { padding: 6px; font-size: .79rem; }
  .source-link { font-size: .78rem; }
  .sdk-grid, .migration-grid { grid-template-columns: 1fr; }
  .sdk-card { padding: 20px; }
  .platform-symbol { margin-bottom: 17px; }
  .endpoints li { grid-template-columns: 38px minmax(0, 1fr); gap: 9px; }
  .endpoints li span:last-child { display: none; }
  .footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; }
  .motion-button { display: none; }
}

/* Navigation, content pages and integration reference. */
.site-header { background: #000c; }
.header-inner { min-height: 54px; }
.brand { gap: .22em; }
.site-nav { color: var(--muted); }
.site-nav [aria-current="page"] { color: var(--accent); }
.hero h1 { font-size: clamp(2.85rem, 6.15vw, 6rem); line-height: .99; letter-spacing: -.069em; }
.hero-lead { max-width: 62ch; }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.principle { padding: clamp(20px, 3.2vw, 32px); background: linear-gradient(145deg, #191c24, #101115); border: 1px solid var(--line); border-radius: 20px; }
.principle h3 { font-size: 1.65rem; }
.principle p { margin-top: 11px; }
.principle a { display: inline-block; margin-top: 12px; }
.formats { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 22px clamp(18px, 3vw, 30px); margin-top: 14px; border: 1px solid #a6cafe32; border-radius: 20px; background: #10141d; }
.formats h3 { font-size: 1.42rem; }
.formats p { margin-top: 5px; }
.formats ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.formats li { border: 1px solid #a6cafe28; background: #a6cafe0d; padding: 7px 10px; border-radius: 9px; font-size: .92rem; font-weight: 650; color: #e4ecfc; white-space: nowrap; }
.formats li span { color: #b4c9e8; font: .82em var(--mono); }

.page-hero { padding-block: clamp(52px, 8vw, 104px) clamp(33px, 5vw, 57px); }
.page-hero h1 { font-size: clamp(3rem, 7vw, 6.2rem); letter-spacing: -.077em; }
.page-hero p { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 67ch; margin-top: 19px; }
.page-hero .section-label { margin: 0 0 14px; }
.page-layout { display: grid; grid-template-columns: minmax(145px, .24fr) minmax(0, 1fr); align-items: start; gap: clamp(25px, 5vw, 64px); border-top: 1px solid var(--line); padding-block: 35px 75px; }
.page-toc { display: grid; gap: 4px; position: sticky; top: 85px; border-left: 1px solid var(--line); padding-left: 14px; }
.page-toc a { padding: 6px 6px; border-radius: 6px; color: var(--muted); font-size: .92rem; }
.page-toc a:hover, .page-toc a:focus-visible { background: #ffffff10; color: var(--text); }
.page-content { min-width: 0; }
.page-content > section { padding-bottom: 34px; }
.page-content > section + section { padding-top: 31px; border-top: 1px solid var(--line); }
.page-content > section:last-child { padding-bottom: 0; }
.page-content h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
.page-content h3 { font-size: 1.36rem; letter-spacing: -.035em; margin-top: 24px; }
.page-content p { max-width: 74ch; margin-block: 12px; }
.page-content li { color: var(--muted); margin-block: 6px; }
.page-content p a, .page-content li a { color: var(--accent); text-decoration: underline; text-underline-offset: .17em; }
.page-content p code, .page-content li code, .reference-table code, .inline-code { font: .87em var(--mono); color: #cfe0fb; overflow-wrap: anywhere; }
.page-content .lead { font-size: 1.08rem; }
.page-content .source-note { margin-top: 20px; font-size: .9rem; }
.subtle-panel { display: grid; gap: 4px; padding: 15px 19px; margin-block: 19px; border: 1px solid #a6cafe32; border-radius: 14px; background: #142031; }
.subtle-panel p { margin: 0; }
.snippet { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #0e1118; margin-block: 15px; }
.snippet figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--line); background: #141821; }
.snippet pre { font-size: .89rem; line-height: 1.65; }
.reference-wrap { margin-block: 16px; border: 1px solid var(--line); border-radius: 14px; overflow: auto; }
.reference-table { border-collapse: collapse; width: 100%; font-size: .94rem; background: #0e1015; color: #c9cdd5; }
.reference-table caption { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.reference-table th, .reference-table td { min-width: 100px; padding: 11px 13px; text-align: left; vertical-align: top; }
.reference-table th { background: #171b24; color: #ecf1f9; }
.reference-table tr + tr, .reference-table tbody { border-top: 1px solid var(--line); }
.route { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: #11141b; }
.route summary { cursor: pointer; padding: 12px 14px; color: #dae6fc; }
.route summary span { color: #b1dbbf; font: 600 .8rem var(--mono); margin-inline: 5px; }
.route summary code { font: .88rem var(--mono); overflow-wrap: anywhere; }
.route p { padding: 0 16px 3px; margin-top: 0; }
.language-grid { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.language-grid li { margin: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #14171f; }
.language-grid code { color: #b9d1f6; white-space: nowrap; }
.field { display: grid; gap: 6px; max-width: 100%; font-size: .92rem; font-weight: 650; }
.field input, .field select { min-width: 0; width: 100%; min-height: 43px; padding: 8px 11px; border: 1px solid #ffffff36; border-radius: 9px; background: #0c0f16; color: var(--text); font: inherit; }
.field select { appearance: none; padding-right: 32px; background: linear-gradient(45deg, transparent 48%, var(--select-chevron) 51%) right 17px center / 5px 5px no-repeat, linear-gradient(135deg, var(--select-chevron) 48%, transparent 51%) right 12px center / 5px 5px no-repeat, #0c0f16; }
.field input::placeholder { color: #a5afc0; }
.language-filter { max-width: 32ch; margin-top: 17px; }
.field-note { min-height: 1.5em; font-size: .86rem; }
.legal-page .page-layout { max-width: 980px; }
.legal-page .page-content h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
.legal-page .page-hero { max-width: 980px; }

.demo-frame { padding-bottom: clamp(60px, 8vw, 100px); }
.demo-panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); border: 1px solid #a6cafe38; border-radius: 20px; overflow: hidden; background: #11141c; }
.demo-form, .demo-output { min-width: 0; padding: clamp(17px, 3vw, 27px); }
.demo-form { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.demo-form h2, .demo-output h2 { font-size: 1.5rem; letter-spacing: -.04em; }
.demo-form .actions { justify-content: flex-start; }
.demo-output { border-left: 1px solid var(--line); background: #0a0c12; }
.demo-output .snippet { margin-bottom: 9px; }
.demo-output .snippet pre { max-height: 320px; }
.demo-status { min-height: 1.5em; color: #a7dcbb; font-size: .87rem; }
.demo-note { margin-top: 15px; }

@media (max-width: 740px) {
  .page-layout { grid-template-columns: minmax(0, 1fr); gap: 25px; padding-top: 17px; }
  .page-toc { position: static; display: flex; flex-wrap: wrap; gap: 5px 9px; border: 0; padding: 0; }
  .page-toc a { background: #171a22; padding-inline: 10px; }
  .language-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-panel { grid-template-columns: minmax(0, 1fr); }
  .demo-output { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 545px) {
  html { scroll-padding-top: 108px; }
  .header-inner { display: grid; gap: 0; padding-block: 10px 8px; }
  .site-nav { flex-wrap: wrap; gap: 7px clamp(10px, 3.6vw, 19px); margin-top: 6px; }
  .site-nav > a { display: inline-block; padding-block: 3px; }
  .hero h1 { font-size: clamp(2.35rem, 9.1vw, 3.1rem); }
  .principles { grid-template-columns: 1fr; }
  .language-grid li { padding-inline: 8px; font-size: .88rem; }
}

/* The header control is shared by the home, reference and legal pages. */
.site-nav { margin-inline-start: auto; }
.theme-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  place-items: center;
  width: 56px;
  height: 30px;
  padding: 2px;
  flex: none;
  border: 1px solid #ffffff3b;
  border-radius: 999px;
  background: #232833;
  color: #b6c0d0;
}
.theme-switch::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px #0003;
  transition: transform .18s ease;
}
.theme-switch[aria-checked="true"]::before { transform: translateX(26px); }
.theme-icon { position: relative; font: 16px/1 -apple-system, system-ui, sans-serif; }
.theme-moon { font-size: 15px; }
.theme-switch[aria-checked="false"] .theme-icon:first-child,
.theme-switch[aria-checked="true"] .theme-moon { color: #243049; }
.theme-switch:hover { border-color: var(--accent); }

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fff;
  --text: #191919;
  --muted: #545454;
  --subtle: #545454;
  --accent: #303030;
  --primary: #242424;
  --line: #20202026;
  --card: #f6f6f6;
  --select-chevron: #626262;
  --light-tint: #eeeeee;
  --light-code: #303030;
  --light-control: #484848;
  --light-success: #404040;
}
[data-theme="light"] .skip { color: #fff; }
[data-theme="light"] :focus-visible { outline-color: var(--accent); }
[data-theme="light"] .site-header { background: #fffffff0; }
[data-theme="light"] .brand-edition { color: var(--muted); }
[data-theme="light"] .site-nav > a:not(.button):hover,
[data-theme="light"] .footer a:hover { color: var(--text); }
[data-theme="light"] .theme-switch { background: #f1f1f1; border-color: #d1d1d1; color: #565656; }
[data-theme="light"] .theme-switch:hover { border-color: var(--accent); }
[data-theme="light"] .theme-icon:first-child { color: var(--accent); }
[data-theme="light"] .button.primary:hover { background: #3b3b3b; }
[data-theme="light"] .button.secondary { background: #ffffffcf; border-color: #c5c5c5; color: #343434; }
[data-theme="light"] .button.secondary:hover { background: #f0f0f0; border-color: #929292; }
[data-theme="light"] .hero-light { background: radial-gradient(ellipse 52% 48% at 50% 49%, #ebebeb, #fafafa 55%, transparent 100%); }
[data-theme="light"] .hero-light::after {
  background: linear-gradient(90deg, #26262615 1px, transparent 1px) 50% 0 / 44px 44px,
    linear-gradient(#26262615 1px, transparent 1px) 0 50% / 44px 44px;
}
[data-theme="light"] .playground,
[data-theme="light"] .guide-preview,
[data-theme="light"] .api-panel,
[data-theme="light"] .formats,
[data-theme="light"] .demo-panel { background: #fff; border-color: #c9c9c9; }
[data-theme="light"] .playground { box-shadow: 0 22px 60px #23232320, 0 0 1px 4px #2424240e; }
[data-theme="light"] .playground-bar,
[data-theme="light"] .snippet figcaption,
[data-theme="light"] .reference-table th,
[data-theme="light"] .page-toc a:hover,
[data-theme="light"] .page-toc a:focus-visible { background: #f2f2f2; color: var(--text); }
[data-theme="light"] .tabs button,
[data-theme="light"] .filters button,
[data-theme="light"] .tool-button,
[data-theme="light"] .picker-title > span,
[data-theme="light"] .picker-feedback,
[data-theme="light"] .filename { color: var(--light-control); }
[data-theme="light"] .tabs button[aria-selected="true"],
[data-theme="light"] .filters button[aria-pressed="true"] { background: #e5e5e5; color: #252525; border-color: #afafaf; }
[data-theme="light"] .tabs button:hover:not([aria-selected="true"]),
[data-theme="light"] .tool-button:hover,
[data-theme="light"] .filters button:hover:not([aria-pressed="true"]) { background: #ededed; color: #303030; }
[data-theme="light"] .filters button,
[data-theme="light"] .tool-button,
[data-theme="light"] .platform-symbol { background: #fff; border-color: #bdbdbd; }
[data-theme="light"] .source-link,
[data-theme="light"] .card-links a { color: var(--accent); }
[data-theme="light"] pre,
[data-theme="light"] .section-head code,
[data-theme="light"] .sdk-card code,
[data-theme="light"] .page-content code,
[data-theme="light"] .endpoints li code,
[data-theme="light"] .route summary,
[data-theme="light"] .formats li span { color: var(--light-code); }
[data-theme="light"] .line-number,
[data-theme="light"] .token-comment { color: #606060; }
[data-theme="light"] .token-keyword,
[data-theme="light"] .token-call { color: #a6430d; }
[data-theme="light"] .token-import { color: #702996; }
[data-theme="light"] .token-string { color: #404040; }
[data-theme="light"] .editor-footer { border-top-color: var(--line); }
[data-theme="light"] .copy-status,
[data-theme="light"] .demo-status,
[data-theme="light"] .route summary span,
[data-theme="light"] .endpoints li span:first-child { color: var(--light-success); }
[data-theme="light"] .picker { background: linear-gradient(155deg, #fafafa, #f2f2f2 75%); }
[data-theme="light"] .picker-search,
[data-theme="light"] .field input,
[data-theme="light"] .field select { background-color: #fff; border-color: #c0c0c0; }
[data-theme="light"] .picker-search:focus-within { border-color: var(--accent); }
[data-theme="light"] .picker-search input::placeholder,
[data-theme="light"] .field input::placeholder { color: #5c5c5c; }
[data-theme="light"] .magnifier { border-color: #626262; }
[data-theme="light"] .magnifier::after { background: #626262; }
[data-theme="light"] .clip:hover,
[data-theme="light"] .clip[aria-pressed="true"] { border-color: var(--accent); }
[data-theme="light"] .sdk-card,
[data-theme="light"] .principle { background: linear-gradient(145deg, #fcfcfc, #f3f3f3); }
[data-theme="light"] .platform-symbol.apple { color: #404040; }
[data-theme="light"] .platform-symbol.android { color: #404040; }
[data-theme="light"] .platform-symbol.flutter { color: #303030; }
[data-theme="light"] .platform-symbol.web { color: #424242; }
[data-theme="light"] .guide-steps { border-left-color: var(--line); }
[data-theme="light"] .guide-step h3 button { color: var(--muted); }
[data-theme="light"] .guide-step.is-current h3 button { color: var(--text); }
[data-theme="light"] .guide-step.is-current::before { background: #242424; box-shadow: none; }
[data-theme="light"] .guide-preview { box-shadow: 0 10px 36px #24242417; }
[data-theme="light"] .guide-preview pre { background: radial-gradient(ellipse at 2% 40%, #ededed, #fafafa 72%); }
[data-theme="light"] .guide-preview .code-line.is-highlighted { color: #282828; background: #e9e9e9; box-shadow: -2px 0 #828282; }
[data-theme="light"] .resource:hover { background: var(--light-tint); border-color: #919191; }
[data-theme="light"] .formats li,
[data-theme="light"] .subtle-panel { background: var(--light-tint); border-color: #c9c9c9; color: #343434; }
[data-theme="light"] .snippet,
[data-theme="light"] .reference-table,
[data-theme="light"] .route,
[data-theme="light"] .language-grid li,
[data-theme="light"] .demo-output { background: #fafafa; color: var(--text); }

@media (max-width: 545px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; margin-inline-start: 0; }
  .theme-switch { grid-row: 1; grid-column: 2; }
  [data-theme="light"] .page-toc a { background: #f2f2f2; }
}

.docs-page .frame {
  width: min(1240px, calc(100% - clamp(36px, 9vw, 104px)));
}

.docs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding-bottom: 16px;
}

.docs-tabs a {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
}

.docs-tabs a:hover,
.docs-tabs a:focus-visible {
  color: var(--text);
  background: var(--line);
}

.docs-tabs a[aria-current="page"] {
  border-color: var(--line);
  color: var(--text);
  font-weight: 650;
}

.docs-page .page-content h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.docs-page .page-content [id] { scroll-margin-block-start: 12px; }
.docs-page .reference-table a { color: var(--accent); text-decoration: underline; text-underline-offset: .17em; }
.docs-page .reference-table a code { color: inherit; }
.docs-page .reference-table code { word-break: normal; }
.docs-page .reference-table td { min-width: 90px; }

.endpoint-group { margin-top: 40px; }
.endpoint { padding-block: 22px 12px; border-bottom: 1px solid var(--line); }
.endpoint:last-child { border-bottom: none; }
.endpoint h4 { margin: 0 0 9px; font-size: 1.18rem; }
.endpoint-path { display: flex; align-items: baseline; gap: 11px; }
.endpoint-path span { color: var(--accent); font: 650 .82rem var(--mono); }
.endpoint-path code { font: .9rem var(--mono); overflow-wrap: anywhere; }
.docs-page .snippet pre { max-height: 36rem; }

@media (min-width: 821px) {
  .docs-page .page-toc {
    max-height: calc(100dvh - 105px);
    overflow: auto;
  }
}

.footer > span { flex-shrink: 0; }

.footer-language {
  position: relative;
  flex: none;
  color: var(--text);
}

.footer-language summary {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.footer-language .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.footer-language nav {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: calc(100% + 6px);
  display: grid;
  gap: 2px;
  min-width: 100%;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #15171c;
  box-shadow: 0 8px 24px #0003;
}

.footer-language nav a {
  padding: 6px 9px;
  border-radius: 5px;
  white-space: nowrap;
}

.footer-language nav a[aria-current="true"] { font-weight: 700; }
.footer-language nav a:hover,
.footer-language nav a:focus-visible { background: var(--line); }
[data-theme="light"] .footer-language nav { background: #fff; }

@media (max-width: 490px) {
  .footer-language nav { inset-inline: 0 auto; }
}

.pricing-hero { text-align: center; }
.pricing-hero p { margin-inline: auto; }
.pricing-content { padding-bottom: clamp(48px, 8vw, 88px); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pricing-plan {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
  align-items: start;
  gap: 14px;
  padding: clamp(19px, 2.8vw, 30px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}

.pricing-plan h2 { font-size: 2rem; }
.pricing-plan .button { justify-self: start; text-align: center; }
.pricing-plan .plan-rate { margin-block: 4px; display: grid; gap: 5px; }
.plan-rate strong {
  color: var(--text);
  font-size: clamp(2rem, 3.75vw, 3rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.06em;
  line-height: 1.05;
  white-space: nowrap;
}
.plan-rate span { font-size: .89rem; }

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px 18px;
}

.pricing-features li {
  display: flex;
  gap: 9px;
  align-items: baseline;
  color: var(--muted);
}

.pricing-features li::before {
  content: "";
  flex: 0 0 11px;
  height: 6px;
  border: solid var(--accent);
  border-width: 0 0 1.5px 1.5px;
  transform: translateY(-2px) rotate(-45deg);
}

.pricing-plan .pricing-features {
  border-top: 1px solid var(--line);
  padding-top: 17px;
}

.pricing-common {
  margin-top: 18px;
  padding: clamp(19px, 2.8vw, 30px);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.pricing-common h2 { font-size: 1.4rem; margin-bottom: 15px; }
.pricing-common .pricing-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pricing-note { margin-top: 20px; font-size: .92rem; }

@media (max-width: 780px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-plan { grid-template-rows: none; grid-row: auto; }
  .pricing-common .pricing-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 460px) {
  .pricing-common .pricing-features { grid-template-columns: 1fr; }
}

.demo-live { padding-bottom: clamp(42px, 7vw, 75px); }

.demo-live-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 14px;
}

.demo-interface-nav { display: flex; flex-wrap: wrap; gap: 8px; }

.demo-interface-nav a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.demo-interface-nav a:hover,
.demo-interface-nav a[aria-current="true"] { color: var(--text); background: var(--card); }
.demo-interface-nav a[aria-current="true"] { border-color: var(--accent); }

.demo-live iframe {
  display: block;
  width: 100%;
  height: clamp(570px, 78vh, 790px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}

.demo-simulator-link { display: inline-block; margin-top: 16px; }
.demo-rest-heading { margin-bottom: 19px; }
.demo-rest-heading h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
.demo-rest-heading p { margin-top: 7px; }

.rest-simulator { padding-top: clamp(42px, 7vw, 82px); }
.rest-simulator .demo-rest-heading h1 { font-size: clamp(2.7rem, 6vw, 4.7rem); }

.demo-local-note { margin-top: 12px; font-size: .9rem; }

.demo-interface-description {
  margin-bottom: 20px;
}

.demo-interface-description h2 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  letter-spacing: -.035em;
  line-height: 1.2;
}

.demo-interface-description p {
  margin-top: 6px;
  max-width: 70ch;
}

.privacy-comparison {
  --privacy-tint: #13231b;
  --privacy-yes: #7de6a7;
  --privacy-no: #ff9399;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}
[data-theme="light"] .privacy-comparison {
  --privacy-tint: transparent;
  --privacy-yes: #116635;
  --privacy-no: #aa2636;
}
.privacy-comparison table {
  width: 100%;
  border-spacing: 0;
  table-layout: fixed;
}
.privacy-comparison caption {
  padding: clamp(16px, 3.2vw, 36px);
  text-align: left;
  font-size: clamp(1.34rem, 3vw, 2.2rem);
  font-weight: 720;
  line-height: 1.1;
  letter-spacing: -.045em;
}
.privacy-comparison th,
.privacy-comparison td {
  padding: clamp(10px, 1.75vw, 20px) 5px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.privacy-comparison th[scope="row"] {
  width: 49%;
  padding-inline: clamp(12px, 3.2vw, 36px) 6px;
  text-align: left;
  font-weight: 600;
  font-size: clamp(.81rem, 1.55vw, 1.04rem);
  line-height: 1.35;
}
.privacy-comparison thead th {
  font-size: clamp(.77rem, 2vw, 1.12rem);
  letter-spacing: -.025em;
}
.privacy-comparison th[scope="col"]:first-child { width: 49%; }
@media (max-width: 420px) {
  .privacy-comparison th[scope="row"],
  .privacy-comparison th[scope="col"]:first-child { width: 43%; }
  .privacy-comparison thead th { padding-inline: 2px; }
}
.privacy-comparison :is(th, td):nth-child(2) { background: var(--privacy-tint); }
.privacy-comparison thead th:nth-child(2) { border-radius: 12px 12px 0 0; }
.privacy-mark {
  display: inline-grid;
  place-items: center;
  width: clamp(25px, 3.3vw, 36px);
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: clamp(.95rem, 2vw, 1.3rem);
  line-height: 1;
}
.privacy-mark.yes { color: var(--privacy-yes); }
.privacy-mark.no { color: var(--privacy-no); }
.privacy-comparison .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.privacy-comparison figcaption {
  padding: 15px clamp(12px, 3.2vw, 36px);
  color: var(--muted);
  font-size: .79rem;
}
