/* Enablement® by Advent — marketing site
   Palette: navy #0A2540 (primary), green #2E8B2E (brand accent),
   ink #17232E, paper #F6F8FA. System font stack, no external deps. */

:root {
  --navy: #0a2540;
  --navy-2: #123a63;
  --green: #2e8b2e;
  --green-dark: #226b22;
  --ink: #17232e;
  --muted: #51606e;
  --paper: #f6f8fa;
  --line: #dde4ea;
  --white: #ffffff;
  --radius: 10px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 17px;
}
img { max-width: 100%; }
a { color: var(--navy-2); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.section-alt { background: var(--paper); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }

/* Header / nav */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
header.site.scrolled { box-shadow: 0 4px 18px rgba(10, 37, 64, 0.1); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
}
.brand { font-weight: 800; font-size: 1.15rem; color: var(--navy); text-decoration: none; display: flex; align-items: center; }
.brand small { display: block; font-weight: 500; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.06em; }
.brand-logo { height: 34px; width: auto; display: block; }
@media (max-width: 480px) { .brand-logo { height: 26px; } }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--green-dark); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; font-size: 1.1rem; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 16px 24px; gap: 14px; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  font-weight: 700; text-decoration: none; font-size: 0.98rem;
  border: 2px solid transparent;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { border-color: var(--white); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* Hero — animated gradient + drifting glow */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #1a4a7a 100%);
  background-size: 180% 180%;
  animation: heroShift 14s ease-in-out infinite alternate;
  color: var(--white);
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}
@keyframes heroShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}
.hero::before {
  content: "";
  position: absolute; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 139, 46, 0.28), transparent 65%);
  top: -220px; right: -160px; pointer-events: none;
  animation: glowDrift 18s ease-in-out infinite alternate;
}
@keyframes glowDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-90px, 70px) scale(1.15); }
}
.hero .wrap { position: relative; }
.hero h1, .hero .lead, .hero .status-pill, .hero .btn-row, .hero .eyebrow {
  animation: heroRise 0.8s ease-out both;
}
.hero .lead { animation-delay: 0.15s; }
.hero .btn-row { animation-delay: 0.3s; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero .lead { color: #c8d6e4; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #dce8f4; border-radius: 999px;
  padding: 7px 16px; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; margin-bottom: 28px;
}
.status-pill:hover { background: rgba(255, 255, 255, 0.18); }
.status-pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 139, 46, 0.6); }
  55% { box-shadow: 0 0 0 7px rgba(46, 139, 46, 0); }
}

/* Trust bar */
.trustbar { border-bottom: 1px solid var(--line); background: var(--white); padding: 18px 0; }
.trustbar .wrap {
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center;
  font-size: 0.88rem; font-weight: 600; color: var(--muted);
}
.trustbar span::before { content: "✓ "; color: var(--green); }

/* Card grids */
.grid { display: grid; gap: 22px; margin-top: 36px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(10, 37, 64, 0.12);
  border-color: #c5d3df;
}
.section-alt .card { background: var(--white); }
.card h3 { color: var(--navy); }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }
.card .tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-dark); background: #e8f3e8;
  border-radius: 4px; padding: 3px 8px; margin-bottom: 10px;
}

/* Stats band */
.stats { background: var(--navy); color: var(--white); padding: 56px 0; }
.stats .grid { margin-top: 0; }
.stat h3 { font-size: 2.2rem; color: var(--white); margin-bottom: 4px; }
.stat p { color: #b9c9d9; font-size: 0.92rem; margin: 0; }

/* Audience router */
.router .card { border-top: 4px solid var(--green); }
.router .card a.more { font-weight: 700; text-decoration: none; display: inline-block; margin-top: 14px; }

/* Checklist */
ul.checks { list-style: none; padding: 0; margin: 18px 0; }
ul.checks li { padding-left: 30px; position: relative; margin-bottom: 12px; }
ul.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 800;
}

/* Tables */
table.plain { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 0.95rem; }
table.plain th, table.plain td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { background: var(--paper); color: var(--navy); }

/* Pricing */
.price-cards .card.featured { border: 2px solid var(--green); position: relative; }
.price { font-size: 2.4rem; font-weight: 800; color: var(--navy); }
.price small { font-size: 0.95rem; font-weight: 600; color: var(--muted); }

/* FAQ */
details {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 16px 20px; margin-bottom: 12px; background: var(--white);
}
details summary { font-weight: 700; cursor: pointer; color: var(--navy); }
details p { margin: 12px 0 0; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: var(--white); text-align: center; }
.cta-band .lead { color: #c8d6e4; margin: 0 auto; }

/* Footer */
footer.site {
  background: #081c31; color: #a9bcce; padding: 56px 0 32px; font-size: 0.9rem;
}
footer.site a { color: #d5e2ee; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
.footgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footgrid { grid-template-columns: 1fr; } }
.footgrid h4 { color: var(--white); font-size: 0.95rem; margin: 0 0 12px; }
.footgrid ul { list-style: none; margin: 0; padding: 0; }
.footgrid li { margin-bottom: 8px; }
.copyright { border-top: 1px solid #14304d; margin-top: 40px; padding-top: 20px; text-align: center; color: #7e93a7; }

/* Scroll-reveal engine (elements get .reveal from site.js; .no-motion disables) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.no-motion .reveal, .no-motion .hero h1, .no-motion .hero .lead,
.no-motion .hero .status-pill, .no-motion .hero .btn-row { opacity: 1; transform: none; animation: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Buttons: subtle motion */
.btn { transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(46, 139, 46, 0.35); }
