/* ==========================================================================
   Particle 64 / Amplify shared stylesheet
   Base tokens and components match the Amplify app (amplifyvote.com):
   navy #193155 primary, red #ad1d2e warn, gold #e0b274 accent, Roboto.
   ========================================================================== */

:root {
  --navy: #193155;
  --navy-dark: #132542;
  --navy-deep: #0d1a2f;
  --red: #ad1d2e;
  --red-dark: #9a0000;
  --gold: #e0b274;
  --green: #3db15a;
  --p64-orange: #c9481c;

  --bg: #fafafa;
  --surface: #ffffff;
  --surface-alt: #eeeeee;
  --border: #e0e0e0;
  --text: #1f2937;
  --text-muted: #5b6575;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #c5cede;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow-1: 0 2px 1px -1px rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 1px 3px 0 rgba(0,0,0,.12);
  --shadow-2: 0 3px 3px -2px rgba(0,0,0,.2), 0 3px 4px 0 rgba(0,0,0,.14), 0 1px 8px 0 rgba(0,0,0,.12);
  --shadow-4: 0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12);

  --max: 1120px;
  --gutter: 16px;
  --header-h: 64px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--red); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); font-weight: 500; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.material-icons { vertical-align: middle; line-height: 1; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--surface); color: var(--navy); padding: 8px 16px; border-radius: var(--radius);
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--navy); color: var(--text-on-dark); }
.section-dark h2, .section-dark h3 { color: var(--text-on-dark); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; }
.section-dark .section-head p { color: var(--text-on-dark-muted); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}
.section-dark .eyebrow, .hero .eyebrow { color: var(--gold); }

/* ---------- Header (mirrors the app's navy mat-toolbar) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: var(--text-on-dark);
  box-shadow: var(--shadow-2);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-on-dark); text-decoration: none; font-size: 1.25rem; font-weight: 500; }
.brand:hover { color: var(--text-on-dark); }
.brand { flex: none; }
/* flex: none + aspect-ratio stop iOS Safari from squeezing logos inside flex rows */
.brand img { flex: none; width: 36px; height: 36px; object-fit: contain; }
.brand img.brand-logo-wide { width: auto; height: 30px; aspect-ratio: 600 / 113; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--text-on-dark); text-decoration: none; padding: 8px 12px; border-radius: var(--radius);
  font-size: .95rem; font-weight: 500;
}
.site-nav a:hover { background: rgba(255,255,255,.1); color: var(--text-on-dark); }
.site-nav .btn { margin-left: 8px; }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--text-on-dark); cursor: pointer;
  padding: 8px; border-radius: var(--radius);
}
.nav-toggle .material-icons { font-size: 28px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: var(--navy-dark);
    padding: 8px var(--gutter) 16px; box-shadow: var(--shadow-2);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .site-nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons (mat-raised-button look) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 500; font-size: .95rem; letter-spacing: .02em;
  padding: 10px 22px; min-height: 44px; border-radius: var(--radius); border: 0;
  text-decoration: none; cursor: pointer; box-shadow: var(--shadow-1);
  transition: box-shadow .2s, background-color .2s, transform .1s;
}
.btn:hover { box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(224,178,116,.18), transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 60%, var(--navy-deep) 100%);
  color: var(--text-on-dark);
  padding: 96px 0 104px;
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-on-dark-muted); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.card {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-1);
  padding: 28px; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-4); transform: translateY(-2px); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--text-muted); }
.icon-badge {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(25,49,85,.08); color: var(--navy); margin-bottom: 16px;
}
.icon-badge .material-icons { font-size: 28px; }
.icon-badge.red { background: rgba(173,29,46,.1); color: var(--red); }
.icon-badge.gold { background: rgba(224,178,116,.25); color: #8a5a17; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.check-list li::before {
  content: 'check_circle'; font-family: 'Material Icons'; position: absolute; left: 0; top: 1px;
  color: var(--green); font-size: 22px; line-height: 1;
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 24px; text-align: center; }
.stat-num { font-size: 2.4rem; font-weight: 700; color: var(--gold); line-height: 1.1; }
.stat-label { color: var(--text-on-dark-muted); font-size: .95rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 16px;
  background: var(--surface-alt); color: var(--navy); font-size: .9rem; font-weight: 500;
}
.section-dark .chip { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Contact form (mat-form-field outline look) ---------- */
.contact-wrap { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.contact-info .contact-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.contact-info .contact-line .material-icons { color: var(--gold); }
.form-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); padding: 28px; color: var(--text); }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
.field label .req { color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  border: 1px solid #b9b9b9; border-radius: var(--radius); padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--text); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.field.invalid input, .field.invalid textarea { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.field-error { color: var(--red); font-size: .8rem; margin-top: 4px; min-height: 1em; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 4px 0 18px; min-height: 65px; }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius); display: none; }
.form-status.show { display: block; }
.form-status.success { background: #e6f4ea; color: #1e5c2e; border-left: 4px solid var(--green); }
.form-status.error { background: #fdecee; color: #7d1420; border-left: 4px solid var(--red); }
.form-note { font-size: .8rem; color: var(--text-muted); margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--text-on-dark-muted); padding: 40px 0; font-size: .9rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--text-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer img { flex: none; object-fit: contain; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* ==========================================================================
   amplify.p64.io specific
   ========================================================================== */
.brand img.brand-logo-wide { width: 149px; height: 28px; }

.amp-hero-grid { display: grid; gap: 56px; grid-template-columns: 1.15fr 1fr; align-items: center; }
.amp-hero-grid > * { min-width: 0; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; color: var(--text-on-dark-muted); font-size: .9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .material-icons { font-size: 18px; color: var(--gold); }

/* Product illustration: map + phone */
.mock { position: relative; height: 460px; }
.mock-map {
  position: absolute; inset: 0 60px 40px 0; border-radius: 12px; overflow: hidden;
  background: #e8eef3; box-shadow: 0 24px 60px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.15);
}
.mock-map svg { width: 100%; height: 100%; display: block; }
.mock-map-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 40px; background: var(--navy); color: #fff;
  display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: .85rem; font-weight: 500;
}
.mock-map-bar .material-icons { font-size: 18px; }
.mock-map-legend {
  position: absolute; left: 12px; bottom: 12px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-1); padding: 8px 10px; font-size: .72rem; color: var(--text);
}
.mock-map-legend div { display: flex; align-items: center; gap: 6px; }
.mock-map-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.mock-phone {
  position: absolute; right: 0; bottom: 0; width: 210px; border-radius: 30px;
  background: #0b1424; padding: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
.mock-screen { border-radius: 22px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; font-size: .72rem; color: var(--text); }
.mock-screen-bar { background: var(--navy); color: #fff; padding: 12px 12px 10px; font-weight: 500; font-size: .78rem; display: flex; align-items: center; gap: 6px; }
.mock-screen-bar .material-icons { font-size: 16px; }
.mock-screen-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.mock-card { background: #fff; border-radius: 6px; box-shadow: var(--shadow-1); padding: 10px; }
.mock-card strong { display: block; font-size: .8rem; color: var(--navy); }
.mock-card small { color: var(--text-muted); }
.mock-q { font-weight: 500; margin-bottom: 6px; }
.mock-opt { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.mock-opt i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #9aa3b2; display: inline-block; }
.mock-opt.on i { border-color: var(--navy); background: radial-gradient(circle, var(--navy) 40%, transparent 45%); }
.mock-btns { display: flex; gap: 6px; }
.mock-btns span { flex: 1; text-align: center; padding: 7px 0; border-radius: 4px; color: #fff; font-weight: 500; }
.mock-call { background: var(--green); }
.mock-skip { background: var(--red); }
.mock-progress { font-size: .68rem; color: var(--text-muted); }
.mock-progress div { height: 5px; border-radius: 3px; background: var(--border); margin-top: 4px; overflow: hidden; }
.mock-progress div i { display: block; height: 100%; width: 38%; background: var(--navy); }

@media (max-width: 900px) {
  .amp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .mock { height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 480px) {
  .mock { height: 360px; }
  .mock-map { inset: 0 40px 70px 0; }
  .mock-phone { width: 180px; }
}

/* Audience tabs */
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.tab {
  font: inherit; font-weight: 500; padding: 10px 20px; border-radius: 24px; cursor: pointer;
  background: var(--surface-alt); color: var(--navy); border: 0; display: inline-flex; align-items: center; gap: 8px;
}
.tab[aria-selected="true"] { background: var(--navy); color: #fff; box-shadow: var(--shadow-2); }
.tab-panel { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: 1.6rem; }
.tab-panel .lead-sm { color: var(--text-muted); font-size: 1.05rem; }
.tab-art {
  border-radius: var(--radius-lg); padding: 32px; color: #fff; min-height: 280px;
  background: linear-gradient(150deg, var(--navy), var(--navy-deep)); box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.tab-art .quote { font-size: 1.25rem; line-height: 1.5; }
.tab-art .quote-by { color: var(--gold); font-weight: 500; font-size: .95rem; }
.tab-art .material-icons { font-size: 40px; color: var(--gold); }
@media (max-width: 760px) { .tab-panel { grid-template-columns: 1fr; } }

/* Feature cards */
.feature h3 { display: flex; align-items: center; gap: 8px; }
.feature .tag { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); background: rgba(173,29,46,.08); padding: 2px 8px; border-radius: 10px; }

/* Steps */
.steps { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: step; }
.step { text-align: center; padding: 8px 16px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 1.5rem; font-weight: 700; box-shadow: var(--shadow-2);
}
.step p { color: var(--text-muted); }

/* Plans */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; border-top: 4px solid var(--border); }
.plan h3 { margin-bottom: 4px; }
.plan .plan-sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 16px; }
.plan .check-list { flex: 1; margin-bottom: 20px; font-size: .95rem; }
.plan.featured { border-top-color: var(--red); box-shadow: var(--shadow-4); position: relative; }
.plan.featured::after {
  content: 'Most popular'; position: absolute; top: -14px; right: 16px; background: var(--red); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 12px;
}
.plan .btn { width: 100%; }
.usage-note { text-align: center; color: var(--text-muted); margin-top: 28px; font-size: .95rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); margin-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 20px; font-weight: 500; color: var(--navy); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: 'expand_more'; font-family: 'Material Icons'; position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%); font-size: 24px; transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--text-muted); }

/* CTA band */
.cta-band { background: var(--red); color: #fff; padding: 56px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 1.1rem; }
.cta-band .btn-light { background: #fff; color: var(--red); }
.cta-band .btn-light:hover { background: #f3f3f3; color: var(--red-dark); }
