.hero-proof {
  flex: 0 1 380px;
  min-width: 0;
}
.growth-graphic {
  margin: 0;
  padding: 28px 28px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.growth-graphic h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.7px;
}
.growth-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0 16px;
  font-size: 11px;
  color: var(--muted);
}
.growth-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.growth-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.friction-key {
  background: var(--line);
}
.flow-key {
  background: var(--accent);
}
.growth-highlight {
  fill: var(--violet-soft);
}
.growth-graphic svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.growth-grid {
  stroke: var(--line);
  opacity: 0.55;
}
.growth-bars {
  fill: var(--accent);
}
.growth-bars rect:last-child {
  fill: var(--violet);
}
.friction-bars {
  fill: var(--line);
}
.growth-axis {
  fill: var(--muted);
  font: 10px var(--mono);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.growth-message {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 18px;
}
.growth-graphic figcaption {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}
.brand-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.brand-strip > .mono {
  grid-column: 1 / -1;
}
.brand-strip > .mono br {
  display: none;
}
.brand-strip .brand-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.6px;
  color: var(--text);
  white-space: nowrap;
}
.brand-strip .woo-brand {
  font-size: 16px;
  gap: 6px;
}
.experience-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.brand-item img {
  object-fit: contain;
  flex-shrink: 0;
}
.brand-strip .oxid-brand {
  justify-content: flex-start;
}
.shopify-name {
  font-weight: 650;
  font-style: italic;
}
.brand-strip .api-brand {
  font-size: 17px;
  letter-spacing: -0.3px;
}
.api-brand > svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
}
.brand-dark {
  display: none;
}
:root[data-theme="dark"] .brand-light {
  display: none;
}
:root[data-theme="dark"] .brand-dark {
  display: block;
}
.commerce-diagram,
.delivery-diagram {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  background: var(--panel);
}
.commerce-diagram {
  grid-column: 1 / -1;
  margin-top: 24px;
}
.diagram-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}
.diagram-heading h3 {
  margin-top: 7px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.8px;
  font-weight: 600;
}
.diagram-heading > p {
  color: var(--muted);
  font-size: 12.5px;
}
.commerce-map {
  display: grid;
  grid-template-columns: 1fr 0.95fr 1.15fr;
  gap: 40px;
  align-items: center;
  position: relative;
  padding: 40px 0 34px;
  background-image: radial-gradient(var(--line) 0.8px, transparent 0.8px);
  background-size: 15px 15px;
  margin-top: 28px;
}
.storefront-node,
.platform-node {
  min-width: 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.browser-chrome {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.browser-chrome i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.6;
}
.browser-chrome > span {
  font: 9px var(--mono);
  color: var(--muted);
  margin-left: 9px;
}
.storefront-body {
  padding: 20px 18px 18px;
}
.storefront-body .mono {
  font-size: 8px;
}
.commerce-map h4 {
  margin: 6px 0 0;
  font-size: 19px;
  letter-spacing: -0.4px;
  line-height: 1.3;
  font-weight: 600;
}
.product-sketch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0 16px;
}
.product-sketch > span {
  position: relative;
  height: 50px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.product-sketch > span::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 24px;
  top: 12px;
  left: calc(50% - 9px);
  border: 1.5px solid var(--accent);
  border-radius: 5px 5px 2px 2px;
  opacity: 0.75;
}
.product-sketch > span:nth-child(2)::before {
  border-radius: 50%;
  height: 20px;
  width: 20px;
  left: calc(50% - 10px);
  top: 14px;
}
.product-sketch > span:nth-child(3)::before {
  transform: rotate(-12deg);
  width: 14px;
}
.checkout-sketch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 10px;
  color: var(--muted);
}
.checkout-sketch > span {
  color: var(--accent);
}
.platform-node {
  text-align: center;
  padding: 26px 14px 22px;
  border-color: var(--accent);
  box-shadow:
    0 0 0 6px var(--soft),
    var(--shadow);
  animation: platform-pulse 3.2s ease-in-out infinite;
}
@keyframes platform-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 6px var(--soft),
      0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent),
      var(--shadow);
  }
  50% {
    box-shadow:
      0 0 0 9px var(--soft),
      0 0 34px 4px color-mix(in srgb, var(--accent) 32%, transparent),
      var(--shadow);
  }
}
/* Travelling dots along the connectors (paths measured in script.js) */
.flow-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}
.flow-dots path {
  fill: none;
  stroke: none;
}
.flow-dot {
  fill: var(--accent);
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--accent) 70%, transparent));
}
.flow-dots[hidden] {
  display: none;
}
.hub-icon {
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--accent);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin: 0 auto 15px;
}
.hub-icon svg {
  width: 26px;
  height: 26px;
}
.platform-node > p {
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 9px;
}
.platform-options {
  display: block;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 13px;
  font-size: 9px;
  color: var(--muted);
  text-transform: none;
}
/* Connectors: storefront → platform → bus → systems, with arrowheads */
.platform-node::before,
.platform-node::after,
.system-node::before {
  content: "";
  position: absolute;
  top: 50%;
  border-top: 1px solid var(--accent);
}
.platform-node::before {
  right: 100%;
  width: 40px;
}
.platform-node::after {
  left: 100%;
  width: 20px;
}
.system-nodes {
  display: grid;
  gap: 14px;
  position: relative;
}
.system-nodes::before {
  content: "";
  position: absolute;
  top: 41px;
  bottom: 41px;
  left: -20px;
  border-left: 1px solid var(--accent);
}
.system-node {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 82px;
  gap: 12px;
  padding: 16px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  text-align: left;
  transition:
    border-color 160ms,
    background 160ms;
}
.system-node::before {
  width: 20px;
  right: 100%;
}
.arrow-head {
  position: absolute;
  top: 50%;
  left: -9px;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  color: var(--accent);
  pointer-events: none;
}
.system-node:hover,
.system-node[aria-pressed="true"] {
  background: var(--soft);
  border-color: var(--accent);
}
.system-icon svg {
  display: block;
  width: 25px;
  height: 25px;
  color: var(--accent);
}
.system-node strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}
.system-node small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 3px;
}
.node-indicator {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  border: 1px solid var(--muted);
}
[aria-pressed="true"] .node-indicator {
  border-color: var(--accent);
  background: var(--accent);
}
.integration-detail {
  display: flex;
  gap: 22px;
  align-items: baseline;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  min-height: 67px;
}
.detail-label {
  color: var(--accent);
  font: 10px var(--mono);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  min-width: 110px;
}
.integration-detail p,
.diagram-hint {
  color: var(--muted);
  font-size: 13px;
}
.diagram-hint {
  margin-top: 8px;
  font: 9px var(--mono);
}
.review-badge {
  color: var(--violet);
  background: var(--violet-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 12px;
  font: 9px var(--mono);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.delivery-flow {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 25px;
}
.delivery-flow li {
  position: relative;
  min-width: 0;
}
.flow-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 48px;
  height: 48px;
  color: var(--accent);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 25px;
}
.delivery-flow li:last-child .flow-marker,
.delivery-flow li:last-child .flow-subtitle {
  color: var(--violet);
}
.flow-marker > svg {
  width: 23px;
  height: 23px;
}
.flow-number {
  position: absolute;
  right: -8px;
  bottom: -8px;
  background: var(--panel);
  padding: 2px 4px;
  font: 9px var(--mono);
  color: var(--text);
}
.delivery-flow li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 62px;
  right: 12px;
  top: 24px;
  border-top: 1px solid var(--line);
}
.delivery-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 19px;
  width: 7px;
  height: 7px;
  border-top: 1.4px solid var(--accent);
  border-right: 1.4px solid var(--accent);
  transform: rotate(45deg);
}
.delivery-flow h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.flow-subtitle {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
  margin-top: 3px;
}
.delivery-flow p {
  margin-top: 13px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.75;
}
.review-loop {
  margin: 28px 0 0;
  border-top: 1px dashed var(--line);
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.review-loop > span {
  font-size: 26px;
  line-height: 1;
  color: var(--violet);
}
.review-loop strong {
  font-weight: 600;
  color: var(--violet);
  margin-right: 12px;
}
@media (max-width: 1000px) {
  .hero-proof {
    flex-basis: 300px;
  }
  .hero-bottom {
    gap: 32px;
  }
  .brand-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .experience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brand-strip > .mono {
    grid-column: 1 / -1;
  }
  .brand-strip > .mono br {
    display: none;
  }
  .commerce-diagram,
  .delivery-diagram {
    padding: 24px;
  }
  .commerce-diagram {
    margin-top: 0;
  }
  .commerce-map {
    gap: 32px;
  }
  .platform-node::before {
    width: 32px;
  }
  .platform-node::after {
    width: 16px;
  }
  .system-nodes::before {
    left: -16px;
  }
  .system-node::before {
    width: 16px;
  }
  .system-node {
    gap: 8px;
  }
  .system-icon svg {
    width: 20px;
    height: 20px;
  }
  .delivery-flow {
    gap: 18px;
  }
  .review-badge {
    display: none;
  }
}
@media (max-width: 720px) {
  .hero-proof {
    width: min(100%, 380px);
    margin: 32px auto 0;
  }
  .growth-graphic {
    padding: 22px 20px 20px;
  }
  .brand-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }
  .brand-strip .brand-item {
    font-size: 16px;
    gap: 8px;
    min-height: 40px;
  }
  .brand-strip .woo-brand {
    font-size: 14px;
    gap: 6px;
  }
  .woo-brand img {
    width: 28px;
    height: 28px;
  }
  .wordpress-brand img {
    width: 26px;
    height: 26px;
  }
  .experience-grid {
    grid-template-columns: 1fr;
  }
  .brand-strip .api-brand {
    font-size: 14px;
  }
  .commerce-diagram,
  .delivery-diagram {
    padding: 23px 20px;
    border-radius: 16px;
  }
  .diagram-heading {
    display: block;
  }
  .diagram-heading h3 {
    font-size: 24px;
  }
  .diagram-heading > p {
    margin-top: 12px;
  }
  .diagram-heading > p br {
    display: none;
  }
  .commerce-map {
    grid-template-columns: minmax(0, 1fr);
    padding: 15px 0 24px;
    gap: 36px;
  }
  .storefront-node,
  .platform-node {
    width: min(100%, 290px);
    justify-self: center;
  }
  .storefront-body {
    padding: 17px;
  }
  .platform-node::before,
  .platform-node::after {
    width: 0;
    height: 31px;
    left: 50%;
    right: auto;
    border-top: 0;
    border-left: 1px solid var(--accent);
  }
  .platform-node::before {
    top: auto;
    bottom: calc(100% + 5px);
  }
  .platform-node::after {
    top: calc(100% + 5px);
  }
  .platform-node .arrow-head {
    left: 50%;
    top: -12px;
    margin: 0 0 0 -5px;
    transform: rotate(90deg);
  }
  .system-nodes {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    gap: 8px;
    background: var(--panel);
  }
  .system-node {
    min-height: 72px;
  }
  .system-node::before,
  .system-nodes::before,
  .system-node .arrow-head,
  .flow-dots {
    display: none;
  }
  .integration-detail {
    flex-direction: column;
    gap: 8px;
    min-height: 137px;
  }
  .delivery-flow {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 30px;
  }
  .delivery-flow li {
    padding-left: 70px;
    min-height: 105px;
  }
  .flow-marker {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }
  .delivery-flow li:not(:last-child)::before {
    top: 61px;
    bottom: -14px;
    left: 24px;
    right: auto;
    width: 0;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .delivery-flow li:not(:last-child)::after {
    display: none;
  }
  .delivery-flow p {
    margin-top: 10px;
  }
  .review-loop {
    align-items: flex-start;
  }
  .review-loop strong {
    display: block;
    margin-bottom: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .system-node {
    transition: none;
  }
  .platform-node {
    animation: none;
  }
  .flow-dots {
    display: none;
  }
}
