/* ═══════════════════════════════════════ */
/* IMPLEMENTATION PAGE STYLES              */
/* ═══════════════════════════════════════ */

/* ─── SCROLL REVEAL ─── */
.impl-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.impl-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.impl-reveal--stagger-1 { transition-delay: 0.08s; }
.impl-reveal--stagger-2 { transition-delay: 0.16s; }
.impl-reveal--stagger-3 { transition-delay: 0.24s; }
.impl-reveal--stagger-4 { transition-delay: 0.32s; }


/* ═══════════════════════════════════════ */
/* SECTION 1 — HERO                        */
/* ═══════════════════════════════════════ */
.impl-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 300px 0 140px;
  overflow: hidden;
}

.impl-hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.impl-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 70%);
  animation: implGridPan 20s ease-in-out infinite alternate;
}

@keyframes implGridPan {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-20px, -10px) scale(1.03); }
}

.impl-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: implBlobFloat 8s ease-in-out infinite;
}

.impl-hero__blob--1 {
  width: 420px; height: 420px;
  background: var(--blue);
  top: -12%; left: -6%;
  animation-delay: 0s;
}

.impl-hero__blob--2 {
  width: 360px; height: 360px;
  background: #1F8A99;
  bottom: -12%; right: -6%;
  animation-delay: -3s;
}

.impl-hero__blob--3 {
  width: 300px; height: 300px;
  background: var(--blue);
  top: 35%; left: 58%;
  opacity: 0.2;
  animation-delay: -5s;
}

@keyframes implBlobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(20px, -20px) scale(1.05); }
  66%  { transform: translate(-15px, 15px) scale(0.95); }
}

.impl-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.impl-hero__inner h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.impl-hero__sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.impl-hero__meta {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 24px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}

.impl-hero__actions {
  margin-bottom: 8px;
}


/* ═══════════════════════════════════════ */
/* SECTION 2 — PROBLEM                     */
/* ═══════════════════════════════════════ */
.impl-problem {
  background: var(--white);
  padding: var(--section-py) 0;
}

.impl-problem__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.impl-problem__header h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-top: 12px;
  margin-bottom: 16px;
}

.impl-problem__body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.impl-problem__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.impl-problem__card {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.impl-problem__card:hover {
  border-color: var(--border);
  box-shadow: 0 6px 28px rgba(0,0,0,0.05);
  transform: translateY(-3px);
}

.impl-problem__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.impl-problem__card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
  padding-top: 10px;
}

.impl-problem__closing {
  text-align: center;
  margin-top: 52px;
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}


/* ═══════════════════════════════════════ */
/* SECTION 3 — HOW IT WORKS (TIMELINE)     */
/* ═══════════════════════════════════════ */
.impl-steps {
  background: var(--off-white);
  padding: var(--section-py) 0;
}

.impl-steps__header {
  text-align: center;
  margin-bottom: 64px;
}

.impl-steps__header h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-top: 12px;
  margin-bottom: 12px;
}

.impl-steps__note {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(37,99,235,0.07);
  color: var(--blue);
  padding: 6px 16px;
  border-radius: 100px;
  margin-top: 4px;
}

/* ─── Vertical Timeline ─── */
.impl-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Vertical center line */
.impl-timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(to bottom, var(--blue) 0%, var(--border) 100%);
  z-index: 0;
}

.impl-timeline__item {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: start;
  gap: 0;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.impl-timeline__item--last {
  margin-bottom: 0;
}

/* Center dot */
.impl-timeline__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  background: var(--blue);
  border-radius: 50%;
  border: 4px solid var(--off-white);
  box-shadow: 0 0 0 2px var(--blue);
  z-index: 2;
  position: relative;
  flex-shrink: 0;
}

.impl-timeline__dot span {
  font-family: 'Sora', sans-serif;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

/* Left-side content */
.impl-timeline__item--left .impl-timeline__content {
  text-align: right;
  padding-right: 32px;
  padding-top: 10px;
}

/* Right-side content */
.impl-timeline__item--right .impl-timeline__content {
  text-align: left;
  padding-left: 32px;
  padding-top: 10px;
  grid-column: 3;
}

/* Spacer fills the opposite side */
.impl-timeline__spacer {
  /* Invisible placeholder */
}

/* Content styling */
.impl-timeline__content h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Hide inline number in content — it's already on the dot */
.impl-timeline__num {
  display: none;
}

.impl-timeline__content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}


/* ═══════════════════════════════════════ */
/* SECTION 4 — DELIVERABLES (v2 — asymmetric editorial) */
/* ═══════════════════════════════════════ */
.impl-deliverables {
  background: var(--white);
  padding: var(--section-py) 0;
}

.impl-deliverables__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.impl-deliverables__header h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-top: 12px;
  margin-bottom: 16px;
}

.impl-deliverables__sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.impl-deliverables__layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: auto auto auto;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto 56px;
  align-items: stretch;
}

.impl-deliverable__index {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-block;
}

.impl-deliverable__hero {
  grid-column: 1;
  grid-row: 1 / span 3;
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impl-deliverable__hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(15, 28, 46, 0.08);
}

.impl-deliverable__hero-top {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}

.impl-deliverable__hero-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.impl-deliverable__hero-visual {
  background: var(--navy-deep);
  border-radius: var(--radius-sm);
  margin-bottom: 26px;
  overflow: hidden;
  position: relative;
}

.impl-deliverable__hero-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.impl-deliverable__hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.impl-deliverable__hero-body h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.impl-deliverable__hero-body p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.impl-deliverable__use {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.impl-deliverable__use-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.impl-deliverable__mini {
  grid-column: 2;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.impl-deliverable__mini:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.06);
}

.impl-deliverable__mini-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.impl-deliverable__mini-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
  display: block;
}

.impl-deliverable__mini h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.impl-deliverable__mini p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.impl-deliverable__spec {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  padding: 26px 36px;
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.impl-deliverable__spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 20px;
}

.impl-deliverable__spec-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.impl-deliverable__spec-value {
  font-family: 'Sora', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.impl-deliverable__spec-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  display: block;
}

@media (max-width: 900px) {
  .impl-deliverables__layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .impl-deliverable__hero,
  .impl-deliverable__mini {
    grid-column: 1;
    grid-row: auto;
  }
  .impl-deliverable__spec {
    grid-template-columns: 1fr 1fr;
    gap: 20px 0;
    padding: 24px;
  }
  .impl-deliverable__spec-divider {
    display: none;
  }
  .impl-deliverable__spec-item {
    padding: 6px 16px;
  }
}

@media (max-width: 560px) {
  .impl-deliverable__spec {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }
  .impl-deliverable__hero,
  .impl-deliverable__mini {
    padding: 24px 20px;
  }
}


/* ═══════════════════════════════════════ */
/* SECTION 5 — OUTCOMES (DARK)             */
/* ═══════════════════════════════════════ */
.impl-outcomes {
  background: var(--navy-deep);
  color: var(--white);
  padding: var(--section-py) 0;
}

.impl-outcomes__header {
  text-align: center;
  margin-bottom: 56px;
}

.impl-outcomes__header .section-label {
  color: rgba(255,255,255,0.5);
}

.impl-outcomes__header h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-top: 12px;
}

.impl-outcomes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.impl-outcome__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.impl-outcome__card:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-3px);
}

.impl-outcome__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 20px;
  color: var(--blue);
}

.impl-outcome__card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.impl-outcome__card p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin: 0;
}


/* ═══════════════════════════════════════ */
/* SECTION 6 — FIT                         */
/* ═══════════════════════════════════════ */
.impl-fit {
  background: var(--off-white);
  padding: var(--section-py) 0;
}

.impl-fit__header {
  text-align: center;
  margin-bottom: 56px;
}

.impl-fit__header h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-top: 12px;
}

.impl-fit__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.impl-fit__card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.impl-fit__card:hover {
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  transform: translateY(-3px);
}

.impl-fit__card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.impl-fit__card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.impl-fit__closing {
  text-align: center;
  margin-top: 52px;
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}


/* ═══════════════════════════════════════ */
/* SECTION 7 — FAQ                         */
/* ═══════════════════════════════════════ */
.impl-faq {
  background: var(--white);
  padding: var(--section-py) 0;
}

.impl-faq__header {
  text-align: center;
  margin-bottom: 48px;
}

.impl-faq__header h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-top: 12px;
}

.impl-faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.impl-faq__item {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.impl-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.impl-faq__question:hover {
  background: var(--accent-bg);
}

.impl-faq__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.impl-faq__question[aria-expanded="true"] .impl-faq__icon {
  transform: rotate(180deg);
}

.impl-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.impl-faq__answer.is-open {
  max-height: 300px;
  padding: 0 24px 20px;
}

.impl-faq__answer p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}


/* ═══════════════════════════════════════ */
/* SECTION 8 — CTA                         */
/* ═══════════════════════════════════════ */
.impl-cta {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: var(--section-py) 0;
  text-align: center;
}

.impl-cta__inner {
  max-width: 600px;
  margin: 0 auto;
}

.impl-cta__inner h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.impl-cta__inner > p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 32px;
}

.impl-cta__inner .btn--large {
  padding: 16px 36px;
  font-size: 1rem;
}

.impl-cta__secondary {
  display: block;
  margin-top: 24px;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s ease;
}

.impl-cta__secondary:hover {
  color: var(--white);
  text-decoration: underline;
}


/* ═══════════════════════════════════════ */
/* RESPONSIVE — 900px                      */
/* ═══════════════════════════════════════ */
@media (max-width: 900px) {

  /* Hero */
  .impl-hero {
    padding: 140px 0 100px;
  }

  /* Problem grid — single col */
  .impl-problem__grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .impl-problem__card {
    padding: 28px 24px;
  }

  /* Timeline — collapse to single column left-aligned */
  .impl-timeline::before {
    left: 24px;
    transform: none;
  }

  .impl-timeline__item {
    grid-template-columns: 56px 1fr;
    margin-bottom: 36px;
  }

  /* Reorder all items: dot first, then content */
  .impl-timeline__item--left,
  .impl-timeline__item--right {
    grid-template-columns: 56px 1fr;
  }

  .impl-timeline__item--left .impl-timeline__dot,
  .impl-timeline__item--right .impl-timeline__dot {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    justify-self: start;
  }

  .impl-timeline__item--left .impl-timeline__content,
  .impl-timeline__item--right .impl-timeline__content {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    padding: 10px 0 0 20px;
  }

  .impl-timeline__item--right .impl-timeline__spacer,
  .impl-timeline__item--left .impl-timeline__spacer {
    display: none;
  }

  /* Deliverables layout responsive — handled in main block */

  /* Outcomes — 2 col */
  .impl-outcomes__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Fit grid — single col */
  .impl-fit__grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}


/* ═══════════════════════════════════════ */
/* RESPONSIVE — 600px                      */
/* ═══════════════════════════════════════ */
@media (max-width: 600px) {

  .impl-hero {
    padding: 130px 0 80px;
  }

  .impl-hero__meta {
    font-size: 0.875rem;
    padding: 8px 18px;
  }

  .impl-problem__card {
    flex-direction: column;
    gap: 12px;
    padding: 24px 20px;
  }

  .impl-problem__card h3 {
    padding-top: 0;
  }

  .impl-timeline__dot {
    width: 40px;
    height: 40px;
  }

  .impl-timeline__content h3 {
    font-size: 1rem;
  }

  .impl-fit__card {
    padding: 28px 20px;
  }

  .impl-outcomes__grid {
    grid-template-columns: 1fr;
  }

  .impl-faq__question {
    padding: 16px 20px;
    font-size: 0.9375rem;
  }

  .impl-faq__answer.is-open {
    padding: 0 20px 16px;
  }

  .impl-outcome__card {
    padding: 28px 20px;
  }
}
