/*
 * Hero EstudoUP — editorial product crossover
 * Isolado das versões experimentais anteriores para manter a cascata previsível.
 */

#hero.hero-v2 {
  --hero-paper: #fffaf5;
  --hero-ink: #14110f;
  --hero-muted: #665e58;
  --hero-orange: #ff5722;
  --hero-orange-deep: #d53f0d;
  --hero-green: #169b68;
  --hero-ease: cubic-bezier(.22, .78, .18, 1);
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 537px;
  min-height: 0;
  margin: 0;
  padding: 72px 0 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 92% 7%, rgba(255, 87, 34, .18), transparent 30%),
    radial-gradient(circle at 5% 92%, rgba(255, 190, 87, .2), transparent 27%),
    linear-gradient(rgba(20, 17, 15, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 17, 15, .035) 1px, transparent 1px),
    var(--hero-paper);
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
  color: var(--hero-ink);
  font-family: 'Inter Local', Inter, system-ui, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

#hero.hero-v2::before {
  position: absolute;
  inset: 72px 0 auto;
  z-index: -1;
  display: block;
  height: 1px;
  opacity: 1;
  background: linear-gradient(90deg, transparent, rgba(255, 87, 34, .24) 28%, rgba(255, 87, 34, .08) 72%, transparent);
  content: '';
  pointer-events: none;
}

#hero.hero-v2::after {
  position: absolute;
  inset: auto -62px 9px auto;
  z-index: -1;
  display: block;
  width: 154px;
  height: 154px;
  border: 1px solid rgba(255, 87, 34, .09);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 22px rgba(255, 87, 34, .035), 0 0 0 46px rgba(255, 87, 34, .022);
  color: transparent;
  content: '';
  font-size: 0;
  opacity: 1;
  pointer-events: none;
  -webkit-text-stroke: 0;
}

#hero.hero-v2 .hero-v2__stage {
  position: relative;
  width: 100%;
  height: 465px;
  margin: 0 auto;
}

#hero.hero-v2 .hero-v2__copy {
  position: absolute;
  top: 29px;
  left: 18px;
  z-index: 4;
  width: 188px;
  margin: 0;
}

#hero.hero-v2 .hero-v2__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 17px;
  color: #b9370b;
  font-size: 8.7px;
  font-weight: 760;
  letter-spacing: .16em;
  line-height: 1.25;
  text-transform: uppercase;
  animation: hero-v2-detail-in 720ms var(--hero-ease) 100ms both;
}

#hero.hero-v2 .hero-v2__eyebrow::before {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--hero-orange);
  box-shadow: 0 0 0 4px rgba(255, 87, 34, .1);
  content: '';
}

#hero.hero-v2 .hero-v2__eyebrow::after {
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 87, 34, .72), transparent);
  content: '';
}

#hero.hero-v2 .hero-v2__title {
  max-width: none;
  margin: 0 0 16px;
  color: var(--hero-ink);
  font-family: 'Source Serif 4 Local', 'Source Serif 4', Georgia, serif;
  font-size: 38px;
  font-weight: 610;
  letter-spacing: -.04em;
  line-height: .93;
  text-wrap: balance;
  animation: hero-v2-title-in 1020ms var(--hero-ease) 190ms both;
}

#hero.hero-v2 .hero-v2__title em {
  display: block;
  margin-top: .08em;
  color: var(--hero-orange);
  font-family: inherit;
  font-style: italic;
  font-weight: 480;
  letter-spacing: -.05em;
}

#hero.hero-v2 .hero-v2__intro {
  max-width: 19ch;
  margin: 0;
  color: var(--hero-muted);
  font-size: 13.5px;
  font-weight: 440;
  letter-spacing: -.012em;
  line-height: 1.53;
  text-wrap: pretty;
  animation: hero-v2-detail-in 820ms var(--hero-ease) 370ms both;
}

#hero.hero-v2 .hero-v2__product {
  position: absolute;
  top: 96px;
  left: 168px;
  z-index: 2;
  width: 626px;
  margin: 0;
  clip-path: none;
  filter: none;
  pointer-events: none;
  transform: perspective(720px) rotateY(-16deg) rotateZ(-2.6deg);
  transform-origin: 0 50%;
  animation: hero-v2-product-in 1380ms var(--hero-ease) 260ms both;
}

#hero.hero-v2 .hero-v2__browser {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, .2),
    0 0 0 1px rgba(0, 0, 0, .06);
}

#hero.hero-v2 .hero-v2__browser::after {
  position: absolute;
  inset: -20% auto -20% -42%;
  width: 24%;
  transform: skewX(-16deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent);
  content: '';
  pointer-events: none;
  animation: hero-v2-sheen 1250ms ease-out 1450ms both;
}

#hero.hero-v2 .hero-v2__browser-bar {
  display: flex;
  height: 27px;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border-bottom: 1px solid rgba(20, 17, 15, .09);
  background: #f3f4f6;
  color: #746b65;
}

#hero.hero-v2 .hero-v2__browser-bar i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #ff6640;
}

#hero.hero-v2 .hero-v2__browser-bar i:nth-child(2) {
  background: #f2b52c;
}

#hero.hero-v2 .hero-v2__browser-bar i:nth-child(3) {
  background: #1daa69;
}

#hero.hero-v2 .hero-v2__browser-bar span {
  margin-left: 7px;
  font-size: 8px;
  font-style: normal;
  font-weight: 650;
  letter-spacing: .025em;
}

#hero.hero-v2 .hero-v2__browser > img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 1;
}

#hero.hero-v2 .hero-v2__conversion {
  position: absolute;
  top: 322px;
  left: 18px;
  z-index: 6;
  display: flex;
  width: min(calc(100% - 36px), 300px);
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  animation: hero-v2-conversion-in 900ms var(--hero-ease) 690ms both;
}

#hero.hero-v2 .hero-v2__cta {
  position: relative;
  isolation: isolate;
  display: flex;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  border: 1px solid rgba(159, 44, 6, .22);
  border-radius: 16px;
  background: linear-gradient(112deg, #ff6a38 0%, #ff5722 54%, #ed4310 100%);
  box-shadow:
    0 18px 36px rgba(231, 69, 15, .24),
    0 6px 12px rgba(115, 36, 10, .14),
    inset 0 1px 0 rgba(255, 255, 255, .42),
    inset 0 -1px 0 rgba(126, 31, 4, .12);
  color: #fff;
  font-size: 12.2px;
  font-weight: 780;
  letter-spacing: -.016em;
  line-height: 1.15;
  text-decoration: none;
  transition: transform 380ms var(--hero-ease), box-shadow 380ms var(--hero-ease), filter 380ms ease;
}

#hero.hero-v2 .hero-v2__cta::before {
  position: absolute;
  inset: 1px 1px 47%;
  z-index: -1;
  border-radius: 15px 15px 55% 55%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0));
  content: '';
  pointer-events: none;
}

#hero.hero-v2 .hero-v2__cta span {
  position: relative;
  z-index: 1;
  min-width: 0;
  white-space: nowrap;
}

#hero.hero-v2 .hero-v2__cta svg {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 9px;
  border-radius: 50%;
  background: #1a1411;
  box-shadow: 0 5px 13px rgba(54, 18, 7, .24), inset 0 1px 0 rgba(255, 255, 255, .12);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 380ms var(--hero-ease), background-color 380ms ease;
}

#hero.hero-v2 .hero-v2__cta:hover {
  transform: translateY(-2px);
  filter: saturate(1.04);
  box-shadow: 0 22px 40px rgba(231, 69, 15, .29), 0 7px 14px rgba(115, 36, 10, .15);
}

#hero.hero-v2 .hero-v2__cta:hover svg {
  transform: translateX(3px);
  background: #0f0c0a;
}

#hero.hero-v2 .hero-v2__cta:focus-visible {
  outline: 3px solid var(--hero-ink);
  outline-offset: 3px;
}

#hero.hero-v2 .hero-v2__assurance {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  min-height: 22px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 3px 2px 0;
  border: 0;
  background: transparent;
  color: #685f59;
  font-size: 10px;
  font-weight: 570;
  letter-spacing: -.01em;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  animation: hero-v2-detail-in 700ms var(--hero-ease) 850ms both;
}

#hero.hero-v2 .hero-v2__assurance::before {
  display: grid;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  flex: 0 0 18px;
  place-items: center;
  border-radius: 50%;
  background: rgba(22, 155, 104, .12);
  color: var(--hero-green);
  content: '✓';
  font-size: 9.5px;
  font-weight: 850;
}

#hero.hero-v2 .hero-v2__assurance strong,
#hero.hero-v2 .hero-v2__assurance span {
  display: inline;
  color: inherit;
  font: inherit;
}

#hero.hero-v2 .hero-v2__assurance strong {
  color: #2b2724;
  font-weight: 760;
}

#hero.hero-v2 .hero-v2__assurance strong::after {
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 9px;
  background: rgba(20, 17, 15, .16);
  content: '';
  vertical-align: -2px;
}

#hero.hero-v2 + .premium-main {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  margin-top: -34px;
  overflow-x: clip;
  isolation: isolate;
}

@keyframes hero-v2-title-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-v2-detail-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-v2-product-in {
  from {
    opacity: 0;
    transform: perspective(720px) translate3d(48px, 20px, 0) rotateY(-20deg) rotateZ(-4deg) scale(.965);
  }
  to {
    opacity: 1;
    transform: perspective(720px) translate3d(0, 0, 0) rotateY(-16deg) rotateZ(-2.6deg) scale(1);
  }
}

@keyframes hero-v2-conversion-in {
  from { opacity: 0; transform: translateY(11px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-v2-sheen {
  from { left: -42%; opacity: 0; }
  28% { opacity: .7; }
  to { left: 118%; opacity: 0; }
}

@media (max-width: 767px) {
  #hero.hero-v2 .hero-v2__product {
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .7) 12%, rgba(0, 0, 0, .93) 24%, #000 35%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .7) 12%, rgba(0, 0, 0, .93) 24%, #000 35%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
}

@media (min-width: 371px) and (max-width: 767px) {
  #hero.hero-v2 {
    height: 560px;
  }

  #hero.hero-v2 .hero-v2__stage {
    height: 488px;
  }

  #hero.hero-v2 .hero-v2__copy {
    top: 32px;
    left: 20px;
    width: 204px;
  }

  #hero.hero-v2 .hero-v2__title {
    font-size: 41px;
  }

  #hero.hero-v2 .hero-v2__eyebrow {
    font-size: 9.2px;
  }

  #hero.hero-v2 .hero-v2__intro {
    max-width: 20ch;
    font-size: 14px;
    line-height: 1.54;
  }

  #hero.hero-v2 .hero-v2__product {
    top: 100px;
    left: 180px;
    width: 662px;
  }

  #hero.hero-v2 .hero-v2__conversion {
    top: 337px;
    left: 20px;
    width: min(calc(100% - 40px), 310px);
    gap: 8px;
  }

  #hero.hero-v2 .hero-v2__cta {
    min-height: 62px;
    padding-left: 17px;
    font-size: 12.4px;
  }

  #hero.hero-v2 .hero-v2__assurance {
    font-size: 10.2px;
  }

  #hero.hero-v2 + .premium-main {
    margin-top: -38px;
  }
}

@media (max-width: 340px) {
  #hero.hero-v2 .hero-v2__product {
    left: 150px;
    width: 617px;
  }

  #hero.hero-v2 .hero-v2__conversion {
    gap: 8px;
  }

  #hero.hero-v2 .hero-v2__cta {
    gap: 5px;
    padding-right: 5px;
    padding-left: 11px;
    font-size: 10.5px;
  }

  #hero.hero-v2 .hero-v2__cta svg {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    padding: 6px;
  }

  #hero.hero-v2 .hero-v2__assurance {
    padding: 3px 0 0;
    font-size: 9px;
  }
}

@media (min-width: 768px) {
  #hero.hero-v2 {
    height: 742px;
    padding-top: 76px;
    background-size: auto, auto, 42px 42px, 42px 42px, auto;
  }

  #hero.hero-v2::before {
    top: 76px;
  }

  #hero.hero-v2::after {
    inset: auto -72px 18px auto;
    width: 230px;
    height: 230px;
  }

  #hero.hero-v2 .hero-v2__stage {
    width: min(calc(100% - 72px), 1240px);
    height: 666px;
  }

  #hero.hero-v2 .hero-v2__copy {
    top: 116px;
    left: 0;
    width: min(43%, 500px);
  }

  #hero.hero-v2 .hero-v2__eyebrow {
    margin-bottom: 24px;
    font-size: 11px;
  }

  #hero.hero-v2 .hero-v2__eyebrow::after {
    width: 48px;
  }

  #hero.hero-v2 .hero-v2__title {
    max-width: 9.2ch;
    margin-bottom: 24px;
    font-size: clamp(54px, 5.1vw, 74px);
    line-height: .92;
  }

  #hero.hero-v2 .hero-v2__intro {
    max-width: 35ch;
    font-size: 17px;
    line-height: 1.65;
  }

  #hero.hero-v2 .hero-v2__product {
    top: 70px;
    left: 42.5%;
    width: min(109vw, 1416px);
    clip-path: none;
  }

  #hero.hero-v2 .hero-v2__browser {
    border-radius: 26px;
  }

  #hero.hero-v2 .hero-v2__browser-bar {
    height: 34px;
    padding-inline: 15px;
  }

  #hero.hero-v2 .hero-v2__browser-bar i {
    width: 9px;
    height: 9px;
    flex-basis: 9px;
  }

  #hero.hero-v2 .hero-v2__browser-bar span {
    font-size: 10px;
  }

  #hero.hero-v2 .hero-v2__conversion {
    top: 475px;
    left: 0;
    width: min(52%, 440px);
    gap: 10px;
  }

  #hero.hero-v2 .hero-v2__cta {
    width: 100%;
    min-height: 64px;
    padding-left: clamp(15px, 1.6vw, 23px);
    font-size: clamp(11.5px, 1vw, 14px);
  }

  #hero.hero-v2 .hero-v2__cta svg {
    width: clamp(32px, 3vw, 42px);
    height: clamp(32px, 3vw, 42px);
    flex-basis: clamp(32px, 3vw, 42px);
    padding: clamp(7px, .8vw, 10px);
  }

  #hero.hero-v2 .hero-v2__assurance {
    min-height: 22px;
    padding: 3px 2px 0;
    font-size: 11px;
  }

  #hero.hero-v2 + .premium-main {
    margin-top: -48px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #hero.hero-v2 {
    height: 665px;
  }

  #hero.hero-v2 .hero-v2__stage {
    height: 589px;
  }

  #hero.hero-v2 .hero-v2__product {
    top: 100px;
    left: 42.5%;
    width: min(132vw, 1150px);
  }

  #hero.hero-v2 .hero-v2__conversion {
    top: 440px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hero.hero-v2 .hero-v2__copy,
  #hero.hero-v2 .hero-v2__eyebrow,
  #hero.hero-v2 .hero-v2__title,
  #hero.hero-v2 .hero-v2__intro,
  #hero.hero-v2 .hero-v2__product,
  #hero.hero-v2 .hero-v2__conversion,
  #hero.hero-v2 .hero-v2__assurance,
  #hero.hero-v2 .hero-v2__browser::after {
    animation: none !important;
  }

  #hero.hero-v2 .hero-v2__cta,
  #hero.hero-v2 .hero-v2__cta svg {
    transition: none;
  }
}
