/* Shared section rhythm + primitives reused across marketing pages. */

.section { padding: clamp(3rem, 6vw, 4.5rem) var(--space-5); background: var(--background); }
.sectionMuted { background: var(--muted); }
.sectionInner { max-width: 1240px; margin: 0 auto; }
.sectionInner--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.sectionInner--prose { max-width: 68ch; }
.sectionInner--prose h2 { font-family: var(--display); font-size: var(--text-xl); font-weight: 400; margin-top: 2rem; }
.sectionInner--prose p { color: var(--muted-foreground); line-height: var(--leading-normal); }
.sectionInner--narrow { max-width: 560px; }
@media (max-width: 900px) { .sectionInner--split { grid-template-columns: 1fr; } }

.sectionEyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin: 0 0 0.6rem;
}
.sectionHeading {
  font-weight: 400;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  max-width: 24ch;
}
.sectionLead { font-size: var(--text-lg); color: var(--muted-foreground); max-width: 60ch; margin: 0 0 2.25rem; }

.sectionHeaderCenter { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.sectionHeaderCenter .sectionHeading,
.sectionHeaderCenter .sectionLead { margin-left: auto; margin-right: auto; }

/* Section heading paired with a 3D illustration (home sections) -------- */
.sectionHeadingRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.sectionHeadingRow > div:first-child { flex: 1; min-width: 0; }
.sectionIllustration { width: clamp(140px, 15vw, 200px); height: auto; flex: none; }
@media (max-width: 900px) {
  .sectionHeadingRow { flex-direction: column-reverse; align-items: flex-start; gap: 1rem; }
  .sectionIllustration { width: 100px; }
}

/* Workflow rail (home: product transformation) ------------------------ */
.workflowRail {
  counter-reset: workflow;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem;
}
.workflowNode {
  counter-increment: workflow;
  position: relative;
  padding: 0;
}
.workflowNode:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.85rem;
  left: 1.85rem;
  width: calc(100% - 0.35rem);
  height: 1px;
  background: var(--border);
  pointer-events: none;
}
.workflowNodeIcon {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.65rem;
}
.workflowNodeIcon svg { width: 1.05rem; height: 1.05rem; }
.workflowNodeIndex {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: 0.3rem;
}
.workflowNodeIndex::before {
  content: counter(workflow, decimal-leading-zero) " · ";
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--muted-foreground);
}
.workflowNode p { margin: 0; font-size: var(--text-sm); color: var(--muted-foreground); }
@media (max-width: 900px) {
  .workflowRail { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1.5rem; }
  .workflowNode::after { display: none; }
}

/* Video reel wall (home: native-looking outputs) ---------------------- */
.videoReelWall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
.videoReelCard {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--card), var(--muted));
  overflow: hidden;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--motion-ui) var(--ease-standard), border-color var(--motion-ui) var(--ease-standard);
}
.videoReelCard:hover { transform: translateY(-4px); border-color: var(--primary-soft-border); }
.videoReelCard:hover .videoReelCardPlay { opacity: 0.9; border-color: var(--primary); }
.videoReelCard:hover .videoReelCardImg { transform: scale(1.04); }
.videoReelCardImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 600ms var(--ease-standard);
}
.videoReelCard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 12, 10, 0.55) 0%, rgba(10, 12, 10, 0.05) 32%, rgba(10, 12, 10, 0.1) 55%, rgba(10, 12, 10, 0.75) 100%);
  opacity: 0;
  transition: opacity var(--motion-ui) var(--ease-standard);
}
.videoReelCard:has(.videoReelCardImg)::after { opacity: 1; }
.videoReelCardMeta { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.03em; }
.videoReelCardBadge { padding: 0.1rem 0.4rem; border-radius: var(--radius-full); background: var(--primary-soft); color: var(--primary); }
.videoReelCardKind { color: var(--muted-foreground); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.videoReelCard:has(.videoReelCardImg) .videoReelCardKind { color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.videoReelCardPlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--primary-soft-border);
  display: grid;
  place-items: center;
  color: var(--primary);
  opacity: 0.55;
  transition: opacity var(--motion-ui) var(--ease-standard), border-color var(--motion-ui) var(--ease-standard);
}
.videoReelCard:has(.videoReelCardImg) .videoReelCardPlay { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.videoReelCardPlay svg { width: 0.8rem; height: 0.8rem; margin-left: 2px; }
.videoReelCardHook { position: relative; z-index: 2; margin: 0; font-family: var(--display); font-size: 0.92rem; line-height: 1.28; color: var(--foreground); }
.videoReelCard:has(.videoReelCardImg) .videoReelCardHook { color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
@media (max-width: 900px) { .videoReelWall { grid-template-columns: repeat(2, 1fr); } }

/* Attribute bento (home: product-aware difference) — Brief as the large
   "source" tile, the four downstream artifacts fill the 2x2 beside it. Each
   cell settles into a primary-tinted border on reveal (once, not looping)
   to read as "activated by the brief" without competing for attention. --- */
.attributeBento {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(120px, auto));
  gap: 1rem;
}
.attributeBentoCell {
  position: relative;
  padding: 1.25rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(14px);
  animation: attributeBentoIn 0.6s var(--ease-standard) both;
  animation-delay: calc(var(--i, 0) * 130ms + 0.1s);
  animation-play-state: paused;
}
.attributeBento.isInView .attributeBentoCell { animation-play-state: running; }
@keyframes attributeBentoIn {
  from { opacity: 0; transform: translateY(14px); border-color: var(--border); }
  70% { border-color: var(--border); }
  100% { opacity: 1; transform: translateY(0); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
}
.attributeBentoCell--brief {
  grid-column: 1;
  grid-row: 1 / span 2;
  justify-content: flex-start;
  background: linear-gradient(160deg, var(--primary-soft), var(--card) 75%);
}
.attributeBentoCell--brief .attributeBentoLabel { color: var(--primary); }
.attributeBentoLabel {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
}
.attributeBentoValue { margin: 0; font-size: var(--text-sm); color: var(--foreground); line-height: 1.4; }
@media (max-width: 760px) {
  .attributeBento { grid-template-columns: 1fr; grid-template-rows: none; }
  .attributeBentoCell--brief { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .attributeBentoCell { animation: none; opacity: 1; border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
}

/* Cadence lanes (home: weekly cadence) --------------------------------- */
.cadenceLanes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cadenceLane {
  padding: 1.1rem 1rem 1.15rem;
  display: grid;
  gap: 0.65rem;
  border-right: 1px solid var(--border);
}
.cadenceLane:first-child { border-left: 1px solid var(--border); }
.cadenceLaneLabel {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cadenceLaneState {
  position: relative;
  justify-self: start;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 0;
  color: var(--muted-foreground);
}
.cadenceLaneState::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.45rem;
  vertical-align: 0.05em;
  background: var(--border);
}
.cadenceLaneState.isRendering { color: var(--info); }
.cadenceLaneState.isRendering::before { background: var(--info); }
.cadenceLaneState.isApproved { color: var(--primary); }
.cadenceLaneState.isApproved::before { background: var(--primary); }
.cadenceLaneState.isScheduled { color: var(--warning); }
.cadenceLaneState.isScheduled::before { background: var(--warning); }
.cadenceLaneState.isPublished { color: var(--foreground); font-weight: 600; }
.cadenceLaneState.isPublished::before { background: var(--primary); }
@media (max-width: 900px) {
  .cadenceLanes { grid-template-columns: repeat(2, 1fr); }
  .cadenceLane {
    border-left: none;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .cadenceLane:nth-child(odd) { border-left: 1px solid var(--border); }
  .cadenceLane:last-child { border-bottom: none; }
}

/* Link cells — editorial surface for the use-case grid ------------------ */
.useCaseGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}
.useCaseCard {
  padding: 1.5rem 1.35rem 1.6rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.useCaseCard:nth-child(3n+1) { border-left: 1px solid var(--border); }
.useCaseCardIcon {
  display: inline-flex;
  align-items: center;
  color: var(--muted-foreground);
  margin-bottom: 0.85rem;
}
.useCaseCardIcon svg { width: 1.15rem; height: 1.15rem; }
.useCaseCard h3 { margin: 0 0 0.4rem; font-size: var(--text-base); }
.useCaseCard h3 a {
  color: var(--foreground);
  text-decoration: none;
  transition: color var(--motion-ui) var(--ease-standard);
}
.useCaseCard h3 a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.useCaseCard p { margin: 0; color: var(--muted-foreground); font-size: var(--text-sm); }
@media (max-width: 900px) {
  .useCaseGrid { grid-template-columns: 1fr; }
  .useCaseCard {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}

/* Differentiation bento (home: vs. freelancers/editors/generic AI) ----- */
.diffPanels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.diffPanel {
  position: relative;
  padding: 1.6rem 1.5rem 1.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: transform var(--motion-ui) var(--ease-standard), border-color var(--motion-ui) var(--ease-standard), box-shadow var(--motion-ui) var(--ease-standard);
  animation: diffPanelIn 0.6s var(--ease-standard) both;
  animation-delay: calc(var(--i, 0) * 120ms + 0.1s);
  animation-play-state: paused;
}
.diffPanels.isInView .diffPanel { animation-play-state: running; }
@keyframes diffPanelIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.diffPanel:hover {
  transform: translateY(-4px);
  border-color: var(--primary-soft-border);
  box-shadow: var(--shadow-lg);
}
.diffPanelIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 1rem;
}
.diffPanelIcon svg { width: 1.15rem; height: 1.15rem; }
.diffPanel h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--text-lg);
  margin: 0 0 0.5rem;
}
.diffPanel h3 a {
  color: var(--foreground);
  text-decoration: none;
  transition: color var(--motion-ui) var(--ease-standard);
}
.diffPanel h3 a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.diffPanel p { margin: 0; color: var(--muted-foreground); font-size: var(--text-sm); }
@media (max-width: 900px) {
  .diffPanels { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .diffPanel { animation: none; opacity: 1; }
}

/* Closing "brief to feed" illustration moment, reusing the hero artwork - */
.shippedVisual { display: grid; place-items: center; min-width: 0; }
.shippedVisual img { width: min(100%, 420px); height: auto; display: block; margin: 0 auto; user-select: none; }
@media (max-width: 900px) { .shippedVisual { order: -1; } .shippedVisual img { width: min(100%, 300px); } }

/* Customer-proof placeholder (no fabricated stats/logos) --------------- */
.proofPlaceholder {
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  max-width: 60ch;
}
.proofPlaceholderLabel {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
  margin: 0 0 0.5rem;
}
.proofPlaceholder p:last-child { margin: 0; color: var(--muted-foreground); }

/* Product page workflow grid -------------------------------------------- */
.productWorkflowGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.productWorkflowStep { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; }
.productWorkflowIndex { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--primary); }
.productWorkflowStep h2 { font-size: var(--text-base); margin: 0.3rem 0 0.5rem; }
.productWorkflowStep p { margin: 0; color: var(--muted-foreground); font-size: var(--text-sm); }
@media (max-width: 900px) { .productWorkflowGrid { grid-template-columns: 1fr; } }

.notList { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; max-width: 56ch; }
.notList li { padding-left: 1.1rem; position: relative; color: var(--muted-foreground); }
.notList li::before { content: "—"; position: absolute; left: 0; color: var(--border); }

/* Publish-destinations tag rows ------------------------------------------ */
.tagRow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-4); }
.tagRowLabel { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted-foreground); margin-right: var(--space-2); }
.tag--strawberry { background: var(--flavor-strawberry-soft); color: var(--flavor-strawberry); }
.tag--tangerine { background: var(--flavor-tangerine-soft); color: var(--flavor-tangerine); }
.tag--banana { background: var(--flavor-banana-soft); color: var(--flavor-banana); }
.tag--kiwi { background: var(--flavor-kiwi-soft); color: var(--flavor-kiwi); }
.tag--blueberry { background: var(--flavor-blueberry-soft); color: var(--flavor-blueberry); }
.tag--grape { background: var(--flavor-grape-soft); color: var(--flavor-grape); }

/* Platform chips — icon + label pill, used for publish-destination logos */
.platformRow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-4); }
.platformChip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.75rem 0.35rem 0.5rem; border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 600; }
.platformChip svg { width: 1.05rem; height: 1.05rem; flex: none; }
.platformChip--strawberry { background: var(--flavor-strawberry-soft); color: var(--flavor-strawberry); }
.platformChip--tangerine { background: var(--flavor-tangerine-soft); color: var(--flavor-tangerine); }
.platformChip--banana { background: var(--flavor-banana-soft); color: var(--flavor-banana); }
.platformChip--kiwi { background: var(--flavor-kiwi-soft); color: var(--flavor-kiwi); }
.platformChip--blueberry { background: var(--flavor-blueberry-soft); color: var(--flavor-blueberry); }
.platformChip--grape { background: var(--flavor-grape-soft); color: var(--flavor-grape); }

/* Flavor-accented icon grids — compact colored badge cards for short lists,
   e.g. objection-handling and trust sections that would otherwise be bare text. */
.flavorIconGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border); }
.flavorIconGrid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flavorIconCard { padding: 1.5rem 1.35rem 1.6rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.flavorIconGrid--cols-3 .flavorIconCard:nth-child(3n+1),
.flavorIconGrid:not(.flavorIconGrid--cols-3) .flavorIconCard:nth-child(4n+1) { border-left: 1px solid var(--border); }
.flavorIconBadge { display: inline-flex; align-items: center; justify-content: center; width: 2.15rem; height: 2.15rem; border-radius: var(--radius-full); margin-bottom: 0.85rem; }
.flavorIconBadge svg { width: 1.05rem; height: 1.05rem; }
.flavorIconCard h3 { margin: 0 0 0.4rem; font-size: var(--text-base); }
.flavorIconCard p { margin: 0; color: var(--muted-foreground); font-size: var(--text-sm); }
.flavorIconCard--strawberry .flavorIconBadge { background: var(--flavor-strawberry-soft); color: var(--flavor-strawberry); }
.flavorIconCard--tangerine .flavorIconBadge { background: var(--flavor-tangerine-soft); color: var(--flavor-tangerine); }
.flavorIconCard--banana .flavorIconBadge { background: var(--flavor-banana-soft); color: var(--flavor-banana); }
.flavorIconCard--kiwi .flavorIconBadge { background: var(--flavor-kiwi-soft); color: var(--flavor-kiwi); }
.flavorIconCard--blueberry .flavorIconBadge { background: var(--flavor-blueberry-soft); color: var(--flavor-blueberry); }
.flavorIconCard--grape .flavorIconBadge { background: var(--flavor-grape-soft); color: var(--flavor-grape); }
@media (max-width: 900px) {
  .flavorIconGrid,
  .flavorIconGrid--cols-3 { grid-template-columns: 1fr; }
  .flavorIconCard { border-left: 1px solid var(--border); }
}

/* Template gallery ------------------------------------------------------- */
.templateGallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.templateGalleryCard { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--card); }
.templateGalleryThumb {
  aspect-ratio: 9 / 16;
  background: var(--muted);
  display: grid;
  place-items: center;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}
.templateGalleryThumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.templateGalleryBody { padding: 0.9rem 1rem 1.1rem; }
.templateGalleryBody h2 { font-size: var(--text-base); margin: 0 0 0.3rem; }
.templateGalleryBody h2 a { color: var(--foreground); }
.templateGalleryBody p { margin: 0 0 0.4rem; color: var(--muted-foreground); font-size: var(--text-sm); }
.templateGalleryMeta { font-family: var(--font-mono); font-size: var(--text-xs) !important; color: var(--muted-foreground); }
@media (max-width: 900px) { .templateGallery { grid-template-columns: repeat(2, 1fr); } }

.templateDetailThumb {
  aspect-ratio: 9 / 16;
  max-width: 320px;
  background: var(--muted);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
}
.templateDetailThumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }
.templateDetailMeta { display: grid; gap: 0.6rem; margin: 0 0 1.5rem; }
.templateDetailMeta > div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.templateDetailMeta dt { color: var(--muted-foreground); font-size: var(--text-sm); }
.templateDetailMeta dd { margin: 0; font-weight: 600; font-size: var(--text-sm); }

.emptyState { color: var(--muted-foreground); }

.pricingFootnote { color: var(--muted-foreground); font-size: var(--text-sm); margin-top: 1.5rem; }

/* Pipeline diagram (home: product transformation) — always-dark canvas
   surface, mirrors flow.css's --canvas-* tokens so it reads as the same
   "generation pipeline" visual language as the in-app flow view. -------- */
.pipelineDiagram {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 2.5rem;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: var(--radius-xl);
  background: var(--canvas-bg);
  border: 1px solid var(--canvas-border);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-standard), transform 0.7s var(--ease-standard);
}
.pipelineDiagram.isInView { opacity: 1; transform: translateY(0); }
/* Depth: a soft brand-tinted vignette in the top-left + a slow diagonal
   sheen sweep, both purely decorative (pointer-events none, no markup). */
.pipelineDiagram::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 12% 8%, color-mix(in srgb, var(--canvas-accent) 12%, transparent), transparent 55%),
    radial-gradient(90% 90% at 100% 100%, rgba(0, 0, 0, 0.06), transparent 55%);
  pointer-events: none;
}
.pipelineDiagram::after {
  content: "";
  position: absolute;
  inset: -20% -35%;
  z-index: 0;
  background: linear-gradient(115deg, transparent 42%, color-mix(in srgb, var(--canvas-accent) 9%, transparent) 50%, transparent 58%);
  pointer-events: none;
  animation: pipelineSheenMove 10s ease-in-out infinite;
  animation-play-state: paused;
}
.pipelineDiagram.isInView::after { animation-play-state: running; }

[data-theme="dark"] .pipelineDiagram::before {
  background:
    radial-gradient(120% 90% at 12% 8%, color-mix(in srgb, var(--canvas-accent) 12%, transparent), transparent 55%),
    radial-gradient(90% 90% at 100% 100%, rgba(0, 0, 0, 0.4), transparent 55%);
}
@keyframes pipelineSheenMove {
  0%, 100% { transform: translateX(-12%); }
  50% { transform: translateX(12%); }
}
.pipelineDiagramGrid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(var(--canvas-grid-dot) 1px, transparent 1.2px);
  background-size: 20px 20px;
  opacity: 0.7;
  pointer-events: none;
}
.pipelineDiagram .pipelineLineRunner,
.pipelineDiagram .pipelineMarkGlow,
.pipelineDiagram .pipelineOutputCard {
  animation-play-state: paused;
}
.pipelineDiagram.isInView .pipelineLineRunner,
.pipelineDiagram.isInView .pipelineMarkGlow,
.pipelineDiagram.isInView .pipelineOutputCard {
  animation-play-state: running;
}

.pipelineFlow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(150px, 200px) minmax(70px, 1fr) minmax(200px, 260px);
  align-items: stretch;
}
.pipelineBrief {
  align-self: center;
  padding: 1rem 1.1rem;
  background: var(--canvas-surface);
  border: 1px solid var(--canvas-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.pipelineBriefLabel {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--canvas-accent);
  margin-bottom: 0.4rem;
}
.pipelineBriefText { margin: 0; font-size: var(--text-sm); line-height: 1.4; color: var(--canvas-muted-soft); }

.pipelineWire { position: relative; min-height: 14rem; }
.pipelineLines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pipelineLinePath {
  fill: none;
  stroke: color-mix(in srgb, var(--canvas-accent) 35%, transparent);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 2.5 3;
  vector-effect: non-scaling-stroke;
}
.pipelineLineRunner {
  fill: none;
  stroke: var(--canvas-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 6 94;
  filter: drop-shadow(0 0 4px var(--canvas-accent));
  animation: pipelineFlowRun 2.8s linear infinite;
}
@keyframes pipelineFlowRun { to { stroke-dashoffset: -100; } }

/* Line endpoints — square ports, matching the in-app flow canvas's
   input/output port chrome (flow-drawflow.css: 10px square, no radius). */
.pipelineLinePort {
  position: absolute;
  z-index: 2;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--canvas-accent);
  background: color-mix(in srgb, var(--canvas-accent) 22%, var(--canvas-bg));
  box-shadow: 0 0 0 1px rgba(8, 32, 16, 0.35), 0 0 8px color-mix(in srgb, var(--canvas-accent) 55%, transparent);
  pointer-events: none;
}

.pipelineMarkGlow {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 5.5rem;
  height: 5.5rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--canvas-accent-soft) 0%, transparent 70%);
  filter: blur(4px);
  animation: pipelineGlowPulse 3.2s ease-in-out infinite;
}
.pipelineMark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-lg);
  background: var(--canvas-surface);
  border: 1px solid color-mix(in srgb, var(--canvas-accent) 45%, var(--canvas-border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--canvas-accent) 12%, transparent), var(--shadow-md);
}
.pipelineMark img { width: 1.9rem; height: 1.9rem; display: block; border-radius: var(--radius-sm); }
@keyframes pipelineGlowPulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.92); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.pipelineOutputs {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  gap: 0.6rem;
}
.pipelineOutputCard {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  background: var(--canvas-surface);
  border: 1px solid var(--canvas-border);
  border-radius: var(--radius-md);
  opacity: 0;
  animation: pipelineCardIn 0.6s var(--ease-standard) both;
  animation-delay: calc(var(--i, 0) * 140ms + 0.4s);
}
.pipelineOutputPlay {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--canvas-accent-strong);
  color: var(--canvas-surface);
}
.pipelineOutputPlay svg { width: 0.6rem; height: 0.6rem; }
.pipelineOutputCopy { min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.pipelineOutputHook {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--canvas-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pipelineOutputBadge {
  align-self: flex-start;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  background: var(--canvas-accent-soft);
  color: var(--canvas-accent-ink);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.02em;
}
@keyframes pipelineCardIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.pipelineCapabilities {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  align-content: center;
}
.pipelineCapabilities li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem 0.9rem;
  background: var(--canvas-surface-soft);
  border: 1px solid var(--canvas-border);
  border-radius: var(--radius-md);
}
.pipelineCapabilityIcon {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  color: var(--canvas-accent);
}
.pipelineCapabilityIcon svg { width: 1.1rem; height: 1.1rem; }
.pipelineCapabilities p { margin: 0; font-size: 0.82rem; line-height: 1.3; color: var(--canvas-muted-soft); }

@media (max-width: 1100px) {
  .pipelineDiagram { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .pipelineFlow { grid-template-columns: 1fr; gap: 1.5rem; }
  .pipelineWire { display: none; }
  .pipelineOutputs { grid-template-rows: none; }
  .pipelineCapabilities { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pipelineDiagram { opacity: 1; transform: none; transition: none; }
  .pipelineDiagram::after { animation: none; }
  .pipelineLineRunner { animation: none; }
  .pipelineMarkGlow { animation: none; }
  .pipelineOutputCard { animation: none; opacity: 1; }
}

/* Marketing forms (contact, demo — honeypot lives here) ----------------- */
.marketingForm { display: grid; gap: 0; max-width: 480px; }
.marketingForm .btnPrimary { margin-top: 0.5rem; }
.hpField { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* SaaS Solution Page Custom Styling ------------------------------------- */
.saasMetricsGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.saasMetricItem {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.saasMetricValue {
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  word-break: break-word;
}
.saasMetricLabel {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--foreground);
  line-height: 1.3;
}
.saasMetricSub {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  margin: 0;
  line-height: 1.45;
}

.saasProblemGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.saasProblemCard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.saasProblemCard--winner {
  background: var(--primary-soft);
  border-color: var(--primary-soft-border);
  box-shadow: var(--shadow-md);
}
.saasProblemBadge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
}
.saasProblemCard--winner .saasProblemBadge {
  color: var(--primary);
  font-weight: 600;
}
.saasProblemTitle {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0;
  color: var(--foreground);
}
.saasProblemText {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  line-height: 1.55;
  margin: 0;
}

.saasStrategyBox {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem clamp(1.5rem, 4vw, 3rem);
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}
.saasStrategyBox h3 {
  font-family: var(--display);
  font-size: var(--text-xl);
  margin: 0 0 1rem;
  color: var(--foreground);
}
.saasStrategyBox p {
  color: var(--muted-foreground);
  line-height: 1.65;
  font-size: var(--text-base);
  margin-bottom: 1.25rem;
}

.saasCaseCard {
  background: linear-gradient(145deg, var(--card), var(--muted));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 2rem;
  align-items: center;
}
.saasCaseStats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.saasCaseStatBox {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  text-align: center;
}

@media (max-width: 900px) {
  .saasMetricsGrid { grid-template-columns: repeat(2, 1fr); }
  .saasProblemGrid { grid-template-columns: 1fr; }
  .saasCaseCard { grid-template-columns: 1fr; }
}
@media (max-width: 550px) {
  .saasMetricsGrid { grid-template-columns: 1fr; }
  .saasCaseStats { grid-template-columns: 1fr; }
}

