/* ==========================================================================
   Snipo — visual refinement layer (snipo.click)
   Presentation only. Loaded AFTER style.css / dashboard.css.
   Safe to delete: the app falls back to the stock theme.
   ========================================================================== */

:root {
  --sn-accent: #5b5bf7;
  --sn-accent-2: #22b8f0;
  --sn-accent-soft: rgba(91, 91, 247, 0.1);
  --sn-ink: #0b0b12;
  --sn-line: rgba(15, 15, 30, 0.08);
  --sn-line-strong: rgba(15, 15, 30, 0.14);
  --sn-card: #ffffff;
  --sn-shadow-sm: 0 1px 2px rgba(15, 15, 30, 0.04), 0 1px 1px rgba(15, 15, 30, 0.03);
  --sn-shadow-md: 0 1px 2px rgba(15, 15, 30, 0.04), 0 8px 24px -8px rgba(15, 15, 30, 0.1);
  --sn-shadow-lg: 0 2px 4px rgba(15, 15, 30, 0.04), 0 24px 48px -16px rgba(15, 15, 30, 0.18);
  --sn-grad: linear-gradient(135deg, var(--sn-accent) 0%, var(--sn-accent-2) 100%);
  --sn-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html.dark {
  --sn-accent: #8b8bff;
  --sn-accent-2: #38c8ff;
  --sn-accent-soft: rgba(139, 139, 255, 0.14);
  --sn-line: rgba(255, 255, 255, 0.08);
  --sn-line-strong: rgba(255, 255, 255, 0.16);
  --sn-card: rgba(255, 255, 255, 0.035);
  --sn-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sn-shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
  --sn-shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.7);
}

/* ---------- Global polish ---------- */
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
::selection {
  background: var(--sn-accent);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--sn-accent);
  outline-offset: 2px;
}
a,
button {
  transition-timing-function: var(--sn-ease);
}

/* ==========================================================================
   HOMEPAGE
   ========================================================================== */

/* Header: frosted glass */
body > header[class],
body > header[class] {
  background: rgba(250, 250, 252, 0.72) !important;
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--sn-line) !important;
}
html.dark body > header[class] {
  background: rgba(10, 10, 14, 0.72) !important;
}
body > header[class] nav[aria-label="Main"] > a,
body > header[class] nav[aria-label="Main"] button {
  position: relative;
}
body > header[class] nav[aria-label="Main"] > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--sn-grad);
  transform: scaleX(0);
  transition: transform 0.3s var(--sn-ease);
}
body > header[class] nav[aria-label="Main"] > a:hover::after {
  transform: scaleX(1);
}
/* Header CTA */
body > header[class] a[href$="/register"].bg-black,
body > header[class] a.bg-black.rounded-lg {
  background: var(--sn-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 6px 16px -6px rgba(15, 15, 30, 0.5);
  border-radius: 999px;
}
html.dark body > header[class] a.bg-black.rounded-lg,
html.dark body > header[class] a.dark\:bg-white {
  background: #fff;
}
/* Dropdown panels */
#products-menu > div,
#resources-menu > div {
  border-radius: 1rem;
  border-color: var(--sn-line);
  box-shadow: var(--sn-shadow-lg) !important;
}

/* ----- Hero ----- */
#hero {
  position: relative;
  overflow: hidden;
  border-bottom-color: var(--sn-line);
  background:
    radial-gradient(60rem 30rem at 12% -10%, var(--sn-accent-soft), transparent 60%),
    radial-gradient(40rem 24rem at 95% 10%, rgba(34, 184, 240, 0.1), transparent 60%);
}
#hero::before {
  /* faint grid */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--sn-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--sn-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 20%, transparent 75%);
  opacity: 0.55;
}
#hero > div {
  position: relative;
  border-color: transparent !important;
}
#hero .grid {
  --tw-divide-opacity: 0;
}
#hero .grid > * {
  border-color: transparent !important;
}
#hero h1 {
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
  padding-bottom: 0.08em;
  text-wrap: balance;
  background: linear-gradient(180deg, currentColor 55%, color-mix(in srgb, currentColor 62%, transparent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
#hero h1 + p {
  font-size: 1.125rem;
  line-height: 1.65;
  text-wrap: pretty;
}
/* Eyebrow pill */
#hero p.rounded-full {
  border: 1px solid var(--sn-line);
  background: var(--sn-card);
  box-shadow: var(--sn-shadow-sm);
  letter-spacing: 0.08em;
}
#hero p.rounded-full > span:first-child {
  background: var(--sn-grad);
  box-shadow: 0 0 0 4px var(--sn-accent-soft);
}

/* Shorten form: the focal point */
#hero form > div.flex {
  border-radius: 1rem;
  padding: 0.4rem;
  border: 1px solid var(--sn-line-strong);
  background: var(--sn-card);
  box-shadow: var(--sn-shadow-md);
  transition: box-shadow 0.25s var(--sn-ease), border-color 0.25s var(--sn-ease);
}
#hero form > div.flex:focus-within {
  border-color: var(--sn-accent);
  box-shadow: 0 0 0 4px var(--sn-accent-soft), var(--sn-shadow-md);
}
#hero form input#url {
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
}
#hero form button[type="submit"] {
  background: var(--sn-grad);
  color: #fff;
  border-radius: 0.7rem;
  padding: 0.65rem 1.25rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 8px 18px -8px var(--sn-accent);
  transition: transform 0.2s var(--sn-ease), box-shadow 0.2s var(--sn-ease), filter 0.2s;
}
#hero form button[type="submit"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 12px 24px -8px var(--sn-accent);
}
#hero form button[type="submit"]:active {
  transform: translateY(0);
}
#hero form button[data-copy-short],
#hero form button[data-open-modal] {
  border-radius: 0.7rem;
}
#hero #advanced input {
  border-radius: 0.75rem;
  background: var(--sn-card);
}
#output-result {
  border-radius: 1rem;
  box-shadow: var(--sn-shadow-md);
}

/* Hero CTAs */
#hero .mt-8.flex a {
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  transition: transform 0.2s var(--sn-ease), box-shadow 0.2s var(--sn-ease), background-color 0.2s;
}
#hero .mt-8.flex a.bg-black {
  background: var(--sn-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 20px -10px rgba(15, 15, 30, 0.6);
}
html.dark #hero .mt-8.flex a.bg-black,
html.dark #hero .mt-8.flex a.dark\:bg-white {
  background: #fff;
}
#hero .mt-8.flex a:hover {
  transform: translateY(-1px);
}

/* Hero visual panel */
#hero .bg-noise {
  position: relative;
  margin: 1.25rem;
  border-radius: 1.75rem;
  background:
    radial-gradient(40rem 24rem at 80% 0%, rgba(34, 184, 240, 0.55), transparent 60%),
    radial-gradient(34rem 22rem at 0% 100%, rgba(236, 72, 153, 0.35), transparent 60%),
    linear-gradient(135deg, #3b3bd8 0%, #5b5bf7 45%, #7c5cff 100%) !important;
  box-shadow: var(--sn-shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
@media (min-width: 1024px) {
  #hero .bg-noise {
    margin: 2rem 0 2rem 1rem;
  }
}
#hero .bg-noise .rounded-2xl.bg-white {
  border-radius: 1.1rem;
  box-shadow: 0 24px 48px -18px rgba(10, 10, 60, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.6) inset !important;
}
@media (prefers-reduced-motion: no-preference) {
  #hero .bg-noise .absolute.rounded-2xl {
    animation: sn-float 7s ease-in-out infinite;
  }
  #hero .bg-noise .absolute.rounded-2xl:nth-of-type(2) { animation-delay: -1.8s; }
  #hero .bg-noise .absolute.rounded-2xl:nth-of-type(3) { animation-delay: -3.6s; }
  #hero .bg-noise .absolute.rounded-2xl:nth-of-type(4) { animation-delay: -5.2s; }
  #hero .bg-noise .absolute.rounded-2xl:nth-of-type(5) { animation-delay: -2.7s; }
}
@keyframes sn-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

/* ----- Stats strip ----- */
section[aria-label] > div > .grid > div {
  position: relative;
}
section[aria-label] .tabular-nums {
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--sn-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Stats strip: tinted band with a dot grid, and raised tiles */
section[aria-label]:not(#hero) {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(42rem 16rem at 12% 0%, var(--sn-accent-soft), transparent 70%),
    radial-gradient(38rem 16rem at 92% 100%, rgba(34, 184, 240, 0.12), transparent 70%);
}
section[aria-label]:not(#hero)::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--sn-line-strong) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent);
  pointer-events: none;
}
section[aria-label]:not(#hero) > div {
  position: relative;
  z-index: 1;
  border-color: transparent !important;
}
section[aria-label]:not(#hero) > div > .grid {
  gap: 1rem;
  padding: 1.25rem 1rem;
}
section[aria-label]:not(#hero) > div > .grid > div {
  overflow: hidden;
  border: 1px solid var(--sn-line) !important;
  border-radius: 1.1rem;
  background-color: var(--sn-card);
  box-shadow: var(--sn-shadow-md);
  transition: transform 0.3s var(--sn-ease), box-shadow 0.3s var(--sn-ease);
}
section[aria-label]:not(#hero) > div > .grid > div:hover {
  transform: translateY(-3px);
  box-shadow: var(--sn-shadow-lg);
}
section[aria-label]:not(#hero) > div > .grid > div::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--sn-grad);
}
section[aria-label]:not(#hero) > div > .grid > div::after {
  content: "";
  position: absolute;
  right: -2.5rem;
  top: -2.5rem;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sn-accent-soft), transparent 70%);
  pointer-events: none;
}
section[aria-label]:not(#hero) .tabular-nums {
  text-wrap: balance;
}

/* ----- Section frames: soften the heavy boxed borders ----- */
main > section {
  border-bottom-color: var(--sn-line) !important;
}
main > section > div {
  border-color: var(--sn-line) !important;
}
main > section h2.text-3xl,
main > section h2.sm\:text-4xl {
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-wrap: balance;
}

/* Section intro headings: centred */
#core-features > div > div:first-child,
#features > div > div:first-child,
#integrations > div > div:first-child,
#testimonials > div > div:first-child {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
#core-features > div > div:first-child h2,
#features > div > div:first-child h2,
#integrations > div > div:first-child h2,
#testimonials > div > div:first-child h2 {
  line-height: 1.15;
  text-wrap: balance;
}

/* ----- Feature cards ----- */
#core-features article {
  border: 1px solid var(--sn-line);
  border-radius: 1.25rem;
  background: var(--sn-card);
  box-shadow: var(--sn-shadow-sm);
  transition: transform 0.35s var(--sn-ease), box-shadow 0.35s var(--sn-ease), border-color 0.35s;
}
#core-features article:hover {
  transform: translateY(-4px);
  border-color: var(--sn-line-strong);
  box-shadow: var(--sn-shadow-lg);
}
#core-features article h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
#core-features article a.group\/link {
  color: var(--sn-accent);
}

/* Feature slider */
[data-feature-slider] > .grid > div:first-child {
  border: 1px solid var(--sn-line);
  border-radius: 1.5rem !important;
  box-shadow: var(--sn-shadow-md) !important;
}
[data-feature-tab] {
  border-radius: 1rem;
  border-color: var(--sn-line);
  background: var(--sn-card);
  box-shadow: var(--sn-shadow-sm);
}
[data-feature-tab].is-active {
  border-color: color-mix(in srgb, var(--sn-accent) 40%, transparent);
  box-shadow: 0 0 0 4px var(--sn-accent-soft), var(--sn-shadow-md);
}
.feature-tab-progress-bar {
  background: var(--sn-grad);
}
.dark .feature-tab-progress-bar {
  background: var(--sn-grad);
}
[data-feature-visual] .rounded-xl.bg-white {
  border-radius: 1rem;
}

/* ----- Scroll reveal-free entrance (no JS needed) ----- */
@media (prefers-reduced-motion: no-preference) {
  #hero h1,
  #hero h1 + p,
  #hero form {
    animation: sn-rise 0.7s var(--sn-ease) both;
  }
  #hero h1 + p { animation-delay: 0.08s; }
  #hero form { animation-delay: 0.16s; }
}
@keyframes sn-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   USER DASHBOARD
   ========================================================================== */

/* Canvas */
body.bg-neutral-50 {
  background-color: #f6f6fa;
}
html.dark body.dark\:bg-neutral-950 {
  background-color: #08080c;
}

/* Sidebar */
#sidebar {
  background: transparent;
  border-right-color: var(--sn-line);
  background-image: linear-gradient(180deg, rgba(91, 91, 247, 0.04), transparent 28%);
}
#sidebar > div > div:first-child a {
  min-height: 4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
#sidebar nav ul a {
  position: relative;
  border-radius: 0.7rem;
  padding: 0.55rem 0.75rem;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--sn-ease);
}
#sidebar nav ul a:hover {
  transform: translateX(2px);
}
#sidebar nav ul a i:not([data-sidebar-chevron]) {
  width: 1.1rem;
  text-align: center;
  transition: color 0.2s, opacity 0.2s;
}
/* Active item (JS marks it font-semibold) */
#sidebar nav ul a.font-semibold {
  color: var(--sn-ink);
  background: var(--sn-card);
  box-shadow: var(--sn-shadow-sm), 0 0 0 1px var(--sn-line);
}
html.dark #sidebar nav ul a.font-semibold {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
#sidebar nav ul a.font-semibold::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 3px;
  background: var(--sn-grad);
}
#sidebar nav ul a.font-semibold i:not([data-sidebar-chevron]) {
  color: var(--sn-accent);
  opacity: 1;
}

/* Topbar */
body > div .sticky.top-0.z-30 {
  background: rgba(246, 246, 250, 0.75);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--sn-line);
}
html.dark body > div .sticky.top-0.z-30 {
  background: rgba(8, 8, 12, 0.75);
}

/* Cards (every dashboard panel uses .shadow-card) */
.shadow-card {
  border-color: var(--sn-line) !important;
  border-radius: 1rem !important;
  background-color: var(--sn-card);
  box-shadow: var(--sn-shadow-sm) !important;
  transition: box-shadow 0.3s var(--sn-ease), border-color 0.3s var(--sn-ease);
}
html.dark .shadow-card {
  background-color: rgba(255, 255, 255, 0.035);
}
.shadow-card:hover {
  border-color: var(--sn-line-strong) !important;
  box-shadow: var(--sn-shadow-md) !important;
}
.shadow-card > .border-b,
.shadow-card > div > .border-b {
  border-bottom-color: var(--sn-line) !important;
}
.shadow-card h2.text-sm {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.shadow-card .divide-y > * {
  transition: background-color 0.2s;
}
.shadow-card .divide-y > *:hover {
  background-color: color-mix(in srgb, var(--sn-accent) 4%, transparent);
}
.shadow-card .divide-y {
  --tw-divide-opacity: 1;
}
.shadow-card .divide-y > :not(:last-child) {
  border-color: var(--sn-line) !important;
}

/* Stat tiles */
.snipo-stat {
  position: relative;
  overflow: hidden;
}
.snipo-stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--sn-grad);
  opacity: 0.85;
}
.snipo-stat::after {
  content: "";
  position: absolute;
  right: -2rem;
  top: -2rem;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sn-accent-soft), transparent 70%);
  pointer-events: none;
}
.snipo-stat > p:first-child {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.snipo-stat > p:last-child {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

/* Primary buttons in dashboard (Create etc.) */
main button.bg-black,
main a.bg-black {
  background: var(--sn-ink);
  border-radius: 0.7rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset, 0 8px 16px -8px rgba(15, 15, 30, 0.55);
  transition: transform 0.2s var(--sn-ease), box-shadow 0.2s var(--sn-ease);
}
main button.bg-black:hover,
main a.bg-black:hover {
  transform: translateY(-1px);
}
html.dark main button.bg-black,
html.dark main a.bg-black,
html.dark main button.dark\:bg-white,
html.dark main a.dark\:bg-white {
  background: #fff;
}

/* Dropdown menus */
[data-dropdown-menu] {
  border-radius: 0.9rem !important;
  border-color: var(--sn-line) !important;
  box-shadow: var(--sn-shadow-lg) !important;
}
[data-dropdown-menu] a {
  transition: background-color 0.15s;
}

/* Inputs */
main input[type="text"],
main input[type="email"],
main input[type="password"],
main input[type="url"],
main input[type="number"],
main select,
main textarea {
  transition: border-color 0.2s, box-shadow 0.2s;
}
main input[type="text"]:focus,
main input[type="email"]:focus,
main input[type="password"]:focus,
main input[type="url"]:focus,
main input[type="number"]:focus,
main select:focus,
main textarea:focus {
  border-color: var(--sn-accent) !important;
  box-shadow: 0 0 0 3px var(--sn-accent-soft);
  outline: none;
}

/* Modals */
.fixed.inset-0 .rounded-lg.shadow-xl {
  border-radius: 1.1rem;
  box-shadow: var(--sn-shadow-lg) !important;
}

/* Footer */
body > div footer {
  border-top-color: var(--sn-line);
}

/* Thin, quiet scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--sn-line-strong) transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: var(--sn-line-strong);
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

/* ==========================================================================
   AUTH PAGES (login, register, forgot, reset, 2fa, invite)
   Scoped to the page <section>, which is a direct child of <body>.
   ========================================================================== */

/* Single-card pages: soft glow behind the card */
body > section.min-h-screen:not(.lg\:flex-row) {
  background:
    radial-gradient(48rem 28rem at 50% -8%, var(--sn-accent-soft), transparent 70%),
    radial-gradient(32rem 22rem at 100% 100%, rgba(34, 184, 240, 0.08), transparent 70%);
}
body > section.min-h-screen > div.max-w-md {
  border-color: var(--sn-line);
  border-radius: 1.25rem;
  box-shadow: var(--sn-shadow-lg);
  background-color: var(--sn-card);
}
html.dark body > section.min-h-screen > div.max-w-md {
  background-color: rgba(255, 255, 255, 0.04);
}

/* Headings */
body > section.min-h-screen h1 {
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Inputs */
body > section.min-h-screen input[type="text"],
body > section.min-h-screen input[type="email"],
body > section.min-h-screen input[type="password"],
body > section.min-h-screen input[type="number"] {
  border-radius: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
body > section.min-h-screen input[type="text"]:focus,
body > section.min-h-screen input[type="email"]:focus,
body > section.min-h-screen input[type="password"]:focus,
body > section.min-h-screen input[type="number"]:focus {
  border-color: var(--sn-accent) !important;
  box-shadow: 0 0 0 3px var(--sn-accent-soft);
}
body > section.min-h-screen input[type="checkbox"] {
  accent-color: var(--sn-accent);
}

/* Primary submit button */
body > section.min-h-screen form button[type="submit"].w-full {
  background-image: var(--sn-grad);
  color: #fff !important;
  border-radius: 0.75rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 20px -10px rgba(91, 91, 247, 0.7);
  transition: transform 0.2s var(--sn-ease), box-shadow 0.2s var(--sn-ease), filter 0.2s;
}
body > section.min-h-screen form button[type="submit"].w-full:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 26px -10px rgba(91, 91, 247, 0.8);
}

/* Social sign-in buttons */
body > section.min-h-screen [data-social-provider] {
  border-radius: 0.75rem;
  border-color: var(--sn-line);
  transition: transform 0.2s var(--sn-ease), box-shadow 0.2s var(--sn-ease), background-color 0.2s;
}
body > section.min-h-screen [data-social-provider]:hover {
  transform: translateY(-1px);
  box-shadow: var(--sn-shadow-md);
}

/* Login: right-hand promo panel */
body > section.lg\:flex-row > div.hidden {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(30rem 22rem at 85% 8%, rgba(34, 184, 240, 0.55), transparent 62%),
    radial-gradient(28rem 24rem at 8% 95%, rgba(236, 72, 153, 0.4), transparent 62%),
    linear-gradient(145deg, #3d3df0 0%, #5b5bf7 45%, #2a2a9c 100%);
  color: #fff;
}
body > section.lg\:flex-row > div.hidden::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
body > section.lg\:flex-row > div.hidden > div {
  position: relative;
}
body > section.lg\:flex-row > div.hidden h2 {
  color: #fff;
  font-size: 1.75rem;
  letter-spacing: -0.035em;
}
body > section.lg\:flex-row > div.hidden p {
  color: rgba(255, 255, 255, 0.78);
}
body > section.lg\:flex-row > div.hidden a {
  background: #fff;
  color: var(--sn-ink);
  border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s var(--sn-ease), box-shadow 0.2s var(--sn-ease);
}
body > section.lg\:flex-row > div.hidden a:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   STATS PAGES
   ========================================================================== */

/* Tab strip */
main nav.overflow-x-auto.rounded-xl {
  border-color: var(--sn-line);
  border-radius: 0.95rem;
  background-color: var(--sn-card);
  box-shadow: var(--sn-shadow-sm);
}
main nav.overflow-x-auto a {
  border-radius: 0.7rem;
}
main nav.overflow-x-auto a.bg-black,
html.dark main nav.overflow-x-auto a.bg-black {
  background: var(--sn-grad);
  color: #fff !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 16px -8px rgba(91, 91, 247, 0.7);
}

/* Header block above the tiles */
main h1.truncate {
  letter-spacing: -0.035em;
}

/* ==========================================================================
   API DOCS
   ========================================================================== */

#apidocs .api-sidebar {
  background-image: linear-gradient(180deg, rgba(91, 91, 247, 0.04), transparent 30%);
  border-right-color: var(--sn-line);
}
#apidocs .api-nav-link {
  border-radius: 0.65rem;
}
#apidocs .api-nav-link.is-active,
html.dark #apidocs .api-nav-link.is-active {
  color: var(--sn-accent);
  background: var(--sn-accent-soft);
  box-shadow: inset 2px 0 0 var(--sn-accent);
}
#apidocs h1 {
  letter-spacing: -0.04em;
  text-wrap: balance;
}
#apidocs h2 {
  letter-spacing: -0.02em;
  border-bottom-color: var(--sn-line);
}
#apidocs h2 > span.inline-flex {
  border-color: var(--sn-line);
  background: var(--sn-accent-soft);
  color: var(--sn-accent);
}
#apidocs .code-area {
  border-radius: 1rem;
  border-color: var(--sn-line-strong);
  background: linear-gradient(180deg, #11111a, #0a0a10);
  box-shadow: var(--sn-shadow-md);
}
html.dark #apidocs .code-area {
  background: linear-gradient(180deg, #0f0f17, #08080c);
}
#apidocs .code-lang-btn {
  border-radius: 0.5rem;
}
#apidocs .code-lang-btn.is-active {
  color: #fff;
  background: var(--sn-grad);
  border-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
