:root {
  --ink: #001829;
  --ink-rgb: 0, 24, 41;
  --canvas: #f5fafb;
  --rose: #ff166f;
  --rose-deep: #e20a5c;
  --amber: #fece04;
  --cyan: #00eae4;
  --emerald: #00b55a;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.78);
  --text-mute: rgba(255, 255, 255, 0.58);
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.42);
  --field: rgba(255, 255, 255, 0.07);
  --field-focus: rgba(255, 255, 255, 0.12);
  --danger: #ff7aa5;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --gutter: 20px;
  --maxw: 1240px;
  --pad-top: 20px;
  --pad-bottom: 16px;
  --gap: clamp(18px, 3.2vh, 32px);
  --card-w: 440px;
  --card-pad: 24px;
  --card-radius: 22px;
  --field-h: 48px;
  --field-gap: 10px;
  --logo-h: clamp(40px, 8vh, 76px);
  --phrase-size: clamp(26px, 7.2vw, 34px);
  --sub-size: clamp(13.5px, 3.7vw, 15px);
  --h2-size: clamp(17px, 4.6vw, 19px);
  --wa-size: 46px;
  --wa-gap: 12px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink);
}

body {
  position: relative;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ink);
  pointer-events: none;
}

.bg-image,
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-image {
  background-color: var(--ink);
  background-image: url("assets/bg/altto-bg-poster.webp");
  background-size: cover;
  background-position: 68% 50%;
  background-repeat: no-repeat;
  transform: scale(1.06);
  transform-origin: 72% 48%;
  animation: bg-in 1.8s var(--ease-soft) both;
}

.bg-video {
  object-fit: cover;
  object-position: 68% 50%;
  opacity: 0;
  transition: opacity 1.2s var(--ease-soft);
}

.bg-video.playing {
  opacity: 1;
}

.bg.has-video .bg-image {
  transform: none;
  animation: bg-in 1.8s var(--ease-soft) both;
  will-change: auto;
}

.bg-video::-webkit-media-controls,
.bg-video::-webkit-media-controls-panel,
.bg-video::-webkit-media-controls-play-button,
.bg-video::-webkit-media-controls-start-playback-button,
.bg-video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--ink-rgb), 0.42) 0%, rgba(var(--ink-rgb), 0.26) 16%, rgba(var(--ink-rgb), 0.1) 30%, rgba(var(--ink-rgb), 0) 42%),
    linear-gradient(0deg, rgba(var(--ink-rgb), 0.5) 0%, rgba(var(--ink-rgb), 0.24) 7%, rgba(var(--ink-rgb), 0) 16%);
}

body[data-page="obrigado"] .bg-overlay {
  background:
    radial-gradient(ellipse 70% 42% at 50% 50%, rgba(var(--ink-rgb), 0.42) 0%, rgba(var(--ink-rgb), 0.2) 55%, rgba(var(--ink-rgb), 0) 100%),
    linear-gradient(180deg, rgba(var(--ink-rgb), 0.36) 0%, rgba(var(--ink-rgb), 0) 18%),
    linear-gradient(0deg, rgba(var(--ink-rgb), 0.4) 0%, rgba(var(--ink-rgb), 0) 14%);
}

@media (min-width: 1024px) and (hover: hover) {
  .bg-image {
    will-change: transform;
    animation:
      bg-in 1.8s var(--ease-soft) both,
      bg-zoom 30s ease-in-out 0s infinite alternate;
  }
}

.page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "top" "center" "bottom";
  height: 100%;
  min-height: 0;
  padding-top: max(var(--pad-top), env(safe-area-inset-top));
  padding-bottom: max(var(--pad-bottom), env(safe-area-inset-bottom));
  padding-left: max(var(--gutter), env(safe-area-inset-left), calc((100% - var(--maxw)) / 2));
  padding-right: max(var(--gutter), env(safe-area-inset-right), calc((100% - var(--maxw)) / 2));
}

.page > * {
  min-height: 0;
  min-width: 0;
}

.top {
  grid-area: top;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-altto {
  height: var(--logo-h);
  width: auto;
  filter: drop-shadow(0 2px 18px rgba(var(--ink-rgb), 0.45));
}

.center {
  grid-area: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gap);
  padding-block: clamp(12px, 2.4vh, 28px);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -26%;
  bottom: -34%;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  z-index: -1;
  background: radial-gradient(closest-side at 50% 58%, rgba(var(--ink-rgb), 0.56) 0%, rgba(var(--ink-rgb), 0.5) 36%, rgba(var(--ink-rgb), 0.34) 58%, rgba(var(--ink-rgb), 0.16) 76%, rgba(var(--ink-rgb), 0.05) 89%, rgba(var(--ink-rgb), 0) 100%);
  pointer-events: none;
}

.concept-phrase {
  max-width: 17ch;
  font-size: var(--phrase-size);
  font-weight: 250;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-align: center;
  text-wrap: balance;
  color: var(--text);
  text-shadow: 0 1px 2px rgba(var(--ink-rgb), 0.35), 0 2px 24px rgba(var(--ink-rgb), 0.5);
  font-feature-settings: "ss01", "kern";
}

.concept-h2 {
  max-width: 26ch;
  margin-top: 0.7em;
  font-size: var(--h2-size);
  font-weight: 350;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
  text-shadow: 0 1px 2px rgba(var(--ink-rgb), 0.45), 0 1px 18px rgba(var(--ink-rgb), 0.55);
}

.concept-sub {
  max-width: 34ch;
  margin-top: 0.85em;
  font-size: var(--sub-size);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.005em;
  color: var(--text-soft);
  text-wrap: balance;
  text-shadow: 0 0 2px rgba(var(--ink-rgb), 0.7), 0 1px 8px rgba(var(--ink-rgb), 0.6), 0 0 20px rgba(var(--ink-rgb), 0.5);
}

.sub-sep {
  color: rgba(255, 255, 255, 0.4);
  white-space: pre;
}

@media (max-width: 639px) {
  .sub-sep {
    display: none;
  }

  .sub-a,
  .sub-b {
    display: block;
  }
}

.card {
  position: relative;
  width: 100%;
  max-width: var(--card-w);
  min-height: 0;
  padding: var(--card-pad);
  border-radius: var(--card-radius);
  background: linear-gradient(160deg, rgba(var(--ink-rgb), 0.58) 0%, rgba(var(--ink-rgb), 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 30px 80px -24px rgba(0, 8, 16, 0.65),
    0 2px 6px rgba(0, 8, 16, 0.18);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  isolation: isolate;
}

@media (min-width: 1024px) and (hover: hover) {
  .card {
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
  }
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.04) 40%, rgba(255, 22, 111, 0.22) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  z-index: -1;
}

.form-title {
  margin-bottom: 18px;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.012em;
  text-wrap: balance;
  color: var(--text);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: var(--field-gap);
}

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"] {
  display: block;
  width: 100%;
  height: var(--field-h);
  padding: 0 16px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  caret-color: var(--rose);
  transition:
    background-color 0.3s var(--ease-soft),
    border-color 0.3s var(--ease-soft),
    box-shadow 0.35s var(--ease-soft),
    transform 0.35s var(--ease);
}

.lead-form input::placeholder {
  color: var(--text-mute);
  opacity: 1;
  transition: color 0.3s var(--ease-soft), transform 0.3s var(--ease);
}

.lead-form input[type="text"]:hover,
.lead-form input[type="email"]:hover,
.lead-form input[type="tel"]:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
}

.lead-form input[type="text"]:focus,
.lead-form input[type="email"]:focus,
.lead-form input[type="tel"]:focus {
  background: var(--field-focus);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 22, 111, 0.16), 0 10px 26px -14px rgba(255, 22, 111, 0.6);
}

.lead-form input:focus::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.lead-form input:-webkit-autofill,
.lead-form input:-webkit-autofill:hover,
.lead-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--rose);
  -webkit-box-shadow: 0 0 0 1000px rgba(16, 40, 58, 0.96) inset;
  transition: background-color 9999s ease 0s;
}

.lead-form input.is-invalid {
  border-color: var(--danger);
  background: rgba(255, 22, 111, 0.08);
  box-shadow: 0 0 0 4px rgba(255, 22, 111, 0.14);
}

.aceite {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-soft);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: color 0.3s var(--ease-soft);
}

.aceite input[type="checkbox"] {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.5px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: background-color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft), box-shadow 0.3s var(--ease-soft), transform 0.2s var(--ease);
}

.aceite input[type="checkbox"]::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 2px;
  width: 5px;
  height: 9.5px;
  border: solid #fff;
  border-width: 0 1.75px 1.75px 0;
  transform: rotate(45deg) scale(0.4);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease-soft);
}

.aceite:hover input[type="checkbox"] {
  border-color: rgba(255, 255, 255, 0.7);
}

.aceite input[type="checkbox"]:active {
  transform: scale(0.9);
}

.aceite input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 4px rgba(255, 22, 111, 0.22);
  border-color: #fff;
}

.aceite input[type="checkbox"]:checked {
  background: var(--rose);
  border-color: var(--rose);
}

.aceite input[type="checkbox"]:checked::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.aceite a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.25s var(--ease-soft), color 0.25s var(--ease-soft);
}

.aceite a:hover {
  text-decoration-color: var(--rose);
}

.aceite a:focus-visible {
  text-decoration-color: var(--rose);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lead-form input.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.aceite.is-invalid {
  color: var(--danger);
}

.aceite.is-invalid input[type="checkbox"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 22, 111, 0.16);
}

.form-error {
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: #ffd2e1;
  background: rgba(255, 22, 111, 0.14);
  border: 1px solid rgba(255, 22, 111, 0.32);
  border-radius: 10px;
  animation: error-in 0.4s var(--ease) both;
}

.submit-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  margin-top: 6px;
  padding: 0 24px;
  overflow: hidden;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  background: var(--rose);
  border: 0;
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 14px 30px -12px rgba(255, 22, 111, 0.75);
  cursor: pointer;
  isolation: isolate;
  -webkit-user-select: none;
  user-select: none;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease-soft),
    background-color 0.3s var(--ease-soft),
    opacity 0.3s var(--ease-soft);
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 60%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.32) 50%, transparent 100%);
  transform: translateX(-130%) skewX(-18deg);
  transition: transform 0.9s var(--ease);
  z-index: -1;
}

.submit-btn::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-right: -26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s var(--ease-soft), transform 0.3s var(--ease), margin 0.3s var(--ease);
}

.submit-btn:hover {
  transform: translateY(-1px);
  background: #ff2a7d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 20px 40px -14px rgba(255, 22, 111, 0.9);
}

.submit-btn:hover::before {
  transform: translateX(260%) skewX(-18deg);
}

.submit-btn:active {
  transform: translateY(0) scale(0.985);
  background: var(--rose-deep);
  transition-duration: 0.12s;
}

.submit-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.submit-btn:disabled,
.submit-btn.is-loading {
  cursor: progress;
  transform: none;
  background: var(--rose-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 24px -14px rgba(255, 22, 111, 0.6);
}

.submit-btn:disabled::before,
.submit-btn.is-loading::before {
  transform: translateX(-130%) skewX(-18deg);
}

.submit-btn.is-loading::after {
  margin-right: 0;
  opacity: 1;
  transform: scale(1);
  animation: spin 0.8s linear infinite;
}

.bottom {
  grid-area: bottom;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.logo-miraus {
  height: 22px;
  width: auto;
  opacity: 0.92;
}

.microtexto {
  position: relative;
  padding-left: 13px;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
}

.microtexto::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%);
}

.top,
.hero,
.card,
.bottom {
  transition:
    opacity 1s var(--ease-soft),
    transform 1.2s var(--ease),
    filter 1.2s var(--ease-soft);
}

@media (scripting: enabled) {
  html:not(.is-ready) .top,
  html:not(.is-ready) .hero,
  html:not(.is-ready) .card,
  html:not(.is-ready) .bottom {
    opacity: 0;
    transform: translateY(18px);
    animation: failsafe 0.8s var(--ease-soft) 3s forwards;
  }

  html:not(.is-ready) .top {
    transform: translateY(-10px);
  }

  html:not(.is-ready) .hero {
    filter: blur(8px);
  }

  html:not(.is-ready) .card {
    transform: translateY(28px) scale(0.985);
  }
}

html.is-ready .top {
  transition-delay: 0.15s;
}

html.is-ready .hero {
  transition-delay: 0.4s;
}

html.is-ready .card {
  transition-delay: 0.65s;
}

html.is-ready .bottom {
  transition-delay: 0.95s;
}

.card.shake {
  animation: shake 0.5s var(--ease-soft);
}

body[data-page="home"] .concept-phrase::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  margin: 0.42em auto 0;
  background: linear-gradient(90deg, var(--rose), rgba(254, 206, 4, 0.9));
}

.card-obrigado {
  max-width: 460px;
  text-align: center;
  padding: clamp(28px, 4.5vh, 44px) clamp(22px, 4vw, 40px);
}

.card-obrigado .form-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.6vh, 30px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.card-obrigado .form-title::before {
  content: "";
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto clamp(16px, 2.6vh, 24px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 24px no-repeat,
    radial-gradient(circle at 30% 25%, rgba(255, 22, 111, 0.55), rgba(255, 22, 111, 0.18) 70%);
  box-shadow: 0 0 0 8px rgba(255, 22, 111, 0.08), 0 16px 40px -12px rgba(255, 22, 111, 0.7);
  animation: pop 0.9s var(--ease) 0.9s both;
}

.card-obrigado p {
  max-width: 34ch;
  text-wrap: balance;
  margin: 0 auto clamp(20px, 3.4vh, 30px);
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-soft);
}

.site-link {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 2px;
  font-size: 13.5px;
  color: var(--text-soft);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.25s var(--ease-soft), text-decoration-color 0.25s var(--ease-soft);
}

.site-link:hover {
  color: #fff;
  text-decoration-color: var(--rose);
}

.site-link:focus-visible {
  color: #fff;
  text-decoration-color: var(--rose);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (min-width: 640px) {
  :root {
    --sub-size: 16px;
    --h2-size: 21px;
    --wa-size: 56px;
    --wa-gap: 24px;
    --gutter: 32px;
    --pad-top: 28px;
    --pad-bottom: 22px;
    --card-pad: 30px;
    --phrase-size: clamp(34px, 5.6vw, 44px);
  }

  .form-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 56px;
    --pad-top: 40px;
    --pad-bottom: 32px;
    --card-pad: 34px;
    --card-w: 400px;
    --phrase-size: clamp(34px, calc(5.6vw - 20px), 64px);
    --sub-size: clamp(16px, 1.35vw, 19px);
    --h2-size: clamp(20px, 1.75vw, 25px);
    --wa-gap: 28px;
  }

  body[data-page="home"] .bg-overlay {
    background:
      linear-gradient(90deg, rgba(var(--ink-rgb), 0.6) 0%, rgba(var(--ink-rgb), 0.5) 20%, rgba(var(--ink-rgb), 0.4) 34%, rgba(var(--ink-rgb), 0.24) 42%, rgba(var(--ink-rgb), 0.08) 47%, rgba(var(--ink-rgb), 0) 50%),
      radial-gradient(ellipse 42% 26% at 0% 100%, rgba(var(--ink-rgb), 0.42) 0%, rgba(var(--ink-rgb), 0) 100%);
  }

  body[data-page="home"] .top,
  body[data-page="home"] .bottom {
    justify-content: flex-start;
  }

  .hero::before {
    display: none;
  }

  body[data-page="home"] .center {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--card-w));
    align-items: center;
    column-gap: clamp(48px, 7vw, 120px);
  }

  body[data-page="home"] .hero {
    align-items: flex-start;
    text-align: left;
  }

  body[data-page="home"] .concept-phrase {
    max-width: none;
    text-align: left;
  }

  body[data-page="home"] .concept-sub {
    max-width: none;
  }

  body[data-page="home"] .concept-h2 {
    max-width: none;
  }

  body[data-page="home"] .concept-phrase::after {
    width: 56px;
    margin: 0.5em 0 0;
  }

  body[data-page="home"] .card {
    justify-self: end;
  }

  .form-title {
    font-size: 21px;
    margin-bottom: 22px;
  }

  .microtexto {
    font-size: 11px;
  }
}

@media (min-width: 1280px) {
  :root {
    --card-w: 440px;
  }
}

@media (min-width: 1440px) {
  :root {
    --maxw: 1320px;
    --gutter: 72px;
    --pad-top: 48px;
    --pad-bottom: 40px;
    --card-w: 480px;
    --card-pad: 40px;
    --field-h: 54px;
    --field-gap: 12px;
    --phrase-size: clamp(52px, 4vw, 60px);
  }

  .form-title {
    font-size: 23px;
    margin-bottom: 26px;
  }

  .submit-btn {
    height: 56px;
    font-size: 16px;
  }

  .aceite {
    font-size: 13.5px;
  }

  .logo-miraus {
    height: 26px;
  }
}

@media (max-height: 700px) {
  :root {
    --pad-top: 14px;
    --pad-bottom: 12px;
    --card-pad: 20px;
    --field-h: 40px;
    --field-gap: 8px;
    --gap: 14px;
    --card-radius: 18px;
  }

  .form-title {
    font-size: 17px;
    margin-bottom: 14px;
  }

  .submit-btn {
    height: 44px;
    margin-top: 4px;
  }

  .aceite {
    margin-top: 2px;
    font-size: 12.5px;
  }

  .center {
    padding-block: 8px;
  }

  .logo-miraus {
    height: 19px;
  }

  .card-obrigado .form-title::before {
    width: 46px;
    height: 46px;
  }
}

@media (max-height: 700px) and (min-width: 1024px) {
  :root {
    --pad-top: 24px;
    --pad-bottom: 20px;
    --card-pad: 28px;
    --field-h: 44px;
  }
}

@media (max-height: 600px) {
  :root {
    --phrase-size: clamp(22px, 6.4vw, 30px);
    --gap: 10px;
    --logo-h: 30px;
    --card-pad: 18px;
  }

  .microtexto {
    display: none;
  }

  body[data-page="home"] .concept-phrase::after {
    display: none;
  }

  .form-title {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .logo-miraus {
    height: 17px;
  }
}

@media (max-height: 600px) and (min-width: 1024px) {
  :root {
    --phrase-size: clamp(34px, 3.6vw, 46px);
  }
}

@media (max-height: 520px) {
  :root {
    --pad-top: 10px;
    --pad-bottom: 8px;
    --logo-h: 22px;
    --field-h: 40px;
    --card-pad: 16px;
  }

  .center {
    padding-block: 6px;
  }

  .card {
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  }

  .submit-btn {
    height: 42px;
  }

  .card-obrigado {
    padding: 18px 24px;
  }

  .card-obrigado .form-title {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .card-obrigado .form-title::before {
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
    background-size: 18px, auto;
    box-shadow: 0 0 0 5px rgba(255, 22, 111, 0.08), 0 10px 26px -10px rgba(255, 22, 111, 0.7);
  }

  .card-obrigado p {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.45;
  }

  .site-link {
    margin-top: 8px;
  }
}

@media (max-height: 600px) and (orientation: landscape) and (min-width: 560px) {
  :root {
    --gutter: 24px;
    --card-w: 330px;
    --phrase-size: clamp(21px, 3.2vw, 30px);
  }

  body[data-page="home"] .bg-overlay {
    background:
      linear-gradient(90deg, rgba(var(--ink-rgb), 0.62) 0%, rgba(var(--ink-rgb), 0.46) 22%, rgba(var(--ink-rgb), 0.22) 36%, rgba(var(--ink-rgb), 0.06) 45%, rgba(var(--ink-rgb), 0) 52%),
      radial-gradient(ellipse 44% 30% at 0% 100%, rgba(var(--ink-rgb), 0.42) 0%, rgba(var(--ink-rgb), 0) 100%);
  }

  body[data-page="home"] .top,
  body[data-page="home"] .bottom {
    justify-content: flex-start;
  }

  .hero::before {
    display: none;
  }

  body[data-page="home"] .center {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--card-w));
    align-items: center;
    column-gap: clamp(20px, 3vw, 48px);
  }

  body[data-page="home"] .hero {
    align-items: flex-start;
    text-align: left;
  }

  body[data-page="home"] .concept-phrase {
    max-width: none;
    font-weight: 300;
    text-align: left;
  }

  :root {
    --sub-size: 13px;
    --h2-size: 15px;
  }

  .concept-h2 {
    margin-top: 0.5em;
  }

  .concept-sub {
    margin-top: 0.6em;
  }

  .sub-sep {
    display: none;
  }

  .sub-a,
  .sub-b {
    display: block;
  }

  body[data-page="home"] .card {
    justify-self: end;
    align-self: center;
  }

  .page-obrigado .center {
    padding-block: 4px;
  }
}

.wa-float {
  position: fixed;
  right: max(var(--wa-gap), calc(env(safe-area-inset-right) + 12px));
  bottom: max(var(--wa-gap), calc(env(safe-area-inset-bottom) + 12px));
  z-index: 5;
  display: grid;
  place-items: center;
  width: var(--wa-size);
  height: var(--wa-size);
  padding: 0;
  color: #fff;
  background: #25d366;
  border: 0;
  border-radius: 50%;
  box-shadow:
    0 10px 28px -8px rgba(0, 8, 16, 0.6),
    0 4px 14px -4px rgba(37, 211, 102, 0.55);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    opacity 0.3s var(--ease-soft),
    transform 0.4s var(--ease),
    box-shadow 0.3s var(--ease-soft),
    visibility 0s linear 0s;
}

.wa-float svg {
  position: relative;
  z-index: 1;
  width: 54%;
  height: 54%;
}

.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #25d366;
  opacity: 0;
  pointer-events: none;
}

html:not(.is-ready) .wa-float {
  opacity: 0;
}

html.is-ready .wa-float {
  animation: wa-in 0.8s var(--ease) 1.6s backwards;
}

html.is-ready .wa-float::before {
  animation: wa-pulse 4.5s var(--ease-soft) 3.2s infinite;
}

.wa-float:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 14px 32px -8px rgba(0, 8, 16, 0.65),
    0 6px 18px -4px rgba(37, 211, 102, 0.7);
}

.wa-float:active {
  transform: scale(0.95);
  transition-duration: 0.12s;
}

.wa-float:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.wa-float:disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 639px) {
  body[data-page="home"] .bottom {
    justify-content: flex-start;
  }
}

@media (max-height: 600px) and (orientation: landscape) and (min-width: 560px) {
  :root {
    --wa-size: 44px;
    --wa-gap: 12px;
  }

  body[data-page="home"] .page {
    padding-right: max(calc(var(--wa-size) + var(--wa-gap) + 12px), calc(env(safe-area-inset-right) + var(--wa-size) + 24px));
  }
}

html.kb-open .wa-float,
html.modal-open .wa-float {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.85);
  transition-delay: 0s, 0s, 0s, 0.3s;
}

.modal {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--vvt, 0px);
  height: var(--vvh, 100%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(var(--ink-rgb), 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s var(--ease-soft);
}

html .modal .modal-box {
  width: 100%;
  max-width: 420px;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  background: linear-gradient(160deg, rgba(var(--ink-rgb), 0.74) 0%, rgba(var(--ink-rgb), 0.86) 100%);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  filter: none;
  transition:
    opacity 0.3s var(--ease-soft),
    transform 0.45s var(--ease);
  transition-delay: 0s;
}

.modal-box:focus {
  outline: none;
}

html.modal-open .modal-backdrop {
  opacity: 1;
}

html.modal-open .modal .modal-box {
  opacity: 1;
  transform: none;
}

html.modal-open .modal .modal-box.shake {
  animation: shake 0.5s var(--ease-soft);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-soft), color 0.25s var(--ease-soft);
}

.modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.modal-close:focus-visible {
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: 0;
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-right: 34px;
}

.modal-head .form-title {
  margin: 0;
}

.modal-badge {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 6px 18px -6px rgba(37, 211, 102, 0.7);
}

@media (min-width: 1440px) {
  .modal-head {
    margin-bottom: 24px;
  }
}

@media (max-height: 700px) {
  .modal-head {
    margin-bottom: 14px;
  }

  .modal-badge {
    width: 32px;
    height: 32px;
  }

  .modal-badge svg {
    width: 17px;
    height: 17px;
  }
}

@media (max-height: 520px) {
  .modal {
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .modal-head {
    margin-bottom: 10px;
  }
}

html.kb-open .modal {
  align-items: flex-start;
  padding-top: max(8px, env(safe-area-inset-top));
  padding-bottom: 8px;
}

html.kb-open .modal-head {
  margin-bottom: 10px;
}

html.kb-open .top,
html.kb-open .hero,
html.kb-open .bottom {
  display: none;
}

html.kb-open .page {
  padding-top: max(10px, env(safe-area-inset-top));
  padding-bottom: 8px;
}

html.kb-open .center {
  display: flex;
  justify-content: flex-start;
  padding-block: 0;
}

html.kb-open .card {
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition-delay: 0s;
}

@keyframes wa-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes wa-pulse {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  45%,
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes bg-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bg-zoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1.14);
  }
}

@keyframes failsafe {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  18% {
    transform: translateX(-7px);
  }
  36% {
    transform: translateX(6px);
  }
  54% {
    transform: translateX(-4px);
  }
  72% {
    transform: translateX(2px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes error-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

  .bg-image {
    animation: none !important;
    transform: scale(1.06);
  }

  .wa-float::before,
  html.is-ready .wa-float::before {
    animation: none !important;
    opacity: 0;
  }

  html .top,
  html .hero,
  html .card,
  html .bottom {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
