:root {
  --bg: #0b0b12;
  --surface: #14141e;
  --surface-2: #1e1e2c;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f5fa;
  --muted: #a3a3b8;
  --lime: #d4ff3f;
  --coral: #ff6b81;
  --violet: #7c5cff;
  --amber: #ffb938;
  --display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --pad: 20px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Background glows ---------- */

.glow {
  position: fixed;
  z-index: -1;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}

.glow-a {
  top: -35vmax;
  right: -30vmax;
  background: var(--violet);
}

.glow-b {
  bottom: -45vmax;
  left: -35vmax;
  background: #1f6bff;
  opacity: 0.2;
  animation-delay: -8s;
}

@keyframes drift {
  to {
    transform: translate3d(-6vmax, 5vmax, 0) scale(1.12);
  }
}

/* ---------- Header ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px var(--pad) 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo-mark {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  background: var(--lime);
  border-radius: 50% 50% 50% 12%;
}

.pill {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px var(--pad) 44px;
}

.eyebrow {
  margin-bottom: 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}

h1 {
  font-size: clamp(2rem, 10.4vw, 5rem);
  font-weight: 800;
}

h1 > span {
  display: block;
}

.hl {
  display: inline-block;
  padding: 0 0.16em 0.06em;
  margin-top: 0.08em;
  color: var(--bg);
  background: var(--lime);
  border-radius: 0.18em;
  white-space: nowrap;
  transform: rotate(-2deg);
}

.lead {
  max-width: 32ch;
  margin-top: 18px;
  font-size: 1.125rem;
  color: var(--muted);
}

.lead strong {
  color: var(--text);
}

.micro {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- Store badges ---------- */

.stores {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.store {
  flex: 1 1 0;
  max-width: 190px;
  border-radius: 9px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.store img {
  display: block;
  width: 100%;
  height: auto;
}

.store:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 255, 63, 0.22);
}

.store:active {
  transform: scale(0.96);
}

.is-android .store[data-platform="android"] {
  order: -1;
}

/* ---------- Chat demo ---------- */

.demo {
  min-width: 0;
}

.chips {
  display: flex;
  gap: 8px;
  margin: 0 calc(var(--pad) * -1) 14px;
  padding: 0 var(--pad);
  overflow-x: auto;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  padding: 9px 14px;
  font: 600 0.875rem var(--body);
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.chip[aria-selected="true"] {
  color: var(--bg);
  background: var(--lime);
  border-color: var(--lime);
}

.phone {
  display: flex;
  flex-direction: column;
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(124, 92, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.chat-head strong {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.2;
}

.chat-head small {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--muted);
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  background: var(--surface-2);
  border-radius: 50%;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  animation: blink 1.8s ease-in-out infinite;
}

.dot-amber {
  background: var(--amber);
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 330px;
  padding: 16px 14px;
  overflow: hidden;
}

.msg {
  flex: none;
  max-width: 84%;
  padding: 10px 14px;
  font-size: 0.9375rem;
  line-height: 1.35;
  border-radius: 18px;
  animation: pop 0.35s var(--ease) both;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
}

.msg.ai {
  align-self: flex-start;
  background: var(--surface-2);
  border-bottom-left-radius: 6px;
}

.msg.me {
  align-self: flex-end;
  color: #fff;
  background: var(--violet);
  border-bottom-right-radius: 6px;
}

.err {
  text-decoration: underline wavy transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s;
}

.err.on {
  text-decoration-color: var(--coral);
}

.msg.fix {
  align-self: flex-start;
  max-width: 92%;
  padding: 12px 14px;
  background: rgba(212, 255, 63, 0.07);
  border: 1px solid rgba(212, 255, 63, 0.28);
  border-bottom-left-radius: 6px;
}

.fix-tag {
  margin-bottom: 6px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}

.fix-bad {
  display: block;
  color: var(--coral);
  text-decoration-thickness: 1.5px;
}

.fix-good {
  display: block;
  font-weight: 700;
  color: var(--lime);
}

.fix-good::before {
  content: "→ ";
}

.fix-tip {
  margin-top: 8px;
  padding-top: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
}

.typing {
  display: flex;
  gap: 4px;
  padding: 14px;
}

.typing i {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: bounce 1s ease-in-out infinite;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bounce {
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
  0%,
  60%,
  100% {
    transform: none;
    opacity: 0.5;
  }
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 12px;
  padding: 6px 6px 6px 16px;
  background: var(--surface-2);
  border-radius: 999px;
}

.chat-typed {
  flex: 1;
  min-width: 0;
  font-size: 0.9375rem;
  white-space: nowrap;
  overflow: hidden;
  direction: rtl;
  text-align: left;
}

.chat-typed > bdi {
  direction: ltr;
  unicode-bidi: isolate;
}

.chat-typed:empty::before {
  content: "Escribe en inglés…";
  direction: ltr;
  unicode-bidi: isolate;
  color: var(--muted);
}

.chat-send {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--bg);
  background: var(--lime);
  border-radius: 50%;
  transition: transform 0.15s var(--ease);
}

.chat-send.tap {
  transform: scale(0.82);
}

/* ---------- Marquee ---------- */

.marquee {
  padding: 14px 0;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: slide 26s linear infinite;
}

.marquee-track span {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 700;
  white-space: nowrap;
}

.marquee-track span::after {
  content: "✦";
  margin: 0 18px;
  color: var(--lime);
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Content blocks ---------- */

.block {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px var(--pad) 0;
}

h2 {
  font-size: clamp(2rem, 9vw, 3.4rem);
  font-weight: 800;
}

.neq {
  color: var(--coral);
}

.steps,
.versus {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.step,
.vs {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  font: 800 1.125rem var(--display);
  color: var(--bg);
  background: var(--lime);
  border-radius: 12px;
}

h3 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
}

.vs ul {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.vs li {
  display: flex;
  gap: 10px;
}

.vs li::before {
  flex: none;
  font-weight: 800;
}

.vs-old {
  color: var(--muted);
}

.vs-old li::before {
  content: "✕";
  color: var(--coral);
}

.vs-new {
  background: linear-gradient(160deg, rgba(212, 255, 63, 0.12), rgba(212, 255, 63, 0.02) 60%), var(--surface);
  border-color: rgba(212, 255, 63, 0.3);
}

.vs-new li::before {
  content: "✓";
  color: var(--lime);
}

/* ---------- Final CTA ---------- */

.final {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px var(--pad) 56px;
  text-align: center;
}

.final p {
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--muted);
}

.final .stores {
  justify-content: center;
}

.foot {
  padding: 24px var(--pad) calc(96px + env(safe-area-inset-bottom));
  font-size: 0.8125rem;
  text-align: center;
  color: var(--muted);
}

/* ---------- Sticky CTA ---------- */

.sticky {
  position: fixed;
  inset: auto 0 0;
  z-index: 10;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 11, 18, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0.4s;
}

.sticky.show {
  transform: none;
  visibility: visible;
}

.sticky .stores {
  justify-content: center;
  margin: 0;
}

.sticky .store {
  max-width: 160px;
}

/* ---------- Motion ---------- */

.js .rise {
  animation: rise 0.7s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 70ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.steps .reveal:nth-child(2),
.versus .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.steps .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

/* ---------- Download page ---------- */

.page-dl .foot {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.dl {
  max-width: 520px;
  margin: 0 auto;
  padding: 30px var(--pad) 24px;
}

.dl h1 {
  font-size: clamp(2.4rem, 11.5vw, 3.8rem);
}

.dl .lead {
  max-width: none;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(255, 185, 56, 0.1);
  border: 1px solid rgba(255, 185, 56, 0.3);
  border-radius: 999px;
}

.gift {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 16px;
  background: linear-gradient(160deg, rgba(212, 255, 63, 0.14), rgba(212, 255, 63, 0.03) 70%), var(--surface);
  border: 1px solid rgba(212, 255, 63, 0.32);
  border-radius: 20px;
}

.gift-icon {
  font-size: 2rem;
  line-height: 1;
  animation: wiggle 2.4s ease-in-out infinite;
}

@keyframes wiggle {
  0%,
  70%,
  100% {
    transform: none;
  }
  78% {
    transform: rotate(-12deg) scale(1.1);
  }
  86% {
    transform: rotate(10deg) scale(1.1);
  }
  94% {
    transform: rotate(-4deg);
  }
}

.gift strong {
  display: block;
  font-family: var(--display);
  font-size: 1.1875rem;
  line-height: 1.2;
}

.gift small {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.form input {
  width: 100%;
  padding: 16px 18px;
  font: 500 1rem var(--body);
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form input::placeholder {
  color: #6f6f85;
}

.form input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(212, 255, 63, 0.14);
}

.form input[aria-invalid="true"] {
  border-color: var(--coral);
}

.btn {
  display: block;
  width: 100%;
  padding: 16px 20px;
  font: 800 1.0625rem var(--display);
  text-align: center;
  color: var(--bg);
  background: var(--lime);
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s, opacity 0.2s;
}

.btn:hover {
  box-shadow: 0 10px 34px rgba(212, 255, 63, 0.3);
}

.btn:active {
  transform: scale(0.97);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.btn-ghost {
  margin-top: 26px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  box-shadow: none;
}

.error {
  font-size: 0.875rem;
  color: var(--coral);
}

.promises {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  list-style: none;
}

.promises li {
  display: flex;
  gap: 10px;
}

.promises li::before {
  content: "✓";
  font-weight: 800;
  color: var(--lime);
}

.dl-done {
  position: relative;
  padding-top: 24px;
  text-align: center;
}

.dl-done .lead {
  margin-inline: auto;
  overflow-wrap: anywhere;
}

.done-icon {
  display: block;
  margin-bottom: 14px;
  font-size: 3.5rem;
  line-height: 1;
  animation: pop 0.5s var(--ease) both;
}

.confetti {
  position: absolute;
  top: 60px;
  left: 50%;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: burst 1.3s var(--ease) forwards;
}

@keyframes burst {
  0% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) rotate(var(--r));
  }
}

[hidden] {
  display: none !important;
}

/* ---------- Larger screens ---------- */

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .versus {
    grid-template-columns: repeat(2, 1fr);
  }

  .block {
    padding-top: 96px;
  }
}

@media (min-width: 960px) {
  :root {
    --pad: 32px;
  }

  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
    padding-block: 64px 88px;
  }

  h1 {
    font-size: clamp(2.9rem, 4.6vw, 4rem);
  }

  .lead {
    font-size: 1.25rem;
  }

  .chips {
    flex-wrap: wrap;
    justify-content: center;
    margin-inline: 0;
    padding: 0;
  }

  .chat-body {
    height: 400px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
