/* ============================================
   WASTEGRAB — Dark Stylesheet (green-only palette)
   Fonts loaded async via <link> in each HTML head (faster first paint).
   ============================================ */

:root {
  /* Colors — dark surfaces, light ink, green-only brand palette */
  --bg-base: #0A0F14;
  --bg-card: #141B23;
  --bg-elevated: #1A252F;
  --border: #232D38;
  --border-strong: #2C3946;
  --text-primary: #F2F4F7;
  --text-secondary: #A8B2BD;
  --text-muted: #5A6573;
  --brand: #2ECC71;
  --brand-dark: #1E8449;
  --brand-light: #6FE3A0;
  --accent: #1E8449;        /* alias → brand-dark so legacy --accent refs stay green */
  --warn: #E1A93A;          /* desaturated amber, used only for genuine warnings */
  --error: #E74C3C;
  --success: #27AE60;

  /* Spacing */
  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Fonts */
  --font-display: 'Anton', sans-serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  /* Better font rendering for crisp text */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }
input, select, textarea { font-family: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Anton is a tightly-spaced display font - it needs more breathing room at smaller sizes */
.display { font-family: var(--font-display); letter-spacing: 0.04em; line-height: 1; }
.display-font, h1, h2 { font-family: var(--font-display); letter-spacing: 0.04em; }

/* Smaller display text gets even more spacing to stay legible */
.logo-text, .step-title, .pricing-tier, .section-label,
.tool-card-header h3, .stat-card-label, .impact-label,
.faq-item .faq-q, .info-label, .promo-text-strong {
  letter-spacing: 0.06em;
}

/* ============================================
   HEADER & NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { display: flex; align-items: center; justify-content: center; }
.logo-text { font-family: var(--font-display); font-size: 24px; line-height: 1; }
.logo-text span { color: var(--brand); }
.logo-sub { font-size: 9px; letter-spacing: 0.3em; color: var(--text-muted); margin-top: 4px; }

.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand); }

.nav-cta {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  background: var(--brand); color: white;
  font-weight: 700; font-size: 14px;
  transition: transform 0.2s;
}
.nav-cta:hover { transform: scale(1.04); color: white; }

.menu-toggle { display: none; background: none; color: var(--text-primary); padding: 8px; }

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-elevated);
    padding: 24px;
    border-bottom: 1px solid var(--border);
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elevated) 35%, var(--bg-base) 100%);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(46, 204, 113, 0.10), transparent 55%),
    radial-gradient(circle at 80% 60%, rgba(46, 204, 113, 0.06), transparent 55%);
  pointer-events: none;
}
.hero > * { position: relative; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--brand-dark);
  font-size: 11px; font-weight: 900;
  letter-spacing: 0.15em; color: white;
  box-shadow: 0 4px 18px rgba(30, 132, 73, 0.25);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: 0.01em;
}
.hero h1 span { color: var(--brand); }

.hero-sub {
  margin-top: 20px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto; margin-right: auto;
}

.trust-row {
  display: flex; justify-content: center; gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-secondary);
}
.trust-row > div { display: flex; align-items: center; gap: 6px; }
.trust-row svg { color: var(--brand); }

/* ============================================
   QUOTE TOOL
   ============================================ */
.quote-tool {
  margin: 40px auto 80px;
  max-width: 1100px;
}

.upload-zone {
  background: var(--bg-card);
  border: 3px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 60px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}
.upload-zone:hover, .upload-zone.drag-active {
  border-color: var(--brand);
  background: rgba(46, 204, 113, 0.04);
  transform: scale(1.005);
}
.upload-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  animation: pulse 2s infinite;
}
.upload-icon svg { stroke: currentColor; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
  50% { box-shadow: 0 0 0 16px rgba(46, 204, 113, 0); }
}
.upload-zone h2 {
  font-family: var(--font-display);
  font-size: 32px;
  margin-top: 20px;
}
.upload-zone p { color: var(--text-secondary); margin-top: 6px; font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  border: 2px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
}
.btn-primary:hover { transform: scale(1.02); color: white; }
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; justify-content: center; padding: 16px; font-size: 15px; }

.hidden { display: none !important; }

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 920px) { .tool-grid { grid-template-columns: 1fr; } }

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tool-card-header {
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.tool-card-header h3 {
  font-family: var(--font-display); font-size: 18px;
  letter-spacing: 0.05em;
}

.photo-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.photo-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-num {
  position: absolute; top: 6px; left: 6px;
  background: rgba(10, 15, 20, 0.85);
  color: white;
  font-size: 10px; font-weight: 900;
  padding: 2px 8px; border-radius: 999px;
}
.photo-remove {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--error);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.photo-remove:hover { transform: scale(1.15); }
.photo-remove svg { color: white; width: 14px; height: 14px; }

.add-photo-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 12px; font-weight: 700;
  border: 1px solid var(--border-strong);
}
.add-photo-btn:hover { border-color: var(--brand); color: var(--brand); }

.tool-actions {
  display: flex; gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--border);
}
.tool-actions .btn { flex: 1; padding: 12px; font-size: 13px; justify-content: center; }
.tool-actions .btn-primary { flex: 2; }

/* Results panel */
.results-empty, .results-loading {
  padding: 60px 24px;
  text-align: center;
  min-height: 300px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-secondary);
}
.results-empty h3 { font-family: var(--font-display); font-size: 20px; color: var(--text-primary); margin-top: 12px; }
.results-empty p { font-size: 14px; margin-top: 4px; }

.loading-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.loading-step svg {
  width: 16px; height: 16px;
  color: var(--brand);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.price-hero {
  position: relative;
  padding: 28px 24px;
  background: linear-gradient(135deg, #0F1A22, #050B10);
}
.price-tag-badge {
  position: absolute; top: 14px; right: 14px;
  display: flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--brand-dark);
  font-size: 9px; font-weight: 900;
  letter-spacing: 0.1em; color: white;
}
.price-label {
  font-size: 11px; letter-spacing: 0.3em;
  font-weight: 700; color: var(--brand);
}
.price-amount {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1;
  margin-top: 4px;
}
.price-amount .sep { color: var(--text-muted); font-size: 0.6em; }
.price-fine { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

.section-label {
  font-size: 11px; letter-spacing: 0.2em;
  font-weight: 700; color: var(--text-muted);
  text-transform: uppercase;
}

.capacity-bar {
  margin: 20px 24px 12px;
}
.capacity-bar-track {
  height: 10px;
  background: var(--bg-elevated);
  border-radius: 999px;
  overflow: hidden;
}
.capacity-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-light), var(--brand-dark));
  border-radius: 999px;
  transition: width 0.5s ease-out;
}
.capacity-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.capacity-tier {
  font-family: var(--font-display); font-size: 16px;
}

.items-section { padding: 12px 24px; }
.items-header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 6px;
  margin-bottom: 10px;
}
.items-list {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.item-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  animation: chipIn 0.25s ease-out;
}
@keyframes chipIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
.item-chip-name { font-weight: 500; }
.item-chip-surcharge {
  background: var(--warn);
  color: white;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}
.item-chip-remove {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-base);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.item-chip-remove:hover { background: var(--error); }
.item-chip-remove svg { width: 12px; height: 12px; color: var(--text-secondary); }
.item-chip-remove:hover svg { color: white; }

/* Add Item with Autofill */
.add-item-wrap {
  position: relative;
  margin-top: 10px;
}
.add-item-input {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 13px;
  padding: 10px 16px;
  transition: border-color 0.2s;
}
.add-item-input:focus { outline: none; border-color: var(--brand); }
.add-item-input::placeholder { color: var(--text-muted); }

.autofill-dropdown {
  position: absolute;
  top: calc(100% + 4px); left: 0; right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  max-height: 280px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.autofill-dropdown.empty { display: none; }
.autofill-item {
  padding: 10px 14px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.autofill-item:last-child { border-bottom: none; }
.autofill-item:hover, .autofill-item.active { background: var(--bg-card); }
.autofill-item-name { font-size: 13px; font-weight: 500; }
.autofill-item-cat { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }
.autofill-item-vol { font-size: 11px; color: var(--brand); font-weight: 700; }
.autofill-empty {
  padding: 14px;
  text-align: center;
  font-size: 12px; color: var(--text-muted);
  font-style: italic;
}

.breakdown {
  margin: 10px 24px;
  padding: 14px;
  background: var(--bg-base);
  border-radius: var(--radius-md);
  font-size: 13px;
}
.breakdown-row {
  display: flex; justify-content: space-between;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.breakdown-row strong { color: var(--text-primary); }
.breakdown-total {
  border-top: 1px solid var(--border-strong);
  padding-top: 8px; margin-top: 8px;
  font-weight: 900;
}
.breakdown-total .total-amt { color: var(--brand); font-size: 16px; }

.warning-box {
  margin: 12px 24px;
  padding: 12px;
  background: rgba(225, 169, 58, 0.10);
  border: 1px solid var(--warn);
  border-radius: var(--radius-md);
  display: flex; gap: 10px;
  font-size: 12px;
  color: #F4D9A1;
}
.warning-box svg { flex-shrink: 0; color: var(--warn); margin-top: 2px; width: 16px; height: 16px; }

.cta-section { padding: 16px 24px 24px; }

.error-box {
  margin: 16px 0;
  padding: 14px;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid var(--error);
  border-radius: var(--radius-md);
  color: var(--error);
  font-size: 14px;
  display: flex; gap: 10px;
}

/* ============================================
   SECTIONS / GENERAL
   ============================================ */
.section { padding: 80px 0; }
.section-sm { padding: 60px 0; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  text-align: center;
  margin-bottom: 16px;
}
.section-title span { color: var(--brand); }
.section-sub {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 16px;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.step-num { font-family: var(--font-display); font-size: 36px; color: var(--brand); }
.step-title { font-family: var(--font-display); font-size: 22px; margin-top: 4px; }
.step-desc { color: var(--text-secondary); font-size: 14px; margin-top: 8px; }

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
}
.pricing-card.featured {
  border-color: var(--brand);
  background: linear-gradient(180deg, var(--bg-card), rgba(46, 204, 113, 0.05));
}
.pricing-card.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: white;
  padding: 4px 12px; border-radius: 999px;
  font-size: 10px; font-weight: 900; letter-spacing: 0.15em;
}
.pricing-tier { font-family: var(--font-display); font-size: 22px; }
.pricing-amount { font-family: var(--font-display); font-size: 40px; color: var(--brand); margin-top: 8px; line-height: 1; }
.pricing-amount-old {
  font-size: 14px; color: var(--text-muted); text-decoration: line-through;
}
.pricing-desc { color: var(--text-secondary); font-size: 13px; margin-top: 8px; min-height: 38px; }

/* Service Cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: rgba(46, 204, 113, 0.1);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.service-card h3 { font-family: var(--font-display); font-size: 22px; }
.service-card p { color: var(--text-secondary); font-size: 14px; margin-top: 6px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  user-select: none;
}
.faq-q-icon { transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-q-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 0 20px;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 20px 20px;
}

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 12px 14px;
  font-size: 14px;
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--brand);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-success, .form-error {
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 16px;
}
.form-success { background: rgba(39, 174, 96, 0.12); border: 1px solid var(--success); color: var(--success); }
.form-error { background: rgba(231, 76, 60, 0.12); border: 1px solid var(--error); color: var(--error); }

/* Booking Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(5, 8, 12, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 540px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  padding: 32px;
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
}
.modal h2 { font-family: var(--font-display); font-size: 28px; margin-bottom: 8px; }
.modal-sub { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; }

/* Footer */
.site-footer {
  background: #050B10;
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4 {
  font-family: var(--font-display); font-size: 14px;
  letter-spacing: 0.2em; color: var(--text-primary);
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--brand); }
.footer-tagline {
  color: var(--text-secondary); font-size: 14px; margin-top: 16px; max-width: 320px;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--text-muted);
}

/* CTA Stripe */
.cta-strip {
  background: linear-gradient(135deg, var(--brand-dark), #0E5E36);
  padding: 48px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 60px 0;
}
.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  color: white;
}
.cta-strip p { color: rgba(255, 255, 255, 0.85); margin: 12px 0 24px; }
.cta-strip .btn { background: white; color: var(--brand-dark); }
.cta-strip .btn:hover { background: rgba(255, 255, 255, 0.95); }

/* Page Hero (smaller hero for sub-pages) */
.page-hero {
  padding: 60px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elevated) 40%, var(--bg-base) 100%);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
}
.page-hero h1 span { color: var(--brand); }
.page-hero p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-top: 12px;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
}

/* Trust badges row */
.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 40px 0;
}
.trust-badge {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-secondary);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.05em;
}
.trust-badge svg { color: var(--brand); }

/* ============================================
   ZIP CODE CHECKER
   ============================================ */
.zip-checker {
  max-width: 480px;
  margin: 24px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: left;
}
.zip-checker-label {
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--text-muted); font-weight: 700;
  text-transform: uppercase; margin-bottom: 8px;
}
.zip-checker-input-wrap {
  display: flex; gap: 8px;
}
.zip-checker-input-wrap input {
  flex: 1;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.zip-checker-input-wrap input:focus { outline: none; border-color: var(--brand); }
.zip-checker-result {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  min-height: 16px;
}
.zip-checker-result.success {
  background: rgba(46,204,113,0.1); color: var(--brand);
  border: 1px solid var(--brand);
}
.zip-checker-result.warning {
  background: rgba(225,169,58,0.10); color: #F4D9A1;
  border: 1px solid var(--warn);
}
.zip-checker-result.error {
  background: rgba(231,76,60,0.1); color: var(--error);
  border: 1px solid var(--error);
}
.zip-checker-result.neutral {
  background: var(--bg-elevated); color: var(--text-secondary);
}

/* ============================================
   DISCOUNT/PROMO BANNER
   ============================================ */
.promo-banner {
  background: linear-gradient(135deg, rgba(46,204,113,0.10), rgba(46,204,113,0.04));
  border: 1px solid rgba(46,204,113,0.25);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.promo-item {
  display: flex; align-items: center; gap: 12px;
}
.promo-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.promo-text-strong {
  font-family: var(--font-display); font-size: 18px;
  color: var(--brand);
  letter-spacing: 0.05em;
}
.promo-text-sub {
  font-size: 11px; color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ============================================
   AVAILABILITY INDICATOR
   ============================================ */
.availability-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(46,204,113,0.1);
  border: 1px solid var(--brand);
  border-radius: 999px;
  font-size: 13px;
  color: var(--brand);
  font-weight: 700;
}
.availability-pill::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: blink 2s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ============================================
   SUSTAINABILITY COUNTER
   ============================================ */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.impact-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.impact-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.impact-number {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--brand);
  line-height: 1;
}
.impact-label {
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--text-muted); font-weight: 700;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ============================================
   DISCOUNT CODE INPUT (in booking modal)
   ============================================ */
.discount-row {
  display: flex; gap: 8px;
  align-items: center;
}
.discount-row input { flex: 1; }
.discount-row button { white-space: nowrap; padding: 10px 14px; font-size: 13px; }
.discount-applied {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(46,204,113,0.1);
  border: 1px solid var(--brand);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--brand);
  display: flex; justify-content: space-between; align-items: center;
}

/* ============================================
   REPEAT CUSTOMER BADGE (admin)
   ============================================ */
.repeat-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(30,132,73,0.10);
  border: 1px solid var(--brand-dark);
  color: var(--brand-dark);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.text-brand { color: var(--brand); }

/* ============================================
   COOKIE / PRIVACY NOTICE BANNER
   ============================================ */
.wg-cookie-banner {
  position: fixed;
  left: 16px; right: 16px;
  bottom: 16px;
  z-index: 95;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 18px;
  background: rgba(20, 27, 35, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 13px; line-height: 1.55;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(.2,.7,.3,1.05), opacity 0.32s;
}
.wg-cookie-banner.wg-cookie-in { transform: translateY(0); opacity: 1; }
.wg-cookie-banner.wg-cookie-out { transform: translateY(120%); opacity: 0; }
.wg-cookie-text { flex: 1; min-width: 240px; }
.wg-cookie-text a { color: var(--brand); text-decoration: underline; }
.wg-cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wg-cookie-btn-primary,
.wg-cookie-btn-secondary {
  font-family: inherit;
  font-size: 12.5px; font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.1s, box-shadow 0.15s, border-color 0.15s, color 0.15s;
}
.wg-cookie-btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(46, 204, 113, 0.30), inset 0 1px 0 rgba(255,255,255,0.18);
}
.wg-cookie-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(46, 204, 113, 0.40); }
.wg-cookie-btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-strong);
}
.wg-cookie-btn-secondary:hover { color: var(--brand); border-color: var(--brand); }

@media (max-width: 880px) {
  .wg-cookie-banner {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 12px); /* clear the mobile CTA bar */
  }
}

/* ============================================
   HERO + EMBEDDED QUOTE TOOL
   ============================================ */
.hero-with-tool { padding: 56px 0 48px; }
@media (max-width: 720px) {
  .hero-with-tool { padding: 36px 0 32px; }
  .hero-with-tool h1 { font-size: clamp(40px, 11vw, 64px); }
}

.hero-availability {
  margin-top: 18px;
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}

.quote-tool-hero {
  margin: 28px auto 0;
  max-width: 1100px;
  text-align: left;
}
.quote-tool-hero .upload-zone {
  padding: 36px 24px;
}
.quote-tool-hero .upload-zone h2 { font-size: 26px; }
@media (max-width: 720px) {
  .quote-tool-hero .upload-zone { padding: 28px 18px; }
  .quote-tool-hero .upload-zone h2 { font-size: 22px; }
  .quote-tool-hero .upload-icon { width: 64px; height: 64px; }
  .quote-tool-hero .upload-icon svg { width: 30px; height: 30px; }
}

/* Compact ZIP checker (when shown below the upload zone) */
.zip-checker-compact {
  margin-top: 20px;
  padding: 10px 14px;
  background: rgba(20, 27, 35, 0.6);
}
.zip-checker-compact .zip-checker-label { margin-bottom: 6px; font-size: 10px; }
.zip-checker-compact .zip-checker-input-wrap input { padding: 8px 12px; font-size: 14px; }

.trust-row { margin-top: 28px; }

/* ============================================
   STICKY MOBILE CTA BAR
   ============================================ */
.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 15, 20, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-strong);
  gap: 8px;
}
.mobile-cta-bar.hidden-by-modal { display: none !important; }
.mobile-cta-bar .btn {
  flex: 1; padding: 12px 8px; font-size: 14px;
  justify-content: center;
  border-radius: 999px;
}
.mobile-cta-bar .btn-call {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  flex: 0.7;
}
.mobile-cta-bar .btn-call:hover { color: var(--brand); }
@media (max-width: 880px) {
  .mobile-cta-bar { display: flex; }
  body.has-mobile-cta { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================
   LOADING STEPS — sequential state machine
   ============================================ */
.loading-step { opacity: 0.35; transition: opacity 0.3s, color 0.2s; }
.loading-step[data-state="active"],
.loading-step[data-state="done"] { opacity: 1; }
.loading-step[data-state="done"] { color: var(--brand); }
.loading-step .step-icon { display: none; }
.loading-step[data-state="pending"] .step-icon-pending { display: block; opacity: 0.5; animation: none; }
.loading-step[data-state="active"]  .step-icon-active  { display: block; animation: spin 1s linear infinite; }
.loading-step[data-state="done"]    .step-icon-done    { display: block; animation: none; }
/* Override the legacy rule that animates every loading-step svg */
.loading-step svg { animation: none; }
.loading-step[data-state="active"] .step-icon-active { animation: spin 1s linear infinite; }

/* ============================================
   ERROR / STATUS CARD (richer than plain text)
   ============================================ */
.error-card {
  margin: 16px 0;
  padding: 16px;
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid var(--error);
  border-radius: var(--radius-md);
  display: flex; gap: 12px; align-items: flex-start;
}
.error-card.is-warning {
  background: rgba(225, 169, 58, 0.10);
  border-color: var(--warn);
}
.error-card.is-info {
  background: rgba(46, 204, 113, 0.08);
  border-color: var(--brand);
}
.error-card-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(231, 76, 60, 0.15);
  color: var(--error);
  display: flex; align-items: center; justify-content: center;
}
.error-card.is-warning .error-card-icon { background: rgba(225, 169, 58, 0.18); color: var(--warn); }
.error-card.is-info    .error-card-icon { background: rgba(46, 204, 113, 0.15); color: var(--brand); }
.error-card-body { flex: 1; min-width: 0; }
.error-card-title {
  font-weight: 700; font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.error-card-msg { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.error-card-actions {
  margin-top: 10px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.error-card-actions .btn { padding: 8px 14px; font-size: 12px; }

/* ============================================
   POLISH PASS — depth, glow, micro-interactions
   ============================================ */

/* --- Hero backdrop: subtle dotted pattern, masked to fade at edges --- */
.hero { isolation: isolate; }
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1.4px);
  background-size: 28px 28px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at center, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 55% at center, #000 30%, transparent 80%);
  z-index: 0;
}

/* h1 span: green-only gradient (light → dark green) */
.hero h1 span,
.page-hero h1 span,
.section-title span {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 45%, var(--brand-dark) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section title gets a soft underline accent under the highlighted span */
.section-title { position: relative; }
.section-title span {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.section-title span::after {
  content: '';
  position: absolute;
  left: 12%; right: 12%; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--brand-dark), transparent);
  border-radius: 2px;
  opacity: 0.6;
}

/* --- Card system: depth + brand-tinted hover glow (dark theme) --- */
.service-card,
.pricing-card,
.step-card,
.impact-card {
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 18px 36px rgba(0,0,0,0.22);
  transition:
    transform 0.28s cubic-bezier(.2,.7,.3,1.1),
    border-color 0.25s,
    box-shadow 0.28s;
}
.service-card:hover,
.pricing-card:hover,
.step-card:hover,
.impact-card:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 1px rgba(46,204,113,0.45),
    0 22px 50px rgba(46,204,113,0.12),
    0 14px 28px rgba(0,0,0,0.45);
}

/* Service icon: gradient bg + scale-on-hover */
.service-icon {
  background: linear-gradient(135deg, rgba(46,204,113,0.18), rgba(46,204,113,0.05));
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1.4), background 0.3s;
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(46,204,113,0.30), rgba(46,204,113,0.10));
  transform: scale(1.06) rotate(-2deg);
}

/* Pricing featured card — stronger presence */
.pricing-card.featured {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 1px var(--brand),
    0 22px 60px rgba(46,204,113,0.22),
    0 14px 28px rgba(0,0,0,0.4);
}
.pricing-card.featured::before {
  box-shadow: 0 6px 18px rgba(46,204,113,0.45);
}
.pricing-amount {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Step / impact numbers — green-only gradient text */
.step-card .step-num,
.impact-number {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand-dark) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Buttons: shine sweep + premium shadow --- */
.btn { position: relative; overflow: hidden; letter-spacing: 0.02em; }
.btn-primary {
  box-shadow:
    0 6px 18px rgba(46,204,113,0.28),
    inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover {
  box-shadow:
    0 10px 26px rgba(46,204,113,0.42),
    inset 0 1px 0 rgba(255,255,255,0.25);
  transform: translateY(-1px) scale(1.02);
}
.btn-primary:active { transform: translateY(0) scale(0.99); }
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%);
  transform: skewX(-18deg);
  transition: left 0.7s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }

.btn-secondary {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.btn-secondary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 1px rgba(46,204,113,0.4);
}

/* nav-cta gets the same shine treatment */
.nav-cta {
  box-shadow: 0 4px 14px rgba(46,204,113,0.25), inset 0 1px 0 rgba(255,255,255,0.18);
}

/* --- CTA strip: pattern overlay + premium shadow --- */
.cta-strip {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(46,204,113,0.20),
    inset 0 1px 0 rgba(255,255,255,0.10);
}
.cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(255,255,255,0.10) 1.5px, transparent 2px),
    radial-gradient(circle at 78% 70%, rgba(255,255,255,0.07) 2px, transparent 2.5px),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 1px, transparent 1.5px);
  background-size: 120px 120px, 90px 90px, 60px 60px;
  pointer-events: none;
}
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip .btn {
  box-shadow: 0 8px 22px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.5);
}
.cta-strip .btn:hover { transform: translateY(-1px) scale(1.03); }

/* --- Form inputs: focus glow ring --- */
.form-input:focus,
.form-textarea:focus,
.form-select:focus,
.add-item-input:focus,
.zip-checker-input-wrap input:focus {
  box-shadow: 0 0 0 3px rgba(46,204,113,0.18);
}

/* --- Trust badges: warm glow under the row --- */
.trust-badges {
  position: relative;
}
.trust-badges::after {
  content: '';
  position: absolute;
  left: 10%; right: 10%; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.4;
}

/* --- Mobile CTA bar: real elevation + button shine --- */
.mobile-cta-bar {
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* --- Header: tighter logo, subtle separation when scrolled --- */
.logo-text { letter-spacing: 0.02em; }
.site-header {
  box-shadow: 0 1px 0 rgba(255,255,255,0.02);
}

/* --- Quote tool result panel: lift the price hero --- */
.price-hero {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.price-amount {
  background: linear-gradient(135deg, #ffffff 0%, var(--brand) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Promo banner: depth instead of flat --- */
.promo-banner {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 18px 36px rgba(0,0,0,0.22);
}
.promo-icon {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

/* --- Anchored scroll offset so the sticky header doesn't hide targets --- */
:target { scroll-margin-top: 80px; }
.upload-zone, .quote-tool { scroll-margin-top: 80px; }

/* --- Tighter mobile rhythm --- */
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .site-footer { padding: 48px 0 24px; margin-top: 48px; }
  .cta-strip { padding: 36px 20px; margin: 40px 0; }
  .trust-badges { gap: 18px; padding: 24px 0; margin: 28px 0; }
}

/* ============================================
   MONEY FLOW (admin Costs tab — Revenue Waterfall + Donut)
   ============================================ */
.mf-card { padding: 18px 22px; }
.mf-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  margin-bottom: 16px;
}
.mf-period-toggle {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.mf-period-toggle button {
  background: none; border: none; padding: 6px 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--text-muted);
  border-radius: 999px; cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.mf-period-toggle button:hover { color: var(--text-primary); }
.mf-period-toggle button.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(46,204,113,0.30);
}

.mf-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 880px) { .mf-grid { grid-template-columns: 1fr; } }

/* Revenue Waterfall — each row is a bar with proportional width.
   Bars animate width on render (transitionend triggers via class swap). */
.mf-waterfall { display: flex; flex-direction: column; gap: 8px; }
.mf-row {
  display: grid;
  grid-template-columns: 36px 130px 1fr 100px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.mf-row .mf-icon { font-size: 16px; text-align: center; }
.mf-row .mf-label {
  color: var(--text-secondary);
  font-size: 12.5px;
}
.mf-row.mf-total .mf-label,
.mf-row.mf-net   .mf-label {
  font-weight: 700; color: var(--text-primary);
  letter-spacing: 0.04em;
}
.mf-row .mf-bar-track {
  position: relative;
  height: 26px;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  overflow: hidden;
}
.mf-row .mf-bar-fill {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 0;
  border-radius: 6px;
  transition: width 0.9s cubic-bezier(.2,.7,.3,1.05);
}
.mf-row.mf-revenue .mf-bar-fill {
  background: linear-gradient(90deg, var(--brand-light), var(--brand));
  box-shadow: 0 0 14px rgba(46,204,113,0.25);
}
.mf-row.mf-cost .mf-bar-fill {
  background: linear-gradient(90deg, rgba(231,76,60,0.55), rgba(231,76,60,0.85));
}
.mf-row.mf-credit .mf-bar-fill {
  background: linear-gradient(90deg, rgba(225,169,58,0.55), rgba(225,169,58,0.85));
}
.mf-row.mf-net .mf-bar-fill {
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  box-shadow: 0 0 18px rgba(46,204,113,0.35);
}
.mf-row.mf-net.mf-loss .mf-bar-fill {
  background: linear-gradient(90deg, rgba(231,76,60,0.85), var(--error));
}
.mf-row .mf-amount {
  font-family: var(--font-display);
  font-size: 16px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
.mf-row.mf-cost .mf-amount   { color: var(--error); }
.mf-row.mf-credit .mf-amount { color: var(--warn); }
.mf-row.mf-net .mf-amount {
  font-size: 22px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mf-row.mf-net.mf-loss .mf-amount {
  background: linear-gradient(135deg, var(--error), #b22315);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mf-row.mf-divider {
  height: 1px; background: var(--border-strong);
  margin: 4px 0; padding: 0; grid-template-columns: 1fr;
}
.mf-row.mf-divider > * { display: none; }

/* Side: donut + legend + comparison */
.mf-side { display: flex; flex-direction: column; gap: 14px; }
.mf-donut-wrap {
  position: relative;
  display: flex; justify-content: center; align-items: center;
}
.mf-donut { width: 160px; height: 160px; }
.mf-donut-segment {
  fill: none;
  stroke-width: 22;
  transform: rotate(-90deg);
  transform-origin: 80px 80px;
  transition: stroke-dasharray 0.9s cubic-bezier(.2,.7,.3,1.05);
}
.mf-donut-bg {
  fill: none; stroke: var(--bg-elevated); stroke-width: 22;
}
.mf-donut-center {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  pointer-events: none;
}
.mf-donut-net {
  font-family: var(--font-display);
  font-size: 22px; line-height: 1;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.mf-donut-margin {
  font-size: 10px; letter-spacing: 0.16em;
  color: var(--text-muted); font-weight: 700;
  text-transform: uppercase; margin-top: 4px;
}

.mf-legend { display: flex; flex-direction: column; gap: 4px; }
.mf-legend-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 8px; align-items: baseline;
  padding: 4px 0;
  font-size: 11.5px;
}
.mf-legend-dot {
  width: 12px; height: 12px; border-radius: 3px;
}
.mf-legend-name { color: var(--text-secondary); }
.mf-legend-val {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.mf-compare {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 11.5px;
}
.mf-compare-row {
  display: flex; justify-content: space-between;
  color: var(--text-secondary);
}
.mf-compare-row strong { font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.mf-compare-row .up { color: var(--brand); }
.mf-compare-row .down { color: var(--error); }
.mf-compare-row .flat { color: var(--text-muted); }
.mf-compare-empty {
  font-size: 11.5px; color: var(--text-muted);
  font-style: italic; text-align: center; padding: 4px 0;
}

/* --- Route map (admin Schedule tab) ---
   Sidebar must sit ABOVE the Leaflet map's own pane stack (Leaflet uses
   z-index up to ~700 for popups; we put the sidebar at 1000 so popups,
   tile bleed, or any other map artifact never paints over it). The map
   itself gets isolation:isolate so its z-index context stays contained. */
.route-grid { position: relative; }
#route-map {
  isolation: isolate;
  position: relative;
  z-index: 0;
  overflow: hidden;
}
#route-sidebar {
  position: relative;
  z-index: 1000;
  background: var(--bg-card);
}
@media (max-width: 880px) {
  .route-grid { grid-template-columns: 1fr !important; }
  #route-map { height: 360px !important; }
  #route-sidebar { max-height: 380px !important; border-left: none !important; border-top: 1px solid var(--border) !important; }
}

/* --- Hero → body soft fade (kills the sharp seam at the hero's bottom) ---
   Approach: feather the hero's own background-gradient layers out at the
   bottom using a CSS mask. No new colored element, no visible "band" —
   the brand glow + dotted backdrop just dissolve naturally into the body.
   Text and the upload zone are unaffected because the mask only applies to
   the ::before / ::after layers (the gradient backdrop), not to the hero
   children. */
.hero::before,
.hero::after {
  -webkit-mask-image: linear-gradient(180deg,
      #000 0%,
      #000 70%,
      rgba(0,0,0,0.55) 88%,
      transparent 100%);
          mask-image: linear-gradient(180deg,
      #000 0%,
      #000 70%,
      rgba(0,0,0,0.55) 88%,
      transparent 100%);
}
/* The hero ::after already had its own elliptical mask for the dotted
   pattern. Re-apply it ALONG WITH the bottom-fade, intersecting them so
   the dots stay focused at the center AND fade out at the bottom edge. */
.hero::after {
  -webkit-mask-image:
    radial-gradient(ellipse 70% 55% at center, #000 30%, transparent 80%),
    linear-gradient(180deg, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    radial-gradient(ellipse 70% 55% at center, #000 30%, transparent 80%),
    linear-gradient(180deg, #000 70%, transparent 100%);
          mask-composite: intersect;
}

/* --- Reduce motion respect --- */
@media (prefers-reduced-motion: reduce) {
  .upload-icon, .availability-pill::before { animation: none; }
  .btn-primary::after { display: none; }
  .service-card, .pricing-card, .step-card, .impact-card,
  .service-card:hover .service-icon { transition: none; transform: none; }
}
