/* ============================================================
   FIELDORA — Global Stylesheet v2
   Palette: sage green / cream / dark ink
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Tokens ── */
:root {
  /* Sage palette (from the swatch) */
  --cream:      #F1F3E0;
  --sage-lt:    #D2DCB6;
  --sage-md:    #A1BC98;
  --sage-dk:    #778873;

  /* Derived darks — near-black perimeter, subtle green mid-surfaces */
  --ink:        #060706;
  --ink-2:      #0E120D;
  --ink-3:      #161C14;
  --ink-4:      #1E2A1C;

  /* UI colours */
  --bg:         var(--ink);
  --surface:    var(--ink-2);
  --surface-2:  var(--ink-3);
  --accent:     var(--sage-md);
  --accent-lt:  var(--sage-lt);
  --text:       var(--cream);
  --text-dim:   rgba(241,243,224,0.55);
  --text-muted: rgba(241,243,224,0.32);
  --border:     rgba(161,188,152,0.12);
  --border-lt:  rgba(210,220,182,0.07);

  /* Semantic */
  --green:   #6BAF7A;
  --amber:   #C9A84C;
  --red:     #B55B4A;

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Layout */
  --radius:    8px;
  --radius-lg: 14px;
  --max-w:     1200px;
  --nav-h:     64px;
  --shadow:    0 4px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 60px rgba(0,0,0,0.5);
}

/* ── Pop-out hover system ── */
:root {
  --pop-shadow: 0 8px 40px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.4), 0 12px 48px rgba(180,200,180,0.07);
  --pop-shadow-lg: 0 24px 120px rgba(0,0,0,0.45), 0 6px 36px rgba(0,0,0,0.32), 0 2px 0 rgba(200,220,200,0.06) inset;
  --pop-lift: translateY(-4px);
  --pop-lift-sm: translateY(-2px);
  --pop-bg: #1A2818;
  --pop-bg-lt: #243522;
  --pop-text: rgba(241,243,224,0.88);
  --pop-text-dim: rgba(241,243,224,0.55);
  --pop-accent: #A1BC98;
}

/* ── Universal interactive card base ── */
.module-full-card,
.diff-card,
.pricing-card,
.pfc,
.wl-how-card,
.wl-panel-item,
.wl-feat,
.trust-badge,
.faq-item,
.audience-card,
.audience-cta-block,
.principle-card,
.wl-feature,
.team-card,
.addon-card,
.problem-card,
.stat-block {
  transition: background 220ms ease, transform 300ms ease, box-shadow 300ms ease, border-color 220ms ease, color 220ms ease !important;
}

/* ── Universal hover state ── */
.module-full-card:hover,
.diff-card:hover,
.pricing-card:hover,
.pfc:hover,
.wl-how-card:hover,
.trust-badge:hover,
.faq-item:hover,
.audience-card:hover,
.principle-card:hover,
.team-card:hover,
.addon-card:hover,
.problem-card:hover {
  background: var(--pop-bg) !important;
  transform: var(--pop-lift);
  box-shadow: var(--pop-shadow-lg) !important;
}

/* Text recolour on dark bg */
.module-full-card:hover h3,
.module-full-card:hover p,
.diff-card:hover h3,
.diff-card:hover p,
.pricing-card:hover .pricing-price,
.pricing-card:hover .pricing-desc,
.pricing-card:hover .pricing-period,
.pfc:hover .pfc-price,
.pfc:hover .pfc-desc,
.pfc:hover .pfc-period,
.pfc:hover .pfc-features li,
.wl-how-card:hover h3,
.wl-how-card:hover p,
.faq-item:hover .faq-a,
.faq-item:hover .faq-q,
.audience-card:hover h3,
.audience-card:hover p,
.principle-card:hover h3,
.principle-card:hover p,
.team-card:hover .team-bio,
.problem-card:hover p { color: var(--pop-text-dim) !important; }

.module-full-card:hover .mfc-name,
.diff-card:hover h3,
.pricing-card:hover .pricing-tier,
.pfc:hover .pfc-tier,
.wl-how-card:hover h3,
.faq-item:hover .faq-q,
.audience-card:hover h3,
.principle-card:hover h3,
.team-card:hover .team-name { color: var(--pop-text) !important; }

.module-full-card:hover .mfc-num,
.diff-card:hover .diff-tag,
.pricing-card:hover .pricing-tier,
.pfc:hover .pfc-tier,
.principle-card:hover .principle-num { color: var(--pop-accent) !important; }

/* Lighter lift for smaller elements */
.wl-feat:hover,
.wl-feature:hover,
.trust-badge:hover,
.wl-panel-item:hover {
  background: var(--pop-bg) !important;
  transform: var(--pop-lift-sm) !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.4), 0 16px 40px rgba(160,190,160,0.06) !important;
}
.trust-badge:hover .trust-badge-name,
.trust-badge:hover .trust-badge-text,
.trust-badge:hover .trust-badge-val { color: var(--pop-text-dim) !important; }
.trust-badge:hover .trust-badge-text,
.trust-badge:hover .trust-badge-val { color: var(--pop-text) !important; }
.wl-panel-item:hover .wl-panel-title { color: var(--pop-text) !important; }
.wl-panel-item:hover .wl-panel-desc  { color: var(--pop-text-dim) !important; }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.06;
  text-wrap: pretty;
}
h4, h5 { font-family: var(--font-body); font-weight: 600; color: var(--cream); }

.hero-h1, .section-h2, .hero-h {
  -webkit-text-stroke: 0.8px rgba(184,150,62,0.55);
  paint-order: stroke fill;
}

/* On light/cream backgrounds, use a slightly darker gold stroke */
.sect-cream h1, .sect-cream h2,
.sect-sage h1, .sect-sage h2,
.diff-section h2,
.final-cta h2,
.trust-section h2 {
  -webkit-text-stroke: 0.8px rgba(140,100,20,0.4);
}

.hero-h1    { font-size: clamp(52px, 7vw, 96px); -webkit-text-stroke: 0.8px rgba(184,150,62,0.55); paint-order: stroke fill; }
.section-h2 { font-size: clamp(36px, 4.5vw, 60px); -webkit-text-stroke: 0.8px rgba(184,150,62,0.55); paint-order: stroke fill; }
.sub-h3     { font-size: clamp(20px, 2.5vw, 28px); }

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-md);
}

.body-lg { font-size: 18px; line-height: 1.7; color: var(--text-dim); }
.body    { font-size: 15px; line-height: 1.7; color: var(--text-dim); }
.caption { font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em; }
.mono    { font-family: var(--font-mono); font-size: 12px; }

/* ── Layout ── */
.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 56px; }
.section    { padding: 104px 0; }
.section-sm { padding: 64px 0; }

/* ── Divider ── */
.sage-rule { width: 40px; height: 1px; background: var(--sage-md); margin-bottom: 28px; opacity: 0.7; }
.sage-rule.center { margin-left: auto; margin-right: auto; }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(13,19,12,0.92);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-mark { width: 26px; height: 26px; }
.nav-logo-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.nav-primary {
  display: flex;
  align-items: center;
  list-style: none;
  height: var(--nav-h);
}
.nav-primary > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-primary > li > a,
.nav-primary > li > button {
  padding: 0 16px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dim);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 200ms;
}
.nav-primary > li > a:hover,
.nav-primary > li > button:hover { color: var(--cream); }

.nav-chevron {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 200ms;
  opacity: 0.6;
}
.nav-primary > li.open .nav-chevron { transform: rotate(225deg) translateY(-2px); }

.nav-utility {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-utility a {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-dim);
  transition: color 200ms;
}
.nav-utility a:hover { color: var(--cream); }

.btn-nav-cta {
  display: inline-flex !important;
  align-items: center;
  padding: 7px 18px !important;
  background: var(--sage-md) !important;
  color: var(--ink) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  border-radius: var(--radius) !important;
  transition: background 150ms !important;
}
.btn-nav-cta:hover { background: var(--sage-lt) !important; }

/* Mega-menu */
.mega-menu {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-top: 1px solid var(--sage-md);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 32px;
}
.nav-primary > li.open .mega-menu { display: flex; gap: 32px; }
.mega-col { flex: 1; }
.mega-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dk);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.mega-menu a {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: var(--text-dim);
  transition: color 180ms, padding-left 180ms;
}
.mega-menu a:hover { color: var(--cream); padding-left: 4px; }
.mega-menu .sub-item { padding-left: 12px; font-size: 12px; color: var(--text-muted); }
.mega-menu .sub-item:hover { color: var(--text-dim); }

.dropdown-menu {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  min-width: 210px;
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-top: 1px solid var(--sage-md);
  box-shadow: var(--shadow-lg);
  padding: 6px 0;
}
.nav-primary > li.open .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--text-dim);
  transition: color 180ms, background 180ms;
}
.dropdown-menu a:hover { color: var(--cream); background: var(--border-lt); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-hamburger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--cream);
  border-radius: 1px;
  transition: transform 300ms;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 999;
  padding: calc(var(--nav-h) + 24px) 32px 32px;
  overflow-y: auto;
  flex-direction: column;
  border-right: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a, .mobile-nav button {
  display: block;
  padding: 14px 0;
  font-size: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cream);
  background: none;
  text-align: left;
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.mobile-nav .mobile-sub {
  padding: 8px 0 8px 20px;
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-dim);
  border-bottom: none;
}
.mobile-nav .btn-nav-cta {
  margin-top: 24px; display: block;
  text-align: center; padding: 14px !important;
  font-size: 14px !important;
}
.mobile-expand { display: flex; justify-content: space-between; align-items: center; }
.mobile-expand-children { display: none; }
.mobile-expand-children.open { display: block; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: all 200ms ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-sage {
  background: var(--sage-md);
  color: var(--ink);
  border: 1px solid var(--sage-md);
}
.btn-sage:hover { background: var(--sage-lt); border-color: var(--sage-lt); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(241,243,224,0.25);
}
.btn-outline:hover { border-color: var(--sage-md); color: var(--sage-lt); }

.btn-outline-sage {
  background: transparent;
  color: var(--sage-md);
  border: 1px solid var(--sage-md);
}
.btn-outline-sage:hover { background: rgba(161,188,152,0.08); }

.btn-sm { padding: 8px 18px; font-size: 12px; }
.btn-lg { padding: 16px 36px; font-size: 15px; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--ink);
  padding: calc(var(--nav-h) + 80px) 0 80px;
  border-bottom: 1px solid var(--border);
}
.page-hero-label { margin-bottom: 20px; }
.page-hero h1 { color: var(--cream); max-width: 820px; }
.page-hero p  { color: var(--text-dim); font-size: 18px; max-width: 580px; margin-top: 20px; line-height: 1.65; }

/* ============================================================
   SECTION VARIANTS
   ============================================================ */
.sect-dark   { background: var(--ink); }
.sect-dark-2 { background: var(--ink-2); }
.sect-dark-3 { background: var(--ink-3); }
.sect-cream  { background: var(--cream); }
.sect-sage   { background: var(--sage-lt); }

/* ============================================================
   FORM STYLES
   ============================================================ */
.form-field { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 12px; font-weight: 500;
  color: var(--text-muted); margin-bottom: 6px;
  letter-spacing: 0.06em; text-transform: uppercase;
  font-family: var(--font-mono);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--cream);
  background: var(--ink-2);
  transition: border-color 200ms;
  outline: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--sage-md);
}
.form-select option { background: var(--ink-2); }
.form-textarea { resize: vertical; min-height: 120px; }

/* Light form (on cream bg) */
.form-light .form-label { color: rgba(13,19,12,0.5); }
.form-light .form-input,
.form-light .form-select,
.form-light .form-textarea {
  background: var(--cream);
  color: var(--ink);
  border-color: rgba(119,136,115,0.25);
}
.form-light .form-input::placeholder { color: rgba(13,19,12,0.35); }
.form-light .form-input:focus { border-color: var(--sage-dk); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 80ms; }
.fade-up-delay-2 { transition-delay: 160ms; }
.fade-up-delay-3 { transition-delay: 240ms; }
.fade-up-delay-4 { transition-delay: 320ms; }
.fade-up-delay-5 { transition-delay: 400ms; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--border);
  padding: 72px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer-tagline { font-size: 13px; color: var(--text-muted); line-height: 1.65; max-width: 240px; margin-top: 16px; }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sage-dk); margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: color 180ms; }
.footer-links a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--text-muted);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--text-muted); transition: color 180ms; }
.footer-legal a:hover { color: var(--text-dim); }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-cream  { color: var(--cream); }
.text-sage   { color: var(--sage-md); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  .container { padding: 0 32px; }
  .nav-primary, .nav-utility .desktop-only { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  :root { --nav-h: 56px; }
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
