/* =============================================================================
   CurbWaste ROI Calculator — visual system
   Tokens aligned with the CurbWaste field-guide design language
   (navy ground, brand blue, electric yellow accent).
   ========================================================================== */

:root {
  /* Brand */
  --c-brand:       #1d91c0;
  --c-brand-deep:  #225ea8;
  --c-teal:        #41b6c4;
  --c-accent:      #FFCB43;
  --c-navy:        #14284a;
  --c-navy-deep:   #0d1c33;

  /* Semantic */
  --c-good:        #059669;
  --c-good-tint:   rgba(5, 150, 105, .10);
  --c-bad:         #dc2626;
  --c-bad-tint:    rgba(220, 38, 38, .08);

  /* Surfaces */
  --c-bg:          #f7f9fc;
  --c-surface:     #ffffff;
  --c-surface-alt: #f1f5f9;
  --c-border:      #e2e8f0;
  --c-hairline:    rgba(15, 23, 42, .08);

  /* Ink */
  --c-ink:         #0f172a;
  --c-ink-soft:    #334155;
  --c-muted:       #64748b;
  --c-faint:       #94a3b8;

  /* Tints */
  --c-brand-tint:  rgba(29, 145, 192, .07);
  --c-brand-tint2: rgba(29, 145, 192, .14);
  --c-brand-ring:  rgba(29, 145, 192, .40);
  --c-accent-tint: rgba(255, 203, 67, .18);
  --c-accent-bd:   rgba(255, 203, 67, .55);

  /* Shape */
  --r-sm:   .6rem;
  --r:      1rem;
  --r-lg:   1.4rem;
  --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --sh:    0 4px 14px rgba(15, 23, 42, .07);
  --sh-md: 0 10px 30px rgba(15, 23, 42, .10);

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tracking-eyebrow: .15em;

  /* Layout */
  --maxw: 940px;
}

/* Light-only by design.
   The calculator is embedded in an iframe on curbwaste.com, which is a light
   page. Following the viewer's OS dark preference made the embed render dark
   inside a light article — so the palette above is the only palette. Depth and
   contrast come from the navy focal panels (hero, SAFER band, multiplier,
   next-steps), not from a second theme.

   `color-scheme: light` also stops browsers auto-inverting form controls. */
:root { color-scheme: light; }

/* -------------------------------------------------------------------------- */
/* Base                                                                       */
/* -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 700;
  color: var(--c-ink);
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-brand); }

.main { padding: 2rem 1rem 4rem; }

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

.hidden { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: .75rem 1.25rem;
  background: var(--c-navy);
  color: #fff;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* -------------------------------------------------------------------------- */
/* Card                                                                       */
/* -------------------------------------------------------------------------- */

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: 2.5rem;
  overflow: hidden;
}

@media (max-width: 640px) {
  .card { padding: 1.5rem; border-radius: var(--r); }
  .main { padding: 1rem .75rem 2.5rem; }
}

/* -------------------------------------------------------------------------- */
/* Wizard hero                                                                */
/* -------------------------------------------------------------------------- */

#calculator-wizard { padding: 0; }

.calculator-hero {
  background: linear-gradient(135deg, var(--c-navy-deep) 0%, var(--c-navy) 55%, #1b3a63 100%);
  padding: 2.75rem 2.5rem 2.25rem;
  position: relative;
  overflow: hidden;
}

.calculator-hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -80px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(65, 182, 196, .22) 0%, transparent 68%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: .9rem;
}

.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--c-accent);
  border-radius: 2px;
}

.calculator-title {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  color: #fff;
  margin-bottom: .6rem;
  position: relative;
}

.calculator-description {
  color: rgba(255, 255, 255, .78);
  font-size: 1rem;
  max-width: 46ch;
  margin: 0;
  position: relative;
}

@media (max-width: 640px) {
  .calculator-hero { padding: 2rem 1.5rem 1.75rem; }
}

/* -------------------------------------------------------------------------- */
/* Step indicator                                                             */
/* -------------------------------------------------------------------------- */

.step-indicator {
  padding: 1.75rem 2.5rem 0;
  background: var(--c-surface);
}

.step-dots {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: .85rem;
}

.step-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
  background: var(--c-surface-alt);
  color: var(--c-muted);
  border: 2px solid var(--c-border);
  cursor: default;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  z-index: 1;
}

/* Accent, not navy: the active dot has to read against a dark surface too,
   and it ties to the yellow progress bar. */
.step-dot.active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-navy);
  transform: scale(1.06);
}

.step-dot.completed {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: #fff;
}

.step-dot:focus-visible {
  outline: 3px solid var(--c-brand-ring);
  outline-offset: 2px;
}

.progress-container {
  height: 5px;
  background: var(--c-surface-alt);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--c-accent) 0%, #FFD873 100%);
  border-radius: var(--r-pill);
  transition: width .45s cubic-bezier(.4, 0, .2, 1);
}

.step-labels {
  display: flex;
  justify-content: space-between;
  margin-top: .6rem;
}

.step-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-faint);
  flex: 1;
  text-align: center;
}
.step-label:first-child { text-align: left; }
.step-label:last-child { text-align: right; }

@media (max-width: 640px) {
  .step-indicator { padding: 1.25rem 1.5rem 0; }
  .step-label { font-size: .58rem; letter-spacing: .03em; }
}

/* -------------------------------------------------------------------------- */
/* Form                                                                       */
/* -------------------------------------------------------------------------- */

.form-steps-container { padding: 2rem 2.5rem 2.5rem; }

@media (max-width: 640px) {
  .form-steps-container { padding: 1.5rem; }
}

.form-step { display: none; }
.form-step.active {
  display: block;
  animation: stepIn .35s cubic-bezier(.4, 0, .2, 1);
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .form-step.active { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.step-title {
  font-size: 1.4rem;
  margin-bottom: .5rem;
}

.step-description {
  color: var(--c-muted);
  font-size: .95rem;
  margin-bottom: 1.75rem;
  max-width: 60ch;
}

.form-group { margin-bottom: 1.5rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

.input-label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: .5rem;
  padding-left: .7rem;
  border-left: 3px solid var(--c-accent);
  line-height: 1.35;
}

.required { color: var(--c-bad); }

.input-field {
  width: 100%;
  padding: .8rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--c-ink);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  transition: border-color .18s, box-shadow .18s, background .18s;
}

.input-field::placeholder { color: var(--c-faint); }

.input-field:hover { border-color: var(--c-brand-ring); }

.input-field:focus {
  outline: none;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 4px var(--c-brand-tint2);
}

.input-field.error {
  border-color: var(--c-bad);
  background: var(--c-bad-tint);
}

select.input-field {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 1.15em;
  padding-right: 2.5rem;
}

.input-with-prefix, .input-with-suffix { position: relative; display: block; }

.input-prefix, .input-suffix {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-muted);
  font-weight: 600;
  font-size: .95rem;
  pointer-events: none;
}

.input-prefix { left: 1rem; }
.input-with-prefix .input-field { padding-left: 2.1rem; }

.input-suffix { right: 1rem; }
.input-with-suffix .input-field { padding-right: 2.4rem; }

/* Fields carrying both a unit prefix and a period suffix, e.g. "$ 1600 / month" */
.input-with-prefix.input-with-suffix .input-field {
  padding-left: 2.1rem;
  padding-right: 4.8rem;
}

.input-help {
  font-size: .82rem;
  color: var(--c-muted);
  margin: .5rem 0 0;
  line-height: 1.5;
}

.error-text {
  color: var(--c-bad);
  font-size: .82rem;
  font-weight: 500;
  margin-top: .4rem;
}
.error-text:empty { margin-top: 0; }

/* Checkboxes ---------------------------------------------------------------- */

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .85rem;
  margin-bottom: .5rem;
}

.checkbox-item { position: relative; }

.checkbox-input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}

.checkbox-label {
  display: block;
  padding: 1rem 1rem 1rem 3rem;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color .18s, background .18s;
  height: 100%;
}

.checkbox-label::before {
  content: "";
  position: absolute;
  left: 1rem; top: 1.05rem;
  width: 20px; height: 20px;
  border: 2px solid var(--c-border);
  border-radius: 5px;
  background: var(--c-surface);
  transition: background .18s, border-color .18s;
}

.checkbox-label::after {
  content: "";
  position: absolute;
  left: 1rem; top: 1.05rem;
  width: 20px; height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd' /%3E%3C/svg%3E");
  background-size: 15px;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity .18s;
}

.checkbox-label:hover { border-color: var(--c-brand-ring); }

.checkbox-input:checked + .checkbox-label {
  border-color: var(--c-brand);
  background: var(--c-brand-tint);
}
.checkbox-input:checked + .checkbox-label::before {
  background: var(--c-brand);
  border-color: var(--c-brand);
}
.checkbox-input:checked + .checkbox-label::after { opacity: 1; }

.checkbox-input:focus-visible + .checkbox-label {
  outline: 3px solid var(--c-brand-ring);
  outline-offset: 2px;
}

.checkbox-title {
  display: block;
  font-weight: 600;
  font-size: .93rem;
  color: var(--c-ink);
  margin-bottom: .15rem;
}

.checkbox-description {
  display: block;
  font-size: .82rem;
  color: var(--c-muted);
  line-height: 1.45;
}

/* Buttons ------------------------------------------------------------------- */

.form-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-hairline);
}
.form-buttons > :only-child { margin-left: auto; }

.btn-primary, .btn-secondary, .btn-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .18s, background .18s, color .18s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--c-navy);
  color: #fff;
  box-shadow: var(--sh);
}
.btn-primary:hover {
  background: var(--c-brand-deep);
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}

.btn-secondary {
  background: var(--c-surface-alt);
  color: var(--c-ink-soft);
  border-color: var(--c-border);
}
.btn-secondary:hover { background: var(--c-border); }

.btn-success {
  background: var(--c-accent);
  color: var(--c-navy);
  box-shadow: var(--sh);
}
.btn-success:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-success:focus-visible {
  outline: 3px solid var(--c-brand-ring);
  outline-offset: 2px;
}

.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-full { width: 100%; }

.btn-loading { display: inline-flex; align-items: center; gap: .5rem; }

.loading-spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* For light buttons (.btn-secondary), where a white spinner would be invisible */
.spinner-dark {
  border-color: rgba(15, 23, 42, .2);
  border-top-color: var(--c-ink-soft);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* -------------------------------------------------------------------------- */
/* Inline alert (replaces alert() dialogs)                                    */
/* -------------------------------------------------------------------------- */

.form-alert {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .95rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--c-bad-tint);
  border: 1px solid rgba(220, 38, 38, .3);
  color: var(--c-ink);
  font-size: .9rem;
  margin-bottom: 1.5rem;
}

.form-alert::before {
  content: "!";
  flex: 0 0 20px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--c-bad);
  color: #fff;
  font-weight: 700;
  font-size: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .1rem;
}

.form-alert ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.form-alert li { margin-bottom: .2rem; }
.form-alert p { margin: 0; }

/* -------------------------------------------------------------------------- */
/* Results                                                                    */
/* -------------------------------------------------------------------------- */

.results-dashboard .card { padding: 0; }

.results-hero {
  background: linear-gradient(135deg, var(--c-navy-deep) 0%, var(--c-navy) 60%, #1b3a63 100%);
  padding: 2.75rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.results-hero::after {
  content: "";
  position: absolute;
  right: -100px; bottom: -140px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 203, 67, .16) 0%, transparent 68%);
  pointer-events: none;
}

.results-hero-title {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  color: #fff;
  margin-bottom: .5rem;
  position: relative;
}

.results-hero-sub {
  color: rgba(255, 255, 255, .75);
  font-size: .98rem;
  max-width: 54ch;
  margin: 0;
  position: relative;
}

/* Headline figures ---------------------------------------------------------- */

.headline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  position: relative;
}

.headline-stat {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r);
  padding: 1.25rem;
}

.headline-stat .stat-value {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: -.03em;
  line-height: 1.1;
}

.headline-stat .stat-label {
  display: block;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
  margin-top: .5rem;
}

@media (max-width: 640px) {
  .results-hero { padding: 2rem 1.5rem; }
}

/* Sections ------------------------------------------------------------------ */

.results-section {
  padding: 2.5rem;
  border-bottom: 1px solid var(--c-hairline);
}
.results-section:last-child { border-bottom: 0; }

@media (max-width: 640px) {
  .results-section { padding: 1.75rem 1.5rem; }
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .85rem;
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px; height: 22px;
  padding: 0 .4rem;
  border-radius: 5px;
  background: var(--c-brand-tint2);
  /* --c-brand already flips per theme, so this needs no media override */
  color: var(--c-brand);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.section-kicker {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--c-muted);
  white-space: nowrap;
}

.section-eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-hairline);
}

.section-title {
  font-size: 1.35rem;
  margin-bottom: .5rem;
}

.section-description {
  color: var(--c-muted);
  font-size: .95rem;
  margin-bottom: 1.75rem;
  max-width: 62ch;
}

/* Metric cards -------------------------------------------------------------- */

.key-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.metric-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 1.5rem;
  box-shadow: var(--sh-sm);
  transition: box-shadow .2s, transform .2s;
}
.metric-card:hover { box-shadow: var(--sh); transform: translateY(-2px); }

.metric-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 1.1rem;
}

.metric-comparison {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comparison-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-faint);
  margin: 0 0 .2rem;
}

.comparison-value {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--c-ink);
  margin: 0;
  line-height: 1.1;
}

.metric-after { text-align: right; }
.metric-after .comparison-value { color: var(--c-good); }
.metric-after .comparison-label { color: var(--c-good); }

.metric-stack {
  display: grid;
  gap: .85rem;
  margin-bottom: .25rem;
}

.metric-line {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  flex-wrap: wrap;
}

.metric-line .comparison-value { font-size: 1.6rem; }
.metric-line-alt { color: var(--c-brand); }

.metric-line .comparison-label {
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: .8rem;
  color: var(--c-muted);
  font-weight: 500;
}

.metric-card .progress-container { height: 7px; }
.metric-card .progress-bar {
  background: linear-gradient(90deg, var(--c-good) 0%, var(--c-teal) 100%);
}

.metric-improvement {
  font-size: .82rem;
  font-weight: 600;
  color: var(--c-muted);
  margin: .75rem 0 0;
}

/* SAFER credibility band ---------------------------------------------------- */

.safer-band {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  background: linear-gradient(135deg, var(--c-navy-deep) 0%, var(--c-navy) 100%);
  border-radius: var(--r);
  padding: 1.85rem 2rem;
  position: relative;
  overflow: hidden;
}

.safer-band::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--c-accent);
}

.safer-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: .9rem 1.1rem;
  border-radius: var(--r-sm);
  background: rgba(255, 203, 67, .12);
  border: 1px solid var(--c-accent-bd);
}

.safer-multiple {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--c-accent);
  letter-spacing: -.04em;
}

.safer-figure-label {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  margin-top: .45rem;
  text-align: center;
  line-height: 1.35;
}

.safer-quote {
  font-size: 1.02rem;
  line-height: 1.55;
  color: #fff;
  margin: 0 0 .7rem;
  font-weight: 500;
}

.safer-source {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
  margin: 0;
}

.safer-source::before {
  content: "";
  width: 16px; height: 1.5px;
  background: var(--c-accent);
}

@media (max-width: 640px) {
  .safer-band {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 1.5rem;
  }
  .safer-figure {
    min-width: 0;
    justify-self: start;
    flex-direction: row;
    align-items: baseline;
    gap: .75rem;
  }
  .safer-figure-label { margin-top: 0; text-align: left; }
  .safer-multiple { font-size: 2rem; }
  .safer-quote { font-size: .95rem; }
}

/* Charts -------------------------------------------------------------------- */

.chart-container {
  position: relative;
  height: 300px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 1.25rem;
}

.chart-container-large { height: 380px; }

@media (max-width: 640px) {
  .chart-container { height: 260px; padding: .85rem; }
  .chart-container-large { height: 340px; }
}

/* Investment impact --------------------------------------------------------- */

.investment-impact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.impact-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 1.4rem;
  text-align: center;
  box-shadow: var(--sh-sm);
}

.impact-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: .6rem;
}

.impact-value {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.investment-color { color: var(--c-bad); }
.return-color     { color: var(--c-brand); }
.profit-color     { color: var(--c-good); }

/* Fixed navy ground in both themes — this is the punchline stat, and hard-coding
   the surface means its contrast can never depend on prefers-color-scheme
   resolving correctly (forced-dark extensions and dark embed wrappers break
   that assumption). Same treatment as the SAFER and next-steps bands. */
.multiplier-card {
  background: linear-gradient(135deg, var(--c-navy-deep) 0%, var(--c-navy) 100%);
  border: 1px solid var(--c-accent-bd);
  border-radius: var(--r);
  padding: 1.85rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.multiplier-card::after {
  content: "";
  position: absolute;
  left: 50%; top: -150px;
  transform: translateX(-50%);
  width: 380px; height: 300px;
  background: radial-gradient(ellipse, rgba(255, 203, 67, .14) 0%, transparent 70%);
  pointer-events: none;
}

.multiplier-text {
  font-size: .95rem;
  color: rgba(255, 255, 255, .8);
  font-weight: 500;
  position: relative;
}

.multiplier-value {
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.05;
  color: var(--c-accent);
  margin: .35rem 0;
  position: relative;
}

/* Assumptions --------------------------------------------------------------- */

.assumptions {
  background: var(--c-surface-alt);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-brand);
  border-radius: var(--r-sm);
  padding: 1.15rem 1.35rem;
  font-size: .85rem;
  color: var(--c-muted);
  line-height: 1.6;
}

.assumptions strong { color: var(--c-ink-soft); }
.assumptions ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.assumptions li { margin-bottom: .25rem; }

/* Next steps ---------------------------------------------------------------- */

.next-steps {
  background: linear-gradient(135deg, var(--c-navy-deep) 0%, var(--c-navy) 100%);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.next-steps::after {
  content: "";
  position: absolute;
  left: 50%; top: -180px;
  transform: translateX(-50%);
  width: 460px; height: 360px;
  background: radial-gradient(ellipse, rgba(65, 182, 196, .18) 0%, transparent 70%);
  pointer-events: none;
}

.next-steps .section-title { color: #fff; position: relative; }

.next-steps-description {
  color: rgba(255, 255, 255, .78);
  font-size: .98rem;
  max-width: 56ch;
  margin: 0 auto 1.75rem;
  position: relative;
}

.next-steps-buttons {
  display: flex;
  gap: .85rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

@media (max-width: 640px) {
  .next-steps { padding: 2rem 1.5rem; }
}

/* ROI breakdown ------------------------------------------------------------- */

.roi-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 760px) {
  .roi-breakdown { grid-template-columns: 1fr; }
}

.roi-metrics { display: grid; gap: 1rem; }

.roi-metric {
  padding: 1rem 1.25rem;
  background: var(--c-surface-alt);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--c-border);
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: .2rem 0 0;
}

.metric-cost    { color: var(--c-bad); }
.metric-benefit { color: var(--c-brand); }
.metric-primary { color: var(--c-good); }

.metric-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 0;
}

.summary-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

/* -------------------------------------------------------------------------- */
/* Contact form                                                               */
/* -------------------------------------------------------------------------- */

#contact-form-container { margin-top: 1.5rem; }

.contact-form { margin-top: 1.5rem; }

.form-disclaimer {
  font-size: .78rem;
  color: var(--c-faint);
  text-align: center;
  margin-top: 1rem;
}

.text-link { color: var(--c-brand); text-decoration: underline; }

.form-success { text-align: center; padding: 2.5rem 1rem; }

.success-icon {
  width: 60px; height: 60px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--c-good-tint);
  color: var(--c-good);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  font-weight: 700;
}

.success-title { font-size: 1.4rem; margin-bottom: .6rem; }
.success-title:focus { outline: none; }

.success-message {
  color: var(--c-muted);
  max-width: 48ch;
  margin: 0 auto 1.75rem;
}

/* -------------------------------------------------------------------------- */
/* Financial options info                                                     */
/* -------------------------------------------------------------------------- */

.financial-options-info {
  display: flex;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: var(--c-brand-tint);
  border-radius: var(--r-sm);
  font-size: .85rem;
  color: var(--c-ink-soft);
}

.info-icon {
  flex: 0 0 20px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--c-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .75rem;
  font-style: italic;
}

.options-message { margin: 0; }

/* -------------------------------------------------------------------------- */
/* Assumption settings (sales tool)                                           */
/* -------------------------------------------------------------------------- */

.settings-trigger {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .78);
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .3s;
}

.settings-trigger:hover {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border-color: var(--c-accent-bd);
  transform: rotate(45deg);
}

.settings-trigger:focus-visible {
  outline: 3px solid var(--c-accent-bd);
  outline-offset: 2px;
}

/* Marks that non-default values are in play */
.settings-dot {
  position: absolute;
  top: -2px; right: -2px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--c-accent);
  border: 2px solid var(--c-navy);
}

.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(9, 16, 29, .62);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.settings-panel {
  width: 100%;
  max-width: 640px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 70px rgba(9, 16, 29, .35);
  padding: 1.75rem;
  animation: settingsIn .22s cubic-bezier(.4, 0, .2, 1);
}

@keyframes settingsIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: none; }
}

.settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
}

.settings-eyebrow { color: var(--c-brand); margin-bottom: .4rem; }
.settings-eyebrow::before { background: var(--c-brand); }

.settings-title { font-size: 1.25rem; }
.settings-title:focus { outline: none; }

.settings-close {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  background: var(--c-surface-alt);
  color: var(--c-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.settings-close:hover { color: var(--c-ink); background: var(--c-border); }

.settings-intro {
  font-size: .86rem;
  color: var(--c-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.settings-group-title {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--c-muted);
  padding-bottom: .5rem;
  margin: 1.4rem 0 .85rem;
  border-bottom: 1px solid var(--c-hairline);
}
.settings-group-title:first-child { margin-top: 0; }

.settings-row {
  display: grid;
  grid-template-columns: 1fr 128px;
  gap: 1rem;
  align-items: center;
  padding: .5rem 0;
}

.settings-row-label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--c-ink);
  display: block;
}

.settings-row-help {
  font-size: .78rem;
  color: var(--c-muted);
  margin: .15rem 0 0;
  line-height: 1.45;
}

.settings-row-default {
  font-size: .74rem;
  color: var(--c-faint);
  margin: .2rem 0 0;
}

.settings-row.is-changed .settings-row-default { color: var(--c-brand); font-weight: 600; }

.settings-input-wrap { position: relative; }

.settings-input {
  width: 100%;
  padding: .55rem .7rem;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  color: var(--c-ink);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  text-align: right;
}

.settings-input:focus {
  outline: none;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 4px var(--c-brand-tint2);
}

.settings-row.is-changed .settings-input {
  border-color: var(--c-accent);
  background: var(--c-accent-tint);
}

.settings-unit {
  position: absolute;
  left: .7rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .82rem;
  font-weight: 600;
  color: var(--c-faint);
  pointer-events: none;
}

.settings-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-hairline);
}

.settings-foot-right { display: flex; gap: .6rem; }

@media (max-width: 560px) {
  .settings-panel { padding: 1.25rem; }
  .settings-row { grid-template-columns: 1fr 108px; gap: .75rem; }
  .settings-foot { flex-direction: column-reverse; align-items: stretch; }
  .settings-foot-right { justify-content: stretch; }
  .settings-foot-right > * { flex: 1; }
}

/* Custom-projection notice on the results page */
.custom-notice {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .95rem 1.15rem;
  margin-bottom: 1.25rem;
  border-radius: var(--r-sm);
  background: var(--c-accent-tint);
  border: 1px solid var(--c-accent-bd);
  border-left: 3px solid var(--c-accent);
  font-size: .85rem;
  color: var(--c-ink-soft);
  line-height: 1.55;
}

.custom-notice strong { color: var(--c-ink); }

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */

.footer {
  padding: 2rem 1rem;
  border-top: 1px solid var(--c-hairline);
  font-size: .82rem;
  color: var(--c-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}

.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-link { color: var(--c-muted); text-decoration: none; }
.footer-link:hover { color: var(--c-brand); text-decoration: underline; }

.footer-disclaimer { font-size: .76rem; color: var(--c-faint); }
