:root {
  color-scheme: light;
  --ink: #171429;
  --ink-soft: #625e72;
  --surface: #ffffff;
  --surface-soft: #f7f6fb;
  --line: #e9e6f1;
  --violet: #6d28d9;
  --violet-dark: #5216b5;
  --cyan: #12cfe0;
  --success: #0f9f78;
  --shadow: 0 24px 80px rgba(45, 29, 78, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(109, 40, 217, 0.09), transparent 28rem),
    radial-gradient(circle at 100% 100%, rgba(18, 207, 224, 0.10), transparent 30rem),
    var(--surface-soft);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button,
a,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  transform: translateY(-160%);
  border-radius: 0.5rem;
  background: var(--ink);
  color: white;
  padding: 0.65rem 0.85rem;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: 34rem;
  margin: 0 auto;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1.15rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(1.15rem, env(safe-area-inset-left));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
}

.brand__mark {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.brand__name {
  font-size: 1.04rem;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.progress {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 1.2rem;
  overflow: hidden;
  border-radius: 999px;
  background: #eeebf3;
}

.progress__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 33.333%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.progress__label {
  position: relative;
  z-index: 1;
  padding: 0 0.58rem;
  color: #322b43;
  font-size: 0.67rem;
  font-weight: 760;
  letter-spacing: 0.02em;
  text-shadow: 0 1px rgba(255, 255, 255, 0.8);
}

.stage {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1rem;
  animation: stage-in 440ms cubic-bezier(0.22, 1, 0.36, 1);
}

.stage[hidden] {
  display: none;
}

.stage__content {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: clamp(0.35rem, 2vh, 1.15rem);
}

.stage__content--centered {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-inline: 0.4rem;
}

.stage__actions {
  display: grid;
  gap: 0.45rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  margin: 0 0 0.75rem;
  border-radius: 999px;
  background: rgba(109, 40, 217, 0.08);
  color: var(--violet-dark);
  padding: 0.35rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 650;
}

.job-meta span {
  display: inline-flex;
  align-items: center;
}

.job-meta span + span::before {
  width: 0.25rem;
  height: 0.25rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--cyan);
  content: "";
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(1.75rem, 8.5vw, 2.65rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.copy {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: clamp(0.92rem, 3.8vw, 1rem);
  line-height: 1.58;
  white-space: pre-line;
}

.copy--scroll {
  width: 100%;
  min-height: 4rem;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 0.45rem 0.85rem 0;
  scrollbar-color: rgba(109, 40, 217, 0.35) transparent;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: none;
  mask-image: none;
}

.copy--center {
  max-width: 31rem;
}

.button {
  min-height: 3.25rem;
  border: 0;
  border-radius: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 760;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:focus-visible {
  outline: 3px solid rgba(18, 207, 224, 0.55);
  outline-offset: 3px;
}

.button:active {
  transform: translateY(1px) scale(0.995);
}

.button--primary {
  background: linear-gradient(112deg, var(--violet) 0%, #5d36df 48%, #168fdf 100%);
  box-shadow: 0 12px 26px rgba(91, 42, 201, 0.22);
  color: white;
}

.button--primary:hover {
  box-shadow: 0 15px 30px rgba(91, 42, 201, 0.3);
  transform: translateY(-1px);
}

.button--quiet {
  min-height: 2.6rem;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.button--quiet:hover {
  background: rgba(109, 40, 217, 0.05);
  color: var(--violet-dark);
}

.step-number {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  background-clip: text;
  color: transparent;
  font-size: clamp(4rem, 24vw, 7rem);
  font-weight: 850;
  line-height: 0.78;
  letter-spacing: -0.09em;
  opacity: 0.14;
}

.timer {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface-soft);
  color: var(--ink-soft);
  padding: 0.65rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 650;
}

.timer__pulse {
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(18, 207, 224, 0.5);
  animation: pulse 1.8s infinite;
}

.success-mark {
  width: 4.25rem;
  height: 4.25rem;
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 159, 120, 0.22);
  border-radius: 50%;
  background: rgba(15, 159, 120, 0.09);
  color: var(--success);
}

.success-mark svg {
  width: 2.2rem;
  height: 2.2rem;
}

.contact {
  width: min(100%, 27rem);
  margin: 1rem 0 0;
  border: 1px solid rgba(23, 179, 102, 0.2);
  border-radius: 1rem;
  padding: 0.9rem;
  background: rgba(23, 179, 102, 0.06);
  color: var(--ink-soft);
  text-align: center;
}

.contact__text {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.contact__number {
  display: block;
  margin-top: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.button--whatsapp {
  min-height: 3.1rem;
  background: #128c4b;
  box-shadow: 0 10px 22px rgba(18, 140, 75, 0.2);
  color: white;
}

.button--whatsapp:hover {
  background: #0f7a41;
  box-shadow: 0 13px 26px rgba(18, 140, 75, 0.28);
  transform: translateY(-1px);
}

.noscript {
  position: fixed;
  inset: auto 1rem 1rem;
  border-radius: 0.75rem;
  background: var(--ink);
  color: white;
  padding: 0.85rem;
  font-size: 0.85rem;
  text-align: center;
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateX(1rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 0.55rem rgba(18, 207, 224, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(18, 207, 224, 0);
  }
}

@media (min-width: 42rem) {
  body {
    display: grid;
    place-items: center;
    padding: 1.5rem;
  }

  .app-shell {
    height: min(50rem, calc(100dvh - 3rem));
    border: 1px solid rgba(109, 40, 217, 0.08);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    padding: 1.5rem;
  }
}

@media (max-width: 30rem) and (max-height: 48rem) {
  .app-shell {
    gap: 0.6rem;
    padding-top: max(0.7rem, env(safe-area-inset-top));
    padding-bottom: max(0.7rem, env(safe-area-inset-bottom));
  }

  .brand {
    min-height: 2.25rem;
  }

  .brand__mark {
    width: 2.1rem;
    height: 2.1rem;
  }

  .progress {
    height: 1.05rem;
  }

  .stage {
    gap: 0.7rem;
  }

  .stage__content {
    padding-top: 0.1rem;
  }

  .eyebrow,
  .job-meta {
    margin-bottom: 0.55rem;
  }

  h1 {
    font-size: clamp(1.65rem, 8.2vw, 2.15rem);
  }

  .copy {
    margin-top: 0.7rem;
    font-size: 0.9rem;
    line-height: 1.48;
  }

  .button {
    min-height: 3rem;
  }
}

@media (max-height: 42rem) {
  .app-shell {
    gap: 0.55rem;
    padding-top: max(0.7rem, env(safe-area-inset-top));
    padding-bottom: max(0.7rem, env(safe-area-inset-bottom));
  }

  .brand {
    min-height: 2.2rem;
  }

  .brand__mark {
    width: 2rem;
    height: 2rem;
  }

  .stage__content {
    padding-top: 0;
  }

  .eyebrow,
  .job-meta {
    margin-bottom: 0.45rem;
  }

  h1 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .copy {
    margin-top: 0.6rem;
    line-height: 1.45;
  }

  .button {
    min-height: 2.85rem;
  }

  .step-number {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
