sightbox/website/bettersight-calculator.html

896 lines
57 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Business Intelligence Calculator — Bettersight Intelligence</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<style>
:root{
--navy:#0C1A3A;--navy2:#12244C;--navy3:#1a2f5e;
--cyan:#00D4FF;--cyan2:rgba(0,212,255,.12);
--blue:#1B8EF8;--green:#10D98A;--amber:#F79009;--red:#EF4444;--purple:#8B5CF6;
--w1:rgba(255,255,255,.96);--w2:rgba(255,255,255,.65);
--w3:rgba(255,255,255,.35);--w4:rgba(255,255,255,.08);
--border:rgba(255,255,255,.08);--border2:rgba(0,212,255,.2);
--fd:'Space Grotesk',sans-serif;--fb:'Inter',sans-serif;--fm:'JetBrains Mono',monospace;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{font-family:var(--fb);background:var(--navy);color:var(--w1);min-height:100vh;-webkit-font-smoothing:antialiased;padding-bottom:80px;}
/* PROGRESS */
.prog-bar{height:3px;background:rgba(255,255,255,.06);position:sticky;top:0;z-index:10;}
.prog-fill{height:100%;background:linear-gradient(90deg,var(--cyan),var(--blue));transition:width .4s ease;width:0%;}
/* HEADER */
.header{padding:40px 24px 24px;max-width:780px;margin:0 auto;text-align:center;}
.eyebrow{font-family:var(--fm);font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--cyan);margin-bottom:14px;}
.header h1{font-family:var(--fd);font-size:clamp(1.7rem,5vw,2.6rem);font-weight:600;line-height:1.1;color:var(--w1);margin-bottom:12px;}
.header h1 span{color:var(--cyan);}
.header p{font-size:.92rem;color:var(--w2);line-height:1.65;max-width:500px;margin:0 auto 6px;}
.header-note{font-family:var(--fm);font-size:.68rem;color:var(--w3);letter-spacing:.06em;}
/* MODE TOGGLE */
.mode-toggle{max-width:780px;margin:0 auto 28px;padding:0 20px;}
.toggle-wrap{display:flex;background:var(--navy2);border:1px solid var(--border);border-radius:12px;padding:5px;gap:5px;}
.mode-btn{flex:1;padding:12px 16px;border-radius:9px;border:none;cursor:pointer;font-family:var(--fd);font-size:.88rem;font-weight:500;transition:all .2s;text-align:center;line-height:1.3;}
.mode-btn.eff{background:transparent;color:var(--w3);}
.mode-btn.opp{background:transparent;color:var(--w3);}
.mode-btn.eff.active{background:linear-gradient(135deg,var(--blue),var(--cyan));color:var(--navy);}
.mode-btn.opp.active{background:linear-gradient(135deg,var(--purple),var(--blue));color:var(--w1);}
.mode-btn .mode-label{display:block;font-size:.72rem;font-weight:400;opacity:.75;margin-top:2px;}
/* CALCULATOR PANELS */
.calc-panel{display:none;max-width:780px;margin:0 auto;padding:0 20px;}
.calc-panel.active{display:block;}
/* STEP CARD */
.step-card{background:var(--navy2);border:1px solid var(--border);border-radius:14px;padding:26px 26px 22px;margin-bottom:14px;transition:border-color .2s;}
.step-card:focus-within{border-color:var(--border2);}
.step-header{display:flex;align-items:center;gap:12px;margin-bottom:18px;}
.step-num{width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-family:var(--fm);font-size:.72rem;font-weight:500;color:var(--navy);flex-shrink:0;}
.step-num.eff-num{background:linear-gradient(135deg,var(--blue),var(--cyan));}
.step-num.opp-num{background:linear-gradient(135deg,var(--purple),var(--blue));}
.step-title{font-family:var(--fd);font-size:.95rem;font-weight:600;color:var(--w1);}
.step-sub{font-size:.78rem;color:var(--w3);margin-top:2px;}
/* FIELDS */
.field-row{display:grid;grid-template-columns:1fr 140px;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid var(--border);}
.field-row:last-child{border-bottom:none;}
.field-label{font-size:.85rem;color:var(--w2);line-height:1.4;}
.field-label small{display:block;font-size:.73rem;color:var(--w3);margin-top:2px;}
.input-wrap{display:flex;align-items:center;gap:6px;}
.input-wrap span{font-family:var(--fm);font-size:.78rem;color:var(--w3);white-space:nowrap;}
input[type="number"]{width:100%;background:var(--navy);border:1px solid rgba(255,255,255,.14);border-radius:8px;padding:8px 11px;font-family:var(--fm);font-size:.86rem;color:var(--w1);outline:none;transition:border-color .15s,box-shadow .15s;-moz-appearance:textfield;}
input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;}
input[type="number"]:focus{border-color:var(--cyan);box-shadow:0 0 0 3px rgba(0,212,255,.1);}
input[type="number"].has-val{border-color:rgba(0,212,255,.3);}
/* ROLE GRID */
.role-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin-top:4px;}
.role-btn{padding:9px 11px;background:var(--navy);border:1px solid rgba(255,255,255,.12);border-radius:8px;font-family:var(--fb);font-size:.8rem;color:var(--w2);cursor:pointer;transition:all .15s;text-align:left;}
.rate-select{width:100%;background:var(--navy);border:1px solid rgba(255,255,255,.14);border-radius:8px;padding:8px 11px;font-family:var(--fb);font-size:.8rem;color:var(--w2);outline:none;cursor:pointer;transition:border-color .15s,opacity .2s;}
.rate-select:focus{border-color:var(--cyan);}
.rate-select:disabled{opacity:.35;cursor:not-allowed;}
.rate-select option{background:var(--navy2);color:var(--w1);}
.role-btn:hover{border-color:rgba(255,255,255,.25);color:var(--w1);}
.role-btn.active{background:var(--cyan2);border-color:var(--cyan);color:var(--cyan);}
.role-btn .rate{display:block;font-family:var(--fm);font-size:.68rem;color:var(--w3);margin-top:2px;}
.role-btn.active .rate{color:rgba(0,212,255,.55);}
.custom-rate-row{margin-top:10px;display:none;align-items:center;gap:10px;}
.custom-rate-row.show{display:flex;}
.custom-rate-row label{font-size:.81rem;color:var(--w2);white-space:nowrap;}
.custom-rate-row input{max-width:120px;}
/* RESULTS CARD */
.results-card{background:#F0FAFF;border:1px solid #00BCD4;border-radius:14px;padding:24px;margin-bottom:14px;opacity:0;transform:translateY(10px);transition:opacity .35s ease,transform .35s ease;pointer-events:none;}
.results-card.show{opacity:1;transform:translateY(0);pointer-events:all;}
.results-card.opp-card{background:#F5F3FF;border-color:#8B5CF6;}
.res-label{font-family:var(--fm);font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:#007B9A;margin-bottom:18px;}
.res-label.opp{color:#6D28D9;}
.res-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-bottom:20px;}
.res-cell-label{font-size:.72rem;color:#2D3A52;margin-bottom:3px;font-family:var(--fm);letter-spacing:.03em;}
.res-cell-val{font-family:var(--fd);font-size:1.5rem;font-weight:600;line-height:1;}
.danger,.res-cell-val.danger{color:#FF6B6B !important;}
.amber,.res-cell-val.amber{color:#FFA940 !important;}
.green,.res-cell-val.green{color:#10D98A !important;}
.cyan,.res-cell-val.cyan{color:#00D4FF !important;}
.purple,.res-cell-val.purple{color:#A78BFA !important;}
.res-cell-label{font-size:.72rem;color:#2D3A52;margin-bottom:3px;font-family:var(--fm);letter-spacing:.03em;}
/* INSIGHT BOX */
.insight{background:rgba(255,255,255,.06);border-radius:8px;padding:12px 14px;margin-bottom:16px;font-size:.84rem;color:#0C1A3A;line-height:1.6;border-left:3px solid var(--cyan);}
.insight.opp{border-left-color:var(--purple);}
.insight strong{color:#0C1A3A;font-weight:700;}
/* SECTION DIV */
.sec-div{display:flex;align-items:center;gap:10px;margin:16px 0 14px;}
.sec-div-line{flex:1;height:1px;background:#D0D8E8;}
.sec-div-label{font-family:var(--fm);font-size:.63rem;letter-spacing:.14em;text-transform:uppercase;color:#6B7A99;}
/* BAR */
.bar-track{height:7px;background:rgba(255,255,255,.08);border-radius:4px;overflow:hidden;margin:8px 0;}
.bar-fill{height:100%;border-radius:4px;background:linear-gradient(90deg,var(--green),var(--cyan));transition:width .6s cubic-bezier(.4,0,.2,1);width:0%;}
.bar-fill.opp{background:linear-gradient(90deg,var(--purple),var(--blue));}
.bar-foot{display:flex;justify-content:space-between;font-family:var(--fm);font-size:.67rem;color:#6B7A99;}
/* RECO BOX */
.reco-box{border-radius:10px;padding:18px 18px 14px;margin-bottom:14px;}
.reco-box.eff-reco{background:#E8FAF4;border:1px solid #10D98A;}
.reco-box.opp-reco{background:#EDE9FE;border:1px solid #8B5CF6;}
.reco-box.warn-reco{background:#FFF7E6;border:1px solid #F79009;}
.reco-top{font-family:var(--fm);font-size:.66rem;letter-spacing:.13em;text-transform:uppercase;margin-bottom:8px;}
.reco-title{font-family:var(--fd);font-size:1.05rem;font-weight:600;color:#0C1A3A;margin-bottom:8px;}
.reco-body{font-size:.86rem;color:#0C1A3A;line-height:1.65;}
.reco-nums{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0 12px;}
.reco-num-label{font-size:.72rem;color:#2D3A52;font-family:var(--fm);margin-bottom:3px;}
.reco-num-val{font-family:var(--fd);font-size:1.55rem;font-weight:600;line-height:1;}
/* OPPORTUNITY SLIDERS */
.slider-row{padding:10px 0;border-bottom:1px solid var(--border);}
.slider-row:last-child{border-bottom:none;}
.slider-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;}
.slider-label{font-size:.85rem;color:var(--w2);}
.slider-val{font-family:var(--fm);font-size:.85rem;font-weight:500;color:var(--purple);}
input[type="range"]{width:100%;-webkit-appearance:none;appearance:none;height:4px;border-radius:2px;background:rgba(255,255,255,.12);outline:none;cursor:pointer;}
input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;border-radius:50%;background:linear-gradient(135deg,var(--purple),var(--blue));cursor:pointer;border:2px solid var(--navy);}
input[type="range"]::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:linear-gradient(135deg,var(--purple),var(--blue));cursor:pointer;border:2px solid var(--navy);}
.slider-hint{font-size:.74rem;color:#6B7A99;margin-top:3px;}
/* PROACTIVE */
.proactive-box{background:var(--navy2);border:1px solid var(--border);border-radius:14px;padding:22px 24px;margin-bottom:14px;display:none;opacity:0;transform:translateY(10px);transition:opacity .35s ease,transform .35s ease;}
.proactive-q{font-family:var(--fd);font-size:.95rem;font-weight:600;color:var(--w1);margin-bottom:8px;line-height:1.4;}
.proactive-hint{font-size:.81rem;color:var(--w3);margin-bottom:14px;line-height:1.55;}
textarea{width:100%;background:var(--navy);border:1px solid rgba(255,255,255,.12);border-radius:8px;padding:11px 13px;font-family:var(--fb);font-size:.86rem;color:var(--w1);resize:vertical;min-height:80px;outline:none;transition:border-color .15s;line-height:1.5;}
textarea::placeholder{color:var(--w3);}
textarea:focus{border-color:var(--cyan);}
/* LEAD */
.lead-card{background:var(--navy2);border:1px solid var(--border);border-radius:14px;padding:24px;margin-bottom:14px;display:none;opacity:0;transform:translateY(10px);transition:opacity .35s ease,transform .35s ease;}
.toggle-track{width:38px;height:20px;border-radius:10px;background:rgba(255,255,255,.12);position:relative;transition:background .2s;flex-shrink:0;cursor:pointer;}
.toggle-track.on{background:var(--cyan);}
.toggle-thumb{width:14px;height:14px;border-radius:50%;background:white;position:absolute;top:3px;left:3px;transition:transform .2s;}
.toggle-track.on .toggle-thumb{transform:translateX(18px);}
.lead-toggle{display:flex;align-items:center;gap:10px;margin-bottom:16px;cursor:pointer;}
.lead-toggle-label{font-size:.86rem;color:var(--w2);}
.lead-fields{display:none;flex-direction:column;gap:10px;}
.lead-fields.show{display:flex;}
.lead-field label{display:block;font-size:.75rem;color:var(--w3);margin-bottom:4px;font-family:var(--fm);}
.lead-field input{width:100%;background:var(--navy);border:1px solid rgba(255,255,255,.12);border-radius:8px;padding:9px 13px;font-family:var(--fb);font-size:.86rem;color:var(--w1);outline:none;transition:border-color .15s;}
.lead-field input:focus{border-color:var(--cyan);}
.lead-field input::placeholder{color:var(--w3);}
/* CTA */
.cta-section{text-align:center;padding:6px 0 0;display:none;}.proactive-box.revealed,.lead-card.revealed{display:block;opacity:1;transform:translateY(0);}
.cta-btn{display:inline-flex;align-items:center;gap:8px;color:var(--navy);font-family:var(--fd);font-size:.92rem;font-weight:700;padding:14px 30px;border-radius:10px;border:none;cursor:pointer;transition:filter .15s,transform .1s;text-decoration:none;}
.cta-btn.eff-cta{background:linear-gradient(135deg,var(--cyan),var(--blue));}
.cta-btn.opp-cta{background:linear-gradient(135deg,var(--purple),var(--blue));color:var(--w1);}
.cta-btn:hover{filter:brightness(1.08);}
.cta-btn:active{transform:scale(.98);}
.cta-note{font-family:var(--fm);font-size:.68rem;color:var(--w3);margin-top:9px;}
@media(max-width:520px){
.res-grid{grid-template-columns:1fr 1fr;}
.field-row{grid-template-columns:1fr 100px;}
.role-grid{grid-template-columns:1fr 1fr;}
.step-card,.results-card,.reco-box{padding:18px 16px;}
.reco-nums{grid-template-columns:1fr 1fr;}
}
</style>
</head>
<body>
<div class="prog-bar"><div class="prog-fill" id="progFill"></div></div>
<!-- HEADER -->
<div class="header">
<div class="eyebrow">Bettersight Intelligence · Free Tool</div>
<h1>What is your organisation<br><span>actually missing out on?</span></h1>
<p>Two calculators. One shows what you're losing right now. The other shows what you could be winning.</p>
<div class="header-note">Results appear as you answer · No account required · Under 4 minutes</div>
</div>
<!-- MODE TOGGLE -->
<div class="mode-toggle">
<div class="toggle-wrap">
<button class="mode-btn eff active" onclick="setMode('eff')">
What am I losing?
<span class="mode-label">Efficiency loss calculator</span>
</button>
<button class="mode-btn opp" onclick="setMode('opp')">
What am I missing?
<span class="mode-label">Opportunity gain calculator</span>
</button>
</div>
</div>
<!-- ════════════════════════════════════════
PANEL A — EFFICIENCY LOSS
════════════════════════════════════════ -->
<div class="calc-panel active" id="panel-eff">
<!-- Step 1 -->
<div class="step-card">
<div class="step-header">
<div class="step-num eff-num">01</div>
<div>
<div class="step-title">Who spends time on each activity, and how much?</div>
<div class="step-sub">Different people usually do different activities — a document search isn't done by the same person writing proposals. Enter the number of staff and hours per person, per day, for each. Use decimals for hours — 0.5 = 30 mins. Enter 0 for staff or hours if it doesn't apply.</div>
</div>
</div>
<div style="padding:2px 0 14px;border-bottom:1px solid var(--border);margin-bottom:2px;">
<div class="lead-toggle" onclick="toggleBlendedRate()" style="margin-bottom:0;">
<div class="toggle-track" id="e-blend-toggle"><div class="toggle-thumb"></div></div>
<div class="lead-toggle-label">Use one blended rate for all activities instead of a rate per activity</div>
</div>
<div class="custom-rate-row" id="e-custom-row" style="margin-top:12px;">
<label>Blended hourly rate ($)</label>
<input type="number" id="e-custom-rate" min="1" max="500" placeholder="e.g. 35" oninput="calcEff()">
</div>
</div>
<div style="padding:12px 0 6px;border-bottom:1px solid var(--border);">
<div class="field-label" style="margin-bottom:8px;">Searching for documents, reports, or policies<small>Opening drives, scrolling folders, asking colleagues</small></div>
<div style="display:grid;grid-template-columns:1fr 1fr;gap:10px;">
<div class="input-wrap"><input type="number" id="e-s1" min="0" max="10000" placeholder="e.g. 8" oninput="calcEff()"><span>staff</span></div>
<div class="input-wrap"><input type="number" id="e-t1" min="0" max="8" step="0.25" placeholder="e.g. 0.5" oninput="calcEff()"><span>hrs/day</span></div>
</div>
<div style="margin-top:8px;">
<select id="e-r1" class="rate-select" onchange="calcEff()">
<option value="15">Support / Admin ~$15/hr</option>
<option value="25" selected>Operational staff ~$25/hr</option>
<option value="40">Professional / Officer ~$40/hr</option>
<option value="65">Manager / Senior ~$65/hr</option>
<option value="100">Director / Partner ~$100/hr</option>
</select>
</div>
</div>
<div style="padding:12px 0 6px;border-bottom:1px solid var(--border);">
<div class="field-label" style="margin-bottom:8px;">Re-answering questions already answered somewhere<small>Same question from different people, different days</small></div>
<div style="display:grid;grid-template-columns:1fr 1fr;gap:10px;">
<div class="input-wrap"><input type="number" id="e-s2" min="0" max="10000" placeholder="e.g. 8" oninput="calcEff()"><span>staff</span></div>
<div class="input-wrap"><input type="number" id="e-t2" min="0" max="8" step="0.25" placeholder="e.g. 0.25" oninput="calcEff()"><span>hrs/day</span></div>
</div>
<div style="margin-top:8px;">
<select id="e-r2" class="rate-select" onchange="calcEff()">
<option value="15">Support / Admin ~$15/hr</option>
<option value="25" selected>Operational staff ~$25/hr</option>
<option value="40">Professional / Officer ~$40/hr</option>
<option value="65">Manager / Senior ~$65/hr</option>
<option value="100">Director / Partner ~$100/hr</option>
</select>
</div>
</div>
<div style="padding:12px 0 6px;border-bottom:1px solid var(--border);">
<div class="field-label" style="margin-bottom:8px;">Preparing reports, proposals, or briefings manually<small>Assembling content that already exists across multiple files</small></div>
<div style="display:grid;grid-template-columns:1fr 1fr;gap:10px;">
<div class="input-wrap"><input type="number" id="e-s3" min="0" max="10000" placeholder="e.g. 3" oninput="calcEff()"><span>staff</span></div>
<div class="input-wrap"><input type="number" id="e-t3" min="0" max="8" step="0.25" placeholder="e.g. 0.75" oninput="calcEff()"><span>hrs/day</span></div>
</div>
<div style="margin-top:8px;">
<select id="e-r3" class="rate-select" onchange="calcEff()">
<option value="15">Support / Admin ~$15/hr</option>
<option value="25">Operational staff ~$25/hr</option>
<option value="40" selected>Professional / Officer ~$40/hr</option>
<option value="65">Manager / Senior ~$65/hr</option>
<option value="100">Director / Partner ~$100/hr</option>
</select>
</div>
</div>
<div style="padding:12px 0 4px;">
<div class="field-label" style="margin-bottom:8px;">Onboarding or explaining context to new staff<small>Time senior staff spend answering what a system could answer</small></div>
<div style="display:grid;grid-template-columns:1fr 1fr;gap:10px;">
<div class="input-wrap"><input type="number" id="e-s4" min="0" max="10000" placeholder="e.g. 2" oninput="calcEff()"><span>staff</span></div>
<div class="input-wrap"><input type="number" id="e-t4" min="0" max="8" step="0.25" placeholder="e.g. 0.25" oninput="calcEff()"><span>hrs/day</span></div>
</div>
<div style="margin-top:8px;">
<select id="e-r4" class="rate-select" onchange="calcEff()">
<option value="15">Support / Admin ~$15/hr</option>
<option value="25">Operational staff ~$25/hr</option>
<option value="40">Professional / Officer ~$40/hr</option>
<option value="65" selected>Manager / Senior ~$65/hr</option>
<option value="100">Director / Partner ~$100/hr</option>
</select>
</div>
</div>
</div>
<!-- EFFICIENCY RESULTS -->
<div class="results-card" id="e-results">
<div class="res-label">Your efficiency loss — calculated live</div>
<div class="res-grid">
<div><div class="res-cell-label">Person-hours lost / week</div><div class="res-cell-val amber" id="e-hours">—</div></div>
<div><div class="res-cell-label">Cost / week</div><div class="res-cell-val amber" id="e-week">—</div></div>
<div><div class="res-cell-label">Cost / month</div><div class="res-cell-val danger" id="e-month">—</div></div>
<div><div class="res-cell-label">Annual efficiency loss</div><div class="res-cell-val danger" id="e-year">—</div></div>
</div>
<div class="insight" id="e-insight"></div>
<div class="sec-div"><div class="sec-div-line"></div><div class="sec-div-label">What you stand to recover</div><div class="sec-div-line"></div></div>
<div id="e-reco"></div>
<div style="margin-top:16px;">
<div style="display:flex;justify-content:space-between;align-items:center;font-size:.78rem;color:#2D3A52;margin-bottom:6px;">
<span>Net value recoverable *</span>
<span style="font-family:var(--fm);font-size:.82rem;font-weight:500;color:var(--cyan);" id="e-ratio">—</span>
</div>
<div class="bar-track"><div class="bar-fill" id="e-bar"></div></div>
<div class="bar-foot"><span>Recoverable value *</span><span id="e-bar-label">Annual efficiency loss</span></div>
</div>
</div>
<!-- Proactive -->
<div class="proactive-box">
<div class="step-header" style="margin-bottom:10px;">
<div class="step-num eff-num">02</div>
<div><div class="step-title">The opportunity question</div></div>
</div>
<div class="proactive-q">"What would your team do more of — or for the first time — if producing a report or proposal took four hours instead of three days?"</div>
<div class="proactive-hint">Think about proposals you skip, tenders you don't respond to, reports produced less often than they should be — because assembly time makes them not worth the effort.</div>
<textarea id="e-proactive" placeholder="e.g. We'd respond to three times as many funding opportunities..."></textarea>
</div>
<!-- Lead -->
<div class="lead-card">
<div class="step-header" style="margin-bottom:4px;">
<div class="step-num" style="background:rgba(255,255,255,.1);color:var(--w2);">03</div>
<div><div class="step-title">Want a copy of your results?</div><div class="step-sub">Optional — we'll email you a copy of your results to review together</div></div>
</div>
<div class="lead-toggle" onclick="toggleLead('e')">
<div class="toggle-track" id="e-toggle"><div class="toggle-thumb"></div></div>
<div class="lead-toggle-label">Yes, send me a copy and let's discuss next steps</div>
</div>
<div class="lead-fields" id="e-lead-fields">
<div class="lead-field"><label>Your name</label><input type="text" id="e-name" placeholder="Kezia Alleyne" oninput="calcEff()"></div>
<div class="lead-field"><label>Email address</label><input type="email" id="e-email" placeholder="kezia@organisation.com"></div>
<div class="lead-field"><label>Organisation</label><input type="text" id="e-org" placeholder="Meridian Associates" oninput="calcEff()"></div>
<div class="lead-field"><label>Sector</label><input type="text" id="e-sector" placeholder="e.g. NGO, Insurance, Legal"></div>
</div>
</div>
<div class="cta-section" id="e-cta">
<div style="background:#F0FAFF;border:1px solid #00BCD4;border-radius:10px;padding:16px 20px;margin-bottom:16px;font-size:.87rem;color:#0C1A3A;line-height:1.7;" id="e-summary"></div>
<a href="#" class="cta-btn eff-cta" id="e-cta-btn">Turn this into a plan →</a>
<div class="cta-note" id="e-cta-note">We'll come prepared with your results and create a plan that considers the size and peculiarities of your organisation.</div>
<div id="e-basis" style="font-size:.7rem;color:#6B7A99;line-height:1.7;margin-top:18px;max-width:600px;margin-left:auto;margin-right:auto;text-align:center;padding:0 8px;"></div>
</div>
</div><!-- /panel-eff -->
<!-- ════════════════════════════════════════
PANEL B — OPPORTUNITY GAIN
════════════════════════════════════════ -->
<div class="calc-panel" id="panel-opp">
<!-- Step 1 -->
<div class="step-card">
<div class="step-header">
<div class="step-num opp-num">01</div>
<div>
<div class="step-title">How long does a proposal currently take?</div>
<div class="step-sub">This tells us how much capacity a time reduction actually frees up — not a guess, a calculation from your own pace</div>
</div>
</div>
<div class="field-row">
<div class="field-label">Proposals, tenders, or funding applications per year<small>Include ones you rush or skip because of time constraints</small></div>
<div class="input-wrap">
<input type="number" id="o-proposals" min="0" max="1000" placeholder="e.g. 12" oninput="calcOpp()">
<span>/ year</span>
</div>
</div>
<div class="field-row">
<div class="field-label">Average hours to prepare one, start to finish<small>Research, drafting, review — the full cycle</small></div>
<div class="input-wrap">
<input type="number" id="o-hrs-per-prop" min="0" max="500" step="0.5" placeholder="e.g. 24" oninput="calcOpp()">
<span>hrs</span>
</div>
</div>
<div class="field-row">
<div class="field-label">Opportunities skipped entirely because preparation takes too long<small>Tenders, RFPs, or grants you didn't respond to at all</small></div>
<div class="input-wrap">
<input type="number" id="o-skipped" min="0" max="500" placeholder="e.g. 5" oninput="calcOpp()">
<span>/ year</span>
</div>
</div>
</div>
<!-- Step 2 — value inputs -->
<div class="step-card">
<div class="step-header">
<div class="step-num opp-num">02</div>
<div>
<div class="step-title">What is a win worth to you?</div>
<div class="step-sub">Rough estimates are fine — these give the calculator context for your sector</div>
</div>
</div>
<div class="field-row">
<div class="field-label">Average value of a won proposal or contract<small>Revenue, grant value, or contract size</small></div>
<div class="input-wrap">
<span>$</span>
<input type="number" id="o-contract-val" min="0" placeholder="e.g. 25000" oninput="calcOpp()">
</div>
</div>
<div class="field-row">
<div class="field-label">Your current win rate on proposals submitted<small>What percentage do you typically win?</small></div>
<div class="input-wrap">
<input type="number" id="o-win-rate" min="1" max="100" placeholder="e.g. 30" oninput="calcOpp()">
<span>%</span>
</div>
</div>
</div>
<!-- OPPORTUNITY RESULTS -->
<div class="results-card opp-card" id="o-results">
<div class="res-label opp">Your opportunity gain — calculated live</div>
<div class="res-grid">
<div><div class="res-cell-label">Additional capacity / yr</div><div class="res-cell-val purple" id="o-extra-props">—</div></div>
<div><div class="res-cell-label">Additional wins / yr</div><div class="res-cell-val purple" id="o-extra-wins">—</div></div>
<div><div class="res-cell-label">Annual opportunity value *</div><div class="res-cell-val green" id="o-extra-rev">—</div></div>
</div>
<div class="insight opp" id="o-insight"></div>
<div class="sec-div"><div class="sec-div-line"></div><div class="sec-div-label">What you stand to gain</div><div class="sec-div-line"></div></div>
<div id="o-reco"></div>
<div style="margin-top:16px;">
<div style="display:flex;justify-content:space-between;align-items:center;font-size:.78rem;color:#2D3A52;margin-bottom:6px;">
<span>Net value gained *</span>
<span style="font-family:var(--fm);font-size:.82rem;font-weight:500;color:var(--purple);" id="o-ratio">—</span>
</div>
<div class="bar-track"><div class="bar-fill opp" id="o-bar"></div></div>
<div class="bar-foot"><span>Net gain after possible service cost</span><span id="o-bar-label">Annual opportunity value</span></div>
</div>
</div>
<!-- Proactive -->
<div class="proactive-box">
<div class="step-header" style="margin-bottom:10px;">
<div class="step-num opp-num">03</div>
<div><div class="step-title">Your biggest untapped opportunity</div></div>
</div>
<div class="proactive-q">"If your team could respond to every relevant opportunity — and win at a higher rate — what would that mean for your organisation in 12 months?"</div>
<div class="proactive-hint">Think about the specific grant, tender, client, or market you'd target first if preparation time was no longer the constraint.</div>
<textarea id="o-proactive" placeholder="e.g. We'd finally respond to the CDB regional resilience fund — we've skipped it three years running because the application is too detailed for our current process..."></textarea>
</div>
<!-- Lead -->
<div class="lead-card">
<div class="step-header" style="margin-bottom:4px;">
<div class="step-num" style="background:rgba(255,255,255,.1);color:var(--w2);">04</div>
<div><div class="step-title">Want a copy of your results?</div><div class="step-sub">Optional — we'll email you a copy of your results to review together</div></div>
</div>
<div class="lead-toggle" onclick="toggleLead('o')">
<div class="toggle-track" id="o-toggle"><div class="toggle-thumb"></div></div>
<div class="lead-toggle-label">Yes, send me a copy and let's discuss next steps</div>
</div>
<div class="lead-fields" id="o-lead-fields">
<div class="lead-field"><label>Your name</label><input type="text" id="o-name" placeholder="David Ramkhelawan" oninput="calcOpp()"></div>
<div class="lead-field"><label>Email address</label><input type="email" id="o-email" placeholder="david@firm.com"></div>
<div class="lead-field"><label>Organisation</label><input type="text" id="o-org" placeholder="Ramkhelawan & Associates" oninput="calcOpp()"></div>
<div class="lead-field"><label>Sector</label><input type="text" id="o-sector" placeholder="e.g. Legal, Insurance, NGO"></div>
</div>
</div>
<div class="cta-section" id="o-cta">
<div style="background:#F5F3FF;border:1px solid #8B5CF6;border-radius:10px;padding:16px 20px;margin-bottom:16px;font-size:.87rem;color:#0C1A3A;line-height:1.7;" id="o-summary"></div>
<a href="#" class="cta-btn opp-cta" id="o-cta-btn">Turn this into a plan →</a>
<div class="cta-note" id="o-cta-note">We have your results. Let's create a plan that considers the size and peculiarities of your organisation.</div>
<div id="o-basis" style="font-size:.7rem;color:#6B7A99;line-height:1.7;margin-top:18px;max-width:600px;margin-left:auto;margin-right:auto;text-align:center;padding:0 8px;"></div>
</div>
</div><!-- /panel-opp -->
<script>
// ── State ──────────────────────────────────────────────────────────
let useBlendedRate = false, eLeadOpen = false, oLeadOpen = false;
const ESSENTIALS = 349*12;
const INTELLIGENCE = 899*12;
function fmt(n){
if(n>=1000000) return '$'+(n/1000000).toFixed(1)+'M';
if(n>=1000) return '$'+Math.round(n/1000)+'k';
return '$'+Math.round(n);
}
// ── Mode toggle ────────────────────────────────────────────────────
function setMode(m){
document.querySelectorAll('.mode-btn').forEach(b=>b.classList.remove('active'));
document.querySelectorAll('.calc-panel').forEach(p=>p.classList.remove('active'));
document.querySelector('.mode-btn.'+m).classList.add('active');
document.getElementById('panel-'+m).classList.add('active');
document.getElementById('progFill').style.width='0%';
}
// ── Lead toggles ───────────────────────────────────────────────────
function toggleLead(p){
if(p==='e'){ eLeadOpen=!eLeadOpen; document.getElementById('e-toggle').classList.toggle('on',eLeadOpen); document.getElementById('e-lead-fields').classList.toggle('show',eLeadOpen); }
else{ oLeadOpen=!oLeadOpen; document.getElementById('o-toggle').classList.toggle('on',oLeadOpen); document.getElementById('o-lead-fields').classList.toggle('show',oLeadOpen); }
}
// ── Efficiency calc ────────────────────────────────────────────────
function toggleBlendedRate(){
useBlendedRate = !useBlendedRate;
document.getElementById('e-blend-toggle').classList.toggle('on', useBlendedRate);
document.getElementById('e-custom-row').classList.toggle('show', useBlendedRate);
document.querySelectorAll('.rate-select').forEach(sel => sel.disabled = useBlendedRate);
calcEff();
}
function calcEff(){
const s1=parseFloat(document.getElementById('e-s1').value)||0;
const s2=parseFloat(document.getElementById('e-s2').value)||0;
const s3=parseFloat(document.getElementById('e-s3').value)||0;
const s4=parseFloat(document.getElementById('e-s4').value)||0;
const t1=parseFloat(document.getElementById('e-t1').value)||0;
const t2=parseFloat(document.getElementById('e-t2').value)||0;
const t3=parseFloat(document.getElementById('e-t3').value)||0;
const t4=parseFloat(document.getElementById('e-t4').value)||0;
const blendedRate=parseFloat(document.getElementById('e-custom-rate').value)||0;
const r1=parseFloat(document.getElementById('e-r1').value)||0;
const r2=parseFloat(document.getElementById('e-r2').value)||0;
const r3=parseFloat(document.getElementById('e-r3').value)||0;
const r4=parseFloat(document.getElementById('e-r4').value)||0;
['e-s1','e-s2','e-s3','e-s4','e-t1','e-t2','e-t3','e-t4'].forEach(id=>{
document.getElementById(id).classList.toggle('has-val',parseFloat(document.getElementById(id).value)>0);
});
// Each activity's daily hours are driven by its own staff count —
// a document search isn't done by the same person writing proposals.
// Each activity also carries its own rate by default, since the
// person searching documents is rarely the person writing proposals —
// unless the blended-rate toggle is on, in which case one rate applies to all.
const hrs1=s1*t1, hrs2=s2*t2, hrs3=s3*t3, hrs4=s4*t4;
const hrsDayTotal=hrs1+hrs2+hrs3+hrs4; // combined person-hours per day across all activities
const hrsWeek=hrsDayTotal*5;
let weekCost;
let rate; // used only for display/footnote purposes when blended
if(useBlendedRate){
rate=blendedRate;
weekCost=hrsWeek*blendedRate;
} else {
// Sum each activity's cost at its own rate, then combine
weekCost=(hrs1*r1 + hrs2*r2 + hrs3*r3 + hrs4*r4)*5;
// Effective blended rate for display purposes only (weighted average)
rate=hrsDayTotal>0 ? weekCost/hrsWeek : 0;
}
const yearCost=weekCost*52;
const anyStaff=(s1+s2+s3+s4)>0;
const anyHours=(t1+t2+t3+t4)>0;
const rateReady=useBlendedRate ? blendedRate>0 : true; // per-activity selects always have a default value
const filled=[anyStaff?1:0, anyHours?1:0, rateReady?1:0].filter(v=>v>0).length;
document.getElementById('progFill').style.width=Math.round((filled/3)*100)+'%';
const card=document.getElementById('e-results');
const cta=document.getElementById('e-cta');
if(anyStaff&&anyHours&&rateReady&&hrsDayTotal>0){
card.classList.add('show');
// ── WEIGHTED RECOVERY CALCULATION ───────────────────────────
// Each activity has a different AI-assisted time reduction:
// t1 Searching documents/policies → AI returns cited answer ~1 min → ~98% reduction
// t2 Re-answering repeated questions → AI returns in ~2 min → ~90% reduction
// t3 Preparing reports/proposals → AI assists assembly, human edits → ~65% reduction
// t4 Onboarding/explaining context → AI answers factual questions → ~75% reduction
// Weighted composite = sum(activity_hrs × reduction) / total_hrs
// Published rate capped at 80% as conservative floor — never overclaim
const W_SEARCH = 0.98;
const W_REANSWER = 0.90;
const W_REPORTS = 0.65;
const W_ONBOARD = 0.75;
// Weight by person-hours per activity (staff × hours), not raw hours —
// this correctly reflects that different staff do different activities
const rawWeighted = hrsDayTotal > 0
? ((hrs1*W_SEARCH) + (hrs2*W_REANSWER) + (hrs3*W_REPORTS) + (hrs4*W_ONBOARD)) / hrsDayTotal
: 0;
const recoveryRate = Math.min(rawWeighted, 0.80);
const weightedPct = Math.round(rawWeighted * 100);
const publishedPct = Math.round(recoveryRate * 100);
// Build footnote text — shown as * next to metric, not as a prominent block
const t1Pct = hrs1>0 ? `document search ${Math.round(W_SEARCH*100)}%` : '';
const t2Pct = hrs2>0 ? `repeated queries ${Math.round(W_REANSWER*100)}%` : '';
const t3Pct = hrs3>0 ? `reports/proposals ${Math.round(W_REPORTS*100)}%` : '';
const t4Pct = hrs4>0 ? `onboarding ${Math.round(W_ONBOARD*100)}%` : '';
const activePcts = [t1Pct,t2Pct,t3Pct,t4Pct].filter(Boolean).join(', ');
const rateModeText = useBlendedRate
? `Cost calculated using a single blended rate of $${blendedRate}/hr across all activities. `
: `Cost calculated per activity using its own hourly rate, then combined — a document search is rarely done by the same person writing proposals. Effective blended rate: $${rate.toFixed(0)}/hr. `;
const footnoteText = `* Recovery rate basis: staff and hours counted separately per activity, since different people typically do different tasks. ${rateModeText}`
+ `AI-assisted time reduction by activity — ${activePcts}. `
+ `Weighted composite: ${weightedPct}%. `
+ `Published rate capped at ${publishedPct}% as a conservative floor to account for `
+ `retrieval misses (~10% of queries), answer verification time, and documents not yet indexed. `
+ `Most organisations see higher returns once the system is calibrated to their specific documents.`;
document.getElementById('e-basis').textContent = footnoteText;
document.getElementById('e-hours').textContent=hrsWeek.toFixed(1)+' hrs';
document.getElementById('e-week').textContent=fmt(weekCost);
document.getElementById('e-month').textContent=fmt(weekCost*4.33);
document.getElementById('e-year').textContent=fmt(yearCost);
// insight
let msg='';
if(yearCost<5000) msg=`Your annual efficiency loss of <strong>${fmt(yearCost)}/year</strong> is modest at face value — but most organisations find the real number is 2–3× higher once meeting prep, policy confusion, and knowledge transfer costs are included.`;
else if(yearCost<20000) msg=`<strong>${fmt(yearCost)} per year</strong> is your annual efficiency loss in unproductive retrieval time — the equivalent of roughly <strong>${Math.round(yearCost/(rate*2000)*10)/10} full-time salaries</strong> absorbed by work a knowledge system handles automatically.`;
else if(yearCost<60000) msg=`At <strong>${fmt(yearCost)} per year</strong> your organisation faces a significant annual efficiency loss that never appears on any report. Your people are not the problem — they are capable professionals operating in a system that forces them to act as search engines.`;
else msg=`<strong>${fmt(yearCost)} per year</strong> — this is a material annual efficiency loss hiding inside your salary line. At this scale a knowledge infrastructure investment is a strategic financial decision, not an efficiency tool.`;
document.getElementById('e-insight').innerHTML=msg;
// recovery logic
const recovered=yearCost*recoveryRate;
const reco=document.getElementById('e-reco');
reco.innerHTML='';
let tierRec,boxClass,recoTop,recoTitle,recoBody,netGain,tierAnnual;
if(recovered>=INTELLIGENCE*2){ tierRec='intelligence'; tierAnnual=INTELLIGENCE; }
else if(recovered>=ESSENTIALS*2){ tierRec='essentials'; tierAnnual=ESSENTIALS; }
else if(recovered>=ESSENTIALS){ tierRec='essentials_borderline'; tierAnnual=ESSENTIALS; }
else { tierRec='none'; tierAnnual=ESSENTIALS; }
netGain=recovered-tierAnnual;
if(tierRec==='none'){
boxClass='warn-reco';
recoTop='<span style="color:#B45309;">Your result</span>';
recoTitle='Your annual efficiency loss may not justify the investment yet';
recoBody=`At a ${publishedPct}% weighted recovery rate, you stand to recover <strong style="color:#B45309">${fmt(recovered)}/year</strong>. That is a real saving — and there are likely additional losses not captured here. Most organisations find their real number is 2–3× higher once we look at the full picture. Your potential recovery could be significantly greater.`;
} else {
const tierLabel=tierRec==='intelligence'?'Intelligence':'Essentials';
boxClass='eff-reco';
recoTop='<span style="color:#059669;">What you stand to recover</span>';
recoTitle='';
recoBody=(tierRec==='essentials_borderline')
?`Based on your numbers, your potential recovery exceeds the possible service cost from day one. As your document base grows the recovery value improves over time.`
:`Based on your numbers, your potential recovery significantly exceeds the possible service cost. The ${publishedPct}% recovery estimate used here is a conservative floor — most organisations see higher returns once the system is calibrated to their specific documents and workflows.`;
}
const box=document.createElement('div');
box.className='reco-box '+boxClass;
if(tierRec==='none'){
box.innerHTML=`<div class="reco-top">${recoTop}</div><div class="reco-title">${recoTitle}</div><div class="reco-body">${recoBody}</div>`;
} else {
box.innerHTML=`
<div class="reco-top">${recoTop}</div>
<div class="reco-nums">
<div><div class="reco-num-label">Value recovered / year *</div><div class="reco-num-val" style="color:var(--green);">${fmt(recovered)}</div><div style="font-size:.72rem;color:#6B7A99;margin-top:3px;">at ${publishedPct}% conservative recovery rate</div></div>
<div><div class="reco-num-label">Net gain after cost</div><div class="reco-num-val" style="color:${netGain>0?'var(--cyan)':'var(--amber)'};">${netGain>0?fmt(netGain):'-'+fmt(Math.abs(netGain))}</div><div style="font-size:.72rem;color:#6B7A99;margin-top:3px;">net gain after possible service cost</div></div>
</div>
<div class="reco-body" style="border-top:1px solid #10D98A;padding-top:10px;">${recoBody}</div>`;
}
reco.appendChild(box);
document.getElementById('e-bar').style.width=(Math.min(Math.max(netGain,0)/yearCost,1)*100)+'%';
document.getElementById('e-ratio').textContent=(netGain>0?fmt(netGain):'-'+fmt(Math.abs(netGain)))+' net recoverable *';
document.getElementById('e-bar-label').textContent='Annual efficiency loss: '+fmt(yearCost);
// Reveal proactive question and lead card once results are showing
document.querySelectorAll('#panel-eff .proactive-box, #panel-eff .lead-card').forEach(el => {
el.classList.add('revealed');
el.style.display = 'block';
requestAnimationFrame(() => { el.style.opacity='1'; el.style.transform='translateY(0)'; });
});
cta.style.display='block';
const subject=encodeURIComponent('Bettersight Intelligence — Results Review');
const body=buildEffBody(s1,s2,s3,s4,t1,t2,t3,t4,r1,r2,r3,r4,useBlendedRate,blendedRate,hrsWeek,weekCost,yearCost,rate,recovered,tierRec,publishedPct);
document.getElementById('e-cta-btn').href='mailto:hello@undodesigns.com?subject='+subject+'&body='+body;
document.getElementById('e-cta-note').textContent='We have your results. Let\'s create a plan that considers the size and peculiarities of your organisation.';
// Summary statement before CTA
const eSummary = document.getElementById('e-summary');
const eRecoveredFmt = fmt(recovered);
const eNetFmt = netGain>0?fmt(netGain):'-'+fmt(Math.abs(netGain));
const eYearFmt = fmt(yearCost);
if(tierRec==='none'){
eSummary.innerHTML = `Your results show an annual efficiency loss of <strong>${eYearFmt}</strong>. At a ${publishedPct}% weighted recovery rate, you stand to recover <strong>${eRecoveredFmt}/year</strong> — after a possible service cost, a net gain of <strong>${eNetFmt}/year</strong>. Your results give us what we need to identify where the highest-impact changes are — and to create a plan that considers the size and peculiarities of your organisation.`;
} else {
eSummary.innerHTML = `Your results show an annual efficiency loss of <strong>${eYearFmt}</strong>. At a ${publishedPct}% weighted recovery rate, you stand to recover <strong>${eRecoveredFmt}/year</strong> — after a possible service cost, a net gain of <strong>${eNetFmt}/year</strong>. These numbers give us everything we need to create a plan that considers the size and peculiarities of your organisation.`;
}
} else {
card.classList.remove('show');
cta.style.display='none';
document.querySelectorAll('#panel-eff .proactive-box, #panel-eff .lead-card').forEach(el => {
el.classList.remove('revealed');
el.style.opacity='0'; el.style.transform='translateY(10px)';
setTimeout(() => { el.style.display='none'; }, 350);
});
}
}
// ── Opportunity calc ───────────────────────────────────────────────
function calcOpp(){
const props=parseFloat(document.getElementById('o-proposals').value)||0;
const hrsPerProp=parseFloat(document.getElementById('o-hrs-per-prop').value)||0;
const skipped=parseFloat(document.getElementById('o-skipped').value)||0;
const contractVal=parseFloat(document.getElementById('o-contract-val').value)||0;
const winRate=(parseFloat(document.getElementById('o-win-rate').value)||0)/100;
const filled=[props+skipped,hrsPerProp,contractVal,winRate].filter(v=>v>0).length;
document.getElementById('progFill').style.width=Math.round((filled/4)*100)+'%';
const card=document.getElementById('o-results');
const cta=document.getElementById('o-cta');
if(props>0&&hrsPerProp>0&&contractVal>0&&winRate>0){
card.classList.add('show');
// ── COMPOSITE CAPACITY MODEL ─────────────────────────────────
// Uses the same published W_REPORTS rate (65%) as the efficiency
// calculator's report/proposal reduction — one rate, used consistently,
// never inflated for this calculator specifically.
const W_REPORTS = 0.65;
const currentAnnualHours = props * hrsPerProp;
const hoursFreed = currentAnnualHours * W_REPORTS;
const newHrsPerProp = hrsPerProp * (1 - W_REPORTS); // 35% of original time remains
const extraCapacity = newHrsPerProp>0 ? Math.floor(hoursFreed / newHrsPerProp) : 0;
// Total addressable opportunities = current submissions + previously skipped + new capacity
const newTotalProps = props + extraCapacity;
// Wins at existing win rate — no assumed improvement in quality or conversion
const currentWins = Math.round(props * winRate);
const newWins = Math.round(newTotalProps * winRate);
const extraWins = Math.max(newWins - currentWins, 0);
const extraRev = extraWins * contractVal;
// Skipped opportunity value — what was already achievable but not pursued at all
const skippedValue = skipped * winRate * contractVal;
const totalOpportunityValue = extraRev + skippedValue;
// Possible service cost — same tier constants as efficiency calculator
let tierAnnualOpp;
if(totalOpportunityValue>=INTELLIGENCE*2){ tierAnnualOpp=INTELLIGENCE; }
else { tierAnnualOpp=ESSENTIALS; }
const netGainOpp = totalOpportunityValue - tierAnnualOpp;
document.getElementById('o-extra-props').textContent='+'+extraCapacity;
document.getElementById('o-extra-wins').textContent='+'+extraWins;
document.getElementById('o-extra-rev').textContent=fmt(totalOpportunityValue);
// Insight
let msg='';
if(totalOpportunityValue<10000) msg=`The additional <strong>${fmt(totalOpportunityValue)}/year</strong> is calculated from your own preparation pace — ${hrsPerProp} hours per proposal today, reduced by a published 65% rate. The real number grows as your document base matures and preparation time drops further.`;
else if(totalOpportunityValue<50000) msg=`<strong>${fmt(totalOpportunityValue)}/year</strong> in additional opportunity value — from the same team, the same expertise, the same win rate — just without the preparation bottleneck limiting how many opportunities you could pursue.`;
else msg=`<strong>${fmt(totalOpportunityValue)}/year</strong> in additional opportunity value — from opportunities that already exist in your market, at your existing win rate. The only thing that changes is how many you can prepare for.`;
if(skippedValue>0) msg+=` That figure includes approximately <strong>${fmt(skippedValue)}/year</strong> from opportunities you were already capable of winning but skipped entirely. Many tender and grant windows are short — at a reduced preparation time of ${newHrsPerProp.toFixed(1)} hours per proposal, opportunities you currently miss on timing become ones you can realistically pursue.`;
document.getElementById('o-insight').innerHTML=msg;
// Reco box
const reco=document.getElementById('o-reco');
reco.innerHTML='';
const box=document.createElement('div');
box.className='reco-box opp-reco';
let recoMsg;
if(totalOpportunityValue>=INTELLIGENCE*3){
recoMsg=`Your opportunity value of <strong>${fmt(totalOpportunityValue)}/year</strong> represents a strong return relative to a possible service cost. The additional capacity and wins compound — the more your team uses it, the wider the advantage grows.`;
} else if(totalOpportunityValue>=ESSENTIALS*2){
recoMsg=`Your opportunity value of <strong>${fmt(totalOpportunityValue)}/year</strong> represents a clear positive return relative to a possible service cost. As your proposal volume grows, the potential compounds further.`;
} else {
recoMsg=`Even calculated conservatively from your own preparation pace, the additional opportunity value is real. Your results give us everything we need to identify the specific opportunities in your pipeline where this would have the fastest impact.`;
}
box.innerHTML=`
<div class="reco-top"><span style="color:#6D28D9;">What you stand to gain</span></div>
<div class="reco-nums">
<div><div class="reco-num-label">Annual opportunity value *</div><div class="reco-num-val" style="color:var(--green);">${fmt(totalOpportunityValue)}</div><div style="font-size:.72rem;color:#6B7A99;margin-top:3px;">extra capacity + skipped value recovered</div></div>
<div><div class="reco-num-label">Net gain after cost</div><div class="reco-num-val" style="color:${netGainOpp>0?'var(--cyan)':'var(--amber)'};">${netGainOpp>0?fmt(netGainOpp):'-'+fmt(Math.abs(netGainOpp))}</div><div style="font-size:.72rem;color:#6B7A99;margin-top:3px;">annual value minus possible service cost</div></div>
</div>
<div class="reco-body" style="border-top:1px solid #8B5CF6;padding-top:10px;">${recoMsg}</div>`;
reco.appendChild(box);
document.getElementById('o-bar').style.width=(Math.min(Math.max(netGainOpp,0)/(totalOpportunityValue||1),1)*100)+'%';
document.getElementById('o-ratio').textContent=(netGainOpp>0?fmt(netGainOpp):'-'+fmt(Math.abs(netGainOpp)))+' net';
document.getElementById('o-bar-label').textContent='Annual opportunity value: '+fmt(totalOpportunityValue);
// Footnote — calculation basis
const basisEl = document.getElementById('o-basis');
basisEl.textContent = `* Capacity gain basis: at ${hrsPerProp} hours per proposal today, a 65% time reduction (the same published rate used in our efficiency calculations for report and proposal preparation) frees ${hoursFreed.toFixed(0)} hours per year — enough for approximately ${extraCapacity} additional proposals at your current pace. Wins are calculated at your existing ${(winRate*100).toFixed(0)}% win rate, with no assumed improvement in quality or conversion. Net gain is the annual opportunity value minus a possible service cost, using the tier your results indicate.`;
// Reveal proactive question and lead card once results are showing
document.querySelectorAll('#panel-opp .proactive-box, #panel-opp .lead-card').forEach(el => {
el.classList.add('revealed');
el.style.display = 'block';
requestAnimationFrame(() => { el.style.opacity='1'; el.style.transform='translateY(0)'; });
});
cta.style.display='block';
const subject=encodeURIComponent('Bettersight Intelligence — Opportunity Results Review');
const body=buildOppBody(props,hrsPerProp,skipped,contractVal,winRate,extraCapacity,extraWins,totalOpportunityValue,skippedValue,netGainOpp);
document.getElementById('o-cta-btn').href='mailto:hello@undodesigns.com?subject='+subject+'&body='+body;
// Summary statement before CTA
const oSummary = document.getElementById('o-summary');
const oNetFmt = netGainOpp>0?fmt(netGainOpp):'-'+fmt(Math.abs(netGainOpp));
oSummary.innerHTML = `Your results show <strong>${extraCapacity} additional proposals</strong> of capacity per year and <strong>${fmt(totalOpportunityValue)}/year</strong> in opportunity value — after a possible service cost, a net gain of <strong>${oNetFmt}/year</strong>. These numbers give us everything we need to create a plan that considers the size and peculiarities of your organisation.`;
} else {
card.classList.remove('show');
cta.style.display='none';
document.querySelectorAll('#panel-opp .proactive-box, #panel-opp .lead-card').forEach(el => {
el.classList.remove('revealed');
el.style.opacity='0'; el.style.transform='translateY(10px)';
setTimeout(() => { el.style.display='none'; }, 350);
});
}
}
// ── Email builders ─────────────────────────────────────────────────
function buildEffBody(s1,s2,s3,s4,t1,t2,t3,t4,r1,r2,r3,r4,useBlendedRate,blendedRate,hrsWeek,weekCost,yearCost,rate,recovered,tierRec,publishedPct){
const tierLabels={intelligence:'Strong ROI case — high recovery potential',essentials:'Positive ROI case — solid recovery potential',essentials_borderline:'Borderline ROI — worth reviewing full picture',none:'Low loss detected — may have uncounted factors'};
const name=document.getElementById('e-name').value||'Not specified';
const org=document.getElementById('e-org').value||'Not specified';
const sector=document.getElementById('e-sector').value||'Not specified';
const proactive=document.getElementById('e-proactive').value||'Not provided';
const rateLines = useBlendedRate
? ['Rate mode: single blended rate — $'+blendedRate+'/hr for all activities']
: [
'Rate mode: per-activity rates',
'Document search rate: $'+r1+'/hr',
'Repeated questions rate: $'+r2+'/hr',
'Reports/proposals rate: $'+r3+'/hr',
'Onboarding rate: $'+r4+'/hr'
];
const lines=[
'Bettersight Intelligence — Efficiency Results','',
'Name: '+name,'Organisation: '+org,'Sector: '+sector,'',
'--- Audit Results (by activity) ---',
'Document search: '+s1+' staff x '+t1+' hrs/day',
'Repeated questions: '+s2+' staff x '+t2+' hrs/day',
'Reports/proposals: '+s3+' staff x '+t3+' hrs/day',
'Onboarding: '+s4+' staff x '+t4+' hrs/day',
...rateLines,
'Effective blended rate: $'+rate.toFixed(0)+'/hr',
'Total person-hours lost per week: '+hrsWeek.toFixed(1)+' hrs',
'Annual efficiency loss: $'+Math.round(yearCost),'',
'--- Recovery projection ('+publishedPct+'% weighted rate) ---',
'Value recoverable per year: $'+Math.round(recovered),
'Recovery assessment: '+(tierLabels[tierRec]||'To be discussed in review'),'',
'--- Opportunity question ---',proactive,'',
'I have completed the efficiency calculator. Please contact me to review my results and discuss next steps.'
];
return encodeURIComponent(lines.join('\n'));
}
function buildOppBody(props,hrsPerProp,skipped,contractVal,winRate,extraCapacity,extraWins,totalOpportunityValue,skippedValue,netGainOpp){
const name=document.getElementById('o-name').value||'Not specified';
const org=document.getElementById('o-org').value||'Not specified';
const sector=document.getElementById('o-sector').value||'Not specified';
const proactive=document.getElementById('o-proactive').value||'Not provided';
const lines=[
'Bettersight Intelligence — Opportunity Results Review','',
'Name: '+name,'Organisation: '+org,'Sector: '+sector,'',
'--- Opportunity Results ---',
'Current proposals per year: '+props,
'Average hours per proposal: '+hrsPerProp,
'Opportunities skipped per year: '+skipped,
'Average contract/grant value: $'+contractVal,
'Current win rate: '+(winRate*100)+'%',
'Additional capacity (proposals/year): '+extraCapacity,
'Additional wins projected: '+extraWins,
'Annual opportunity value: $'+Math.round(totalOpportunityValue),
'Skipped opportunity value included: $'+Math.round(skippedValue),
'Net gain after possible service cost: $'+Math.round(netGainOpp),'',
'--- Biggest untapped opportunity ---',proactive,'',
'I have completed the opportunity calculator. Please contact me to review my results and discuss next steps.'
];
return encodeURIComponent(lines.join('\\n'));
}
</script>
</body>
</html>