/* ==========================================================================
   LocalDrop Studio — Light-First Apple / Canva / Figma Consumer Studio UI
   Self-hosted static Plus Jakarta Sans + JetBrains Mono WOFF2 fonts,
   warm alabaster canvas, pure white elevated cards, pastel coral/indigo/mint
   ambient glow, interactive split-curtain image comparison, print-ready A4.
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/plus-jakarta-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/fonts/plus-jakarta-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/fonts/plus-jakarta-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/fonts/plus-jakarta-sans-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("/fonts/plus-jakarta-sans-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/jetbrains-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/fonts/jetbrains-mono-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/fonts/jetbrains-mono-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Light-First Warm Consumer Studio Tokens (Default)
   ========================================================================== */
:root,
[data-theme="light"] {
  color-scheme: light;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --bg: #f8fafc;
  --bg-elevated: rgba(255, 255, 255, 0.86);
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-input: #f8fafc;
  --bg-hover: #f1f5f9;

  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --indigo: #4f46e5;
  --indigo-hover: #4338ca;
  --indigo-btn: #4f46e5;
  --indigo-soft: rgba(79, 70, 229, 0.09);
  --coral: #e11d48;
  --coral-soft: rgba(244, 63, 94, 0.09);
  --mint: #047857;
  --mint-soft: rgba(5, 150, 105, 0.11);
  --amber: #92400e;
  --amber-soft: rgba(217, 119, 6, 0.12);

  --grad-brand: linear-gradient(135deg, #4f46e5 0%, #7c3aed 52%, #ec4899 100%);
  --grad-hero-text: linear-gradient(110deg, #4f46e5 0%, #db2777 56%, #f97316 100%);

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05), 0 8px 24px -10px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 20px 44px -16px rgba(79, 70, 229, 0.16);
  --shadow-hover: 0 12px 32px -12px rgba(79, 70, 229, 0.22);

  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --container: 1220px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Smooth Dark Mode Option */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f1a;
  --bg-elevated: rgba(15, 20, 34, 0.88);
  --bg-card: #131a2c;
  --bg-subtle: #1a2338;
  --bg-input: #0e1424;
  --bg-hover: #1e2942;

  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);

  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --indigo: #818cf8;
  --indigo-hover: #6366f1;
  --indigo-btn: #4f46e5;
  --indigo-soft: rgba(129, 140, 248, 0.15);
  --coral: #fb7185;
  --coral-soft: rgba(251, 113, 133, 0.14);
  --mint: #34d399;
  --mint-soft: rgba(52, 211, 153, 0.14);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.14);

  --grad-hero-text: linear-gradient(110deg, #a5b4fc 0%, #f472b6 56%, #fb923c 100%);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 6px 24px -10px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 20px 50px -16px rgba(0, 0, 0, 0.72);
  --shadow-hover: 0 16px 36px -12px rgba(99, 102, 241, 0.3);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Soft Warm Pastel Studio Ambient Glow (Coral + Indigo + Mint) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 45% at 15% -5%, rgba(99, 102, 241, 0.11), transparent 65%),
    radial-gradient(ellipse 56% 42% at 88% 0%, rgba(244, 63, 94, 0.09), transparent 64%),
    radial-gradient(ellipse 50% 35% at 52% 10%, rgba(16, 185, 129, 0.07), transparent 65%);
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(ellipse 65% 42% at 18% -8%, rgba(99, 102, 241, 0.18), transparent 66%),
    radial-gradient(ellipse 52% 38% at 85% -2%, rgba(236, 72, 153, 0.13), transparent 64%),
    radial-gradient(ellipse 46% 30% at 52% 10%, rgba(16, 185, 129, 0.09), transparent 65%);
}

a {
  color: var(--indigo);
  text-decoration: none;
  transition: color 0.16s ease;
}
a:hover {
  color: var(--indigo-hover);
  text-decoration: underline;
}

.is-hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.4rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--indigo-btn);
  color: #ffffff;
  padding: 0.55rem 1rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   Sticky Consumer Header (Static <=96px on Mobile)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg-elevated);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 64px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  flex-wrap: nowrap;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--grad-brand);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.03em;
  box-shadow: 0 6px 18px -4px rgba(79, 70, 229, 0.45);
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.3rem 0.76rem;
  border-radius: 999px;
  background: var(--mint-soft);
  border: 1px solid rgba(5, 150, 105, 0.24);
  color: var(--mint);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.16s var(--ease-out), background 0.16s ease;
}
.trust-pill:hover {
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--mint);
  background: rgba(5, 150, 105, 0.16);
}
@media (max-width: 1120px) {
  .trust-pill {
    display: none;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-links > a {
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.38rem 0.66rem;
  border-radius: 999px;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links > a:hover,
.nav-links > a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-subtle);
  text-decoration: none;
}

@media (max-width: 780px) {
  .site-header {
    position: static;
  }
  .header-inner {
    flex-wrap: wrap;
    min-height: auto;
    gap: 0.4rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }
  .brand-group {
    width: 100%;
    justify-content: space-between;
  }
  .nav-links {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.12rem;
    gap: 0.35rem;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .support-pill,
  .theme-toggle {
    white-space: nowrap;
    flex: 0 0 auto;
  }
}

.support-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 63, 94, 0.25);
  background: var(--coral-soft);
  color: var(--coral);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s var(--ease-out), background 0.16s ease;
}
.support-pill:hover {
  transform: translateY(-1px);
  background: rgba(244, 63, 94, 0.16);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--bg-subtle);
}

main {
  flex: 1;
  padding: 2rem 0 4.5rem;
}

/* ==========================================================================
   Hero Split + Live Before/After Image Compressor Demo (Above the Fold)
   ========================================================================== */
.hero-studio {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.75rem;
  animation: fadeSlideUp 0.55s var(--ease-out) both;
}

@media (max-width: 1020px) {
  .hero-studio {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.86rem;
  border-radius: 999px;
  background: var(--indigo-soft);
  border: 1px solid rgba(79, 70, 229, 0.18);
  color: var(--indigo);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-copy h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 3.5vw, 2.95rem);
  font-weight: 800;
  line-height: 1.11;
  letter-spacing: -0.035em;
  color: var(--text);
}

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

.hero-lead {
  margin: 0 0 1.4rem;
  font-size: 1.03rem;
  color: var(--text-secondary);
  max-width: 52ch;
  line-height: 1.65;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.hero-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.hero-trust-item strong {
  display: block;
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--text);
}
.hero-trust-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Interactive Hero Demo Card */
.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

.demo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.demo-title-wrap strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text);
}
.demo-title-wrap span {
  font-size: 0.77rem;
  color: var(--text-muted);
}

.savings-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
  background: var(--mint-soft);
  border: 1px solid rgba(5, 150, 105, 0.24);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Split-Screen Before / After Curtain Slider */
.split-compare {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
  margin-bottom: 0.95rem;
}

.split-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.split-after-layer {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--split-pct, 50%));
  pointer-events: none;
}

.split-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split-pct, 50%);
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(15, 23, 42, 0.5);
  pointer-events: none;
  transform: translateX(-1px);
}

.split-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.35);
  border: 2px solid rgba(79, 70, 229, 0.25);
}

.split-tag {
  position: absolute;
  top: 10px;
  padding: 0.26rem 0.62rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  pointer-events: none;
}
.split-tag-before {
  left: 10px;
}
.split-tag-after {
  right: 10px;
  background: rgba(5, 150, 105, 0.9);
}

.split-range-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}

.demo-controls {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.demo-slider-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.demo-slider-row label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  min-width: 112px;
}

.demo-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Buttons, Pills, Segmented Controls & Gradient Sliders
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.08rem;
  border-radius: 11px;
  font-family: var(--font-sans);
  font-size: 0.87rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: all 0.18s var(--ease-out);
}
.btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  color: var(--text);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--grad-brand);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 22px -6px rgba(79, 70, 229, 0.5);
}
.btn-primary:hover {
  color: #ffffff;
  filter: brightness(1.06);
  box-shadow: 0 12px 28px -6px rgba(79, 70, 229, 0.55);
}
.btn-success {
  background: #059669;
  border-color: transparent;
  color: #ffffff;
}
.btn-success:hover {
  background: #047857;
  color: #ffffff;
}
.btn-sm {
  padding: 0.42rem 0.78rem;
  font-size: 0.8rem;
  border-radius: 9px;
}

.pill-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 3px;
  border-radius: 11px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.pill-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.82rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s var(--ease-out);
}
.pill-btn:hover {
  color: var(--text);
}
.pill-btn.is-active {
  background: var(--bg-card);
  color: var(--indigo);
  box-shadow: var(--shadow-xs);
}

/* Custom Range Slider */
input[type="range"].studio-range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 140px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #4f46e5 0%,
    #ec4899 var(--slider-pct, 75%),
    var(--border) var(--slider-pct, 75%),
    var(--border) 100%
  );
  outline: none;
  cursor: pointer;
}
input[type="range"].studio-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #4f46e5;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
  transition: transform 0.15s var(--ease-out);
}
input[type="range"].studio-range::-webkit-slider-thumb:hover {
  transform: scale(1.14);
}
input[type="range"].studio-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #4f46e5;
}

/* ==========================================================================
   Hub Catalog Grid, Filter Pills & Category Cards
   ========================================================================== */
.catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.catalog-head h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.catalog-head p {
  margin: 0.25rem 0 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.45rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-pill {
  padding: 0.46rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s var(--ease-out);
}
.filter-pill:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.filter-pill.is-active {
  background: var(--indigo-btn);
  border-color: var(--indigo-btn);
  color: #ffffff;
  box-shadow: 0 6px 16px -4px rgba(79, 70, 229, 0.45);
}

.search-box {
  position: relative;
  min-width: 0;
  width: 100%;
  flex: 1 1 240px;
  max-width: 340px;
}
.search-box input {
  width: 100%;
  padding: 0.58rem 0.9rem 0.58rem 2.3rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.search-box input:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px var(--indigo-soft);
}
.search-box svg {
  position: absolute;
  left: 0.82rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.15rem;
  margin-bottom: 2.25rem;
}
@media (max-width: 420px) {
  .tool-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tool-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.22s var(--ease-out), border-color 0.18s ease, box-shadow 0.22s ease;
  animation: fadeSlideUp 0.48s var(--ease-out) both;
}
.tool-card:nth-child(2) { animation-delay: 0.03s; }
.tool-card:nth-child(3) { animation-delay: 0.06s; }
.tool-card:nth-child(4) { animation-delay: 0.09s; }
.tool-card:nth-child(n+5) { animation-delay: 0.12s; }

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: var(--shadow-hover);
  color: var(--text);
  text-decoration: none;
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.tool-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--indigo-soft);
  color: var(--indigo);
  font-size: 1.2rem;
}
.tool-card[data-cat="Documents & PDF"] .tool-icon-badge {
  background: var(--coral-soft);
  color: var(--coral);
}
.tool-card[data-cat="Privacy & Safety"] .tool-icon-badge {
  background: var(--mint-soft);
  color: var(--mint);
}
.tool-card[data-cat="Everyday Utilities"] .tool-icon-badge {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.24rem 0.64rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--indigo-soft);
  color: var(--indigo);
}
.badge-muted {
  background: var(--bg-subtle);
  color: var(--text-secondary);
}
.badge-success {
  background: var(--mint-soft);
  color: var(--mint);
}
.badge-warning {
  background: var(--amber-soft);
  color: var(--amber);
}
.badge-danger {
  background: var(--coral-soft);
  color: var(--coral);
}

.tool-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.tool-card p {
  margin: 0 0 1.15rem;
  font-size: 0.89rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--indigo);
}
.tool-card-footer .arrow {
  transition: transform 0.18s var(--ease-out);
}
.tool-card:hover .tool-card-footer .arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   Individual Studio Tool Pages & Interactive Workbenches
   ========================================================================== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.48rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumbs a {
  color: var(--text-secondary);
  font-weight: 600;
}

.tool-header {
  margin-bottom: 1.65rem;
}
.tool-header h1 {
  margin: 0.55rem 0 0.55rem;
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.tool-header .lead {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 74ch;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2.25rem;
}
@media (max-width: 960px) {
  .studio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.studio-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.45rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 560px) {
  .studio-panel {
    padding: 1.05rem;
  }
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

/* Drag & Drop File Zone */
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.45rem;
  padding: 1.6rem 1.2rem;
  border-radius: 14px;
  border: 2px dashed var(--border-strong);
  background: var(--bg-subtle);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s var(--ease-out);
  margin-bottom: 1.1rem;
}
.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--indigo);
  background: var(--indigo-soft);
}
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.dropzone-icon {
  font-size: 1.65rem;
  line-height: 1;
}
.dropzone strong {
  font-size: 0.94rem;
  color: var(--text);
}
.dropzone span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Form Inputs */
.field-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.field-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--indigo);
  font-weight: 700;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.62rem 0.84rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px var(--indigo-soft);
}
.textarea {
  min-height: 92px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.58rem 0.82rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
  font-size: 0.86rem;
  font-weight: 600;
}
.checkbox-row input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--indigo);
  cursor: pointer;
}

/* Preview Canvas Stage */
.canvas-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background:
    repeating-conic-gradient(var(--bg-subtle) 0% 25%, transparent 0% 50%) 50% / 18px 18px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.canvas-stage canvas,
.canvas-stage img {
  max-width: 100%;
  max-height: 440px;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

/* PDF Page Reorder List */
.pdf-pages-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.pdf-page-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.6rem 0.72rem;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  min-width: 0;
  max-width: 100%;
}
.pdf-page-info {
  display: flex;
  align-items: center;
  gap: 0.68rem;
  min-width: 0;
  flex: 1 1 0%;
  overflow: hidden;
}
.pdf-thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.pdf-page-meta {
  min-width: 0;
  flex: 1 1 0%;
  overflow: hidden;
}
.pdf-page-meta strong {
  display: block;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdf-page-meta span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.pdf-page-btns {
  display: flex;
  gap: 0.32rem;
  flex-shrink: 0;
}

/* Gradient Swatch Buttons (Screenshot Beautifier) */
.grad-swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}
.grad-swatch {
  height: 36px;
  border-radius: 9px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease-out), border-color 0.15s ease;
}
.grad-swatch:hover {
  transform: scale(1.04);
}
.grad-swatch.is-active {
  border-color: var(--text);
  box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--indigo);
}

/* QR Preview Frame */
.qr-preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  border-radius: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.qr-preview-box svg {
  width: 248px;
  height: 248px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

/* Signature Canvas */
.sig-canvas-wrap {
  position: relative;
  border-radius: 14px;
  border: 2px dashed var(--border-strong);
  background: #ffffff;
  overflow: hidden;
  margin-bottom: 1rem;
}
.sig-canvas {
  display: block;
  width: 100%;
  height: 260px;
  cursor: crosshair;
  touch-action: none;
}
.sig-baseline {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 52px;
  border-bottom: 1.5px dashed #cbd5e1;
  pointer-events: none;
}
.sig-hint {
  position: absolute;
  left: 28px;
  bottom: 24px;
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 600;
  pointer-events: none;
}

/* Color Palette Swatches Grid */
.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.swatch-card {
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font-family: var(--font-sans);
  transition: transform 0.16s var(--ease-out), box-shadow 0.16s ease;
}
.swatch-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.swatch-color {
  height: 78px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0.5rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}
.swatch-body {
  padding: 0.65rem 0.75rem;
}
.swatch-hex {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  display: block;
}
.swatch-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.15rem;
}

/* Password Output & 5-Segment Strength Meter */
.pw-display-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  margin-bottom: 0.9rem;
}
.pw-text {
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2.2vw, 1.38rem);
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}
.strength-segments {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 0.75rem;
}
.strength-seg {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  transition: background 0.25s ease;
}
.strength-seg.on-danger { background: #f43f5e; }
.strength-seg.on-warning { background: #f59e0b; }
.strength-seg.on-info { background: #4f46e5; }
.strength-seg.on-success { background: #059669; }

/* Invoice Live Paper Sheet */
.invoice-sheet {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  overflow-x: auto;
}
.inv-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.1rem;
  border-bottom: 2px solid #0f172a;
  margin-bottom: 1.1rem;
}
.inv-brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.inv-meta {
  text-align: right;
  font-size: 0.84rem;
  color: #475569;
}
.inv-meta strong {
  color: #0f172a;
}
.inv-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.86rem;
}
.inv-table th {
  text-align: left;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.inv-table td {
  padding: 0.62rem 0.6rem;
  border-bottom: 1px solid #f1f5f9;
}
.inv-table .num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.inv-totals {
  margin-left: auto;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
}
.inv-total-row {
  display: flex;
  justify-content: space-between;
}
.inv-grand {
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 2px solid #0f172a;
  font-size: 1.1rem;
  font-weight: 800;
}

.inv-item-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 96px 36px;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.45rem;
  min-width: 0;
  max-width: 100%;
}
.inv-item-editor .input {
  min-width: 0;
}
@media (max-width: 560px) {
  .inv-item-editor {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px;
  }
  .inv-item-editor > input:first-child {
    grid-column: 1 / -1;
  }
}

/* EXIF Inspector Alert & Tag Table */
.alert-box {
  padding: 0.9rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  font-size: 0.88rem;
}
.alert-box.is-danger {
  background: var(--coral-soft);
  border-color: rgba(244, 63, 94, 0.3);
  color: var(--text);
}
.alert-box.is-success {
  background: var(--mint-soft);
  border-color: rgba(5, 150, 105, 0.3);
  color: var(--text);
}
.alert-box strong {
  display: block;
  margin-bottom: 0.15rem;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}
@media (max-width: 560px) {
  .stat-strip {
    grid-template-columns: 1fr;
  }
}
.stat-tile {
  padding: 0.72rem 0.85rem;
  border-radius: 11px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}
.stat-tile span {
  display: block;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-muted);
}
.stat-tile strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 0.12rem;
}

.code-snippet {
  margin: 0.75rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 11px;
  background: #0f172a;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.79rem;
  line-height: 1.5;
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
}

/* ==========================================================================
   Content Sections, Sponsor Card, FAQs, Prose, Footer & Modals
   ========================================================================== */
.sponsor-slot {
  margin: 2.1rem 0;
  padding: 1.25rem 1.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(79, 70, 229, 0.2);
  background: linear-gradient(135deg, var(--indigo-soft), var(--coral-soft));
}
.sponsor-slot-copy strong {
  display: block;
  font-size: 1rem;
  margin-top: 0.25rem;
}
.sponsor-slot-copy p {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 62ch;
}

.content-section {
  margin-bottom: 1.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  box-shadow: var(--shadow-xs);
}
.content-section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.content-section p,
.content-section li {
  color: var(--text-secondary);
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.mono-cell {
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
  word-break: break-word;
}
table.meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}
table.meta-table th,
table.meta-table td {
  padding: 0.68rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
table.meta-table th {
  background: var(--bg-subtle);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
table.meta-table tr:last-child td {
  border-bottom: none;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-input);
}
.faq-item summary {
  padding: 0.95rem 1.15rem;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--indigo);
  transition: transform 0.2s var(--ease-out);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0.8rem 1.15rem 1.05rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.prose-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  max-width: 840px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.prose-card h1 {
  margin-top: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.prose-card h2 {
  margin-top: 1.75rem;
  font-size: 1.22rem;
}
.prose-card p,
.prose-card li {
  color: var(--text-secondary);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 2.2rem 0;
  margin-top: auto;
  font-size: 0.87rem;
  color: var(--text-muted);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.footer-links a {
  color: var(--text-secondary);
  font-weight: 600;
}

.modal-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* 5-App Cross-Link Footer Network */
.footer-network {
  margin-top: 1.65rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}
.network-head {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.network-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (max-width: 960px) {
  .network-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .network-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.network-card {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.68rem 0.78rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text);
  text-decoration: none;
  min-width: 0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.network-card:hover {
  border-color: var(--indigo);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--text);
}
.network-card.is-current {
  border-color: rgba(79, 70, 229, 0.35);
  background: var(--indigo-soft);
}
.network-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
}
.network-current-pill {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--indigo);
  white-space: nowrap;
}
.network-card span.network-desc {
  font-size: 0.75rem;
  line-height: 1.38;
  color: var(--text-secondary);
}

.not-found-card {
  text-align: center;
  padding: 3rem 1.8rem;
}
.not-found-code {
  font-family: var(--font-mono);
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--indigo);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.support-modal {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text);
  padding: 1.55rem;
  max-width: 470px;
  width: calc(100% - 2rem);
  box-shadow: var(--shadow-md);
}
.support-modal::backdrop {
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(6px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}
.modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.toast-container {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.05rem;
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 14px 36px -8px rgba(15, 23, 42, 0.45);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.22s var(--ease-out), transform 0.24s var(--ease-out);
}
.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.toast-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.24);
  color: #34d399;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Clean Print-Ready Invoice PDF Layout */
@media print {
  .site-header,
  .site-footer,
  .breadcrumbs,
  .tool-header,
  .invoice-controls-panel,
  .sponsor-slot,
  .content-section,
  .no-print {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .studio-grid {
    display: block !important;
  }
  .studio-panel {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .invoice-sheet {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}
