:root {
  --bg: #F7F8F5;
  --surface: rgba(255, 255, 255, .8);
  --code-bg: #EEF1EB;
  --mint: #83b7a3;
  --mint-light: #bcebd2;
  --accent-ink: #345e4b;
  --text: #18221C;
  --muted: #59645D;
  --soft: #657068;
  --rule: #DCE2D8;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 5px; }
[hidden] { display: none !important; }
::selection { background: var(--mint-light); color: var(--text); }
.wrap { width: min(100% - clamp(40px, 8vw, 160px), 1280px); margin-inline: auto; }

.masthead { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid rgba(220, 226, 216, .8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 4px 24px rgba(24, 34, 28, .025); }
.masthead .wrap { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: 27px; font-weight: 500; letter-spacing: -.065em; line-height: 1; text-decoration: none; white-space: nowrap; }
.wordmark img { display: block; width: 37px; height: 37px; object-fit: contain; }
.masthead nav { display: flex; align-items: center; gap: 32px; }
.masthead nav > a:not(.btn) { padding: 10px 0; color: var(--muted); font-size: 14px; text-decoration: none; text-underline-offset: 7px; transition: color .18s ease; }
.masthead nav > a:not(.btn):hover, .masthead nav > a[aria-current="location"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 2px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 18px; border: 1px solid transparent; border-radius: 100px; text-decoration: none; font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap; transition: background .18s ease, box-shadow .18s ease; }
.btn-primary { color: var(--text); background: var(--mint); }
.btn-primary:hover { background: #92c0ae; box-shadow: 0 5px 18px rgba(52, 94, 75, .12); }
.btn span { font-size: 1.2em; }
.nav-cta { min-height: 44px; padding: 0 23px; }
.text-link { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 44px; text-decoration: none; font-size: 15px; font-weight: 500; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }

.hero { min-height: 700px; position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.35fr); align-items: center; gap: 22px; padding: 72px max(32px, calc((100vw - 1320px) / 2)) 80px; overflow: hidden; }
.hero-copy { position: relative; z-index: 3; max-width: 580px; }
.eyebrow { margin: 0 0 20px; color: var(--muted); font: 500 11px/1.5 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; }
.hero-eyebrow:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(131, 183, 163, .13); }
.hero h1 { margin: 0; font-size: clamp(52px, 4.65vw, 76px); line-height: 1.04; font-weight: 400; letter-spacing: -.065em; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero .lede { max-width: 410px; margin: 25px 0 32px; color: var(--muted); font-size: 19px; line-height: 1.55; letter-spacing: -.015em; }
.hero-actions { display: flex; align-items: center; gap: 26px; }
.hero-cta { min-height: 54px; padding: 0 29px; }
.flow-art { position: relative; width: 100%; }
.flow-stage { position: relative; width: 100%; }
.flow-base { display: block; width: 100%; height: auto; }
.flow-logo { position: absolute; left: 57.1%; top: 50.2%; width: 8%; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 7px 12px rgba(52, 94, 75, .1)); }
.route-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.route-trace { fill: none; stroke: var(--mint); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.route-hit { fill: var(--mint); opacity: .8; }
.is-playing .route-in { animation: route-draw .7s ease both; }
.is-playing .route-out { animation: route-draw .9s .7s ease both; }
.is-playing .route-hit { animation: route-arrive .35s 1.5s ease both; transform-origin: 778px 105px; }
@keyframes route-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes route-arrive { from { opacity: 0; transform: scale(.4); } to { opacity: .8; transform: scale(1); } }
.flow-controls { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: -12px; padding-right: 3px; color: var(--muted); font: 400 10px/1.5 var(--mono); }
.replay-route { min-height: 44px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--text); font: 500 11px var(--sans); cursor: pointer; }
.replay-route:hover { border-color: var(--mint); }
.mobile-flow { display: none; }

section:not(.hero) { position: relative; padding: 88px 0; border-top: 1px solid var(--rule); scroll-margin-top: 104px; }
.sec-head { max-width: 740px; margin-bottom: 40px; }
.sec-head h2 { margin: 0 0 18px; font-size: clamp(36px, 3.5vw, 52px); font-weight: 400; line-height: 1.12; letter-spacing: -.055em; }
.sec-head p:not(.eyebrow) { max-width: 650px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.sec-head a { text-underline-offset: 4px; }
.endpoint-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--rule); }
.endpoint-card { position: relative; min-height: 180px; padding: 26px 22px; border-right: 1px solid var(--rule); text-decoration: none; transition: background .18s ease; }
.endpoint-card:last-child { border-right: 0; }
.endpoint-card:hover { background: rgba(255, 255, 255, .65); }
.endpoint-card small { display: block; margin-bottom: 24px; color: var(--muted); font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.endpoint-card strong { display: block; font: 500 clamp(13px, 1.1vw, 16px)/1.4 var(--mono); letter-spacing: -.04em; white-space: nowrap; }
.endpoint-card strong span { color: var(--accent-ink); }
.endpoint-card p { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.endpoint-card b { position: absolute; right: 20px; top: 22px; color: var(--accent-ink); font-size: 20px; font-weight: 400; }

.hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hero-grid > div { min-width: 0; display: flex; flex-direction: column; }
.api-pair .hero-grid .panel { flex: 1; }
.panel { min-width: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: 14px; background: var(--code-bg); }
.panel-bar { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px; border-bottom: 1px solid var(--rule); background: rgba(255, 255, 255, .55); color: var(--muted); font: 500 10px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.panel-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); border: 1px solid #5c8e76; }
.panel-bar .grow { flex: 1; }
.copy-btn { min-width: 98px; min-height: 36px; padding: 7px 10px; border: 1px solid var(--rule); border-radius: 6px; background: rgba(255, 255, 255, .6); color: var(--text); cursor: pointer; font: 500 11px var(--sans); transition: background .18s ease; }
.copy-btn:hover { background: #fff; }
pre { margin: 0; padding: 26px; overflow: auto; color: var(--text); font: 400 12px/1.8 var(--mono); tab-size: 2; }
code { font-family: var(--mono); }
.c-cmd { color: #18221c; }.c-flag { color: #526459; }.c-str { color: #345e4b; }.c-key { color: #334d63; }.c-num { color: #795d35; }.c-bool { color: #674668; }.c-cm { color: #657068; font-style: italic; }.c-hi { color: #345e4b; }.c-vi { color: #674668; }
.annot { display: flex; gap: 10px; margin: 20px 0 0; color: var(--muted); font: 400 11px/1.6 var(--mono); }
.annot b { color: var(--accent-ink); font-weight: 400; }

.example-workspace { overflow: hidden; min-height: 382px; border: 1px solid var(--rule); border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(24, 34, 28, .045); }
.example-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; padding: 10px 24px; border-bottom: 1px solid var(--rule); }
.example-query { font-size: 15px; font-weight: 500; }
.example-query span { margin-right: 12px; color: var(--accent-ink); }
.example-tabs { display: flex; gap: 5px; }
.example-tab { min-height: 42px; padding: 8px 15px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 500 13px var(--sans); cursor: pointer; }
.example-tab:hover { background: var(--code-bg); color: var(--text); }
.example-tab[aria-selected="true"] { background: var(--mint); color: var(--text); }
.example-view { min-height: 312px; }
.example-view pre { max-height: 256px; }
.example-view .panel-bar { background: var(--code-bg); }
.sample-label { margin: 28px 30px 15px; color: var(--muted); font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.sample-result { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 20px; margin: 0 30px; padding: 24px 0; border-block: 1px solid var(--rule); }
.sample-rank { color: var(--accent-ink); font: 500 15px var(--mono); }
.sample-result h3 { margin: 0 0 6px; font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.sample-result p { max-width: 620px; margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.sample-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.sample-meta span { padding: 6px 9px; border: 1px solid var(--rule); border-radius: 5px; color: var(--muted); font: 500 11px var(--mono); }
.sample-note { margin: 16px 30px 30px; color: var(--muted); font-size: 12px; }

.provider-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--rule); }
.provider-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.provider-tabs button { position: relative; min-height: 56px; padding: 10px 20px; border: 0; background: transparent; color: var(--muted); font: 500 15px var(--sans); cursor: pointer; }
.provider-tabs button:hover { color: var(--text); }
.provider-tabs button[aria-selected="true"] { color: var(--text); }
.provider-tabs button[aria-selected="true"]:after { content: ""; position: absolute; bottom: -1px; left: 15px; right: 15px; height: 3px; border-radius: 3px; background: var(--mint); }
.provider-tabs small { margin-left: 3px; color: var(--muted); font: 500 9px var(--mono); }
.compare-button { flex: none; min-height: 44px; border: 0; background: transparent; color: var(--accent-ink); font: 500 13px var(--sans); text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.compare-button span { margin-left: 5px; text-decoration: none; }
.provider-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; min-height: 238px; padding: 32px 0 36px; }
.provider-detail .eyebrow { margin-bottom: 12px; }
.provider-detail h3 { margin: 0 0 8px; font-size: 28px; font-weight: 500; letter-spacing: -.04em; }
.provider-detail p:not(.eyebrow) { max-width: 430px; margin: 0; color: var(--muted); font-size: 16px; }
.provider-detail ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.provider-detail li { padding: 7px 10px; border: 1px solid var(--rule); border-radius: 6px; color: var(--text); font-size: 12px; }
.provider-detail .text-link { min-height: 32px; color: var(--accent-ink); font-size: 13px; }
.provider-detail + .matrix-scroll { margin-top: 6px; }

.key-placeholder { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 32px; padding: 25px 28px; border: 1px solid var(--rule); border-radius: 14px; background: rgba(255, 255, 255, .45); }
.key-placeholder .eyebrow { margin-bottom: 8px; }
.key-placeholder h3 { margin: 0 0 7px; font-size: 25px; font-weight: 400; letter-spacing: -.04em; }
.key-placeholder p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 14px; }
.key-action { display: flex; flex-direction: column; align-items: center; gap: 9px; flex: none; }
.key-button { min-height: 46px; padding: 0 22px; border-color: var(--rule); background: var(--code-bg); color: var(--muted); cursor: not-allowed; }
.key-action span { color: var(--muted); font: 500 10px var(--mono); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px; width: 100%; border: 1px solid var(--rule); border-bottom: 0; border-radius: 16px 16px 0 0; background: var(--surface); backdrop-filter: blur(12px); }
.tab { min-height: 44px; border: 0; border-radius: 8px; padding: 11px 20px; background: transparent; color: var(--muted); cursor: pointer; font: 500 13px var(--sans); white-space: nowrap; transition: background .18s ease, color .18s ease; }
.tab:hover { color: var(--text); background: rgba(220, 226, 216, .4); }
.tab[aria-selected="true"] { background: var(--mint); color: var(--text); }
#tabpanels { border-radius: 0 0 16px 16px; box-shadow: 0 15px 45px rgba(24, 34, 28, .045); }
#tabpanels pre { height: 390px; }
#tabpanels pre:not([hidden]) { animation: code-enter .22s ease both; }
@keyframes code-enter { from { opacity: .3; } to { opacity: 1; } }
.matrix-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; background: rgba(255, 255, 255, .4); }
.matrix { width: 100%; min-width: 690px; border-collapse: collapse; text-align: left; }
.matrix th { padding: 17px 19px; color: var(--muted); background: var(--code-bg); font: 500 10px var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.matrix td { border-top: 1px solid var(--rule); padding: 20px 19px; color: var(--muted); font-size: 14px; }
.matrix .name { color: var(--text); font-weight: 500; }
.matrix .cap { font-family: var(--mono); font-size: 11px; }
.matrix .yes, .matrix .no { text-align: center; }
.matrix .yes span, .matrix .no span { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--mint); border: 1px solid #5c8e76; }
.matrix .no span { background: transparent; border-color: #87928a; }
.tag { margin-left: 8px; padding: 3px 6px; border-radius: 4px; font: 500 9px var(--mono); letter-spacing: .02em; text-transform: uppercase; }
.tag-licensed { color: var(--accent-ink); background: #e2ede5; }.tag-soon { color: var(--muted); background: #e7ebe4; }
.inline-code { padding: 2px 5px; border-radius: 4px; background: var(--code-bg); color: var(--accent-ink); font: .82em var(--mono); }

.site-footer { padding: 64px 0 28px; border-top: 1px solid var(--rule); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 35px; }
.site-footer .wordmark { margin-bottom: 16px; }
.site-footer h4 { margin: 0 0 19px; color: var(--muted); font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.site-footer a:not(.wordmark) { display: block; width: fit-content; min-height: 32px; margin: 0 0 5px; color: var(--muted); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); color: var(--muted); font: 400 10px var(--mono); }

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); min-height: 640px; padding-inline: 32px; }
  .hero h1 { font-size: 55px; }
  .hero .lede { font-size: 17px; }
  .hero-actions { gap: 18px; }
  .endpoint-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .endpoint-card:nth-child(2) { border-right: 0; }
  .endpoint-card:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .masthead nav { gap: 22px; }
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 24px; min-height: auto; padding: 64px 24px 48px; text-align: center; }
  .hero-copy { margin: 0 auto; max-width: 620px; }
  .hero h1 { font-size: 62px; }
  .hero-eyebrow, .hero-actions { justify-content: center; }
  .hero .lede { margin-inline: auto; }
  .flow-art { max-width: 650px; margin: 0 auto; }
  .flow-controls { justify-content: center; margin-top: 0; }
  .masthead nav > a:not(.btn) { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .api-pair .hero-grid .panel { flex: auto; }
  .provider-toolbar { align-items: flex-start; flex-direction: column; gap: 4px; }
  .provider-detail { gap: 28px; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 40px); }
  .masthead .wrap { min-height: 72px; gap: 12px; }
  .wordmark { gap: 6px; font-size: 23px; }
  .wordmark img { width: 31px; height: 31px; }
  .nav-cta { min-height: 44px; padding: 0 16px; gap: 10px; font-size: 12px; }
  .hero { padding: 56px 20px 52px; }
  .hero h1 { font-size: clamp(42px, 11vw, 58px); }
  .hero .lede { max-width: 310px; font-size: 17px; margin: 22px auto 28px; }
  .hero-actions { gap: 20px; }
  .hero-cta { min-height: 50px; padding: 0 23px; }
  .text-link { font-size: 14px; gap: 9px; }
  .flow-art { display: none; }
  .mobile-flow { display: grid; justify-items: center; gap: 12px; max-width: 310px; width: 100%; margin: 22px auto 0; font-size: 14px; }
  .mobile-flow > span { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 160px; min-height: 48px; padding: 12px 20px; border: 1px solid var(--rule); border-radius: 12px; background: rgba(255, 255, 255, .7); }
  .mobile-flow > span img { width: 26px; height: 26px; object-fit: contain; }
  .mobile-flow > span:nth-of-type(2) { border-color: var(--mint); background: #edf4ee; }
  .mobile-flow i { color: var(--accent-ink); font-style: normal; transform: rotate(90deg); }
  .mobile-providers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; }
  .mobile-flow b { padding: 10px 14px; border: 1px solid var(--rule); border-radius: 8px; font-size: 12px; font-weight: 400; }
  .mobile-providers b:first-child { background: #e8f1eb; border-color: var(--mint); }
  .mobile-flow-controls { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; color: var(--muted); font: 400 9px var(--mono); }
  .mobile-flow.is-playing > i:first-of-type { animation: mobile-signal .6s ease both; }
  .mobile-flow.is-playing > i:nth-of-type(2) { animation: mobile-signal .6s .6s ease both; }
  .mobile-flow.is-playing .mobile-providers b:first-child { animation: mobile-arrive .6s 1.2s ease both; }
  section:not(.hero) { padding: 60px 0; scroll-margin-top: 92px; }
  .sec-head { margin-bottom: 30px; }
  .sec-head h2 { font-size: 36px; }
  .endpoint-grid { grid-template-columns: 1fr; }
  .endpoint-card { min-height: 155px; border-right: 0; border-bottom: 1px solid var(--rule); padding: 22px 18px; }
  .endpoint-card:last-child { border-bottom: 0; }
  .endpoint-card small { margin-bottom: 18px; }
  .endpoint-card strong { font-size: 15px; }
  .example-bar { align-items: flex-start; flex-direction: column; gap: 10px; padding: 16px; }
  .example-tabs { width: 100%; overflow-x: auto; }
  .example-tab { flex: none; font-size: 12px; padding: 8px 12px; }
  .sample-label { margin: 22px 20px 8px; }
  .sample-result { grid-template-columns: 1fr; gap: 8px; margin: 0 20px; padding: 18px 0; }
  .sample-note { margin: 16px 20px 24px; }
  .provider-tabs { max-width: 100%; }
  .provider-tabs button { min-height: 48px; padding: 8px 12px; font-size: 13px; }
  .provider-tabs small { display: block; margin: 0; }
  .provider-detail { grid-template-columns: 1fr; gap: 24px; padding: 26px 0; }
  .key-placeholder { flex-direction: column; align-items: flex-start; gap: 20px; padding: 22px; }
  .key-action { flex-direction: row; gap: 15px; }
  .key-button { font-size: 13px; padding: 0 18px; }
  .tabs { gap: 4px; padding: 6px; }
  .tab { flex: 1 1 auto; padding: 10px 11px; font-size: 12px; }
  .copy-btn { min-height: 44px; min-width: 86px; }
  .panel-bar { padding: 0 15px; }
  pre { padding: 20px; font-size: 11px; }
  #tabpanels pre { height: 380px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .site-footer a:not(.wordmark) { min-height: 44px; }
  .footer-bottom { margin-top: 36px; }
}
@keyframes mobile-signal { from { opacity: .2; } to { opacity: 1; } }
@keyframes mobile-arrive { from { background: transparent; border-color: var(--rule); } to { background: #e8f1eb; border-color: var(--mint); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
