/* ==========================================================================
   MGFK Detailing — Design System
   Palette: charcoal / navy / slate / fog / white + a single restrained
   deep-blue accent. Kept deliberately quiet — sleek and professional first,
   with the "kid-owned" personality coming through in copy and shape, not
   in loud color.
   Type: Manrope (display) + Inter (body)
   ========================================================================== */

:root {
  --navy-900: #0c1728;
  --navy-800: #142a47;
  --navy-700: #1c3a60;
  --navy-600: #2c4a7c;
  --charcoal: #1c2024;
  --slate-700: #434c58;
  --slate-500: #67717e;
  --slate-400: #8a94a1;
  --slate-300: #a4adb8;
  --slate-100: #e8ecf0;
  --page-bg: #f6f7f9;
  --fog-100: #e9edf1;
  --fog-200: #dde3e9;
  --grey-900: #1d2024;
  --grey-800: #292d33;
  --grey-700: #3c414a;
  --white: #ffffff;
  --accent: #2f4e9e;
  --accent-dark: #223c7d;
  --accent-light: #4f70cc;
  --accent-soft: #eaeef8;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(15, 28, 48, 0.08);
  --shadow-md: 0 12px 32px rgba(15, 28, 48, 0.14);
  --shadow-lg: 0 24px 60px rgba(15, 28, 48, 0.22);

  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--charcoal);
  background: var(--page-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--slate-700); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

img, svg { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.bg-fog { background: var(--grey-900); color: var(--white); }
.bg-fog p { color: var(--slate-300); }
.bg-fog h1, .bg-fog h2, .bg-fog h3, .bg-fog h4 { color: var(--white); }
.bg-fog .step { border-top-color: rgba(255, 255, 255, 0.1); }
.bg-fog .step-num { background: var(--accent); }
/* white .card surfaces still float on top of a dark section — keep their
   own text dark instead of inheriting the section's light-on-dark colors */
.bg-fog .card { color: var(--charcoal); }
.bg-fog .card h1, .bg-fog .card h2, .bg-fog .card h3, .bg-fog .card h4 { color: var(--charcoal); }
.bg-fog .card p { color: var(--slate-700); }
.bg-navy { background: linear-gradient(155deg, var(--navy-900) 0%, var(--navy-800) 35%, var(--navy-600) 68%, var(--accent) 88%, var(--accent-light) 100%); color: var(--white); }
.bg-navy p { color: var(--slate-300); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(47, 78, 158, 0.14);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.bg-navy .eyebrow {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.text-center { text-align: center; }
.max-w { max-width: 680px; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn-primary { background: var(--accent); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); box-shadow: var(--shadow-md); }
.btn-lime { background: var(--white); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn-lime:hover { background: var(--fog-200); color: var(--navy-900); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-outline-dark { background: transparent; border-color: var(--navy-800); color: var(--navy-900); }
.btn-outline-dark:hover { background: var(--navy-900); color: var(--white); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fog-200);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: "Manrope", sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--navy-900); }
.brand img, .brand svg { width: 38px; height: 38px; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--charcoal); }
.nav-links a.active, .nav-links a:hover { color: var(--accent); }
.nav-links .btn { padding: 10px 22px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  transition: 0.2s;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px 24px 24px;
    border-bottom: 1px solid var(--fog-200);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 10px 0; width: 100%; }
  .nav-links .btn { margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-stat strong { display: block; font-family: "Manrope", sans-serif; font-size: 1.6rem; color: var(--white); }
.hero-stat span { font-size: 0.85rem; color: var(--slate-300); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.hero-art {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.price-card {
  background: var(--white);
  color: var(--charcoal);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.price-card .tag { display: inline-block; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.price-card .amount { font-family: "Manrope", sans-serif; font-size: 2.6rem; font-weight: 700; color: var(--navy-900); }
.price-card .amount sup { font-size: 1rem; top: -1.2em; }
.price-card .amount small { font-size: 1rem; color: var(--slate-500); font-weight: 500; }
.price-card ul { list-style: none; margin: 16px 0 0; padding: 0; }
.price-card li { padding: 6px 0; font-size: 0.94rem; display: flex; gap: 8px; align-items: flex-start; }
.price-card li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--fog-200);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--grey-900);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--white);
}

/* ---------- Pricing table ---------- */
.tier-card {
  background: var(--white);
  border: 2px solid var(--fog-200);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.tier-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}
.tier-card.featured::before {
  content: "Most Popular — Best Value";
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.tier-card h3 { margin-bottom: 4px; }
.tier-price { font-family: "Manrope", sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--navy-900); margin: 10px 0; }
.tier-price span { font-size: 1rem; color: var(--slate-500); font-weight: 500; }
.tier-card ul { list-style: none; margin: 16px 0 24px; padding: 0; flex: 1; }
.tier-card li { padding: 7px 0; font-size: 0.93rem; display: flex; gap: 8px; border-top: 1px solid var(--fog-200); }
.tier-card li:first-child { border-top: none; }
.tier-card li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; }

.addon-strip {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-600));
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.addon-strip p { color: var(--slate-300); margin: 4px 0 0; }
.addon-strip .amt { font-family: "Manrope", sans-serif; font-size: 1.8rem; color: var(--white); font-weight: 700; }

.discount-banner {
  background: var(--fog-100);
  border: 1.5px solid var(--accent);
  color: var(--navy-900);
  border-radius: var(--radius-md);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.discount-banner strong { font-family: "Manrope", sans-serif; font-size: 1.2rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--fog-200);
}
.step:first-child { border-top: none; }
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

/* ---------- Founders ---------- */
.founder-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--fog-200);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.founder-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--navy-600), var(--navy-900));
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
}
.founder-card h3 { margin-bottom: 2px; }
.founder-role { color: var(--accent); font-weight: 600; font-size: 0.88rem; margin-bottom: 10px; display: block; }

.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 860px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } }
.impact-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--fog-200);
  border-radius: var(--radius-md);
  padding: 24px 16px;
}
.impact-card strong { display: block; font-family: "Manrope", sans-serif; font-size: 1.9rem; color: var(--accent); }
.impact-card span { font-size: 0.85rem; color: var(--slate-500); }

/* ---------- Vote page ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1080px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .logo-grid { grid-template-columns: 1fr; } }
.logo-vote-card {
  background: var(--white);
  border: 2px solid var(--fog-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.logo-vote-card.voted-for { border-color: var(--accent); }
.logo-vote-card .logo-frame {
  background: var(--fog-100);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.logo-vote-card .logo-frame img { width: 100%; height: 100%; object-fit: cover; }
.logo-vote-card .logo-frame svg { width: 130px; height: 130px; }
.vote-bar-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--fog-200);
  overflow: hidden;
  margin: 14px 0 8px;
}
.vote-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy-700), var(--accent));
  width: 0%;
  transition: width 0.6s cubic-bezier(.4,0,.2,1);
}
.vote-count { font-family: "Manrope", sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--navy-900); }
.vote-pct { color: var(--slate-500); font-size: 0.85rem; }
.vote-status-note { font-size: 0.85rem; color: var(--slate-500); margin-top: 24px; text-align: center; }
.badge-leader {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---------- Contact / Forms ---------- */
.form-grid { display: grid; gap: 16px; }
label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--navy-900); }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--fog-200);
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--white);
  color: var(--charcoal);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--fog-200); }
.info-row:first-child { border-top: none; }
.info-row .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--grey-900); color: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.map-frame { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--fog-200); box-shadow: var(--shadow-sm); }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); color: var(--slate-300); padding: 56px 0 28px; }
.site-footer h4 { color: var(--white); font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--slate-300); }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

/* ---------- Utility ---------- */
.tag-pill {
  display: inline-block;
  background: var(--grey-900);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.divider { height: 1px; background: var(--fog-200); margin: 48px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.note-card {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--navy-900);
}

/* ---------- Interaction ---------- */
.site-header { transition: box-shadow 0.2s ease, background 0.2s ease; }
.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(12, 23, 40, 0.1);
  background: rgba(255, 255, 255, 0.97);
}

.founder-card a, .card a { transition: transform 0.15s ease; }
.founder-card a:hover, .card a:hover { transform: translateX(3px); display: inline-block; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(.2,.7,.3,1), transform 0.55s cubic-bezier(.2,.7,.3,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible { transition-delay: var(--reveal-delay, 0s); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .tier-card:hover { transform: none; }
}

/* ---------- Vote loading state ---------- */
.is-loading .vote-count, .is-loading .vote-pct { position: relative; color: transparent !important; }
.is-loading .vote-count::before, .is-loading .vote-pct::before {
  content: "";
  position: absolute;
  inset: 2px 10% ;
  border-radius: 999px;
  background: var(--fog-200);
  animation: pulse 1.1s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.vote-count, .vote-pct { transition: color 0.2s ease; }
