/* ============================================================
   SECTIONS 9–11 — adapted from the three supplied reference
   files (services stack / pricing stack / comparison stack + CTA
   footer). Rebuilt to match the rest of the page:
     - headings in var(--font-display) (Fraunces), body copy in
       var(--font-body) (Inter) — the reference files used Space
       Grotesk / system fonts, which read as a different site.
     - strictly black/white/gray. The reference "section-11" file
       used a green (#22c55e) status dot; that's the one color
       accent anywhere in the reference set, so it's swapped for
       an off-white pulse to match the monochrome rule the rest
       of this page follows.
     - no independent Lenis/GSAP init — all three reference files
       each booted their own `new Lenis(...)` + registered
       ScrollTrigger a second time. On this page that would throw
       the exact "Identifier 'lenis' has already been declared"
       crash smooth-scroll.js's header comment describes, and
       silently kill every script after it. Section 9–11 motion
       lives in section9-11.js and reuses window.lenis / the
       already-registered ScrollTrigger instead.
     - cards reuse the page's existing card language (dark card on
       black, 1px soft-white border, ~20px radius) instead of each
       reference file's own bespoke card skin, so they read as one
       component library rather than three pasted-in templates.
   ============================================================ */

.stack-section {
  width: 100%;
  padding: 14vh 24px 8vh 24px;
  background: #000;
  position: relative;
}

.stack-section .label {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}

.stack-section .stack-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -1px;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  max-width: 820px;
  margin: 0 auto 18px auto;
  color: #fff;
}

.stack-section .stack-sub {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 10vh auto;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
}

.stack-cards {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.stack-card {
  position: sticky;
  top: 12vh;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 44px;
  margin-bottom: 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform-origin: center top;
  will-change: transform, opacity;
}

.stack-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.stack-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #fff;
}

.stack-card-num {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
}

/* -------------------------------------------------------
   Section 9 — capability pills
   ------------------------------------------------------- */
.stack-card-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 28px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 7px 16px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.4px;
}

/* -------------------------------------------------------
   Section 10 — pricing tables
   ------------------------------------------------------- */
.stack-table {
  width: 100%;
  border-collapse: collapse;
}

.stack-table th,
.stack-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stack-table th {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}

.stack-table td {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.stack-table .price {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
}

/* -------------------------------------------------------
   Section 11 — comparison grid
   ------------------------------------------------------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}

.compare-col {
  border-radius: 14px;
  padding: 22px;
}

.compare-col.us {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.compare-col.them {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.compare-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 10px;
}

.compare-col.us .compare-label {
  background: #fff;
  color: #000;
  padding: 3px 9px;
  border-radius: 4px;
}

.compare-col.them .compare-label {
  color: rgba(255, 255, 255, 0.4);
}

.compare-value {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.4;
}

.compare-col.us .compare-value {
  color: #fff;
  font-weight: 600;
}

.compare-col.them .compare-value {
  color: rgba(255, 255, 255, 0.5);
}

/* -------------------------------------------------------
   Final CTA / footer (closes out Section 11)
   ------------------------------------------------------- */
.final-cta {
  max-width: 900px;
  margin: 12vh auto 0 auto;
  padding-top: 8vh;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.final-cta-copy h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -1px;
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}

.final-cta-copy p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 26px;
}

.final-cta-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 9px 16px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #fff;
  font-weight: 600;
}

.final-cta-site {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: pulse-white 1.8s ease-in-out infinite;
}

@keyframes pulse-white {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.final-cta-form {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.final-cta-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.final-cta-form label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.final-cta-form input,
.final-cta-form select,
.final-cta-form textarea {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 13px 15px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s ease;
}

.final-cta-form input:focus,
.final-cta-form select:focus,
.final-cta-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.5);
}

.final-cta-form textarea {
  resize: vertical;
  min-height: 84px;
}

.final-cta-submit {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 15px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  margin-top: 6px;
}

.final-cta-submit:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-brand span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}

.site-footer-bottom {
  max-width: 900px;
  margin: 10vh auto 0 auto;
  padding: 26px 0 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-body);
  font-size: 0.82rem;
}

.footer-site-link {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-site-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 850px) {
  .final-cta,
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .stack-card {
    padding: 28px;
    top: 8vh;
  }
  .site-footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}
