// BlueprintReportAppendices.jsx
// Appendix B, Data sources & inputs
// Appendix C, Methodology

function AppendixBPage() {
  const sources = [
    { cat: "Quantitative",  src: "Hartwell Ibcos Gold extracts",     period: "FY23 to FY25", note: "Service-job revenue, parts revenue, customer transaction history. Pulled by Mike Pollard." },
    { cat: "Quantitative",  src: "Outlook + Teams analytics",        period: "Q1 2026",     note: "Out-of-hours email and chat traffic. Used to estimate after-hours enquiry volume." },
    { cat: "Quantitative",  src: "Service-vehicle telematics",        period: "FY25",        note: "First-time-fix rate, callout duration, write-up time. Source for technician-time figures." },
    { cat: "Quantitative",  src: "Hartwell finance accounts",         period: "FY23 to FY25", note: "Turnover, margin, headcount cost. Cited in Bottom-Line Outcome page (page 04)." },
    { cat: "Qualitative",   src: "Blueprint Day · 17 April 2026",     period: "1 day",        note: "Whole-day session at Wymondham HQ. Robert, Sarah, Mike, plus three depot leads via video." },
    { cat: "Qualitative",   src: "Stakeholder interviews",            period: "Apr 2026",     note: "6 × 30-min structured interviews. Transcripts retained by MoonBoots, summarised here." },
    { cat: "Qualitative",   src: "AI Readiness Scorecard response",   period: "9 April 2026", note: "Self-completed by Robert Hartwell. Reviewed and corrected on Blueprint Day." },
    { cat: "Qualitative",   src: "Pre-call questionnaire",            period: "14 April 2026", note: "22-item business profile. Co-completed by Robert and Sarah." },
    { cat: "External",      src: "AEA UK dealer benchmarks 2025",     period: "Annual",       note: "Industry comparators for first-time-fix rate, technician utilisation, parts margin. Cited as benchmarks; not authoritative." },
    { cat: "External",      src: "ICO guidance on AI &amp; data protection",  period: "Aug 2025",  note: "Used in policy framework (Section 06)." },
  ];

  return (
    <window.ReportPage page={36} total={37} headerRight="Appendix B · Data sources">
      <div style={{display: "flex", flexDirection: "column", gap: "18pt", flex: "1 1 auto"}}>

        <div>
          <div className="rp-section-eyebrow">Appendix B · Data sources</div>
          <h2 className="rp-h1" style={{maxWidth: "26ch"}}>
            What this Blueprint is <i className="emph">built on</i><i className="stop">.</i>
          </h2>
        </div>

        <p className="rp-lede">
          Every quantitative claim in this document is traceable to one of the
          sources below. Every qualitative judgement is traceable to a named
          interview or working session. Where neither was possible, claims are
          flagged in the body as estimates and the assumptions are stated.
        </p>

        <table className="rp-risk">
          <thead>
            <tr>
              <th style={{width: "13%"}}>Type</th>
              <th style={{width: "30%"}}>Source</th>
              <th style={{width: "16%"}}>Period</th>
              <th>Use in this document</th>
            </tr>
          </thead>
          <tbody>
            {sources.map((s, i) => (
              <tr key={i}>
                <td><span className="rp-risk__sev rp-risk__sev--med">{s.cat}</span></td>
                <td><strong dangerouslySetInnerHTML={{__html: s.src}}></strong></td>
                <td style={{fontFamily: "var(--font-mono)", fontSize: "9pt", color: "var(--t-ink-2)"}}>{s.period}</td>
                <td>{s.note}</td>
              </tr>
            ))}
          </tbody>
        </table>

        <window.ReportCallout eyebrow="Confidentiality">
          All Hartwell-supplied data is held by MoonBoots under the engagement
          letter dated 2 April 2026 and will be returned or destroyed within 30 days
          of the Phase 1 stabilisation report, at Hartwell's election. No Hartwell
          data has been used to train any AI model and none ever will.
        </window.ReportCallout>

      </div>
    </window.ReportPage>
  );
}

function AppendixCPage() {
  return (
    <window.ReportPage page={37} total={37} headerRight="Appendix C · Methodology">
      <div style={{display: "flex", flexDirection: "column", gap: "18pt", flex: "1 1 auto"}}>

        <div>
          <div className="rp-section-eyebrow">Appendix C · Methodology</div>
          <h2 className="rp-h1" style={{maxWidth: "26ch"}}>
            How conclusions were <i className="emph">reached</i><i className="stop">.</i>
          </h2>
        </div>

        <p className="rp-lede">
          The Blueprint Day method is fixed across every MoonBoots engagement.
          This appendix is the working detail behind the summary on page 07: how
          the score is calculated, how the use cases are prioritised, and how the
          financial figures in the Bottom-Line Outcome page are arrived at.
        </p>

        <div className="rp-grid">
          <div className="rp-stack">
            <div>
              <h4 className="rp-h3" style={{marginBottom: "6pt"}}>Scorecard scoring</h4>
              <p className="rp-body">
                The scorecard contains 12 questions across the Five Pillars. Each
                question is scored 1 to 4 against a fixed rubric. Pillar scores are
                summed; total is reported out of 48. Tier thresholds are fixed:
                <strong> 0 to 12 Unstarted, 13 to 22 AI-Curious, 23 to 34 AI-Ready,
                35 to 48 AI-Capable.</strong>
              </p>
              <p className="rp-body">
                Hartwell scored 19 to upper end of AI-Curious. Equivalent benchmark
                across MoonBoots' SME engagements (n = 47 to date) is 17.4. Hartwell
                is above the cohort mean, primarily on Leadership Buy-in.
              </p>
            </div>

            <div>
              <h4 className="rp-h3" style={{marginBottom: "6pt"}}>Use case prioritisation</h4>
              <p className="rp-body">
                Each use case is scored against three dimensions: <strong>annual
                value</strong> (£), <strong>build effort</strong> (weeks of MoonBoots
                + Hartwell time), and <strong>time-to-first-value</strong> (weeks).
                A composite score weights value at 50%, effort at 30%, and TTFV at 20%.
                The weighting is deliberately heavy on value at SME scale: small
                businesses cannot afford to chase elegant problems.
              </p>
            </div>
          </div>

          <div className="rp-stack">
            <div>
              <h4 className="rp-h3" style={{marginBottom: "6pt"}}>Value modelling</h4>
              <p className="rp-body">
                Annual value figures (Section 04, Bottom-Line Outcome) use the
                following convention. <strong>Time-saving</strong> values are
                calculated at the loaded cost of the affected role (salary × 1.32),
                not at billable rate. <strong>Revenue-recovery</strong> values use a
                conservative conversion assumption (typically 50% of the addressable
                gap) and the trailing 12-month average transaction value.
              </p>
              <p className="rp-body">
                We do not include indirect benefits, staff retention, customer
                NPS uplift, brand effects, in the headline figure. They are
                discussed in the body where relevant but excluded from the £.
              </p>
            </div>

            <div>
              <h4 className="rp-h3" style={{marginBottom: "6pt"}}>Confidence levels</h4>
              <p className="rp-body">
                Where this document gives a single £ figure, it is the
                <strong> conservative</strong> end of the modelled range, typically
                the 25th-percentile outcome. The range itself, and the assumptions
                behind it, are available on request. We do not lead with optimistic
                forecasts; the cost of being wrong is borne by the client, not by
                the consultancy.
              </p>
            </div>
          </div>
        </div>

      </div>
    </window.ReportPage>
  );
}

window.AppendixBPage = AppendixBPage;
window.AppendixCPage = AppendixCPage;
