/*
 * Public site styles (landing, product, guides, legal).
 * Structure follows the reference we studied: flat near-black and off-white
 * bands that alternate down the page, square corners everywhere, hairline
 * borders, a light-weight grotesque for headings and body, and an uppercase
 * mono face for navigation, buttons and labels. The accent is reserved for
 * the headline highlight, prices and active states.
 */
:root, .window, pre.code, .cmd-pill {
  color-scheme: dark;
  --bg: #0f0f0f;
  --surface: #161616;
  --surface-2: #1e1e1e;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.65);
  --faint: rgba(255, 255, 255, 0.45);
  --line: #2c2c2c;
  --line-strong: rgba(255, 255, 255, 0.3);
  --accent: #ff5c1a;
  --accent-ink: #0f0f0f;
  --accent-text: #ff6a2e;
  --accent-soft: rgba(255, 92, 26, 0.12);
  --accent-line: rgba(255, 92, 26, 0.4);
  --ok: #3fffdd;
  --btn-bg: #ffffff;
  --btn-ink: #000000;
  --btn-hover: #dcdcdc;
  --code: #d9d9d9;
  --code-key: #ff8a5c;
  --code-string: #9fe3c4;
}
:root {
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --nav-h: 53px;
}
/* Light bands. Sections alternate after the dark hero, and the closing call to action is always light. */
main > section:nth-of-type(odd), main > section[role="tabpanel"], main > section.final {
  color-scheme: light;
  --bg: #f6f6f6;
  --surface: #ffffff;
  --surface-2: #ececec;
  --text: #0f0f0f;
  --muted: rgba(15, 15, 15, 0.68);
  --faint: rgba(15, 15, 15, 0.5);
  --line: #e5e5e5;
  --line-strong: rgba(15, 15, 15, 0.28);
  --accent-text: #c2410c;
  --accent-soft: rgba(255, 92, 26, 0.09);
  --ok: #0b7a55;
  --btn-bg: #0f0f0f;
  --btn-ink: #ffffff;
  --btn-hover: #333333;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 32px); background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
p a, li a, dd a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
p a:hover, li a:hover, dd a:hover { text-decoration-color: var(--accent); }
b, strong { font-weight: 500; }
code, pre, kbd { font-family: var(--mono); font-size: 13px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; }
[hidden] { display: none !important; }

/* Shared label style: uppercase mono, used by navigation, buttons, table heads and tags. */
.btn, .nav-links, .nav-menu nav a, .announce a, .eyebrow, .tab, .pane-label, th, .crumbs, .foot h4, .foot li,
.stats span, .seg-btn, .chip-btn, .topup-label, .kicker, .tag, .badge, .method, .toc a, .step::before {
  font-family: var(--mono); font-weight: 400; text-transform: uppercase;
}

/* Announcement bar */
.announce { background: var(--accent); color: var(--accent-ink); font-size: 15px; }
.announce .wrap { min-height: 36px; padding: 6px 0; display: flex; align-items: center; justify-content: center; gap: 6px 16px; flex-wrap: wrap; text-align: center; }
.announce a { font-size: 12px; letter-spacing: 0.05em; }
.announce a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Navigation: a floating bar inset from the edges */
.nav {
  position: sticky; top: 8px; z-index: 20;
  width: calc(100% - 32px); max-width: 1408px; height: var(--nav-h); margin: 16px auto 0;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s, border-color 0.2s;
}
.nav.at-top { background: transparent; border-color: transparent; }
.nav .wrap { width: auto; height: 100%; padding: 0 8px 0 16px; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; color: var(--text); }
.logo-svg { display: block; }
.nav-links { display: flex; gap: 32px; margin-inline: auto; font-size: 14px; letter-spacing: -0.011em; color: var(--text); }
.nav-links a { opacity: 0.72; transition: opacity 0.15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-grow { position: relative; }
.nav-links .nav-grow { opacity: 1; }
.nav-hot {
  display: inline-block; margin-left: 4px; padding: 1px 4px; background: var(--accent); color: var(--accent-ink);
  font-size: 9px; font-weight: 600; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: super;
}
.nav-cta { display: flex; gap: 8px; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 45px; padding: 11px 24px;
  border: 1px solid transparent; border-radius: 0;
  font-size: 14px; line-height: 21px; letter-spacing: -0.011em; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn.sm { min-height: 35px; padding: 6px 10px; }
.btn.primary { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }
.btn.primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn.ghost { border-color: var(--line-strong); color: var(--muted); }
.btn.ghost:hover { border-color: var(--text); color: var(--text); }
.nav .btn.ghost { color: var(--text); }

/* Hero */
.hero { padding: 104px 0 80px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 32px; padding: 6px 12px; border: 1px solid var(--line);
  font-size: 12px; line-height: 16px; letter-spacing: 0.05em; color: var(--muted);
}
.eyebrow i { width: 6px; height: 6px; background: var(--accent); }
h1 {
  margin: 0 auto; max-width: 880px;
  font-size: clamp(36px, 6vw, 64px); font-weight: 400; line-height: 1.08; letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 .hl { background: var(--accent); color: var(--accent-ink); padding: 0 0.2em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .sub { margin: 28px auto 0; max-width: 640px; font-size: 18px; line-height: 1.5; color: var(--muted); }
.hero .sub b { color: var(--text); font-weight: 400; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.microcopy { margin: 16px 0 0; font-size: 14px; color: var(--faint); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 960px; margin: 72px auto 0; border: 1px solid var(--line); }
.stats div { padding: 24px 16px; text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-family: var(--mono); font-size: 32px; font-weight: 400; letter-spacing: -0.04em; line-height: 1.2; }
.stats span { display: block; margin-top: 6px; font-size: 12px; letter-spacing: 0.05em; color: var(--faint); }

/* Code window */
.window {
  margin: 16px auto 0; max-width: 960px; text-align: left;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); overflow: hidden;
}
.window-bar { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab {
  appearance: none; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--faint);
  font-size: 12px; letter-spacing: 0.05em; padding: 12px 18px; cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.window-body { display: grid; grid-template-columns: 1.35fr 1fr; }
.window-body > div { min-width: 0; }
.window-body > div + div { border-left: 1px solid var(--line); }
.pane-label { margin: 0; padding: 14px 16px 0; font-size: 11px; color: var(--faint); letter-spacing: 0.08em; }
pre { margin: 0; padding: 12px 16px 18px; overflow-x: auto; line-height: 1.65; color: var(--code); white-space: pre-wrap; overflow-wrap: anywhere; }
pre .k { color: var(--code-key); }
pre .s { color: var(--code-string); }
pre .c { color: var(--faint); }

/* Sections */
section { padding: 80px 0; background: var(--bg); color: var(--text); }
section + section { border-top: 1px solid var(--line); }
h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
section > .wrap > h2 { text-align: center; max-width: 22em; margin-inline: auto; }
.section-lede { margin: 16px auto 0; max-width: 62ch; color: var(--muted); font-size: 18px; text-align: center; }
h3 { margin: 0; font-size: 20px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.25; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 48px; }
.wrap > .cards:first-child, .wrap > .table-wrap:first-child { margin-top: 0; }
.card { background: var(--surface); border: 1px solid var(--line); padding: 20px; }
.card h3 { font-size: 22px; }
.card p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.card .glyph {
  width: 32px; height: 32px; margin-bottom: 40px;
  display: grid; place-items: center; border: 1px solid var(--line); background: var(--bg); color: var(--accent-text);
}
.card .glyph svg { width: 16px; height: 16px; }

/* Tables */
.table-wrap { margin-top: 40px; border: 1px solid var(--line); overflow-x: auto; background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { font-size: 12px; color: var(--faint); letter-spacing: 0.05em; }
tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td code { color: var(--text); }
td:last-child { color: var(--muted); }
.after-table { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; counter-reset: step; border: 1px solid var(--line); background: var(--surface); }
.step { padding: 20px 20px 24px; counter-increment: step; }
.step + .step { border-left: 1px solid var(--line); }
.step::before {
  content: "0" counter(step); display: inline-grid; place-items: center; width: 24px; height: 24px;
  background: var(--surface-2); font-size: 12px; letter-spacing: -0.02em; color: var(--muted);
}
.step h3 { margin-top: 40px; font-size: 22px; }
.step p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; }
.price-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); padding: 20px; }
.price-card.featured { border-color: var(--accent); box-shadow: inset 0 2px 0 var(--accent); }
.price-card h3 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.price-card .price { margin: 10px 0 0; font-size: 38px; letter-spacing: -0.04em; line-height: 1.2; }
.price-card .price span { font-size: 13px; color: var(--muted); letter-spacing: 0; }
.price-card ul { list-style: none; margin: 20px 0 24px; padding: 0; color: var(--muted); font-size: 14px; }
.price-card li { padding: 9px 0; border-top: 1px solid var(--line); }
.price-card li b { color: var(--text); font-weight: 500; }
.price-card .btn { margin-top: auto; }
.price-notes { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.price-notes li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; background: var(--accent); vertical-align: middle; }

/* FAQ. A section that holds only a heading and the list puts them side by side. */
.faq { margin-top: 32px; max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 40px 24px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { display: inline; font-size: 16px; letter-spacing: 0; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 20px; font-family: var(--mono); font-size: 18px; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: -8px 0 24px; color: var(--muted); max-width: 70ch; }
section > .wrap:has(> h2:first-child + .faq:last-child) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 48px; align-items: start; }
section > .wrap:has(> h2:first-child + .faq:last-child) > h2 { text-align: left; margin: 0; max-width: 9em; }
section > .wrap:has(> h2:first-child + .faq:last-child) > .faq { margin: 0; max-width: none; }

/* Final call to action */
.final { text-align: center; }
.final p { margin: 16px auto 0; max-width: 54ch; color: var(--muted); font-size: 18px; }
.final .hero-cta { margin-top: 32px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.2fr repeat(5, 1fr); gap: 40px 24px; }
.foot > div + div { border-top: 1px solid var(--line); padding-top: 20px; }
.foot h4 { margin: 0 0 14px; font-size: 12px; letter-spacing: 0.05em; color: var(--faint); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 10px 0; font-size: 12px; letter-spacing: 0.02em; line-height: 1.4; overflow-wrap: anywhere; }
.foot li a { text-decoration: none; }
.foot li a:hover { color: var(--accent-text); }
.foot .about { color: var(--muted); max-width: 30ch; margin: 16px 0 0; }
.foot .about a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.disclaimer { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; max-width: 90ch; }

/* Shared helpers */
.center { text-align: center; margin-inline: auto; }
.spaced { margin-top: 28px; }
h3.spaced { margin-bottom: 10px; }

.crumbs { margin-top: 12px; font-size: 12px; letter-spacing: 0.05em; color: var(--faint); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 10px 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--muted); }

.page-hero { padding: 72px 0 80px; text-align: center; }
.page-hero h1 { max-width: 920px; font-size: clamp(34px, 5.2vw, 56px); }
.page-hero .sub { margin: 24px auto 0; max-width: 62ch; font-size: 18px; color: var(--muted); }
.page-hero .sub.wide { max-width: 74ch; }
.page-hero .sub b { color: var(--text); font-weight: 500; }

/* Command line box */
.cmd { margin: 56px auto 0; text-align: center; }
.cmd-pill {
  display: inline-flex; align-items: center; gap: 12px; max-width: min(760px, 100%); text-align: left;
  padding: 10px 10px 10px 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.cmd-prompt { font-family: var(--mono); font-size: 13px; color: var(--accent-text); white-space: nowrap; align-self: flex-start; line-height: 1.6; }
.cmd-pill code { font-size: 13px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.cmd-copy {
  flex-shrink: 0; width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--muted); cursor: pointer;
}
.cmd-copy:hover { background: var(--surface-2); color: var(--text); }
.cmd-copy.copied { color: var(--ok); }
.cmd-copy svg { width: 16px; height: 16px; }
.cmd-caption { margin: 12px 0 0; font-size: 14px; color: var(--faint); }
.cmd-caption a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.prose .cmd, section .wrap > .cmd { text-align: left; margin-top: 12px; }

/* Big price */
.price-band { text-align: center; }
.big-price { margin: 32px 0 0; display: flex; align-items: baseline; justify-content: center; gap: 16px; flex-wrap: wrap; }
.big-price b {
  font-family: var(--mono); font-size: clamp(56px, 12vw, 128px); font-weight: 400; letter-spacing: -0.06em; line-height: 1; color: var(--accent);
}
.big-price span, .big-price small { font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.big-price-sub { margin: 20px auto 0; max-width: 70ch; font-size: 16px; color: var(--muted); }
.big-price-sub b { color: var(--text); }
.price-band .pricing { text-align: left; }
.price-band .price-notes { justify-content: center; }
.pricing.cols-4 { grid-template-columns: repeat(4, 1fr); }
.pricing.cols-2 { grid-template-columns: repeat(2, 1fr); }
.price-card .per-k { margin: 28px 0 0; }
.price-card .per-k b { display: block; font-size: 40px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; }
.price-card .per-k span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.price-card.enterprise { background: var(--surface-2); }

/* Comparison table */
.compare table { min-width: 880px; }
.compare thead th { padding: 18px; vertical-align: top; }
.compare thead th small, .compare td small { display: block; margin-top: 3px; font-family: var(--sans); font-size: 12px; color: var(--faint); text-transform: none; letter-spacing: 0; }
.compare th[scope="row"] { font-family: var(--sans); font-size: 14px; color: var(--text); text-transform: none; letter-spacing: 0; white-space: nowrap; }
.compare td { color: var(--muted); vertical-align: middle; padding-top: 16px; padding-bottom: 16px; }
.compare td:last-child { color: var(--muted); }
.row-icon {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 12px; vertical-align: middle;
  border: 1px solid var(--line); background: var(--bg); color: var(--muted);
}
.row-icon svg { width: 14px; height: 14px; }
.compare .us { background: var(--accent-soft); border-left: 1px solid var(--accent-line); border-right: 1px solid var(--accent-line); }
.compare thead .us { color: var(--accent-text); box-shadow: inset 0 2px 0 var(--accent); }
.compare td.us { color: var(--text); font-weight: 500; }
.compare td.us.win::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; background: var(--accent); vertical-align: middle; }
.compare td.us small { color: var(--muted); font-weight: 400; }
tr.ours td { background: var(--accent-soft); color: var(--text); }
tr.ours td:first-child { font-weight: 500; color: var(--accent-text); }
.badge {
  display: inline-block; margin-left: 10px; padding: 2px 6px; border: 1px solid var(--ok); color: var(--ok);
  font-size: 11px; letter-spacing: 0.04em; white-space: nowrap;
}

/* Cards as links, three-up */
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card.link { display: block; position: relative; padding-right: 44px; transition: border-color 0.15s; }
.card.link::after { content: "↗"; position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: 14px; color: var(--faint); }
.card.link:hover { border-color: var(--text); }
.card.link:hover::after { color: var(--accent-text); }

/* Code blocks outside the hero window */
pre.code { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); padding: 16px 18px; white-space: pre; overflow-x: auto; overflow-wrap: normal; }

/* Articles: guides, about, legal, API reference */
.prose { padding: 56px 0 80px; }
.prose .wrap { max-width: 800px; }
.prose h1 { max-width: none; margin: 0; font-size: clamp(32px, 4.6vw, 48px); }
.prose .meta { margin: 16px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.prose .summary { margin: 32px 0 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--accent); color: var(--muted); font-size: 16px; }
.prose .summary b, .prose strong, .prose li b { color: var(--text); font-weight: 500; }
.prose h2 { margin: 56px 0 0; font-size: 28px; letter-spacing: -0.02em; line-height: 1.2; }
.prose h3 { margin: 28px 0 0; }
.prose p, .prose li { color: var(--muted); }
.prose p { margin: 14px 0 0; }
.prose ul, .prose ol { margin: 14px 0 0; padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose li::marker { color: var(--faint); }
.prose .table-wrap { margin-top: 16px; }
.prose td { vertical-align: top; color: var(--muted); }
.prose td:first-child { color: var(--text); }
.prose .faq { margin-top: 16px; }
.prose .note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.prose :not(pre) > code { padding: 1px 5px; background: var(--surface-2); color: var(--text); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc a { padding: 5px 10px; border: 1px solid var(--line); font-size: 12px; letter-spacing: 0.03em; color: var(--muted); }
.toc a:hover { color: var(--text); border-color: var(--text); }
.docs h2 { scroll-margin-top: calc(var(--nav-h) + 32px); }
.docs .table-wrap { margin-top: 16px; }
.docs .response-example { margin-top: 12px; border: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 32px); }
.docs .response-example summary { padding: 12px 16px; cursor: pointer; font-size: 13px; color: var(--muted); }
.docs .response-example[open] summary { border-bottom: 1px solid var(--line); }
.docs .response-example > p { margin: 12px 16px 0; font-size: 14px; }
.docs .response-example pre.code { margin: 12px 16px 16px; max-height: 480px; overflow: auto; }

/* Pricing page: segmented switch, split hero, calculator, price list */
.seg { display: inline-flex; margin-top: 40px; border: 1px solid var(--line-strong); }
.seg-btn {
  appearance: none; cursor: pointer; font-size: 13px; letter-spacing: -0.011em;
  padding: 9px 22px; border: 0; border-radius: 0; background: transparent; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; line-height: 1.3;
}
.seg-btn + .seg-btn { border-left: 1px solid var(--line-strong); }
.seg-btn small { font-size: 10px; letter-spacing: 0.1em; color: var(--faint); }
.seg-btn[aria-selected="true"] { background: var(--text); color: var(--bg); }
.seg-btn[aria-selected="true"] small { color: inherit; opacity: 0.6; }

.price-split { display: grid; grid-template-columns: 1.45fr 1fr; gap: 12px; align-items: stretch; }
.price-hero-card {
  position: relative; padding: 32px; border: 1px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column; align-items: flex-start;
}
.tag { display: inline-block; padding: 2px 6px; border: 1px solid var(--accent-text); color: var(--accent-text); font-size: 12px; letter-spacing: 0.04em; }
.price-hero-card .big-price { justify-content: flex-start; margin-top: 24px; }
.price-hero-card .big-price b { font-size: clamp(52px, 8.5vw, 104px); }
.price-hero-card .big-price-sub { margin-inline: 0; text-align: left; }
.price-hero-card > .muted { margin: 14px 0 0; max-width: 52ch; font-size: 14px; }
.rate-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.rate-chips span { padding: 4px 10px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.rate-chips b { color: var(--text); font-family: var(--mono); font-weight: 400; }
.checks { list-style: none; margin: 24px 0 28px; padding: 0; color: var(--muted); }
.checks li { position: relative; padding: 5px 0 5px 20px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 6px; height: 6px; background: var(--accent); }
.checks b { color: var(--text); }
.price-hero-card .btn { margin-top: auto; }

.topup, .calc, .answer-box { padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.topup { display: flex; flex-direction: column; }
.topup-title { font-size: 22px; letter-spacing: -0.01em; text-align: left; }
.topup > .muted { margin: 8px 0 0; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip-btn {
  appearance: none; cursor: pointer; font-size: 13px;
  padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 0; background: transparent; color: var(--text);
}
.chip-btn:hover { border-color: var(--text); }
.chip-btn.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.topup-label { margin-top: 24px; font-size: 11px; letter-spacing: 0.08em; color: var(--faint); }
.topup-input { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 0 16px; height: 52px; border: 1px solid var(--line-strong); background: var(--bg); }
.topup-input span { color: var(--faint); font-family: var(--mono); font-size: 18px; }
.topup-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-family: var(--mono); font-size: 20px; }
.topup-input:focus-within { border-color: var(--accent); }
.topup-result { margin-top: 12px; padding: 16px; border: 1px solid var(--line); background: var(--bg); }
.topup-result p { margin: 0; color: var(--muted); }
.topup-result b { font-family: var(--mono); font-size: 24px; font-weight: 400; letter-spacing: -0.04em; color: var(--text); }
.topup-result .topup-note { margin-top: 6px; font-size: 13px; color: var(--faint); }
.btn.block { width: 100%; margin-top: 16px; }
.topup-foot { margin: 12px 0 0; font-size: 12px; color: var(--faint); text-align: center; }
.perks { margin-top: 12px; }

.answer-box { max-width: 860px; margin-inline: auto; padding: 32px; }
.answer-box h2 { font-size: 28px; text-align: left; }
.answer-box p { margin: 12px 0 0; color: var(--muted); }
.answer-box b { color: var(--text); }
.kicker { margin: 0 0 10px; font-size: 12px; letter-spacing: 0.05em; color: var(--faint); }
section > .wrap > .kicker { text-align: center; margin-bottom: 16px; }

.price-list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.price-list-head b { display: block; font-size: 18px; font-weight: 400; }
.price-list-head span { font-size: 13px; color: var(--faint); }
.price-list-head i { display: inline-block; width: 6px; height: 6px; margin-right: 8px; background: var(--ok); vertical-align: middle; }
.price-list-head input { width: min(340px, 100%); height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--bg); color: var(--text); font-family: var(--mono); font-size: 13px; }
.price-list-head input:focus { outline: 0; border-color: var(--accent); }
.price-list td { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.price-list td b { color: var(--text); font-weight: 400; }
.price-list td:last-child { color: var(--faint); }
.group-row th { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); color: var(--text); }
.group-row th span { float: right; padding: 0 6px; border: 1px solid var(--line-strong); font-size: 11px; color: var(--muted); letter-spacing: 0; }
.method { display: inline-block; padding: 1px 6px; border: 1px solid var(--ok); color: var(--ok); font-size: 11px; }

.calc { max-width: 900px; margin-inline: auto; }
.calc .topup-input { max-width: 340px; }

/* Small-screen menu. A details element, so it opens without JavaScript. */
.nav-menu { display: none; position: relative; }
.nav-menu summary {
  display: grid; place-items: center; width: 35px; height: 35px; cursor: pointer; list-style: none;
  border: 1px solid var(--line-strong); color: var(--text);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu nav {
  position: absolute; right: -9px; top: calc(100% + 16px); min-width: 220px; display: grid;
  background: var(--surface-2); border: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-menu nav a { padding: 14px 16px; font-size: 13px; color: var(--muted); }
.nav-menu nav a + a { border-top: 1px solid var(--line); }
.nav-menu nav a:hover, .nav-menu nav a[aria-current="page"] { color: var(--text); background: var(--surface); }

@media (max-width: 1080px) {
  .nav-links { gap: 20px; }
  .pricing.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: repeat(3, 1fr); }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards.three, .pricing, .steps, .price-split { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); }
  .step h3 { margin-top: 20px; }
  .window-body { grid-template-columns: 1fr; }
  .window-body > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .price-hero-card { padding: 24px; }
  section > .wrap:has(> h2:first-child + .faq:last-child) { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .wrap { gap: 8px; }
  .nav-cta { margin-left: auto; }
  .nav-cta .btn.ghost { display: none; }
  .nav-menu { display: block; }
  .pricing.cols-4, .pricing.cols-2 { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .cmd-prompt { display: none; }
}
@media (max-width: 640px) {
  .announce { font-size: 13px; }
  .hero { padding: 64px 0 56px; }
  .page-hero { padding: 48px 0 56px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats b { font-size: 26px; }
  .cards { grid-template-columns: 1fr; }
  .card .glyph { margin-bottom: 24px; }
  section { padding: 56px 0; }
  .section-lede, .hero .sub, .page-hero .sub, .final p { font-size: 16px; }
  .prose td:first-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav, .nav-links a, .card.link { transition: none; }
}

/* Home: what changed for Reddit developers */
.hurdles .card { display: flex; flex-direction: column; }
.hurdles .tag { align-self: flex-start; margin: 0 0 32px; }
.hurdles .card p.answer { margin-top: auto; padding-top: 20px; color: var(--text); font-weight: 500; }
.hurdles .card p.answer::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; background: var(--accent); vertical-align: middle; }
.price-band .table-wrap { margin-top: 32px; text-align: left; }
.price-band .table-wrap + .after-table { margin-bottom: 8px; }
section .wrap > .cards + .cmd { text-align: center; margin-top: 40px; }

/* Call-to-action rows use a rounded, glowing accent button instead of the square mono one. */
.hero-cta .btn {
  min-height: 54px; padding: 14px 32px; border-radius: 999px;
  font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; text-transform: none;
}
.hero-cta .btn.primary {
  background: linear-gradient(180deg, #ff6f35 0%, #f24a00 100%); color: #ffffff; border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 92, 26, 0.35), 0 10px 36px rgba(255, 92, 26, 0.45);
}
.hero-cta .btn.primary:hover { background: linear-gradient(180deg, #ff7d49 0%, #ff5512 100%); border-color: rgba(255, 255, 255, 0.4); box-shadow: 0 0 0 1px rgba(255, 92, 26, 0.5), 0 12px 44px rgba(255, 92, 26, 0.6); }
.hero-cta .btn.ghost { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.hero-cta .btn.ghost:hover { border-color: var(--text); }
@media (max-width: 640px) { .hero-cta .btn { width: 100%; font-size: 16px; } }

/* Home: logo strip under the hero */
section.logos { padding: 48px 0; }
section.logos .kicker { margin-bottom: 28px; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 56px; }
.logo-row img { height: 28px; width: auto; max-width: 150px; object-fit: contain; opacity: 0.55; filter: grayscale(1); transition: opacity 0.2s, filter 0.2s; }
.logo-row img:hover { opacity: 0.95; filter: none; }

/* Home: wide feature block with the request example beside it */
.feature-wide { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 40px; align-items: center; margin-top: 12px; padding: 40px; border: 1px solid var(--line); background: var(--surface); }
.feature-wide h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; line-height: 1.1; }
.feature-wide p { margin: 16px 0 0; color: var(--muted); }
.feature-wide .window { margin: 0; max-width: none; }
.feature-wide .window-body { grid-template-columns: 1fr; }
.feature-wide .window-body > div + div { border-left: 0; border-top: 1px solid var(--line); }
.feature-wide .window-body > div + div pre { max-height: 190px; overflow: auto; }
#why .stats { max-width: none; margin-top: 12px; background: var(--surface); }

/* Price bars: one scale from zero, our row in the accent, text in text colors */
.bars { margin: 40px auto 0; max-width: 860px; padding: 24px; border: 1px solid var(--line); background: var(--surface); text-align: left; }
.bars figcaption { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.bars ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 132px minmax(0, 1fr) 96px; align-items: center; gap: 16px; font-size: 14px; }
.bar-name { color: var(--muted); }
.bar-track { display: block; height: 14px; }
.bar-fill { display: block; height: 100%; min-width: 2px; background: var(--line-strong); border-radius: 0 4px 4px 0; }
.bar-value { font-family: var(--mono); font-size: 13px; color: var(--text); white-space: nowrap; }
.bar-value b { font-weight: 400; }
.bar-value small { display: block; font-family: var(--sans); font-size: 11px; color: var(--faint); }
.bars li.ours .bar-name { color: var(--text); font-weight: 500; }
.bars li.ours .bar-fill { background: var(--accent); }
.bars li.closed { margin-top: 8px; padding-top: 14px; border-top: 1px dashed var(--line); grid-template-columns: 132px minmax(0, 1fr); }
.bar-closed { font-size: 13px; color: var(--faint); }

/* Customer quotes */
.quotes { margin-top: 40px; }
.quote { margin: 0; display: flex; flex-direction: column; padding: 28px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption > span:nth-child(2) { flex: 1; min-width: 0; }
.quote figcaption img, .quote-initial { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.quote-initial { display: grid; place-items: center; background: var(--surface-2); font-family: var(--mono); color: var(--muted); }
.quote figcaption b { display: block; font-weight: 500; }
.quote figcaption small { display: block; font-size: 13px; color: var(--faint); }
.quote .quote-headline { margin: 28px 0 0; font-size: 24px; line-height: 1.2; letter-spacing: -0.015em; color: var(--text); }
.quote .quote-headline em { font-style: normal; color: var(--accent-text); }
.quote blockquote { margin: 14px 0 28px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.quote .quote-company { margin: auto 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }

@media (max-width: 960px) {
  .feature-wide { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
}
@media (max-width: 640px) {
  .logo-row { gap: 20px 32px; }
  .logo-row img { height: 22px; }
  .bars { padding: 16px; }
  .bars li { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
}

/* Discount badge on the corner of a top-up amount */
.chips { padding-top: 8px; }
.chip-btn { position: relative; }
.chip-off { position: absolute; top: -10px; right: -8px; padding: 1px 5px; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: 10px; font-style: normal; line-height: 14px; letter-spacing: 0; }
.chip-btn.on .chip-off { outline: 1px solid var(--surface); }
.price-band .price-split { margin-top: 40px; text-align: left; }
.price-band .price-hero-card .big-price-sub { max-width: none; }
#pipeline .feature-wide { margin-top: 0; }
@media (max-width: 640px) { .bars li.closed { grid-template-columns: 1fr; } }

/* Developer stories: short voice, person, and a readable expanded scenario. */
#customers { scroll-margin-top: 84px; }
#customers h2 { text-align: left; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -.045em; }
#customers .eyebrow { margin-bottom: 20px; }
#customers .stories-accent { color: var(--accent-text); }
#customers .quotes { gap: 18px; align-items: start; }
#customers .quote { min-height: 410px; transition: border-color .2s, transform .2s; }
#customers .quote:hover { border-color: var(--accent-text); transform: translateY(-3px); }
#customers .quote-scenario { margin: 0 0 24px; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent-text); }
#customers figcaption img { width: 52px; height: 52px; filter: grayscale(100%); }
#customers .quote-headline { font-size: 25px; line-height: 1.18; min-height: 88px; }
#customers blockquote { font-size: 14px; line-height: 1.75; }
#customers .quote-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#customers .quote-story { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 15px; }
#customers .quote-story summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; font: 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
#customers .quote-story summary::-webkit-details-marker { display: none; }
#customers .quote-story summary span { color: var(--accent-text); }
#customers .quote-story[open] summary span { transform: rotate(90deg); }
#customers .quote-story > p { margin: 18px 0 0; font-size: 14px; line-height: 1.75; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { #customers .quote { transition: none; } #customers .quote:hover { transform: none; } }
@media (max-width: 640px) { #customers .quote { min-height: 0; padding: 24px; } #customers .quote-headline { min-height: 0; } }
