/* ══════════════════════════════════════════════════════════════
   AFFLATUS — LANDING SERVICE PAGES (shared section rhythm)
   Uses tokens from global.css only
   ══════════════════════════════════════════════════════════════ */

/* ── Section backgrounds & rhythm ── */
.section-problems {
  background: var(--color-bg-white);
}
.section-problems .section-title {
  color: var(--color-text-primary);
}

.section-solution {
  background: var(--color-bg-hero);
  color: var(--color-text-light);
}
.section-solution .section-label {
  color: var(--color-brand-purple-light);
}
.section-solution .section-title {
  color: var(--color-text-light);
}
.section-solution .timeline::before {
  background: rgba(155, 77, 176, 0.35);
}
.section-solution .timeline-content h4 {
  color: var(--color-text-light);
}
.section-solution .timeline-content p {
  color: rgba(255, 255, 255, 0.75);
}
.section-solution .timeline-content .timeline-duration {
  color: var(--color-brand-purple-light);
}

.section-faq {
  background: var(--color-bg-white);
}
.section-faq .section-title {
  color: var(--color-text-primary);
}

.metrics-bar.theme-dark {
  background: var(--color-bg-dark);
  border-radius: var(--border-radius-lg);
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.metrics-bar.theme-dark .metric-num {
  color: var(--color-brand-purple-light);
}
.metrics-bar.theme-dark .metric-label {
  color: rgba(255, 255, 255, 0.55);
}

.architecture-section .section-inner > .section-label {
  display: block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}
.architecture-section .section-title {
  color: var(--color-text-primary);
  text-align: center;
}

/* ══ LANDING ANATOMY (13-section blueprint) ══ */

.anatomy-logos-bar {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 2.5rem 0;
  overflow-x: clip;
}
.anatomy-logos-bar--white {
  background: var(--color-bg-white);
}
.anatomy-logos-bar--light {
  background: var(--color-bg-light);
}
.anatomy-logos-inner {
  text-align: center;
}
.anatomy-logos-label {
  margin-bottom: 1.25rem;
  display: block;
}
.anatomy-logos-section--clients {
  margin-bottom: 0.25rem;
}
.anatomy-logos-sublabel {
  margin-bottom: 1rem;
  display: block;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.anatomy-logos-sublabel--certs {
  color: var(--color-brand-purple);
  margin-top: 0;
}
.anatomy-logos-section--certs {
  margin-top: 2rem;
  padding: 1.75rem 1.25rem 0.25rem;
  border-radius: var(--border-radius-lg);
  background: rgba(123, 45, 139, 0.06);
  border: 1px solid rgba(123, 45, 139, 0.12);
}
.anatomy-expertise-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  margin: 1.5rem 0 0.25rem;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.anatomy-expertise-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-body);
  color: var(--color-brand-purple-dark);
  background: rgba(123, 45, 139, 0.1);
  border: 1px solid rgba(123, 45, 139, 0.18);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.anatomy-expertise-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(90, 31, 104, 0.12);
}
.logos-row--static .logo-chip {
  pointer-events: none;
}
.logos-row--static .logo-chip:hover {
  transform: none;
  border-color: var(--color-border);
}
.logos-row--images {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem 1.75rem;
}

/* Client logos — infinite horizontal loop (no scale on logos; grayscale from .anatomy-client-logo) */
.anatomy-logos-marquee-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}
.logos-marquee-viewport {
  overflow: hidden;
}
.logos-marquee-track {
  display: flex;
  width: max-content;
  animation: anatomy-logos-marquee var(--logos-marquee-duration, 55s) linear infinite;
}
.logos-marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2.5rem;
  padding: 0 1.5rem;
}
.logos-marquee-viewport .anatomy-logo-block--client {
  pointer-events: auto;
}
.anatomy-logos-marquee-bleed:hover .logos-marquee-track,
.anatomy-logos-marquee-bleed:focus-within .logos-marquee-track {
  animation-play-state: paused;
}
@keyframes anatomy-logos-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .logos-marquee-viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }
  .logos-marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
  }
  .logos-marquee-group {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 1.5rem 1.75rem;
    padding: 0;
  }
  .logos-marquee-group--duplicate {
    display: none !important;
  }
  .anatomy-logos-marquee-bleed {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }
}

.anatomy-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 160px;
  pointer-events: none;
}
.anatomy-logo-block--cert {
  max-width: none;
  width: 100%;
  min-width: 0;
}
.anatomy-client-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 0.35rem;
}
.anatomy-cert-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 0.25rem;
}
.anatomy-client-logo {
  max-height: 42px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  object-position: center;
  filter: grayscale(100%);
  opacity: 0.52;
}
.anatomy-cert-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.25rem, 1fr));
  gap: 0.75rem 1rem;
  align-items: stretch;
  width: 100%;
  max-width: 64rem;
  margin: 0.75rem auto 0;
  padding-top: 0;
  border-top: none;
}
.anatomy-cert-img-wrap--tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.75rem;
  padding: 0.5rem 0.625rem;
  box-sizing: border-box;
  border-radius: var(--border-radius);
  background: var(--color-bg-white);
  border: 1px solid rgba(123, 45, 139, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.anatomy-cert-img {
  height: auto;
  max-height: 2.75rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.92;
  filter: grayscale(0%);
}
/* Raster logos with an embedded inner frame (e.g. IFS export) — slight scale + clip */
.anatomy-cert-img--crop-inner-frame {
  transform: scale(1.12);
  transform-origin: center center;
}
@media (prefers-reduced-motion: reduce) {
  .anatomy-cert-img--crop-inner-frame {
    transform: none;
  }
}
.anatomy-cert-img-wrap--tile:hover .anatomy-cert-img {
  opacity: 1;
}

.anatomy-features .section-title {
  max-width: 720px;
}
.anatomy-features .problem-card {
  border-left: 4px solid var(--color-brand-purple);
  background: var(--color-bg-white);
}
.anatomy-features .problem-card:nth-child(3n + 2) {
  border-left-color: #8e4ba8;
}
.anatomy-features .problem-card:nth-child(3n) {
  border-left-color: #5a1f68;
}
.anatomy-features .problem-card .problem-num {
  color: rgba(123, 45, 139, 0.18);
}

.anatomy-services-band {
  background: var(--color-bg-grey);
}
.anatomy-service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap-cards);
  margin-top: 2rem;
}
.anatomy-service-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px var(--color-shadow);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  text-decoration: none;
  color: inherit;
}
.anatomy-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(90, 31, 104, 0.14);
}
.anatomy-service-card-media {
  line-height: 0;
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
}
.anatomy-service-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 120;
  object-fit: cover;
  display: block;
}
.anatomy-service-card-body {
  padding: 1.35rem 1.5rem 1.5rem;
  text-align: left;
}
.anatomy-service-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}
.anatomy-service-card p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.anatomy-service-card .anatomy-service-more {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-brand-purple);
  font-family: var(--font-heading);
}

.anatomy-faq {
  background: var(--color-bg-white);
}
.faq-accordion {
  max-width: 720px;
  margin: 2rem auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  padding-left: 1rem;
  transition: border-color var(--anim-normal, 0.3s) var(--ease-out, ease);
}
.faq-item.is-open {
  border-left-color: var(--color-brand-purple);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
}
.faq-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-brand-purple);
  line-height: 1;
}
.faq-answer {
  padding: 0 0 1.15rem 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.anatomy-stats-band {
  background: var(--color-bg-dark);
  padding: 4rem var(--space-md);
}
.anatomy-stats-band .metrics-bar {
  margin: 0 auto;
}

.anatomy-testimonials {
  background: var(--color-bg-light);
}
.anatomy-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-cards);
  margin-top: 2.5rem;
}
@media (max-width: 768px) {
  .anatomy-testimonial-grid {
    grid-template-columns: 1fr;
  }
}
.anatomy-t-card {
  padding: 1.75rem;
  border-radius: var(--border-radius-lg);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border-top: 3px solid rgba(123, 45, 139, 0.2);
}
.anatomy-t-card:nth-child(2) {
  border-top-color: rgba(142, 75, 168, 0.35);
}
.anatomy-t-card:nth-child(3) {
  border-top-color: rgba(90, 31, 104, 0.4);
}
.anatomy-t-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: contain;
  margin-bottom: 1rem;
  border: 2px solid rgba(123, 45, 139, 0.2);
}
.anatomy-t-avatar.initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  background: rgba(123, 45, 139, 0.12);
  color: var(--color-brand-purple-dark);
}
.anatomy-t-avatar--img {
  display: block;
  padding: 0;
  object-fit: contain;
  object-position: center;
  background: var(--color-bg-light);
}
.anatomy-t-card .anatomy-t-avatar--img {
  width: 64px;
  height: 64px;
}
.anatomy-team-card .anatomy-t-avatar--img {
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem;
}
.anatomy-t-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.anatomy-t-role {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}
.anatomy-t-quote {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
}
.anatomy-t-quote strong {
  color: var(--color-brand-purple-dark);
  font-weight: 700;
}
.anatomy-team {
  background: var(--color-bg-white);
}
.anatomy-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-cards);
  margin-top: 2rem;
}
@media (max-width: 768px) {
  .anatomy-team-grid {
    grid-template-columns: 1fr;
  }
}
.anatomy-team-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg-light);
}
.anatomy-team-card .anatomy-t-avatar.initials {
  margin: 0 auto 1rem;
}
.anatomy-team-card .anatomy-t-avatar--img {
  flex-shrink: 0;
}
.anatomy-team-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.35rem;
}
.anatomy-team-card .role {
  font-size: 0.8125rem;
  color: var(--color-brand-purple);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.anatomy-team-card p {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.anatomy-blog {
  background: var(--color-bg-grey);
}
.anatomy-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-cards);
}
@media (max-width: 768px) {
  .anatomy-blog-grid {
    grid-template-columns: 1fr;
  }
}
.anatomy-blog-card {
  padding: 0;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}
.anatomy-blog-media-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.anatomy-blog-media {
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: var(--color-bg-grey);
}
.anatomy-blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.anatomy-blog-cat,
.badge-category {
  display: inline-block;
  margin: 1rem 1.25rem 0;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(123, 45, 139, 0.12);
  color: var(--color-brand-purple);
  width: fit-content;
  font-family: var(--font-body);
}
.anatomy-blog-title {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0.75rem 1.25rem 0;
  font-weight: 600;
  color: var(--color-text-primary);
}
.anatomy-blog-title a {
  color: var(--color-text-primary);
}
.anatomy-blog-title a:hover {
  color: var(--color-brand-purple);
}
.anatomy-blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0.5rem 1.25rem 1.25rem;
}
.anatomy-blog-meta time {
  font-weight: 500;
}
.anatomy-blog-meta-sep {
  opacity: 0.6;
}
.anatomy-blog-footer-cta {
  text-align: center;
  margin-top: 2.5rem;
}
.anatomy-blog-footer-cta--link {
  margin-top: 2rem;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-brand-purple);
  font-family: var(--font-heading);
  text-decoration: none;
  transition: color var(--transition-normal), transform var(--transition-fast);
}
.link-arrow:hover {
  color: var(--color-brand-purple-dark);
  transform: translateX(3px);
}

.anatomy-bottom-cta-phone {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.88);
}
