/* Cloak Proxy — cloakproxy.com */

:root {
  /* ProxyTech-style: blue-black canvas, lifted #2d2d2d cards, indigo–violet–blue accents */
  --bg-deep: #0a0b10;
  --bg-panel: #16171f;
  --bg-elevated: #1e1f2a;
  --bg-card: #2d2d2d;
  --bg-chrome: rgba(10, 11, 16, 0.88);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #60a5fa;
  --accent-strong: #818cf8;
  --accent-violet: #a78bfa;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --accent-glow-blue: rgba(59, 130, 246, 0.28);
  --gradient-primary: linear-gradient(92deg, #6366f1 0%, #7c3aed 42%, #2563eb 100%);
  --gradient-text: linear-gradient(105deg, #93c5fd 0%, #a78bfa 52%, #e879f9 100%);
  --success: #34d399;
  --text-on-accent: #ffffff;
  --radius: 12px;
  --radius-sm: 9px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --max: 1200px;
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.25);
  --shadow-float: 0 4px 8px rgba(0, 0, 0, 0.35), 0 22px 56px rgba(0, 0, 0, 0.45);
  --shadow-inset-shine: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --section-tint: rgba(99, 102, 241, 0.05);
  --code-bg: rgba(0, 0, 0, 0.38);
  --code-text: #e2e8f0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Native `hidden` sets display:none in the UA sheet, but author rules like `.btn { display: inline-flex }`
   win at equal specificity — restore hidden="" so Log out / panels stay suppressed until JS runs. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  /* Reserve scrollbar width so header (100%) and .wrap (100%) share the same inner width when maximized. */
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

/* Flex/grid descendants default to min-width:auto and can force page-wide overflow; keep main column shrinkable */
main {
  min-width: 0;
}

@media (min-width: 1440px) {
  :root {
    --max: 1280px;
  }
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Background mesh */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 58% at 50% -28%, rgba(99, 102, 241, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 8%, rgba(59, 130, 246, 0.12), transparent 50%),
    radial-gradient(ellipse 48% 42% at 0% 88%, rgba(167, 139, 250, 0.08), transparent 48%),
    radial-gradient(ellipse 72% 55% at 82% 100%, rgba(37, 99, 235, 0.06), transparent 52%),
    linear-gradient(180deg, #0c0d14 0%, #0a0b10 45%, #080910 100%);
  pointer-events: none;
}

/* Night sky: .bg-stars container + .bg-star spans (script.js random drift / fade) */
.bg-stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-star {
  position: absolute;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(
    circle at 35% 35%,
    rgba(255, 255, 255, 1) 0%,
    rgba(230, 240, 255, 0.92) 38%,
    rgba(180, 200, 255, 0.35) 62%,
    transparent 72%
  );
  box-shadow:
    0 0 5px 1px rgba(255, 255, 255, 0.55),
    0 0 14px 2px rgba(160, 195, 255, 0.28);
  will-change: transform, opacity;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
  animation-name: bg-star-cycle;
}

@keyframes bg-star-cycle {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.35);
  }
  10% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
  }
  42% {
    opacity: var(--star-peak, 1);
    transform: translate3d(calc(-50% + var(--star-dx) * 0.42), calc(-50% + var(--star-dy) * 0.38), 0) scale(1);
  }
  72% {
    opacity: 0.45;
    transform: translate3d(calc(-50% + var(--star-dx) * 0.88), calc(-50% + var(--star-dy) * 0.82), 0) scale(0.88);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(-50% + var(--star-dx) * 1.45), calc(-50% + var(--star-dy) * 1.35), 0) scale(0.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-star {
    animation: none !important;
    opacity: 0.25 !important;
  }
}

/* Layout — avoid vw in width math (maximize + classic scrollbar = 1px overflow on some engines) */
.wrap {
  --wrap-pad: clamp(1.25rem, 2rem, 2.75rem);
  width: min(calc(100% - 2 * var(--wrap-pad)), var(--max));
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg-chrome);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  isolation: isolate;
}

.header-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1rem;
  min-width: 0;
  padding: 1rem 0;
}

.header-inner > .logo {
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: #fff;
}

.logo--text-only {
  gap: 0;
  align-items: baseline;
}

.logo--text-only .logo-w:first-of-type {
  background-image: linear-gradient(105deg, #e2e8f0 0%, #cbd5e1 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.logo--text-only .logo-w:last-of-type {
  background-image: linear-gradient(105deg, #c7d2fe 0%, #a5b4fc 45%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.logo--text-only .logo-dot {
  flex-shrink: 0;
  width: 0.3em;
  height: 0.3em;
  align-self: baseline;
  margin-left: 0.07em;
  margin-right: 0.07em;
  background: linear-gradient(145deg, #4f46e5 0%, #6366f1 50%, #64748b 100%);
  border-radius: 1px;
  opacity: 0.95;
}

.logo.logo--text-only:hover .logo-w:first-of-type,
.logo.logo--text-only:hover .logo-w:last-of-type {
  filter: brightness(1.04);
}

.logo.logo--text-only:hover .logo-dot {
  filter: brightness(1.06);
}

.nav-desktop {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem 1rem;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.nav-desktop::-webkit-scrollbar {
  height: 5px;
}

.nav-desktop::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.nav-desktop a {
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-desktop a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-on-accent);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 4px 20px rgba(99, 102, 241, 0.35),
    0 8px 32px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 8px 28px rgba(99, 102, 241, 0.45),
    0 14px 40px rgba(37, 99, 235, 0.28);
}

.btn:disabled {
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

.btn-primary:disabled,
.btn-primary:disabled:hover,
.btn-primary:disabled:active {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
  opacity: 0.72;
  filter: grayscale(0.2);
}

.nav-toggle {
  display: none;
  padding: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-desktop {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex: none;
    flex-wrap: nowrap;
    justify-content: stretch;
    overflow-x: visible;
    overflow-y: visible;
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    gap: 0;
  }

  .header-inner {
    position: relative;
  }

  .nav-desktop.is-open {
    display: flex;
  }

  .nav-desktop a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-desktop a:last-child {
    border-bottom: 0;
  }

  .header-actions .btn-ghost {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.35rem, 6.5vw, 4.25rem) 0 clamp(3.25rem, 10vw, 6rem);
}

.hero > .wrap {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr);
  gap: clamp(1.75rem, 4.5vw, 3.25rem);
  align-items: center;
  min-width: 0;
}

/* Copy sits higher; endpoint card keeps vertical balance with the headline */
.hero-grid > :first-child {
  align-self: start;
}

@media (min-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.38fr);
  }
}

.hero-grid > * {
  min-width: 0;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #bfdbfe;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(59, 130, 246, 0.12));
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.12);
}

.hero-text-gradient {
  background-image: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero h1,
.hero h1.hero-h1-heading {
  margin: 0.55rem 0 0.75rem;
  font-family: var(--font);
  font-size: clamp(2.75rem, 6.5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--text);
  font-feature-settings: "kern" 1, "liga" 1;
}

.hero h1.hero-h1-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12em;
}

.hero h1 .hero-h1-row {
  display: block;
  max-width: 100%;
}

.hero h1 .hero-h1-row--second {
  letter-spacing: -0.03em;
}

.hero h1 .hero-title-word {
  display: inline-block;
  vertical-align: baseline;
  position: relative;
  top: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  min-width: 7.25ch;
  text-align: left;
  font-variant-numeric: tabular-nums;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Rotating hero word: random green, sticky violet, clear teal (fresh / clean exit) */
.hero[data-hero-mode="random"] h1 .hero-title-word {
  background-image: linear-gradient(105deg, #4ade80 0%, #22c55e 52%, #86efac 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero[data-hero-mode="sticky"] h1 .hero-title-word {
  background-image: linear-gradient(105deg, #a78bfa 0%, #7c3aed 48%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero[data-hero-mode="clear"] h1 .hero-title-word {
  background-image: linear-gradient(105deg, #2dd4bf 0%, #0d9488 45%, #5eead4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Headline slot: same motion as the card, but no blur so type stays crisp */
.hero h1 .hero-title-word.hero-morph-animate {
  filter: none !important;
  transition:
    opacity 0.55s cubic-bezier(0.45, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.32, 1);
}

.hero.is-hero-morph-out .hero h1 .hero-title-word.hero-morph-animate,
.hero.is-hero-morph-swap .hero h1 .hero-title-word.hero-morph-animate {
  filter: none !important;
  transform: translate3d(0, 10px, 0) scale(0.985);
}

.hero.is-hero-morph-in .hero h1 .hero-title-word.hero-morph-animate {
  filter: none !important;
}

.hero-kicker {
  margin: 0.35rem 0 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-muted);
  max-width: 36ch;
}

.hero-lead {
  margin: 0 0 1.2rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 36ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-meta--highlights {
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.35rem, 1.5vw, 0.9rem);
  width: 100%;
  max-width: 100%;
  font-size: clamp(0.65rem, 1.65vw, 0.8125rem);
  line-height: 1.25;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.15rem;
}

.hero-meta--highlights::-webkit-scrollbar {
  display: none;
}

.hero-meta--highlights > span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.trial-banner {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.22);
  border-radius: var(--radius-sm);
  max-width: 42rem;
}

.trial-banner a {
  font-weight: 600;
}

.trial-banner strong,
.trial-banner-label {
  color: var(--text);
  font-weight: 600;
}

.hero-meta-label {
  font-weight: 600;
  color: var(--text);
}

.how-it-works {
  padding: 4rem 0;
}

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  counter-reset: how-step;
}

@media (max-width: 768px) {
  .how-steps {
    grid-template-columns: 1fr;
  }
}

.how-steps > li {
  counter-increment: how-step;
  padding: 1.35rem 1.25rem 1.35rem 3.25rem;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  box-shadow: var(--shadow-soft);
}

.how-steps > li::before {
  content: counter(how-step);
  position: absolute;
  left: 1.1rem;
  top: 1.25rem;
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent);
}

.how-steps h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.how-steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.how-methodology {
  margin: 1.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 52rem;
}

/* In-page nav (#products, #pricing, …): land slightly higher than viewport top so titles clear fixed Apex chrome */
body.theme-apex:not(.app-page) main section[id],
body.theme-apex:not(.app-page) main .cta-band[id],
body.theme-apex:not(.app-page) main #live-support.trial-banner {
  scroll-margin-top: calc(var(--site-ribbon-h, 0px) + 3.85rem);
}

.trial-callout {
  max-width: 560px;
  margin: 0 auto 1.75rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(129, 140, 248, 0.22);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), var(--bg-panel));
  outline: none;
}

.trial-callout-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.trial-callout-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.trial-callout-text strong {
  color: var(--text);
}

.hero-meta strong {
  color: var(--text);
  font-weight: 600;
}

/* Hero visual — glass card + floating status pills */
.hero-visual-stack {
  position: relative;
  min-width: 0;
  min-height: 17.5rem;
}

@media (min-width: 769px) {
  .hero-visual-stack {
    min-height: 20rem;
  }
}

.hero-float-pills {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  pointer-events: none;
}

.hero-float-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.72rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e2e8f0;
  background: rgba(45, 45, 45, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.12),
    0 8px 28px rgba(0, 0, 0, 0.35);
}

.hero-float-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-float-pill-dot--ok {
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.65);
}

.hero-float-pill-dot--latency {
  background: #60a5fa;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.55);
}

@media (max-width: 768px) {
  .hero-float-pills {
    position: static;
    justify-content: flex-start;
    margin-bottom: 0.65rem;
    pointer-events: auto;
  }
}

.hero-card {
  position: relative;
  background: linear-gradient(155deg, rgba(45, 45, 45, 0.92) 0%, rgba(36, 37, 48, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.1),
    0 20px 64px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(59, 130, 246, 0.08);
  min-width: 0;
  min-height: 13.5rem;
  contain: layout;
}

@media (min-width: 769px) {
  .hero-visual-stack {
    margin-left: clamp(1.5rem, 5.25vw, 3.35rem);
    padding-top: 2.35rem;
  }
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-card-header-left {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.hero-card-header-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.hero-endpoint-strip {
  overflow-x: auto;
  overflow-y: hidden;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(100%, 22rem);
  padding-bottom: 2px;
  margin-bottom: -2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  -webkit-overflow-scrolling: touch;
}

.hero-endpoint-strip::-webkit-scrollbar {
  height: 4px;
}

.hero-endpoint-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
}

.hero-endpoint-mono {
  display: inline-block;
  white-space: nowrap;
  font-family: ui-monospace, "Cascadia Code", Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}

.hero-endpoint-dim {
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero endpoint mode label — random green, sticky violet; clear keeps previous label so use random styling while data-hero-mode="clear" */
.hero[data-hero-mode="random"] #hero-endpoint-mode,
.hero[data-hero-mode="clear"] #hero-endpoint-mode {
  color: #22c55e;
}

.hero[data-hero-mode="sticky"] #hero-endpoint-mode {
  color: #7c3aed;
}

body.theme-apex .hero[data-hero-mode="random"] #hero-endpoint-mode,
body.theme-apex .hero[data-hero-mode="clear"] #hero-endpoint-mode {
  color: #86efac;
}

body.theme-apex .hero[data-hero-mode="sticky"] #hero-endpoint-mode {
  color: #c4b5fd;
}

/* Hero: sticky / random / clear — layered fade, drift, subtle blur (script: .hero.is-hero-morph-out → … → .is-hero-morph-in; applies to code card + h1 word) */
.hero-morph-animate {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  transition:
    opacity 0.62s cubic-bezier(0.45, 0, 0.2, 1),
    transform 0.68s cubic-bezier(0.22, 1, 0.32, 1),
    filter 0.5s cubic-bezier(0.45, 0, 0.2, 1);
}

.hero-morph-animate--late {
  transition-delay: 0.1s, 0.1s, 0.08s;
}

.hero.is-hero-morph-out .hero-morph-animate,
.hero.is-hero-morph-swap .hero-morph-animate {
  opacity: 0;
  transform: translate3d(0, 16px, 0) scale(0.96);
  filter: blur(3px);
  will-change: opacity, transform, filter;
}

.hero.is-hero-morph-swap .hero-morph-animate {
  transition: none;
}

.hero.is-hero-morph-in .hero-morph-animate {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  will-change: opacity, transform, filter;
}

.hero.is-hero-morph-in .hero-morph-animate--late {
  transition-delay: 0.12s, 0.12s, 0.1s;
}

/* "clear" step: hero card preview (endpoint + curl block) stays on previous frame — no fade/blur */
.hero.is-hero-morph-out .hero-card.hero-card-preview-frozen .hero-morph-animate,
.hero.is-hero-morph-swap .hero-card.hero-card-preview-frozen .hero-morph-animate,
.hero.is-hero-morph-in .hero-card.hero-card-preview-frozen .hero-morph-animate {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-morph-animate {
    transition: none !important;
    filter: none !important;
  }

  .hero-morph-animate--late {
    transition-delay: 0s !important;
  }

  .hero.is-hero-morph-out .hero-morph-animate,
  .hero.is-hero-morph-swap .hero-morph-animate,
  .hero.is-hero-morph-in .hero-morph-animate {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .hero.is-hero-morph-out .hero h1 .hero-title-word.hero-morph-animate,
  .hero.is-hero-morph-swap .hero h1 .hero-title-word.hero-morph-animate,
  .hero.is-hero-morph-in .hero h1 .hero-title-word.hero-morph-animate {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.75);
  margin-right: 0.35rem;
}

.code-block {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--code-text);
  background: var(--code-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.25rem;
  overflow-x: auto;
}

.code-block .k {
  color: #7dd3fc;
}

.code-block .s {
  color: #86efac;
}

.code-block .c {
  color: #64748b;
  font-style: italic;
}

/* Geo pool preview (sample markets + and more) */
section.geo-pool-preview {
  padding: 2rem 0 2.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--section-tint);
}

.geo-pool-preview-title {
  margin: 0 0 1.35rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #b8c9e8;
  text-align: center;
}

.geo-pool-preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  max-width: 52rem;
  margin-inline: auto;
}

@media (min-width: 720px) {
  .geo-pool-preview-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem 1.5rem;
  }
}

.geo-pool-preview-list > li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(45, 45, 45, 0.78);
  box-shadow: var(--shadow-soft);
}

.geo-pool-preview-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}

.geo-pool-preview-count {
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  line-height: 1.25;
}

.geo-pool-preview-flag {
  flex-shrink: 0;
  font-size: 1.35rem;
  line-height: 1;
}

.geo-pool-preview-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.geo-pool-preview-more {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Section common */
section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-head--centered {
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  text-align: center;
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 700px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  padding: 1.75rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.08);
}

.product-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent);
  margin-bottom: 1rem;
}

.product-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.product-card p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.product-showcase {
  max-width: 640px;
  margin-inline: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, var(--bg-panel) 0%, var(--bg-elevated) 100%);
  box-shadow: var(--shadow-float);
}

.product-showcase-inner {
  padding: 2rem 2rem 1.75rem;
  text-align: center;
}

.product-icon--large {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  border-radius: 14px;
}

.product-showcase h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.product-showcase-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  text-align: left;
  max-width: 520px;
  margin-inline: auto;
}

.product-showcase-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.product-showcase-list li:last-child {
  border-bottom: 0;
}

.product-showcase-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.product-tags--center {
  justify-content: center;
}

.product-legal-note {
  margin: 1.25rem auto 0;
  max-width: 560px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* NOWPayments checkout */
.np-section {
  padding: clamp(3rem, 8vw, 4.5rem) 0;
  background: var(--section-tint);
  border-block: 1px solid var(--border);
}

.np-checkout-root {
  max-width: 900px;
  margin: 0 auto 1rem;
  min-height: 120px;
}

.np-presets-intro {
  text-align: center;
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.np-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 1rem;
  justify-items: stretch;
}

@media (max-width: 400px) {
  .np-preset-grid {
    grid-template-columns: 1fr;
  }

  .np-preset-card {
    max-width: none;
  }
}

.np-preset-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 200px;
  padding: 1.1rem 1rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.np-preset-card:hover {
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.np-preset-card:active {
  transform: scale(0.98);
}

button.np-preset-card {
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.np-preset-usd {
  display: block;
  margin: 0 0 0.25rem;
}

.np-preset-gb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.np-preset-badge {
  display: block;
  width: 148px;
  height: auto;
  max-width: 100%;
}

.np-iframe {
  display: block;
  width: 100%;
  min-height: 560px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
}

.np-checkout-btn {
  display: inline-flex;
}

.np-placeholder {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(100, 116, 139, 0.35);
  background: var(--bg-elevated);
  text-align: center;
}

.np-placeholder-title {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: var(--text);
}

.np-placeholder-text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 42ch;
  margin-inline: auto;
}

.np-placeholder-steps {
  margin: 0 auto 1.25rem;
  padding: 0;
  max-width: 38rem;
  text-align: left;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.np-placeholder-steps li {
  margin-bottom: 0.35rem;
}

.np-placeholder-link {
  font-weight: 600;
  font-size: 0.95rem;
}

.np-fineprint {
  margin: 1.5rem auto 0;
  max-width: 560px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.np-fineprint code {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--accent);
}

/* Use cases */
.use-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.use-grid > * {
  min-width: 0;
}

@media (max-width: 900px) {
  .use-grid {
    grid-template-columns: 1fr;
  }
}

.use-item {
  padding: 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  box-shadow: var(--shadow-soft);
}

.use-item h3,
.use-item-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.use-item > p:not(.use-item-title) {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

#use-cases {
  background: rgba(17, 24, 39, 0.35);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.pricing-grid > * {
  min-width: 0;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
}

.price-card {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: rgba(14, 165, 233, 0.35);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.06), var(--bg-panel));
  box-shadow: var(--shadow-float);
  position: relative;
}

.price-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-strong);
  color: var(--text-on-accent);
}

.price-card--solo.featured::before {
  display: none;
}

.pricing-single {
  max-width: 480px;
  margin-inline: auto;
}

.pricing-single .price-card h3 {
  text-align: center;
}

.pricing-single .money-strip {
  text-align: center;
}

.pricing-single .money-strip__row {
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
}

.pricing-single .money-strip__value-wrap {
  flex: 0 0 auto;
  justify-content: center;
  text-align: center;
}

.pricing-single .money-display {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.pricing-single .money-display__currency {
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  transform: translateY(-0.05em);
}

.pricing-single .money-display__int {
  font-size: clamp(2.65rem, 6.5vw, 3.35rem);
}

.pricing-single .money-display__frac {
  font-size: clamp(1.7rem, 3.8vw, 2.1rem);
}

.pricing-single .money-display__suffix {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  margin-left: 0.4rem;
}

.pricing-single .price-tagline {
  text-align: center;
}

.price-card h3 {
  margin: 0 0 0;
  font-size: 1.1rem;
  color: var(--text);
}

.price-tagline {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.price-footnote {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Invoice-style USD (mono label + $ + int + .frac + optional suffix)
   -------------------------------------------------------------------------- */
.money-strip {
  margin-top: 0.85rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.money-strip__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 1rem 1.25rem;
}

.money-strip__label {
  font-family:
    ui-monospace,
    SFMono-Regular,
    "SF Mono",
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  flex: 0 0 auto;
  white-space: nowrap;
}

.money-strip__value-wrap {
  display: flex;
  justify-content: flex-start;
  flex: 0 0 auto;
  min-width: 0;
  text-align: left;
  line-height: 1;
}

.money-display {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  max-width: 100%;
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text);
}

.money-display__currency {
  flex: 0 0 auto;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-right: 0.125rem;
  line-height: 1;
  transform: translateY(-0.06em);
}

.money-display__int {
  flex: 0 0 auto;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
}

.money-display__frac {
  flex: 0 0 auto;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1;
}

.money-display__suffix {
  flex: 0 0 auto;
  margin-left: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0;
  text-transform: none;
}

.money-display--inline {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: max-content;
  max-width: 100%;
}

/* Smaller: product tags, top-up preset buttons */
.money-display--inline .money-display__currency {
  font-size: 0.85rem;
  transform: translateY(-0.04em);
}

.money-display--inline .money-display__int {
  font-size: 1rem;
}

.money-display--inline .money-display__frac {
  font-size: 0.8rem;
}

.money-display--inline .money-display__suffix {
  font-size: 0.65rem;
  margin-left: 0.2rem;
}

.money-display--preset {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.money-display--preset .money-display__currency {
  font-size: 1rem;
  transform: translateY(-0.05em);
}

.money-display--preset .money-display__int {
  font-size: 1.5rem;
}

.money-display--preset .money-display__frac {
  font-size: 1.05rem;
}

.tag.tag--price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.6rem;
}

.price-card > p.price-footnote {
  margin: 1.5rem 0 0;
}

.price-card > p:not(.price-footnote) {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.price-card ul {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price-card li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.45rem 0;
  padding-left: 1.35rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.price-card li:last-child {
  border-bottom: 0;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.price-card .btn {
  width: 100%;
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 1100px) {
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.trust-item {
  min-width: 0;
  text-align: center;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  box-shadow: var(--shadow-soft);
}

.trust-item strong,
.trust-item-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.25rem;
}

.trust-item strong a,
.trust-item-title a {
  color: inherit;
  text-decoration: none;
}

.trust-item strong a:hover,
.trust-item-title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.trust-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin-inline: auto;
}

details.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  margin-bottom: 0.65rem;
  overflow: hidden;
}

details.faq summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 400;
}

details.faq[open] summary::after {
  content: "−";
}

details.faq .faq-body {
  padding: 0 1.25rem 1.15rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: -1px;
  padding-top: 1rem;
  overflow-wrap: anywhere;
}

/* CTA band */
.cta-band {
  margin: 2rem 0 0;
  padding: clamp(2.5rem, 6vw, 3.5rem);
  border-radius: var(--radius);
  border: 1px solid rgba(14, 165, 233, 0.2);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), var(--bg-panel));
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text);
}

.cta-band p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  background: var(--bg-panel);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-grid > * {
  min-width: 0;
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand p {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 280px;
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-domain-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-domain-favicon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
  border-radius: 4px;
}

.footer-bottom a.footer-domain-name {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a.footer-domain-name:hover {
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Fallback when Tawk.to IDs are not set yet (hidden automatically once Tawk loads). */
.pp-telegram-fab {
  position: fixed;
  z-index: 99990;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.5);
  background: linear-gradient(135deg, #229ed9, #0088cc);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  cursor: pointer;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0s linear 0s;
}

.pp-telegram-fab:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.08);
}

.pp-telegram-fab svg {
  flex-shrink: 0;
  opacity: 0.95;
}

.pp-telegram-fab.pp-telegram-fab--near-end {
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0s linear 0.22s;
}

@media (prefers-reduced-motion: reduce) {
  .pp-telegram-fab,
  .pp-telegram-fab.pp-telegram-fab--near-end {
    transition: none;
  }
}

.pp-support-fab {
  position: fixed;
  z-index: 99990;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.45);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.45),
    0 0 32px rgba(99, 102, 241, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  cursor: pointer;
}

.pp-support-fab:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.06);
}

.pp-support-fab svg {
  flex-shrink: 0;
  opacity: 0.95;
}

/* Documentation (/documentation) */
.docs-page {
  padding-top: clamp(2rem, 5vw, 3.25rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.docs-page > .wrap > .section-head {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.docs-page > .wrap > .section-head h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.docs-page > .wrap > .section-head p {
  margin: 0;
  max-width: 52rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.docs-page section {
  padding: 0;
}

.docs-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .docs-layout {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.docs-toc {
  position: sticky;
  top: calc(1rem + env(safe-area-inset-top, 0px));
  padding: 1rem 1.1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.docs-toc strong {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.docs-toc a {
  display: block;
  padding: 0.28rem 0;
  color: var(--text-muted);
  text-decoration: none;
}

.docs-toc a:hover {
  color: var(--accent);
}

.docs-toc a[aria-current="page"] {
  color: var(--accent-strong);
  font-weight: 600;
}

.docs-article {
  min-width: 0;
}

.docs-article h2 {
  margin: 2.25rem 0 0.65rem;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  scroll-margin-top: 5.25rem;
}

.docs-article h2:first-of-type {
  margin-top: 0;
}

.docs-article p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 52rem;
}

.docs-article p:last-child {
  margin-bottom: 0;
}

.docs-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
  max-width: 52rem;
}

.docs-list li {
  margin-bottom: 0.45rem;
}

.docs-list li:last-child {
  margin-bottom: 0;
}

.docs-article .code-block {
  margin: 0.75rem 0 1.1rem;
  max-width: 52rem;
}

.docs-callout {
  padding: 0.85rem 1rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  max-width: 52rem;
}

.docs-callout code {
  font-size: 0.88em;
  color: var(--accent-strong);
}

.docs-article h3 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f1f5f9;
  scroll-margin-top: 5.25rem;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  align-items: center;
  margin: 0 0 1.75rem;
  padding: 0.75rem 1rem;
  max-width: 52rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.legal-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.legal-nav a:hover {
  text-decoration: underline;
}

.legal-nav a[aria-current="page"] {
  color: var(--text);
  pointer-events: none;
  text-decoration: none;
}

.legal-doc-meta {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 52rem;
}

.legal-important {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  max-width: 52rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   Homepage only — Apex template dark (https://apex-template-three.vercel.app/)
   Warm near-black #111, card #1a1a1a, text #f5f5f0, muted #999, inverted primary CTA.
   index.html: <body class="theme-apex"> + .site-header-pill wrapper. Scroll adds .is-scrolled.
   -------------------------------------------------------------------------- */
body.theme-apex {
  --bg-deep: #111111;
  --bg-panel: #1a1a1a;
  --bg-elevated: #222222;
  --bg-card: #1a1a1a;
  --bg-chrome: transparent;
  --border: rgba(255, 255, 255, 0.12);
  --text: #f5f5f0;
  --text-muted: #999999;
  --accent: #f5f5f0;
  --accent-strong: #e8e8e0;
  --accent-violet: #9878d4;
  --accent-glow: rgba(245, 245, 240, 0.12);
  --accent-glow-blue: rgba(245, 245, 240, 0.08);
  --gradient-primary: linear-gradient(180deg, #fafaf5 0%, #f0f0eb 100%);
  --gradient-text: linear-gradient(105deg, #f5f5f0 0%, #cfcfc8 100%);
  --success: #5cb850;
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 28px rgba(0, 0, 0, 0.25);
  --shadow-float: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-inset-shine: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --section-tint: rgba(255, 255, 255, 0.02);
  --code-bg: rgba(0, 0, 0, 0.45);
  --code-text: #ecece8;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  --apex-header-morph-duration: 0.9s;
  --apex-header-morph-ease: cubic-bezier(0.33, 1, 0.68, 1);
}

/* White status strip above fixed Apex header (index.html) */
body.theme-apex .site-status-ribbon {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  color: #525252;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  /* Mono + semibold + tabular-nums + wide tracking; size unchanged from original bar */
  font-family:
    ui-monospace,
    SFMono-Regular,
    "SF Mono",
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  font-size: 0.6875rem;
  font-weight: 600; /* font-semibold */
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em; /* tracking-widest */
  text-transform: uppercase;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.site-status-ribbon__inner {
  max-width: 100%;
}

.site-status-ribbon__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 36px;
  box-sizing: border-box;
}

.site-status-ribbon__row--mobile {
  padding: 0 0.25rem;
}

.site-status-ribbon__row--desktop {
  display: none;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
  padding: 0 0.25rem;
}

@media (min-width: 1024px) {
  .site-status-ribbon__row--mobile {
    display: none;
  }

  .site-status-ribbon__row--desktop {
    display: flex;
  }
}

.site-status-ribbon__left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.site-status-ribbon__live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #171717;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .site-status-ribbon__live {
    gap: 0.65rem;
  }
}

.site-status-ribbon__pulse {
  position: relative;
  display: inline-flex;
  width: 0.375rem;
  height: 0.375rem;
  flex-shrink: 0;
}

.site-status-ribbon__ping {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgba(23, 23, 23, 0.35);
  animation: site-status-ribbon-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.site-status-ribbon__dot {
  position: relative;
  display: inline-flex;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: #171717;
}

.site-status-ribbon__extras {
  display: none;
  align-items: center;
  gap: 0.75rem;
  color: #737373;
  font-weight: 600;
  letter-spacing: 0.1em;
}

@media (min-width: 1280px) {
  .site-status-ribbon__extras {
    display: flex;
  }
}

.site-status-ribbon__muted {
  color: #737373;
}

.site-status-ribbon__rule {
  display: inline-block;
  width: 1px;
  height: 0.75rem;
  background: rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.site-status-ribbon__link {
  color: #525252;
  text-decoration: underline dotted rgba(0, 0, 0, 0.28);
  text-underline-offset: 0.35rem;
  text-decoration-thickness: 1px;
}

.site-status-ribbon__nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-status-ribbon__nav-link {
  padding: 0 1rem;
  color: #737373;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.1em;
}

@keyframes site-status-ribbon-ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-status-ribbon__ping {
    animation: none;
    opacity: 0;
  }
}

body.theme-apex.app-page {
  --bg-chrome: rgba(17, 17, 17, 0.94);
}

/* Fixed marketing header only — avoid shifting app dashboard/login main */
body.theme-apex:has(.site-header) main {
  padding-top: calc(4.5rem + var(--site-ribbon-h, 0px));
}

body.theme-apex:has(.site-status-ribbon) {
  --site-ribbon-h: 36px;
}

body.theme-apex:has(.site-status-ribbon) .site-header {
  top: var(--site-ribbon-h);
}

body.theme-apex .bg-mesh {
  background:
    radial-gradient(ellipse 90% 60% at 50% -20%, rgba(245, 245, 240, 0.04), transparent 55%),
    linear-gradient(180deg, #121212 0%, #111111 45%, #0e0e0e 100%);
}

body.theme-apex .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  max-width: none;
  background: transparent;
  border-bottom: none;
  /* Unscrolled: no extra horizontal inset — .wrap matches hero/main; was clamp() + 72rem pill = narrower than content */
  padding: 1.5rem 0 0;
  box-sizing: border-box;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  isolation: isolate;
  transition: padding var(--apex-header-morph-duration) var(--apex-header-morph-ease);
}

body.theme-apex .site-header.is-scrolled {
  padding: 0.75rem clamp(0.75rem, 2vw, 1.25rem) 0;
}

body.theme-apex .site-header-pill {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  transition:
    max-width var(--apex-header-morph-duration) var(--apex-header-morph-ease),
    padding var(--apex-header-morph-duration) var(--apex-header-morph-ease),
    border-radius var(--apex-header-morph-duration) var(--apex-header-morph-ease),
    background-color var(--apex-header-morph-duration) var(--apex-header-morph-ease),
    border-color var(--apex-header-morph-duration) var(--apex-header-morph-ease),
    box-shadow var(--apex-header-morph-duration) var(--apex-header-morph-ease),
    backdrop-filter var(--apex-header-morph-duration) var(--apex-header-morph-ease),
    -webkit-backdrop-filter var(--apex-header-morph-duration) var(--apex-header-morph-ease);
}

body.theme-apex .site-header.is-scrolled .site-header-pill {
  /* Hug row width (compact pill), cap viewport — avoids 72rem “full bar” + 44rem clipping */
  width: fit-content;
  max-width: min(72rem, calc(100vw - 2rem));
  padding: 0.35rem clamp(0.65rem, 1.5vw, 1rem);
  border-radius: 9999px;
  background: rgba(26, 26, 26, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.18);
  overflow: visible;
}

body.theme-apex .site-header .header-inner {
  padding: 0.65rem 0;
  border-bottom: none;
  transition:
    padding var(--apex-header-morph-duration) var(--apex-header-morph-ease),
    gap var(--apex-header-morph-duration) var(--apex-header-morph-ease);
}

body.theme-apex .site-header .nav-desktop {
  transition: gap var(--apex-header-morph-duration) var(--apex-header-morph-ease);
}

body.theme-apex .site-header .nav-desktop a {
  transition: padding var(--apex-header-morph-duration) var(--apex-header-morph-ease);
}

body.theme-apex .site-header .header-actions {
  transition: gap var(--apex-header-morph-duration) var(--apex-header-morph-ease);
}

body.theme-apex .site-header .header-actions .btn {
  transition: padding var(--apex-header-morph-duration) var(--apex-header-morph-ease);
}

body.theme-apex .site-header.is-scrolled .header-inner {
  padding: 0.35rem 0;
  width: max-content;
  max-width: min(72rem, calc(100vw - 2rem));
  gap: 0.5rem 0.65rem;
}

body.theme-apex .site-header.is-scrolled .nav-desktop {
  gap: 0.2rem 0.45rem;
}

body.theme-apex .site-header.is-scrolled .nav-desktop a {
  padding: 0.3rem 0.65rem;
}

body.theme-apex .site-header.is-scrolled .header-actions {
  gap: 0.5rem;
}

body.theme-apex .site-header.is-scrolled .header-actions .btn {
  padding: 0.4rem 0.95rem;
}

body.theme-apex .logo {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

body.theme-apex .nav-desktop a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

body.theme-apex .nav-desktop a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

body.theme-apex .header-actions .btn {
  border-radius: 999px;
  font-size: 0.875rem;
  padding: 0.45rem 1.15rem;
  min-height: 2.25rem;
}

body.theme-apex .btn-primary {
  background: #f5f5f0;
  color: #111111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

body.theme-apex .btn-primary:hover {
  background: #e8e8e3;
  color: #111111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 8px 28px rgba(245, 245, 240, 0.08);
}

body.theme-apex .btn-ghost {
  background: rgba(26, 26, 26, 0.6);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.theme-apex .btn-ghost:hover {
  background: #f5f5f0;
  color: #111111;
  border-color: #f5f5f0;
}

body.theme-apex .badge {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: #222222;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

body.theme-apex .hero h1,
body.theme-apex .hero h1.hero-h1-heading {
  font-weight: 600;
  letter-spacing: -0.035em;
}

body.theme-apex .hero-text-gradient {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #f5f5f0;
  -webkit-text-fill-color: #f5f5f0;
}

body.theme-apex .hero[data-hero-mode="random"] h1 .hero-title-word {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #86efac;
  -webkit-text-fill-color: #86efac;
}

body.theme-apex .hero[data-hero-mode="sticky"] h1 .hero-title-word {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #c4b5fd;
  -webkit-text-fill-color: #c4b5fd;
}

body.theme-apex .hero[data-hero-mode="clear"] h1 .hero-title-word {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #5eead4;
  -webkit-text-fill-color: #5eead4;
}

body.theme-apex .trial-banner {
  background: rgba(34, 34, 34, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-apex .trial-callout {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), var(--bg-panel));
}

body.theme-apex .hero-float-pill {
  background: rgba(17, 17, 17, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

body.theme-apex .hero-card {
  background: linear-gradient(180deg, #1c1c1c 0%, #141414 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.theme-apex .geo-pool-preview-title {
  color: #f5f5f0;
}

body.theme-apex .geo-pool-preview-list > li {
  background: #1a1a1a;
}

body.theme-apex #use-cases {
  background: rgba(255, 255, 255, 0.03);
}

body.theme-apex .product-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body.theme-apex .product-icon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

body.theme-apex .price-card.featured {
  border-color: rgba(255, 255, 255, 0.15);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), var(--bg-panel));
}

body.theme-apex .price-card.featured::before {
  background: #f5f5f0;
  color: #111111;
}

body.theme-apex .cta-band {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), var(--bg-panel));
}

body.theme-apex a.pp-support-fab {
  border-color: rgba(255, 255, 255, 0.14);
  background: #f5f5f0;
  color: #111111;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.theme-apex a.pp-support-fab:hover {
  color: #111111;
}

body.theme-apex .code-block .k {
  color: #c4c4bc;
}

body.theme-apex a {
  color: #c8c8c0;
}

body.theme-apex a:hover {
  color: #f5f5f0;
}

/* Status ribbon: global Apex `a:hover` is near-white — keep bar links unchanged */
body.theme-apex .site-status-ribbon a.site-status-ribbon__link,
body.theme-apex .site-status-ribbon a.site-status-ribbon__link:link,
body.theme-apex .site-status-ribbon a.site-status-ribbon__link:visited,
body.theme-apex .site-status-ribbon a.site-status-ribbon__link:hover,
body.theme-apex .site-status-ribbon a.site-status-ribbon__link:active,
body.theme-apex .site-status-ribbon a.site-status-ribbon__link:focus-visible {
  font-family: inherit;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: #525252;
  text-decoration: underline dotted rgba(0, 0, 0, 0.28);
  text-underline-offset: 0.35rem;
  text-decoration-thickness: 1px;
}

body.theme-apex .site-status-ribbon a.site-status-ribbon__nav-link,
body.theme-apex .site-status-ribbon a.site-status-ribbon__nav-link:link,
body.theme-apex .site-status-ribbon a.site-status-ribbon__nav-link:visited,
body.theme-apex .site-status-ribbon a.site-status-ribbon__nav-link:hover,
body.theme-apex .site-status-ribbon a.site-status-ribbon__nav-link:active,
body.theme-apex .site-status-ribbon a.site-status-ribbon__nav-link:focus-visible {
  font-family: inherit;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: #737373;
  text-decoration: none;
}

/* Telegram FAB: body.theme-apex a beats .pp-telegram-fab — force white label + icon */
body.theme-apex a.pp-telegram-fab {
  color: #fff;
}

body.theme-apex a.pp-telegram-fab:hover {
  color: #fff;
}

body.theme-apex .btn-primary,
body.theme-apex .header-actions .btn-primary {
  color: #111111;
}

@media (max-width: 900px) {
  body.theme-apex .nav-desktop {
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  body.theme-apex .nav-desktop a {
    border-radius: 0;
  }
}

/* Mobile: legible text + 44px tap targets (Google mobile-friendly / Semrush) */
@media (max-width: 768px) {
  body.theme-apex .site-status-ribbon {
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
  }

  .site-status-ribbon__row {
    min-height: 44px;
  }

  .site-status-ribbon a.site-status-ribbon__link,
  .site-status-ribbon a.site-status-ribbon__nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.35rem 0.5rem;
  }

  .hero-meta--highlights {
    font-size: 0.8125rem;
  }

  .badge {
    font-size: 0.8125rem;
  }

  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 0.625rem;
    align-items: center;
    justify-content: center;
  }

  .header-actions .btn-primary {
    min-height: 44px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .nav-desktop a {
    min-height: 44px;
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
  }

  .footer-col a {
    min-height: 44px;
    padding: 0.625rem 0;
    display: flex;
    align-items: center;
  }

  details.faq summary {
    min-height: 44px;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
  }

  .hero-cta .btn,
  .cta-actions .btn {
    min-height: 44px;
  }

  .pp-telegram-fab,
  .pp-support-fab {
    min-height: 44px;
    min-width: 44px;
  }
}
