/* ==========================================================================
   Virtual Guardians v2 — design tokens & global styles
   Source of truth: Aria-Home-Page-Spec.md GLOBAL STYLE TOKENS
   ========================================================================== */

:root {
  --indigo: #2E3192;      /* Brand Primary */
  --blue: #0071BC;        /* Brand Secondary */
  --teal: #00A99D;        /* Brand Accent — CTAs only */
  --teal-dark: #00958A;   /* hover: teal darkened ~10% */
  --dark: #1A1A1A;        /* Neutral Dark */
  --light: #F5F7FB;       /* Neutral Light bg */
  --border: #E5E7EB;      /* card borders */
  --muted: #6B7280;       /* muted text */
  --white: #FFFFFF;
  --success: #2E8B57;
  --error: #C2362A;
  --max-w: 1280px;
  --pad-x: 40px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); }

/* ------------------------------------------------------------------ layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.container--narrow { max-width: 800px; }
.container--mid { max-width: 1080px; }

.section { padding: 80px 0; }
.section--tall { padding: 96px 0; }
.section--light { background: var(--light); }
.section--indigo { background: var(--indigo); color: var(--white); }
.section--dark { background: var(--dark); color: var(--white); }

/* --------------------------------------------------------------- typography */
h1, h2, h3, h4 { color: var(--indigo); line-height: 1.15; font-weight: 700; }
.section--indigo h1, .section--indigo h2, .section--indigo h3,
.section--dark h2, .section--dark h3 { color: var(--white); }

h1 { font-size: 56px; line-height: 1.1; letter-spacing: -1px; }
h2 { font-size: 40px; line-height: 1.2; }
h3 { font-size: 28px; }

.eyebrow {
  display: block;
  font-size: 14px; font-weight: 600; color: var(--teal);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.lead { font-size: 20px; color: var(--dark); line-height: 1.5; }
.section--indigo .lead { color: var(--white); opacity: .9; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-weight: 600; font-size: 16px; border-radius: 6px;
  padding: 14px 28px; border: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn--primary { background: var(--teal); color: var(--white) !important; }
.btn--primary:hover { background: var(--teal-dark); }
.btn--secondary {
  background: transparent; color: var(--indigo) !important;
  border: 2px solid var(--indigo); padding: 12px 26px;
}
.btn--secondary:hover { background: var(--indigo); color: var(--white) !important; }
.btn--teal-outline {
  background: transparent; color: var(--teal) !important;
  border: 2px solid var(--teal); padding: 12px 26px;
}
.btn--teal-outline:hover { background: var(--teal); color: var(--white) !important; }
.btn--lg { font-size: 20px; font-weight: 700; padding: 20px 48px; border-radius: 6px; }
.btn--xl { font-size: 22px; font-weight: 600; padding: 24px 56px; border-radius: 4px; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ------------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(46, 49, 146, .08);
}
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  height: 96px; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x);
}
.site-header__logo img { height: 72px; width: auto; }
.site-header__badge img { height: 72px; width: auto; }
.site-nav { display: flex; gap: 32px; margin-left: auto; align-items: center; }
.site-nav a { font-weight: 500; font-size: 16px; color: var(--indigo); text-decoration: none; }
.site-nav a:hover { color: var(--blue); }
.nav-item { position: relative; }
.nav-drop {
  display: none; position: absolute; top: 100%; left: -16px;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(46, 49, 146, .12);
  min-width: 240px; padding: 8px 0; z-index: 101;
}
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop { display: block; }
.nav-drop a { display: block; padding: 10px 20px; font-size: 15px; }
.nav-drop a:hover { background: var(--light); }
.site-header__phone {
  font-weight: 700; font-size: 22px; color: var(--indigo);
  text-decoration: none; white-space: nowrap; margin-left: 16px;
}
.site-header__cta { white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; background: none; border: none; font-size: 30px; color: var(--indigo); cursor: pointer; }

/* ------------------------------------------------------------------- footer */
.site-footer { background: var(--dark); color: var(--white); padding: 80px 0 32px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x);
}
.site-footer__logo img { height: 80px; width: auto; }
.site-footer__social { display: flex; gap: 12px; margin: 20px 0; }
.site-footer__social a { display: inline-flex; }
.site-footer__social svg { width: 32px; height: 32px; fill: var(--white); }
.site-footer__tagline { font-size: 16px; }
.site-footer h4 { color: var(--white); font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.site-footer__links { list-style: none; }
.site-footer__links li { margin-bottom: 10px; font-size: 16px; }
.site-footer__bottom {
  max-width: var(--max-w); margin: 48px auto 0; padding: 24px var(--pad-x) 0;
  border-top: 1px solid rgba(255, 255, 255, .2);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 14px;
}

/* -------------------------------------------------------------------- hero */
.hero { padding: 96px 0; }
.hero__grid {
  display: grid; grid-template-columns: 55fr 45fr; gap: 48px; align-items: center;
}
.hero__grid--even { grid-template-columns: 1fr 1fr; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 32px; }
.hero__img img { border-radius: 16px; width: 100%; object-fit: cover; }

/* -------------------------------------------------------------------- cards */
.grid { display: grid; gap: 32px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); gap: 24px; }

.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
}
.card h3 { font-size: 24px; margin-bottom: 12px; }
.card p { font-size: 16px; line-height: 1.6; }
.card__icon { width: 56px; height: 56px; margin-bottom: 24px; }
.card__icon svg { width: 100%; height: 100%; stroke: var(--indigo); }
.card a.learn-more {
  display: inline-block; margin-top: 24px;
  font-weight: 500; font-size: 16px; text-decoration: underline;
}

/* ------------------------------------------------------------------- pills */
.trust-bar { padding: 48px 0; background: var(--light); }
.trust-bar__row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.trust-bar__row img { height: 110px; width: auto; }
.pill {
  background: var(--indigo); color: var(--white);
  font-weight: 500; font-size: 16px;
  padding: 14px 28px; border-radius: 999px; white-space: nowrap;
}

/* -------------------------------------------------------------- testimonial */
.testimonial { background: var(--dark); color: var(--white); padding: 120px 0; }
.testimonial__quote {
  max-width: 720px; margin: 0 auto;
  font-style: italic; font-size: 28px; line-height: 1.5;
}
.testimonial__attr {
  max-width: 720px; margin: 32px auto 0; text-align: right;
  color: var(--teal); font-weight: 500; font-size: 18px; font-style: normal;
}

/* --------------------------------------------------------------- accordions */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 24px 40px 24px 0;
  font-weight: 600; font-size: 18px; color: var(--dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 22px;
  color: var(--indigo); font-size: 24px; font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 24px; font-size: 16px; line-height: 1.7; }

/* ------------------------------------------------------------------- forms */
.form-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 32px; box-shadow: 0 8px 24px rgba(46, 49, 146, .10);
}
.form-card h3 { font-size: 28px; margin-bottom: 8px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; height: 48px; border: 1px solid #D1D5DB; border-radius: 8px;
  padding: 0 12px; font-family: inherit; font-size: 16px; color: var(--dark);
  background: var(--white);
}
.form-field textarea { height: auto; padding: 12px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--indigo);
}
.form-row { display: flex; gap: 12px; }
.form-row .form-field { flex: 1; }
.form-submit {
  width: 100%; height: 56px; font-size: 18px; font-weight: 700;
  background: var(--teal); color: var(--white); border: none; border-radius: 8px;
  cursor: pointer;
}
.form-submit:hover { background: var(--teal-dark); }
.fine-print { font-size: 13px; color: var(--muted); text-align: center; margin-top: 16px; }

/* ------------------------------------------------------------- check bullets */
.check-list { list-style: none; }
.check-list li {
  position: relative; padding-left: 30px; margin-bottom: 16px;
  font-weight: 500; font-size: 16px;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  font-size: 12px; line-height: 18px; text-align: center; font-weight: 700;
}

/* -------------------------------------------------------------- steps/stats */
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--indigo); color: var(--white);
  font-weight: 700; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.stat__value { font-weight: 700; font-size: 56px; color: var(--indigo); }
.stat__label { font-weight: 500; font-size: 16px; max-width: 220px; margin: 12px auto 0; }

/* ----------------------------------------------------------- feature rows */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  margin-bottom: 64px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row img { border-radius: 12px; }
.feature-row h3 { margin-bottom: 16px; }
.feature-row p { font-size: 18px; line-height: 1.6; }

/* -------------------------------------------------------------- blog cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .15s, transform .15s;
  text-decoration: none;
}
.post-card:hover { box-shadow: 0 8px 24px rgba(46, 49, 146, .08); transform: translateY(-2px); }
.post-card__img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__cat {
  align-self: flex-start;
  font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--white); background: var(--indigo);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.post-card__cat--vgom { background: var(--teal); }
.post-card__cat--howto { background: var(--blue); }
.post-card__title { font-weight: 700; font-size: 20px; color: var(--indigo); line-height: 1.3; margin-bottom: 12px; }
.post-card__excerpt { font-size: 14px; color: var(--dark); line-height: 1.5; margin-bottom: 16px; flex: 1; }
.post-card__meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

.filter-chips { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.chip {
  font-weight: 500; font-size: 14px; padding: 8px 16px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--border); color: var(--dark);
  cursor: pointer; text-decoration: none;
}
.chip--active { background: var(--indigo); color: var(--white); border-color: var(--indigo); }

/* --------------------------------------------------------------- blog post */
.post-body { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 1.7; }
.post-body h2, .post-body h3 { margin: 40px 0 16px; }
.post-body p, .post-body ul, .post-body ol { margin-bottom: 20px; }
.post-body ul, .post-body ol { padding-left: 28px; }
.post-body img { border-radius: 12px; margin: 32px auto; }
.post-body blockquote {
  border-left: 4px solid var(--teal); padding-left: 20px; margin: 24px 0;
  color: var(--muted); font-style: italic;
}
.post-hero { text-align: center; max-width: 860px; margin: 0 auto; }
.post-hero h1 { font-size: 44px; }
.post-hero .post-meta { color: var(--muted); font-size: 15px; margin-top: 16px; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .grid--4, .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .site-header__phone { font-size: 18px; }
  h1 { font-size: 44px; }
}

@media (max-width: 860px) {
  :root { --pad-x: 20px; }
  h1 { font-size: 36px; }
  h2 { font-size: 30px; }
  .section, .section--tall, .hero { padding: 48px 0; }
  .hero__grid, .hero__grid--even, .feature-row { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .testimonial__quote { font-size: 22px; }

  /* mobile nav */
  .site-nav {
    display: none; position: absolute; top: 96px; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: flex-start;
    padding: 20px var(--pad-x); gap: 16px; border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
  }
  .site-nav.open { display: flex; }
  .nav-drop { display: block; position: static; border: none; box-shadow: none; padding: 4px 0 0 16px; min-width: 0; }
  .nav-toggle { display: block; }
  .site-header__badge { display: none; }
  .site-header__phone { margin-left: 0; }
}

@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-header__cta { display: none; }
}

/* ------------------------------------------------------------------ Herald */
.announce-bar {
  display: flex; align-items: center; justify-content: center;
  background: var(--indigo); color: var(--white); min-height: 44px;
  padding: 8px 44px 8px 16px; position: relative; text-align: center;
  font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
}
.announce-bar:hover { color: var(--white); }
.announce-bar .announce-bar__link { color: var(--teal); font-weight: 600; }
.announce-bar:hover .announce-bar__link { text-decoration: underline; }
.announce-bar__close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; font-size: 16px; line-height: 1;
  color: rgba(255, 255, 255, .6); cursor: pointer; padding: 6px;
}
.announce-bar__close:hover { color: var(--white); }

.nav-badge {
  display: inline-block; vertical-align: super; font-size: 10px; font-weight: 600;
  color: var(--white); background: var(--teal); border-radius: 999px;
  padding: 2px 6px; margin-left: 4px; letter-spacing: .5px;
}

.herald-section__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.herald-section__img img { width: 100%; border-radius: 12px; box-shadow: 0 8px 24px rgba(46, 49, 146, .12); }
.herald-section__cta-row { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.herald-section__price { font-weight: 600; font-size: 16px; color: var(--indigo); }

.herald-blog-cta {
  background: var(--indigo); border-radius: 12px; padding: 32px;
  color: var(--white); margin: 48px auto 0; max-width: 860px;
}
.herald-blog-cta h2 { color: var(--white); font-size: 24px; margin: 0 0 12px; }
.herald-blog-cta p { color: var(--white); font-size: 16px; line-height: 1.5; margin: 0 0 20px; }

@media (max-width: 900px) {
  .herald-section__grid { grid-template-columns: 1fr; gap: 24px; }
  .herald-section__img { order: -1; }
  .announce-bar { font-size: 14px; padding-top: 12px; padding-bottom: 12px; }
  .herald-blog-cta { padding: 24px; }
}
