/* ==========================================================================
   VoteAmerica+ — Stylesheet
   Elevated, understated-patriotic, B2B.
   Deep federal navy · warm ivory · restrained muted crimson · editorial serif.
   ========================================================================== */

:root {
  --navy:        #11203A;   /* primary ink / deep federal blue */
  --navy-700:    #1B3157;
  --navy-500:    #33507F;
  --slate:       #51607A;   /* muted body text */
  --slate-soft:  #6B7790;
  --ivory:       #FBFAF6;   /* warm parchment background */
  --ivory-deep:  #F3F0E8;   /* alt section background */
  --paper:       #FFFFFF;
  --crimson:     #9E2B36;   /* understated muted red — used sparingly */
  --crimson-700: #842028;
  --blue:        #2B4B7E;   /* secondary federal blue for links */
  --line:        #E4E0D6;   /* hairline */
  --line-strong: #D6D1C4;
  --gold:        #9A7B4F;   /* faint brass, used very sparingly */

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1180px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(17,32,58,0.06), 0 1px 3px rgba(17,32,58,0.05);
  --shadow-md: 0 8px 30px rgba(17,32,58,0.08);
  --shadow-lg: 0 30px 60px -20px rgba(17,32,58,0.22);
  --transition: 200ms ease;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--navy);
  background: var(--ivory);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto;
  padding: 10px 16px; background: var(--navy); color: var(--ivory);
  clip: auto; z-index: 1000; border-radius: 8px;
}

/* ---------- shared type ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 16px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--slate);
  padding: 7px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  margin-bottom: 26px;
}
.eyebrow-star { color: var(--crimson); font-size: 12px; }
.eyebrow-light { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); color: rgba(255,255,255,0.85); }
.eyebrow-light .eyebrow-star { color: #E7B8B0; }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--navy);
}
.section-sub {
  margin-top: 18px;
  font-size: 18px;
  color: var(--slate);
  max-width: 640px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans);
  font-weight: 600; font-size: 15px;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-solid { background: var(--navy); color: var(--ivory); }
.btn-solid:hover { background: var(--navy-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-line { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--navy); background: var(--paper); }
.btn-ghost { background: transparent; color: var(--navy); padding: 10px 14px; }
.btn-ghost:hover { color: var(--crimson); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,246,0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--navy); color: var(--ivory);
}
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--navy); }
.brand-plus { color: var(--crimson); }

.nav { display: flex; gap: 30px; }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--slate);
  position: relative; padding: 4px 0; transition: color var(--transition);
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--crimson); transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 8px; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer; }
.menu-toggle span { width: 18px; height: 1.5px; background: var(--navy); transition: var(--transition); }

.mobile-nav {
  position: fixed; top: 72px; left: 0; right: 0; z-index: 99;
  background: var(--ivory); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 12px 28px 24px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
}
.mobile-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav a { padding: 14px 0; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line); color: var(--navy); }
.mobile-nav .mobile-cta { margin-top: 16px; border: none; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 0; overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 24px;
}
.hero-title em { color: var(--crimson); font-style: italic; }
.hero-lede { font-size: 19px; color: var(--slate); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-fineprint { font-size: 14px; color: var(--slate-soft); letter-spacing: 0.01em; }

.hero-media { position: relative; }
.hero-media::before {
  /* soft engraved halo behind the product shot */
  content: ''; position: absolute; inset: -8% -4% -12% -4%;
  background: radial-gradient(60% 60% at 60% 40%, rgba(43,75,126,0.10), transparent 70%);
  z-index: 0;
}
.hero-media img {
  position: relative; z-index: 1; width: 100%;
  filter: drop-shadow(0 30px 50px rgba(17,32,58,0.18));
}

/* ---------- hero stats band ---------- */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: 56px; padding-top: 40px; padding-bottom: 4px;
  border-top: 1px solid var(--line);
}
.stat { text-align: left; }
.stat-num {
  display: block;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 4vw, 46px); line-height: 1; color: var(--navy);
  letter-spacing: -0.01em;
}
.stat-label { display: block; margin-top: 8px; font-size: 14px; color: var(--slate); }

/* ---------- trust bar ---------- */
.trustbar { padding: 44px 0; border-top: 1px solid var(--line); margin-top: 56px; }
.trustbar-label { text-align: center; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-soft); margin-bottom: 26px; }
.logos {
  list-style: none;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  max-width: 920px; margin: 0 auto;
}
.logos li {
  display: grid; place-items: center;
  height: 82px; padding: 20px 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.logos li:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.logo-img {
  /* fit-in-box: cap both dimensions so mixed aspect ratios read as one set */
  max-height: 38px; max-width: 128px; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1); opacity: 0.72;
  transition: filter var(--transition), opacity var(--transition);
}
.logos li:hover .logo-img { filter: grayscale(0); opacity: 1; }

/* ---------- value props ---------- */
.props { padding: 18px 0 76px; }
.props-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.prop { padding-top: 22px; border-top: 2px solid var(--navy); }
.prop h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.prop p { font-size: 15px; color: var(--slate); }

/* ---------- generic section ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--ivory-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .kicker { color: var(--crimson); }
.section-head-left { margin: 0 0 0; text-align: left; }

/* ---------- steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.step { background: var(--paper); padding: 40px 34px; position: relative; }
.step-num { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--crimson); letter-spacing: 0.1em; }
.step h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 18px 0 12px; letter-spacing: -0.01em; }
.step p { font-size: 16px; color: var(--slate); }

/* ---------- tools grid ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tool {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.tool:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.tool h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.tool h3::before { content: '★'; color: var(--crimson); font-size: 11px; vertical-align: middle; margin-right: 8px; opacity: 0.8; }
.tool p { font-size: 14.5px; color: var(--slate); }

/* ---------- trust / security ---------- */
.trust-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.trust-list { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.trust-list li { font-size: 16px; color: var(--slate); padding-left: 26px; position: relative; }
.trust-list li::before { content: '★'; position: absolute; left: 0; top: 1px; color: var(--crimson); font-size: 12px; }
.trust-list strong { color: var(--navy); font-weight: 600; }
.trust-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.badge {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px; box-shadow: var(--shadow-sm);
}
.badge-mark { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--navy); color: var(--ivory); font-size: 16px; }
.badge-text { display: flex; flex-direction: column; line-height: 1.25; font-size: 13px; color: var(--slate); }
.badge-text strong { font-family: var(--serif); font-size: 19px; color: var(--navy); font-weight: 600; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 880px; margin: 0 auto; }
.plan {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 38px 34px; display: flex; flex-direction: column;
}
.plan-featured { border-color: var(--navy); box-shadow: var(--shadow-lg); position: relative; }
.plan-head { padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.plan-flag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--crimson); margin-bottom: 12px; }
.plan-name { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.plan-price { margin: 12px 0 10px; display: flex; align-items: baseline; gap: 8px; }
.plan-price .amount { font-family: var(--serif); font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.plan-price .per { font-size: 15px; color: var(--slate-soft); }
.plan-tagline { font-size: 15px; color: var(--slate); }
.plan-features { list-style: none; display: grid; gap: 13px; margin-bottom: 30px; flex: 1; }
.plan-features li { font-size: 15.5px; color: var(--navy-700); padding-left: 28px; position: relative; }
.plan-features li::before { content: '✓'; position: absolute; left: 0; color: var(--crimson); font-weight: 700; }
.plan-features .incl { color: var(--slate); font-weight: 600; }
.plan-features .incl::before { content: ''; }

/* ---------- faq ---------- */
.faq-wrap { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 56px; align-items: start; }
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--crimson); font-family: var(--sans); transition: transform var(--transition);
}
.faq-item[open] summary::after { content: '–'; }
.faq-body { padding: 0 40px 24px 0; }
.faq-body p { font-size: 16px; color: var(--slate); }

/* ---------- CTA ---------- */
.cta { background: var(--navy); color: var(--ivory); padding: 96px 0; position: relative; overflow: hidden; }
.cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(50% 80% at 85% 0%, rgba(158,43,54,0.22), transparent 60%),
    radial-gradient(40% 70% at 8% 100%, rgba(43,75,126,0.5), transparent 60%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; text-align: center; }
.cta-title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -0.015em; }
.cta-sub { margin: 18px auto 32px; font-size: 18px; color: rgba(251,250,246,0.78); max-width: 540px; }
.cta-form { display: flex; gap: 12px; max-width: 520px; margin: 0 auto; }
.cta-form input {
  flex: 1; padding: 15px 18px; font-family: var(--sans); font-size: 16px;
  border: 1px solid rgba(251,250,246,0.25); border-radius: 8px;
  background: rgba(255,255,255,0.06); color: var(--ivory);
}
.cta-form input::placeholder { color: rgba(251,250,246,0.5); }
.cta-form input:focus { outline: none; border-color: var(--ivory); background: rgba(255,255,255,0.1); }
.cta-form .btn-solid { background: var(--crimson); }
.cta-form .btn-solid:hover { background: var(--crimson-700); }
.cta-note { margin-top: 18px; font-size: 14px; color: rgba(251,250,246,0.62); }
.cta-note.ok { color: #BFE3C4; }

/* ---------- footer ---------- */
.site-footer { background: var(--ivory-deep); border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.brand-footer .brand-name { font-size: 21px; }
.footer-mission { margin-top: 16px; font-size: 14px; color: var(--slate); max-width: 320px; }
.footer-col h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-soft); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { font-size: 15px; color: var(--navy-700); transition: color var(--transition); }
.footer-col a:hover { color: var(--crimson); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; color: var(--slate-soft); flex-wrap: wrap; gap: 10px; }
.footer-flag { letter-spacing: 0.4em; color: var(--crimson); opacity: 0.7; }

/* ---------- ways to deploy ---------- */
.ways-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.way {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.way:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.way-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.way-num { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--slate-soft); letter-spacing: 0.1em; }
.way-time {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--crimson); background: rgba(158,43,54,0.08);
  padding: 5px 12px; border-radius: 999px;
}
.way h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.01em; }
.way > p { font-size: 15.5px; color: var(--slate); flex: 1; }
.way .mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; color: var(--navy); background: var(--ivory-deep); padding: 1px 6px; border-radius: 4px; }
.way-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.way-meta li {
  font-size: 12.5px; font-weight: 500; color: var(--slate);
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px;
}
.ways-foot { text-align: center; margin-top: 34px; font-size: 16px; color: var(--slate); }
.ways-foot a { color: var(--crimson); font-weight: 600; }
.ways-foot a:hover { color: var(--crimson-700); }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 30px; display: flex; flex-direction: column;
}
.quote blockquote {
  font-family: var(--serif); font-size: 19px; line-height: 1.45; font-weight: 400;
  color: var(--navy); letter-spacing: -0.005em; flex: 1; margin-bottom: 26px;
}
.quote blockquote::before { content: '★'; display: block; color: var(--crimson); font-size: 14px; margin-bottom: 16px; letter-spacing: 0.3em; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.q-avatar {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--ivory);
  font-family: var(--serif); font-size: 16px; font-weight: 600;
}
.q-who { display: flex; flex-direction: column; line-height: 1.3; }
.q-who strong { font-weight: 600; color: var(--navy); font-size: 15.5px; }
.q-who span { font-size: 13px; color: var(--slate); }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; max-width: 560px; margin: 0 auto; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .logos { grid-template-columns: repeat(3, 1fr); max-width: 560px; }
  .props-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .steps { grid-template-columns: 1fr; }
  .ways-grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-inner { grid-template-columns: 1fr; gap: 36px; }
  .plans { grid-template-columns: 1fr; max-width: 480px; }
  .faq-wrap { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 0; }
  .hero-actions .btn { flex: 1; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: 1fr; }
  .trust-badges { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
