/*
 * Section uplift: bring the legacy funnel blocks (services, value card,
 * benefits, process, assistants, testimonials) to the design language of the
 * newer sections (agentic dev, MAX, Codex case, portfolio): kicker + sentence
 * case heading + lead, 24px container gutters, calmer surfaces and labels.
 * Loaded last on the homepage; scoped to body.home-page.
 */

/* ------------------------------------------------ shared section heading -- */
body.home-page .rv-section-heading {
  max-width: 980px;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
  padding: 0;
  text-align: center;
}

body.home-page .rv-section-heading .section-kicker {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--accent-contrast, #33f5c8);
}

body.home-page .rv-section-heading .section-title {
  margin: 0 auto 1rem !important;
  max-width: 980px;
  font-family: var(--font-display) !important;
  font-size: clamp(2.05rem, 3.75vw, 3.2rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-align: center !important;
  color: #f5f2eb !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

body.home-page .rv-section-heading .rv-section-lead {
  margin: 0 auto !important;
  max-width: 860px;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.3vw, 1.11rem) !important;
  font-weight: 400;
  line-height: 1.75 !important;
  text-align: center !important;
  color: rgba(245, 242, 235, 0.75) !important;
}

body.home-page .rv-section-heading > :last-child {
  margin-bottom: 0 !important;
}

/* ------------------------------------------------------------ services -- */
body.home-page .services-primary {
  padding-top: clamp(4rem, 8vw, 6.8rem) !important;
}

body.home-page .services-primary > .container,
body.home-page .services-continuation > .container {
  width: 100% !important;
  max-width: 1900px !important;
  margin-inline: auto !important;
  padding-inline: 24px !important;
  box-sizing: border-box;
}

body.home-page .services-primary .services-simple-grid,
body.home-page .services-continuation .services-simple-grid {
  width: auto !important;
  margin-inline: 0 !important;
}

body.home-page .services-primary .service-simple-card,
body.home-page .services-continuation .service-simple-card {
  border-radius: 24px !important;
  border-color: rgba(255, 255, 255, 0.11) !important;
}

/* Card label: calm glass bar with an arrow instead of a glossy pill. */
body.home-page .service-simple-card .service-simple-footer {
  justify-content: space-between !important;
  gap: 16px !important;
  text-align: left !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  padding: 14px 14px 14px 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(14, 15, 19, 0.72), rgba(8, 9, 12, 0.82)) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition: border-color 0.25s ease, background-color 0.25s ease !important;
}

body.home-page .service-simple-card .service-simple-footer::after {
  content: '→';
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(51, 245, 200, 0.4);
  background: rgba(0, 23, 20, 0.55);
  color: #33f5c8;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

body.home-page .service-simple-card:hover .service-simple-footer,
body.home-page .service-simple-card .service-simple-footer:focus-visible {
  border-color: rgba(51, 245, 200, 0.42) !important;
}

body.home-page .service-simple-card:hover .service-simple-footer::after,
body.home-page .service-simple-card .service-simple-footer:focus-visible::after {
  transform: translateX(3px);
  background: rgba(0, 48, 40, 0.7);
}

/* ------------------------------------------------------------ value card -- */
body.home-page .services-value-highlight .value-card {
  align-items: center !important;
  gap: clamp(1.25rem, 4vw, 4.25rem) !important;
  padding: clamp(1.75rem, 3.4vw, 3rem) clamp(1.5rem, 3.6vw, 3.5rem) !important;
  border-radius: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 155, 74, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.045) !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

body.home-page .services-value-highlight .value-kicker {
  margin: 0 0 1rem !important;
  font-family: var(--font-display) !important;
  font-size: clamp(0.78rem, 1vw, 0.95rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--accent-contrast, #33f5c8) !important;
}

body.home-page .services-value-highlight .value-title {
  margin: 0 !important;
  font-size: clamp(1.75rem, 3.1vw, 2.75rem) !important;
  line-height: 1.2 !important;
  color: #f5f2eb !important;
}

body.home-page .services-value-highlight .value-text {
  margin: 0 0 1.5rem !important;
  font-size: clamp(1rem, 1.3vw, 1.11rem) !important;
  line-height: 1.75 !important;
  color: rgba(245, 242, 235, 0.75) !important;
}

/* ------------------------------------------------------------- mobile -- */
@media (max-width: 900px) {
  body.home-page .rv-section-heading {
    margin-bottom: 1.6rem;
  }

  body.home-page .rv-section-heading .section-title {
    font-size: clamp(1.75rem, 7.2vw, 2.05rem) !important;
    line-height: 1.16 !important;
  }

  body.home-page .rv-section-heading .rv-section-lead {
    font-size: 0.98rem !important;
    line-height: 1.65 !important;
  }

  body.home-page .services-primary {
    padding-top: 3.5rem !important;
  }

  body.home-page .services-primary > .container,
  body.home-page .services-continuation > .container {
    padding-inline: 16px !important;
  }

  body.home-page .service-simple-card .service-simple-footer {
    padding: 12px 12px 12px 16px !important;
  }

  body.home-page .service-simple-card .service-simple-footer::after {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  body.home-page .services-value-highlight .value-text {
    margin-bottom: 1.25rem !important;
  }
}

/* The section glow would show a hard seam through the translucent value card. */
body.home-page .services-value-highlight.rv-motion-scene::after {
  display: none;
}

/* ------------------------------------------------------------- benefits -- */
body.home-page .benefits-section .benefit-card {
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

body.home-page .benefits-section .benefit-card-main {
  border-color: rgba(0, 240, 200, 0.24) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(51, 245, 200, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)) !important;
  flex-direction: column;
  gap: 1.5rem;
  overflow: hidden;
}

/* Cards grow with their details instead of clipping them on narrow columns. */
@media (min-width: 1025px) {
  body.home-page .benefits-section .benefits-grid {
    grid-auto-rows: minmax(260px, auto);
  }
}

/* Details at the foot of each card repeat the card's own copy. */
body.home-page .benefits-section .benefit-timeline,
body.home-page .benefits-section .benefit-tags {
  width: 100%;
  margin: auto 0 0;
  padding-top: 0.35rem;
}

body.home-page .benefits-section .benefit-timeline {
  display: grid;
  gap: 0.6rem;
}

body.home-page .benefits-section .benefit-track {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr) 3.8rem;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

body.home-page .benefits-section .benefit-track-label {
  color: rgba(255, 255, 255, 0.46);
}

body.home-page .benefits-section .benefit-track-value {
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
}

body.home-page .benefits-section .benefit-track--after .benefit-track-label,
body.home-page .benefits-section .benefit-track--after .benefit-track-value {
  color: #33f5c8;
}

body.home-page .benefits-section .benefit-track-bar,
body.home-page .benefits-section .benefit-budget-bar {
  position: relative;
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

body.home-page .benefits-section .benefit-track-fill,
body.home-page .benefits-section .benefit-budget-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.2);
  transform-origin: left center;
}

body.home-page .benefits-section .benefit-track--after .benefit-track-fill,
body.home-page .benefits-section .benefit-budget-row--studio .benefit-budget-fill {
  right: auto;
  background: linear-gradient(90deg, #33f5c8, #ff9b4a);
  box-shadow: 0 0 14px rgba(51, 245, 200, 0.4);
}

body.home-page .benefits-section .benefit-track--after .benefit-track-fill {
  width: 16%;
}

body.home-page .benefits-section .benefit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
}

body.home-page .benefits-section .benefit-tags li {
  margin: 0;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(47, 229, 185, 0.22);
  border-radius: 999px;
  background: rgba(47, 229, 185, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
}

body.home-page .benefits-section .benefit-tags li::before,
body.home-page .benefits-section .benefit-tags li::marker {
  content: none;
}

/* Main card: budget comparison at the foot and an outlined ×10 in the void. */
body.home-page .benefits-section .benefit-budget {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: auto;
  display: grid;
  gap: 1.05rem;
}

body.home-page .benefits-section .benefit-budget-row {
  display: grid;
  gap: 0.5rem;
}

body.home-page .benefits-section .benefit-budget-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.home-page .benefits-section .benefit-budget-row--studio .benefit-budget-label {
  color: rgba(255, 255, 255, 0.9);
}

body.home-page .benefits-section .benefit-budget-bar {
  height: 10px;
}

body.home-page .benefits-section .benefit-budget-row--studio .benefit-budget-fill {
  width: 10%;
  min-width: 24px;
}

body.home-page .benefits-section .benefit-budget-note {
  color: #33f5c8;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Anchored just above the budget bars, so it sits in the empty middle of the
   card whatever the height of the copy above. */
body.home-page .benefits-section .benefit-main-mark {
  position: absolute;
  z-index: -1;
  right: -0.2rem;
  bottom: calc(100% + 0.9rem);
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(6rem, 8.6vw, 9.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(51, 245, 200, 0.2);
  pointer-events: none;
  user-select: none;
}

/* Two columns and phones: the main card is no taller than its content. */
@media (max-width: 1024px) {
  body.home-page .benefits-section .benefit-main-mark {
    display: none;
  }

  body.home-page .benefits-section .benefit-timeline,
  body.home-page .benefits-section .benefit-tags {
    margin-top: 0.4rem;
  }
}

@media (max-width: 420px) {
  body.home-page .benefits-section .benefit-track {
    grid-template-columns: 3.9rem minmax(0, 1fr) 3.4rem;
    gap: 0.6rem;
  }
}

/* -------------------------------------------------------------- process -- */
body.home-page .process-section .process-step {
  border-radius: 22px !important;
  border-color: rgba(255, 255, 255, 0.11) !important;
}

/* Step captions were 9px, single-line and truncated on phones. */
body.home-page .process-section .step-footer {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  font-size: 11.5px !important;
  line-height: 1.35 !important;
  letter-spacing: 0.03em !important;
  padding: 9px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, rgba(14, 15, 19, 0.74), rgba(8, 9, 12, 0.84)) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35) !important;
}

@media (max-width: 900px) {
  body.home-page .process-section .step-footer {
    font-size: 11px !important;
  }
}

/* Studio portfolio cover: keep the hero title in frame when the card crops. */
body.home-page .product-portfolio-media img[src*="real-vibe-studio-product-home"] {
  object-position: 0% 50% !important;
}
