<svg width="400" height="400" viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg">
  <rect width="400" height="400" fill="#f3f4f6"/>

  <!-- Pie chart -->
  <g transform="translate(110, 100)">
    <circle cx="60" cy="60" r="55" fill="#10b981"/>
    <path d="M 60 60 L 60 5 A 55 55 0 0 1 108 80 Z" fill="#3b82f6"/>
    <path d="M 60 60 L 108 80 A 55 55 0 0 1 40 100 Z" fill="#f59e0b"/>
    <text x="35" y="35" font-family="system-ui" font-size="12" fill="white" font-weight="600">40%</text>
    <text x="80" y="60" font-family="system-ui" font-size="12" fill="white" font-weight="600">30%</text>
    <text x="50" y="95" font-family="system-ui" font-size="12" fill="white" font-weight="600">30%</text>
  </g>

  <!-- Revenue box -->
  <g transform="translate(250, 80)">
    <rect x="0" y="0" width="100" height="60" rx="8" fill="white" stroke="#d1d5db" stroke-width="2"/>
    <text x="50" y="22" text-anchor="middle" font-family="system-ui" font-size="10" fill="#6b7280">Revenue</text>
    <text x="50" y="42" text-anchor="middle" font-family="system-ui" font-size="16" fill="#10b981" font-weight="bold">$100K</text>
  </g>

  <!-- Profit box -->
  <g transform="translate(250, 160)">
    <rect x="0" y="0" width="100" height="60" rx="8" fill="white" stroke="#d1d5db" stroke-width="2"/>
    <text x="50" y="22" text-anchor="middle" font-family="system-ui" font-size="10" fill="#6b7280">Profit</text>
    <text x="50" y="42" text-anchor="middle" font-family="system-ui" font-size="16" fill="#3b82f6" font-weight="bold">$30K</text>
  </g>

  <!-- Margin badge -->
  <g transform="translate(80, 240)">
    <rect x="0" y="0" width="240" height="80" rx="12" fill="#3b82f6"/>
    <text x="120" y="30" text-anchor="middle" font-family="system-ui" font-size="14" fill="white">Profit Margin</text>
    <text x="120" y="60" text-anchor="middle" font-family="system-ui" font-size="32" fill="white" font-weight="bold">30%</text>
  </g>

  <text x="200" y="385" text-anchor="middle" font-family="system-ui" font-size="16" font-weight="600" fill="#1f2937">Profit Margin Calculator</text>
</svg>
