/* ==========================================================================
   HealthContent.AI - Compiled Theme CSS
   All Tailwind utilities + custom styles, no build step required.
   ========================================================================== */

/* Google Fonts: loaded via <link> tags in header.php for performance */

/* ==========================================================================
   Reset / Normalize
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; }
body { font-family: 'DM Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; margin: 0; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: inherit; }
button { font-family: inherit; font-size: 100%; cursor: pointer; border: none; background: none; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }

/* ==========================================================================
   Font Families
   ========================================================================== */

.font-sans { font-family: 'DM Sans', system-ui, sans-serif; }
.font-serif { font-family: 'Newsreader', Georgia, serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* ==========================================================================
   Layout
   ========================================================================== */

.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

.items-center { align-items: center; }
.items-start { align-items: start; }
.items-baseline { align-items: baseline; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-24 > * + * { margin-top: 6rem; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* ==========================================================================
   Sizing
   ========================================================================== */

.w-2 { width: 0.5rem; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-64 { width: 16rem; }
.w-full { width: 100%; }
.w-\[600px\] { width: 600px; }
.w-\[400px\] { width: 400px; }

.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-\[600px\] { height: 600px; }
.h-\[400px\] { height: 400px; }

.min-h-screen { min-height: 100vh; }
.min-h-\[280px\] { min-height: 280px; }

.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 1280px; }

/* ==========================================================================
   Spacing (Padding)
   ========================================================================== */

.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }

.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.pt-8 { padding-top: 2rem; }
.pt-14 { padding-top: 3.5rem; }
.pt-16 { padding-top: 4rem; }
.pt-24 { padding-top: 6rem; }
.pt-36 { padding-top: 9rem; }

.pb-16 { padding-bottom: 4rem; }
.pb-24 { padding-bottom: 6rem; }

.pl-8 { padding-left: 2rem; }
.pt-4 { padding-top: 1rem; }

/* ==========================================================================
   Spacing (Margin)
   ========================================================================== */

.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-8 { margin-left: 2rem; margin-right: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }

.mt-0\.5 { margin-top: 0.125rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-14 { margin-top: 3.5rem; }
.mt-16 { margin-top: 4rem; }

.-top-2 { top: -0.5rem; }
.-left-1 { left: -0.25rem; }

/* ==========================================================================
   Position
   ========================================================================== */

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.inset-0 { inset: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.top-6 { top: 1.5rem; }
.right-6 { right: 1.5rem; }
.top-1\/4 { top: 25%; }
.left-1\/4 { left: 25%; }
.top-1\/2 { top: 50%; }
.left-1\/2 { left: 50%; }
.top-\[-200px\] { top: -200px; }
.left-\[-200px\] { left: -200px; }

.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* ==========================================================================
   Typography - Sizes
   ========================================================================== */

.text-\[9px\] { font-size: 9px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

/* ==========================================================================
   Typography - Weight
   ========================================================================== */

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ==========================================================================
   Typography - Style & Decoration
   ========================================================================== */

.italic { font-style: italic; }
.not-italic { font-style: normal; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-left { text-align: left; }

.underline { text-decoration-line: underline; }
.underline-offset-2 { text-underline-offset: 2px; }
.underline-offset-4 { text-underline-offset: 4px; }

.leading-\[1\.1\] { line-height: 1.1; }
.leading-relaxed { line-height: 1.625; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.15em\] { letter-spacing: 0.15em; }
.tracking-\[0\.12em\] { letter-spacing: 0.12em; }

/* ==========================================================================
   Text Colors
   ========================================================================== */

.text-white { color: #ffffff; }
.text-white\/25 { color: rgba(255, 255, 255, 0.25); }
.text-white\/30 { color: rgba(255, 255, 255, 0.3); }
.text-white\/40 { color: rgba(255, 255, 255, 0.4); }
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/\[0\.85\] { color: rgba(255, 255, 255, 0.85); }
.text-white\/85 { color: rgba(255, 255, 255, 0.85); }

.text-text-light { color: #F0EDE8; }
.text-text-muted { color: #8A8A8A; }
.text-text-dark { color: #1A1A1A; }
.text-teal { color: #2ABFAA; }
.text-salmon { color: #F2B8B5; }
.text-orange { color: #E8664A; }
.text-red-cta { color: #FF4B4F; }
.text-border-light { color: #E5E5E3; }

.text-gray-600 { color: #4B5563; }
.text-gray-900 { color: #111827; }

.text-\[\#666\] { color: #666; }
.text-\[\#444\] { color: #444; }
.text-\[\#B0ACA5\] { color: #B0ACA5; }

.text-orange\/30 { color: rgba(232, 102, 74, 0.3); }

/* ==========================================================================
   Background Colors
   ========================================================================== */

.bg-dark { background-color: #0A0F1C; }
.bg-dark-footer { background-color: #060A14; }
.bg-light { background-color: #F7F7F5; }
.bg-white { background-color: #ffffff; }
.bg-red-cta { background-color: #FF4B4F; }
.bg-teal { background-color: #2ABFAA; }

.bg-white\/3 { background-color: rgba(255, 255, 255, 0.03); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-teal\/5 { background-color: rgba(42, 191, 170, 0.05); }
.bg-teal\/10 { background-color: rgba(42, 191, 170, 0.1); }
.bg-salmon\/\[0\.04\] { background-color: rgba(242, 184, 181, 0.04); }

.bg-\[\#0F1629\]\/80 { background-color: rgba(15, 22, 41, 0.8); }
.bg-\[\#FF5F57\] { background-color: #FF5F57; }
.bg-\[\#FFBD2E\] { background-color: #FFBD2E; }
.bg-\[\#28C840\] { background-color: #28C840; }

/* ==========================================================================
   Gradients
   ========================================================================== */

.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }

.from-teal\/\[0\.08\] { --tw-gradient-from: rgba(42, 191, 170, 0.08); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-teal\/40 { --tw-gradient-from: rgba(42, 191, 170, 0.4); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.via-\[\#4A7CF7\]\/\[0\.06\] { --tw-gradient-stops: var(--tw-gradient-from), rgba(74, 124, 247, 0.06), var(--tw-gradient-to, transparent); }
.via-\[\#4A7CF7\]\/30 { --tw-gradient-stops: var(--tw-gradient-from), rgba(74, 124, 247, 0.3), var(--tw-gradient-to, transparent); }
.to-red-cta\/\[0\.04\] { --tw-gradient-to: rgba(255, 75, 79, 0.04); }
.to-red-cta\/20 { --tw-gradient-to: rgba(255, 75, 79, 0.2); }

/* ==========================================================================
   Border
   ========================================================================== */

.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-l-2 { border-left-width: 2px; border-left-style: solid; }

.border-current { border-color: currentColor; }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/\[0\.06\] { border-color: rgba(255, 255, 255, 0.06); }
.border-border-light { border-color: #E5E5E3; }
.border-teal\/20 { border-color: rgba(42, 191, 170, 0.2); }
.border-teal\/30 { border-color: rgba(42, 191, 170, 0.3); }
.border-salmon\/30 { border-color: rgba(242, 184, 181, 0.3); }
.border-gray-100 { border-color: #f3f4f6; }
.border-text-dark { border-color: #1A1A1A; }

.rounded { border-radius: 0.25rem; }
.rounded-sm { border-radius: 0.125rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* ==========================================================================
   Effects
   ========================================================================== */

.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

.opacity-90 { opacity: 0.9; }

.backdrop-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

.blur-\[60px\] { filter: blur(60px); }
.blur-\[100px\] { filter: blur(100px); }
.blur-\[120px\] { filter: blur(120px); }

.brightness-0 { filter: brightness(0); }
.invert { filter: invert(1); }
.brightness-0.invert { filter: brightness(0) invert(1); }

.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }

.object-cover { object-fit: cover; }

/* ==========================================================================
   Transforms
   ========================================================================== */

.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-x-1\/2.-translate-y-1\/2 { transform: translate(-50%, -50%); }

/* ==========================================================================
   Transitions
   ========================================================================== */

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

/* ==========================================================================
   Hover States
   ========================================================================== */

.hover\:bg-red-cta-hover:hover { background-color: #e6383c; }
.hover\:bg-white\/90:hover { background-color: rgba(255, 255, 255, 0.9); }
.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); }
.hover\:bg-\[\#1A1A1A\]\/5:hover { background-color: rgba(26, 26, 26, 0.05); }

.hover\:text-red-cta:hover { color: #FF4B4F; }
.hover\:text-text-light:hover { color: #F0EDE8; }
.hover\:text-teal:hover { color: #2ABFAA; }
.hover\:text-gray-900:hover { color: #111827; }

.hover\:opacity-80:hover { opacity: 0.8; }

/* ==========================================================================
   Responsive: sm (640px)
   ========================================================================== */

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:inline-flex { display: inline-flex; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
}

/* ==========================================================================
   Responsive: md (768px)
   ========================================================================== */

@media (min-width: 768px) {
  .md\:hidden { display: none; }
  .md\:flex { display: flex; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
}

/* ==========================================================================
   Responsive: lg (1024px)
   ========================================================================== */

@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:text-\[56px\] { font-size: 56px; }
  .lg\:order-1 { order: 1; }
  .lg\:order-2 { order: 2; }
}

/* ==========================================================================
   WordPress body classes (padding-top for fixed nav)
   ========================================================================== */

.admin-bar #hcai-nav { top: 32px; }
@media (max-width: 782px) {
  .admin-bar #hcai-nav { top: 46px; }
}

/* ==========================================================================
   Custom: Scroll Animations
   ========================================================================== */

.offer-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.offer-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Custom: Navigation States
   ========================================================================== */

.nav-transparent { background: transparent; }

.nav-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-transparent .nav-text { color: #F0EDE8; }
.nav-transparent .nav-text-muted { color: rgba(240, 237, 232, 0.5); }
.nav-transparent .nav-link:hover { color: #FF4B4F; }
.nav-transparent .nav-btn { color: #F0EDE8; border-color: #F0EDE8; }
.nav-transparent .nav-btn:hover { background: rgba(255, 255, 255, 0.1); }
.nav-transparent .nav-hamburger span { background: #F0EDE8; }

.nav-scrolled .nav-text { color: #1A1A1A; }
.nav-scrolled .nav-text-muted { color: rgba(26, 26, 26, 0.5); }
.nav-scrolled .nav-link:hover { color: #FF4B4F; }
.nav-scrolled .nav-btn { color: #1A1A1A; border-color: #1A1A1A; }
.nav-scrolled .nav-btn:hover { background: rgba(26, 26, 26, 0.05); }
.nav-scrolled .nav-hamburger span { background: #1A1A1A; }

/* ==========================================================================
   Custom: Mobile Menu
   ========================================================================== */

.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid #f3f4f6;
  padding: 1rem 1.5rem;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ==========================================================================
   Custom: AI Orb
   ========================================================================== */

.ai-orb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.ai-orb::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #2ABFAA, #4A7CF7, #FF4B4F, #F2B8B5, #2ABFAA);
  animation: orb-rotate 8s linear infinite;
  opacity: 0.6;
  filter: blur(8px);
}

.ai-orb::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(42, 191, 170, 0.3), rgba(74, 124, 247, 0.2), rgba(15, 22, 41, 0.9));
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes orb-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ==========================================================================
   Custom: Noise Overlay
   ========================================================================== */

.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Custom: Article Body Typography (Landing Pages)
   ========================================================================== */

.article-body p { margin-bottom: 1.5em; }

.article-body h2 {
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  font-family: 'Newsreader', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: #F0EDE8;
}

@media (min-width: 640px) {
  .article-body h2 { font-size: 1.875rem; }
}

.article-body strong { color: #F0EDE8; }
.article-body em { color: #F0EDE8; }
.article-body a { color: #F2B8B5; text-decoration: underline; }

/* ==========================================================================
   Custom: Prose Legal (Impressum / Datenschutz)
   ========================================================================== */

.prose-legal {
  max-width: 48rem;
  color: #374151;
  line-height: 1.75;
}

.prose-legal h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 2rem; color: #111827; }
.prose-legal h2 { font-size: 1.5rem; font-weight: 600; margin-top: 2em; margin-bottom: 1em; color: #111827; }
.prose-legal h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.5em; margin-bottom: 0.75em; color: #111827; }
.prose-legal p { margin-bottom: 1.25em; }
.prose-legal ul, .prose-legal ol { padding-left: 1.5em; margin-bottom: 1.25em; }
.prose-legal li { margin-bottom: 0.5em; }
.prose-legal a { color: #2563eb; text-decoration: underline; }
.prose-legal a:hover { color: #1d4ed8; }

/* ==========================================================================
   Custom: FAQ Accordion
   ========================================================================== */

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  transition: background 0.2s;
}

.faq-trigger:hover { background: rgba(255, 255, 255, 0.03); }

.faq-chevron {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: rgba(255, 255, 255, 0.5);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-content { max-height: 500px; }

.faq-content-inner {
  padding: 0 1.5rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.7);
}

.faq-content-inner a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

.faq-content-inner a:hover { opacity: 0.8; }

/* ==========================================================================
   Grounding Pages (/facts/*)
   Machine-readable fact pages following Grounding Page Standard v1.5
   ========================================================================== */

.grounding-page {
  color: #1A1A1A;
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.65;
}

.grounding-page h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #0A0F1C;
  line-height: 1.15;
}

.grounding-page h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #0A0F1C;
  line-height: 1.2;
}

/* Section headings (H3) — used for Core Data, Distinction, FAQ container */
.grounding-page h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #0A0F1C;
  line-height: 1.25;
}

/* FAQ questions (H4) */
.grounding-page h4 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: #0A0F1C;
}

.grounding-page p {
  margin-bottom: 1rem;
  color: #444;
}

.grounding-page a {
  color: #2ABFAA;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.grounding-page a:hover {
  color: #1f9a88;
}

/* Lead definition — the core one-sentence definition */
.grounding-page .lead-definition {
  font-size: 1.125rem;
  line-height: 1.55;
  color: #0A0F1C;
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  border-left: 3px solid #2ABFAA;
}

.grounding-page .lead-definition strong {
  color: #0A0F1C;
  font-weight: 600;
}

/* Human notice — UX clarification this is a technical page */
.grounding-page .human-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  background: linear-gradient(135deg, rgba(42, 191, 170, 0.06) 0%, rgba(42, 191, 170, 0.02) 100%);
  border: 1px solid rgba(42, 191, 170, 0.25);
  border-left: 3px solid #2ABFAA;
  border-radius: 0.625rem;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: #444;
  line-height: 1.55;
}

.grounding-page .human-notice__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #2ABFAA;
  margin-top: 2px;
}

.grounding-page .human-notice__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.grounding-page .human-notice__content {
  flex: 1;
  min-width: 0;
}

.grounding-page .human-notice__label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2ABFAA;
  margin: 0 0 0.375rem 0;
  padding: 0;
}

.grounding-page .human-notice__text {
  margin: 0;
  padding: 0;
  color: #1A1A1A;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.grounding-page .human-notice__text a {
  color: #1A1A1A;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #2ABFAA;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.grounding-page .human-notice__text a:hover {
  color: #2ABFAA;
}

/* Retrieval stabilization sentence */
.grounding-page .grounding-retrieval {
  font-size: 0.9375rem;
  color: #666;
  font-style: italic;
  padding: 0.75rem 0;
  margin-bottom: 1rem;
}

/* Verified date / metadata footer */
.grounding-page .grounding-verified {
  margin-top: 3rem;
  padding: 1rem 1.25rem;
  background: #F7F7F5;
  border: 1px solid #E5E5E3;
  border-radius: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #444;
  letter-spacing: 0.02em;
}

.grounding-page .grounding-verified strong {
  color: #0A0F1C;
  font-weight: 700;
}

/* Back navigation */
.grounding-page .grounding-back {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #E5E5E3;
  font-size: 0.875rem;
  color: #666;
}

/* Definition list — the technical heart of the grounding page */
.grounding-page .data-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 1.25rem 0 2rem;
  border: 1px solid #E5E5E3;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
}

.grounding-page .data-grid dt {
  background: #F7F7F5;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #0A0F1C;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px solid #E5E5E3;
}

.grounding-page .data-grid dt:first-child {
  border-top: none;
}

.grounding-page .data-grid dd {
  padding: 0.875rem 1rem 1rem;
  margin: 0;
  color: #444;
  font-size: 0.9375rem;
  border-top: 1px solid #E5E5E3;
  background: #fff;
}

/* Two-column layout on tablets and up */
@media (min-width: 640px) {
  .grounding-page .data-grid {
    grid-template-columns: minmax(180px, 0.4fr) 1fr;
  }

  .grounding-page .data-grid dt,
  .grounding-page .data-grid dd {
    border-top: 1px solid #E5E5E3;
  }

  .grounding-page .data-grid dt:nth-child(1),
  .grounding-page .data-grid dd:nth-child(2) {
    border-top: none;
  }

  .grounding-page .data-grid dt {
    border-right: 1px solid #E5E5E3;
  }
}

/* ==========================================================================
   Headline em styling for landing pages
   ========================================================================== */

h1 > em, .text-salmon.not-italic { color: #F2B8B5; }
.\[\&\>em\]\:italic > em { font-style: italic; }
.\[\&\>em\]\:text-salmon > em { color: #F2B8B5; }
