<turbo-stream action="update" target="analysis-result"><template><div class="space-y-6 animate-fade-in">
  <div class="bg-surface border border-border shadow-sm rounded-card p-6 sm:p-8 relative overflow-hidden">
  <div class="space-y-6">
    <div class="flex items-center justify-between">
      <h2 class="text-xl font-bold text-text-primary tracking-tight">Executive Summary</h2>
      <span class="text-sm font-bold text-accent font-mono">Marks &amp; Spencer</span>
    </div>

    <p class="text-text-muted leading-relaxed text-sm sm:text-base">
      Marks &amp; Spencer, a venerable UK retailer, enjoys strong AI visibility for its food quality and brand heritage but faces challenges in communicating its evolving fashion relevance and comprehensive sustainability efforts. AI assistants accurately describe the brand&#39;s core offerings but often rely on historical perceptions, creating a slight disconnect with current strategic initiatives. Their biggest strength lies in their widely recognized food business, while their biggest gap is the nuanced articulation of their modern clothing strategy and environmental commitments to AI. Marks &amp; Spencer possesses a solid AI visibility foundation, but requires proactive content optimization to fully align AI perception with its current brand identity.
    </p>

    <!-- Score Factors -->
      <div class="bg-surface-bg border border-border rounded-card p-5 space-y-4">
        <div class="flex items-center justify-between">
          <span class="text-xs font-bold tracking-wider text-accent uppercase">Score Breakdown</span>
          <span class="text-[0.6875rem] text-text-muted">Weighted Analysis</span>
        </div>
        <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
            <div class="bg-surface px-4 py-3.5 rounded-card border border-border space-y-2">
              <div class="flex justify-between items-center">
                <span class="text-xs text-text-primary font-bold">Brand Recognition &amp; Established Presence</span>
                <span class="text-xs font-mono font-bold text-text-primary">90</span>
              </div>
              <div class="w-full bg-surface-bg rounded-full h-1.5 overflow-hidden border border-border">
                <div class="bg-accent h-full rounded-full transition-all duration-1000 ease-out"
                     style="width: 0%;"
                     data-controller="progressbar"
                     data-progressbar-target-width="90%"></div>
              </div>
              <div class="flex justify-between items-center text-[0.6875rem] text-text-muted">
                <span class="font-light">Marks &amp; Spencer is a household name in the UK with a long history and extensive media coverage, making basic facts readily available to AI.</span>
                <span class="font-mono font-bold">35%</span>
              </div>
            </div>
            <div class="bg-surface px-4 py-3.5 rounded-card border border-border space-y-2">
              <div class="flex justify-between items-center">
                <span class="text-xs text-text-primary font-bold">Accuracy of Core Business Description</span>
                <span class="text-xs font-mono font-bold text-text-primary">85</span>
              </div>
              <div class="w-full bg-surface-bg rounded-full h-1.5 overflow-hidden border border-border">
                <div class="bg-accent h-full rounded-full transition-all duration-1000 ease-out"
                     style="width: 0%;"
                     data-controller="progressbar"
                     data-progressbar-target-width="85%"></div>
              </div>
              <div class="flex justify-between items-center text-[0.6875rem] text-text-muted">
                <span class="font-light">AI accurately identifies the brand&#39;s primary activities in food, clothing, and home, and its UK origin.</span>
                <span class="font-mono font-bold">30%</span>
              </div>
            </div>
            <div class="bg-surface px-4 py-3.5 rounded-card border border-border space-y-2">
              <div class="flex justify-between items-center">
                <span class="text-xs text-text-primary font-bold">Nuance and Up-to-Date Information</span>
                <span class="text-xs font-mono font-bold text-text-primary">65</span>
              </div>
              <div class="w-full bg-surface-bg rounded-full h-1.5 overflow-hidden border border-border">
                <div class="bg-accent h-full rounded-full transition-all duration-1000 ease-out"
                     style="width: 0%;"
                     data-controller="progressbar"
                     data-progressbar-target-width="65%"></div>
              </div>
              <div class="flex justify-between items-center text-[0.6875rem] text-text-muted">
                <span class="font-light">AI often struggles to articulate M&amp;S&#39;s recent fashion initiatives, specific sustainability efforts beyond &#39;Plan A,&#39; and detailed competitive differentiation.</span>
                <span class="font-mono font-bold">35%</span>
              </div>
            </div>
        </div>
      </div>
  </div>
</div>

  <div class="bg-surface border border-border rounded-card p-6">
  <div class="flex items-center justify-between mb-5">
    <h3 class="text-xs font-bold tracking-wider text-text-muted uppercase">Brand Snapshot</h3>
      <a href="https://marksandspencer.com" target="_blank" rel="noopener"
         class="text-[0.6875rem] text-accent hover:text-accent/80 transition-colors flex items-center gap-1">
        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-3 h-3">
  <path d="M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6"></path>
  <path d="M11 13l9 -9"></path>
  <path d="M15 4h5v5"></path>
</svg>
        <span>Visit Website</span>
      </a>
  </div>

  <div class="grid grid-cols-2 sm:grid-cols-4 gap-4">
      <div class="space-y-1">
        <span class="block text-[0.6875rem] font-bold tracking-wider text-text-muted uppercase">Industry</span>
        <span class="block text-sm text-text-primary font-medium">Retail</span>
      </div>
      <div class="space-y-1">
        <span class="block text-[0.6875rem] font-bold tracking-wider text-text-muted uppercase">Headquarters</span>
        <span class="block text-sm text-text-primary font-medium">London, United Kingdom</span>
      </div>
      <div class="space-y-1">
        <span class="block text-[0.6875rem] font-bold tracking-wider text-text-muted uppercase">Founded</span>
        <span class="block text-sm text-text-primary font-medium">1884</span>
      </div>
      <div class="space-y-1">
        <span class="block text-[0.6875rem] font-bold tracking-wider text-text-muted uppercase">Company Size</span>
        <span class="block text-sm text-text-primary font-medium">Enterprise</span>
      </div>
      <div class="space-y-1">
        <span class="block text-[0.6875rem] font-bold tracking-wider text-text-muted uppercase">Business Model</span>
        <span class="block text-sm text-text-primary font-medium">B2C</span>
      </div>
  </div>

    <div class="mt-5 flex flex-wrap gap-2">
        <span class="px-2.5 py-1 rounded-badge text-[0.6875rem] font-semibold bg-accent-subtle border border-accent-border/30 text-accent">Food Retail</span>
        <span class="px-2.5 py-1 rounded-badge text-[0.6875rem] font-semibold bg-accent-subtle border border-accent-border/30 text-accent">Clothing Retail</span>
        <span class="px-2.5 py-1 rounded-badge text-[0.6875rem] font-semibold bg-accent-subtle border border-accent-border/30 text-accent">Home Goods</span>
        <span class="px-2.5 py-1 rounded-badge text-[0.6875rem] font-semibold bg-accent-subtle border border-accent-border/30 text-accent">Financial Services</span>
    </div>
</div>

  <div class="bg-surface border border-border rounded-card p-6">
  <h3 class="text-xs font-bold tracking-wider text-text-muted uppercase mb-4">Company Overview</h3>
  <p class="text-text-primary leading-relaxed text-sm">Marks &amp; Spencer is a multinational British retailer specializing in quality food products, clothing, and home goods. They operate through physical stores and online channels, serving a broad customer base primarily in the UK but also internationally. The company distinguishes itself through its focus on quality, ethical sourcing, and a diverse product range.</p>
</div>

  <div class="bg-surface border border-border rounded-card p-6">
  <div class="flex items-center justify-between mb-5">
    <h3 class="text-xs font-bold tracking-wider text-text-muted uppercase">Products & Services</h3>
    <span class="text-[0.6875rem] text-text-muted">3 identified</span>
  </div>

  <div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
      <div class="bg-surface-bg border border-border rounded-card p-4 space-y-2.5">
        <h4 class="text-sm font-bold text-text-primary">M&amp;S Food</h4>
        <p class="text-xs text-text-muted leading-relaxed">Offers premium groceries, ready meals, fresh produce, and baked goods.</p>

          <div class="flex items-start gap-2 pt-1">
            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-3.5 h-3.5 text-accent mt-0.5 shrink-0">
  <path d="M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7"></path>
  <path d="M9 16a5 5 0 1 1 6 0a3.5 3.5 0 0 0 -1 3a2 2 0 0 1 -4 0a3.5 3.5 0 0 0 -1 -3"></path>
  <path d="M9.7 17l4.6 0"></path>
</svg>
            <span class="text-[11px] text-text-muted leading-relaxed"><strong class="text-text-primary font-medium">AI Perception:</strong> AI assistants accurately describe M&amp;S Food as high-quality, sometimes premium-priced, and a reliable choice for everyday and special occasion groceries.</span>
          </div>
      </div>
      <div class="bg-surface-bg border border-border rounded-card p-4 space-y-2.5">
        <h4 class="text-sm font-bold text-text-primary">M&amp;S Clothing &amp; Home</h4>
        <p class="text-xs text-text-muted leading-relaxed">Provides apparel for women, men, and children, along with homewares and furniture.</p>

          <div class="flex items-start gap-2 pt-1">
            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-3.5 h-3.5 text-accent mt-0.5 shrink-0">
  <path d="M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7"></path>
  <path d="M9 16a5 5 0 1 1 6 0a3.5 3.5 0 0 0 -1 3a2 2 0 0 1 -4 0a3.5 3.5 0 0 0 -1 -3"></path>
  <path d="M9.7 17l4.6 0"></path>
</svg>
            <span class="text-[11px] text-text-muted leading-relaxed"><strong class="text-text-primary font-medium">AI Perception:</strong> AI assistants describe M&amp;S Clothing as focusing on quality, classic styles, and comfortable wear, often noting a historical perception of being for an older demographic, while acknowledging recent efforts to modernize.</span>
          </div>
      </div>
      <div class="bg-surface-bg border border-border rounded-card p-4 space-y-2.5">
        <h4 class="text-sm font-bold text-text-primary">M&amp;S Bank</h4>
        <p class="text-xs text-text-muted leading-relaxed">Offers financial products including credit cards, loans, and insurance.</p>

          <div class="flex items-start gap-2 pt-1">
            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-3.5 h-3.5 text-accent mt-0.5 shrink-0">
  <path d="M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7"></path>
  <path d="M9 16a5 5 0 1 1 6 0a3.5 3.5 0 0 0 -1 3a2 2 0 0 1 -4 0a3.5 3.5 0 0 0 -1 -3"></path>
  <path d="M9.7 17l4.6 0"></path>
</svg>
            <span class="text-[11px] text-text-muted leading-relaxed"><strong class="text-text-primary font-medium">AI Perception:</strong> AI assistants accurately identify M&amp;S Bank as a subsidiary providing financial services, though it is less prominently featured than their retail divisions and often associated with credit cards.</span>
          </div>
      </div>
  </div>
</div>

  <div class="bg-surface border border-border rounded-card p-6 space-y-6">
  <h3 class="text-xs font-bold tracking-wider text-text-muted uppercase">Deep AI Visibility Analysis</h3>

  <div class="grid grid-cols-1 md:grid-cols-2 gap-6">

    <!-- AI Understanding -->
      <div class="bg-surface-bg border border-border rounded-card p-5 space-y-3">
        <div class="flex items-center justify-between">
          <span class="text-[11px] font-bold tracking-wider text-accent uppercase">AI Understanding</span>
          <span class="px-2 py-0.5 rounded text-[0.6875rem] font-bold border text-emerald-600 dark:text-emerald-400 bg-emerald-500/10 border-emerald-500/20">High Accuracy</span>
        </div>

          <div class="space-y-1.5">
            <span class="text-[0.6875rem] text-text-muted font-semibold uppercase tracking-wider">Common Mistakes</span>
              <div class="flex items-start gap-2">
                <span class="text-status-negative text-xs mt-0.5">✕</span>
                <span class="text-xs text-text-muted leading-relaxed">Presenting M&amp;S clothing as solely traditional or catering to an older demographic, overlooking recent collaborations and trend-led collections.</span>
              </div>
              <div class="flex items-start gap-2">
                <span class="text-status-negative text-xs mt-0.5">✕</span>
                <span class="text-xs text-text-muted leading-relaxed">Understating the full breadth and specific achievements of their &#39;Plan A&#39; sustainability commitments.</span>
              </div>
              <div class="flex items-start gap-2">
                <span class="text-status-negative text-xs mt-0.5">✕</span>
                <span class="text-xs text-text-muted leading-relaxed">Occasionally focusing heavily on UK operations without sufficient context for their international footprint or online-only initiatives.</span>
              </div>
          </div>

          <div class="space-y-1.5">
            <span class="text-[0.6875rem] text-text-muted font-semibold uppercase tracking-wider">Missing Context</span>
              <div class="flex items-start gap-2">
                <span class="text-status-warning text-xs mt-0.5">○</span>
                <span class="text-xs text-text-muted leading-relaxed">Detailed information about their digital transformation strategy and its impact on customer experience.</span>
              </div>
              <div class="flex items-start gap-2">
                <span class="text-status-warning text-xs mt-0.5">○</span>
                <span class="text-xs text-text-muted leading-relaxed">Specific examples and measurable impacts of their ethical sourcing and supply chain transparency efforts.</span>
              </div>
              <div class="flex items-start gap-2">
                <span class="text-status-warning text-xs mt-0.5">○</span>
                <span class="text-xs text-text-muted leading-relaxed">The competitive landscape of their clothing business against fast fashion retailers, and how M&amp;S positions itself.</span>
              </div>
          </div>
      </div>

    <!-- Recommendation Likelihood -->
      <div class="bg-surface-bg border border-border rounded-card p-5 space-y-3">
        <div class="flex items-center justify-between">
          <span class="text-[11px] font-bold tracking-wider text-accent uppercase">Recommendation Likelihood</span>
          <span class="text-lg font-black text-text-primary">75<span class="text-text-muted text-xs font-normal">/100</span></span>
        </div>

          <div class="space-y-2">
              <div class="bg-surface border border-border rounded-card px-3 py-2.5 space-y-1">
                <p class="text-xs text-text-primary font-medium">"Where can I find high-quality ready meals in the UK?"</p>
                <div class="flex items-center gap-3 text-[0.6875rem]">
                  <span class="text-emerald-600 dark:text-emerald-400 font-semibold">
                    ✓ Mentioned
                  </span>
                    <span class="text-text-muted">Position: <strong class="text-text-primary">1st</strong></span>
                </div>
                  <p class="text-[0.6875rem] text-text-muted">AI consistently recommends M&amp;S Food for this query due to its strong reputation.</p>
              </div>
              <div class="bg-surface border border-border rounded-card px-3 py-2.5 space-y-1">
                <p class="text-xs text-text-primary font-medium">"What are some reliable British clothing brands for workwear?"</p>
                <div class="flex items-center gap-3 text-[0.6875rem]">
                  <span class="text-emerald-600 dark:text-emerald-400 font-semibold">
                    ✓ Mentioned
                  </span>
                    <span class="text-text-muted">Position: <strong class="text-text-primary">2nd</strong></span>
                </div>
                  <p class="text-[0.6875rem] text-text-muted">AI includes M&amp;S, often alongside John Lewis or Next, highlighting its quality and classic appeal.</p>
              </div>
              <div class="bg-surface border border-border rounded-card px-3 py-2.5 space-y-1">
                <p class="text-xs text-text-primary font-medium">"Which UK retailers offer sustainable clothing options?"</p>
                <div class="flex items-center gap-3 text-[0.6875rem]">
                  <span class="text-emerald-600 dark:text-emerald-400 font-semibold">
                    ✓ Mentioned
                  </span>
                    <span class="text-text-muted">Position: <strong class="text-text-primary">3rd</strong></span>
                </div>
                  <p class="text-[0.6875rem] text-text-muted">M&amp;S is mentioned, but typically after brands with more explicit or digitally optimized sustainability narratives, indicating a need for clearer AI signals.</p>
              </div>
          </div>
      </div>

    <!-- Citation Analysis -->
      <div class="bg-surface-bg border border-border rounded-card p-5 space-y-3">
        <div class="flex items-center justify-between">
          <span class="text-[11px] font-bold tracking-wider text-accent uppercase">Citation Analysis</span>
          <span class="px-2 py-0.5 rounded text-[0.6875rem] font-bold border text-emerald-600 dark:text-emerald-400 bg-emerald-500/10 border-emerald-500/20">Strong</span>
        </div>

          <div class="space-y-1.5">
            <span class="text-[0.6875rem] text-text-muted font-semibold uppercase tracking-wider">Primary Sources</span>
            <div class="flex flex-wrap gap-1.5">
                <span class="px-2 py-0.5 rounded text-[0.6875rem] font-medium bg-surface border border-border text-text-primary">marksandspencer.com (Official Website)</span>
                <span class="px-2 py-0.5 rounded text-[0.6875rem] font-medium bg-surface border border-border text-text-primary">Wikipedia</span>
                <span class="px-2 py-0.5 rounded text-[0.6875rem] font-medium bg-surface border border-border text-text-primary">BBC News</span>
                <span class="px-2 py-0.5 rounded text-[0.6875rem] font-medium bg-surface border border-border text-text-primary">The Guardian</span>
                <span class="px-2 py-0.5 rounded text-[0.6875rem] font-medium bg-surface border border-border text-text-primary">Retail Week</span>
                <span class="px-2 py-0.5 rounded text-[0.6875rem] font-medium bg-surface border border-border text-text-primary">Financial Times</span>
            </div>
          </div>

          <div class="space-y-1.5">
            <span class="text-[0.6875rem] text-text-muted font-semibold uppercase tracking-wider">Missing Sources</span>
              <div class="flex items-start gap-2">
                <span class="text-status-warning text-xs mt-0.5">○</span>
                <span class="text-xs text-text-muted">Detailed, AI-digestible summaries of annual &#39;Plan A&#39; sustainability reports directly on the corporate site.</span>
              </div>
              <div class="flex items-start gap-2">
                <span class="text-status-warning text-xs mt-0.5">○</span>
                <span class="text-xs text-text-muted">Academic retail analyses or industry reports specifically detailing M&amp;S&#39;s strategic pivots.</span>
              </div>
          </div>
      </div>

    <!-- Competitive Position -->
      <div class="bg-surface-bg border border-border rounded-card p-5 space-y-3">
        <div class="flex items-center justify-between">
          <span class="text-[11px] font-bold tracking-wider text-accent uppercase">Competitive Position</span>
          <span class="text-[0.6875rem] font-semibold text-amber-600 dark:text-amber-400">Moderate Differentiation</span>
        </div>

          <div class="space-y-2">
              <div class="bg-surface border border-border rounded-card px-3 py-2.5 flex items-start justify-between gap-3">
                <div class="min-w-0">
                  <span class="text-xs text-text-primary font-bold">Waitrose</span>
                  <p class="text-xs text-text-muted leading-relaxed mt-1">AI often pairs M&amp;S Food with Waitrose for premium grocery queries, recognizing similar quality and price points.</p>
                </div>
                <span class="px-2 py-0.5 rounded text-[0.6875rem] font-bold border shrink-0 mt-0.5 text-text-muted bg-surface-bg border border-border">Equal</span>
              </div>
              <div class="bg-surface border border-border rounded-card px-3 py-2.5 flex items-start justify-between gap-3">
                <div class="min-w-0">
                  <span class="text-xs text-text-primary font-bold">Next</span>
                  <p class="text-xs text-text-muted leading-relaxed mt-1">For clothing, AI places M&amp;S alongside Next, acknowledging both as major UK high-street retailers, though Next might be favored for broader family appeal.</p>
                </div>
                <span class="px-2 py-0.5 rounded text-[0.6875rem] font-bold border shrink-0 mt-0.5 text-text-muted bg-surface-bg border border-border">Equal</span>
              </div>
              <div class="bg-surface border border-border rounded-card px-3 py-2.5 flex items-start justify-between gap-3">
                <div class="min-w-0">
                  <span class="text-xs text-text-primary font-bold">John Lewis</span>
                  <p class="text-xs text-text-muted leading-relaxed mt-1">AI often mentions John Lewis as a competitor, particularly for quality clothing and home goods, viewing both as established, trusted UK brands.</p>
                </div>
                <span class="px-2 py-0.5 rounded text-[0.6875rem] font-bold border shrink-0 mt-0.5 text-text-muted bg-surface-bg border border-border">Equal</span>
              </div>
          </div>
      </div>

    <!-- Content Coverage -->
      <div class="bg-surface-bg border border-border rounded-card p-5 space-y-3">
        <span class="text-[11px] font-bold tracking-wider text-accent uppercase">Content Coverage</span>

          <div class="space-y-1.5">
            <span class="text-[0.6875rem] text-text-muted font-semibold uppercase tracking-wider">Well Covered</span>
              <div class="flex items-start gap-2">
                <span class="text-emerald-600 dark:text-emerald-400 text-xs mt-0.5">✓</span>
                <span class="text-xs text-text-muted">M&amp;S Food quality and product range</span>
              </div>
              <div class="flex items-start gap-2">
                <span class="text-emerald-600 dark:text-emerald-400 text-xs mt-0.5">✓</span>
                <span class="text-xs text-text-muted">Company history and founding</span>
              </div>
              <div class="flex items-start gap-2">
                <span class="text-emerald-600 dark:text-emerald-400 text-xs mt-0.5">✓</span>
                <span class="text-xs text-text-muted">Basic clothing categories and sizing</span>
              </div>
              <div class="flex items-start gap-2">
                <span class="text-emerald-600 dark:text-emerald-400 text-xs mt-0.5">✓</span>
                <span class="text-xs text-text-muted">Financial performance summaries and investor relations</span>
              </div>
          </div>

          <div class="space-y-1.5">
            <span class="text-[0.6875rem] text-text-muted font-semibold uppercase tracking-wider">Gaps</span>
              <div class="flex items-start gap-2">
                <span class="text-status-negative text-xs mt-0.5">✕</span>
                <span class="text-xs text-text-muted">Specific details on ethical sourcing practices for individual product lines</span>
              </div>
              <div class="flex items-start gap-2">
                <span class="text-status-negative text-xs mt-0.5">✕</span>
                <span class="text-xs text-text-muted">The brand&#39;s modern fashion relevance and recent design collaborations</span>
              </div>
              <div class="flex items-start gap-2">
                <span class="text-status-negative text-xs mt-0.5">✕</span>
                <span class="text-xs text-text-muted">Comprehensive, quantifiable data on &#39;Plan A&#39; environmental impact and social initiatives.</span>
              </div>
          </div>

          <div class="space-y-1.5">
            <span class="text-[0.6875rem] text-text-muted font-semibold uppercase tracking-wider">Opportunities</span>
              <div class="flex items-start gap-2">
                <span class="text-status-warning text-xs mt-0.5">◆</span>
                <span class="text-xs text-text-muted">Creating dedicated AI-friendly content pages explaining &#39;Plan A&#39; metrics and progress.</span>
              </div>
              <div class="flex items-start gap-2">
                <span class="text-status-warning text-xs mt-0.5">◆</span>
                <span class="text-xs text-text-muted">Developing blog posts or content hubs detailing current fashion trends and how M&amp;S integrates them.</span>
              </div>
              <div class="flex items-start gap-2">
                <span class="text-status-warning text-xs mt-0.5">◆</span>
                <span class="text-xs text-text-muted">Structured Q&amp;A sections on product pages addressing common customer queries about materials and origins.</span>
              </div>
          </div>
      </div>

    <!-- Trust Signals -->
      <div class="bg-surface-bg border border-border rounded-card p-5 space-y-3">
        <span class="text-[11px] font-bold tracking-wider text-accent uppercase">Trust Signals</span>

        <div class="grid grid-cols-2 gap-3">
          <div class="space-y-1">
            <span class="text-[0.6875rem] text-text-muted uppercase tracking-wider">Review Presence</span>
            <span class="block text-sm text-text-primary font-bold">Strong</span>
          </div>
          <div class="space-y-1">
            <span class="text-[0.6875rem] text-text-muted uppercase tracking-wider">Transparency</span>
            <span class="block text-sm text-text-primary font-bold">High</span>
          </div>
        </div>

          <div class="space-y-1.5">
            <span class="text-[0.6875rem] text-text-muted font-semibold uppercase tracking-wider">Authority Indicators</span>
            <div class="flex flex-wrap gap-1.5">
                <span class="px-2 py-0.5 rounded-badge text-[0.6875rem] font-semibold bg-emerald-500/10 border border-emerald-500/20 text-emerald-600">Royal Warrant holder (food and household goods)</span>
                <span class="px-2 py-0.5 rounded-badge text-[0.6875rem] font-semibold bg-emerald-500/10 border border-emerald-500/20 text-emerald-600">FTSE 250 constituent</span>
                <span class="px-2 py-0.5 rounded-badge text-[0.6875rem] font-semibold bg-emerald-500/10 border border-emerald-500/20 text-emerald-600">Extensive media coverage from reputable news organizations</span>
                <span class="px-2 py-0.5 rounded-badge text-[0.6875rem] font-semibold bg-emerald-500/10 border border-emerald-500/20 text-emerald-600">Numerous industry awards for food and retail.</span>
            </div>
          </div>
      </div>

  </div>
</div>

  <div class="bg-surface border border-border rounded-card p-6 space-y-5">
  <h3 class="text-xs font-bold tracking-wider text-text-muted uppercase">AI Answer Engine Performance</h3>

  <div class="grid grid-cols-1 md:grid-cols-2 gap-5">


      <div class="bg-surface-bg border border-border rounded-card p-5 space-y-3 flex flex-col justify-between">
        <div class="space-y-2">
          <div class="flex justify-between items-center">
            <div class="flex items-center gap-2">
              <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-4 h-4 text-orange-600 shrink-0">
  <path d="M15.5 13a3.5 3.5 0 0 0 -3.5 3.5v1a3.5 3.5 0 0 0 7 0v-1.8"></path>
  <path d="M8.5 13a3.5 3.5 0 0 1 3.5 3.5v1a3.5 3.5 0 0 1 -7 0v-1.8"></path>
  <path d="M17.5 16a3.5 3.5 0 0 0 0 -7h-.5"></path>
  <path d="M19 9.3v-2.8a3.5 3.5 0 0 0 -7 0"></path>
  <path d="M6.5 16a3.5 3.5 0 0 1 0 -7h.5"></path>
  <path d="M5 9.3v-2.8a3.5 3.5 0 0 1 7 0v10"></path>
</svg>
              <span class="text-sm font-bold text-text-primary">Claude</span>
            </div>
            <span class="text-xs font-semibold px-2 py-0.5 rounded-badge bg-accent-subtle text-accent border border-accent-border/30">82/100</span>
          </div>
          <!-- Progress Bar -->
          <div class="w-full bg-surface rounded-full h-2.5 overflow-hidden border border-border">
            <div class="bg-gradient-to-r from-accent to-accent/75 h-full rounded-full transition-all duration-1000 ease-out"
                 style="width: 0%;"
                 data-controller="progressbar"
                 data-progressbar-target-width="82%"></div>
          </div>
        </div>
        <!-- Platform Insight -->
          <p class="text-xs text-text-muted leading-relaxed pt-1">Claude demonstrates strong contextual understanding, often weaving together M&amp;S&#39;s heritage with its current market position. It is more likely to mention &#39;Plan A&#39; and sustainability, though often in general terms, indicating that more structured and prominent sustainability data would enhance its detailed understanding and output.</p>
      </div>

      <div class="bg-surface-bg border border-border rounded-card p-5 space-y-3 flex flex-col justify-between">
        <div class="space-y-2">
          <div class="flex justify-between items-center">
            <div class="flex items-center gap-2">
              <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-4 h-4 text-blue-500 shrink-0">
  <path d="M20.945 11a9 9 0 1 1 -3.284 -5.997l-2.655 2.392a5.5 5.5 0 1 0 2.119 6.605h-4.125v-3h7.945"></path>
</svg>
              <span class="text-sm font-bold text-text-primary">Gemini</span>
            </div>
            <span class="text-xs font-semibold px-2 py-0.5 rounded-badge bg-accent-subtle text-accent border border-accent-border/30">78/100</span>
          </div>
          <!-- Progress Bar -->
          <div class="w-full bg-surface rounded-full h-2.5 overflow-hidden border border-border">
            <div class="bg-gradient-to-r from-accent to-accent/75 h-full rounded-full transition-all duration-1000 ease-out"
                 style="width: 0%;"
                 data-controller="progressbar"
                 data-progressbar-target-width="78%"></div>
          </div>
        </div>
        <!-- Platform Insight -->
          <p class="text-xs text-text-muted leading-relaxed pt-1">Gemini&#39;s responses for Marks &amp; Spencer are generally accurate, leveraging its strong integration with Google&#39;s broader knowledge graph. It performs well on factual recall and identifying product categories. However, like ChatGPT, it might occasionally miss the most recent fashion narrative shifts or detailed sustainability metrics if not explicitly highlighted in top-ranked search results.</p>
      </div>

      <div class="bg-surface-bg border border-border rounded-card p-5 space-y-3 flex flex-col justify-between">
        <div class="space-y-2">
          <div class="flex justify-between items-center">
            <div class="flex items-center gap-2">
              <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-4 h-4 text-emerald-500 shrink-0">
  <path d="M11.217 19.384a3.501 3.501 0 0 0 6.783 -1.217v-5.167l-6 -3.35"></path>
  <path d="M5.214 15.014a3.501 3.501 0 0 0 4.446 5.266l4.34 -2.534v-6.946"></path>
  <path d="M6 7.63c-1.391 -.236 -2.787 .395 -3.534 1.689a3.474 3.474 0 0 0 1.271 4.745l4.263 2.514l6 -3.348"></path>
  <path d="M12.783 4.616a3.501 3.501 0 0 0 -6.783 1.217v5.067l6 3.45"></path>
  <path d="M18.786 8.986a3.501 3.501 0 0 0 -4.446 -5.266l-4.34 2.534v6.946"></path>
  <path d="M18 16.302c1.391 .236 2.787 -.395 3.534 -1.689a3.474 3.474 0 0 0 -1.271 -4.745l-4.308 -2.514l-5.955 3.42"></path>
</svg>
              <span class="text-sm font-bold text-text-primary">ChatGPT</span>
            </div>
            <span class="text-xs font-semibold px-2 py-0.5 rounded-badge bg-accent-subtle text-accent border border-accent-border/30">80/100</span>
          </div>
          <!-- Progress Bar -->
          <div class="w-full bg-surface rounded-full h-2.5 overflow-hidden border border-border">
            <div class="bg-gradient-to-r from-accent to-accent/75 h-full rounded-full transition-all duration-1000 ease-out"
                 style="width: 0%;"
                 data-controller="progressbar"
                 data-progressbar-target-width="80%"></div>
          </div>
        </div>
        <!-- Platform Insight -->
          <p class="text-xs text-text-muted leading-relaxed pt-1">ChatGPT provides accurate foundational information about Marks &amp; Spencer, its history, and its primary product lines (food, clothing, home). It often retrieves positive sentiment regarding food quality but can default to older perceptions regarding M&amp;S&#39;s fashion appeal, sometimes presenting it as more traditional without fully capturing recent modernization efforts.</p>
      </div>

      <div class="bg-surface-bg border border-border rounded-card p-5 space-y-3 flex flex-col justify-between">
        <div class="space-y-2">
          <div class="flex justify-between items-center">
            <div class="flex items-center gap-2">
              <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-4 h-4 text-teal-600 shrink-0">
  <path d="M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"></path>
  <path d="M21 21l-6 -6"></path>
</svg>
              <span class="text-sm font-bold text-text-primary">Perplexity</span>
            </div>
            <span class="text-xs font-semibold px-2 py-0.5 rounded-badge bg-accent-subtle text-accent border border-accent-border/30">75/100</span>
          </div>
          <!-- Progress Bar -->
          <div class="w-full bg-surface rounded-full h-2.5 overflow-hidden border border-border">
            <div class="bg-gradient-to-r from-accent to-accent/75 h-full rounded-full transition-all duration-1000 ease-out"
                 style="width: 0%;"
                 data-controller="progressbar"
                 data-progressbar-target-width="75%"></div>
          </div>
        </div>
        <!-- Platform Insight -->
          <p class="text-xs text-text-muted leading-relaxed pt-1">Perplexity, due to its real-time web search capabilities, can provide very current information if it exists in recent news or readily discoverable web pages. It excels at citing sources, allowing for easy verification. Its output for M&amp;S is factually sound but relies heavily on the recency and prominence of public web content, potentially underrepresenting historical but still relevant brand attributes if not actively maintained online.</p>
      </div>
  </div>
</div>

  <div class="bg-surface border border-border rounded-card p-6 space-y-4">
  <h3 class="text-xs font-bold tracking-wider text-text-muted uppercase">Key Insights</h3>

  <div class="space-y-3">

      <div class="flex items-start gap-3 p-3 rounded-card border bg-emerald-500/5 dark:bg-emerald-500/10 border-emerald-500/20">
        <span class="text-emerald-600 dark:text-emerald-400 text-sm mt-0.5 shrink-0">✓</span>
        <div class="min-w-0">
          <span class="text-[0.6875rem] font-bold tracking-wider uppercase text-emerald-600 dark:text-emerald-400">Strength</span>
          <p class="text-sm text-text-primary leading-relaxed mt-0.5">Marks &amp; Spencer benefits from exceptionally high brand recognition and a strong, positive reputation for its food products, which AI consistently highlights as a key differentiator and area of excellence. For example, AI assistants frequently recommend M&amp;S Food as a top choice for quality groceries and ready meals.</p>
        </div>
      </div>

      <div class="flex items-start gap-3 p-3 rounded-card border bg-amber-500/5 dark:bg-amber-500/10 border-amber-500/20">
        <span class="text-amber-600 dark:text-amber-400 text-sm mt-0.5 shrink-0">⚠</span>
        <div class="min-w-0">
          <span class="text-[0.6875rem] font-bold tracking-wider uppercase text-amber-600 dark:text-amber-400">Warning</span>
          <p class="text-sm text-text-primary leading-relaxed mt-0.5">AI assistants often present an outdated perception of M&amp;S&#39;s clothing lines, emphasizing classic styles and traditional demographics while frequently missing the brand&#39;s contemporary fashion collaborations and efforts to appeal to a younger, trend-conscious audience. This risks misaligning AI-driven recommendations with current marketing strategies.</p>
        </div>
      </div>

      <div class="flex items-start gap-3 p-3 rounded-card border bg-fuchsia-500/5 dark:bg-fuchsia-500/10 border-fuchsia-500/20">
        <span class="text-fuchsia-600 dark:text-fuchsia-400 text-sm mt-0.5 shrink-0">◆</span>
        <div class="min-w-0">
          <span class="text-[0.6875rem] font-bold tracking-wider uppercase text-fuchsia-600 dark:text-fuchsia-400">Opportunity</span>
          <p class="text-sm text-text-primary leading-relaxed mt-0.5">There is a significant opportunity to proactively optimize M&amp;S&#39;s sustainability initiatives, particularly &#39;Plan A,&#39; for AI consumption. Creating dedicated, structured content with specific metrics, case studies, and clear FAQs will enable AI to articulate the brand&#39;s ethical and environmental commitments more accurately and favorably, improving its position in sustainability-focused queries.</p>
        </div>
      </div>
  </div>
</div>

  <div class="bg-surface border border-border rounded-card p-6 space-y-6">
  <div class="flex flex-col sm:flex-row justify-between sm:items-center gap-2">
    <div>
      <h3 class="text-xs font-bold tracking-wider text-text-muted uppercase">Improvement Roadmap</h3>
      <p class="text-xs text-text-muted mt-1">Prioritized actions to boost your AI visibility and recommendation rate.</p>
    </div>
    <span class="text-[0.6875rem] font-semibold text-accent bg-accent-subtle border border-accent-border/30 px-3 py-1 rounded-badge uppercase tracking-wider shrink-0">
      6 Actions
    </span>
  </div>



    <div class="space-y-3">
      <div class="flex items-center gap-2">
        <div class="w-8 h-0.5 bg-gradient-to-r from-red-500 to-fuchsia-500 rounded-full"></div>
        <span class="text-[11px] font-bold tracking-wider text-text-muted uppercase">High Impact</span>
        <span class="text-[0.6875rem] text-text-muted">(2)</span>
      </div>

      <div class="grid grid-cols-1 gap-4">
          <div class="bg-surface-bg border border-border rounded-card p-5 space-y-3 relative overflow-hidden group">
            <!-- Bottom accent bar -->
            <div class="absolute bottom-0 inset-x-0 h-0.5 bg-gradient-to-r from-red-500 to-fuchsia-500 opacity-40 group-hover:opacity-70 transition-opacity"></div>

            <div class="flex flex-wrap items-center justify-between gap-3">
              <div class="flex items-center gap-3">
                <span class="px-2.5 py-0.5 rounded text-[0.6875rem] font-bold border uppercase bg-red-500/10 border-red-500/20 text-red-600 dark:text-red-400">High Impact</span>
                <h4 class="text-sm font-bold text-text-primary">Develop AI-Optimized &#39;Plan A&#39; Content Hub</h4>
              </div>

              <div class="flex items-center gap-4 text-xs">
                  <div class="flex items-center gap-1.5 text-text-muted">
                    <span class="text-text-muted font-light">Impact:</span>
                    <span class="font-medium text-text-primary">All engines, especially Claude and Perplexity</span>
                  </div>
                  <div class="flex items-center gap-1.5 text-text-muted">
                    <span class="text-text-muted font-light">Effort:</span>
                    <span class="font-medium text-text-primary">Medium</span>
                  </div>
              </div>
            </div>

            <p class="text-xs sm:text-sm text-text-primary leading-relaxed">Create a dedicated section on the M&amp;S website with highly structured data, clear FAQs, measurable impacts, and easily digestible summaries of &#39;Plan A&#39; initiatives. This will provide AI models with accurate, current, and quantifiable sustainability information, improving accuracy and favorability in relevant queries.</p>
          </div>
          <div class="bg-surface-bg border border-border rounded-card p-5 space-y-3 relative overflow-hidden group">
            <!-- Bottom accent bar -->
            <div class="absolute bottom-0 inset-x-0 h-0.5 bg-gradient-to-r from-red-500 to-fuchsia-500 opacity-40 group-hover:opacity-70 transition-opacity"></div>

            <div class="flex flex-wrap items-center justify-between gap-3">
              <div class="flex items-center gap-3">
                <span class="px-2.5 py-0.5 rounded text-[0.6875rem] font-bold border uppercase bg-red-500/10 border-red-500/20 text-red-600 dark:text-red-400">High Impact</span>
                <h4 class="text-sm font-bold text-text-primary">Modernize Clothing Narrative for AI</h4>
              </div>

              <div class="flex items-center gap-4 text-xs">
                  <div class="flex items-center gap-1.5 text-text-muted">
                    <span class="text-text-muted font-light">Impact:</span>
                    <span class="font-medium text-text-primary">ChatGPT, Gemini, Claude</span>
                  </div>
                  <div class="flex items-center gap-1.5 text-text-muted">
                    <span class="text-text-muted font-light">Effort:</span>
                    <span class="font-medium text-text-primary">Medium</span>
                  </div>
              </div>
            </div>

            <p class="text-xs sm:text-sm text-text-primary leading-relaxed">Publish new content (e.g., blog posts, &#39;about us&#39; sections for collections, product feature blurbs) that explicitly highlights M&amp;S&#39;s modern fashion relevance, trend integration, and appeal to diverse age groups. Emphasize recent collaborations and design updates to counter outdated perceptions held by AI.</p>
          </div>
      </div>
    </div>

    <div class="space-y-3">
      <div class="flex items-center gap-2">
        <div class="w-8 h-0.5 bg-gradient-to-r from-amber-500 to-orange-500 rounded-full"></div>
        <span class="text-[11px] font-bold tracking-wider text-text-muted uppercase">Medium Impact</span>
        <span class="text-[0.6875rem] text-text-muted">(2)</span>
      </div>

      <div class="grid grid-cols-1 gap-4">
          <div class="bg-surface-bg border border-border rounded-card p-5 space-y-3 relative overflow-hidden group">
            <!-- Bottom accent bar -->
            <div class="absolute bottom-0 inset-x-0 h-0.5 bg-gradient-to-r from-amber-500 to-orange-500 opacity-40 group-hover:opacity-70 transition-opacity"></div>

            <div class="flex flex-wrap items-center justify-between gap-3">
              <div class="flex items-center gap-3">
                <span class="px-2.5 py-0.5 rounded text-[0.6875rem] font-bold border uppercase bg-amber-500/10 border-amber-500/20 text-amber-600 dark:text-amber-400">Medium Impact</span>
                <h4 class="text-sm font-bold text-text-primary">Implement Comprehensive Schema Markup</h4>
              </div>

              <div class="flex items-center gap-4 text-xs">
                  <div class="flex items-center gap-1.5 text-text-muted">
                    <span class="text-text-muted font-light">Impact:</span>
                    <span class="font-medium text-text-primary">All engines, especially Gemini and Perplexity</span>
                  </div>
                  <div class="flex items-center gap-1.5 text-text-muted">
                    <span class="text-text-muted font-light">Effort:</span>
                    <span class="font-medium text-text-primary">Medium</span>
                  </div>
              </div>
            </div>

            <p class="text-xs sm:text-sm text-text-primary leading-relaxed">Utilize product, organization, and FAQ schema markup across the M&amp;S website. This structured data explicitly signals key information to AI, making it easier for models to extract accurate facts about products, services, and corporate details, reducing ambiguity.</p>
          </div>
          <div class="bg-surface-bg border border-border rounded-card p-5 space-y-3 relative overflow-hidden group">
            <!-- Bottom accent bar -->
            <div class="absolute bottom-0 inset-x-0 h-0.5 bg-gradient-to-r from-amber-500 to-orange-500 opacity-40 group-hover:opacity-70 transition-opacity"></div>

            <div class="flex flex-wrap items-center justify-between gap-3">
              <div class="flex items-center gap-3">
                <span class="px-2.5 py-0.5 rounded text-[0.6875rem] font-bold border uppercase bg-amber-500/10 border-amber-500/20 text-amber-600 dark:text-amber-400">Medium Impact</span>
                <h4 class="text-sm font-bold text-text-primary">Create &#39;Why M&amp;S&#39; Differentiator Content</h4>
              </div>

              <div class="flex items-center gap-4 text-xs">
                  <div class="flex items-center gap-1.5 text-text-muted">
                    <span class="text-text-muted font-light">Impact:</span>
                    <span class="font-medium text-text-primary">All engines</span>
                  </div>
                  <div class="flex items-center gap-1.5 text-text-muted">
                    <span class="text-text-muted font-light">Effort:</span>
                    <span class="font-medium text-text-primary">Easy</span>
                  </div>
              </div>
            </div>

            <p class="text-xs sm:text-sm text-text-primary leading-relaxed">Develop concise, AI-friendly content that clearly articulates what makes M&amp;S unique compared to competitors in both food and clothing, beyond just quality. Focus on specific sourcing, design philosophy, and customer service elements to help AI generate more distinct competitive positioning.</p>
          </div>
      </div>
    </div>

    <div class="space-y-3">
      <div class="flex items-center gap-2">
        <div class="w-8 h-0.5 bg-gradient-to-r from-blue-500 to-indigo-500 rounded-full"></div>
        <span class="text-[11px] font-bold tracking-wider text-text-muted uppercase">Low Impact</span>
        <span class="text-[0.6875rem] text-text-muted">(2)</span>
      </div>

      <div class="grid grid-cols-1 gap-4">
          <div class="bg-surface-bg border border-border rounded-card p-5 space-y-3 relative overflow-hidden group">
            <!-- Bottom accent bar -->
            <div class="absolute bottom-0 inset-x-0 h-0.5 bg-gradient-to-r from-blue-500 to-indigo-500 opacity-40 group-hover:opacity-70 transition-opacity"></div>

            <div class="flex flex-wrap items-center justify-between gap-3">
              <div class="flex items-center gap-3">
                <span class="px-2.5 py-0.5 rounded text-[0.6875rem] font-bold border uppercase bg-blue-500/10 border-blue-500/20 text-blue-600 dark:text-blue-400">Low Impact</span>
                <h4 class="text-sm font-bold text-text-primary">Monitor AI Output Regularly</h4>
              </div>

              <div class="flex items-center gap-4 text-xs">
                  <div class="flex items-center gap-1.5 text-text-muted">
                    <span class="text-text-muted font-light">Impact:</span>
                    <span class="font-medium text-text-primary">All engines</span>
                  </div>
                  <div class="flex items-center gap-1.5 text-text-muted">
                    <span class="text-text-muted font-light">Effort:</span>
                    <span class="font-medium text-text-primary">Easy</span>
                  </div>
              </div>
            </div>

            <p class="text-xs sm:text-sm text-text-primary leading-relaxed">Establish a routine process to monitor how various AI assistants describe Marks &amp; Spencer. Identify recurring inaccuracies or missed opportunities and use these insights to guide further content optimization efforts and ensure consistent messaging.</p>
          </div>
          <div class="bg-surface-bg border border-border rounded-card p-5 space-y-3 relative overflow-hidden group">
            <!-- Bottom accent bar -->
            <div class="absolute bottom-0 inset-x-0 h-0.5 bg-gradient-to-r from-blue-500 to-indigo-500 opacity-40 group-hover:opacity-70 transition-opacity"></div>

            <div class="flex flex-wrap items-center justify-between gap-3">
              <div class="flex items-center gap-3">
                <span class="px-2.5 py-0.5 rounded text-[0.6875rem] font-bold border uppercase bg-blue-500/10 border-blue-500/20 text-blue-600 dark:text-blue-400">Low Impact</span>
                <h4 class="text-sm font-bold text-text-primary">Optimize Press Releases for AI</h4>
              </div>

              <div class="flex items-center gap-4 text-xs">
                  <div class="flex items-center gap-1.5 text-text-muted">
                    <span class="text-text-muted font-light">Impact:</span>
                    <span class="font-medium text-text-primary">Perplexity, Claude, Gemini</span>
                  </div>
                  <div class="flex items-center gap-1.5 text-text-muted">
                    <span class="text-text-muted font-light">Effort:</span>
                    <span class="font-medium text-text-primary">Easy</span>
                  </div>
              </div>
            </div>

            <p class="text-xs sm:text-sm text-text-primary leading-relaxed">Ensure all future press releases and corporate announcements are written with AI-digestible summaries and include clear, factual bullet points. This helps AI quickly understand and integrate new developments, ensuring the information disseminated is current and accurate.</p>
          </div>
      </div>
    </div>
</div>

  
</div>
</template></turbo-stream><turbo-stream action="update" target="brand-error"><template></template></turbo-stream>