.font-serif-display { font-family: 'Instrument Serif', Georgia, serif; }
.font-body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }

/* Grain overlay */
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  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");
  pointer-events: none;
  z-index: 1;
}

/* Fade in on load */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.animate-fade-in {
  animation: fadeIn 0.6s ease both;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }

/* Feature card hover */
.feature-card {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(12, 18, 34, 0.12);
}

/* Step number styling */
.step-number {
  background: linear-gradient(135deg, #c2873a 0%, #a16b2a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Amber glow button */
.btn-amber {
  background: linear-gradient(135deg, #c2873a 0%, #a8702e 100%);
  box-shadow: 0 4px 14px rgba(194, 135, 58, 0.35);
  transition: all 0.3s ease;
}
.btn-amber:hover {
  box-shadow: 0 6px 20px rgba(194, 135, 58, 0.5);
  transform: translateY(-1px);
}

/* Trust indicator links */
.trust-link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
  transform-origin: left center;
}
.trust-arrow {
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .trust-link:hover {
    transform: scale(1.04);
    text-underline-offset: 3px;
    color: #d4a264;
  }
  .trust-link:hover .trust-arrow {
    opacity: 1;
    transform: translateX(2px);
  }
}

/* Subtle separator */
.separator-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194, 135, 58, 0.3), transparent);
}

/* Shield icon pulse */
@keyframes subtlePulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.pulse-subtle {
  animation: subtlePulse 3s ease-in-out infinite;
}

/* Scroll indicator */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

/* Video fullscreen (mobile) */
[data-controller="homepage--video-fullscreen"]:fullscreen {
  background: #000;
  display: flex;
  flex-direction: column;
}
[data-controller="homepage--video-fullscreen"]:fullscreen video {
  flex: 1;
  object-fit: contain;
}

/* Desktop: hint that video can be expanded */
@media (min-width: 768px) {
  [data-controller="homepage--video-fullscreen"] video {
    cursor: zoom-in;
  }
}

/* Smooth scroll for anchor links */
html { scroll-behavior: smooth; scroll-padding-top: 165px; }

/* ── Public article body typography ── */
.public-article-body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #2a2a3e;
}
.public-article-body h1 { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.75rem; font-weight: 400; margin: 2.5rem 0 0.75rem; color: #0c1222; }
.public-article-body h2 { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.4rem; font-weight: 400; margin: 2rem 0 0.5rem; color: #0c1222; }
.public-article-body h3 { font-size: 1.1rem; font-weight: 600; margin: 1.75rem 0 0.5rem; color: #0c1222; }
.public-article-body h4 { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: #0c1222; }
.public-article-body p { margin: 0 0 1.25rem; }
.public-article-body ul, .public-article-body ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.public-article-body li { margin: 0.35rem 0; }
.public-article-body ul { list-style: disc; }
.public-article-body ol { list-style: decimal; }
.public-article-body a { color: #c2873a; text-decoration: underline; text-underline-offset: 2px; transition: opacity 0.2s; }
.public-article-body a:hover { opacity: 0.7; }
.public-article-body blockquote {
  border-left: 3px solid #c2873a;
  padding: 0.75rem 1.25rem;
  margin: 1.25rem 0;
  color: #5a6778;
  background: #f0ede8;
  border-radius: 0 8px 8px 0;
}
.public-article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  background: #edeae5;
  padding: 0.15em 0.4em;
  border-radius: 4px;
}
.public-article-body pre {
  background: #edeae5;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  overflow-x: auto;
}
.public-article-body pre code { background: none; padding: 0; }
.public-article-body table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 14px; }
.public-article-body th, .public-article-body td { border: 1px solid #e5e2dd; padding: 0.6rem 0.75rem; text-align: left; }
.public-article-body th { background: #f0ede8; font-weight: 600; color: #0c1222; }
.public-article-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.25rem 0; }
.public-article-body hr { border: none; border-top: 1px solid #e5e2dd; margin: 2.5rem 0; }
