/**
 * Case V2 – onboarding-v2-full (Figma node 4353-30170)
 * Text: 1024px | Media: 1280px
 */

.cv2-page {
  --cv2-black: #161a18;
  --cv2-gray: #686b6a;
  --cv2-light-gray: #f5f5f5;
  --cv2-green: #63a487;
  --cv2-forest: #2d7543;
  --cv2-mint: #e2eee9;
  --cv2-text-max: 1024px;
  --cv2-media-max: 1280px;
  --cv2-section-y: 96px;
  margin: 0;
  background: #fff;
  color: var(--cv2-black);
  font-family: var(--font-sans);
}

body.is-case-v2.has-topbar {
  padding-top: 88px;
}

/* Header Case V2 – menu maior */
.site-topbar--case-v2 {
  position: fixed;
  background: #fff;
}

.site-topbar__inner--case-v2 {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px;
}

.site-topbar__brand--case-v2 {
  gap: 8px;
}

.site-topbar__brand--case-v2 .poly-logo-svg--poly {
  width: 81px;
  height: auto;
}

.site-topbar__brand--case-v2 .poly-logo-svg--andrade {
  width: 148px;
  height: auto;
}

.site-topbar__brand--case-v2 .site-topbar__star {
  width: 41px;
  height: 36px;
}

.site-topbar__nav--case-v2 {
  gap: 16px;
}

/* Layout helpers */
.cv2__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-bottom: var(--cv2-section-y);
}

.cv2-text {
  width: 100%;
  max-width: var(--cv2-text-max);
  margin-left: auto;
  margin-right: auto;
}

.cv2-media-block {
  width: 100%;
  max-width: var(--cv2-media-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.cv2-section {
  padding-top: var(--cv2-section-y);
}

.cv2-section--after-space {
  padding-bottom: var(--cv2-section-y);
}

.cv2-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.cv2-serif--green {
  color: var(--cv2-green);
}

.cv2-serif a {
  color: inherit;
  text-decoration: none;
}

.cv2-serif a:hover {
  text-decoration: underline;
}

/* Hero */
.cv2-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 0;
}

.cv2-hero__row {
  display: flex;
  gap: 16px;
  align-items: stretch;
  min-height: 501px;
}

.cv2-hero__statement {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cv2-black);
  padding: 80px;
  color: #fff;
}

.cv2-hero__statement p {
  margin: 0;
  font-size: 32px;
  line-height: 1.366;
}

.cv2-hero__meta {
  flex: 0 0 287px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
  background: var(--cv2-light-gray);
  padding: 24px;
  color: var(--cv2-gray);
}

.cv2-meta__label {
  margin: 0;
  font-size: 16px;
  line-height: normal;
}

.cv2-meta__value {
  margin: 0;
  font-size: 16px;
  line-height: normal;
  font-weight: 600;
}

.cv2-meta__company-name {
  display: block;
  color: var(--cv2-forest);
}

.cv2-meta__company-desc {
  display: block;
  font-weight: 400;
}

/* Typography blocks */
.cv2-split {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.cv2-split__col {
  flex: 1 1 0;
  min-width: 0;
}

.cv2-split__col--narrow {
  flex: 0 0 453px;
  max-width: 453px;
}

.cv2-eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1.2;
  color: var(--cv2-gray);
}

.cv2-lead,
.cv2-heading {
  margin: 0;
  font-size: 32px;
  line-height: 1.3;
  color: #000;
}

.cv2-heading--plain {
  color: var(--cv2-black);
}

.cv2-body {
  margin: 0 0 0;
  font-size: 16px;
  line-height: 1.3;
  color: #000;
}

.cv2-body--intro {
  margin-bottom: 0;
}

.cv2-rows__item {
  padding-bottom: 24px;
  padding-top: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  font-size: 16px;
  line-height: 1.2;
  color: var(--cv2-gray);
}

.cv2-rows__item + .cv2-rows__item {
 
}

.cv2-rows__item--last {
  border-bottom: none;
  padding-bottom: 0;
}

.cv2-rows__item p {
  margin: 0;
}

.cv2-rows__item strong {
  font-weight: 600;
}

/* Media frames */
.cv2-frame {
  margin: 0;
  overflow: hidden;
}

.cv2-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cv2-frame--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cv2-light-gray);
  border: 1px dashed rgba(0, 0, 0, 0.12);
  min-height: 120px;
}

.cv2-frame__label {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.45);
  text-align: center;
  padding: 16px;
  word-break: break-all;
}

.cv2-frame--hero-cover {
  aspect-ratio: 1280 / 805;
  min-height: 280px;
}

.cv2-frame--wide-a {
  aspect-ratio: 1248 / 421;
  margin-bottom: 24px;
}

.cv2-gallery-a__pair {
  display: flex;
  gap: 24px;
}

.cv2-frame--half {
  flex: 1 1 0;
  aspect-ratio: 612 / 296;
  min-width: 0;
}

.cv2-frame--wide-b {
  aspect-ratio: 1280 / 401;
  margin-bottom: 16px;
}

.cv2-frame--tall-b {
  aspect-ratio: 1280 / 597;
}

/* Statement band */
.cv2-statement__inner {
  background: var(--cv2-black);
  padding: 96px;
  color: #fff;
}

.cv2-statement__inner p {
  margin: 0;
  font-size: 32px;
  line-height: 1.366;
}

/* Principles card stack */
.cv2-principles-scroll.reveal-on-scroll,
.cv2-solution.reveal-on-scroll {
  opacity: 1;
  transform: none;
  transition: none;
}

.cv2-principles-scroll {
  position: relative;
  --cv2-principles-sticky-top: 112px;
  /* progress 0 when pin top reaches ~72% of viewport */
  --cv2-principles-anim-start: 72vh;
  --cv2-principles-step: 280px;
  --cv2-principles-tail: 48px;
  padding-bottom: 0;
}

.cv2-principles-scroll__pin {
  position: relative;
}

.cv2-principles-scroll__sticky {
  position: sticky;
  top: var(--cv2-principles-sticky-top);
  z-index: 2;
  background: #fff;
}

.cv2-split--principles {
  align-items: flex-start;
}

.cv2-principles-scroll__intro {
  align-self: flex-start;
}

.cv2-principles__col {
  align-self: stretch;
  min-width: 0;
}

.cv2-principles-scroll__spacer {
  width: 100%;
  height: 0;
  pointer-events: none;
}

.cv2-principles__stack {
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}

.cv2-principles__card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  background: var(--cv2-light-gray);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  transform: translateX(105%);
  opacity: 0;
  will-change: transform, opacity;
  transition: none;
}

.cv2-principles__card.is-active {
  box-shadow: 0 8px 24px rgba(22, 26, 24, 0.06);
}

.cv2-principles__card:first-child {
  transform: translateX(0);
  opacity: 1;
}

.cv2-frame--principles {
  aspect-ratio: 1018 / 704;
  width: 100%;
}

.cv2-principles__highlight {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cv2-principles__number {
  font-family: var(--font-serif);
  font-size: 64px;
  font-style: italic;
  line-height: 1.2;
  color: #d2d6d4;
  width: 40px;
  flex-shrink: 0;
}

.cv2-principles__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--cv2-black);
}

.cv2-principles__desc {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.2;
  color: var(--cv2-gray);
}

/* Solution showcase – Figma composite */
.cv2-solution {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.cv2-solution__intro {
  margin-bottom: 32px;
}

.cv2-solution .cv2-showcase.cv2-media-block {
  width: 100%;
  max-width: var(--cv2-media-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

.cv2-showcase {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1280 / 900;
  min-height: 320px;
}

.cv2-showcase__cell {
  position: absolute;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv2-showcase__cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cv2-showcase__cell--gray { background: var(--cv2-light-gray); }
.cv2-showcase__cell--dark { background: var(--cv2-black); }
.cv2-showcase__cell--mint { background: var(--cv2-mint); }

.cv2-showcase__cell--4 { left: 0; top: 0; width: 31.81%; height: 78.13%; }
.cv2-showcase__cell--5 { left: 33.06%; top: 0.02%; width: 64.49%; height: 45.24%; }
.cv2-showcase__cell--6 { left: 33.05%; top: 47.03%; width: 36.2%; height: 30.89%; }
.cv2-showcase__cell--7 { left: 70.5%; top: 47.03%; width: 26.87%; height: 52.98%; }
.cv2-showcase__cell--8 { left: 0; top: 79.9%; width: 39.54%; height: 19.92%; }
.cv2-showcase__cell--9 { left: 40.78%; top: 79.69%; width: 28.44%; height: 20.33%; }

/* Outcomes grid */
.cv2-outcomes > .cv2-text {
  margin-bottom: 32px;
}

.cv2-outcomes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.cv2-outcomes__card {
  background: var(--cv2-light-gray);
  padding: 32px;
  min-height: 258px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cv2-outcomes__card p {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: var(--cv2-black);
}

.cv2-outcomes__card strong {
  font-weight: 700;
}

.cv2-outcomes__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--cv2-green);
  position: relative;
  flex-shrink: 0;
}

.cv2-outcomes__icon::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 8px;
  height: 14px;
  border-right: 2px solid var(--cv2-green);
  border-bottom: 2px solid var(--cv2-green);
  transform: rotate(45deg);
}

.cv2-outcomes__accent {
  background: var(--cv2-mint);
  min-height: 258px;
  overflow: hidden;
}

.cv2-outcomes__accent--1 { grid-column: 1; grid-row: 1; }
.cv2-outcomes__accent--2 { grid-column: 3; grid-row: 2; }

.cv2-outcomes__card:nth-of-type(1) { grid-column: 2; grid-row: 1; }
.cv2-outcomes__card:nth-of-type(2) { grid-column: 3; grid-row: 1; }
.cv2-outcomes__card:nth-of-type(3) { grid-column: 1; grid-row: 2; }
.cv2-outcomes__card:nth-of-type(4) { grid-column: 2; grid-row: 2; }

.cv2-frame--mini,
.cv2-outcomes__accent .cv2-frame {
  width: 100%;
  height: 100%;
  min-height: 258px;
}

.cv2-outcomes__accent .cv2-frame img {
  object-fit: cover;
}

.cv2-outcomes__accent .cv2-frame--placeholder {
  border: none;
  background: var(--cv2-mint);
}

/* Footer CTA */
.cv2-footer-cta__inner {
  background: var(--cv2-black);
  padding: 96px;
  color: #fff;
}

.cv2-footer-cta__inner p {
  margin: 0;
  font-size: 32px;
  line-height: 1.366;
}

.cv2-footer-cta__inner p + p {
  margin-top: 16px;
}

/* Site footer – Case V2 */
.site-footer--case-v2 {
  width: 100%;
  max-width: var(--cv2-media-max);
  margin: 0 auto;
  padding: 48px 16px 32px;
  box-sizing: border-box;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.site-footer__inner--case-v2 {
  max-width: 1280px;
  padding: 16px;
  margin: 0 auto;
}

.site-footer--case-v2 .site-footer__brand--case-v2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
}

.site-footer--case-v2 .site-footer__brand--case-v2 .poly-logo-svg--poly {
  width: 65px;
  height: auto;
}

.site-footer--case-v2 .site-footer__brand--case-v2 .poly-logo-svg--andrade {
  width: 118px;
  height: auto;
}

.site-footer--case-v2 .site-footer__star {
  color: var(--cv2-green);
  width: 32px;
  height: 28px;
}

.site-footer--case-v2 .site-footer__email:hover {
  color: var(--cv2-green);
}

@media (max-width: 767px) {
  .site-footer--case-v2 .site-footer__col--right {
    align-items: flex-start;
    text-align: left;
  }

  .site-footer--case-v2 .site-footer__contact {
    justify-content: flex-start;
  }
}

/* Password gate */
.cv2-gate {
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

.cv2-gate__inner {
  width: 100%;
  max-width: 520px;
}

.cv2-gate__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  color: var(--cv2-gray);
}

.cv2-gate__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.25;
  font-weight: 400;
}

.cv2-gate__hint {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--cv2-gray);
}

.cv2-gate__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cv2-gate__label {
  font-size: 14px;
  font-weight: 600;
}

.cv2-gate__input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  font: inherit;
  background: #fff;
}

.cv2-gate__input:focus {
  outline: 2px solid var(--cv2-green);
  outline-offset: 2px;
}

.cv2-gate__error {
  margin: 0;
  color: #b42318;
  font-size: 14px;
}

.cv2-gate__submit {
  align-self: flex-start;
  margin-top: 8px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1100px) {
  .cv2-hero__row,
  .cv2-split,
  .cv2-gallery-a__pair {
    flex-direction: column;
  }

  .cv2-hero__statement {
    padding: 48px 32px;
  }

  .cv2-hero__meta {
    flex: none;
    width: 100%;
  }

  .cv2-split__col--narrow {
    flex: 1 1 auto;
    max-width: none;
  }

  .cv2-statement__inner,
  .cv2-footer-cta__inner {
    padding: 48px 32px;
  }

  .cv2-showcase {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
  }

  .cv2-showcase__cell {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10;
  }

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

  .cv2-outcomes__accent--1,
  .cv2-outcomes__accent--2,
  .cv2-outcomes__card:nth-of-type(n) {
    grid-column: 1;
    grid-row: auto;
  }

  .cv2-principles-scroll__sticky {
    position: relative;
    top: auto;
  }

  .cv2-principles-scroll__spacer {
    display: none;
  }

  .cv2-principles__stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: auto !important;
    overflow: visible;
  }

  .cv2-principles__card {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none !important;
    opacity: 1 !important;
    box-shadow: none;
  }
}

@media (max-width: 768px) {
  .cv2-page {
    --cv2-section-y: 64px;
  }

  body.is-case-v2.has-topbar {
    padding-top: 72px;
  }

  .cv2-principles-scroll {
    --cv2-principles-sticky-top: 96px;
  }

  .site-topbar__inner--case-v2 {
    padding: 16px;
    flex-wrap: wrap;
  }

  .site-topbar__brand--case-v2 .poly-logo-svg--poly {
    width: 52px;
  }

  .site-topbar__brand--case-v2 .poly-logo-svg--andrade {
    width: 96px;
  }

  .site-topbar__brand--case-v2 .site-topbar__star {
    width: 26px;
    height: 23px;
  }

  .cv2-lead,
  .cv2-heading,
  .cv2-hero__statement p,
  .cv2-statement__inner p,
  .cv2-footer-cta__inner p {
    font-size: clamp(24px, 6vw, 32px);
  }

  .cv2-section,
  .cv2-text,
  .cv2-media-block {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cv2-page * {
    transition: none !important;
  }
}
