:root {
  --bg-light: #fff7b7;
  --bg-dark: #211134;
  --route-1: #eb9eb4;
  --route-2: #ff7000;
  --route-3: #ffb002;
  --route-4: #008027;
  --route-5: #00cc3f;
  --route-design: #d31d6b;
  --route-paid: #4440ff;
  --text-light: #fff7b7;
  --text-dark: #211134;
  --white: #ffffff;
  --shadow: 0 24px 46px rgba(33, 17, 52, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  height: 100%;
}

body {
  font-family: "Montserrat", sans-serif;
  background: radial-gradient(
    circle at 20% -10%,
    #fffde0 0%,
    var(--bg-light) 42%,
    #f6efad 100%
  );
  color: var(--text-dark);
  overflow-x: hidden;
}

.page {
  position: relative;
  min-height: 100svh;
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 34px);
  isolation: isolate;
  overflow: hidden;
}

.backdrop-lines {
  position: absolute;
  left: -8vw;
  right: -8vw;
  top: auto;
  bottom: -8%;
  height: 100%;
  max-height: 50dvh;
  background-image: url("../img/lines.svg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  opacity: 0.95;
  z-index: 1;
  pointer-events: none;
}

.launch-card {
  width: min(750px, 96vw);
  border-radius: 0;
  position: relative;
  z-index: 2;
  transform: translateY(18px);
  opacity: 0;
  animation: cardIn 0.85s cubic-bezier(0.2, 0.85, 0.25, 1) forwards;
}

.hero {
  position: relative;
  background: var(--bg-dark);
  padding: clamp(20px, 3vw, 30px) clamp(18px, 3.2vw, 36px) 0;
  min-height: clamp(300px, 38vw, 440px);
  overflow: hidden;
}

.hero-top {
  display: flex;
  align-items: flex-end;
  gap: clamp(8px, 1.2vw, 14px);
}

.pretitle {
  margin: 0;
  color: var(--text-light);
  font-size: clamp(1.04rem, 1.8vw, 1.95rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.logo {
  flex: 1 1 auto;
  min-width: 0;
  width: min(100%, 520px);
  max-width: 100%;
  height: auto;
  display: block;
}

.route-icons {
  margin-top: clamp(12px, 1.8vw, 16px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: clamp(8px, 1.2vw, 16px);
}

.route-strip {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(4px, 0.7vw, 10px);
}

.route-strip img {
  width: clamp(30px, 3.8vw, 60px);
  height: auto;
  display: block;
  transform: translateY(0);
  transition: transform 0.24s ease;
}

.route-strip img:hover {
  transform: translateY(-2px);
}

.route-arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: clamp(38px, 5.2vw, 72px);
}

.route-icons .arrow {
  width: clamp(40px, 5.6vw, 75px);
}

.hero-copy {
  color: var(--text-light);
  margin: 0;
  max-width: 64%;
  font-size: clamp(1.3rem, 1.2vw, 2rem);
  line-height: 1.3;
  font-weight: 700;
}

.hero-bottom {
  margin-top: clamp(30px, 2vw, 160px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.avatar {
  margin: 0;
  width: clamp(84px, 12.8vw, 170px);
}

.avatar img {
  width: 100%;
  height: auto;
  display: block;
}

.cta {
  background: var(--route-2);
  margin-top: 5px;
  padding: clamp(16px, 2.6vw, 22px);
  text-align: center;
  color: var(--white);
}

.cta p {
  margin: 0;
  line-height: 1.25;
}

.cta .lead {
  font-size: clamp(0.95rem, 2.1vw, 1.26rem);
  font-weight: 500;
}

.cta .strong {
  margin-top: 5px;
  font-size: clamp(1.03rem, 2.7vw, 1.55rem);
  font-weight: 700;
}

.actions {
  margin-top: clamp(11px, 1.8vw, 16px);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  background: var(--white);
  border-radius: 999px;
  position: relative;
  perspective: 900px;
  transition: background-color 0.14s linear;
}

.actions:has(#email-action:hover),
.actions:has(#email-action:focus-visible) {
  background: var(--route-5);
}

.btn-action {
  border: 0;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 50px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--white);
  box-shadow: 0 0 0 rgba(33, 17, 52, 0);
  transition:
    background-color 0.15s linear,
    color 0.15s linear,
    box-shadow 0.14s ease,
    transform 0.14s cubic-bezier(0.15, 0.85, 0.2, 1.25),
    filter 0.14s ease;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center center;
  will-change: transform;
}

.btn-action:hover {
  box-shadow: 0 12px 24px rgba(33, 17, 52, 0.2);
}

.btn-action:active {
  transform: translateY(0);
}

.btn-action.whatsapp {
  background: var(--route-5);
  margin-left: -6px;
  padding-left: 24px;
  padding-right: 24px;
  z-index: 3;
  transform: translate3d(0, 0, 0) scale(1.01);
}

.btn-action.whatsapp:hover {
  background-color: #00b83a;
  transform: scale(1.03);
}

#email-action:hover,
#email-action:focus-visible {
  z-index: 5;
  background-color: #f2f2f2;
  transform: scale(1.03);
}

.actions:hover .btn-action.whatsapp:not(:hover):not(:focus-visible) {
  z-index: 2;
}

.btn-action:focus-visible {
  outline: 3px solid rgba(255, 247, 183, 0.85);
  outline-offset: 2px;
}

body.is-leaving .launch-card {
  animation: cardOut 0.32s ease forwards;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardOut {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
}

@media (max-width: 768px) {
  .page {
    align-items: start;
    height: auto;
    min-height: 100svh;
    padding-top: 20px;
    padding-bottom: 18px;
    overflow: hidden;
    justify-items: center;
  }

  .launch-card {
    width: min(340px, calc(100vw - 32px));
    margin-inline: auto;
  }

  .hero {
    min-height: 0;
    padding: 30px 18px 14px;
  }

  .hero-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .pretitle {
    font-size: clamp(0.42rem, 3.4vw, 0.78rem);
    line-height: 0.9;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .pretitle br {
    display: none;
  }

  .hero-copy {
    max-width: 100%;
    font-size: clamp(0.55rem, 4.5vw, 1.5rem);
    line-height: 1.18;
    align-self: flex-start;
  }

  .hero-bottom {
    margin-top: 10px;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 8px;
  }

  .logo {
    width: min(100%, 272px);
  }

  .route-icons {
    margin-top: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 10px;
  }

  .route-strip {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    grid-template-rows: repeat(2, auto);
    column-gap: 8px;
    row-gap: 7px;
  }

  .route-strip img {
    width: clamp(16px, 11vw, 40px);
  }

  .route-strip img:nth-child(1) {
    grid-area: 1 / 1;
  }
  .route-strip img:nth-child(2) {
    grid-area: 1 / 2;
  }
  .route-strip img:nth-child(3) {
    grid-area: 1 / 3;
  }
  .route-strip img:nth-child(4) {
    grid-area: 2 / 1;
  }
  .route-strip img:nth-child(5) {
    grid-area: 2 / 2;
  }
  .route-strip img:nth-child(6) {
    grid-area: 2 / 3;
  }
  .route-strip img:nth-child(7) {
    grid-area: 2 / 4;
  }

  .route-arrow {
    width: auto;
    align-self: end;
  }

  .route-icons .arrow {
    width: calc(clamp(26px, 10vw, 54px) + 15px);
  }

  .avatar {
    width: clamp(76px, 25vw, 118px);
    align-self: center;
  }

  .cta {
    padding: 14px 12px 16px;
  }

  .cta .lead {
    font-size: clamp(0.62rem, 3.3vw, 0.96rem);
  }

  .cta .strong {
    font-size: clamp(0.78rem, 3.8vw, 1.36rem);
    line-height: 1.06;
  }

  .actions {
    width: min(100%, 292px);
    margin-inline: auto;
  }

  .btn-action {
    min-width: 0;
    width: 100%;
    padding: 10px 20px;
    font-size: clamp(0.54rem, 2.6vw, 0.72rem);
  }

  .btn-action.whatsapp {
    margin-left: -5px;
    padding-left: 30px;
    padding-right: 30px;
  }

  .backdrop-lines {
    left: -18vw;
    right: -18vw;
    bottom: -10%;
    height: 50dvh;
    max-height: 50dvh;
    background-size: cover;
  }
}

@media (max-width: 420px) {
  .actions {
    width: min(100%, 272px);
  }

  .btn-action.whatsapp {
    margin-left: -4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
