/* ==========================================================================
   Zema Digital v2 — Design System
   Niche-focused site for home service contractors (MO / TX)
   ========================================================================== */

:root {
  /* Colors */
  --c-brand: #1E5AA8;
  --c-brand-dark: #154279;
  --c-brand-light: #E6EEF9;
  --c-accent: #FF6B35;
  --c-accent-dark: #E85A22;
  --c-ink: #0E1A2B;
  --c-ink-soft: #334257;
  --c-muted: #6B7A90;
  --c-line: #E2E8F0;
  --c-bg: #FFFFFF;
  --c-bg-soft: #F4F6F9;
  --c-bg-dark: #0E1A2B;
  --c-success: #16a34a;
  --c-warn: #F59E0B;
  --c-danger: #DC2626;

  /* Typography */
  --f-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --f-display: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(14, 26, 43, 0.06);
  --sh-md: 0 4px 14px rgba(14, 26, 43, 0.08);
  --sh-lg: 0 14px 40px rgba(14, 26, 43, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--c-brand);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--c-brand-dark); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--c-ink);
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

p { margin: 0 0 var(--sp-4); }

/* ---------------- Layout ---------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.container-sm { max-width: 820px; }

.section {
  padding: var(--sp-9) 0;
}
.section-sm { padding: var(--sp-7) 0; }
.section-dark {
  background: var(--c-bg-dark);
  color: #E5EEFA;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #FFFFFF; }
.section-soft { background: var(--c-bg-soft); }
.section-brand-soft { background: var(--c-brand-light); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-brand);
  margin-bottom: var(--sp-3);
}
.section-dark .eyebrow { color: #8AB3E8; }

.lead {
  font-size: 1.25rem;
  color: var(--c-ink-soft);
  max-width: 65ch;
}

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.flex { display: flex; gap: var(--sp-4); }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ---------------- Top bar ---------------- */
.topbar {
  background: var(--c-bg-dark);
  color: #C7D5E8;
  font-size: 0.85rem;
  padding: var(--sp-2) 0;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.topbar a { color: #C7D5E8; }
.topbar a:hover { color: #FFFFFF; }
.topbar .phone { font-weight: 600; color: #FFFFFF; }

.loc-switch {
  display: inline-flex;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 3px;
}
.loc-switch button {
  border: 0;
  background: transparent;
  color: #C7D5E8;
  font: inherit;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.loc-switch button.is-active {
  background: var(--c-accent);
  color: #FFFFFF;
}

/* ---------------- Header ---------------- */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--c-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-4);
}
.logo {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--c-ink);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.logo .dot {
  width: 12px; height: 12px; border-radius: 3px;
  background: var(--c-accent);
  display: inline-block;
}
.nav {
  display: flex;
  gap: var(--sp-5);
  align-items: center;
}
.nav a {
  color: var(--c-ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--c-brand); }
.nav .btn { color: #FFFFFF; }

@media (max-width: 820px) {
  .nav { display: none; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 22px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--c-accent);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--c-accent-dark); color: #FFFFFF; }
.btn-secondary {
  background: var(--c-brand);
  color: #FFFFFF;
}
.btn-secondary:hover { background: var(--c-brand-dark); color: #FFFFFF; }
.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn-ghost:hover { border-color: var(--c-brand); color: var(--c-brand); }
.btn-light {
  background: #FFFFFF;
  color: var(--c-brand);
}
.btn-light:hover { background: var(--c-brand-light); color: var(--c-brand-dark); }

/* ---------------- Hero ---------------- */
.hero {
  padding: var(--sp-9) 0 var(--sp-8);
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(30, 90, 168, 0.08), transparent 70%),
    radial-gradient(800px 300px at 95% 10%, rgba(255, 107, 53, 0.08), transparent 70%),
    var(--c-bg);
}
.hero h1 {
  max-width: 15ch;
}
.hero .lead { margin-bottom: var(--sp-6); }
.hero .ctas { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.hero .trust {
  display: flex;
  gap: var(--sp-5);
  flex-wrap: wrap;
  align-items: center;
  color: var(--c-muted);
  font-size: 0.9rem;
}
.hero .trust .bullet::before {
  content: "\2713";
  color: var(--c-success);
  font-weight: 900;
  margin-right: 6px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-xl);
  background:
    linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-dark) 100%);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  color: #FFFFFF;
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.35), transparent 50%);
}
.hero-visual .metric {
  position: relative;
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-visual .metric-label { position: relative; opacity: 0.85; font-size: 0.9rem; }
.hero-visual .mini {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------------- Cards ---------------- */
.card {
  background: #FFFFFF;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: all .18s ease;
}
.card:hover {
  border-color: var(--c-brand);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.card .icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--c-brand-light);
  color: var(--c-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: var(--sp-4);
  font-size: 1.2rem;
}
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--c-ink-soft); margin: 0; }
.card-link {
  display: inline-block;
  margin-top: var(--sp-4);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--c-brand);
}
.card-link::after { content: " \2192"; }

.card-dark {
  background: linear-gradient(160deg, #0E1A2B 0%, #16263F 100%);
  color: #E5EEFA;
  border-color: #243454;
}
.card-dark h3 { color: #FFFFFF; }
.card-dark p { color: #C1CCDD; }
.card-dark .icon { background: rgba(255,255,255,0.08); color: #FFFFFF; }

/* ---------------- Value props row ---------------- */
.value-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 820px) { .value-row { grid-template-columns: 1fr; } }
.value {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.value .big {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--c-brand);
  line-height: 1;
}

/* ---------------- Engine diagram ---------------- */
.engine {
  background: linear-gradient(180deg, #0E1A2B 0%, #152644 100%);
  color: #FFFFFF;
  border-radius: var(--r-xl);
  padding: var(--sp-8);
}
.engine h2 { color: #FFFFFF; }
.engine .steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
@media (max-width: 820px) { .engine .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .engine .steps { grid-template-columns: 1fr; } }
.step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  position: relative;
}
.step-num {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--c-accent);
  color: #FFFFFF;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-bottom: var(--sp-3);
}
.step h4 { color: #FFFFFF; margin-bottom: var(--sp-2); }
.step p { color: #C1CCDD; font-size: 0.92rem; margin: 0; }

/* ---------------- Case strip ---------------- */
.case-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
  background: #FFFFFF;
  border-radius: var(--r-xl);
  padding: var(--sp-7);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-sm);
}
@media (max-width: 820px) { .case-card { grid-template-columns: 1fr; padding: var(--sp-5); } }
.case-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
.case-metric {
  background: var(--c-brand-light);
  border-radius: var(--r-md);
  padding: var(--sp-4);
}
.case-metric .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--c-brand);
  line-height: 1;
  margin-bottom: 4px;
}
.case-metric .label { color: var(--c-ink-soft); font-size: 0.85rem; }

/* ---------------- Testimonials ---------------- */
.quote {
  background: #FFFFFF;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}
.quote blockquote {
  margin: 0 0 var(--sp-4);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--c-ink);
  line-height: 1.5;
}
.quote cite {
  font-style: normal;
  font-weight: 700;
  color: var(--c-ink);
  font-size: 0.95rem;
}
.quote .role {
  color: var(--c-muted);
  font-size: 0.85rem;
}

/* ---------------- Logos row ---------------- */
.logos {
  display: flex;
  gap: var(--sp-6);
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
}
.logo-chip {
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: var(--sp-3) var(--sp-5);
  background: #FFFFFF;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  font-size: 0.9rem;
}

/* ---------------- Industries strip ---------------- */
.industries-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 820px) { .industries-strip { grid-template-columns: repeat(2, 1fr); } }
.industry-tile {
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--c-brand) 0%, var(--c-brand-dark) 100%);
  color: #FFFFFF;
  text-decoration: none;
  transition: transform .18s ease;
  display: block;
}
.industry-tile:hover { transform: translateY(-3px); color: #FFFFFF; }
.industry-tile .trade {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: var(--sp-2);
}
.industry-tile .desc {
  opacity: 0.85;
  font-size: 0.9rem;
  margin-bottom: var(--sp-4);
}
.industry-tile .arrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------------- FAQ ---------------- */
.faq details {
  background: #FFFFFF;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-3);
  transition: border-color .15s ease;
}
.faq details[open] { border-color: var(--c-brand); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 800;
  color: var(--c-brand);
  font-size: 1.4rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { color: var(--c-ink-soft); padding-top: var(--sp-3); }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: linear-gradient(120deg, var(--c-brand) 0%, var(--c-brand-dark) 100%);
  color: #FFFFFF;
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; padding: var(--sp-6); } }
.cta-band h2 { color: #FFFFFF; margin: 0; }
.cta-band p { opacity: 0.9; margin: var(--sp-3) 0 0; max-width: 55ch; }
.cta-band .ctas { display: flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 820px) { .cta-band .ctas { justify-content: flex-start; } }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--c-bg-dark);
  color: #C1CCDD;
  padding: var(--sp-8) 0 var(--sp-5);
  font-size: 0.92rem;
}
.site-footer a { color: #C1CCDD; }
.site-footer a:hover { color: #FFFFFF; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: #FFFFFF;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--sp-2); }
.footer-social {
  display: flex;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
  padding-top: var(--sp-2);
}
.footer-social a {
  color: #8497B0;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.footer-social a:hover {
  color: #ffffff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--sp-4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  color: #8497B0;
  font-size: 0.85rem;
}

/* ---------------- Page hero (non-homepage) ---------------- */
.page-hero {
  background: linear-gradient(180deg, #0E1A2B 0%, #1B304D 100%);
  color: #FFFFFF;
  padding: var(--sp-8) 0 var(--sp-7);
}
.page-hero h1 { color: #FFFFFF; max-width: 22ch; }
.page-hero .lead { color: #C1CCDD; max-width: 60ch; }
.page-hero .eyebrow { color: #8AB3E8; }
.page-hero .crumbs {
  font-size: 0.85rem;
  color: #8AB3E8;
  margin-bottom: var(--sp-4);
}
.page-hero .crumbs a { color: #8AB3E8; }
.page-hero .crumbs a:hover { color: #FFFFFF; }

/* ---------------- Location-switcher driven content ---------------- */
body.loc-mo .only-tx { display: none !important; }
body.loc-tx .only-mo { display: none !important; }

/* ---------------- Forms ---------------- */
.form {
  background: #FFFFFF;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}
.form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--sp-2);
  color: var(--c-ink);
}
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-4);
  background: #FFFFFF;
  transition: border-color .15s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 0;
  border-color: var(--c-brand);
}
.form textarea { min-height: 120px; resize: vertical; }

/* ---------------- Misc ---------------- */
.pill {
  display: inline-block;
  background: var(--c-brand-light);
  color: var(--c-brand);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill-accent {
  background: rgba(255, 107, 53, 0.12);
  color: var(--c-accent-dark);
}
.divider {
  height: 1px;
  background: var(--c-line);
  margin: var(--sp-6) 0;
  border: 0;
}
ul.check { list-style: none; padding: 0; margin: 0 0 var(--sp-4); }
ul.check li {
  padding-left: 28px;
  position: relative;
  margin-bottom: var(--sp-2);
  color: var(--c-ink-soft);
}
ul.check li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--c-success);
  font-weight: 900;
}

.kbd { font-family: ui-monospace, 'SF Mono', Menlo, monospace; background: var(--c-bg-soft); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

/* ==========================================================================
   v2.1 additions — pricing tables, numbered steps, tier cards, scan-tool
   ========================================================================== */

/* Pricing table */
table.pricing-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.pricing-table thead th {
  background: var(--c-bg-soft);
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  font-weight: 700;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}
table.pricing-table tbody td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink-soft);
}
table.pricing-table tbody tr:last-child td { border-bottom: 0; }
table.pricing-table tbody tr:hover { background: var(--c-bg-soft); }

/* Numbered ordered-list steps */
ol.steps {
  list-style: none;
  counter-reset: step;
  padding-left: 0;
  margin-top: var(--sp-4);
}
ol.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
  margin-bottom: var(--sp-4);
  color: var(--c-ink-soft);
  line-height: 1.55;
}
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--c-brand);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* Tier cards (package page) */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); margin-top: var(--sp-5); }
@media (max-width: 960px) { .tier-grid { grid-template-columns: 1fr; } }
.tier-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  position: relative;
}
.tier-card.featured {
  border-color: var(--c-brand);
  border-width: 2px;
  box-shadow: 0 8px 24px rgba(30, 90, 168, 0.12);
}
.tier-card .tier-name { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-muted); font-weight: 700; }
.tier-card .tier-title { font-size: 1.5rem; font-weight: 800; margin-top: var(--sp-2); color: var(--c-ink); }
.tier-card .tier-price { font-size: 2rem; font-weight: 800; color: var(--c-brand); margin-top: var(--sp-3); }
.tier-card .tier-price small { font-size: 0.95rem; font-weight: 500; color: var(--c-muted); }
.tier-card .tier-best-for { color: var(--c-ink-soft); margin-top: var(--sp-3); font-style: italic; }
.tier-card ul.check { margin-top: var(--sp-4); }
.tier-card .tier-cta { margin-top: auto; padding-top: var(--sp-5); }
.tier-card .pill-featured {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-brand);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Scan-tool hook (contact page + homepage) */
.scan-hook {
  background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-dark) 100%);
  color: #fff;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  margin: var(--sp-5) 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-6);
  align-items: start;
}
@media (max-width: 900px) { .scan-hook { grid-template-columns: 1fr; } }
.scan-hook h2, .scan-hook h3 { color: #fff; margin-top: 0; }
.scan-hook p { color: rgba(255,255,255,0.9); }
.scan-hook .scan-field {
  display: flex; gap: var(--sp-2); margin-top: var(--sp-4);
  flex-wrap: wrap;
}
.scan-hook .scan-field input[type="text"] {
  flex: 1 1 240px;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  border: 0;
  font-size: 1rem;
}

.scan-form {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  padding: var(--sp-5);
  border-radius: var(--r-md);
}
.scan-form label {
  display: block;
  color: #E6EEF9;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-2);
}
.scan-form label:first-of-type { margin-top: 0; }
.scan-form input {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.2);
  background: #fff;
  color: var(--c-ink);
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}
.scan-form input:focus {
  outline: 2px solid var(--c-accent);
  outline-offset: 1px;
}

/* Checklist on dark background */
.check-light { list-style: none; padding: 0; margin: 0; }
.check-light li {
  position: relative; padding-left: 1.7rem; margin-bottom: var(--sp-2);
  color: #E6EEF9;
}
.check-light li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--c-accent);
  font-weight: 700;
}

/* Accent button variant (orange, for CTA contrast against blue) */
.btn-accent {
  background: var(--c-accent);
  color: #fff;
  border: 0;
}
.btn-accent:hover { background: var(--c-accent-dark); color: #fff; }

/* Engineer's Code grid (About page) */
.code-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-5);
}
@media (max-width: 900px) { .code-grid { grid-template-columns: 1fr; } }
.code-item {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  position: relative;
}
.code-item .code-num {
  display: inline-block;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: var(--c-brand);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--c-brand);
}
.code-item h3 { margin: 0 0 var(--sp-2); color: var(--c-ink); }
.code-item p { color: var(--c-ink-soft); margin: 0; }

/* Risk-reversal badge (used on homepage) */
.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-accent-dark) 100%);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: var(--sp-3);
  box-shadow: 0 4px 12px rgba(255,107,53,0.25);
}
.risk-badge::before {
  content: "⚡";
  font-size: 1rem;
}

/* Included / Not-Included two-column block */
.incl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  margin-top: var(--sp-4);
}
@media (max-width: 900px) { .incl-grid { grid-template-columns: 1fr; } }
.incl-col {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
}
.incl-col.incl-yes { border-left: 4px solid var(--c-brand); }
.incl-col.incl-no  { border-left: 4px solid #B4BECE; background: #F7F9FB; }
.incl-col h3 { margin-top: 0; }
.incl-col ul { list-style: none; padding: 0; margin: 0; }
.incl-col li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: var(--sp-2);
  color: var(--c-ink-soft);
}
.incl-col.incl-yes li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--c-brand);
  font-weight: 700;
}
.incl-col.incl-no li::before {
  content: "✕";
  position: absolute; left: 0; top: 0;
  color: #B4BECE;
  font-weight: 700;
}

/* Fee breakdown table (for paid-ads clarity) */
.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-4) 0;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.fee-table th, .fee-table td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--c-line);
}
.fee-table th {
  background: var(--c-bg-soft);
  font-weight: 700;
  color: var(--c-ink);
}
.fee-table tr:last-child td { border-bottom: 0; }
.fee-table td.label { color: var(--c-ink-soft); }
.fee-table td.value { font-weight: 700; text-align: right; color: var(--c-brand); white-space: nowrap; }
.fee-table td.paid-to { color: var(--c-muted); font-size: 0.85rem; font-style: italic; }

/* Setup-fee "why" line (reusable) */
.fee-why {
  display: block;
  font-size: 0.85rem;
  color: var(--c-muted);
  font-style: italic;
  margin-top: var(--sp-2);
  padding-left: var(--sp-3);
  border-left: 2px solid var(--c-line);
}

/* Category band (services hub) */
.category-band {
  background: var(--c-bg-soft);
  border-left: 4px solid var(--c-brand);
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-4);
}
.category-band .eyebrow { color: var(--c-brand); }
.category-band h3 { margin: var(--sp-2) 0 var(--sp-3); }

/* Product mini-card row */
.product-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-top: var(--sp-3); }
@media (max-width: 900px) { .product-row { grid-template-columns: 1fr; } }
.product-row .card h4 { margin: 0 0 var(--sp-2); }
.product-row .card .price { font-weight: 700; color: var(--c-brand); }

/* ============================================================
   Brand logo (image) + Umbrella Local "powered by" credit badge
   ============================================================ */
.logo-img {
  display: block;
  height: 38px;
  width: auto;
  max-width: 100%;
}
.site-header .logo-img { height: 40px; }
.site-footer .logo-img { height: 34px; }

/* Legacy .dot is kept for any stray references but hidden when an image is present */
.logo:has(.logo-img) .dot { display: none; }

/* Umbrella Local "powered by" footer credit */
.umbrella-credit {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  margin-top: var(--sp-4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--r-md);
  color: #C1CCDD;
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: max-content;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.umbrella-credit:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  border-left-color: var(--c-accent);
}
.umbrella-credit .umb-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}
.umbrella-credit .umb-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.umbrella-credit .umb-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8497B0;
  font-weight: 600;
}
.umbrella-credit .umb-brand {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}
