/*
 * Atiendo en la web: «Muestra, no cuentes», el mismo diseño de la app. Blanco, negro y un
 * amarillo que solo es fondo bajo texto negro. Reglas de 2 px en vez de sombras; frases y
 * números grandes en vez de adornos. Todo movimiento respeta «reducir movimiento».
 */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/geist-latin-wght-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #111111;
  --muted: #4a4a47;
  --surface: #f4f4f1;
  --mark: #ffdb01;
  --rule: 2px solid var(--ink);
  --radius: 20px;
  --gutter: 16px;
  --font: 'Geist', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  overflow-wrap: break-word;
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

svg {
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 10;
  padding: 10px 14px;
  border: var(--rule);
  border-radius: 12px;
  background: var(--mark);
  font-weight: 700;
}

.skip:focus {
  top: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: var(--rule);
  background: var(--bg);
}

.header-row {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.site-nav {
  display: none;
}

@media (min-width: 900px) {
  .site-nav {
    display: block;
  }

  .site-nav ul {
    display: flex;
    gap: 28px;
  }

  .site-nav a {
    font-weight: 500;
    text-decoration: none;
  }

  .site-nav a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: var(--rule);
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--ink);
  color: #ffffff;
}

.btn-yellow {
  background: var(--mark);
  color: var(--ink);
}

.btn-light {
  background: var(--bg);
  color: var(--ink);
}

.btn-sm {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.9375rem;
}

/* Arrow on buttons that open the demo in a new tab. */
.icon-out {
  width: 0.85em;
  height: 0.85em;
  flex: none;
  margin-left: 0.45em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 479px) {
  .actions .btn {
    flex: 1 1 100%;
  }
}

/* Hero */
.hero {
  padding-top: 40px;
}

.hero-grid {
  display: grid;
  align-items: start;
  gap: 24px;
}

.chat-hero {
  margin-top: 16px;
}

@media (min-width: 960px) {
  .hero {
    padding-top: 72px;
  }

  .hero-grid {
    grid-template-areas:
      'title title'
      'copy chat';
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 32px 64px;
  }

  .hero-title {
    grid-area: title;
  }

  .hero-copy {
    grid-area: copy;
  }

  .chat-hero {
    grid-area: chat;
    margin-top: 0;
  }
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin-top: 14px;
  font-size: clamp(2.5rem, 7vw + 0.75rem, 5.5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

/* Same highlighter band as the app: yellow under the lower part of the letters. */
.mark {
  padding-inline: 0.06em;
  background: linear-gradient(transparent 58%, var(--mark) 58%) no-repeat 0 0 / 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lead {
  max-width: 36em;
  color: var(--muted);
  font-size: 1.1875rem;
}

.trust {
  margin-top: 18px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.brand-mark text {
  font-family: var(--font);
}

/* Chat (hero and demo) */
.chat {
  width: 100%;
  max-width: 420px;
  justify-self: center;
  overflow: hidden;
  border: var(--rule);
  border-radius: var(--radius);
  background: var(--bg);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: var(--rule);
  background: var(--mark);
}

.chat-head p {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.chat-head span {
  font-size: 0.875rem;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  flex: none;
}

.bubbles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.bubble {
  max-width: 85%;
  padding: 10px 14px;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.bubble-client {
  align-self: flex-end;
  border-radius: 16px 16px 4px 16px;
  background: var(--surface);
}

.bubble-bot {
  align-self: flex-start;
  border-radius: 16px 16px 16px 4px;
  background: var(--ink);
  color: #ffffff;
}

.chat figcaption {
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.typing {
  display: inline-flex;
  gap: 4px;
}

.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  animation: typing 1s infinite ease-in-out;
}

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

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

@keyframes typing {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

/* Stats */
.stats {
  display: grid;
  margin-top: 56px;
  border-top: var(--rule);
}

.stats li {
  padding: 18px 0 20px;
  border-bottom: var(--rule);
}

@media (min-width: 720px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: var(--rule);
  }

  .stats li {
    padding: 20px 24px 24px;
    border-bottom: 0;
  }

  .stats li:first-child {
    padding-left: 0;
  }

  .stats li + li {
    border-left: var(--rule);
  }
}

.stat-value {
  font-size: clamp(3rem, 6vw + 1rem, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

/* The unit is smaller so «módulos» fits a third of the row without breaking. */
.stat-unit {
  font-size: 0.5em;
  letter-spacing: -0.02em;
}

.stat-label {
  margin-top: 6px;
  color: var(--muted);
}

/* Sections */
.section {
  position: relative;
  padding-block: 64px;
  scroll-margin-top: 66px;
}

.section::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--ink);
  content: '';
  transform-origin: left center;
}

.hero + .section::before {
  display: none;
}

@media (min-width: 960px) {
  .section {
    padding-block: 104px;
  }
}

.section-head {
  display: grid;
  max-width: 46rem;
  gap: 14px;
  margin-bottom: 40px;
}

h2 {
  font-size: clamp(2.125rem, 4.5vw + 1rem, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-lead {
  color: var(--muted);
  font-size: 1.1875rem;
}

.note {
  color: var(--muted);
  font-size: 0.9375rem;
}

.grid {
  display: grid;
  gap: 0 32px;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.rules li {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px 0 28px;
  border-top: var(--rule);
}

.rules p {
  color: var(--muted);
}

/* Steps */
.steps {
  display: grid;
  border-top: var(--rule);
}

.steps li {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px 0 32px;
  border-bottom: var(--rule);
}

.steps li p:last-child {
  color: var(--muted);
}

.step-num {
  font-size: 5rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: var(--rule);
  }

  .steps li {
    padding: 28px 28px 36px;
    border-bottom: 0;
  }

  .steps li:first-child {
    padding-left: 0;
  }

  .steps li + li {
    border-left: var(--rule);
  }
}

/* Demo */
.demo-grid {
  display: grid;
  align-items: start;
  gap: 8px;
}

@media (min-width: 960px) {
  .demo-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
}

.chat-demo {
  justify-self: stretch;
  max-width: 520px;
}

.chat-log {
  height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px 16px;
  border-top: var(--rule);
}

.chips[hidden],
.js-only {
  display: none;
}

.js .js-only {
  display: inline;
}

.chips button {
  min-height: 44px;
  padding: 8px 14px;
  border: var(--rule);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.chips button:hover:not(:disabled) {
  background: var(--mark);
}

.chips button:disabled {
  border-color: #b5b5b0;
  color: #6b6b67;
  cursor: default;
}

/* Modules */
.cards {
  gap: 16px;
}

.card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  border: var(--rule);
  border-radius: var(--radius);
}

.card p {
  color: var(--muted);
}

.card .sample {
  justify-self: start;
  margin-top: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.card-mark {
  background: var(--mark);
}

.card-mark p {
  color: var(--ink);
}

/* Privacy */
.section-yellow {
  background: var(--mark);
}

.section-yellow .section-lead,
.section-yellow .rules p {
  color: var(--ink);
}

.footnote {
  margin-top: 32px;
  font-weight: 650;
}

/* FAQ */
.faq-grid {
  display: grid;
  gap: 8px;
}

@media (min-width: 960px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 64px;
  }
}

.faq {
  border-top: var(--rule);
}

.faq details {
  border-bottom: var(--rule);
}

.faq summary {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  flex: none;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
  content: '+';
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  max-width: 40em;
  padding-bottom: 20px;
  color: var(--muted);
}

/* Final call to action */
.section-cta {
  background: var(--surface);
}

.cta-grid {
  display: grid;
  align-items: center;
  gap: 32px;
}

@media (min-width: 900px) {
  .cta-grid {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
}

.cta-grid .section-lead {
  margin-top: 16px;
}

.price {
  display: inline-block;
  margin-top: 24px;
  padding: 8px 14px;
  border: var(--rule);
  border-radius: 12px;
  background: var(--bg);
  font-weight: 700;
}

.cta-grid .note {
  margin-top: 16px;
}

.robot {
  width: 160px;
  height: 160px;
  justify-self: center;
}

@media (min-width: 900px) {
  .robot {
    width: 220px;
    height: 220px;
  }
}

.robot-eyes {
  transform-box: fill-box;
  transform-origin: center;
}

/* Footer */
.site-footer {
  padding-block: 40px;
  border-top: var(--rule);
}

.footer-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer-brand {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-footer a {
  display: inline-block;
  padding-block: 10px;
  font-weight: 500;
}

.footer-small {
  color: var(--muted);
  font-size: 0.875rem;
}

@media (min-width: 900px) {
  .footer-small {
    grid-column: 1 / -1;
  }
}

/* Motion: only when the visitor has not asked for less of it. */
@media (prefers-reduced-motion: no-preference) {
  .mark {
    animation: paint 900ms var(--ease-out) 250ms both;
  }

  .robot-eyes {
    animation: blink 4s infinite;
  }

  @supports (animation-timeline: view()) {
    .section::before {
      animation: draw linear both;
      animation-range: entry 0% entry 80%;
      animation-timeline: view();
    }

    .reveal {
      animation: rise linear both;
      animation-range: entry 0% entry 60%;
      animation-timeline: view();
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .typing i {
    animation: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}

@keyframes paint {
  from {
    background-size: 0% 100%;
  }

  to {
    background-size: 100% 100%;
  }
}

@keyframes blink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }

  95% {
    transform: scaleY(0.1);
  }
}

@keyframes draw {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

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

  to {
    opacity: 1;
    transform: none;
  }
}
