/* ============================================================
   Jardon Bookkeeping — Brand Identity (Black + Teal)
   Locked palette: anchor black + vibrant teal only. No navy. No gold.
   Variable names preserved so all existing pages pick up the new
   palette without HTML changes.
   ============================================================ */

:root {
  /* LOCKED BRAND PALETTE — Jardon Bookkeeping */
  --color-primary:      #00D4C8; /* vibrant teal — CTAs, accents, links */
  --color-primary-dark: #00B5AB; /* teal hover */
  --color-primary-soft: #E6FAF8; /* teal tint backgrounds */
  --color-accent:       #00D4C8; /* alias for legacy "accent" usage */
  --color-accent-deep:  #00B5AB; /* alias for legacy hover */
  --color-anchor:       #0A0A0A; /* anchor black — headings, dark sections, footer */
  --color-text:         #1A1A1A; /* charcoal body text */
  --color-bg:           #FFFFFF; /* white primary background */
  --color-bg-alt:       #F7FAFA; /* cool off-white alt sections */
  --color-border:       #E2E8E8; /* light gray dividers */

  /* Semantic alert color — NOT the brand accent. Used only for errors,
     destructive actions, unbalanced totals, and "red folder" urgency. */
  --color-alert:        #E04A3F;
  --color-alert-soft:   #FFEBE6;
  --color-success:      #1F7A4D;
  --color-warning:      #E0A23F;

  /* LEGACY ALIASES — keep names so existing markup picks up new palette */
  --teal: #0A0A0A;          /* (was navy) → now anchor black for dark sections */
  --teal-deep: #0A0A0A;     /* dark sections background */
  --teal-darker: #050505;   /* deepest black */
  --teal-tint: #1A1A1A;     /* hover dark */
  --ink: #1A1A1A;           /* charcoal text */
  --cream: #FFFFFF;         /* primary background → white */
  --cream-warm: #F7FAFA;    /* cool off-white alt */
  --cream-deeper: #EEF3F3;  /* slightly deeper alt */
  --terracotta: #00D4C8;    /* accent → teal */
  --terracotta-deep: #00B5AB;
  --gold: #00D4C8;          /* legacy "gold" → teal accent */
  --gold-soft: #E6FAF8;     /* legacy gold tint → teal tint */
  --forest: #1F7A4D;        /* success state */
  --gray: #4A4A4A;           /* body muted */
  --gray-soft: #8A8A8A;      /* captions */
  --rule: #E2E8E8;          /* border light */

  /* TYPOGRAPHY — Montserrat everywhere */
  --serif: 'Montserrat', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* SCALE */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* SHADOWS — soft, warm, editorial */
  --shadow-xs: 0 1px 2px rgba(26,46,46,0.04);
  --shadow-sm: 0 2px 8px rgba(26,46,46,0.05);
  --shadow: 0 8px 24px rgba(26,46,46,0.06), 0 2px 6px rgba(26,46,46,0.04);
  --shadow-lg: 0 24px 48px rgba(26,46,46,0.10), 0 8px 16px rgba(26,46,46,0.06);
  --shadow-xl: 0 40px 80px rgba(26,46,46,0.16), 0 16px 32px rgba(26,46,46,0.08);

  /* ANIMATION TIMINGS */
  --t-fast: 150ms;
  --t: 240ms;
  --t-slow: 400ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1); /* gentle out-quart */
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body {
  font-family: var(--sans);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 17px; line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0;
  overflow-x: hidden;
}
img, svg { display:block; max-width:100%; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }

/* PAPER TEXTURE OVERLAY — subtle warmth on cream sections */
.paper-texture {
  position: relative;
}
.paper-texture::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 320 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.51 0 0 0 0 0.42 0 0 0 0 0.31 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 0;
}
.paper-texture > * { position: relative; z-index: 1; }

/* TYPOGRAPHY UTILITIES */
.serif { font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; }
.serif-italic { font-family: var(--sans); font-weight: 700; font-style: normal; letter-spacing: -0.01em; color: var(--color-accent); }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow-light { color: var(--color-accent); }

h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; color: var(--color-anchor); }
h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -0.02em; }
h3 { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.18; letter-spacing: -0.015em; }
h4 { font-size: clamp(18px, 2vw, 22px); line-height: 1.25; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #FFFFFF; }

p { color: var(--ink); font-size: 17px; line-height: 1.65; }
.lede { font-size: 19px; line-height: 1.55; color: var(--gray); max-width: 620px; }
.muted { color: var(--gray); }

em.gold { font-style: italic; color: var(--gold); font-family: var(--serif); }
em.terracotta { font-style: italic; color: var(--terracotta); font-family: var(--serif); }
em.cream-italic { font-style: italic; color: var(--cream); font-family: var(--serif); }

/* CONTAINER */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--space-6); }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--space-6); }

/* SECTIONS */
.section { padding: var(--space-9) 0; position: relative; }
.section-lg { padding: var(--space-10) 0; }
.section-cream { background: var(--cream); }
.section-cream-warm { background: var(--cream-warm); }
.section-cream-deeper { background: var(--cream-deeper); }
/* DARK SECTIONS — anchor black + animated teal aurora + mesh grid */
.section-dark {
  background:
    radial-gradient(ellipse 60% 50% at 78% 25%, rgba(0,212,200,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 15% 80%, rgba(0,212,200,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 100% 80% at 70% 20%, #141414 0%, #0A0A0A 55%, #050505 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
/* Subtle animated mesh grid overlay */
.section-dark::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,200,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,200,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none; opacity: 0.55;
  animation: meshDrift 40s ease-in-out infinite;
}
/* Floating accent dots */
.section-dark::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle 1.5px at 12% 22%, rgba(0,212,200,0.7), transparent),
    radial-gradient(circle 1px at 28% 65%, rgba(255,255,255,0.6), transparent),
    radial-gradient(circle 2px at 78% 12%, rgba(0,212,200,0.5), transparent),
    radial-gradient(circle 1.5px at 88% 78%, rgba(0,212,200,0.6), transparent),
    radial-gradient(circle 1px at 60% 88%, rgba(255,255,255,0.5), transparent),
    radial-gradient(circle 1.5px at 45% 18%, rgba(0,212,200,0.5), transparent);
  pointer-events: none;
  animation: starsTwinkle 6s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-32px, -16px); }
}
@keyframes starsTwinkle {
  0%   { opacity: 0.55; }
  100% { opacity: 1; }
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #FFFFFF; }
.section-dark p { color: rgba(255,255,255,0.78); }
.section-dark .eyebrow { color: var(--color-accent); }
.section-dark a { color: #FFFFFF; }
.section-dark a:hover { color: var(--color-accent); }

/* NAV — white bar so logo (dark icon + wordmark) reads cleanly */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 var(--space-6);
  background: #FFFFFF !important;
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--t-slow) var(--ease);
}
.nav.scrolled { box-shadow: 0 2px 16px rgba(10,10,10,0.08); }
.nav.over-dark, .nav.over-light, .nav.scrolled {
  background: #FFFFFF !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 140px;
}
.nav-logo {
  font-family: var(--sans); font-weight: 700; font-size: 20px;
  letter-spacing: 0.02em; color: #FFFFFF;
  transition: color var(--t-slow) var(--ease);
  display: inline-flex; align-items: center; gap: 0;
}
.nav-logo img {
  height: 180px;
  width: auto;
  max-width: 600px;
  display: block;
  object-fit: contain;
  /* PNG has internal whitespace — overflow lets it visually fill the nav even though
     img box exceeds nav height. Scaling crop is centered. */
  margin: -40px 0;
}
@media (max-width: 880px) {
  .nav-logo img { height: 120px; max-width: 320px; margin: -28px 0; }
  .nav-inner { height: 96px; }
}
/* Logo always visible regardless of scroll state. Both img tags reference
   the same SVG, but the legacy state-swap rules used to hide one of them
   on scroll. Force both to behave correctly: light=visible, dark=hidden. */
.nav .nav-logo .logo-light { display: block !important; }
.nav .nav-logo .logo-dark  { display: none !important; }

/* Brand tagline — gold uppercase eyebrow style */
.brand-tagline {
  font-family: var(--sans); font-weight: 500;
  font-size: 12px; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 8px;
}
.brand-tagline-sm {
  font-size: 10px; letter-spacing: 0.1em;
  color: var(--color-accent); margin-top: 6px;
  text-transform: uppercase; font-weight: 500;
}
.nav-links { display: flex; gap: var(--space-7); align-items: center; }
.nav-links > a:not(.btn) { font-size: 15px; font-weight: 600; color: var(--color-anchor) !important; transition: color var(--t) var(--ease); letter-spacing: 0.005em; }
.nav-links > a:not(.btn):hover { color: var(--color-primary) !important; }
/* mobile menu button on white nav */
.nav-mobile-btn { color: var(--color-anchor) !important; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.005em;
  border-radius: var(--radius-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn { font-weight: 600; }
.btn:hover { transform: translateY(-2px); }
/* Primary CTA: TEAL bg with ANCHOR BLACK text per brand spec */
.btn-primary { background: var(--color-primary); color: var(--color-anchor) !important; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow); }
/* btn-cream renders as primary teal CTA so headline buttons stand out on dark hero/footer */
.btn-cream { background: var(--color-primary); color: var(--color-anchor) !important; box-shadow: var(--shadow-sm); }
.btn-cream:hover { background: var(--color-primary-dark); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--color-anchor); border-color: var(--color-anchor); }
.btn-ghost:hover { background: var(--color-primary); color: var(--color-anchor); border-color: var(--color-primary); }
.btn-ghost-cream { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,0.32); }
.btn-ghost-cream:hover { border-color: var(--color-primary); color: var(--color-primary); background: rgba(0,212,200,0.08); }
.btn-terracotta { background: var(--color-primary); color: var(--color-anchor) !important; }
.btn-terracotta:hover { background: var(--color-primary-dark); }
.btn-lg { padding: 17px 30px; font-size: 16px; border-radius: 8px; }

/* CARDS */
.card {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-elevated { box-shadow: var(--shadow); border-color: transparent; }

/* PROBLEM CARD — terracotta LEFT bar + gold square icon */
.problem-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-6) var(--space-6) calc(var(--space-6) + 6px);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  overflow: hidden;
}
.problem-card::before {
  content: ''; position: absolute; left: 0; top: 24px; bottom: 24px;
  width: 4px;
  background: var(--terracotta);
  border-radius: 0 4px 4px 0;
}
.problem-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.problem-card-icon {
  width: 48px; height: 48px;
  background: var(--gold-soft);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--teal);
}

/* LINE ICONS */
.icon { width: 24px; height: 24px; stroke-width: 1.75; stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 28px; height: 28px; }

/* MOCKUP */
.mockup-card {
  background: var(--cream);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(250,246,241,0.06);
}

/* STAT — editorial big number */
.stat-block {
  display: flex; flex-direction: column; gap: 6px;
}
.stat-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}
.stat-number {
  display: block;
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--color-accent);
  white-space: nowrap;
}
.stat-sub {
  font-size: 14px; color: var(--gray); margin-top: 4px;
}

/* SPARKLINE — inline svg next to numbers */
.sparkline { width: 80px; height: 24px; }
.sparkline path { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; }
.sparkline circle { fill: var(--terracotta); }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUpSlow {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatIn {
  from { opacity: 0; transform: translateX(40px) rotate(2deg); }
  to { opacity: 1; transform: translateX(0) rotate(2deg); }
}
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* RESPECT REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* FOOTER — force every text + link visible on anchor-black bg */
footer { background: var(--color-anchor) !important; color: #FFFFFF !important; }
footer * { color: #FFFFFF !important; }
footer a { color: #FFFFFF !important; opacity: 0.9; transition: opacity var(--t) var(--ease), color var(--t) var(--ease); }
footer a:hover { opacity: 1; color: var(--color-accent) !important; text-decoration: none; }
footer .brand-tagline,
footer .brand-tagline-sm { color: var(--color-accent) !important; }
footer p { color: rgba(255,255,255,0.78) !important; }
footer [style*="letter-spacing"] { color: #FFFFFF !important; }

/* RIBBON for pricing */
.ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold);
  color: var(--ink);
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 18px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* PRICING CARD */
.price-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  text-align: center;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.featured {
  background: var(--cream);
  border-color: var(--gold);
  border-width: 2px;
  box-shadow: var(--shadow);
}
.price-name {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 14px;
}
.price-amount {
  font-family: var(--sans); font-weight: 700;
  font-size: 64px; line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.price-amount span { font-size: 18px; color: var(--gray); font-weight: 500; font-family: var(--sans); letter-spacing: 0; margin-left: 4px; }
.price-desc { font-size: 14px; color: var(--gray); margin-bottom: var(--space-5); }
.price-features { list-style: none; text-align: left; margin: var(--space-5) 0; display:flex; flex-direction: column; gap: 10px; }
.price-features li { font-size: 14px; color: var(--ink); padding-left: 24px; position: relative; line-height: 1.5; }
.price-features li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300D4C8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
  background-size: 14px;
}

/* DECORATIVE BLOB SHAPES */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.blob-teal { background: rgba(0,212,200,0.32); animation: blobDrift 18s ease-in-out infinite; }
.blob-gold { background: rgba(0,212,200,0.16); animation: blobDrift 22s ease-in-out infinite reverse; }
.blob-terracotta { background: rgba(0,212,200,0.10); }
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.05); }
  66%      { transform: translate(-30px, 40px) scale(0.95); }
}

/* RESPONSIVE */
@media (max-width: 880px) {
  .section { padding: var(--space-8) 0; }
  .section-lg { padding: var(--space-9) 0; }
  .nav-links { display: none; }
  .nav-links.mobile-open { display: flex; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; background: var(--cream); padding: var(--space-6); gap: var(--space-4); box-shadow: var(--shadow); }
  .nav-mobile-btn { display: block; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--cream); }
  .nav.over-light .nav-mobile-btn, .nav.scrolled .nav-mobile-btn { color: var(--ink); }
}
@media (min-width: 881px) {
  .nav-mobile-btn { display: none; }
}
