html {
  --theme-transition: 180ms ease;
}

body, .site-header, .site-footer, .inner-cta, .final-cta, .app-section, .download-panel,
.button, .text-link, a, .product-visual, .info-card, .related-card, .price-card,
.inner-faq-item, input, .icon-button, .workflow-card, .mini-dashboard {
  transition: background-color var(--theme-transition), color var(--theme-transition), border-color var(--theme-transition), fill var(--theme-transition), stroke var(--theme-transition);
}

[data-theme="dark"] .site-footer {
  background: linear-gradient(165deg, #0d1230, #0a0d1a 42%, #070a14);
}

[data-theme="dark"] .site-footer::before {
  display: block;
  background-image: linear-gradient(rgba(200,196,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(200,196,255,.05) 1px, transparent 1px), radial-gradient(circle at 85% 20%, rgba(107,108,255,.18), transparent 33%), radial-gradient(circle at 15% 90%, rgba(30,163,33,.12), transparent 35%);
  background-size: 48px 48px, 48px 48px, auto, auto;
}

[data-theme="dark"] .footer-action {
  border-color: rgba(200,196,255,.14);
  background: radial-gradient(circle at 90% 10%, rgba(30,163,33,.14), transparent 40%), rgba(18,22,43,.72);
}

[data-theme="dark"] .footer-column a,
[data-theme="dark"] .footer-bottom,
[data-theme="dark"] .footer-brand > p,
[data-theme="dark"] .footer-action p {
  color: rgba(255,255,255,.85);
}

[data-theme="dark"] .footer-column a:hover,
[data-theme="dark"] .footer-bottom > a:hover {
  color: #fff;
}

[data-theme="dark"] .footer-action-kicker,
[data-theme="dark"] .footer-benefits svg {
  color: #4ade80;
}

[data-theme="dark"] .inner-cta,
[data-theme="dark"] .download-panel,
[data-theme="dark"] .final-cta,
[data-theme="dark"] .app-section {
  border-color: rgba(200,196,255,.14);
  background-color: #10121c;
  background-image: linear-gradient(rgba(200,196,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(200,196,255,.05) 1px, transparent 1px), linear-gradient(145deg, #151725, #10121c);
  background-size: 48px 48px, 48px 48px, 100% 100%;
}

[data-theme="dark"] h1 em,
[data-theme="dark"] h2 em,
[data-theme="dark"] h1 span,
[data-theme="dark"] h2 span {
  color: #4ade80 !important;
}

[data-theme="dark"] .brand-name {
  color: #e8eaf8;
}

[data-theme="dark"] .text-link,
[data-theme="dark"] .use-link,
[data-theme="dark"] .all-faq-link,
[data-theme="dark"] .faq-support a,
[data-theme="dark"] .related-card h3,
[data-theme="dark"] .library-grid h3,
[data-theme="dark"] .breadcrumbs a,
[data-theme="dark"] .content-block a:not(.button):not(.text-link),
[data-theme="dark"] .section-nav a:hover,
[data-theme="dark"] .desktop-nav a:hover,
[data-theme="dark"] .desktop-nav a.active {
  color: #4ade80;
}

[data-theme="dark"] .desktop-nav a::after {
  background: #4ade80;
}

[data-theme="dark"] .button-outline,
[data-theme="dark"] .button-outline:hover {
  border-color: rgba(74,222,128,.45);
  background: #151725;
  color: #4ade80;
}

[data-theme="dark"] .button-outline:hover {
  background: rgba(74,222,128,.08);
}

[data-theme="dark"] .hero-fact svg,
[data-theme="dark"] .hero-checks svg,
[data-theme="dark"] .check-list li > svg,
[data-theme="dark"] .plan-features svg,
[data-theme="dark"] .pv-plan-features svg,
[data-theme="dark"] .pv-security-list svg,
[data-theme="dark"] .pv-connected svg {
  color: #4ade80;
}

[data-theme="dark"] .price-card.featured {
  border-color: #4ade80;
}

[data-theme="dark"] .inner-cta p,
[data-theme="dark"] .download-panel p,
[data-theme="dark"] .final-cta > p,
[data-theme="dark"] .app-copy > p {
  color: #c8cad8 !important;
}

[data-theme="dark"] .inner-cta .button-white,
[data-theme="dark"] .download-panel .button-white,
[data-theme="dark"] .final-cta .button-white {
  border-color: #137f15;
  background: #137f15;
  color: #fff;
}

[data-theme="dark"] .inner-cta .button-white:hover,
[data-theme="dark"] .download-panel .button-white:hover,
[data-theme="dark"] .final-cta .button-white:hover {
  border-color: #0f6a12;
  background: #0f6a12;
}

[data-theme="dark"] .inner-cta .button-ghost-light,
[data-theme="dark"] .download-panel .button-ghost-light,
[data-theme="dark"] .final-cta .button-ghost-light {
  border-color: rgba(74,222,128,.45);
  background: transparent;
  color: #4ade80;
}

.theme-toggle .sun-icon, .theme-toggle .moon-icon {
  transition: opacity 160ms ease, transform 160ms ease;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="dark"] .theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(40deg) scale(.65);
}

[data-theme="dark"] .theme-toggle:hover {
  border-color: rgba(61,220,132,.35);
}

/* ==========================================================================
   Typography parity with https://jesusproxy.com (same company, same type).
   Values copied from jesusproxy.com's live CSS (index-BRwrtshk.css):
   - body: Inter 500, 16px / 1.6, #1b1b1b (dark #c8cad8)
   - h1 (hero__title): Inter 700, clamp(1.75rem, 3vw + .5rem, 2.75rem),
     line-height 1.15, letter-spacing -.03em, #13009a; accent span #137f15
   - h2: Space Grotesk 700, clamp(28px, 3.4vw, 42px), 1.1, -.03em
   - h3: Space Grotesk 700, line-height 1.2, -.02em
   - lead (hero__desc): 18px / 1.65 (16px at <=1024px)
   - nav links: 15px 700, -.01em, #13009a
   Same font files as jesusproxy.com/fonts, self-hosted under /assets.
   ========================================================================== */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/inter-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("/assets/space-grotesk-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/ibm-plex-mono-400-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/ibm-plex-mono-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "Space Grotesk Fallback"; src: local("Arial"); size-adjust: 103%; ascent-override: 95%; descent-override: 24%; line-gap-override: 0%; }

:root {
  --jp-type-body: Inter, "Inter Fallback", system-ui, -apple-system, sans-serif;
  --jp-type-head: "Space Grotesk", "Space Grotesk Fallback", Inter, system-ui, sans-serif;
  --jp-type-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --jp-accent-text: #137f15;
}

body { font-family: var(--jp-type-body); font-weight: 500; line-height: 1.6; }
code, kbd, pre, samp { font-family: var(--jp-type-mono); }
h1, h2, h3, h4, h5, h6 { font-weight: 700; }

.hero h1, .inner-hero h1 {
  font-family: var(--jp-type-body);
  font-size: clamp(1.75rem, 3vw + .5rem, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.section-heading h2, .split-heading h2, .app-copy h2, .faq-intro h2, .final-cta h2,
.content-block h2, .page-heading h2 {
  font-family: var(--jp-type-head);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
}
main h3 { font-family: var(--jp-type-head); font-weight: 700; letter-spacing: -.02em; }

/* Accent words in titles: green and upright, like jesusproxy.com's .text-accent. */
.hero h1 span, .hero h1 em, .inner-hero h1 span, .inner-hero h1 em,
.section-heading h2 span, .split-heading h2 span, .faq-intro h2 span,
.content-block h2 span, .content-block h2 em, .page-heading h2 span, .page-heading h2 em,
.text-accent { color: var(--jp-accent-text) !important; font-style: normal !important; }

.hero-description, .inner-summary { font-size: 18px; line-height: 1.65; }
@media (max-width: 1024px) { .hero-description, .inner-summary { font-size: 16px; } }

.desktop-nav a { font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }

/* Tablet (601–960px): the 3-column requirements bar overflowed by ~20px. */
@media (min-width: 601px) and (max-width: 960px) {
  .requirement { min-width: 0; gap: 10px; padding-left: 14px; }
  .requirement small { font-size: 12px; }
  .requirement strong { font-size: 15px; white-space: normal; }
}

/* ---- Docs: code tabs, endpoint tables, key badges (light + dark) ---- */
.code-tabs { margin: 20px 0; }
.code-tabs-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: -8px; }
.code-tabs:not(.is-ready) .code-tabs-bar { display: none; }
.code-tabs-bar [role="tab"] { padding: 7px 14px; border: 1px solid var(--line); border-radius: 8px 8px 0 0; background: var(--surface); color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.code-tabs-bar [role="tab"][aria-selected="true"] { border-color: #000032; background: #000032; color: #fff; }
.code-tabs-bar [role="tab"]:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.code-tabs-panel .code-block { margin-top: 8px; border-top-left-radius: 0; }
.code-tabs:not(.is-ready) .code-tabs-panel .code-block { border-top-left-radius: 12px; }
.api-ref-table td:first-child { white-space: nowrap; }
.api-ref-table td:first-child .method { margin: 0 4px 4px 0; }
.api-ref-table td:nth-child(2) code { overflow-wrap: anywhere; }
.method-get { background: color-mix(in srgb, #16a34a 14%, transparent); color: #15803d; }
.method-post { background: color-mix(in srgb, #2563eb 14%, transparent); color: #1d4ed8; }
.method-patch { background: color-mix(in srgb, #d97706 16%, transparent); color: #b45309; }
.method-delete { background: color-mix(in srgb, #dc2626 14%, transparent); color: #b91c1c; }
.path-alt { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.path-alt code { font-size: 13px !important; }
.key-badge { display: inline-block; margin: 0 4px 4px 0; padding: 2px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; font-weight: 700; }
.key-badge-acct { border-color: color-mix(in srgb, var(--purple) 35%, var(--line)); color: var(--purple); }
.api-example { margin: 4px 0 24px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.api-example summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.api-example .code-block { margin-bottom: 4px; }
.article-byline { margin-bottom: 8px; }
.article-meta { color: var(--muted); font-size: 15px; }
[data-theme="dark"] .code-tabs-bar [role="tab"][aria-selected="true"] { border-color: #2a2550; background: #000032; }
[data-theme="dark"] .method-get { color: #4ade80; }
[data-theme="dark"] .method-post { color: #93c5fd; }
[data-theme="dark"] .method-patch { color: #fbbf24; }
[data-theme="dark"] .method-delete { color: #fca5a5; }
@media (max-width: 640px) {
 .api-ref-table { min-width: 640px; }
 .code-tabs-bar [role="tab"] { padding: 6px 11px; font-size: 13px; }
}
.guide-step > div { min-width: 0; }
.table-scroll { max-width: 100%; overflow-x: auto; contain: inline-size; }
.code-tabs, .code-tabs-panel { min-width: 0; max-width: 100%; }
.content-block p code, .content-block li code, .endpoint-table td code { overflow-wrap: anywhere; }
.api-ref-table td:nth-child(2) { min-width: 190px; }
.api-ref-table td:nth-child(2) code { overflow-wrap: normal; word-break: normal; }
.api-ref-table td:last-child { white-space: nowrap; }
