/* Visual-first product pages — no nested scrollports (scrollbar flash) */
body.visual-page,
body.visual-page main {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}
/* Contain SVG paint without creating scrollable boxes */
body.visual-page .visual-story-media,
body.visual-page .visual-hero-diagram,
body.visual-page .diagram-panel,
body.visual-page .offering-visual-media {
  overflow: hidden;
  overflow-x: hidden;
  overflow-y: hidden;
  scrollbar-width: none;
}
body.visual-page .visual-story-media::-webkit-scrollbar,
body.visual-page .visual-hero-diagram::-webkit-scrollbar,
body.visual-page .diagram-panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.offerings-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 960px) {
  .offerings-visual-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
}

.offering-visual-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.offering-visual-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
  transform: translateY(-4px);
}
html[data-theme="light"] .offering-visual-card:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
}
.offering-visual-card.accent-violet:hover { border-color: rgba(139, 92, 246, 0.5); }
.offering-visual-card.accent-amber:hover { border-color: rgba(245, 158, 11, 0.5); }

.offering-visual-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: radial-gradient(ellipse 80% 70% at 70% 20%, rgba(34, 229, 154, 0.08), transparent 55%), var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.offering-visual-card.accent-violet .offering-visual-media {
  background: radial-gradient(ellipse 80% 70% at 70% 20%, rgba(139, 92, 246, 0.1), transparent 55%), var(--surface);
}
.offering-visual-card.accent-amber .offering-visual-media {
  background: radial-gradient(ellipse 80% 70% at 70% 20%, rgba(245, 158, 11, 0.1), transparent 55%), var(--surface);
}
.offering-visual-media .diagram-panel,
.offering-visual-media .illus-anim {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px 0;
  min-height: 0;
}
.offering-visual-media .diagram-panel {
  border: none;
  border-radius: 0;
  background: transparent;
  width: 100%;
  height: 100%;
}
.offering-visual-media .diagram-label { display: none; }
.offering-visual-media svg { max-height: 100%; width: 100%; }

.offering-visual-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.offering-visual-tag {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}
.offering-visual-card.accent-violet .offering-visual-tag { color: #8B5CF6; }
.offering-visual-card.accent-amber .offering-visual-tag { color: #F59E0B; }
.offering-visual-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.offering-visual-pitch {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}
.offering-visual-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}
.offering-visual-card.accent-violet .offering-visual-cta { color: #8B5CF6; }
.offering-visual-card.accent-amber .offering-visual-cta { color: #F59E0B; }

/* Visual hero band */
.visual-hero-band {
  padding: 0 0 48px;
  border-bottom: 1px solid var(--border);
}
.visual-hero-band .wrap-wide { text-align: center; }
.visual-hero-diagram {
  margin: 32px auto 0;
  max-width: 920px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
}
.visual-hero-diagram .diagram-panel { margin: 0; border: none; border-radius: 0; }
.visual-hero-diagram .diagram-panel svg { display: block; width: 100%; height: auto; }

/* Visual story sections */
.visual-stories { padding: 0; }
.visual-story {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.visual-story.alt { background: var(--surface); }
.visual-story:last-child { border-bottom: none; }

.visual-story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.visual-story.reverse .visual-story-grid { direction: rtl; }
.visual-story.reverse .visual-story-grid > * { direction: ltr; }
@media (max-width: 900px) {
  .visual-story-grid,
  .visual-story.reverse .visual-story-grid { grid-template-columns: 1fr; direction: ltr; }
  .visual-story-media { order: -1; }
}

.visual-story-media {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: stretch;
}
.visual-story-media .diagram-panel {
  width: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}
.visual-story-media .diagram-label {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.visual-story-media svg { width: 100%; height: auto; display: block; flex: 1; }

.visual-tag {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.visual-story.accent-violet .visual-tag { color: #8B5CF6; }
.visual-story.accent-amber .visual-tag { color: #F59E0B; }

.visual-story-copy h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.visual-lead {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 18px;
}
.visual-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.visual-bullets li {
  font-size: 14px;
  color: var(--text-body);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.visual-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.visual-story.accent-violet .visual-bullets li::before { background: #8B5CF6; box-shadow: 0 0 10px rgba(139, 92, 246, 0.4); }
.visual-story.accent-amber .visual-bullets li::before { background: #F59E0B; box-shadow: 0 0 10px rgba(245, 158, 11, 0.35); }

/* Step strip */
.visual-step-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
@media (max-width: 720px) { .visual-step-strip { grid-template-columns: 1fr; } }
.visual-step-card {
  text-align: center;
  padding: 24px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
}
.visual-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-wash);
  border: 1px solid var(--accent-dim);
}
.visual-step-card h4 { font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.visual-step-card p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* Diagram panel polish on visual pages */
.visual-page .diagram-panel {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
}
.visual-page .diagram-panel svg { background: var(--bg); }

/* Disable sticky stack on visual pages */
.visual-page .stack-group { display: block; }
.visual-page .stack-card {
  position: relative;
  top: auto !important;
  margin-bottom: 0;
  box-shadow: none;
}