:root {
  /* Brand colors - matching landing */
  --praze-amber: #F59E0B;
  --praze-sky: #0EA5E9;
  --praze-violet: #8B5CF6;
  --praze-rose: #F43F5E;
  --praze-emerald: #10B981;
  
  /* Stone neutrals */
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  
  /* Layout */
  --content-width: 680px;
  --page-width: 820px;
  
  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--stone-900);
  background-color: var(--stone-50);
  background-image:
    url("/assets/hero_background.png"),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: cover, 200px 200px;
  background-position: center top, center;
  background-repeat: no-repeat, repeat;
  background-attachment: fixed, fixed;
}

/* --- Links --- */
a {
  color: var(--praze-violet);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #7c3aed;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
.nav-cta:focus-visible,
.cta-link:focus-visible {
  outline: 2px solid var(--praze-violet);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--stone-900);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
}

/* --- Glass Panel (matching landing) --- */
.glass-panel {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* --- Navigation (matching landing) --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .nav-inner {
    height: 80px;
    padding: 0 48px;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--stone-900);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: var(--stone-900);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
  color: #fff;
}

.brand-mark svg,
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-name {
  font-family: Outfit, Inter, sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
}

.nav-links {
  display: none;
  gap: 32px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--stone-500);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  color: inherit;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--praze-violet);
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--stone-900);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover {
  text-decoration: none;
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

.nav-cta:active {
  transform: scale(0.95);
}

/* --- Page Container --- */
.page {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg) var(--space-3xl);
}

/* --- Article Card (glass style) --- */
.article {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 40px;
  padding: var(--space-2xl) var(--space-2xl);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* --- Article Header --- */
.article-header {
  max-width: var(--content-width);
  margin: 0 auto var(--space-xl);
  padding: var(--space-lg) var(--space-lg);
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1) 0%,
    rgba(14, 165, 233, 0.08) 50%,
    rgba(245, 158, 11, 0.05) 100%
  );
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.article-header h1 {
  margin: 0;
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: transparent;
  background: linear-gradient(115deg, var(--praze-violet) 0%, var(--praze-rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* --- Answer Block (Summary) --- */
.answer {
  max-width: var(--content-width);
  margin: 0 auto var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--stone-700);
}

/* --- Article Body --- */
.article-body {
  max-width: var(--content-width);
  margin: 0 auto;
}

.article-body h2 {
  margin: var(--space-xl) 0 var(--space-md);
  padding-left: 16px;
  position: relative;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--stone-900);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 4px;
  height: 1em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--praze-violet), var(--praze-sky));
}

.article-body h3 {
  margin: var(--space-lg) 0 var(--space-sm);
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--stone-800);
}

.article-body p {
  margin: 0 0 var(--space-md);
  line-height: 1.75;
  color: var(--stone-700);
}

.article-body strong {
  color: var(--stone-900);
  font-weight: 600;
}

.article-body ul,
.article-body ol {
  margin: 0 0 var(--space-md);
  padding-left: var(--space-lg);
  line-height: 1.75;
  color: var(--stone-700);
}

.article-body li {
  margin-bottom: var(--space-sm);
}

.article-body li::marker {
  color: var(--stone-400);
}

/* --- Section Divider --- */
.faq,
.related,
section.cta {
  max-width: var(--content-width);
  margin: var(--space-xl) auto 0;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--stone-200);
}

/* --- FAQ Section --- */
.faq h2 {
  margin: 0 0 var(--space-md);
  font-family: Outfit, Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--stone-500);
}

.faq details {
  margin-bottom: var(--space-sm);
  padding: var(--space-md) var(--space-md);
  border-radius: 16px;
  border: 1px solid var(--stone-200);
  background: rgba(255, 255, 255, 0.5);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.faq details:hover {
  border-color: var(--stone-300);
  background: rgba(255, 255, 255, 0.7);
}

.faq details[open] {
  border-color: rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.04);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--stone-800);
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--stone-100);
  color: var(--stone-500);
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.faq details[open] summary::before {
  content: "−";
  background: var(--praze-violet);
  color: #fff;
}

.faq details p {
  margin: var(--space-md) 0 0;
  padding-left: 32px;
  line-height: 1.7;
  color: var(--stone-600);
}

/* --- Related Links --- */
.related h2 {
  margin: 0 0 var(--space-md);
  font-family: Outfit, Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--stone-500);
}

.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related li {
  margin-bottom: var(--space-sm);
}

.related a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-weight: 500;
}

.related a::before {
  content: "→";
  color: var(--stone-400);
  transition: transform 0.15s ease, color 0.15s ease;
}

.related a:hover::before {
  transform: translateX(4px);
  color: var(--praze-violet);
}

/* --- CTA Section (matching landing button style) --- */
section.cta {
  text-align: center;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-sm);
}

.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin: var(--space-sm) var(--space-sm) 0 0;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--stone-900);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-link:hover {
  text-decoration: none;
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

.cta-link:active {
  transform: scale(0.95);
}

/* Legacy .cta class (for backwards compatibility) */
a.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin: var(--space-sm) var(--space-sm) 0 0;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--stone-900);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.cta:hover {
  text-decoration: none;
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

a.cta:active {
  transform: scale(0.95);
}

/* --- Disclaimer --- */
.disclaimer {
  max-width: var(--content-width);
  margin: var(--space-xl) auto 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--stone-200);
  color: var(--stone-500);
  font-size: 0.875rem;
  line-height: 1.6;
}

.disclaimer p {
  margin: 0;
}

/* --- Footer (matching landing dark style) --- */
.site-footer {
  background: var(--stone-900);
  color: var(--stone-400);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-2xl);
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: #fff;
  padding: 6px;
}

.footer-brand .brand-name {
  font-family: Outfit, Inter, sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.05em;
}

.footer-copy {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-500);
}

.footer-social {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-social a {
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 0.15s ease;
}

.footer-social a:hover {
  color: #fff;
  text-decoration: none;
}

/* --- Responsive: Tablet --- */
@media (max-width: 860px) {
  .article {
    padding: var(--space-xl) var(--space-lg);
    border-radius: 32px;
  }
}

/* --- Responsive: Mobile --- */
@media (max-width: 600px) {
  :root {
    --space-lg: 20px;
    --space-xl: 28px;
    --space-2xl: 40px;
  }
  
  .page {
    padding: var(--space-xl) var(--space-md) var(--space-2xl);
  }

  .article {
    padding: var(--space-lg) var(--space-md);
    border-radius: 24px;
  }
  
  .article-header {
    padding: var(--space-md);
    border-radius: 16px;
  }
  
  .article-header h1 {
    font-size: 1.5rem;
  }
  
  .answer {
    padding: var(--space-md);
    font-size: 1rem;
    border-radius: 12px;
  }
  
  .article-body h2 {
    font-size: 1.25rem;
    padding-left: 14px;
  }
  
  .article-body h3 {
    font-size: 1.1rem;
  }

  .nav-inner {
    height: 56px;
    padding: 0 var(--space-md);
  }
  
  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    padding: 6px;
  }
  
  .brand-name {
    font-size: 1.25rem;
  }

  .nav-cta {
    height: 40px;
    padding: 0 16px;
    font-size: 9px;
  }
  
  .faq details {
    padding: var(--space-md);
    border-radius: 12px;
  }
  
  .faq details p {
    padding-left: 0;
    margin-top: var(--space-md);
  }
  
  a.cta,
  .cta-link {
    height: 40px;
    padding: 0 20px;
    font-size: 9px;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }
  
  .footer-social {
    justify-content: center;
  }
}

/* --- Print styles --- */
@media print {
  body {
    background: #fff;
  }
  
  .site-nav,
  .site-footer,
  section.cta,
  .skip-link {
    display: none;
  }
  
  .article {
    box-shadow: none;
    border: none;
    padding: 0;
    background: transparent;
  }
}
