/* ============================================================
   Implementation service detail page styles.
   Source: /docs/mockups/implementation.html.

   First of seven service detail pages. As later pages landed,
   shared patterns were lifted out of this file into components/:
     - components/cred-strip.css         (Creator)
     - components/use-cases.css          (Creator)
     - components/svc-process.css        (Creator)
     - components/case-study.css         (Creator)
     - components/svc-hero.css           (Portals — hero + what-card)
     - components/related-services.css   (Integrations — 2-up rail)
   Those styles are no longer in this file.

   SHARED CANDIDATES still pending:
   - .faq-section + .faq-item           (Implementation and
                                         Integrations use the
                                         bordered-card + (+/−)
                                         accordion. Creator and
                                         Portals use borderless
                                         rows + chevron. Two pairs;
                                         pick canonical and lift
                                         when one of the four
                                         pages next gets touched.)

   Page-specific (no plans to share):
   - .mvp-section + .mvp-timeline       (MVP staged-rollout visual)

   The .svc-id experiment lifted into components/svc-hero-label.css
   when the icon + label treatment rolled out across all six
   service detail pages.
   ============================================================ */

/* === MVP / STAGED ROLLOUT (page-specific) ===
   Light-gray topo callback as a low-opacity background image,
   per the design system rule about service-page mid-page
   topo callbacks. */

.mvp-section {
  background: var(--bg-light-2);
  position: relative;
  overflow: hidden;
}
.mvp-topo {
  position: absolute;
  inset: 0;
  background-image: var(--topo-light-gray);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}
.mvp-section .container { position: relative; z-index: 2; }

.mvp-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.mvp-head .eyebrow {
  color: var(--blue);
  margin-bottom: 18px;
  display: block;
}
.mvp-head h2 {
  font-size: 38px;
  color: var(--text-dark);
  margin-bottom: 18px;
  line-height: 1.15;
}
.mvp-head p {
  font-size: 17px;
  color: var(--text-dark-2);
  line-height: 1.6;
}

/* MVP timeline visual */
.mvp-timeline {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 44px 40px 40px;
  margin-bottom: 48px;
}
.mvp-tl-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: stretch;
}

/* Foundation (Month 1) card */
.mvp-foundation {
  background: linear-gradient(180deg, rgba(220, 115, 76, 0.10) 0%, rgba(220, 115, 76, 0.04) 100%);
  border: 1.5px solid rgba(220, 115, 76, 0.35);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.mvp-tl-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin-bottom: 12px;
  font-weight: var(--weight-medium);
}
.mvp-foundation h3 {
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.2;
}
.mvp-foundation p {
  font-size: 13.5px;
  color: var(--text-dark-2);
  line-height: 1.55;
  margin-bottom: 18px;
}
.mvp-foundation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.mvp-foundation-tag {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(220, 115, 76, 0.14);
  border: 1px solid rgba(220, 115, 76, 0.3);
  color: var(--orange);
  font-size: 11px;
  font-weight: var(--weight-medium);
}

/* Layered card (Months 2-12) */
.mvp-layers {
  background: linear-gradient(180deg, rgba(22, 93, 148, 0.08) 0%, rgba(22, 93, 148, 0.03) 100%);
  border: 1.5px solid rgba(22, 93, 148, 0.28);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
}
.mvp-layers .mvp-tl-label { color: var(--blue); }
.mvp-layers h3 {
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.2;
}
.mvp-layers > p {
  font-size: 13.5px;
  color: var(--text-dark-2);
  line-height: 1.55;
  margin-bottom: 22px;
}
.mvp-layer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: auto;
}
.mvp-layer {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(22, 93, 148, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.mvp-layer-name {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: var(--weight-medium);
  color: var(--text-dark);
  margin-bottom: 3px;
}
.mvp-layer-desc {
  font-size: 11px;
  color: var(--text-dark-2);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* Connecting arrow between foundation and layers (desktop only). */
.mvp-foundation::after {
  content: "";
  position: absolute;
  right: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, rgba(220, 115, 76, 0.5), rgba(22, 93, 148, 0.5));
  z-index: 1;
}
.mvp-foundation::before {
  content: "";
  position: absolute;
  right: -32px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(22, 93, 148, 0.6);
  border-right: 2px solid rgba(22, 93, 148, 0.6);
  z-index: 2;
}

/* MVP supporting points */
.mvp-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.mvp-point h3 {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mvp-point h3 .num {
  font-size: 11px;
  color: var(--orange);
  font-weight: var(--weight-medium);
  letter-spacing: 0.1em;
}
.mvp-point p {
  font-size: 14px;
  color: var(--text-dark-2);
  line-height: 1.6;
}

/* === FAQ ===
   Uses native <details>/<summary> for accessibility. The `open`
   attribute is added/removed by the browser; CSS keys off
   [open] for the toggle indicator state. */

.faq-section { padding-top: var(--section-pad-y); padding-bottom: var(--section-pad-y); }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.faq-intro .eyebrow {
  color: var(--blue);
  margin-bottom: 18px;
  display: block;
}
.faq-intro h2 {
  font-size: 36px;
  color: var(--text-dark);
  margin-bottom: 18px;
  line-height: 1.15;
}
.faq-intro p {
  font-size: 16px;
  color: var(--text-dark-2);
  line-height: 1.6;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  transition: background 0.2s ease;
}
.faq-item:hover { background: rgba(255, 255, 255, 0.7); }

/* Suppress the default disclosure marker (caret) in all browsers. */
.faq-item summary { list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: var(--weight-medium);
  color: var(--text-dark);
}

.faq-toggle {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s var(--ease-out);
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--text-dark-2);
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}
.faq-toggle::before {
  top: 50%;
  left: 4px;
  right: 4px;
  height: 1.5px;
  transform: translateY(-50%);
}
.faq-toggle::after {
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 1.5px;
  transform: translateX(-50%);
}
.faq-item[open] .faq-toggle::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-a {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--text-dark-2);
  line-height: 1.65;
}
.faq-a p + p { margin-top: 12px; }

/* === RESPONSIVE ===
   Component-level responsive rules live with each component
   in /components/. Only page-specific responsive rules (hero,
   MVP visual, related rail, FAQ) live below. */

@media (max-width: 980px) {
  .mvp-tl-grid { grid-template-columns: 1fr; gap: 32px; }
  .mvp-foundation::after, .mvp-foundation::before { display: none; }
  .mvp-layer-grid { grid-template-columns: repeat(2, 1fr); }
  .mvp-points { grid-template-columns: 1fr; gap: 24px; }
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  .mvp-timeline { padding: 28px 22px; }
  .mvp-layer-grid { grid-template-columns: 1fr; }
  .faq-intro h2 { font-size: 28px; }
}
