/* Melissa Driving School look, Dec 2026.
   Structure follows the approved Apex Electrics build (flat bands, hairlines,
   one container, 12 px corners, pill buttons, sentence case, no grey words,
   no shadows); colour comes only from the Melissa logo: navy and red.
   Loaded after styles.css on every page, so removing this file and its link
   restores the previous look. */

:root {
  --mx-red: #cc0000;          /* logo truck red: every action; white on it 5.9:1 */
  --mx-red-hover: #a30000;    /* 7.6:1 with white */
  --mx-navy: #063460;         /* logo wordmark navy */
  --mx-ink: #14181f;          /* every word on a light ground */
  --mx-deep: #061a30;         /* dark bands, tinted toward the navy */
  --mx-deeper: #04121f;       /* footer */
  --mx-soft: #f0f3f7;         /* soft band, a step off white toward the navy */
  --mx-line: #dbe1e9;         /* hairline on light */
  --mx-line-dark: rgba(255, 255, 255, 0.16);
  --mx-r: 12px;
  --mx-r-sm: 8px;
  --mx-pad: clamp(48px, 5.6vw, 80px);
  --mx-gutter: 20px;
  --mx-max: 1600px;
  --mx-font: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* retune the old tokens so every older rule falls in line */
  --primary: var(--mx-red);
  --primary-dark: var(--mx-red-hover);
  --secondary: var(--mx-navy);
  --secondary-dark: var(--mx-deep);
  --accent: var(--mx-red);
  --text: var(--mx-ink);
  --text-light: var(--mx-ink);
  --footer-bg: var(--mx-deeper);
  --gray-light: var(--mx-soft);
  --gray-border: var(--mx-line);
  --shadow: none;
  --shadow-hover: none;
  --radius: var(--mx-r-sm);
}

@media (min-width: 768px) { :root { --mx-gutter: 32px; } }
@media (min-width: 1024px) { :root { --mx-gutter: clamp(40px, 6.4vw, 120px); } }

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--mx-font);
  color: var(--mx-ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: #fff;
}
body * { text-transform: none !important; letter-spacing: 0 !important; }
body h1, body h2, body h3, body h4, body h5 {
  font-family: var(--mx-font);
  font-weight: 500;
  color: inherit;
  letter-spacing: -0.02em !important;
}
body h1 { font-size: clamp(40px, 5.2vw, 76px); line-height: 1.04; }
body h2 { font-size: clamp(30px, 3.3vw, 50px); line-height: 1.08; }
body h3 { font-size: 20px; line-height: 1.25; }
body p { color: inherit; }
body :where(*):not(:focus-visible) { box-shadow: none !important; }
body :focus-visible { outline: 3px solid var(--mx-red); outline-offset: 2px; }
img { border-radius: inherit; }

.container {
  width: 100%;
  max-width: calc(var(--mx-max) + 2 * var(--mx-gutter));
  padding-inline: var(--mx-gutter);
  margin-inline: auto;
}

/* small label above a heading: sentence case, 14 px, a road glyph in red */
.eyebrow, .hero-kicker, .mx-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mx-ink);
  background: none;
  padding: 0;
  border: 0;
  margin-bottom: 14px;
}
.eyebrow::before, .hero-kicker::before, .mx-label::before {
  content: "";
  width: 24px;
  height: 8px;
  flex: none;
  display: block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 8'%3E%3Crect x='0' y='1' width='24' height='6' rx='3' fill='%23cc0000'/%3E%3Cpath d='M4 4h4M11 4h4M18 4h3' stroke='%23fff' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hero-kicker-star, .page-hero-rich .hero-kicker::after { display: none !important; }
.page-hero-rich .hero-kicker::before { position: static !important; transform: none !important; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-family: var(--mx-font);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 15px 24px;
  border: 1px solid transparent;
  background-image: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn::before, .btn::after { display: none !important; }
.btn:active { transform: scale(0.97); }
.btn > span[aria-hidden], .btn .mx-arrow { display: inline-block; transition: transform 0.2s ease; }
.btn:hover > span[aria-hidden], .btn:hover .mx-arrow { transform: translateX(4px); }
body .btn-primary, body .btn-hero.btn-primary {
  background-color: var(--mx-red);
  border-color: var(--mx-red);
  color: #fff;
}
body .btn-primary:hover, body .btn-hero.btn-primary:hover {
  background-color: var(--mx-red-hover);
  border-color: var(--mx-red-hover);
  color: #fff;
}
body .btn-outline, body .btn-outline-dark {
  background: transparent;
  color: var(--mx-ink);
  border-color: var(--mx-ink);
}
body .btn-outline:hover, body .btn-outline-dark:hover {
  background: var(--mx-navy);
  border-color: var(--mx-navy);
  color: #fff;
}
.mx-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--mx-ink);
  text-decoration: none;
  padding-bottom: 4px;
  background: linear-gradient(var(--mx-red), var(--mx-red)) left bottom / 100% 2px no-repeat;
  transition: background-size 0.2s ease;
}
.mx-text-link:hover { background-size: 100% 4px; color: var(--mx-ink); }
.mx-text-link .mx-arrow { transition: transform 0.2s ease; }
.mx-text-link:hover .mx-arrow { transform: translateX(4px); }

/* ---------- header ---------- */
.top-bar { display: none !important; }
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff !important;
  border-bottom: 1px solid var(--mx-line);
  backdrop-filter: none;
}
.navbar .container { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo-image { height: 48px; width: auto; }
.nav-links { gap: 28px; align-items: center; }
.nav-links > a, .nav-dd-trigger {
  font-size: 15px;
  font-weight: 500;
  color: var(--mx-ink) !important;
  padding: 6px 0;
}
.nav-links > a:hover, .nav-dd-trigger:hover, .nav-links > a.active { color: var(--mx-red) !important; }
.nav-links a.active::after { display: none !important; }
.nav-links a.btn-nav, .nav-links a.btn-nav:hover { color: #fff !important; padding: 13px 22px; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--mx-ink) !important;
  margin-left: 8px;
  white-space: nowrap;
}
.nav-phone-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--mx-r-sm);
  background: var(--mx-red);
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease;
}
.nav-phone:hover .nav-phone-icon { background: var(--mx-red-hover); }
.nav-dd-menu {
  border-radius: var(--mx-r);
  border: 1px solid var(--mx-line);
  background: #fff;
  padding: 8px;
}
.nav-dd-menu a { border-radius: var(--mx-r-sm); color: var(--mx-ink) !important; font-size: 15px; }
.nav-dd-menu a:hover { background: var(--mx-soft); color: var(--mx-red) !important; }

/* ---------- bands ---------- */
.section { padding-block: var(--mx-pad); background: #fff; }
.section-gray, .section.section-gray { background: var(--mx-soft) !important; }
body .section-title { text-align: left; max-width: 780px; margin: 0 0 40px; }
body .section-title h2 { margin: 0 0 12px; color: var(--mx-ink); }
body .section-title h2::after { display: none !important; }
body .section-title p { font-size: 18px; color: var(--mx-ink); margin: 0; max-width: 680px; }

/* ---------- home hero ---------- */
.mx-hero { background: var(--mx-soft); padding-block: clamp(48px, 6vw, 104px); overflow: hidden; }
.mx-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4.5vw, 80px); align-items: center; }
.mx-hero h1 { margin: 0 0 28px; color: var(--mx-ink); font-size: clamp(40px, 4.6vw, 72px); }
.mx-accent { display: block; color: var(--mx-red); width: fit-content; position: relative; padding-bottom: 14px; }
.mx-road { position: absolute; left: 0; bottom: 0; width: 100%; height: 10px; transform-origin: left center; animation: mx-draw 0.6s ease-out 0.15s both; }
@keyframes mx-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.mx-ticks { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.mx-ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; font-weight: 500; line-height: 1.45; }
.mx-ticks li::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='11' fill='%23063460'/%3E%3Cpath d='M6.5 11.2l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mx-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-bottom: 28px; }
.mx-rating { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--mx-ink); }
.mx-rating strong { font-weight: 600; }
.mx-rating:hover { color: var(--mx-red); }
.mx-hero-media { margin: 0; position: relative; }
.mx-hero-media img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--mx-r); }
.mx-hero-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: #fff;
  border-radius: var(--mx-r);
  padding: 14px 18px;
  display: grid;
  gap: 2px;
}
.mx-hero-badge strong { font-size: 28px; font-weight: 500; line-height: 1; letter-spacing: -0.02em !important; }
.mx-hero-badge span { font-size: 14px; font-weight: 500; }

/* ---------- facts row ---------- */
.stats-bar { background: #fff !important; background-image: none !important; padding-block: 0; border-bottom: 1px solid var(--mx-line); }
.stats-bar::before, .stats-bar::after { display: none !important; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.stat-item { text-align: left; padding: 32px 28px; border-left: 1px solid var(--mx-line); background: none !important; }
.stat-item:first-child { border-left: 0; padding-left: 0; }
.stat-item h3 { font-size: clamp(30px, 3vw, 46px); font-weight: 500; color: var(--mx-ink) !important; margin: 0 0 6px; line-height: 1; }
.stat-item p { font-size: 15px; font-weight: 500; color: var(--mx-ink) !important; margin: 0; }

/* ---------- welcome ---------- */
.welcome-band { background: #fff !important; }
.welcome-inner { text-align: left !important; max-width: 860px; margin: 0; }
.welcome-inner h2 { margin: 0 0 20px; }
.welcome-inner p { font-size: 18px; color: var(--mx-ink) !important; }

/* ---------- course tiles ---------- */
.license-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body .license-card {
  display: flex;
  flex-direction: column;
  background: #fff !important;
  border: 1px solid transparent !important;
  border-radius: var(--mx-r) !important;
  padding: 28px !important;
  text-align: left;
  color: var(--mx-ink);
  transition: border-color 0.2s ease, transform 0.15s ease;
}
body .license-card:hover { border-color: var(--mx-red) !important; transform: none; }
body .license-card:active { transform: scale(0.985); }
.license-card::before, .license-card::after { display: none !important; }
.license-name { order: 1; font-size: 24px !important; font-weight: 500 !important; color: var(--mx-ink) !important; margin: 0 0 4px !important; }
.license-tagline { order: 2; font-size: 15px !important; font-weight: 500; color: var(--mx-ink) !important; margin: 0 0 16px !important; background: none !important; padding: 0 !important; }
.license-photo-wrap { order: 3; background: var(--mx-soft) !important; border-radius: var(--mx-r-sm) !important; margin: 0 0 20px !important; padding: 12px; display: grid; place-items: center; }
.license-photo { width: 100%; height: 190px !important; object-fit: contain; }
body .license-pill-btn {
  order: 4;
  align-self: flex-start;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: linear-gradient(var(--mx-red), var(--mx-red)) left bottom / 100% 2px no-repeat !important;
  color: var(--mx-ink) !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 0 4px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  transition: background-size 0.2s ease;
}
body .license-pill-btn::before { display: none !important; }
body .license-card:hover .license-pill-btn { background-size: 100% 4px !important; }
.license-pill-btn svg { transition: transform 0.2s ease; }
.license-card:hover .license-pill-btn svg { transform: translateX(4px); }
.courses-cta { text-align: left !important; margin-top: 32px; }

/* ---------- why choose: flat columns between hairlines ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--mx-line); }
body .feature-card {
  background: none !important;
  border: 0 !important;
  border-left: 1px solid var(--mx-line) !important;
  border-radius: 0 !important;
  padding: 28px 28px 0 !important;
  text-align: left !important;
}
body .feature-card:first-child { border-left: 0 !important; padding-left: 0 !important; }
.feature-card:hover { transform: none !important; }
.feature-icon { display: none !important; }
.feature-card h3 { margin: 0 0 10px; color: var(--mx-ink); }
.feature-card p { margin: 0; color: var(--mx-ink); }

/* ---------- reviews on the dark band ---------- */
.reviews-section { background: var(--mx-deep) !important; color: #fff; }
.reviews-section .section-title h2, .reviews-section .section-title p { color: #fff !important; }
.reviews-section .gr-summary, .reviews-section .gr-summary-inner { background: transparent !important; color: #fff !important; border: 0 !important; }
.reviews-section .gr-summary * { color: #fff !important; }
.reviews-section .gr-summary-stars { color: #fbbc05 !important; }
.reviews-section .gr-review-btn {
  background: #fff !important;
  color: var(--mx-ink) !important;
  border-radius: 999px !important;
  border: 0 !important;
}
.reviews-section .gr-review-btn * { color: var(--mx-ink) !important; }
.reviews-section .gr-card { background: #fff !important; border-radius: var(--mx-r) !important; border: 0 !important; color: var(--mx-ink) !important; }
.reviews-section .gr-card * { color: var(--mx-ink); }
.reviews-section .gr-stars { color: #fbbc05 !important; }
.reviews-section .gr-nav { background: #fff !important; color: var(--mx-ink) !important; border: 0 !important; border-radius: 999px !important; }

/* ---------- how it works: numbered steps on one line ---------- */
.howto-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 20px; }
body .howto-card {
  position: relative;
  background: none !important;
  border: 0 !important;
  border-top: 2px solid var(--mx-line) !important;
  border-radius: 0 !important;
  padding: 36px 0 0 !important;
  text-align: left !important;
}
body .howto-num {
  position: absolute;
  top: -20px;
  left: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mx-soft) !important;
  border: 2px solid var(--mx-red);
  color: var(--mx-red) !important;
  font-size: 16px;
  font-weight: 600;
  display: grid;
  place-items: center;
  margin: 0 !important;
}
.howto-card h3 { margin: 0 0 10px; }
.howto-card p { margin: 0; color: var(--mx-ink); }

/* ---------- where we train: a plain list between hairlines ---------- */
.suburb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--mx-line); justify-content: stretch; }
body .suburb-chip {
  background: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--mx-line) !important;
  border-radius: 0 !important;
  padding: 16px 0 !important;
  font-size: 17px;
  font-weight: 500;
  color: var(--mx-ink) !important;
  text-align: left;
}

/* ---------- FAQ: hairline accordion ---------- */
.faq-list { max-width: 960px; border-top: 1px solid var(--mx-line); display: block !important; }
body .faq-item {
  background: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--mx-line) !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--mx-ink);
  cursor: pointer;
  background: none !important;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { display: none !important; }
.faq-item summary::after {
  content: "+" !important;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--mx-line);
  display: grid !important;
  place-items: center;
  font-size: 20px;
  font-weight: 400;
  color: var(--mx-ink);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  position: static !important;
  transform: none !important;
}
.faq-item[open] summary::after { content: "\2212" !important; background: var(--mx-red); border-color: var(--mx-red); color: #fff; }
.faq-item summary:hover::after { border-color: var(--mx-red); }
.faq-item p { margin: 0; padding: 0 56px 24px 0; color: var(--mx-ink); font-size: 16px; }

/* ---------- call to action band ---------- */
.cta-section {
  background: var(--mx-deep) !important;
  background-image: none !important;
  color: #fff;
  padding-block: var(--mx-pad) !important;
  text-align: left !important;
}
.cta-section::before, .cta-section::after { display: none !important; }
.cta-section h2 { color: #fff !important; margin: 0 0 12px; max-width: 820px; }
.cta-section p { color: #fff !important; font-size: 18px; max-width: 680px; }
.cta-section .btn { background: #fff !important; color: var(--mx-ink) !important; border-color: #fff !important; }
.cta-section .btn:hover { background: var(--mx-red) !important; border-color: var(--mx-red) !important; color: #fff !important; }
.cta-section .cta-phone, .cta-section .cta-phone a { color: #fff !important; }

/* ---------- inner page heroes ---------- */
body .page-hero, body .page-hero-rich, body .about-hero {
  background: var(--mx-soft) !important;
  background-image: none !important;
  color: var(--mx-ink) !important;
  text-align: left !important;
  padding-block: clamp(48px, 6vw, 96px) !important;
}
body .page-hero::before, body .page-hero::after, body .page-hero-rich::before, body .page-hero-rich::after { display: none !important; }
body .page-hero .container, body .page-hero-rich .container { text-align: left !important; }
body .page-hero h1, body .page-hero-rich h1 { color: var(--mx-ink) !important; margin: 0 0 20px; max-width: 980px; }
body .page-hero .hero-accent, body .page-hero-rich .hero-accent { color: var(--mx-red) !important; background: none !important; -webkit-text-fill-color: currentColor; }
body .page-hero p, body .page-hero-rich p { color: var(--mx-ink) !important; font-size: 18px; max-width: 720px; margin-left: 0 !important; }
body .page-hero .hero-kicker, body .page-hero-rich .hero-kicker { color: var(--mx-ink) !important; justify-content: flex-start; }

/* ---------- footer ---------- */
.footer { background: var(--mx-deeper) !important; background-image: none !important; color: #fff; padding-block: 64px 0; }
.footer h4 { font-size: 15px; font-weight: 600; color: #fff !important; margin: 0 0 16px; }
.footer h4::after { display: none !important; }
.footer a, .footer p, .footer li, .footer span { color: #fff !important; }
.footer a:hover { color: #fff !important; text-decoration: underline; text-decoration-color: var(--mx-red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-contact-item svg { color: #fff; opacity: 1; }
.footer-bottom { border-top: 1px solid var(--mx-line-dark) !important; margin-top: 48px; padding-block: 24px !important; }

/* ---------- floating buttons: flat ---------- */
.call-float, .sms-float { border: 0 !important; }

/* ---------- shared flattening for inner page parts ---------- */
body [class*="card"]:not(.gr-card):not(.license-card):not(.feature-card):not(.howto-card) {
  border-radius: var(--mx-r);
}
body [class*="card"]:hover { transform: none; }
body table { border-collapse: collapse; }
body th, body td { border-color: var(--mx-line) !important; }

/* ---------- widths ---------- */
@media (max-width: 1100px) {
  .nav-links { gap: 20px; }
  .nav-phone-num { display: none; }
}
@media (max-width: 1024px) {
  .license-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .feature-card:nth-child(3) { border-left: 0 !important; padding-left: 0 !important; }
  body .feature-card:nth-child(n + 3) { margin-top: 28px; border-top: 1px solid var(--mx-line) !important; }
  .suburb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .mx-hero-grid { grid-template-columns: 1fr; }
  .mx-hero-media img { aspect-ratio: 4 / 3; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat-item:nth-child(n + 3) { border-top: 1px solid var(--mx-line); }
  .howto-grid { grid-template-columns: 1fr; gap: 48px; }
  .nav-phone { display: none; }
  .navbar .container { min-height: 64px; }
  .nav-logo-image { height: 40px; }
}
@media (max-width: 640px) {
  .license-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  body .feature-card { border-left: 0 !important; padding-left: 0 !important; }
  body .feature-card:nth-child(n + 2) { margin-top: 24px; border-top: 1px solid var(--mx-line) !important; }
  .suburb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-item { padding: 24px 16px; }
  .stat-item:nth-child(odd) { padding-left: 0; }
  .faq-item p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mx-road { animation: none; }
  .btn, .mx-text-link, .license-card { transition: none; }
}

/* ---------- second pass: beat older, more specific rules ---------- */
body * { font-family: var(--mx-font) !important; }
body h1, body h2, body h3, body h4 { color: var(--mx-ink) !important; }
.reviews-section h1, .reviews-section h2, .reviews-section h3:not(.gr-card h3),
.cta-section h1, .cta-section h2, .cta-section h3,
.footer h1, .footer h2, .footer h3, .footer h4 { color: #fff !important; }
.mx-accent, body .page-hero .hero-accent, body .page-hero-rich .hero-accent { color: var(--mx-red) !important; }
body .eyebrow, body .hero-kicker, body .mx-label { color: var(--mx-ink) !important; background: none !important; }
body .eyebrow::after { display: none !important; }
body .eyebrow::before { position: static !important; transform: none !important; opacity: 1 !important; }
.welcome-band::before, .welcome-band::after, .section::before, .section::after { display: none !important; }
.license-tagline { text-align: left !important; }
.license-photo-wrap { background: var(--mx-soft) !important; }
.license-photo { mix-blend-mode: multiply; }

/* ---------- third pass: measured leaks ---------- */
body .btn-primary, body .btn-hero.btn-primary { background-color: var(--mx-red) !important; border-color: var(--mx-red) !important; color: #fff !important; }
body .btn-primary:hover, body .btn-hero.btn-primary:hover { background-color: var(--mx-red-hover) !important; border-color: var(--mx-red-hover) !important; }
body .eyebrow::before, body .hero-kicker::before, body .mx-label::before {
  width: 24px !important;
  height: 8px !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 8'%3E%3Crect x='0' y='1' width='24' height='6' rx='3' fill='%23cc0000'/%3E%3Cpath d='M4 4h4M11 4h4M18 4h3' stroke='%23fff' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
  border: 0 !important;
  margin: 0 !important;
}
.howto-grid, .suburb-grid, .features-grid, .license-grid, .faq-list, .stats-grid { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.howto-card { overflow: visible !important; }
.suburb-grid ~ p, .suburb-grid + * { text-align: left !important; }
.reviews-section .gr-review-btn svg, .reviews-section .gr-review-btn svg * { color: initial; }

/* ---------- fourth pass: out-rank older !important rules ---------- */
/* :is() takes its most specific argument, so these reach (0,3,1) and beat the older (0,1,1) and (0,2,1) rules */
body :is(*, .mx-z.mx-z.mx-z) { text-transform: none !important; letter-spacing: 0 !important; font-family: var(--mx-font) !important; }
body :is(h1, h2, h3, h4, h5, .mx-z.mx-z.mx-z.mx-z) { letter-spacing: -0.02em !important; }
body .footer :is(h4, .mx-z.mx-z.mx-z.mx-z) { font-size: 15px !important; font-weight: 600 !important; letter-spacing: 0 !important; }
body .footer :is(a, p, li, span, .mx-z.mx-z.mx-z) { color: #fff !important; }
body .faq-list .faq-item summary::after { background: transparent !important; color: var(--mx-ink) !important; border: 1px solid var(--mx-line) !important; }
body .faq-list .faq-item[open] summary::after { background: var(--mx-red) !important; border-color: var(--mx-red) !important; color: #fff !important; }
body .cta-section .container { display: block !important; text-align: left !important; }
body .cta-section .container > * { margin-left: 0 !important; margin-right: 0 !important; text-align: left !important; }
body .cta-section .container > p { margin: 0 0 28px !important; }

/* ---------- fifth pass ---------- */
body .license-card { align-items: stretch !important; }
body .license-tagline { text-align: left !important; align-self: stretch; }
body .license-photo-wrap { background: transparent !important; padding: 0 !important; overflow: hidden; border-radius: var(--mx-r-sm) !important; }
body .license-photo { height: 210px !important; width: 100% !important; object-fit: cover !important; mix-blend-mode: normal !important; border-radius: var(--mx-r-sm); display: block; }
body .eyebrow, body .hero-kicker, body .mx-label { display: inline-flex !important; flex-direction: row !important; align-items: center !important; }

/* ---------- sixth pass: hero accents everywhere ---------- */
body :is(.hero-accent, .mx-z.mx-z.mx-z) { color: var(--mx-red) !important; -webkit-text-fill-color: var(--mx-red) !important; background: none !important; text-shadow: none !important; }
body :is(.license-photo-wrap, .mx-z.mx-z.mx-z) { display: block !important; width: 100% !important; }
body :is(.license-photo, .mx-z.mx-z.mx-z) { width: 100% !important; height: 210px !important; object-fit: cover !important; }
body :is(.license-tagline, .mx-z.mx-z.mx-z) { text-align: left !important; }
body :is(.license-tagline, .mx-z.mx-z.mx-z) { display: block !important; justify-content: flex-start !important; }
