/* HolyShift Knowledgebase Styles — matched to holyshift.ai live site */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --hs-primary: #411F84;
  --hs-primary-dark: #2E1560;
  --hs-primary-light: #5C3BA0;
  --hs-lime: #DCFF54;
  --hs-yellow: #FBBF24;
  --hs-bg: #FDFFF5;
  --hs-card-bg: #FFFFFF;
  --hs-text: #1A1A1A;
  --hs-text-secondary: #6B6B6B;
  --hs-text-hint: #8d8c8b;
  --hs-text-light: #F4F4F5;
  --hs-border: #e8e7e7;
  --hs-header-bg: #000000;
  --hs-footer-bg: #000000;
  --hs-shadow-card: 0 1px 2px 0 rgba(0, 0, 0, 0.07);
  --hs-shadow-soft: 0 20px 70px rgba(30, 25, 22, 0.08);
  --hs-radius-card: 1rem;
  --hs-radius-sm: 0.75rem;
  --hs-max-width: 1100px;
}

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

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color: var(--hs-text);
  background-color: var(--hs-bg);
  line-height: 1.7;
  letter-spacing: -0.01em;
}

/* --- HEADER / NAV --- */
.hs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 255, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hs-border);
  padding: 12px 24px;
}

.hs-header-inner {
  max-width: var(--hs-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hs-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

.hs-logo img {
  height: 32px;
  width: auto;
}

.hs-logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--hs-text-light);
}

.hs-logo-text span {
  color: var(--hs-lime);
}

.hs-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hs-nav a {
  font-size: 0.833rem;
  font-weight: 500;
  color: var(--hs-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.hs-nav a:hover {
  color: var(--hs-primary);
}


.hs-nav-cta {
  background: var(--hs-primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 400px;
  font-weight: 600 !important;
  transition: background 0.2s, box-shadow 0.2s !important;
  box-shadow: 0px 12px 24px -8px rgba(131, 74, 251, 0.3);
}

.hs-nav-cta:hover {
  background: var(--hs-primary-dark);
  color: #fff !important;
}

/* --- HERO / PAGE HEADER --- */
.hs-hero {
  max-width: var(--hs-max-width);
  margin: 0 auto;
  padding: 60px 24px 40px;
}

.hs-category-badge {
  display: inline-block;
  background: var(--hs-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 400px;
  margin-bottom: 20px;
}

.hs-status-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 12px;
  border-radius: 400px;
  margin-left: 12px;
  vertical-align: middle;
}

.hs-status-badge.live {
  background: #e6f7ee;
  color: #009b5e;
}

.hs-status-badge.in-testing {
  background: #fff3cd;
  color: #856404;
}

.hs-status-badge.in-progress {
  background: #e0e7ff;
  color: #3b5bdb;
}

.hs-status-badge.coming-soon {
  background: #f0f0f0;
  color: #757473;
}

.hs-hero h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--hs-text);
  margin-bottom: 16px;
  max-width: 800px;
}

.hs-hero p {
  color: var(--hs-text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
}

/* --- ARTICLE BODY --- */
.hs-article-wrap {
  max-width: var(--hs-max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
}

.hs-article {
  max-width: 740px;
}

.hs-article h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--hs-text);
  margin-top: 40px;
  margin-bottom: 16px;
}

.hs-article h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--hs-text);
  margin-top: 32px;
  margin-bottom: 12px;
}

.hs-article p {
  margin-bottom: 18px;
  color: var(--hs-text);
  font-size: 1rem;
  line-height: 1.75;
}

/* --- TABLE OF CONTENTS --- */
.hs-toc {
  background: var(--hs-card-bg);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-sm);
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: var(--hs-shadow-card);
}

.hs-toc-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--hs-text);
  margin-bottom: 12px;
  margin-top: 0;
}

.hs-toc ol {
  list-style: none;
  counter-reset: toc-counter;
  padding: 0;
  margin: 0;
}

.hs-toc li {
  counter-increment: toc-counter;
  margin-bottom: 6px;
}

.hs-toc li::before {
  content: counter(toc-counter) ".";
  color: var(--hs-primary);
  font-weight: 600;
  font-size: 0.8rem;
  margin-right: 8px;
}

.hs-toc a {
  color: var(--hs-text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.hs-toc a:hover {
  color: var(--hs-primary);
}

.hs-article a {
  color: var(--hs-primary);
  text-decoration: underline;
  text-decoration-color: rgba(65, 31, 132, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.hs-article a:hover {
  text-decoration-color: var(--hs-primary);
}

.hs-article ul, .hs-article ol {
  margin-bottom: 18px;
  padding-left: 24px;
}

.hs-article li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.hs-article li strong {
  color: var(--hs-text);
}

.hs-article strong {
  font-weight: 600;
}

.hs-article blockquote {
  border-left: 4px solid var(--hs-primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(65, 31, 132, 0.04);
  border-radius: 0 var(--hs-radius-sm) var(--hs-radius-sm) 0;
  font-style: italic;
  color: var(--hs-text-secondary);
}

/* --- TABLES --- */
.hs-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
  border-radius: var(--hs-radius-sm);
  overflow: hidden;
  box-shadow: var(--hs-shadow-card);
}

.hs-article thead {
  background: var(--hs-primary);
  color: #fff;
}

.hs-article th {
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.833rem;
}

.hs-article td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hs-border);
}

.hs-article tbody tr:nth-child(even) {
  background: rgba(65, 31, 132, 0.02);
}

.hs-article tbody tr:hover {
  background: rgba(65, 31, 132, 0.05);
}

/* --- CODE --- */
.hs-article code {
  background: rgba(65, 31, 132, 0.08);
  color: var(--hs-primary-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.hs-article pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 20px 24px;
  border-radius: var(--hs-radius-sm);
  overflow-x: auto;
  margin: 24px 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.hs-article pre code {
  background: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

/* --- SIDEBAR --- */
.hs-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

.hs-sidebar-card {
  background: var(--hs-card-bg);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-card);
  padding: 24px;
  box-shadow: var(--hs-shadow-card);
  margin-bottom: 24px;
}

.hs-sidebar-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--hs-text);
}

.hs-sidebar-card ul {
  list-style: none;
  padding: 0;
}

.hs-sidebar-card li {
  margin-bottom: 10px;
}

.hs-sidebar-card li a {
  font-size: 0.875rem;
  color: var(--hs-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.5;
  display: block;
}

.hs-sidebar-card li a:hover {
  color: var(--hs-primary);
}

.hs-sidebar-section-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hs-primary);
  margin-top: 16px;
  margin-bottom: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--hs-border);
}

.hs-sidebar-section-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.hs-sidebar-cta {
  background: linear-gradient(135deg, var(--hs-primary), var(--hs-primary-dark));
  border: none;
  border-radius: var(--hs-radius-card);
  padding: 28px 24px;
  text-align: center;
  color: #fff;
}

.hs-sidebar-cta h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.hs-sidebar-cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.833rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.hs-sidebar-cta a {
  display: inline-block;
  background: var(--hs-lime);
  color: var(--hs-text);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 10px 28px;
  border-radius: 400px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0px 10px 27px -10px rgba(78, 98, 0, 0.5);
}

.hs-sidebar-cta a:hover {
  transform: translateY(-1px);
  box-shadow: 0px 14px 32px -10px rgba(78, 98, 0, 0.6);
}

/* --- INDEX PAGE --- */
.hs-index {
  max-width: var(--hs-max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.hs-index .stats-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hs-index .stat {
  background: #fff;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-sm);
  padding: 16px 24px;
  box-shadow: var(--hs-shadow-card);
}

.hs-index .stat .num {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--hs-primary);
}

.hs-index .stat .label {
  font-size: 0.75rem;
  color: var(--hs-text-hint);
  margin-top: 4px;
}

.hs-section {
  margin-bottom: 40px;
}

.hs-section > h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--hs-primary);
  display: inline-block;
}

.hs-section-desc {
  color: var(--hs-text-secondary);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.hs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.hs-doc-card {
  background: #fff;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-sm);
  padding: 16px 20px;
  box-shadow: var(--hs-shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: block;
}

.hs-doc-card:hover {
  border-color: var(--hs-primary-light);
  box-shadow: 0 8px 24px rgba(65, 31, 132, 0.08);
}

.hs-doc-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hs-text);
  margin-bottom: 4px;
}

.hs-doc-card p {
  font-size: 0.8rem;
  color: var(--hs-text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* --- CTA BANNER --- */
.hs-cta-banner {
  max-width: var(--hs-max-width);
  margin: 0 auto 60px;
  padding: 0 24px;
}

.hs-cta-banner-inner {
  background: var(--hs-header-bg);
  border: 1px solid hsla(0, 0%, 10%, 1);
  border-radius: var(--hs-radius-card);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.hs-cta-banner-inner h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hs-cta-banner-inner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-top: 8px;
  line-height: 1.5;
}

.hs-cta-banner-inner a {
  display: inline-block;
  background: var(--hs-lime);
  color: var(--hs-text);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 36px;
  border-radius: 400px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0px 10px 27px -10px rgba(78, 98, 0, 0.5);
}

.hs-cta-banner-inner a:hover {
  transform: translateY(-2px);
  box-shadow: 0px 14px 32px -10px rgba(78, 98, 0, 0.6);
}

/* --- FOOTER --- */
.hs-footer {
  background: var(--hs-footer-bg);
  padding: 48px 24px;
  color: hsla(240, 5%, 86%, 1);
  border-top: 1px solid hsla(0, 0%, 10%, 1);
}

.hs-footer-inner {
  max-width: var(--hs-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hs-footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.hs-footer-logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.hs-footer-socials {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hs-footer-socials a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.hs-footer-socials a:hover {
  color: #fff;
}

.hs-footer-socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hs-footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 24px;
  text-align: center;
  max-width: var(--hs-max-width);
  margin-left: auto;
  margin-right: auto;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .hs-hero h1 {
    font-size: 1.9rem;
  }

  .hs-article-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hs-sidebar {
    position: static;
  }

  .hs-cta-banner-inner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .hs-header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hs-nav {
    gap: 16px;
  }

  .hs-footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hs-cards {
    grid-template-columns: 1fr;
  }

  .hs-index .stats-bar {
    flex-direction: column;
  }
}
