/* ============================================
   Guard Landing Page - CSS
   ============================================ */

/* ---- Variables ---- */
:root {
  --bg-light: #F5F3EE;
  --bg-dark: #1A1A18;
  --bg-accent: #2E3B23;
  --text-on-light: #2E3B23;
  --text-on-dark: #E8E4D9;
  --color-forest: #3A4A2D;
  --color-olive: #4A5D3A;
  --color-moss: #5C7244;
  --color-sage: #6B8253;
  --color-parchment: #E8E4D9;
  --color-warm-white: #F5F3EE;
  --color-dark: #1A1A18;
  --font-display: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Lora', Georgia, serif;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background: var(--bg-light);
  color: var(--text-on-light);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100vw;
}

a {
  color: var(--color-sage);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  text-decoration: underline;
  color: var(--color-moss);
}

a:focus-visible {
  outline: 2px solid var(--color-sage);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

button:focus-visible {
  outline: 2px solid var(--color-sage);
  outline-offset: 2px;
}

/* ---- Loader ---- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.6s ease;
}

#loader.loaded {
  opacity: 0;
  pointer-events: none;
}

.loader-brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: 0.12em;
  color: var(--color-parchment);
}

.loader-bar-wrap {
  width: 200px;
  height: 2px;
  background: rgba(232, 228, 217, 0.15);
  border-radius: 1px;
  overflow: hidden;
}

#loader-bar {
  width: 0%;
  height: 100%;
  background: var(--color-parchment);
  transition: width 0.2s ease;
}

#loader-percent {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(232, 228, 217, 0.5);
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  mix-blend-mode: difference;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.header-logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--color-parchment);
  text-decoration: none;
}

.header-logo:hover {
  text-decoration: none;
  color: var(--color-parchment);
}

.header-tagline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: rgba(232, 228, 217, 0.6);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.header-nav-link {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-parchment);
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.header-nav-link:hover {
  text-decoration: none;
  opacity: 0.6;
  color: var(--color-parchment);
}

/* ---- Mobile Menu ---- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  z-index: 101;
}

.mobile-menu-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-parchment);
  position: relative;
  transition: background 0.3s ease;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--color-parchment);
  left: 0;
  transition: transform 0.3s ease, top 0.3s ease;
}

.mobile-menu-icon::before {
  top: -6px;
}

.mobile-menu-icon::after {
  top: 6px;
}

/* Hamburger to X animation */
.mobile-menu-open .mobile-menu-icon {
  background: transparent;
}

.mobile-menu-open .mobile-menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-open .mobile-menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  padding: 24px 28px 32px;
  border-top: 1px solid rgba(232, 228, 217, 0.1);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.mobile-menu-panel.is-open {
  max-height: 500px;
  padding: 24px 28px 32px;
}

.mobile-menu-link {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-parchment);
  text-decoration: none;
  padding: 12px 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease;
}

.mobile-menu-link:hover {
  text-decoration: none;
  color: var(--color-parchment);
  opacity: 0.6;
}

.mobile-menu-panel.is-open .mobile-menu-link {
  animation: menuFadeIn 0.3s ease forwards;
}

.mobile-menu-panel.is-open .mobile-menu-link:nth-child(1) { animation-delay: 0ms; }
.mobile-menu-panel.is-open .mobile-menu-link:nth-child(2) { animation-delay: 50ms; }
.mobile-menu-panel.is-open .mobile-menu-link:nth-child(3) { animation-delay: 100ms; }
.mobile-menu-panel.is-open .mobile-menu-link:nth-child(4) { animation-delay: 150ms; }
.mobile-menu-panel.is-open .mobile-menu-link:nth-child(5) { animation-delay: 200ms; }
.mobile-menu-panel.is-open .mobile-menu-link:nth-child(6) { animation-delay: 250ms; }

.mobile-menu-tagline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--color-sage);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(232, 228, 217, 0.1);
  opacity: 0;
  transform: translateY(-8px);
}

.mobile-menu-panel.is-open .mobile-menu-tagline {
  animation: menuFadeIn 0.3s ease forwards;
  animation-delay: 300ms;
}

@keyframes menuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Hero ---- */
.hero-standalone {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 10;
  background: var(--bg-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 100px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-text-top {
  max-width: 700px;
}

.hero-text-top .section-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(232, 228, 217, 0.6);
  margin-bottom: 16px;
}

.hero-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--color-parchment);
}

.hero-text-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.hero-tagline {
  position: absolute;
  bottom: 120px;
  right: 40px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--color-parchment);
  text-align: right;
  max-width: 50vw;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(232, 228, 217, 0.5);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-indicator svg {
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.hero-wordmark {
  position: absolute;
  bottom: 40px;
  left: 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-wordmark-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--color-parchment);
}

.hero-wordmark-tagline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  color: rgba(232, 228, 217, 0.5);
}

/* ---- Canvas/Parallax Wrap ---- */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  clip-path: circle(0% at 50% 50%);
  background: var(--bg-light);
}

.parallax-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.01s;
}

.parallax-layer.active {
  opacity: 1;
}

.parallax-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* ---- Dark Overlay ---- */
#dark-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: var(--bg-dark);
  opacity: 0;
  pointer-events: none;
}

/* ---- Scroll Container ---- */
#scroll-container {
  position: relative;
  z-index: 5;
  height: 1400vh;
  pointer-events: none;
}

/* ---- Scroll Sections ---- */
.scroll-section {
  position: absolute;
  width: 100%;
  display: flex;
  align-items: center;
  pointer-events: auto;
  opacity: 0;
}

.section-inner {
  max-width: 480px;
  padding: 0 5vw;
}

.section-inner-centered {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 0 5vw;
}

/* Side alignment */
.align-left {
  justify-content: flex-start;
}

.align-left .section-inner {
  padding-left: 5vw;
  padding-right: 0;
}

.align-right {
  justify-content: flex-end;
}

.align-right .section-inner {
  padding-right: 5vw;
  padding-left: 0;
}

/* ---- Section Typography ---- */
.section-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-parchment);
  margin-bottom: 16px;
}

.section-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(232, 228, 217, 0.8);
  margin-bottom: 12px;
}

.section-source {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--color-sage);
}

.section-source:hover {
  color: var(--color-moss);
}

.accent {
  color: var(--color-sage);
}

.ingredient-dose {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--color-sage);
  margin-bottom: 12px;
}

/* ---- Stats ---- */
.stats-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 5vw;
}

.section-intro {
  margin: 0 auto 48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
  color: var(--color-parchment);
}

.stat-number.inline-stat {
  display: inline;
  font-size: inherit;
}

.stat-suffix {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--color-parchment);
  display: inline;
  margin-left: -4px;
}

.stat-label {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.8rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgba(232, 228, 217, 0.6);
  max-width: 220px;
  margin-top: 4px;
}

.stat-context {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(232, 228, 217, 0.55);
  max-width: 240px;
  margin-top: 8px;
}

.stat-source {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--color-sage);
  margin-top: 4px;
}

/* ---- Founders ---- */
.section-founders {
  background: transparent;
}

.founder-statement {
  max-width: 540px;
  margin: 0 auto;
}

.founder-statement p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-parchment);
  margin-bottom: 20px;
}

.founder-statement p:last-child {
  font-weight: 500;
  color: var(--color-parchment);
}

/* ---- FAQ ---- */
.section-faq {
  background: transparent;
}

.faq-heading {
  margin-bottom: 32px;
}

.faq-list {
  text-align: left;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(232, 228, 217, 0.15);
}

.faq-item:first-child {
  border-top: 1px solid rgba(232, 228, 217, 0.15);
}

.faq-question {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--color-parchment);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--color-sage);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--color-sage);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(232, 228, 217, 0.7);
}

/* ---- CTA Section ---- */
.section-cta {
  background: transparent;
}

.cta-heading {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 12px;
}

.cta-body {
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.waitlist-form {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 8px;
}

.form-row-names {
  margin-bottom: 8px;
}

.waitlist-input {
  flex: 1;
  padding: 14px 20px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--text-on-light);
  background: var(--color-warm-white);
  border: 1px solid rgba(74, 93, 58, 0.3);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s ease;
}

.waitlist-input::placeholder {
  color: rgba(46, 59, 35, 0.4);
}

.waitlist-input:focus {
  border-color: var(--color-olive);
}

.waitlist-submit {
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--color-parchment);
  background: var(--color-olive);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.waitlist-submit:hover {
  background: var(--color-moss);
}

.waitlist-submit:active {
  transform: scale(0.98);
}

.form-note {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: rgba(232, 228, 217, 0.4);
  margin-top: 12px;
}

.form-success {
  margin-top: 24px;
}

.success-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--color-parchment);
  margin-bottom: 8px;
}

.success-body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(232, 228, 217, 0.7);
}

/* ---- Persistent CTA ---- */
.persistent-cta {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--color-parchment);
  background: var(--color-olive);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 24px rgba(46, 59, 35, 0.3), 0 2px 8px rgba(46, 59, 35, 0.2);
}

.persistent-cta:hover {
  background: var(--color-moss);
  transform: translateX(-50%) translateY(-2px);
}

.persistent-cta:active {
  transform: translateX(-50%) scale(0.97);
}

.persistent-cta-icon {
  flex-shrink: 0;
}

.persistent-cta.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
}

/* ---- Static Sections (FAQ + CTA) ---- */
.static-sections {
  position: relative;
  z-index: 10;
  background: var(--bg-dark);
}

.static-section {
  padding: 80px 5vw;
  max-width: 800px;
  margin: 0 auto;
}

.static-section .section-label,
.static-section .section-heading,
.static-section .section-body,
.static-section .faq-list,
.static-section .waitlist-form,
.static-section .form-success,
.static-section .form-note {
  opacity: 1;
}

/* ---- Footer ---- */
.site-footer {
  position: relative;
  z-index: 10;
  background: var(--bg-dark);
  padding: 48px 40px;
  border-top: 1px solid rgba(232, 228, 217, 0.08);
}

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

.footer-brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--color-parchment);
}

.footer-copy {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: rgba(232, 228, 217, 0.4);
}

.footer-disclaimer {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 0.65rem;
  line-height: 1.6;
  color: rgba(232, 228, 217, 0.3);
  max-width: 600px;
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-links a {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: rgba(232, 228, 217, 0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-sage);
  text-decoration: underline;
}

/* ---- Legal Pages (Privacy, Terms) ---- */
.legal-page {
  background: var(--bg-light);
  color: var(--text-on-light);
  font-family: var(--font-body);
  min-height: 100vh;
  padding-top: 80px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2rem;
  color: var(--color-forest);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.legal-updated {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--color-sage);
  letter-spacing: 0.03em;
  margin-bottom: 48px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--color-forest);
  letter-spacing: 0.02em;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--text-on-light);
}

.legal-content ul {
  margin: 0 0 16px 24px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--color-sage);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* ---- Mobile (<768px) ---- */
@media (max-width: 768px) {
  #scroll-container {
    height: 1620vh;
  }

  .site-header {
    padding: 16px 20px;
    mix-blend-mode: normal;
    background: var(--bg-dark);
  }

  .header-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-menu-panel {
    display: block;
    max-height: 0;
    padding: 0 28px;
  }

  .hero-content {
    padding: 80px 20px 24px;
  }

  .hero-heading {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
  }

  .hero-text-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 60px;
  }

  .hero-wordmark {
    bottom: 24px;
    left: 20px;
  }

  .section-inner {
    max-width: 100%;
    padding: 0 20px;
    text-align: center;
  }

  .section-inner-centered {
    padding: 0 20px;
    text-align: center;
  }

  .align-left,
  .align-right {
    justify-content: center;
  }

  .align-left .section-inner,
  .align-right .section-inner {
    padding: 24px 20px;
    background: rgba(26, 26, 24, 0.85);
    border-radius: 8px;
    max-width: 100%;
    text-align: center;
    align-items: center;
  }

  .align-left .section-inner .section-label,
  .align-right .section-inner .section-label,
  .align-left .section-inner .section-heading,
  .align-right .section-inner .section-heading,
  .align-left .section-inner .section-body,
  .align-right .section-inner .section-body {
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stat {
    display: block;
    text-align: center;
  }

  .stat-number {
    display: inline;
    font-size: 2.2rem;
  }

  .stat-suffix {
    display: inline;
    font-size: 1.5rem;
  }

  .stat-label,
  .stat-context,
  .stat-source {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .stats-inner {
    padding: 24px 20px;
    background: rgba(26, 26, 24, 0.85);
    border-radius: 8px;
    text-align: center;
  }

  .hero-tagline {
    bottom: 100px;
    right: 20px;
    font-size: clamp(2.4rem, 10vw, 3.5rem);
    max-width: 60vw;
  }

  .form-row {
    flex-direction: column;
  }

  .persistent-cta {
    bottom: 20px;
    padding: 12px 22px;
    font-size: 0.8rem;
  }

  .site-footer {
    padding: 32px 20px;
  }

  .section-heading {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .legal-content {
    padding: 40px 20px 60px;
  }

  .legal-content h1 {
    font-size: 1.6rem;
  }

  .footer-links {
    gap: 16px;
  }
}

/* ============================================
   Blog Post Styles
   ============================================ */

/* ---- Blog Page Body ---- */
.blog-page {
  background: var(--bg-light);
  color: var(--text-on-light);
}

/* ---- Blog Post Header ---- */
.blog-post-header {
  padding: 24px 40px;
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border-bottom: 1px solid rgba(58, 74, 45, 0.1);
}

.blog-post-header nav {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.blog-post-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.blog-post-home {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-forest);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.blog-post-home:hover {
  text-decoration: none;
  opacity: 0.6;
  color: var(--color-forest);
}

.blog-post-header .header-logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--color-forest);
  text-decoration: none;
}

.blog-post-header .header-logo:hover {
  text-decoration: none;
  color: var(--color-forest);
}

.blog-post-header .header-tagline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--color-sage);
}


/* ---- Blog Article Container ---- */
.blog-article {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

/* ---- Blog Pillar Tag ---- */
.blog-pillar-tag {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 0.75rem;
}

/* ---- Blog Post Title ---- */
.blog-article .blog-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.25rem;
  line-height: 1.2;
  color: var(--color-forest);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

/* ---- Blog Subscribe CTA ---- */
.blog-subscribe-cta {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-sage);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.blog-subscribe-cta a {
  color: var(--color-olive);
  text-decoration: none;
  font-weight: 500;
}
.blog-subscribe-cta a:hover {
  text-decoration: underline;
  color: var(--color-moss);
}

/* ---- Blog Meta Line ---- */
.blog-meta {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.875rem;
  color: var(--color-sage);
  margin-bottom: 2rem;
}

/* ---- Blog Hero Image ---- */
.blog-hero {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 2rem;
  display: block;
}

/* ---- Blog Content (article body) ---- */
.blog-content {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-on-light);
}

.blog-content h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--color-forest);
  margin: 2.5rem 0 1rem;
}

.blog-content h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--color-forest);
  margin: 2rem 0 0.75rem;
}

.blog-content p {
  margin-bottom: 1.25rem;
}

.blog-content strong {
  font-weight: 600;
}

.blog-content em {
  font-style: italic;
}

.blog-content a {
  color: var(--color-sage);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-content a:hover {
  text-decoration: underline;
  color: var(--color-moss);
}

.blog-content blockquote {
  border-left: 3px solid var(--color-sage);
  padding: 0.75rem 0 0.75rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: rgba(46, 59, 35, 0.8);
}

.blog-content blockquote p:last-child {
  margin-bottom: 0;
}

.blog-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
  display: block;
}

.blog-content ul,
.blog-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-content .table-scroll-wrapper {
  margin: 1.5rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.blog-content table th {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--color-sage);
  color: var(--color-parchment);
}

.blog-content table th:first-child {
  border-radius: 4px 0 0 0;
}

.blog-content table th:last-child {
  border-radius: 0 4px 0 0;
}

.blog-content table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(58, 74, 45, 0.1);
}

.blog-content table tr:last-child td {
  border-bottom: none;
}

.blog-content code {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: rgba(232, 228, 217, 0.6);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

.blog-content pre {
  background: var(--color-dark);
  color: var(--color-parchment);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

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

.blog-content hr {
  border: none;
  height: 1px;
  background: rgba(58, 74, 45, 0.15);
  margin: 2.5rem 0;
}

/* ============================================
   === BLOG VISUAL COMPONENTS ===
   Reusable inline components used by the blog-writer agent.
   See references/visual-components/ for component contracts.
   All classes prefixed with g- (Guard) and use BEM-style children.
   ============================================ */

.g-stat-callout {
  border-left: 3px solid var(--color-sage);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
}

.g-stat-callout__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 3rem;
  line-height: 1;
  color: var(--color-forest);
  margin-bottom: 0.5rem;
}

.g-stat-callout__label {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-on-light);
}

.g-pull-quote {
  border-left: 3px solid var(--color-sage);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
}

.g-pull-quote__text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-on-light);
  margin: 0;
  position: relative;
}

.g-pull-quote__text::before {
  content: '\201C';
  font-size: 1.5em;
  color: var(--color-sage);
  margin-right: 0.1em;
}

.g-pull-quote__text::after {
  content: '\201D';
  color: var(--color-sage);
  margin-left: 0.05em;
}

.g-pull-quote__attribution {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-moss);
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.g-pull-quote__attribution-name {
  font-weight: 500;
  color: var(--color-forest);
}

.g-pull-quote__attribution-credentials {
  color: var(--color-sage);
}

.g-definition-box {
  background: var(--color-parchment);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.g-definition-box__term {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-forest);
  margin-bottom: 0.5rem;
}

.g-definition-box__body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-on-light);
}

.g-comparison-table thead th {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.g-comparison-table tbody td:first-child {
  font-weight: 500;
  color: var(--text-on-light);
}

.g-comparison-table__row--highlight {
  background: var(--color-parchment);
}

.g-comparison-table__row--highlight td {
  font-weight: 500;
}

.g-bar-chart {
  margin: 2rem 0;
  padding: 1rem 0;
}

.g-bar-chart__caption {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-moss);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.g-bar-chart__rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.g-bar-chart__row {
  display: grid;
  grid-template-columns: 100px 1fr 60px;
  gap: 0.75rem;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.g-bar-chart__label {
  text-align: right;
  color: var(--text-on-light);
  font-weight: 400;
}

.g-bar-chart__bar-track {
  background: var(--color-parchment);
  border-radius: 3px;
  height: 18px;
  overflow: hidden;
}

.g-bar-chart__bar {
  height: 100%;
  background: linear-gradient(to right, var(--color-olive), var(--color-sage));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.g-bar-chart__value {
  font-weight: 500;
  color: var(--color-forest);
}

@media (max-width: 480px) {
  .g-bar-chart__row {
    grid-template-columns: 70px 1fr 50px;
    font-size: 0.8rem;
  }
}

/* ---- Blog CTA Section ---- */
.blog-cta {
  background: var(--bg-dark);
  padding: 80px 1.5rem;
  text-align: center;
}

.blog-cta-inner {
  max-width: 520px;
  margin: 0 auto;
}

.blog-cta-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--color-parchment);
  margin-bottom: 12px;
}

.blog-cta-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(232, 228, 217, 0.7);
  margin-bottom: 32px;
}

.blog-cta-form {
  max-width: 480px;
  margin: 0 auto;
}

.blog-cta-form-row {
  display: flex;
  gap: 8px;
}

.blog-cta-form-row--names {
  margin-bottom: 8px;
}

.blog-cta-input {
  flex: 1;
  padding: 14px 20px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--text-on-light);
  background: var(--color-warm-white);
  border: 1px solid rgba(74, 93, 58, 0.3);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s ease;
}

.blog-cta-input::placeholder {
  color: rgba(46, 59, 35, 0.4);
}

.blog-cta-input:focus {
  border-color: var(--color-olive);
}

.blog-cta-submit {
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--color-parchment);
  background: var(--color-olive);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.blog-cta-submit:hover {
  background: var(--color-moss);
}

.blog-cta-submit:active {
  transform: scale(0.98);
}

.blog-cta-note {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: rgba(232, 228, 217, 0.4);
  margin-top: 12px;
}

.blog-cta-success {
  margin-top: 24px;
}

.blog-cta-success-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--color-parchment);
  margin-bottom: 8px;
}

.blog-cta-success-body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(232, 228, 217, 0.7);
}

/* ---- Blog Related Posts ---- */
.blog-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(58, 74, 45, 0.12);
}

.blog-related:empty {
  display: none;
}

.blog-related-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--color-forest);
  margin-bottom: 1.5rem;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.blog-related-card {
  display: block;
  text-decoration: none;
  border: 1px solid rgba(58, 74, 45, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.blog-related-card:hover {
  text-decoration: none;
  border-color: var(--color-sage);
  transform: translateY(-2px);
}

.blog-related-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.blog-related-card-body {
  padding: 1rem 1.25rem;
}

.blog-related-card-pillar {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 0.375rem;
  display: block;
}

.blog-related-card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--color-forest);
}

/* ---- Blog Footer Override (dark, same as landing) ---- */
.blog-footer-dark {
  background: var(--bg-dark);
  border-top: 1px solid rgba(232, 228, 217, 0.08);
}

/* ---- Blog Mobile (<768px) ---- */
@media (max-width: 768px) {
  .blog-post-header {
    padding: 16px 20px;
  }

  .blog-post-header .header-nav {
    gap: 16px;
  }

  .blog-post-header .header-nav-link {
    font-size: 0.65rem;
  }

  .blog-article {
    padding: 2rem 1.25rem 1.5rem;
  }

  .blog-article .blog-title {
    font-size: 1.75rem;
  }

  .blog-content h2 {
    font-size: 1.3rem;
    margin: 2rem 0 0.75rem;
  }

  .blog-content h3 {
    font-size: 1.125rem;
  }

  .blog-content {
    font-size: 1rem;
  }

  .blog-cta {
    padding: 60px 1.25rem;
  }

  .blog-cta-heading {
    font-size: 1.5rem;
  }

  .blog-cta-form-row {
    flex-direction: column;
  }

  .blog-related-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Blog Small Mobile (<480px) ---- */
@media (max-width: 480px) {
  .blog-post-header .header-tagline {
    display: none;
  }

  .blog-post-header .header-nav {
    gap: 12px;
  }

  .blog-article {
    padding: 1.5rem 1rem 1rem;
  }

  .blog-article .blog-title {
    font-size: 1.5rem;
  }

  .blog-meta {
    font-size: 0.8rem;
  }

  .blog-content table {
    font-size: 0.8125rem;
  }

  .blog-content table th,
  .blog-content table td {
    padding: 0.5rem 0.75rem;
  }
}
