/* ============================================================================
   ENVIROFLUID TOOLS — SHARED STYLESHEET
   ============================================================================
   Version:        3.2.0  (no CSS changes in THIS file; v3.2.0 expands the
                          tool-scaffold-report.php to wire up the previously-
                          unused .fleet-table / .ratio-bar / .hidden-list /
                          .real-total-panel / .case-study components from
                          envirofluid-report.css v1.0.0+. See README v3.2.0
                          changelog.)
   Last updated:   May 2026
   Source of truth: extracted faithfully from the production Water Cart Cost
                    Calculator (water-cart-calculator__1_.html, v3.0).

   This is a complete rewrite of v1.0. v1.0 was built from chat fragments and
   lost most of the brand atmosphere. v2.0 is built from the real working tool.

   PURPOSE
   --------
   The complete visual language for every Envirofluid web tool — from the
   centered intro, to the numbered input cards, hero result, lead gate,
   unlocked breakdown content, and final CTA. Encodes the full Envirofluid
   Tool template, not just atomic components.

   USAGE
   -----
   1. Host this file at /wp-content/uploads/tools/envirofluid-tools.css
   2. At the top of every tool's HTML snippet:
        <link rel="preconnect" href="https://fonts.googleapis.com">
        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
        <link href="https://fonts.googleapis.com/css2?family=Exo:wght@400;500;600;700;800&display=swap" rel="stylesheet">
        <link rel="stylesheet" href="/wp-content/uploads/tools/envirofluid-tools.css">
   3. Wrap the tool's markup in a div with class "ef-tool" and a unique id:
        <div class="ef-tool" id="ef-water-cart"> ... </div>

   COMPONENT INDEX
   ---------------
   1.  Reset (scoped)
   2.  Tokens
   3.  Wrapper           .ef-tool
   4.  Swoosh            .ef-swoosh
   5.  Intro             .ef-intro + h2 + p + .ef-meta + .ef-eyebrow
   6.  Card              .ef-card
   7.  Section label     .ef-section-label + .ef-step-num
   8.  Inputs            .ef-input-grid + .ef-input + .ef-hint + .ef-prefilled
                         (incl. range sliders + .ef-slider-value, added v2.1)
   9.  Segments          .ef-segments + .ef-segment
   10. Tooltip           .ef-tip + .ef-tip-content (+ mobile inline)
   11. Advanced          .ef-advanced (details)
   12. Action button     .ef-action-btn
   13. Results wrapper   .ef-results + fade-in
   14. Hero result       .ef-hero-result + .ef-big-number + .ef-big-sub
                         (+ .ef-hero-negative modifier, added v2.3)
   15. Secondary stats   .ef-secondary-stats + .ef-stat-value + .ef-stat-label
   16. Hidden reveal     .ef-hidden-reveal + .ef-hidden-list + .ef-hidden-item
   17. Real total        .ef-real-total
   18. Gate              .ef-gate + .ef-gate-content + .ef-gate-features
   19. Form grid         .ef-form-grid + .ef-honeypot + .ef-unlock-btn
   20. Privacy + error   .ef-privacy + .ef-form-error
   21. Unlocked          .ef-unlocked + .ef-success-banner
   21b.Caution           .ef-caution            (added v2.1, amber callout)
   22. Bar rows          .ef-bar-row + .ef-bar-track + .ef-bar-fill
   22b.Definition row    .ef-row + .ef-row-label + .ef-row-value (added v2.1)
   23. Benchmark         .ef-benchmark + .ef-benchmark-stat
   24. Methodology       .ef-methodology
   25. Scenario cards    .ef-savings-grid + .ef-scenario-card (.ef-featured)
   26. Action plan       .ef-action-list + .ef-action-step (.ef-action-featured)
   27. Sensitivity       .ef-sensitivity-list + .ef-sens-item
   28. CTA block         .ef-cta-block + .ef-cta-eyebrow + .ef-cta-link
   29. Footer disclaimer .ef-footer-disclaimer
   30. Visibility utils
   30b.Related tools     .ef-related-grid + .ef-related-card (added v3.3)
   31. Responsive
   ============================================================================ */


/* 1. SCOPED RESET ============================================================ */
.ef-tool, .ef-tool *, .ef-tool *::before, .ef-tool *::after {
  box-sizing: border-box;
}


/* 2. TOKENS ================================================================== */
/* Colours, fonts and corners come from the site's brand tokens (src/styles/global.css), so the
   calculators always match the rest of the site. */
.ef-tool {
  --ef-blue:        var(--blue);
  --ef-blue-dark:   var(--blue-dark);
  --ef-blue-mid:    color-mix(in srgb, var(--blue) 90%, white);
  --ef-blue-soft:   var(--blue-tint);

  --ef-green-dark:  var(--green-dark);
  --ef-green-mid:   var(--green);
  --ef-green-light: var(--green-light);
  --ef-green-soft:  var(--green-tint);

  --ef-bg:          #ffffff;
  --ef-fill:        var(--card);
  --ef-card:        #ffffff;

  --ef-ink:         var(--text);
  --ef-ink-soft:    var(--grey);
  --ef-ink-faint:   var(--grey);

  --ef-line:        var(--line);
  --ef-line-soft:   var(--grey-light);

  --ef-radius:      var(--radius-sm);
  --ef-radius-lg:   var(--radius);

  --ef-shadow:      0 1px 2px color-mix(in srgb, var(--ef-blue) 4%, transparent),
                    0 8px 24px color-mix(in srgb, var(--ef-blue) 6%, transparent);
  --ef-shadow-lg:   0 4px 12px color-mix(in srgb, var(--ef-blue) 8%, transparent),
                    0 24px 48px color-mix(in srgb, var(--ef-blue) 10%, transparent);

  --ef-font-display: var(--head);
  --ef-font-body:    var(--body);
  --ef-font-italic:  var(--head);
}


/* 3. WRAPPER ================================================================= */
.ef-tool {
  font-family: var(--ef-font-body);
  color: var(--ef-ink);
  background: var(--ef-bg);
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* 4. SWOOSH ==================================================================
   Multi-line gradient wave. SVG embedded as a CSS background-image so a tool
   only has to write <div class="ef-swoosh"></div>. */
.ef-tool .ef-swoosh {
  width: 100%;
  max-width: 480px;
  height: 36px;
  margin: 0 auto 24px;
  display: block;
  opacity: 0.85;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 36'><defs><linearGradient id='a' x1='0%25' y1='0%25' x2='100%25' y2='0%25'><stop offset='0%25' stop-color='%236BC04B' stop-opacity='0.85'/><stop offset='35%25' stop-color='%23009946' stop-opacity='0.75'/><stop offset='65%25' stop-color='%23006938' stop-opacity='0.6'/><stop offset='100%25' stop-color='%23005983' stop-opacity='0.85'/></linearGradient><linearGradient id='b' x1='0%25' y1='0%25' x2='100%25' y2='0%25'><stop offset='0%25' stop-color='%236BC04B' stop-opacity='0.45'/><stop offset='50%25' stop-color='%23009946' stop-opacity='0.4'/><stop offset='100%25' stop-color='%23005983' stop-opacity='0.5'/></linearGradient></defs><path d='M0,18 Q60,4 120,18 T240,18 T360,18 T480,18' stroke='url(%23a)' stroke-width='1.5' fill='none'/><path d='M0,22 Q60,8 120,22 T240,22 T360,22 T480,22' stroke='url(%23b)' stroke-width='1' fill='none'/><path d='M0,14 Q60,28 120,14 T240,14 T360,14 T480,14' stroke='url(%23b)' stroke-width='1' fill='none'/></svg>");
}


/* 5. INTRO + EYEBROW ========================================================= */
.ef-tool .ef-intro {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 44px;
}
.ef-tool .ef-intro h1,
.ef-tool .ef-intro h2 {
  font-family: var(--ef-font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 18px 0 18px;
  color: var(--ef-blue);
}
.ef-tool .ef-intro h1 em,
.ef-tool .ef-intro h2 em {
  font-family: var(--ef-font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--ef-green-dark);
}
.ef-tool .ef-intro p {
  font-size: 17px;
  color: var(--ef-ink-soft);
  margin: 0;
  line-height: 1.55;
}
.ef-tool .ef-intro .ef-meta {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ef-ink-faint);
}

.ef-tool .ef-eyebrow {
  display: inline-block;
  font-family: var(--ef-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ef-blue);
  padding: 6px 12px;
  background: var(--ef-blue-soft);
  border-radius: 100px;
}


/* 6. CARD ==================================================================== */
.ef-tool .ef-card {
  background: var(--ef-card);
  border: 1px solid var(--ef-line);
  border-radius: var(--ef-radius-lg);
  padding: 32px;
  box-shadow: var(--ef-shadow);
  margin-bottom: 24px;
}


/* 7. SECTION LABEL + STEP NUMBER ============================================= */
.ef-tool .ef-section-label {
  font-family: var(--ef-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ef-blue);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ef-tool .ef-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ef-line-soft);
}
.ef-tool .ef-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ef-blue);
  color: #fff;
  font-family: var(--ef-font-display);
  font-weight: 700;
  font-size: 13px;
  margin-right: 10px;
}


/* 8. INPUTS ================================================================== */
.ef-tool .ef-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.ef-tool .ef-input-grid.ef-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ef-tool .ef-input-grid.ef-cols-1 { grid-template-columns: 1fr; }

.ef-tool .ef-input {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ef-tool .ef-input label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ef-font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ef-ink);
}
.ef-tool .ef-input input,
.ef-tool .ef-input select,
.ef-tool .ef-input textarea {
  font-family: var(--ef-font-body);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 14px;
  border: 1px solid var(--ef-line);
  border-radius: var(--ef-radius);
  background: var(--ef-fill);
  color: var(--ef-ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.ef-tool .ef-input select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath d='M2 4l4 4 4-4' stroke='%23005983' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.ef-tool .ef-input input:focus,
.ef-tool .ef-input select:focus,
.ef-tool .ef-input textarea:focus {
  outline: none;
  border-color: var(--ef-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ef-blue) 12%, transparent);
}
.ef-tool .ef-input .ef-hint {
  font-size: 12px;
  color: var(--ef-ink-soft);
  line-height: 1.4;
}
.ef-tool .ef-input .ef-hint.ef-prefilled,
.ef-tool .ef-input .ef-prefilled {
  color: var(--ef-green-dark);
  font-weight: 600;
}

/* --- Range slider (added v2.1) ---
   Pairs with an optional .ef-slider-value that floats right of the label. */
.ef-tool .ef-input input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  height: 24px;
  cursor: pointer;
  accent-color: var(--ef-blue);
}
.ef-tool .ef-input input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: var(--ef-line-soft);
  border-radius: 100px;
}
.ef-tool .ef-input input[type="range"]::-moz-range-track {
  height: 6px;
  background: var(--ef-line-soft);
  border-radius: 100px;
}
.ef-tool .ef-input input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ef-blue);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--ef-blue) 25%, transparent);
  margin-top: -6px;
  cursor: pointer;
}
.ef-tool .ef-input input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ef-blue);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--ef-blue) 25%, transparent);
  cursor: pointer;
}
.ef-tool .ef-input input[type="range"]:focus {
  outline: none;
  box-shadow: none;
}
.ef-tool .ef-input input[type="range"]:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ef-blue) 18%, transparent);
}
.ef-tool .ef-input input[type="range"]:focus::-moz-range-thumb {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ef-blue) 18%, transparent);
}

/* Breathing room — the thumb visually crowds the .ef-hint below it,
   so give sliders a bit more bottom margin than other input types. */
.ef-tool .ef-input input[type="range"] {
  margin-bottom: 6px;
}

/* Live value readout that sits at the right edge of the slider's label row.
   Use inside the <label>: <label>Coverage <span class="ef-slider-value">85%</span></label> */
.ef-tool .ef-slider-value {
  margin-left: auto;
  font-family: var(--ef-font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ef-blue);
  font-variant-numeric: tabular-nums;
}


/* 9. SEGMENTED BUTTON GROUP ================================================== */
.ef-tool .ef-segments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.ef-tool .ef-segments.ef-segments-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ef-tool .ef-segments.ef-segments-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ef-tool .ef-segment {
  background: var(--ef-fill);
  border: 1.5px solid var(--ef-line);
  border-radius: var(--ef-radius);
  padding: 18px 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  font-family: var(--ef-font-body);
}
.ef-tool .ef-segment:hover {
  border-color: var(--ef-blue);
  transform: translateY(-1px);
}
.ef-tool .ef-segment.ef-active {
  border-color: var(--ef-blue);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ef-blue) 8%, transparent);
}
.ef-tool .ef-segment-title {
  display: block;
  font-family: var(--ef-font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ef-ink);
  margin-bottom: 4px;
}
.ef-tool .ef-segment-sub {
  display: block;
  font-size: 12px;
  color: var(--ef-ink-soft);
  line-height: 1.4;
}


/* 10. TOOLTIP ================================================================ */
.ef-tool .ef-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ef-line);
  color: var(--ef-ink-soft);
  font-family: var(--ef-font-display);
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  position: relative;
}
.ef-tool .ef-tip:hover,
.ef-tool .ef-tip.ef-tip-active {
  background: var(--ef-blue);
  color: #fff;
}

.ef-tool .ef-tip-content {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ef-blue-dark);
  color: #fff;
  padding: 10px 12px;
  border-radius: var(--ef-radius);
  font-family: var(--ef-font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  width: 240px;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.ef-tool .ef-tip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ef-blue-dark);
}
.ef-tool .ef-tip:hover .ef-tip-content,
.ef-tool .ef-tip.ef-tip-active .ef-tip-content {
  opacity: 1;
}

.ef-tip-inline { display: none; }
.ef-tip-inline.ef-tip-inline-open {
  display: block;
  margin: 8px 0 4px;
  padding: 12px 14px;
  background: var(--ef-blue-dark);
  color: #fff;
  border-radius: var(--ef-radius);
  font-family: var(--ef-font-body);
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  animation: ef-tip-slide 0.18s ease-out;
}
@keyframes ef-tip-slide {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (hover: none) {
  .ef-tool .ef-tip-content { display: none; }
  .ef-tool .ef-tip { cursor: pointer; }
}

.ef-tool .ef-hero-result .ef-tip,
.ef-tool .ef-cta-block .ef-tip {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.95);
}
.ef-tool .ef-hero-result .ef-tip:hover,
.ef-tool .ef-cta-block .ef-tip:hover {
  background: rgba(255, 255, 255, 0.32);
  color: #fff;
}


/* 11. ADVANCED EXPANDABLE ==================================================== */
.ef-tool .ef-advanced {
  margin-top: 24px;
  border-top: 1px solid var(--ef-line-soft);
  padding-top: 20px;
}
.ef-tool .ef-advanced summary {
  cursor: pointer;
  font-family: var(--ef-font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ef-blue);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.ef-tool .ef-advanced summary::-webkit-details-marker { display: none; }
.ef-tool .ef-advanced summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1px solid var(--ef-blue);
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 13px;
}
.ef-tool .ef-advanced[open] summary::before { content: "−"; }
.ef-tool .ef-advanced[open] summary { margin-bottom: 18px; }


/* 12. PRIMARY ACTION BUTTON (full-width, blue, "Calculate") =================== */
.ef-tool .ef-action-btn {
  margin-top: 28px;
  width: 100%;
  padding: 19px 24px;
  font-family: var(--ef-font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--ef-blue);
  border: none;
  border-radius: var(--ef-radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.ef-tool .ef-action-btn:hover { background: var(--ef-blue-dark); }
.ef-tool .ef-action-btn:active { transform: translateY(1px); }
.ef-tool .ef-action-btn:disabled {
  background: var(--ef-ink-faint);
  cursor: not-allowed;
}


/* 13. RESULTS WRAPPER + FADE-IN ============================================== */
.ef-tool .ef-results {
  display: none;
  margin-top: 40px;
}
.ef-tool .ef-results.ef-visible {
  display: block;
  animation: ef-results-fade-in 0.6s ease both;
}
@keyframes ef-results-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* 14. HERO RESULT (with radial-gradient atmosphere) =========================== */
.ef-tool .ef-hero-result {
  background: var(--ef-blue);
  color: #fff;
  border-radius: var(--ef-radius-lg);
  padding: 56px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ef-tool .ef-hero-result::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--ef-green-light) 18%, transparent) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--ef-blue) 60%, transparent)  0%, transparent 55%);
  pointer-events: none;
}
.ef-tool .ef-hero-result > * { position: relative; }
.ef-tool .ef-hero-result .ef-eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.ef-tool .ef-big-number {
  font-family: var(--ef-font-display);
  font-weight: 700;
  font-size: clamp(56px, 11vw, 120px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 18px 0 8px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ef-tool .ef-big-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 36px;
}

/* --- Negative-result modifier (added v2.3) ---
   When a calculator's headline number can come out negative (cost exceeds
   saving on small / temperate / town-water sites), add .ef-hero-negative
   to .ef-hero-result. Pale-red text on the same blue background signals
   loss/warning without breaking the hero's atmosphere. */
.ef-tool .ef-hero-result.ef-hero-negative .ef-big-number { color: #ffd1d1; }
.ef-tool .ef-hero-result.ef-hero-negative .ef-big-sub    { color: rgba(255, 209, 209, 0.85); }


/* 15. SECONDARY STATS ======================================================== */
.ef-tool .ef-secondary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 640px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.ef-tool .ef-stat-value {
  font-family: var(--ef-font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  display: block;
}
.ef-tool .ef-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
  display: block;
  line-height: 1.3;
}


/* 16. HIDDEN REVEAL CARD ===================================================== */
.ef-tool .ef-hidden-reveal {
  margin-top: 32px;
  background: var(--ef-card);
  border: 1px solid var(--ef-line);
  border-radius: var(--ef-radius-lg);
  padding: 32px;
  box-shadow: var(--ef-shadow);
}
.ef-tool .ef-hidden-reveal h3 {
  font-family: var(--ef-font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  color: var(--ef-blue);
  margin: 0 0 8px;
}
.ef-tool .ef-hidden-reveal h3 em {
  font-family: var(--ef-font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--ef-green-dark);
}
.ef-tool .ef-hidden-reveal > p {
  color: var(--ef-ink-soft);
  margin: 0 0 24px;
  font-size: 15px;
}

.ef-tool .ef-hidden-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.ef-tool .ef-hidden-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--ef-line-soft);
}
.ef-tool .ef-hidden-item:last-child { border-bottom: 0; }
.ef-tool .ef-hidden-name {
  font-family: var(--ef-font-display);
  font-weight: 600;
  color: var(--ef-ink);
  font-size: 15px;
  margin-bottom: 4px;
}
.ef-tool .ef-hidden-desc {
  font-size: 13px;
  color: var(--ef-ink-soft);
  line-height: 1.5;
}
.ef-tool .ef-hidden-amount {
  font-family: var(--ef-font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ef-green-dark);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}


/* 17. REAL TOTAL ============================================================= */
.ef-tool .ef-real-total {
  margin-top: 24px;
  padding: 26px;
  background: var(--ef-blue-soft);
  border: 1.5px solid var(--ef-blue);
  border-radius: var(--ef-radius);
  text-align: center;
}
.ef-tool .ef-real-total-label {
  font-family: var(--ef-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ef-blue);
  margin-bottom: 6px;
}
.ef-tool .ef-real-total-value {
  font-family: var(--ef-font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1;
  color: var(--ef-blue);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.ef-tool .ef-real-total-sub {
  font-size: 13px;
  color: var(--ef-ink-soft);
  margin-top: 8px;
}


/* 18. GATE =================================================================== */
.ef-tool .ef-gate {
  margin-top: 32px;
  background: var(--ef-card);
  border: 1px solid var(--ef-line);
  border-radius: var(--ef-radius-lg);
  overflow: hidden;
  box-shadow: var(--ef-shadow);
}
.ef-tool .ef-gate-content {
  padding: 32px;
  border-bottom: 1px solid var(--ef-line-soft);
}
.ef-tool .ef-gate h3 {
  font-family: var(--ef-font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  color: var(--ef-blue);
  margin: 0 0 10px;
}
.ef-tool .ef-gate > .ef-gate-content > p {
  color: var(--ef-ink-soft);
  margin: 0 0 22px;
  font-size: 15px;
}
.ef-tool .ef-gate-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-bottom: 24px;
}
.ef-tool .ef-gate-feature {
  font-size: 14px;
  color: var(--ef-ink);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.ef-tool .ef-gate-feature::before {
  content: "→";
  color: var(--ef-green-mid);
  font-weight: 700;
  flex-shrink: 0;
}


/* 19. FORM GRID + UNLOCK BTN + HONEYPOT ====================================== */
.ef-tool .ef-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.ef-tool .ef-form-grid input {
  font-family: var(--ef-font-body);
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid var(--ef-line);
  border-radius: var(--ef-radius);
  background: var(--ef-fill);
  width: 100%;
}
.ef-tool .ef-form-grid input:focus {
  outline: none;
  border-color: var(--ef-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ef-blue) 12%, transparent);
}

.ef-tool .ef-unlock-btn {
  width: 100%;
  padding: 16px 24px;
  font-family: var(--ef-font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--ef-green-mid);
  border: none;
  border-radius: var(--ef-radius);
  cursor: pointer;
  transition: background 0.2s;
}
.ef-tool .ef-unlock-btn:hover { background: var(--ef-green-dark); }
.ef-tool .ef-unlock-btn:disabled {
  background: var(--ef-ink-faint);
  cursor: not-allowed;
}

.ef-tool .ef-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}


/* 20. PRIVACY + FORM ERROR =================================================== */
.ef-tool .ef-privacy {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ef-ink-soft);
  line-height: 1.5;
}
.ef-tool .ef-privacy a {
  color: var(--ef-blue);
  text-decoration: underline;
}

.ef-tool .ef-form-error {
  margin-top: 12px;
  padding: 12px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--ef-radius);
  color: #991b1b;
  font-size: 13px;
  display: none;
}
.ef-tool .ef-form-error.ef-visible-block { display: block; }


/* 21. UNLOCKED CONTENT ======================================================= */
.ef-tool .ef-unlocked {
  padding: 32px;
  display: none;
}
.ef-tool .ef-unlocked.ef-visible-block { display: block; }

.ef-tool .ef-success-banner {
  padding: 14px 18px;
  margin-bottom: 24px;
  background: var(--ef-green-soft);
  border: 1px solid var(--ef-green-mid);
  border-radius: var(--ef-radius);
  color: var(--ef-green-dark);
  font-size: 14px;
  font-weight: 500;
}

/* 21b. CAUTION CALLOUT (added v2.1) ==========================================
   Amber callout for "Reference only", "Not advice", regulatory caveats.
   Distinct from .ef-form-error (red, form context) and .ef-success-banner
   (green). Use whenever a tool needs to soften the authority of its output. */
.ef-tool .ef-caution {
  margin: 24px 0;
  padding: 14px 18px;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: var(--ef-radius);
  color: #78350f;
  font-size: 14px;
  line-height: 1.55;
}
.ef-tool .ef-caution strong {
  font-family: var(--ef-font-display);
  font-weight: 700;
  color: #78350f;
}
.ef-tool .ef-caution a {
  color: #92400e;
  text-decoration: underline;
}
.ef-tool .ef-caution-title {
  font-family: var(--ef-font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #78350f;
  display: block;
  margin-bottom: 4px;
}

.ef-tool .ef-breakdown-title {
  font-family: var(--ef-font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--ef-blue);
  margin: 0 0 18px;
}


/* 22. BAR CHART ROWS ========================================================= */
.ef-tool .ef-bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 130px;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ef-line-soft);
  font-size: 14px;
}
.ef-tool .ef-bar-row:last-child { border-bottom: 0; }
.ef-tool .ef-bar-label {
  font-family: var(--ef-font-display);
  font-weight: 600;
  color: var(--ef-ink);
}
.ef-tool .ef-bar-track {
  height: 10px;
  background: var(--ef-line-soft);
  border-radius: 100px;
  overflow: hidden;
}
.ef-tool .ef-bar-fill {
  height: 100%;
  background: var(--ef-blue);
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.2, 0.7, 0.2, 1);
  width: 0;
}
.ef-tool .ef-bar-value {
  font-family: var(--ef-font-display);
  font-weight: 700;
  text-align: right;
  color: var(--ef-ink);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
}


/* 22b. DEFINITION ROW (added v2.1) ===========================================
   Stripped-down sibling of .ef-bar-row: label | value, no bar track.
   Use for sequential or non-comparable data where a bar chart would
   imply false comparison (e.g. phase-by-phase volumes, reference values,
   non-monetary key/value pairs). */
.ef-tool .ef-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ef-line-soft);
  font-size: 14px;
}
.ef-tool .ef-row:last-child { border-bottom: 0; }
.ef-tool .ef-row-label {
  font-family: var(--ef-font-display);
  font-weight: 600;
  color: var(--ef-ink);
}
.ef-tool .ef-row-sub {
  display: block;
  font-family: var(--ef-font-body);
  font-weight: 400;
  font-size: 12px;
  color: var(--ef-ink-soft);
  margin-top: 2px;
}
.ef-tool .ef-row-value {
  font-family: var(--ef-font-display);
  font-weight: 700;
  color: var(--ef-ink);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  text-align: right;
}


/* 23. BENCHMARK ============================================================== */
.ef-tool .ef-benchmark {
  margin-top: 32px;
  padding: 24px;
  background: var(--ef-blue-soft);
  border-radius: var(--ef-radius);
}
.ef-tool .ef-benchmark-title {
  font-family: var(--ef-font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ef-blue);
  margin: 0 0 12px;
}
.ef-tool .ef-benchmark-text {
  font-size: 14px;
  color: var(--ef-ink-soft);
  line-height: 1.6;
  margin: 0;
}
.ef-tool .ef-benchmark-stat {
  font-family: var(--ef-font-display);
  font-weight: 700;
  color: var(--ef-blue);
  font-variant-numeric: tabular-nums;
}


/* 24. METHODOLOGY ============================================================ */
.ef-tool .ef-methodology {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--ef-line-soft);
  font-size: 13px;
  color: var(--ef-ink-soft);
  line-height: 1.6;
}
.ef-tool .ef-methodology h4 {
  font-family: var(--ef-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ef-blue);
  margin: 0 0 10px;
}
.ef-tool .ef-methodology ul { margin: 0; padding-left: 18px; }
.ef-tool .ef-methodology li { margin-bottom: 4px; }


/* 25. SCENARIO CARDS ========================================================= */
.ef-tool .ef-savings { margin-top: 36px; }
.ef-tool .ef-savings-intro {
  font-size: 14px;
  color: var(--ef-ink-soft);
  line-height: 1.55;
  margin: 0 0 22px;
}
.ef-tool .ef-savings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.ef-tool .ef-scenario-card {
  background: var(--ef-fill);
  border: 1.5px solid var(--ef-line);
  border-radius: var(--ef-radius);
  padding: 24px 18px 20px;
  text-align: center;
  position: relative;
}
.ef-tool .ef-scenario-card.ef-featured {
  border-color: var(--ef-green-mid);
  background: var(--ef-green-soft);
}
.ef-tool .ef-scenario-card.ef-featured::before {
  content: "Most realistic";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ef-green-mid);
  color: #fff;
  font-family: var(--ef-font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.ef-tool .ef-scenario-card[data-featured-label]::before {
  content: attr(data-featured-label);
}
.ef-tool .ef-scenario-label {
  font-family: var(--ef-font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ef-ink);
  margin-bottom: 2px;
}
.ef-tool .ef-scenario-sublabel {
  font-size: 11px;
  color: var(--ef-ink-faint);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.ef-tool .ef-scenario-saving {
  font-family: var(--ef-font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--ef-green-dark);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.ef-tool .ef-scenario-card.ef-featured .ef-scenario-saving { font-size: 34px; }
.ef-tool .ef-scenario-suffix {
  font-size: 12px;
  color: var(--ef-ink-soft);
  margin-bottom: 14px;
}
.ef-tool .ef-scenario-5yr {
  font-size: 12px;
  color: var(--ef-ink-soft);
  padding-top: 12px;
  border-top: 1px solid var(--ef-line);
  line-height: 1.4;
}
.ef-tool .ef-scenario-card.ef-featured .ef-scenario-5yr {
  border-top-color: color-mix(in srgb, var(--ef-green-dark) 18%, transparent);
}
.ef-tool .ef-scenario-5yr strong {
  font-family: var(--ef-font-display);
  color: var(--ef-blue);
  font-weight: 700;
  font-size: 14px;
}


/* 26. ACTION PLAN ============================================================ */
.ef-tool .ef-action { margin-top: 36px; }
.ef-tool .ef-action-intro {
  font-size: 14px;
  color: var(--ef-ink-soft);
  line-height: 1.55;
  margin: 0 0 18px;
}
.ef-tool .ef-action-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.ef-tool .ef-action-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 18px 20px;
  background: var(--ef-fill);
  border-radius: var(--ef-radius);
  border-left: 3px solid var(--ef-blue);
}
.ef-tool .ef-action-step.ef-action-featured {
  border-left-color: var(--ef-green-mid);
  background: var(--ef-green-soft);
}
.ef-tool .ef-action-num {
  width: 36px;
  height: 36px;
  background: var(--ef-blue);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ef-font-display);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.ef-tool .ef-action-step.ef-action-featured .ef-action-num {
  background: var(--ef-green-dark);
}
.ef-tool .ef-action-title-row {
  font-family: var(--ef-font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ef-ink);
  margin-bottom: 5px;
  line-height: 1.3;
}
.ef-tool .ef-action-desc {
  font-size: 13px;
  color: var(--ef-ink-soft);
  line-height: 1.5;
  margin-bottom: 10px;
}
.ef-tool .ef-action-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
}
.ef-tool .ef-action-saving {
  font-family: var(--ef-font-display);
  font-weight: 700;
  color: var(--ef-green-dark);
  font-variant-numeric: tabular-nums;
}
.ef-tool .ef-action-tag { color: var(--ef-ink-soft); }
.ef-tool .ef-action-tag::before {
  content: "·";
  margin-right: 6px;
  color: var(--ef-line);
}


/* 27. SENSITIVITY ============================================================ */
.ef-tool .ef-sensitivity { margin-top: 36px; }
.ef-tool .ef-sens-intro {
  font-size: 14px;
  color: var(--ef-ink-soft);
  line-height: 1.55;
  margin: 0 0 18px;
}
.ef-tool .ef-sensitivity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ef-tool .ef-sens-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: var(--ef-fill);
  border-radius: var(--ef-radius);
  margin-bottom: 8px;
}
.ef-tool .ef-sens-item:last-child { margin-bottom: 0; }
.ef-tool .ef-sens-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fef2f2;
  color: #b91c1c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ef-font-display);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.ef-tool .ef-sens-text {
  font-family: var(--ef-font-body);
  font-size: 14px;
  color: var(--ef-ink);
  line-height: 1.4;
}
.ef-tool .ef-sens-text strong {
  font-family: var(--ef-font-display);
  font-weight: 700;
}
.ef-tool .ef-sens-amount {
  font-family: var(--ef-font-display);
  font-weight: 700;
  font-size: 17px;
  color: #b91c1c;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}


/* 28. CTA BLOCK ============================================================== */
.ef-tool .ef-cta-block {
  margin-top: 32px;
  padding: 32px;
  background: var(--ef-blue);
  color: #fff;
  border-radius: var(--ef-radius);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ef-tool .ef-cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 20%, color-mix(in srgb, var(--ef-green-light) 18%, transparent) 0%, transparent 40%),
    radial-gradient(circle at 10% 80%, color-mix(in srgb, var(--ef-green-mid) 15%, transparent) 0%, transparent 40%);
  pointer-events: none;
}
.ef-tool .ef-cta-block > * { position: relative; }

.ef-tool .ef-cta-eyebrow {
  font-family: var(--ef-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ef-green-light);
  margin-bottom: 12px;
}
.ef-tool .ef-cta-block h3,
.ef-tool .ef-cta-block h4 {
  font-family: var(--ef-font-display);
  font-weight: 700;
  font-size: 28px;
  margin: 0 0 8px;
  color: #fff;
  letter-spacing: -0.01em;
}
.ef-tool .ef-cta-block p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 auto 22px;
  max-width: 540px;
}
.ef-tool .ef-cta-link {
  display: inline-block;
  padding: 15px 32px;
  background: var(--ef-green-mid);
  color: #fff;
  text-decoration: none;
  font-family: var(--ef-font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-radius: var(--ef-radius);
  transition: background 0.2s, transform 0.1s;
}
.ef-tool .ef-cta-link:hover {
  background: var(--ef-green-dark);
  color: #fff;
  transform: translateY(-1px);
}


/* 29. FOOTER DISCLAIMER ====================================================== */
.ef-tool .ef-footer-disclaimer {
  margin-top: 32px;
  font-size: 12px;
  color: var(--ef-ink-faint);
  text-align: center;
  line-height: 1.6;
}


/* 30. VISIBILITY ============================================================= */
.ef-tool .ef-hidden        { display: none !important; }
.ef-tool .ef-visible       { display: block; }
.ef-tool .ef-visible-block { display: block; }


/* 30b. KEYBOARD FOCUS ========================================================
   Buttons, links and toggles use the site-wide :focus-visible ring from
   src/styles/global.css. */


/* 30b. RELATED TOOLS ========================================================= */
.ef-tool .ef-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 14px;
}
.ef-tool .ef-related-card {
  display: block;
  background: var(--ef-fill);
  border: 1.5px solid var(--ef-line);
  border-radius: var(--ef-radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}
a.ef-related-card:hover {
  border-color: var(--ef-blue);
  transform: translateY(-2px);
  box-shadow: var(--ef-shadow);
}
/* Shown only to a logged-in admin when a related tool has no page_url set
   yet — same amber tone as .ef-caution, so it reads as "note to self", not
   a broken/red error. A real visitor never sees this card at all. */
.ef-tool .ef-related-card-admin {
  background: #fffbeb;
  border: 1.5px dashed #f59e0b;
  cursor: default;
}
.ef-tool .ef-related-admin-tag {
  display: inline-block;
  font-family: var(--ef-font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #92400e;
  background: #fef3c7;
  padding: 3px 8px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.ef-tool .ef-related-card-admin .ef-related-arrow { color: #92400e; }
.ef-tool .ef-related-name {
  font-family: var(--ef-font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ef-blue);
  margin-bottom: 6px;
}
.ef-tool .ef-related-pitch {
  font-size: 13px;
  color: var(--ef-ink-soft);
  line-height: 1.5;
  margin-bottom: 12px;
}
.ef-tool .ef-related-arrow {
  font-family: var(--ef-font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--ef-green-dark);
  letter-spacing: 0.02em;
}
/* 31. RESPONSIVE ============================================================= */
@media (max-width: 720px) {
  .ef-tool { padding: 32px 16px; }

  .ef-tool .ef-card,
  .ef-tool .ef-hidden-reveal,
  .ef-tool .ef-gate-content,
  .ef-tool .ef-unlocked,
  .ef-tool .ef-cta-block { padding: 24px 20px; }

  .ef-tool .ef-segments { grid-template-columns: 1fr 1fr; }

  .ef-tool .ef-input-grid,
  .ef-tool .ef-input-grid.ef-cols-3 { grid-template-columns: 1fr; }

  .ef-tool .ef-form-grid       { grid-template-columns: 1fr; }
  .ef-tool .ef-secondary-stats { grid-template-columns: 1fr; gap: 22px; }

  .ef-tool .ef-bar-row {
    grid-template-columns: 100px 1fr 100px;
    gap: 10px;
    font-size: 13px;
  }

  .ef-tool .ef-hero-result { padding: 40px 20px; }

  .ef-tool .ef-hidden-item   { grid-template-columns: 1fr; gap: 8px; }
  .ef-tool .ef-hidden-amount { text-align: left; }

  .ef-tool .ef-gate-features { grid-template-columns: 1fr; }
  .ef-tool .ef-savings-grid  { grid-template-columns: 1fr; }
  .ef-tool .ef-related-grid  { grid-template-columns: 1fr; }

  .ef-tool .ef-sens-item   { grid-template-columns: auto 1fr; }
  .ef-tool .ef-sens-amount { grid-column: 1 / -1; text-align: left; }
}

/* ============================================================================
   END envirofluid-tools.css v2.0
   ============================================================================ */
