@charset "UTF-8";
/* ==========================================================================
   instanturlindexer.xyz — design system
   --------------------------------------------------------------------------
   Dark-first, near-black canvas with a signal-green accent and violet depth.
   Organised as: tokens -> reset -> type -> motion -> layout -> components ->
   marketing -> blog -> utilities -> responsive.

   Components reference semantic aliases (--surface, --text-1, --accent) rather
   than raw ramp steps, so retheming means editing one block.
   ========================================================================== */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  /* --- Neutral ramp (dark) --------------------------------------------- */
  --n0:  #08080b;   /* canvas                 */
  --n1:  #0c0c10;   /* sunken                 */
  --n2:  #111116;   /* surface                */
  --n3:  #16161c;   /* surface raised         */
  --n4:  #1c1c23;   /* hover                  */
  --n5:  #23232b;   /* border subtle          */
  --n6:  #2c2c36;   /* border                 */
  --n7:  #3a3a46;   /* border strong          */
  --n8:  #52525f;   /* disabled fg            */
  --n9:  #86868f;   /* text dim — kept light enough to clear AA on surfaces */
  --n10: #a1a1aa;   /* text muted             */
  --n11: #d4d4d8;   /* text secondary         */
  --n12: #fafafa;   /* text primary           */

  /* --- Accent: signal green -------------------------------------------- */
  --g-dim:    #14532d;
  --g-deep:   #166534;
  --g-solid:  #22c55e;
  --g-bright: #4ade80;
  --g-light:  #86efac;

  /* --- Secondary: violet ----------------------------------------------- */
  --v-solid:  #8b5cf6;
  --v-bright: #a78bfa;

  /* --- Tertiary: lime --------------------------------------------------- */
  --l-bright: #a3e635;

  /* --- Semantic accents ------------------------------------------------- */
  --success:      #22c55e;
  --success-soft: rgba(34, 197, 94, 0.13);
  --success-text: #4ade80;

  --warning:      #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.13);
  --warning-text: #fbbf24;

  --danger:       #ef4444;
  --danger-hover: #f05252;
  --danger-soft:  rgba(239, 68, 68, 0.13);
  --danger-text:  #fca5a5;

  --info:         #38bdf8;
  --info-soft:    rgba(56, 189, 248, 0.13);
  --info-text:    #7dd3fc;

  /* --- Semantic aliases ------------------------------------------------- */
  --bg-app:         var(--n0);
  --bg-sunken:      var(--n1);
  --surface:        var(--n2);
  --surface-raised: var(--n3);
  --surface-hover:  var(--n4);
  --border-subtle:  var(--n5);
  --border:         var(--n6);
  --border-strong:  var(--n7);
  --text-1:         var(--n12);
  --text-2:         var(--n10);
  --text-3:         var(--n9);

  --accent:         var(--g-solid);
  --accent-hover:   var(--g-bright);
  --accent-text:    var(--g-bright);
  --accent-soft:    rgba(34, 197, 94, 0.12);
  --accent-line:    rgba(74, 222, 128, 0.34);
  --on-accent:      #04150a;

  --backdrop: rgba(4, 4, 8, 0.76);
  --glass:    rgba(17, 17, 22, 0.72);

  /* Signature gradients */
  --grad-brand: linear-gradient(100deg, var(--g-solid), var(--l-bright));
  --grad-mesh:  linear-gradient(120deg, var(--g-deep), var(--g-solid) 42%, var(--v-solid));
  --grad-text:  linear-gradient(160deg, #ffffff 20%, #8b8b96);
  --glow-hero:  radial-gradient(72% 46% at 50% -12%, rgba(34, 197, 94, 0.30), transparent 68%);
  --glow-soft:  radial-gradient(60% 60% at 50% 0%, rgba(139, 92, 246, 0.18), transparent 70%);
  --skeleton:   linear-gradient(90deg, var(--n3) 25%, var(--n4) 50%, var(--n3) 75%);

  /* --- Typography ------------------------------------------------------- */
  --font-display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont,
                  "Segoe UI", Roboto, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji";
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono",
               "Cascadia Mono", Menlo, Consolas, monospace;

  --fs-xs:   0.75rem;
  --fs-sm:   0.8125rem;
  --fs-base: 0.875rem;
  --fs-md:   0.9375rem;
  --fs-lg:   1.0625rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  2rem;
  --fs-4xl:  2.75rem;
  --fs-5xl:  3.5rem;

  --lh-tight: 1.15;
  --lh-snug:  1.4;
  --lh-base:  1.65;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extra: 800;

  --track-tight: -0.022em;
  --track-hero: -0.032em;
  --track-caps: 0.08em;

  /* --- Space ------------------------------------------------------------ */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.25rem;  --s-6: 1.5rem;   --s-7: 2rem;     --s-8: 2.5rem;
  --s-9: 3rem;     --s-10: 4rem;    --s-11: 5.5rem;  --s-12: 7.5rem;

  /* --- Radii ------------------------------------------------------------ */
  --r-xs: 5px;   --r-sm: 8px;    --r-md: 11px;
  --r-lg: 15px;  --r-xl: 22px;   --r-2xl: 30px;  --r-full: 999px;

  /* --- Elevation -------------------------------------------------------- */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px -16px rgba(0, 0, 0, 0.68);
  --shadow-glow: 0 0 0 1px rgba(34, 197, 94, 0.16), 0 12px 40px -12px rgba(34, 197, 94, 0.35);
  --ring: 0 0 0 3px rgba(34, 197, 94, 0.22);

  /* --- Motion ----------------------------------------------------------- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 340ms;

  /* --- Layout ----------------------------------------------------------- */
  --sidebar-w: 268px;
  --topbar-h: 60px;
  --app-max: 1280px;
  --site-max: 1180px;
  --prose-max: 46rem;

  color-scheme: dark;
}

[data-theme="light"] {
  --n0:  #ffffff;
  --n1:  #f7f7f9;
  --n2:  #ffffff;
  --n3:  #fbfbfd;
  --n4:  #f2f2f5;
  --n5:  #eaeaef;
  --n6:  #dedee5;
  --n7:  #c6c6d0;
  --n8:  #9b9ba6;
  --n9:  #6f6f7b;
  --n10: #55555f;
  --n11: #33333c;
  --n12: #0d0d12;

  --accent:       #16a34a;
  --accent-hover: #15803d;
  --accent-text:  #15803d;
  --accent-soft:  rgba(22, 163, 74, 0.1);
  --accent-line:  rgba(22, 163, 74, 0.3);
  --on-accent:    #ffffff;

  --success:      #16a34a;
  --success-soft: rgba(22, 163, 74, 0.1);
  --success-text: #15803d;
  --warning:      #b45309;
  --warning-soft: rgba(180, 83, 9, 0.1);
  --warning-text: #92400e;
  --danger:       #dc2626;
  --danger-hover: #b91c1c;
  --danger-soft:  rgba(220, 38, 38, 0.09);
  --danger-text:  #b91c1c;
  --info:         #0284c7;
  --info-soft:    rgba(2, 132, 199, 0.09);
  --info-text:    #0369a1;

  --bg-app: var(--n1);
  --backdrop: rgba(20, 20, 30, 0.4);
  --glass: rgba(255, 255, 255, 0.78);

  --grad-text: linear-gradient(160deg, #0d0d12 20%, #55555f);
  --glow-hero: radial-gradient(72% 46% at 50% -12%, rgba(22, 163, 74, 0.14), transparent 68%);
  --glow-soft: radial-gradient(60% 60% at 50% 0%, rgba(139, 92, 246, 0.1), transparent 70%);
  --skeleton: linear-gradient(90deg, var(--n4) 25%, var(--n5) 50%, var(--n4) 75%);

  --shadow-xs: 0 1px 2px rgba(16, 16, 32, 0.05);
  --shadow-sm: 0 2px 8px rgba(16, 16, 32, 0.06);
  --shadow-md: 0 10px 26px -8px rgba(16, 16, 32, 0.12);
  --shadow-lg: 0 26px 60px -18px rgba(16, 16, 32, 0.2);
  --shadow-glow: 0 0 0 1px rgba(22, 163, 74, 0.16), 0 12px 36px -14px rgba(22, 163, 74, 0.3);
  --ring: 0 0 0 3px rgba(22, 163, 74, 0.18);

  color-scheme: light;
}

/* ==========================================================================
   2. Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg-app);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
svg { fill: none; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; }

a {
  color: var(--accent-text);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--text-1); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-tight);
  font-weight: var(--fw-bold);
  color: var(--text-1);
  text-wrap: balance;
}

p { text-wrap: pretty; }
hr { border: none; border-top: 1px solid var(--border-subtle); margin: var(--s-6) 0; }
code, kbd, pre, samp { font-family: var(--font-mono); font-size: 0.9em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

::selection { background: var(--accent-soft); color: var(--text-1); }

* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--r-full);
  border: 3px solid transparent;
  background-clip: content-box;
}

/* ==========================================================================
   3. Motion
   ========================================================================== */

@keyframes fade-up   { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes scale-in  { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes spin      { to { transform: rotate(360deg); } }
@keyframes shimmer   { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes float-y   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes drift     { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(3%, -4%) scale(1.08); } }
@keyframes marquee   { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes dash      { to { stroke-dashoffset: 0; } }
@keyframes starlight { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes ping      { 0% { transform: scale(1); opacity: 0.6; } 80%, 100% { transform: scale(2.4); opacity: 0; } }

/* Scroll-reveal: JS adds .is-visible when the element enters the viewport.
   Scoped to .js — set by an inline script in <head> — so that if scripting is
   unavailable or app.js fails to load, the content is simply visible rather
   than stuck at opacity 0. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   4. Primitives
   ========================================================================== */

.icon {
  width: 1.15em; height: 1.15em;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.icon-lg { width: 1.4em; height: 1.4em; }
.icon-xl { width: 2rem; height: 2rem; }

.mono { font-family: var(--font-mono); }
.tnum { font-variant-numeric: tabular-nums; }

.text-muted     { color: var(--text-3); }
.text-secondary { color: var(--text-2); }
.text-success   { color: var(--success-text); }
.text-danger    { color: var(--danger-text); }
.text-warning   { color: var(--warning-text); }
.text-accent    { color: var(--accent-text); }

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-3);
}

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

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

/* Gradient-clipped display text — the site's signature headline treatment. */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.accent-text-grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Wordmark */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  letter-spacing: -0.03em;
  color: var(--text-1);
  font-size: var(--fs-lg);
}
.wordmark:hover { color: var(--text-1); }
.wordmark__dot { color: var(--accent-text); }
.wordmark__mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--grad-mesh);
  display: grid; place-items: center;
  color: #fff;
  flex: none;
  box-shadow: 0 3px 12px rgba(34, 197, 94, 0.35);
}
.wordmark__mark .icon { width: 17px; height: 17px; stroke-width: 2.2; }
.wordmark--lg { font-size: var(--fs-xl); }
.wordmark--lg .wordmark__mark { width: 36px; height: 36px; border-radius: 11px; }

/* Animated hairline used to separate marketing sections. */
.starlight {
  position: relative;
  height: 1px;
  width: 100%;
  background: var(--border-subtle);
  overflow: hidden;
}
.starlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--g-bright), transparent);
  animation: starlight 4.5s var(--ease) infinite;
}

/* Decorative background orbs.
   Their containers use `overflow-x: clip` rather than `hidden` so an orb can
   never widen the document, while `position: sticky` on the nav keeps working
   (clip does not create a scroll container). */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.5;
  z-index: -1;
  animation: drift 16s var(--ease) infinite;
}
.orb--green  { background: rgba(34, 197, 94, 0.42); }
.orb--violet { background: rgba(139, 92, 246, 0.36); animation-delay: -6s; }
.orb--lime   { background: rgba(163, 230, 53, 0.28); animation-delay: -11s; }

/* ==========================================================================
   5. App shell
   ========================================================================== */

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  background: var(--bg-sunken);
  border-right: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 40;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0 var(--s-5);
  height: var(--topbar-h);
  flex: none;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar__scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s-4) var(--s-3) var(--s-3);
}

.nav-group { margin-bottom: var(--s-5); }
.nav-group__title {
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0 var(--s-3);
  margin-bottom: var(--s-2);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0 var(--s-3);
  height: 37px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  position: relative;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav-link .icon { color: var(--text-3); transition: color var(--dur-fast) var(--ease); }
.nav-link:hover { background: var(--surface-hover); color: var(--text-1); }
.nav-link:hover .icon { color: var(--text-2); }
.nav-link.is-active {
  background: var(--accent-soft);
  color: var(--text-1);
  font-weight: var(--fw-semibold);
}
.nav-link.is-active .icon { color: var(--accent-text); }
.nav-link.is-active::before {
  content: "";
  position: absolute;
  left: -10px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 19px;
  border-radius: var(--r-full);
  background: var(--accent);
}

.nav-link__badge {
  margin-left: auto;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  display: grid; place-items: center;
  font-variant-numeric: tabular-nums;
}
.nav-link__badge--danger { background: var(--danger); color: #fff; }

.sidebar__footer {
  flex: none;
  padding: var(--s-3);
  border-top: 1px solid var(--border-subtle);
}

/* The mobile scrim. It is declared here rather than only inside the mobile
   media query because .shell is a grid: an unpositioned div would become a
   grid item, take the second column and push .main onto a new row. Taking it
   out of flow at every width keeps the two-column shell intact on desktop. */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: var(--backdrop);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease), visibility var(--dur-base);
}

.credit-card {
  background: linear-gradient(160deg, rgba(34, 197, 94, 0.14), var(--surface));
  border: 1px solid var(--accent-line);
  border-radius: var(--r-md);
  padding: var(--s-4);
  margin-bottom: var(--s-3);
}
.credit-card__label {
  font-size: var(--fs-xs);
  color: var(--text-2);
  font-weight: var(--fw-medium);
  display: flex; align-items: center; gap: var(--s-2);
}
.credit-card__value {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-extra);
  letter-spacing: -0.03em;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
  margin: 2px 0 var(--s-3);
  line-height: 1.1;
}
.credit-card__value small {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-3);
  margin-left: 3px;
}

/* Sidebar advert */
.ad-card {
  display: block;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}
.ad-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 100% 0%, rgba(139, 92, 246, 0.16), transparent 62%);
  pointer-events: none;
}
.ad-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.ad-card__badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.625rem;
  font-weight: var(--fw-bold);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--v-bright);
  background: rgba(139, 92, 246, 0.14);
  border-radius: var(--r-xs);
  padding: 2px 6px;
  margin-bottom: var(--s-2);
}
[data-theme="light"] .ad-card__badge { color: #6d28d9; }
.ad-card__title {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--text-1);
  line-height: var(--lh-snug);
  margin-bottom: var(--s-1);
}
.ad-card__body {
  font-size: var(--fs-xs);
  color: var(--text-2);
  line-height: var(--lh-snug);
  margin-bottom: var(--s-3);
}
.ad-card__cta {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--accent-text);
}
.ad-card__cta .icon { width: 14px; height: 14px; transition: transform var(--dur-base) var(--ease); }
.ad-card:hover .ad-card__cta .icon { transform: translateX(3px); }
.ad-card__disclosure {
  position: absolute; top: var(--s-3); right: var(--s-3);
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
  color: var(--text-3);
}

/* Topbar */
.topbar {
  height: var(--topbar-h);
  display: flex; align-items: center; gap: var(--s-4);
  padding: 0 var(--s-6);
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky; top: 0; z-index: 30;
}
.topbar__title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  letter-spacing: var(--track-tight);
  min-width: 0;
}
.topbar__title small {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  color: var(--text-3);
  letter-spacing: 0;
}
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.sidebar-toggle { display: none; }

.main { display: flex; flex-direction: column; min-width: 0; }
.content {
  flex: 1;
  padding: var(--s-6);
  max-width: var(--app-max);
  width: 100%;
  margin: 0 auto;
}

.page-head {
  display: flex; align-items: flex-start; gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-6);
}
.page-head__text { flex: 1; min-width: 240px; }
.page-head h1 { font-size: var(--fs-2xl); letter-spacing: -0.028em; margin-bottom: var(--s-1); }
.page-head p { color: var(--text-2); font-size: var(--fs-md); max-width: 62ch; }
.page-head__actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }

.section { margin-bottom: var(--s-7); }
.section__head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.section__head h2 { font-size: var(--fs-lg); }
.section__head .spacer { margin-left: auto; }

/* ==========================================================================
   6. Auth — split screen
   ========================================================================== */

.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.auth-pane {
  display: flex;
  flex-direction: column;
  padding: var(--s-8) var(--s-9);
  background: var(--n0);
  position: relative;
}
[data-theme="light"] .auth-pane { background: #ffffff; }

.auth-pane__top { display: flex; align-items: center; justify-content: space-between; }
.auth-pane__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 27rem;
  width: 100%;
  margin: 0 auto;
  padding: var(--s-8) 0;
}
.auth-pane__foot { font-size: var(--fs-xs); color: var(--text-3); }

.auth-title {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-extra);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: var(--s-3);
}
.auth-sub { color: var(--text-2); font-size: var(--fs-md); margin-bottom: var(--s-7); }
.auth-alt {
  margin-top: var(--s-6);
  text-align: center;
  font-size: var(--fs-base);
  color: var(--text-2);
}
.auth-alt a { font-weight: var(--fw-semibold); }

/* The dark marketing half */
.auth-aside {
  position: relative;
  overflow: hidden;
  background: #0a0a12;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s-10) var(--s-9);
  color: #fafafa;
  isolation: isolate;
}
.auth-aside::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(58% 42% at 78% 12%, rgba(34, 197, 94, 0.30), transparent 66%),
    radial-gradient(50% 44% at 14% 88%, rgba(139, 92, 246, 0.28), transparent 68%);
  z-index: -1;
}
.auth-aside__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 78%);
  z-index: -1;
}
.auth-aside h2 {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extra);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  max-width: 22ch;
  margin-bottom: var(--s-4);
}
.auth-aside p {
  color: rgba(250, 250, 250, 0.68);
  font-size: var(--fs-md);
  max-width: 42ch;
  margin-bottom: var(--s-9);
}

.auth-stats { display: flex; gap: var(--s-9); flex-wrap: wrap; }
.auth-stat { min-width: 0; }
.auth-stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extra);
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
}
.auth-stat__label {
  font-size: var(--fs-xs);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.5);
  margin-top: 2px;
}

/* ==========================================================================
   7. Components
   ========================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card--raised { background: var(--surface-raised); box-shadow: var(--shadow-sm); }
.card--glow { border-color: var(--accent-line); box-shadow: var(--shadow-glow); }

.card__head {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--border-subtle);
}
.card__head h2, .card__head h3 { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.card__head .spacer { margin-left: auto; }
.card__head p { font-size: var(--fs-sm); color: var(--text-3); }

.card__body { padding: var(--s-5); }
.card__body--tight { padding: var(--s-4); }
.card__body--flush { padding: 0; }

.card__foot {
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-sunken);
  display: flex; align-items: center; gap: var(--s-3);
}
.card__foot .spacer { margin-left: auto; }

.grid { display: grid; gap: var(--s-4); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: var(--s-5); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* Stat tile */
.stat {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.stat:hover { border-color: var(--border); transform: translateY(-1px); }
.stat__head { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); }
.stat__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-3);
}
.stat__icon {
  margin-left: auto;
  width: 31px; height: 31px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.stat__icon--success { background: var(--success-soft); color: var(--success-text); }
.stat__icon--warning { background: var(--warning-soft); color: var(--warning-text); }
.stat__icon--info    { background: var(--info-soft);    color: var(--info-text); }
.stat__icon--danger  { background: var(--danger-soft);  color: var(--danger-text); }
.stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extra);
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--text-1);
}
.stat__value small {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-3);
  letter-spacing: 0;
}
.stat__meta { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--text-3); display: flex; align-items: center; gap: 5px; }

/* Buttons — pill shaped, Cobalt style */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  height: 38px;
  padding: 0 var(--s-5);
  border-radius: var(--r-full);
  border: 1px solid transparent;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:active:not(:disabled) { transform: translateY(0.5px) scale(0.995); }
.btn:disabled, .btn.is-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn .icon { width: 15px; height: 15px; }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, var(--shadow-xs);
}
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--primary:focus-visible { box-shadow: var(--ring); }

.btn--secondary {
  background: var(--surface-raised);
  border-color: var(--border);
  color: var(--text-1);
}
.btn--secondary:hover { background: var(--surface-hover); border-color: var(--border-strong); color: var(--text-1); }

.btn--ghost { background: transparent; color: var(--text-2); }
.btn--ghost:hover { background: var(--surface-hover); color: var(--text-1); }

.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: var(--danger-hover); color: #fff; }

.btn--success { background: var(--success); color: var(--on-accent); }
.btn--success:hover { filter: brightness(1.08); color: var(--on-accent); }

.btn--outline-danger { background: transparent; border-color: var(--danger-soft); color: var(--danger-text); }
.btn--outline-danger:hover { background: var(--danger-soft); color: var(--danger-text); }

.btn--sm { height: 31px; padding: 0 var(--s-4); font-size: var(--fs-sm); }
.btn--sm .icon { width: 13px; height: 13px; }
.btn--lg { height: 48px; padding: 0 var(--s-7); font-size: var(--fs-md); }
.btn--block { width: 100%; }
.btn--icon { width: 36px; padding: 0; border-radius: var(--r-full); }
.btn--icon.btn--sm { width: 31px; }

/* Forms */
.field { margin-bottom: var(--s-4); }
.field:last-child { margin-bottom: 0; }

.label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-1);
  margin-bottom: var(--s-2);
}
.label .req { color: var(--danger-text); margin-left: 2px; }
.label__hint { float: right; font-weight: var(--fw-regular); color: var(--text-3); font-size: var(--fs-xs); }

.input, .select, .textarea {
  width: 100%;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0 var(--s-4);
  height: 42px;
  color: var(--text-1);
  font-size: var(--fs-base);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
[data-theme="light"] .input,
[data-theme="light"] .select,
[data-theme="light"] .textarea { background: #fff; }

.textarea { height: auto; min-height: 120px; padding: var(--s-3) var(--s-4); line-height: var(--lh-base); resize: vertical; }
.textarea--code { font-family: var(--font-mono); font-size: var(--fs-sm); min-height: 200px; line-height: 1.7; }

.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}
.input:disabled, .select:disabled, .textarea:disabled { opacity: 0.6; cursor: not-allowed; }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.input.is-invalid:focus { box-shadow: 0 0 0 3px var(--danger-soft); }

.select {
  appearance: none;
  padding-right: var(--s-8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-3) center;
  cursor: pointer;
}

.field__error { display: flex; align-items: center; gap: 5px; font-size: var(--fs-xs); color: var(--danger-text); margin-top: var(--s-2); }
.field__hint { font-size: var(--fs-xs); color: var(--text-3); margin-top: var(--s-2); line-height: var(--lh-snug); }

.input-group { display: flex; }
.input-group .input { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-group .btn { border-radius: 0 var(--r-sm) var(--r-sm) 0; height: 42px; }

.input-prefix { display: flex; }
.input-prefix__symbol {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  flex: none;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  color: var(--text-3);
  font-weight: var(--fw-medium);
}
.input-prefix .input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

.check { display: flex; align-items: flex-start; gap: var(--s-3); cursor: pointer; padding: var(--s-1) 0; }
.check input[type="checkbox"], .check input[type="radio"] {
  appearance: none;
  width: 18px; height: 18px;
  flex: none;
  margin-top: 2px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-xs);
  background: var(--bg-sunken);
  cursor: pointer;
  position: relative;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.check input[type="radio"] { border-radius: var(--r-full); }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute; left: 5.5px; top: 1.5px;
  width: 4px; height: 9px;
  border: solid var(--on-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check input[type="radio"]:checked::after {
  content: ""; position: absolute; inset: 4px;
  border-radius: var(--r-full); background: var(--on-accent);
}
.check input:focus-visible { box-shadow: var(--ring); outline: none; }
.check__text { font-size: var(--fs-base); color: var(--text-1); line-height: var(--lh-snug); }
.check__text small { display: block; color: var(--text-3); font-size: var(--fs-xs); margin-top: 2px; }

/* Option cards */
.options { display: grid; gap: var(--s-3); }
.options--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.options--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.option {
  position: relative;
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  cursor: pointer;
  background: var(--bg-sunken);
  transition: border-color var(--dur-base) var(--ease), background var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.option:hover { border-color: var(--border-strong); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: var(--ring); }
.option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.option__head { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-1); }
.option__title { font-weight: var(--fw-semibold); font-size: var(--fs-base); color: var(--text-1); }
.option__desc { font-size: var(--fs-xs); color: var(--text-2); line-height: var(--lh-snug); }
.option__price { margin-left: auto; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.option__tick {
  position: absolute; top: var(--s-3); right: var(--s-3);
  width: 16px; height: 16px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border-strong);
  display: grid; place-items: center;
}
.option:has(input:checked) .option__tick { background: var(--accent); border-color: var(--accent); }
.option:has(input:checked) .option__tick::after { content: ""; width: 5px; height: 5px; border-radius: var(--r-full); background: var(--on-accent); }

.segmented {
  display: inline-flex;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 3px;
  gap: 2px;
}
.segmented a, .segmented button {
  padding: 0 var(--s-4);
  height: 28px;
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-2);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.segmented a:hover, .segmented button:hover { color: var(--text-1); background: var(--surface-hover); }
.segmented a.is-active, .segmented button.is-active {
  background: var(--surface-raised);
  color: var(--text-1);
  box-shadow: var(--shadow-xs);
}

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px;
  padding: 0 var(--s-3);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  background: var(--surface-hover);
  color: var(--text-2);
  border: 1px solid transparent;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: var(--r-full); background: currentColor; flex: none; }
.badge--nodot::before { display: none; }
.badge--success { background: var(--success-soft); color: var(--success-text); }
.badge--danger  { background: var(--danger-soft);  color: var(--danger-text); }
.badge--warning { background: var(--warning-soft); color: var(--warning-text); }
.badge--info    { background: var(--info-soft);    color: var(--info-text); }
.badge--brand   { background: var(--accent-soft);  color: var(--accent-text); }
.badge--neutral { background: var(--surface-hover); color: var(--text-2); }
.badge--lg { height: 26px; padding: 0 var(--s-4); font-size: var(--fs-sm); }
.badge--live::before { animation: pulse-dot 1.8s var(--ease) infinite; }

/* Pill (marketing eyebrow) */
.pill {
  display: inline-flex; align-items: center; gap: var(--s-2);
  height: 30px;
  padding: 0 var(--s-4);
  border-radius: var(--r-full);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.01em;
}
.pill .icon { width: 13px; height: 13px; }
.pill__dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.pill__dot::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%; background: var(--accent);
  animation: ping 2s var(--ease) infinite;
}

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
.table th {
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--bg-sunken);
}
.table th:first-child, .table td:first-child { padding-left: var(--s-5); }
.table th:last-child, .table td:last-child { padding-right: var(--s-5); }
.table td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--border-subtle); color: var(--text-1); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--dur-fast) var(--ease); }
.table tbody tr:hover { background: var(--surface-hover); }
.table--compact th, .table--compact td { padding: var(--s-2) var(--s-3); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .shrink { width: 1%; white-space: nowrap; }
.table__primary { font-weight: var(--fw-medium); color: var(--text-1); }
.table__secondary { font-size: var(--fs-xs); color: var(--text-3); margin-top: 1px; }
.row-link { color: var(--text-1); font-weight: var(--fw-medium); }
.row-link:hover { color: var(--accent-text); }

/* Alerts */
.alert {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: var(--fs-base);
  line-height: var(--lh-snug);
  margin-bottom: var(--s-4);
}
.alert .icon { margin-top: 1px; flex: none; }
.alert__body { flex: 1; min-width: 0; }
.alert__title { font-weight: var(--fw-semibold); margin-bottom: 2px; }
.alert a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.alert--success { background: var(--success-soft); border-color: var(--success-soft); color: var(--success-text); }
.alert--danger  { background: var(--danger-soft);  border-color: var(--danger-soft);  color: var(--danger-text); }
.alert--warning { background: var(--warning-soft); border-color: var(--warning-soft); color: var(--warning-text); }
.alert--info    { background: var(--info-soft);    border-color: var(--info-soft);    color: var(--info-text); }
.alert--brand   { background: var(--accent-soft);  border-color: var(--accent-line);  color: var(--accent-text); }

/* Toasts */
.toasts {
  position: fixed; top: var(--s-5); right: var(--s-5);
  z-index: 90;
  display: flex; flex-direction: column; gap: var(--s-2);
  max-width: 380px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: var(--s-3) var(--s-4);
  display: flex; align-items: flex-start; gap: var(--s-3);
  font-size: var(--fs-base);
  animation: scale-in var(--dur-slow) var(--ease-out);
}
.toast--success { border-left-color: var(--success); }
.toast--success .icon { color: var(--success-text); }
.toast--danger { border-left-color: var(--danger); }
.toast--danger .icon { color: var(--danger-text); }
.toast--warning { border-left-color: var(--warning); }
.toast--warning .icon { color: var(--warning-text); }
.toast--info { border-left-color: var(--info); }
.toast--info .icon { color: var(--info-text); }
.toast.is-leaving { opacity: 0; transform: translateX(18px); transition: all var(--dur-base) var(--ease); }

/* Empty state */
.empty { text-align: center; padding: var(--s-9) var(--s-5); }
.empty__icon {
  width: 54px; height: 54px;
  border-radius: var(--r-lg);
  background: var(--surface-hover);
  color: var(--text-3);
  display: grid; place-items: center;
  margin: 0 auto var(--s-4);
}
.empty__icon .icon { width: 24px; height: 24px; }
.empty h3 { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.empty p { color: var(--text-2); max-width: 42ch; margin: 0 auto var(--s-5); }

/* Progress */
.progress { height: 6px; background: var(--surface-hover); border-radius: var(--r-full); overflow: hidden; }
.progress__bar { height: 100%; background: var(--accent); border-radius: var(--r-full); transition: width var(--dur-slow) var(--ease-out); }
.progress__bar--success { background: var(--success); }
.progress__bar--warning { background: var(--warning); }
.progress--sm { height: 4px; }

.progress-stack { display: flex; height: 8px; border-radius: var(--r-full); overflow: hidden; background: var(--surface-hover); }
.progress-stack > span { display: block; height: 100%; transition: width var(--dur-slow) var(--ease-out); }
.progress-stack .seg-indexed { background: var(--success); }
.progress-stack .seg-pending { background: var(--info); }
.progress-stack .seg-failed  { background: var(--danger); }

.legend { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-3); }
.legend__item { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); color: var(--text-2); }
.legend__swatch { width: 8px; height: 8px; border-radius: 2px; flex: none; }

/* Pagination */
.pagination { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.pagination__info { font-size: var(--fs-sm); color: var(--text-3); margin-right: auto; font-variant-numeric: tabular-nums; }
.pagination__link {
  min-width: 34px; height: 34px;
  padding: 0 var(--s-3);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  font-variant-numeric: tabular-nums;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.pagination__link:hover { background: var(--surface-hover); color: var(--text-1); }
.pagination__link.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pagination__link.is-disabled { opacity: 0.4; pointer-events: none; }
.pagination__gap { color: var(--text-3); padding: 0 var(--s-1); }

/* Avatar */
.avatar {
  width: 32px; height: 32px;
  border-radius: var(--r-full);
  display: grid; place-items: center;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: #fff;
  flex: none;
  background: hsl(var(--avatar-hue, 142) 52% 42%);
  text-transform: uppercase;
  user-select: none;
}
.avatar--sm { width: 26px; height: 26px; font-size: 0.625rem; }
.avatar--lg { width: 46px; height: 46px; font-size: var(--fs-base); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown__menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 214px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: var(--s-1);
  z-index: 50;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
}
.dropdown.is-open .dropdown__menu { opacity: 1; visibility: visible; transform: none; }
.dropdown__item {
  display: flex; align-items: center; gap: var(--s-3);
  width: 100%;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: var(--fs-base);
  text-align: left;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.dropdown__item:hover { background: var(--surface-hover); color: var(--text-1); }
.dropdown__item .icon { color: var(--text-3); }
.dropdown__item:hover .icon { color: var(--text-2); }
.dropdown__item--danger { color: var(--danger-text); }
.dropdown__item--danger:hover { background: var(--danger-soft); color: var(--danger-text); }
.dropdown__head { padding: var(--s-3); border-bottom: 1px solid var(--border-subtle); margin-bottom: var(--s-1); }
.dropdown__sep { height: 1px; background: var(--border-subtle); margin: var(--s-1) 0; }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  padding: var(--s-5);
  background: var(--backdrop);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-base) var(--ease), visibility var(--dur-base);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__panel {
  width: 100%; max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  transform: scale(0.97) translateY(8px);
  transition: transform var(--dur-base) var(--ease-out);
  max-height: calc(100vh - var(--s-9));
  overflow-y: auto;
}
.modal.is-open .modal__panel { transform: none; }
.modal__panel--lg { max-width: 640px; }

/* Tabs */
.tabs {
  display: flex; gap: var(--s-1);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--s-5);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: var(--s-3) var(--s-4);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: var(--s-2);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.tab:hover { color: var(--text-1); }
.tab.is-active { color: var(--accent-text); border-bottom-color: var(--accent); font-weight: var(--fw-semibold); }
.tab__count { font-size: var(--fs-xs); background: var(--surface-hover); color: var(--text-3); border-radius: var(--r-full); padding: 1px 7px; font-variant-numeric: tabular-nums; }

/* Filters */
.filters { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); }
.filters .input, .filters .select { height: 38px; width: auto; min-width: 150px; }
.filters .search { min-width: 230px; flex: 1; max-width: 340px; }

/* Code */
.code-block {
  background: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--text-2);
  overflow-x: auto;
  white-space: pre;
}
.code-block .k { color: var(--accent-text); }
.code-block .s { color: var(--info-text); }
.code-block .c { color: var(--text-3); font-style: italic; }

.key-display {
  display: flex; align-items: center; gap: var(--s-2);
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--s-3) var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.key-display code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Description list */
.dl { display: grid; gap: var(--s-3); }
.dl__row { display: flex; align-items: baseline; gap: var(--s-4); font-size: var(--fs-base); }
.dl__key { color: var(--text-3); flex: none; min-width: 132px; font-size: var(--fs-sm); }
.dl__val { color: var(--text-1); text-align: right; margin-left: auto; font-variant-numeric: tabular-nums; }
.dl__row--total { border-top: 1px solid var(--border); padding-top: var(--s-3); margin-top: var(--s-1); }
.dl__row--total .dl__key { color: var(--text-1); font-weight: var(--fw-semibold); font-size: var(--fs-base); }
.dl__row--total .dl__val { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--text-1); }

/* Ticket thread */
.thread { display: flex; flex-direction: column; gap: var(--s-4); }
.message { display: flex; gap: var(--s-3); align-items: flex-start; }
.message__bubble {
  flex: 1; min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: var(--s-4);
}
.message--staff .message__bubble { background: var(--accent-soft); border-color: var(--accent-line); }
.message__head { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-2); font-size: var(--fs-sm); }
.message__author { font-weight: var(--fw-semibold); color: var(--text-1); }
.message__time { color: var(--text-3); font-size: var(--fs-xs); margin-left: auto; }
.message__body { color: var(--text-1); font-size: var(--fs-base); line-height: var(--lh-base); white-space: pre-wrap; overflow-wrap: anywhere; }

/* Charts */
.chart { width: 100%; height: 170px; display: block; overflow: visible; }
.chart__grid { stroke: var(--border-subtle); stroke-width: 1; }
.chart__line { stroke: var(--accent); stroke-width: 2; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.chart__dot { fill: var(--accent); }
.chart__bar { fill: var(--accent); transition: fill var(--dur-fast) var(--ease); }
.chart__bar:hover { fill: var(--accent-hover); }
.chart__label { fill: var(--text-3); font-size: 10px; font-family: var(--font-sans); }

/* Pricing tiers */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); gap: var(--s-3); }
.tier {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-5);
  background: var(--surface);
  position: relative;
  transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.tier:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.tier.is-featured { border-color: var(--accent); background: linear-gradient(170deg, var(--accent-soft), var(--surface) 72%); }
.tier__flag {
  position: absolute; top: -10px; left: var(--s-4);
  background: var(--accent); color: var(--on-accent);
  font-size: 0.625rem; font-weight: var(--fw-bold);
  letter-spacing: var(--track-caps); text-transform: uppercase;
  padding: 3px var(--s-3); border-radius: var(--r-full);
}
.tier__label { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-2); }
.tier__price {
  font-family: var(--font-display);
  font-size: var(--fs-xl); font-weight: var(--fw-extra);
  letter-spacing: -0.03em; color: var(--text-1);
  font-variant-numeric: tabular-nums; margin: var(--s-1) 0;
}
.tier__price small { font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--text-3); }
.tier__meta { font-size: var(--fs-xs); color: var(--text-3); }
.tier__save {
  display: inline-block; margin-top: var(--s-2);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  color: var(--success-text); background: var(--success-soft);
  border-radius: var(--r-full); padding: 2px var(--s-3);
}

/* Amount picker */
.amount-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: var(--s-2); }
.amount-btn {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-sunken);
  padding: var(--s-3);
  text-align: center;
  transition: all var(--dur-fast) var(--ease);
}
.amount-btn strong { display: block; font-family: var(--font-display); font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--text-1); font-variant-numeric: tabular-nums; }
.amount-btn span { font-size: var(--fs-xs); color: var(--text-3); }
.amount-btn:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.amount-btn.is-active { border-color: var(--accent); background: var(--accent-soft); }
.amount-btn.is-active strong { color: var(--accent-text); }

/* Loading */
.skeleton { background: var(--skeleton); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--r-xs); }
.spinner { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: var(--r-full); animation: spin 0.62s linear infinite; flex: none; }
.btn.is-loading { pointer-events: none; opacity: 0.75; }

.copy-btn { position: relative; }
.copy-btn.is-copied::after {
  content: "Copied";
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  background: var(--n12); color: var(--n0);
  font-size: var(--fs-xs); font-weight: var(--fw-medium);
  padding: 3px var(--s-3); border-radius: var(--r-xs);
  white-space: nowrap; pointer-events: none;
}

/* Dropzone */
.dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-md);
  transition: border-color var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
}
.dropzone.is-dragging { border-color: var(--accent); background: var(--accent-soft); }

/* ==========================================================================
   8. Marketing site
   ========================================================================== */

.site-nav {
  height: 72px;
  display: flex; align-items: center; gap: var(--s-6);
  padding: 0 var(--s-6);
  position: sticky; top: 0; z-index: 40;
  background: transparent;
  transition: background var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-nav.is-stuck {
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--border-subtle);
}
.site-nav__inner {
  width: 100%; max-width: var(--site-max); margin: 0 auto;
  display: flex; align-items: center; gap: var(--s-6);
}
.site-nav__links { display: flex; gap: var(--s-6); margin-left: var(--s-5); }
.site-nav__links a { color: var(--text-2); font-size: var(--fs-base); font-weight: var(--fw-medium); }
.site-nav__links a:hover { color: var(--text-1); }
.site-nav__actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.nav-toggle { display: none; }

.site-main { position: relative; overflow-x: clip; }
.wrap { max-width: var(--site-max); margin: 0 auto; padding: 0 var(--s-6); }

/* Any block that may host a decorative orb clips it horizontally. */
.section-block,
.post-hero,
.cta-band,
.hero { position: relative; overflow-x: clip; }

.hero {
  position: relative;
  padding: var(--s-11) 0 var(--s-10);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--glow-hero);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(58% 46% at 50% 30%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(58% 46% at 50% 30%, #000, transparent 80%);
  opacity: 0.6;
}
.hero__inner { max-width: 50rem; margin: 0 auto; position: relative; }
.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, var(--fs-5xl));
  font-weight: var(--fw-extra);
  letter-spacing: var(--track-hero);
  line-height: 1.05;
  margin: var(--s-5) 0 var(--s-5);
}
.hero p {
  font-size: var(--fs-lg);
  color: var(--text-2);
  max-width: 40rem;
  margin: 0 auto var(--s-7);
}
.hero__actions { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--text-3); }

/* Framed product visual under the hero */
.showcase { position: relative; margin-top: var(--s-9); }
.showcase::before {
  content: ""; position: absolute;
  left: 8%; right: 8%; top: 8%; height: 130px;
  background: var(--grad-mesh);
  filter: blur(64px);
  opacity: 0.5;
  border-radius: var(--r-full);
  z-index: -1;
}
.showcase__frame {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.showcase__bar {
  display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-sunken);
}
.showcase__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.showcase__url {
  margin-left: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-full);
  padding: 3px var(--s-4);
}
.showcase__body { padding: var(--s-5); }

.section-block { padding: var(--s-11) 0; position: relative; }
.section-block--tight { padding: var(--s-10) 0; }

.section-title { text-align: center; max-width: 44rem; margin: 0 auto var(--s-9); }
.section-title h2 {
  font-size: clamp(1.75rem, 3.6vw, var(--fs-4xl));
  font-weight: var(--fw-extra);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: var(--s-3) 0 var(--s-4);
}
.section-title p { color: var(--text-2); font-size: var(--fs-md); }

/* Bento feature grid */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-4); }
.bento__item {
  grid-column: span 2;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.bento__item:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.bento__item--wide { grid-column: span 3; }
.bento__item--full { grid-column: span 6; }
.bento__item::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 50% 0%, var(--accent-soft), transparent 62%);
  opacity: 0; transition: opacity var(--dur-base) var(--ease);
  pointer-events: none;
}
.bento__item:hover::after { opacity: 1; }
.bento__icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent-text);
  display: grid; place-items: center;
  margin-bottom: var(--s-4);
}
.bento__icon .icon { width: 19px; height: 19px; }
.bento__item h3 { font-size: var(--fs-md); margin-bottom: var(--s-2); }
.bento__item p { color: var(--text-2); font-size: var(--fs-base); }
.bento__art { margin-top: var(--s-5); }

/* Numbered steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); counter-reset: step; }
.step {
  position: relative;
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
}
.step__num {
  width: 34px; height: 34px;
  border-radius: var(--r-full);
  background: var(--grad-brand);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: var(--fs-sm);
  display: grid; place-items: center;
  margin-bottom: var(--s-4);
}
.step h3 { font-size: var(--fs-md); margin-bottom: var(--s-2); }
.step p { color: var(--text-2); font-size: var(--fs-base); }

/* Stat strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-5);
  padding: var(--s-8) var(--s-6);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
}
.stat-strip__item { text-align: center; }
.stat-strip__value {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extra);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.stat-strip__label { font-size: var(--fs-sm); color: var(--text-3); margin-top: var(--s-2); }

/* Marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* Spacing lives on the item, not as track `gap`. With the list duplicated
   twice, translateX(-50%) must equal exactly one copy's width — a track gap
   leaves the loop half a gap short and the seam visibly jumps. */
.marquee__item {
  display: flex; align-items: center; gap: var(--s-2);
  padding-right: var(--s-9);
  color: var(--text-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

/* FAQ accordion */
.faq { max-width: var(--prose-max); margin: 0 auto; display: grid; gap: var(--s-3); }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease);
}
.faq__item[open] { border-color: var(--border); }
.faq__item summary {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-5);
  cursor: pointer;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-md);
  color: var(--text-1);
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { margin-left: auto; color: var(--text-3); transition: transform var(--dur-base) var(--ease); }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__body { padding: 0 var(--s-5) var(--s-5); color: var(--text-2); }
.faq__body p + p { margin-top: var(--s-3); }

/* CTA band */
.cta-band {
  position: relative;
  text-align: center;
  padding: var(--s-10) var(--s-6);
  border-radius: var(--r-2xl);
  border: 1px solid var(--accent-line);
  background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%);
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, var(--fs-3xl)); letter-spacing: -0.03em; margin-bottom: var(--s-4); }
.cta-band p { color: var(--text-2); max-width: 40ch; margin: 0 auto var(--s-6); }

/* Footer */
.site-footer { border-top: 1px solid var(--border-subtle); padding: var(--s-9) 0 var(--s-7); margin-top: var(--s-10); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s-7); }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s-4);
}
.footer-col ul { display: grid; gap: var(--s-3); }
.footer-col a { color: var(--text-2); font-size: var(--fs-base); }
.footer-col a:hover { color: var(--text-1); }
.footer-col p { color: var(--text-3); font-size: var(--fs-base); max-width: 34ch; margin-top: var(--s-4); }
.footer-bottom {
  margin-top: var(--s-8); padding-top: var(--s-5);
  border-top: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap;
  font-size: var(--fs-sm); color: var(--text-3);
}
.footer-bottom .spacer { margin-left: auto; }

/* Language switcher */
.lang-switch { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.lang-chip {
  display: inline-flex; align-items: center; gap: var(--s-2);
  height: 30px; padding: 0 var(--s-4);
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  transition: all var(--dur-fast) var(--ease);
}
.lang-chip:hover { border-color: var(--border-strong); color: var(--text-1); }
.lang-chip.is-active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-text); }
.lang-chip__count { font-size: var(--fs-xs); color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   9. Blog
   ========================================================================== */

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s-5); }

.post-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.post-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card__cover { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: var(--bg-sunken); }
.post-card__cover svg { width: 100%; height: 100%; }
.post-card__body { padding: var(--s-5); display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-xs); color: var(--text-3); margin-bottom: var(--s-3); flex-wrap: wrap; }
.post-card h3 {
  font-size: var(--fs-md);
  line-height: 1.35;
  margin-bottom: var(--s-2);
}
.post-card h3 a { color: var(--text-1); }
.post-card h3 a:hover { color: var(--accent-text); }
.post-card p { color: var(--text-2); font-size: var(--fs-base); flex: 1; }
.post-card__foot { margin-top: var(--s-4); display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-xs); color: var(--text-3); }

.post-card--featured { grid-column: 1 / -1; flex-direction: row; }
.post-card--featured .post-card__cover { aspect-ratio: auto; width: 46%; flex: none; }
.post-card--featured .post-card__body { padding: var(--s-8); justify-content: center; }
.post-card--featured h3 { font-size: var(--fs-2xl); letter-spacing: -0.028em; }
.post-card--featured p { flex: none; font-size: var(--fs-md); }

/* Cover art tints, keyed by category accent */
.cover--green  { --cover-a: #22c55e; --cover-b: #a3e635; }
.cover--violet { --cover-a: #8b5cf6; --cover-b: #d946ef; }
.cover--lime   { --cover-a: #a3e635; --cover-b: #22c55e; }
.cover--cyan   { --cover-a: #06b6d4; --cover-b: #3b82f6; }
.cover--amber  { --cover-a: #f59e0b; --cover-b: #ef4444; }

/* Article typography */
.post-hero { padding: var(--s-9) 0 var(--s-7); position: relative; }
.post-hero h1 {
  font-size: clamp(1.9rem, 4.4vw, var(--fs-4xl));
  letter-spacing: -0.032em;
  line-height: 1.1;
  margin: var(--s-4) 0;
  max-width: 22ch;
}
.post-hero__lead { font-size: var(--fs-lg); color: var(--text-2); max-width: 46rem; }
.post-hero__meta { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-6); font-size: var(--fs-sm); color: var(--text-3); }

.prose {
  max-width: var(--prose-max);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-2);
}
.prose > * + * { margin-top: var(--s-5); }
.prose h2 {
  font-size: var(--fs-2xl);
  letter-spacing: -0.026em;
  color: var(--text-1);
  margin-top: var(--s-9);
  scroll-margin-top: 96px;
}
.prose h3 {
  font-size: var(--fs-lg);
  color: var(--text-1);
  margin-top: var(--s-7);
  scroll-margin-top: 96px;
}
.prose p { color: var(--text-2); }
.prose strong { color: var(--text-1); font-weight: var(--fw-semibold); }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--text-1); }
.prose ul, .prose ol { display: grid; gap: var(--s-3); padding-left: var(--s-6); }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose li::marker { color: var(--text-3); }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
  color: var(--text-1);
  font-size: var(--fs-lg);
  font-style: italic;
}
.prose blockquote p { color: var(--text-1); }
.prose code {
  background: var(--surface-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xs);
  padding: 1px 5px;
  font-size: 0.875em;
  color: var(--accent-text);
}
.prose pre {
  background: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: var(--s-5);
  overflow-x: auto;
  font-size: var(--fs-sm);
  line-height: 1.7;
}
.prose pre code { background: none; border: none; padding: 0; color: var(--text-2); }
.prose table { width: 100%; font-size: var(--fs-base); display: block; overflow-x: auto; }
.prose th {
  text-align: left;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
  color: var(--text-3);
  padding: var(--s-3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.prose td { padding: var(--s-3); border-bottom: 1px solid var(--border-subtle); color: var(--text-2); }
.prose img { border-radius: var(--r-md); border: 1px solid var(--border-subtle); }
.prose hr { margin: var(--s-8) 0; }

/* Table of contents */
.toc {
  position: sticky; top: 96px;
  border-left: 1px solid var(--border-subtle);
  padding-left: var(--s-5);
}
.toc h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
  color: var(--text-3);
  margin-bottom: var(--s-4);
}
.toc ul { display: grid; gap: var(--s-3); }
.toc a { color: var(--text-3); font-size: var(--fs-sm); line-height: 1.4; display: block; }
.toc a:hover, .toc a.is-active { color: var(--accent-text); }

/* ==========================================================================
   10. Utilities
   ========================================================================== */

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; min-width: 0; }
.spacer { margin-left: auto; }

.gap-1 { gap: var(--s-1); } .gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); } .gap-5 { gap: var(--s-5); } .gap-6 { gap: var(--s-6); }

.mt-0 { margin-top: 0; } .mt-1 { margin-top: var(--s-1); } .mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); } .mt-8 { margin-top: var(--s-8); }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: var(--s-1); } .mb-2 { margin-bottom: var(--s-2); }
.mb-3 { margin-bottom: var(--s-3); } .mb-4 { margin-bottom: var(--s-4); } .mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); } .mb-7 { margin-bottom: var(--s-7); } .mb-8 { margin-bottom: var(--s-8); }

.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-xs { font-size: var(--fs-xs); }
.text-sm { font-size: var(--fs-sm); }
.text-md { font-size: var(--fs-md); }
.text-lg { font-size: var(--fs-lg); }
.fw-medium { font-weight: var(--fw-medium); }
.fw-semibold { font-weight: var(--fw-semibold); }
.fw-bold { font-weight: var(--fw-bold); }
.display { font-family: var(--font-display); }
.break-all { word-break: break-all; overflow-wrap: anywhere; }
.no-wrap { white-space: nowrap; }
.relative { position: relative; }

/* ==========================================================================
   11. Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .grid--sidebar { grid-template-columns: minmax(0, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__item, .bento__item--wide { grid-column: span 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-card--featured { flex-direction: column; }
  .post-card--featured .post-card__cover { width: 100%; aspect-ratio: 16 / 9; }
  .post-card--featured .post-card__body { padding: var(--s-6); }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 252px; }

  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; left: 0; top: 0;
    width: var(--sidebar-w);
    transform: translateX(-100%);
    transition: transform var(--dur-base) var(--ease-out);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.is-open { transform: none; }
  .sidebar-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .sidebar-toggle { display: inline-flex; }

  .content { padding: var(--s-5) var(--s-4); }
  .topbar { padding: 0 var(--s-4); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-pane { padding: var(--s-6); }

  .site-nav__links { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav__inner { gap: var(--s-3); min-width: 0; }
  .site-nav__actions { gap: var(--s-1); min-width: 0; }
  .steps { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-block { padding: var(--s-9) 0; }
  .hero { padding: var(--s-9) 0 var(--s-8); }
}

@media (max-width: 640px) {
  :root { --topbar-h: 56px; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .options--2, .options--3 { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: 1fr; }
  .bento__item, .bento__item--wide, .bento__item--full { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .post-grid { grid-template-columns: 1fr; }

  .page-head h1 { font-size: var(--fs-xl); }
  .page-head__actions { width: 100%; }
  .page-head__actions .btn { flex: 1; }

  .card__body { padding: var(--s-4); }
  .card__head { padding: var(--s-3) var(--s-4); }
  .table th:first-child, .table td:first-child { padding-left: var(--s-4); }
  .table th:last-child, .table td:last-child { padding-right: var(--s-4); }

  .toasts { left: var(--s-4); right: var(--s-4); max-width: none; }
  .filters .search { max-width: none; min-width: 0; width: 100%; }
  .filters .input, .filters .select { flex: 1; min-width: 0; }
  .dl__key { min-width: 0; }
  .topbar__title small { display: none; }

  .wrap { padding: 0 var(--s-4); }
  .site-nav { padding: 0 var(--s-4); }

  /* The nav cannot hold the wordmark, both auth buttons, the theme toggle and
     the hamburger at this width. The secondary link already lives in the
     mobile panel, so only the primary call to action stays. */
  .site-nav__actions .btn--ghost:not(.btn--icon):not(.nav-toggle) { display: none; }

  .hero__actions .btn { width: 100%; }
  .auth-stats { gap: var(--s-6); }
  .stat-strip { grid-template-columns: 1fr; gap: var(--s-6); padding: var(--s-6); }
  .prose { font-size: 1rem; }
  .toc { display: none; }
}

/* ==========================================================================
   12. Print
   ========================================================================== */

@media print {
  .sidebar, .topbar, .toasts, .page-head__actions, .ad-card, .pagination,
  .site-nav, .site-footer, .cta-band { display: none !important; }
  .shell { grid-template-columns: 1fr; }
  body { background: #fff; color: #000; }
  .card { border: 1px solid #ccc; box-shadow: none; }
  .prose { max-width: none; }
}
