/* ============================================================
   InvoiceXML — Static Export Stylesheet
   Custom CSS only. Tailwind CSS loaded via CDN.
   ============================================================ */

/* ----------------------------------------------------------
   1. DESIGN TOKENS (CSS Custom Properties)
   ---------------------------------------------------------- */
:root {
  /* Core palette (HSL) */
  --background: 222 47% 5%;
  --foreground: 210 40% 96%;
  --card: 222 40% 7%;
  --card-foreground: 210 40% 96%;
  --popover: 222 40% 7%;
  --popover-foreground: 210 40% 96%;
  --primary: 160 84% 39%;
  --primary-foreground: 0 0% 100%;
  --secondary: 170 20% 12%;
  --secondary-foreground: 160 30% 90%;
  --muted: 215 25% 14%;
  --muted-foreground: 215 20% 55%;
  --accent: 160 84% 39%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 215 25% 16%;
  --input: 215 25% 16%;
  --ring: 160 84% 39%;
  --radius: 0.625rem;

  /* Gradients & Shadows */
  --gradient-primary: linear-gradient(135deg, hsl(160 84% 39%), hsl(160 60% 42%));
  --gradient-hero: linear-gradient(180deg, hsl(222 47% 7%) 0%, hsl(222 47% 3%) 100%);
  --gradient-card: linear-gradient(135deg, hsl(222 40% 8%), hsl(222 40% 6%));
  --shadow-glow: 0 0 60px -12px hsl(160 84% 39% / 0.25);
  --shadow-card: 0 4px 24px -4px hsl(0 0% 0% / 0.3);

  /* Typography stacks */
  --font-display: "Inter", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

/* ----------------------------------------------------------
   2. BASE / RESETS
   ---------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

body {
  font-family: var(--font-body);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
}
code,
pre {
  font-family: var(--font-mono);
}
a {
  color: inherit;
  text-decoration: none;
}

/* ----------------------------------------------------------
   3. LAYOUT UTILITIES
   ---------------------------------------------------------- */
.section-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1024px) {
  .section-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ----------------------------------------------------------
   4. COMPONENT: Gradient Text
   ---------------------------------------------------------- */
.gradient-text {
  background-image: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----------------------------------------------------------
   5. COMPONENT: Glass Card
   ---------------------------------------------------------- */
.glass-card {
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-card);
}

/* ----------------------------------------------------------
   6. COMPONENT: Glow Border
   ---------------------------------------------------------- */
.glow-border {
  position: relative;
  box-shadow: var(--shadow-glow);
}

/* ----------------------------------------------------------
   7. COMPONENT: Code Block
   ---------------------------------------------------------- */
.code-block {
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 1.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ----------------------------------------------------------
   8. COMPONENT: Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Sizes */
.btn-sm {
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
}
.btn-md {
  height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.875rem;
}
.btn-lg {
  height: 3rem;
  padding: 0 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
}
.btn-xl {
  height: 3.5rem;
  padding: 0 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
}

/* Variants */
.btn-hero {
    background: hsl(160 84% 34%);
    //background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    //box-shadow: 0 0 20px -4px hsl(var(--primary) / 0.4);
}
.btn-hero:hover {
    background: hsl(var(--primary));
    //background: hsl(160 84% 34%);
    //box-shadow: 0 0 30px -4px hsl(var(--primary) / 0.5);
}

.btn-hero-outline {
  border-color: hsl(var(--border));
  background: transparent;
  color: hsl(var(--foreground));
}
.btn-hero-outline:hover {
  border-color: hsl(var(--primary) / 0.5);
  background: hsl(var(--primary) / 0.05);
}

.btn-ghost {
  background: transparent;
  color: hsl(var(--muted-foreground));
}
.btn-ghost:hover {
  background: hsl(var(--muted) / 0.5);
  color: hsl(var(--foreground));
}

.btn-outline {
  border-color: hsl(var(--border));
  background: transparent;
  color: hsl(var(--foreground));
}
.btn-outline:hover {
  background: hsl(var(--muted) / 0.3);
}

/* ----------------------------------------------------------
   9. COMPONENT: Navbar
   ---------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 4rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(16px);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .navbar__links {
    display: flex;
  }
}

.navbar__link {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}
.navbar__link:hover {
  color: hsl(var(--foreground));
}
.navbar__link.is-active {
  color: hsl(var(--primary));
}

/* Dropdown */
.dropdown {
  position: relative;
}
.dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color 0.2s;
}
.dropdown__trigger:hover {
  color: hsl(var(--foreground));
}
.dropdown__trigger.is-active {
  color: hsl(var(--primary));
}
.mega-dropdown:focus-within .dropdown__trigger {
  color: hsl(var(--foreground));
}
.dropdown__trigger:focus {
  outline: none;
}
.dropdown__trigger svg {
  transition: transform 0.2s;
}
.dropdown.is-open .dropdown__trigger svg,
.mega-dropdown.is-open .dropdown__trigger svg {
  transform: rotate(180deg);
}

@media (min-width: 768px) {
  .mega-dropdown:hover .dropdown__trigger svg,
  .mega-dropdown:focus-within .dropdown__trigger svg {
    transform: rotate(180deg);
  }
}

.dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 0.5rem;
  min-width: 12rem;
  z-index: 50;
}
.dropdown.is-open .dropdown__menu {
  display: block;
}
@media (min-width: 768px) {
  .dropdown:hover .dropdown__menu {
    display: block;
  }
}

.dropdown__panel {
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--popover));
  padding: 0.375rem;
  box-shadow: 0 10px 30px -10px hsl(0 0% 0% / 0.5);
}

.dropdown__item {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: hsl(var(--popover-foreground));
  transition: background 0.15s;
}
.dropdown__item:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* Mega dropdown */
.mega-dropdown {
  position: static;
}

.mega-dropdown__menu {
    display: none;
    position: absolute;
    top: calc(4rem - 25px);
    left: 0;
    right: 0;
    padding-top:25px;
    z-index: 40;
}

.mega-dropdown.is-open .mega-dropdown__menu {
  display: block;
}

@media (min-width: 768px) {
  .mega-dropdown:hover .mega-dropdown__menu,
  .mega-dropdown:focus-within .mega-dropdown__menu {
    display: block;
  }
}

.mega-dropdown__panel {
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--popover));
  box-shadow: 0 20px 40px -10px hsl(0 0% 0% / 0.5);
}

.mega-dropdown__body {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 0.75rem;
}

@media (min-width: 1024px) {
  .mega-dropdown__body {
    padding: 2rem;
  }
}

.mega-dropdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.mega-dropdown__col {
  display: flex;
  flex-direction: column;
  padding: 0 0.75rem;
  border-right: 1px solid hsl(var(--border));
}

.mega-dropdown__col:first-child {
  padding-left: 0;
}

.mega-dropdown__col:last-child {
  border-right: none;
  padding-right: 0;
}

@media (min-width: 1024px) {
  .mega-dropdown__col {
    padding: 0 1.5rem;
  }

  .mega-dropdown__col:first-child {
    padding-left: 0;
  }

  .mega-dropdown__col:last-child {
    padding-right: 0;
  }
}

.mega-dropdown__heading {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
  padding-left: 0.5rem;
}

@media (min-width: 1024px) {
  .mega-dropdown__heading {
    gap: 0.5rem;
    font-size: 0.75rem;
    margin-bottom: 0.375rem;
    padding-left: 0.625rem;
  }
}

.mega-dropdown__desc {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
  line-height: 1.4;
  padding-left: 0.5rem;
}

@media (min-width: 1024px) {
  .mega-dropdown__desc {
    font-size: 0.8125rem;
    margin-bottom: 1rem;
    padding-left: 0.625rem;
  }
}

.mega-dropdown__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.mega-dropdown__link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  color: hsl(var(--popover-foreground));
  transition: background 0.15s, color 0.15s;
}

@media (min-width: 1024px) {
  .mega-dropdown__link {
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    font-size: 0.875rem;
  }
}

.mega-dropdown__link:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.mega-dropdown__link.is-active {
  color: hsl(var(--primary));
}

.mega-dropdown__link.is-active i {
  color: hsl(var(--primary));
}

.mega-dropdown__link i {
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
}

.mega-dropdown__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.75rem 0.75rem;
  border-top: 1px solid hsl(var(--border));
}

@media (min-width: 1024px) {
  .mega-dropdown__footer {
    padding: 0.875rem 2rem;
  }
}

.mega-dropdown__footer-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.mega-dropdown__footer-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.15s;
}

.mega-dropdown__footer-link:hover {
  color: hsl(var(--foreground));
}

.mega-dropdown__footer-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mega-dropdown__lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  transition: color 0.15s, background 0.15s;
}

.mega-dropdown__lang:hover {
  color: hsl(var(--foreground));
}

.mega-dropdown__lang.is-active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Mobile menu */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(var(--foreground));
}
@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: hsl(var(--background));
  z-index: 40;
  padding: 1.5rem;
  overflow-y: auto;
}
.mobile-menu.is-open {
  display: block;
}
.mobile-menu a,
.mobile-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0;
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  border-bottom: 1px solid hsl(var(--border) / 0.3);
}
.mobile-menu a:hover {
  color: hsl(var(--foreground));
}
.mobile-menu__sub {
  padding-left: 1rem;
}
.mobile-menu__sub a {
  font-size: 0.875rem;
  border-bottom: none;
  padding: 0.5rem 0;
}

/* ----------------------------------------------------------
   10. COMPONENT: Hero
   ---------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}
.hero__glow {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  border-radius: 50%;
  opacity: 0.2;
  filter: blur(48px);
  background: radial-gradient(circle, hsl(160 84% 39% / 0.3), transparent 70%);
}

/* ----------------------------------------------------------
   11. COMPONENT: Drop Zone
   ---------------------------------------------------------- */
/* --- Converter / Validate pages (prominent) --- */
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #6f7f9b4d;
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #10151e;
}
.dropzone:hover:not(.is-converting):not(.is-error):not(.is-warning):not(.is-success) {
  background: #0c191b;
  border-color: #247f5566;
}
.dropzone.is-dragover:not(.is-converting):not(.is-error):not(.is-warning):not(.is-success) {
  border-color: hsl(var(--primary));
  background: #0c191b;
}
@media (min-width: 768px) {
  .dropzone {
    padding: 5rem 2rem;
    border-radius: 1rem;
  }
}

.dropzone__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  background: hsl(var(--primary) / 0.1);
  margin: 0 auto 1.5rem auto;
}
.dropzone__icon-wrap svg {
  width: 2.5rem;
  height: 2.5rem;
  color: hsl(var(--primary));
}

.dropzone__icon-small svg {
    width: 1.5rem;
    height: 1.5rem;
}
/* Dropzone state styles */
.dropzone.is-converting {
    border-color: hsl(var(--primary) / 0.5);
    background: hsl(var(--primary) / 0.05);
    cursor: wait;
}
.dropzone.is-error {
  border-color: hsl(var(--destructive) / 0.5);
  background: hsl(var(--destructive) / 0.05);
}
.dropzone.is-warning {
  border-color: hsl(38 92% 50% / 0.5);
  background: hsl(38 92% 50% / 0.05);
}
.dropzone.is-success {
  border-color: hsl(var(--primary) / 0.5);
  background: hsl(var(--primary) / 0.05);
}

/* Center content in all state containers */
.dropzone__converting,
.dropzone__error,
.dropzone__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

/* --- Homepage hero dropzone (compact) --- */
.dropzone--hero {
  border-radius: 0.75rem;
  padding: 2rem;
}
@media (min-width: 768px) {
  .dropzone--hero {
    padding: 2rem;
  }
}

.dropzone--hero .dropzone__icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.1);
  margin-bottom: 0.5rem;
}
.dropzone--hero .dropzone__icon-wrap i {
  width: 1.25rem;
  height: 1.25rem;
}

/* ----------------------------------------------------------
   12. COMPONENT: Modal
   ---------------------------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: hsl(0 0% 0% / 0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.is-open {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 28rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.5rem;
  position: relative;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  padding: 0.25rem;
}
.modal__close:hover {
  color: hsl(var(--foreground));
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.modal__desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

/* ----------------------------------------------------------
   13. COMPONENT: Form Inputs
   ---------------------------------------------------------- */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* ----------------------------------------------------------
   14. COMPONENT: Badge / Pill
   ---------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 1rem;
}
.badge--secondary {
  background: hsl(var(--secondary) / 0.6);
  border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
}
.badge--primary {
  background: hsl(var(--primary) / 0.1);
  border: 1px solid hsl(var(--primary) / 0.3);
  color: hsl(var(--primary));
}

/* ----------------------------------------------------------
   15. COMPONENT: Pricing Card
   ---------------------------------------------------------- */
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 2rem;
  transition: all 0.3s;
}
.pricing-card:hover {
  border-color: hsl(var(--primary) / 0.2);
}
.pricing-card--highlighted {
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: var(--shadow-glow);
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

/* ----------------------------------------------------------
   16. ANIMATIONS: Scroll Reveal
   ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > .reveal {
  transition-delay: calc(var(--i, 0) * 0.1s);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.animate-spin {
  animation: spin 1s linear infinite;
}

/* ----------------------------------------------------------
   17. COMPONENT: Logo
   ---------------------------------------------------------- */
.logo {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
}
.logo__xml {
  color: hsl(160 84% 63%);
  margin-left: -3px;
}

/* ----------------------------------------------------------
   18. COMPONENT: Footer
   ---------------------------------------------------------- */
.footer {
  border-top: 1px solid hsl(var(--border) / 0.5);
  padding: 3rem 0;
}
.footer__grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}
.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer__list li {
  margin-bottom: 0.5rem;
}
.footer__list a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}
.footer__list a:hover {
  color: hsl(var(--foreground));
}

.footer__bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border) / 0.5);
  text-align: center;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ----------------------------------------------------------
   19. PROSE: Blog Article Content
   ---------------------------------------------------------- */
.prose {
  line-height: 1.75;
}
.prose p {
  margin-bottom: 1.25rem;
  color: hsl(var(--foreground) / 0.9);
}
.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.prose code {
  background: hsl(var(--muted));
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
}
.prose ul {
  padding-left: 0;
  list-style: none;
}
.prose a {
  color: hsl(160 84% 63%);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}
.prose a:hover {
  color: hsl(160 84% 50%);
}

/* ----------------------------------------------------------
   20. BREADCRUMB
   ---------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.breadcrumb a {
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: hsl(var(--foreground));
}
.breadcrumb__sep {
  color: hsl(var(--muted-foreground) / 0.4);
}
.breadcrumb__current {
  color: hsl(var(--foreground));
}

/* ----------------------------------------------------------
   TOAST NOTIFICATION (moved from form.css)
   ---------------------------------------------------------- */
.toast-container {
    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 24rem;
}

.toast {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    box-shadow: 0 4px 24px -4px hsl(0 0% 0% / 0.3);
    animation: toast-in 0.3s ease;
}

.toast--destructive {
    border-color: hsl(var(--destructive) / 0.5);
    background: #1e1018;
}

.toast__title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast__desc {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
}

.toast--destructive .toast__desc {
    color: hsl(var(--foreground) / 0.8);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(1rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ----------------------------------------------------------
   COMPONENT: Email Gateway
   ---------------------------------------------------------- */
/* Email mockup card */
.email-mockup {
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card) / 0.8);
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.email-mockup__toolbar {
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--secondary) / 0.4);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.email-mockup__dots {
    display: flex;
    gap: 0.375rem;
}

.email-mockup__dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
}

.email-mockup__dot--red {
    background: hsl(var(--destructive) / 0.6);
}

.email-mockup__dot--amber {
    background: hsl(45 93% 47% / 0.6);
}

.email-mockup__dot--green {
    background: hsl(var(--primary) / 0.6);
}

.email-mockup__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-mockup__field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.email-mockup__label {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    width: 2.5rem;
}

.email-mockup__address {
    border-radius: 0.375rem;
    background: hsl(var(--primary) / 0.1);
    border: 1px solid hsl(var(--primary) / 0.2);
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-family: var(--font-mono);
    color: hsl(var(--primary));
}

.email-mockup__attachment {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--background) / 0.5);
    padding: 0.75rem 1rem;
}

.email-mockup__pulse {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

.email-mockup__pulse-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: hsl(var(--primary));
    animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Step arrow connector (hidden on mobile) */
.step-card {
    position: relative;
}

.step-arrow {
    position: absolute;
    right: -1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--primary) / 0.4);
}

/* Standard item row */
.standard-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--secondary) / 0.4);
    padding: 1.25rem;
}


/* ==========================================================
   21. DOCS: Documentation Pages
   ========================================================== */

/* --- Sidebar --- */
.docs-sidebar {
    position: sticky;
    top: 4rem;
    display: none;
    height: calc(100vh - 4rem);
    width: 16rem;
    flex-shrink: 0;
    border-right: 1px solid hsl(var(--border));
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: hsl(var(--border)) transparent;
}

.docs-sidebar::-webkit-scrollbar {
    width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: hsl(var(--border));
    border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--muted-foreground) / 0.4);
}

@media (min-width: 1024px) {
    .docs-sidebar {
        display: block;
    }
}

.docs-sidebar__nav {
    padding: 1.5rem 1rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.docs-sidebar__group {
    display: flex;
    flex-direction: column;
}

.docs-sidebar__heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.docs-sidebar__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.docs-sidebar__link {
    display: block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    transition: background 0.15s, color 0.15s;
}

    .docs-sidebar__link:hover {
        background: hsl(var(--muted));
        color: hsl(var(--foreground));
    }

    .docs-sidebar__link.is-active {
        background: hsl(var(--primary) / 0.1);
        color: hsl(var(--primary));
        font-weight: 500;
    }

/* --- Main content area --- */
.docs-main {
    min-width: 0;
    flex: 1;
    padding: 2.5rem 1.5rem;
}

@media (min-width: 1024px) {
    .docs-main {
        padding: 2.5rem 3rem;
    }
}

/* --- Tables --- */
.docs-table-wrap {
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border));
}

.docs-table {
    width: 100%;
    font-size: 0.875rem;
}

/* --- POST badge --- */
.docs-badge-post {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: hsl(160 84% 39% / 0.15);
    color: hsl(160 84% 39%);
    border: 1px solid hsl(160 84% 39% / 0.25);
}

/* --- Language select --- */
.docs-select {
    height: 2.25rem;
    padding: 0 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: var(--font-body);
    font-size: 0.875rem;
    cursor: pointer;
    appearance: auto;
}

    .docs-select:focus {
        outline: none;
        border-color: hsl(var(--ring));
        box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
    }
