// hf-home.jsx — Kyndrid Homepage: D hero + sector selector → B section flow
// Matches home-foundation.jsx's visual treatment: correct bg alternation,
// dark navy IntelVisual, SharedCore band, stat-forward outcomes.

// ── Intelligence dark-navy chart visual (matches home-foundation FndIntel) ────
function HIntelVisual() {
  return (
    <div style={{
      background: HF.navy, borderRadius: 20, padding: 24,
      boxShadow: '0 32px 72px -24px rgba(7,16,31,.50), 0 8px 24px -12px rgba(7,16,31,.22)',
      fontFamily: HF.font
    }}>
      <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: 16 }}>
        <span style={{ fontSize: 13.5, fontWeight: 700, color: '#fff' }}>Labour vs sales · this week</span>
        <span style={{ fontSize: 11.5, fontWeight: 700, color: '#93c5fd', background: 'rgba(147,197,253,.12)', borderRadius: 6, padding: '4px 10px' }}>On target</span>
      </div>
      <div style={{ background: 'rgba(255,255,255,.05)', border: '1px solid rgba(255,255,255,.1)', borderRadius: 14, padding: 18 }}>
        <svg width="100%" height="116" viewBox="0 0 360 116" preserveAspectRatio="none">
          {[28, 26, 30, 25, 27, 24, 26].map((v, i) =>
          <rect key={i} x={14 + i * 50} y={116 - v * 3} width="20" height={v * 3} rx="3" fill="rgba(255,255,255,.18)" />
          )}
          <path d="M24,40 L74,32 L124,46 L174,28 L224,38 L274,22 L324,30" fill="none" stroke="#60a5fa" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round" />
          {[40, 32, 46, 28, 38, 22, 30].map((y, i) =>
          <circle key={i} cx={24 + i * 50} cy={y} r="3.5" fill="#fff" />
          )}
        </svg>
      </div>
      <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr 1fr', gap: 10, marginTop: 14 }}>
        {[['Labour %', '28.6%'], ['Sales', '£8,420'], ['Margin', '64.1%']].map(([l, v]) =>
        <div key={l} style={{ background: 'rgba(255,255,255,.05)', border: '1px solid rgba(255,255,255,.1)', borderRadius: 12, padding: '12px 14px' }}>
            <div style={{ fontSize: 11, color: '#94a3b8', fontWeight: 600 }}>{l}</div>
            <div style={{ fontSize: 20, color: '#fff', fontWeight: 800, marginTop: 4, letterSpacing: '-0.4px' }}>{v}</div>
          </div>
        )}
      </div>
      {/* recommendation chip */}
      <div style={{ marginTop: 14, background: 'rgba(255,255,255,.06)', border: '1px solid rgba(255,255,255,.1)', borderRadius: 12, padding: '12px 14px', display: 'flex', alignItems: 'flex-start', gap: 10 }}>
        <span style={{ width: 28, height: 28, borderRadius: 8, background: 'rgba(96,165,250,.18)', display: 'inline-flex', alignItems: 'center', justifyContent: 'center', flex: '0 0 auto' }}>
          <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#93c5fd" strokeWidth="1.9" strokeLinecap="round" strokeLinejoin="round">{HIC.bulb}</svg>
        </span>
        <div>
          <div style={{ fontSize: 11.5, fontWeight: 700, color: '#fff', marginBottom: 3 }}>Recommendation</div>
          <div style={{ fontSize: 12, color: '#94a3b8', lineHeight: 1.45 }}>Reorder draught lines before Friday — demand up 18%.</div>
        </div>
      </div>
    </div>);

}

// ── Shared core band (navy, used inside SuiteSection) ─────────────────────────
function HSharedCore() {
  const items = [
    ['Two focused platforms', HIC.grid],
  ['One user experience', HIC.eye],
  ['Shared access & permissions', HIC.shield],
  ['Shared reporting', HIC.chart],
  ['Shared audit trails', HIC.doc],
  ['Shared org settings', HIC.wrench],
  ['Modular by design', HIC.coins]];

  return (
    <div style={{ background: HF.navy, borderRadius: 20, padding: '48px 52px', marginTop: 40,
      backgroundImage: `radial-gradient(ellipse 500px 400px at 80% 60%, rgba(35,81,212,.18) 0%, transparent 55%)` }}>
      <div style={{ display: 'grid', gridTemplateColumns: '0.85fr 1.15fr', gap: 52, alignItems: 'center' }}>
        <div>
          <HEyebrow color="#60a5fa">One coherent suite</HEyebrow>
          <HH2 style={{ color: '#fff', fontSize: 34 }}>Different platforms. Clear purposes.</HH2>
          <HLead style={{ color: '#94a3b8', marginTop: 16, fontSize: 16 }}>
            Asset Ops focuses on assets, sites and audits. Kyndrid Intelligence focuses on business insight across trading, labour, stock and compliance.
          </HLead>
        </div>
        <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 10 }}>
          {items.map(([t, ic]) =>
          <div key={t} style={{ display: 'flex', alignItems: 'center', gap: 12, background: 'rgba(255,255,255,.05)', border: '1px solid rgba(255,255,255,.09)', borderRadius: 11, padding: '12px 14px' }}>
              <HGlyph d={ic} box={32} size={16} color="#93c5fd" bg="rgba(147,197,253,.12)" />
              <span style={{ fontSize: 13, fontWeight: 700, color: '#fff' }}>{t}</span>
            </div>
          )}
        </div>
      </div>
    </div>);

}

// ── HERO — Direction D ─────────────────────────────────────────────────────────
function HeroSection() {
  return (
    <section style={{
      padding: '88px 72px 84px',
      backgroundImage: `
        radial-gradient(ellipse 960px 640px at 82% -8%, rgba(35,81,212,.065) 0%, transparent 62%),
        radial-gradient(${HF.border} 1px, transparent 1px)
      `,
      backgroundSize: '100% 100%, 28px 28px',
      backgroundColor: HF.heroBg
    }}>
      <div style={{ maxWidth: HF.W, margin: '0 auto', display: 'grid', gridTemplateColumns: '1fr 1.1fr', gap: 64, alignItems: 'center' }}>
        <div>
          <HH1 style={{ fontSize: 66, letterSpacing: '-2.2px', lineHeight: 1.03 }}>Run operations with clarity, not clutter.</HH1>
          <HLead style={{ marginTop: 24 }}>
            Kyndrid gives teams two focused platforms: Asset Ops for asset and site management, and Kyndrid Intelligence for business insight across trading, labour, stock and compliance.
          </HLead>
          <div style={{ display: 'flex', gap: 14, marginTop: 34 }}>
            <span onClick={() => window.__nav && window.__nav('contact')} style={{ cursor: 'pointer' }}><HBtn kind="primary" size="lg">Book a demo</HBtn></span>
            <span onClick={() => window.__nav && window.__nav('products')} style={{ cursor: 'pointer' }}><HBtn kind="outline" size="lg">Explore products</HBtn></span>
          </div>
          <div style={{ display: 'flex', alignItems: 'center', gap: 16, marginTop: 26, fontSize: 13.5, color: HF.muted, flexWrap: 'wrap' }}>
            <span style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
              <svg width="15" height="15" viewBox="0 0 16 16" fill="none" stroke={HF.green} strokeWidth="2" strokeLinecap="round"><path d="M3 8l3 3 7-7" /></svg>
              Intelligence for trading, labour and compliance
            </span>
            <span style={{ width: 4, height: 4, borderRadius: 2, background: HF.borderMid }} />
            <span>Asset Ops for sites, maintenance and audits</span>
          </div>
        </div>
        <div style={{ display: 'flex', justifyContent: 'flex-end' }}>
          <HeroCarousel w={600} />
        </div>
      </div>
    </section>);

}

// ── SECTOR SELECTOR — Direction D ─────────────────────────────────────────────
function HSectorSelector() {
  const [active, setActive] = React.useState(0);
  const s = HSTACKS[active];
  const tone = (name) => {
    if (name === 'Kyndrid Intelligence') return HF.intel;
    if (name === 'Asset Ops') return HF.asset;
    return { fg: HF.body, bg: HF.fill, bd: HF.border };
  };

  function ProdRow({ name, optional }) {
    const p = HSUITE.find((x) => x.name === name);
    if (!p) return null;
    const t = tone(name);
    return (
      <div style={{ display: 'flex', alignItems: 'center', gap: 14, padding: '14px 18px', borderRadius: 12, border: `1px solid ${optional ? HF.border : t.bd}`, background: optional ? HF.fill : HF.surface }}>
        <HGlyph d={p.ic} box={42} size={21} color={optional ? HF.muted : t.fg} bg={optional ? HF.fill : t.bg} />
        <div style={{ flex: 1, minWidth: 0 }}>
          <div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
            <span style={{ fontSize: 15, fontWeight: 700, color: HF.ink }}>{p.name}</span>
            {optional && <span style={{ fontSize: 10.5, fontWeight: 700, color: HF.muted, textTransform: 'uppercase', letterSpacing: '0.04em', background: HF.fill, border: `1px solid ${HF.border}`, padding: '2px 8px', borderRadius: 5 }}>Optional</span>}
          </div>
          <div style={{ fontSize: 13, color: HF.muted, marginTop: 2 }}>{p.role}</div>
        </div>
        <HArrow color={HF.borderMid} />
      </div>);

  }

  return (
    <div style={{ border: `1px solid ${HF.border}`, borderRadius: 20, background: HF.surface, overflow: 'hidden', boxShadow: '0 2px 12px rgba(7,16,31,.06)' }}>
      <div style={{ display: 'flex', gap: 8, padding: '12px 14px', borderBottom: `1px solid ${HF.border}`, background: HF.fill, flexWrap: 'wrap' }}>
        {HSTACKS.map((st, i) =>
        <button key={st.n} onClick={() => setActive(i)} style={{ display: 'inline-flex', alignItems: 'center', gap: 9, fontFamily: HF.font, cursor: 'pointer', fontSize: 14, fontWeight: 700, padding: '10px 18px', borderRadius: 10, color: i === active ? '#fff' : HF.body, background: i === active ? HF.navy : HF.surface, border: `1px solid ${i === active ? HF.navy : HF.border}`, transition: 'all .16s ease' }}>
            <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke={i === active ? '#fff' : HF.muted} strokeWidth="1.75" strokeLinecap="round" strokeLinejoin="round">{st.ic}</svg>
            {st.n}
          </button>
        )}
      </div>
      <div style={{ display: 'grid', gridTemplateColumns: '0.85fr 1.15fr', minHeight: 310 }}>
        <div style={{ padding: '40px 40px', borderRight: `1px solid ${HF.border}`, background: HF.fill, display: 'flex', flexDirection: 'column', justifyContent: 'center' }}>
          <HGlyph d={s.ic} box={56} size={28} />
          <HH2 style={{ fontSize: 30, marginTop: 20 }}>{s.n}</HH2>
          <HLead style={{ marginTop: 12, fontSize: 16.5 }}>{s.use}</HLead>
          {s.note && <p style={{ fontSize: 13.5, color: HF.muted, lineHeight: 1.55, marginTop: 16, marginBottom: 0, paddingLeft: 14, borderLeft: `2px solid ${HF.borderMid}` }}>{s.note}</p>}
          <div style={{ marginTop: 28 }}><HBtn kind="dark">Explore {s.n.split(' ')[0]}</HBtn></div>
        </div>
        <div style={{ padding: '32px 40px', display: 'flex', flexDirection: 'column', gap: 10 }}>
          <span style={{ fontSize: 11, fontWeight: 700, color: HF.muted, textTransform: 'uppercase', letterSpacing: '0.08em' }}>Recommended products</span>
          {s.rec.map((n) => <ProdRow key={n} name={n} optional={false} />)}
          {s.opt && <>
            <span style={{ fontSize: 11, fontWeight: 700, color: HF.muted, textTransform: 'uppercase', letterSpacing: '0.08em', marginTop: 8 }}>Add if you need it</span>
            {s.opt.map((n) => <ProdRow key={n} name={n} optional={true} />)}
          </>}
        </div>
      </div>
    </div>);

}

function SectorSelectorSection() {
  return (
    <section style={{ padding: '96px 72px' }}>
      <div style={{ maxWidth: HF.W, margin: '0 auto' }}>
        <HSectionHead eyebrow="Start with your sector" title="Built around the way you operate." sub="Kyndrid is modular — not every product fits every organisation. Choose your sector to see the recommended stack." />
        <HSectorSelector />
      </div>
    </section>);

}

// ── INTELLIGENCE DEEP DIVE — Direction B, white bg ────────────────────────────
function IntelligenceSection() {
  return (
    <section style={{ padding: '104px 72px', borderTop: `1px solid ${HF.border}` }}>
      <div style={{ maxWidth: HF.W, margin: '0 auto', display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 80, alignItems: 'center' }}>
        <div>
          <HEyebrow color={HF.intel.fg}>The lead product</HEyebrow>
          <HH2>Everything operators need to see, understand and act.</HH2>
          <HLead style={{ marginTop: 18 }}>
            Not just a reporting tool. An operational intelligence layer for hospitality, retail and convenience that shows what's happening, what needs attention and what to do next.
          </HLead>
          <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 18, marginTop: 32 }}>
            {HFEATURES.slice(0, 6).map((f) =>
            <div key={f.n} style={{ display: 'flex', gap: 13 }}>
                <span style={{ flex: '0 0 auto', width: 38, height: 38, borderRadius: 10, background: HF.intel.bg, display: 'inline-flex', alignItems: 'center', justifyContent: 'center', color: HF.intel.fg }}>
                  <svg width="19" height="19" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.75" strokeLinecap="round" strokeLinejoin="round">{f.ic}</svg>
                </span>
                <div>
                  <div style={{ fontSize: 14.5, fontWeight: 700, color: HF.ink }}>{f.n}</div>
                  <div style={{ fontSize: 12.5, color: HF.muted, lineHeight: 1.4, marginTop: 2 }}>{f.c}</div>
                </div>
              </div>
            )}
          </div>
          <div style={{ marginTop: 32 }}>
            <HBtn kind="outline" size="md">See all nine capabilities <HArrow /></HBtn>
          </div>
        </div>
        <HIntelVisual />
      </div>
    </section>);

}

// ── HOW IT WORKS — card layout ────────────────────────────────────────────────
function HowItWorksSection() {
  return (
    <section style={{ padding: '104px 72px', background: HF.fill, borderTop: `1px solid ${HF.border}`, borderBottom: `1px solid ${HF.border}` }}>
      <div style={{ maxWidth: HF.W, margin: '0 auto' }}>
        <HSectionHead eyebrow="How it works" title="From connected data to confident action." />
        <div style={{ display: 'grid', gridTemplateColumns: 'repeat(3,1fr)', gap: 20 }}>
          {HSTEPS.map((step, i) =>
          <div key={step.n} style={{
            background: HF.surface,
            border: `1px solid ${HF.border}`,
            borderRadius: 20,
            padding: '36px 32px 32px',
            position: 'relative',
            overflow: 'hidden',
            boxShadow: '0 1px 3px rgba(7,16,31,.04), 0 18px 48px -20px rgba(7,16,31,.10)'
          }}>
              {/* Watermark step number */}
              <div style={{
              position: 'absolute', bottom: -20, right: 12,
              fontSize: 110, fontWeight: 900,
              color: HF.blue, opacity: 0.06,
              fontFamily: HF.font, lineHeight: 1,
              letterSpacing: '-6px', pointerEvents: 'none',
              userSelect: 'none'
            }}>{step.n}</div>
              {/* Icon box */}
              <div style={{
              width: 52, height: 52, borderRadius: 14,
              background: HF.blueSoft,
              display: 'flex', alignItems: 'center', justifyContent: 'center',
              color: HF.blue, marginBottom: 24
            }}>
                <svg width="24" height="24" viewBox="0 0 24 24" fill="none"
              stroke="currentColor" strokeWidth="1.75" strokeLinecap="round" strokeLinejoin="round">
                  {step.ic}
                </svg>
              </div>
              {/* Step label */}
              <div style={{ fontSize: 11, fontWeight: 700, color: HF.blue, letterSpacing: '0.1em', textTransform: 'uppercase', marginBottom: 10 }}>
                Step {step.n}
              </div>
              <HH3 style={{ fontSize: 21, marginBottom: 12 }}>{step.t}</HH3>
              <HBody style={{ fontSize: 14.5, lineHeight: 1.68 }}>{step.c}</HBody>
            </div>
          )}
        </div>
      </div>
    </section>);

}

// ── SUITE — Direction B (3 equal cols) + SharedCore ───────────────────────────
function SuiteSection() {
  return (
    <section style={{ padding: '104px 72px 96px' }}>
      <div style={{ maxWidth: HF.W, margin: '0 auto' }}>
        <HSectionHead eyebrow="The wider suite" title="Two platforms. Built for different jobs." sub="Kyndrid Intelligence focuses on business intelligence and operational performance. Asset Ops focuses on asset, site, maintenance and audit management." />
        <div style={{ display: 'grid', gridTemplateColumns: 'repeat(2,1fr)', gap: 20 }}>
          {HSUITE.map((p) => {
            const t = p.tone;
            return (
              <div key={p.name} style={{ position: 'relative', background: HF.surface, border: `1px solid ${HF.border}`, borderRadius: 18, padding: '28px 26px 24px', overflow: 'hidden', display: 'flex', flexDirection: 'column', boxShadow: '0 1px 3px rgba(7,16,31,.05), 0 18px 40px -28px rgba(7,16,31,.22)' }}>
                <div style={{ position: 'absolute', top: 0, left: 0, right: 0, height: 4, background: t.fg }} />
                <div style={{ display: 'flex', alignItems: 'center', gap: 12 }}>
                  <span style={{ width: 46, height: 46, borderRadius: 12, background: t.bg, border: `1px solid ${t.bd}`, display: 'inline-flex', alignItems: 'center', justifyContent: 'center', color: t.fg }}>
                    <svg width="23" height="23" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.75" strokeLinecap="round" strokeLinejoin="round">{p.ic}</svg>
                  </span>
                  <HH3 style={{ fontSize: 19 }}>{p.name}</HH3>
                </div>
                <HBody style={{ marginTop: 14, fontSize: 14, flex: 1 }}>{p.copy}</HBody>
                <div style={{ marginTop: 16, display: 'flex', flexWrap: 'wrap', gap: 6 }}>
                  <span style={{ fontSize: 10, fontWeight: 700, letterSpacing: '0.05em', textTransform: 'uppercase', color: HF.muted, alignSelf: 'center' }}>Best for</span>
                  {p.best.slice(0, 3).map((b) => <span key={b} style={{ fontSize: 11.5, fontWeight: 600, color: t.fg, background: t.bg, border: `1px solid ${t.bd}`, borderRadius: 99, padding: '3px 10px' }}>{b}</span>)}
                </div>
                <div style={{ marginTop: 18, paddingTop: 16, borderTop: `1px solid ${HF.border}`, display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
                  <span style={{ fontSize: 13, color: HF.muted }}>{p.role}</span>
                  <span style={{ color: t.fg }}><HArrow /></span>
                </div>
              </div>);

          })}
        </div>
        <HSharedCore />
      </div>
    </section>);

}

// ── SECTORS — fill bg ─────────────────────────────────────────────────────────
function SectorsSection() {
  return (
    <section style={{ padding: '96px 72px', background: HF.fill, borderTop: `1px solid ${HF.border}`, borderBottom: `1px solid ${HF.border}` }}>
      <div style={{ maxWidth: HF.W, margin: '0 auto' }}>
        <HSectionHead eyebrow="Sectors" title="Built for real-world operators." />
        <div style={{ display: 'grid', gridTemplateColumns: 'repeat(5,1fr)', gap: 16 }}>
          {HSECTORS.map((s) =>
          <div key={s.n} style={{ border: `1px solid ${HF.border}`, borderRadius: 16, padding: '24px 22px', background: HF.surface, boxShadow: '0 1px 3px rgba(7,16,31,.04)' }}>
              <HGlyph d={s.ic} box={42} size={21} />
              <HH3 style={{ fontSize: 15.5, marginTop: 14 }}>{s.n}</HH3>
              <HBody style={{ marginTop: 7, fontSize: 13.5 }}>{s.c}</HBody>
            </div>
          )}
        </div>
      </div>
    </section>);

}

// ── OUTCOMES BAND — stat-forward (matches home-foundation FndOutcomes) ─────────
function BenefitsBandSection() {
  const data = [
  { fig: 'One view', t: 'Reduce blind spots', c: 'Spot issues across trading, compliance, assets and sites before they grow.', ic: HIC.eye },
  { fig: '6+ hrs', t: 'Save management time', c: 'Bring key information into one place instead of chasing spreadsheets.', ic: HIC.grid },
  { fig: 'Every change', t: 'Improve accountability', c: 'Clear ownership, audit trails, tasks and status tracking across your teams.', ic: HIC.check },
  { fig: 'Next action', t: 'Make better decisions', c: 'Dashboards and recommendations show what needs attention — and why.', ic: HIC.bulb }];

  return (
    <section style={{ padding: '0 72px 104px' }}>
      <div style={{ maxWidth: HF.W, margin: '0 auto' }}>
        <div style={{ background: HF.navy, borderRadius: 24, padding: '64px 56px', backgroundImage: `radial-gradient(ellipse 600px 450px at 80% 55%, rgba(35,81,212,.2) 0%, transparent 55%)` }}>
          <div style={{ textAlign: 'center', maxWidth: 640, margin: '0 auto 52px' }}>
            <HEyebrow color="#60a5fa">Why Kyndrid</HEyebrow>
            <HH2 style={{ color: '#fff' }}>Move from reactive to ready.</HH2>
          </div>
          <div style={{ display: 'grid', gridTemplateColumns: 'repeat(4,1fr)', gap: 0 }}>
            {data.map((d, i) =>
            <div key={d.t} style={{ padding: '0 28px', borderLeft: i ? '1px solid rgba(255,255,255,.1)' : 'none' }}>
                <span style={{ width: 42, height: 42, borderRadius: 11, background: 'rgba(96,165,250,.14)', display: 'inline-flex', alignItems: 'center', justifyContent: 'center', color: '#93c5fd' }}>
                  <svg width="21" height="21" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.75" strokeLinecap="round" strokeLinejoin="round">{d.ic}</svg>
                </span>
                <div style={{ fontSize: 26, fontWeight: 800, color: '#fff', letterSpacing: '-0.6px', marginTop: 16 }}>{d.fig}</div>
                <div style={{ fontSize: 15, fontWeight: 700, color: '#cbd5e1', marginTop: 5 }}>{d.t}</div>
                <div style={{ fontSize: 13.5, color: '#94a3b8', lineHeight: 1.55, marginTop: 8 }}>{d.c}</div>
              </div>
            )}
          </div>
        </div>
      </div>
    </section>);

}

// ── PRICING — fill bg ─────────────────────────────────────────────────────────
function PricingSection() {
  return (
    <section style={{ padding: '0 72px 104px' }}>
      <div style={{ maxWidth: HF.W, margin: '0 auto', background: HF.fill, border: `1px solid ${HF.border}`, borderRadius: 20, padding: '64px 56px' }}>
        <HSectionHead eyebrow="Pricing" title="Start with what you need. Add more as you grow." />
        <div style={{ display: 'grid', gridTemplateColumns: 'repeat(3,1fr)', gap: 20 }}>
          {HSUITE.map((p, i) => {
            const featured = i === 0;
            const t = p.tone;
            return (
              <div key={p.name} style={{ border: `${featured ? 2 : 1}px solid ${featured ? HF.blue : HF.border}`, borderRadius: 18, padding: '28px 28px 24px', background: HF.surface, position: 'relative', boxShadow: featured ? `0 4px 28px rgba(35,81,212,.13)` : '0 1px 4px rgba(7,16,31,.05)' }}>
                {featured && <span style={{ position: 'absolute', top: -1, right: 22, fontSize: 10.5, fontWeight: 700, color: '#fff', background: HF.blue, padding: '4px 12px', borderRadius: '0 0 8px 8px', letterSpacing: '0.05em', textTransform: 'uppercase' }}>Popular</span>}
                <HGlyph d={p.ic} box={44} size={22} color={t.fg} bg={t.bg} />
                <HH3 style={{ marginTop: 16 }}>{p.name}</HH3>
                <div style={{ marginTop: 14, display: 'flex', alignItems: 'baseline', gap: 4 }}>
                  <span style={{ fontSize: 13, color: HF.muted }}>from</span>
                  <span style={{ fontSize: 34, fontWeight: 800, color: HF.ink, letterSpacing: '-1.2px' }}>£{[149, 99, 89][i]}</span>
                  <span style={{ fontSize: 13, color: HF.muted }}>/mo</span>
                </div>
                <div style={{ marginTop: 18, height: 1, background: HF.border }} />
                <div style={{ display: 'inline-flex', alignItems: 'center', gap: 6, marginTop: 14, fontSize: 14, fontWeight: 700, color: HF.blue }}>
                  Add to plan <HArrow />
                </div>
              </div>);

          })}
        </div>
        <div style={{ textAlign: 'center', marginTop: 32 }}>
          <HBtn kind="dark" size="lg">View full pricing</HBtn>
        </div>
      </div>
    </section>);

}

// ── FINAL CTA ─────────────────────────────────────────────────────────────────
function CTASection() {
  return (
    <section style={{ padding: '0 72px 104px' }}>
      <div style={{ maxWidth: HF.W, margin: '0 auto' }}>
        <div style={{ background: HF.navy, borderRadius: 24, padding: '80px 72px', textAlign: 'center', backgroundImage: `radial-gradient(ellipse 700px 500px at 50% -10%, rgba(35,81,212,.22) 0%, transparent 58%), radial-gradient(ellipse 400px 300px at 92% 100%, rgba(13,153,103,.08) 0%, transparent 48%)` }}>
          <HH2 style={{ color: '#fff', fontSize: 46 }}>Ready to see your operations clearly?</HH2>
          <HLead style={{ color: '#94a3b8', margin: '20px auto 0', maxWidth: 500 }}>Book a demo and explore how Kyndrid can support your organisation.</HLead>
          <div style={{ display: 'flex', gap: 14, justifyContent: 'center', marginTop: 38 }}>
            <HBtn kind="primary" size="lg">Book a demo</HBtn>
            <HBtn kind="outlineLight" size="lg">Explore products</HBtn>
          </div>
        </div>
      </div>
    </section>);

}

// ── SHARED CORE band as its own section ───────────────────────────────────────
function SharedCoreSection() {
  return (
    <section style={{ padding: '0 72px 100px' }}>
      <div style={{ maxWidth: HF.W, margin: '0 auto' }}>
        <HSharedCore />
      </div>
    </section>);

}

// ── FULL PAGE ─────────────────────────────────────────────────────────────────
function KyndridHomepage() {
  return (
    <div style={{ fontFamily: HF.font, background: HF.surface, minWidth: 1140 }}>
      <HNav />
      <HeroSection />
      <HLogoStrip />
      <ProductExplorerSection />
      <SectorSelectorSection />
      <HowItWorksSection />
      <SharedCoreSection />
      <BenefitsBandSection />
      <PricingSection />
      <CTASection />
      <HFooter />
    </div>);

}

Object.assign(window, { KyndridHomepage, HSectorSelector, HeroSection, CTASection, IntelligenceSection, HIntelVisual });
