/* Estética de guidofaranna.com: blanco y negro, el negro es el único acento.
   Sin radios, reglas de 1px, IBM Plex, etiquetas mono en mayúsculas. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #0a0a0a;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --surface-2: #f6f6f6;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --nav-h: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: clip;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Textura de barras, igual que guidofaranna.com. Es estática: no cuesta nada al scrollear. */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("/pattern.svg");
  background-size: 100% 800px;
  opacity: 0.015;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

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

img {
  display: block;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
}

section {
  scroll-margin-top: var(--nav-h);
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 40rem) {
  .wrap {
    padding-inline: 2rem;
  }
}

.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.rule {
  border-bottom: 1px solid var(--line);
}

mark {
  padding: 0 0.14em;
  background: var(--ink);
  color: var(--bg);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

code {
  padding: 0.1em 0.35em;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font: 500 0.85em var(--mono);
  color: var(--ink);
}

/* ---------- Botones: rectangulares, se invierten en hover ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 11px;
}

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

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

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

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

/* Sobre fondo negro */
.btn-invert {
  border-color: var(--bg);
  background: var(--bg);
  color: var(--ink);
}

.btn-invert:hover {
  background: transparent;
  color: var(--bg);
}

.btn-outline-invert {
  border-color: var(--bg);
  background: transparent;
  color: var(--bg);
}

.btn-outline-invert:hover {
  background: var(--bg);
  color: var(--ink);
}

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Nav: fija, sin cambios al scrollear ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  padding: 8px 0;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--ink);
}

/* ---------- Idioma ---------- */

/* Mientras i18n.js traduce, no mostramos el español de base: evita el destello. */
.i18n-pending body {
  visibility: hidden;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-select {
  height: 36px;
  padding: 0 26px 0 10px;
  border: 1px solid var(--line);
  background: var(--bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%236b6b6b'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
}

.lang-select:hover,
.lang-select:focus-visible {
  border-color: var(--ink);
  outline: none;
}

.mock-card em {
  font-style: normal;
}

.terms-note:empty {
  display: none;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 48px;
  min-height: calc(100svh - var(--nav-h));
  padding-block: 32px;
}

.hero h1 {
  margin: 24px 0 0 -0.04em;
  font-size: clamp(44px, 6.2vw, 84px);
  /* Aire para que el <mark> no tape las letras que bajan de la línea de arriba. */
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 34rem;
  margin: 28px 0 36px;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.45;
  color: var(--muted);
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--ink);
}

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 24px 0;
}

/* El teléfono del hero se adapta al alto de la pantalla: todo el hero entra en el primer viewport. */
.hero-visual .hero-phone {
  height: clamp(520px, calc(100svh - var(--nav-h) - 120px), 660px);
}

.float-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 6px;
  min-width: 200px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  background: var(--bg);
  font-size: 14px;
  animation: float 6s ease-in-out infinite;
}

.float-card small {
  font-size: 12px;
  color: var(--muted);
}

/* Arriba de la ventana y sobre el composer: nunca tapan el nombre del grupo ni los mensajes. */
/* Sobre los costados del teléfono (barra de estado y composer): no suman altura ni tapan mensajes. */
.fc-1 {
  top: 6px;
  right: -40px;
}

.fc-2 {
  bottom: 10px;
  left: -40px;
  animation-delay: -3s;
}

@keyframes float {
  50% {
    transform: translateY(-6px);
  }
}

/* ---------- iPhone ----------
   La única excepción a "sin radios": el teléfono tiene que parecer un teléfono.
   Los radios van con !important para ganarle al reset global. */

.phone {
  position: relative;
  width: 320px;
  max-width: 100%;
  height: 660px;
  padding: 11px;
  border-radius: 56px !important;
  background: #0a0a0a;
  box-shadow:
    0 0 0 1.5px #3a3a3a,
    0 0 0 4px #0a0a0a,
    0 40px 80px -30px rgb(0 0 0 / 0.45);
}

/* Botones laterales */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 3px;
  background: #2b2b2b;
}

.phone::before {
  top: 180px;
  right: -7px;
  height: 84px;
  border-radius: 0 3px 3px 0 !important;
}

.phone::after {
  top: 150px;
  left: -7px;
  height: 52px;
  border-radius: 3px 0 0 3px !important;
  box-shadow: 0 66px 0 #2b2b2b;
}

.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 45px !important;
  background: var(--bg);
}

.status-bar {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 4px 26px 0 34px;
}

.clock {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 104px;
  height: 30px;
  border-radius: 20px !important;
  background: #0a0a0a;
  translate: -50% 0;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-icons svg {
  display: block;
  fill: currentColor;
}

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

.back {
  font-size: 34px;
  font-weight: 300;
  line-height: 0.8;
}

.avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  background: var(--ink);
  color: var(--bg);
  font: 500 12px var(--mono);
  letter-spacing: 0.04em;
}

.chat-title {
  display: grid;
  min-width: 0;
}

.chat-title strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.chat-title small {
  overflow: hidden;
  font-size: 12px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 12px;
  overflow: hidden;
}

.composer {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 4px;
}

.composer span {
  flex: 1;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 20px !important;
  font-size: 14px;
  color: var(--muted);
}

.composer i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50% !important;
  background: var(--ink);
  color: var(--bg);
  font-size: 17px;
  font-style: normal;
  font-weight: 600;
}

.home-bar {
  flex-shrink: 0;
  width: 124px;
  height: 5px;
  margin: 10px auto 9px;
  border-radius: 3px !important;
  background: var(--ink);
}

/* Burbujas estilo iMessage, en blanco y negro */
.msg {
  flex-shrink: 0;
  max-width: 82%;
  padding: 7px 12px;
  border-radius: 18px !important;
  background: #efefef;
  font-size: 14px;
  line-height: 1.38;
  white-space: pre-line;
  overflow-wrap: anywhere;
  animation: pop 0.3s ease-out both;
}

.msg.them,
.msg.bot {
  align-self: flex-start;
  border-bottom-left-radius: 6px !important;
}

.msg.me {
  align-self: flex-end;
  border-bottom-right-radius: 6px !important;
  background: var(--ink);
  color: var(--bg);
}

.msg.bot {
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.who {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.msg.bot .who {
  color: var(--ink);
}

.at {
  font-weight: 600;
}

.time {
  float: right;
  margin: 6px 0 -3px 10px;
  font-size: 10.5px;
  color: var(--muted);
}

.msg.me .time {
  color: rgb(255 255 255 / 0.55);
}

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

.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50% !important;
  background: var(--muted);
  animation: blink 1s infinite;
}

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

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

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

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

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

.marquee {
  overflow: hidden;
  padding: 20px 0;
}

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

.marquee-track span {
  padding-right: 28px;
  font: 400 13px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track span::after {
  content: "/";
  margin-left: 28px;
  color: var(--muted);
}

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

/* ---------- Encabezado de sección numerada ---------- */

.section-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.num {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
}

/* ---------- 01 Story ---------- */

.story-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}

.stage {
  position: sticky;
  top: calc(var(--nav-h) + 4vh);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  height: calc(92vh - var(--nav-h));
  min-height: 620px;
}

.story-window {
  transition:
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.7s;
}

.stage.show-web .story-window {
  opacity: 0.3;
  transform: translateX(-14%) scale(0.9);
}

.browser {
  width: 100%;
  border: 1px solid var(--ink);
  background: var(--bg);
}

.stage .browser {
  position: absolute;
  z-index: 2;
  right: 0;
  width: min(520px, 100%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);
  transition:
    opacity 0.6s,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stage.show-web .browser {
  opacity: 1;
  transform: none;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ink);
}

.browser-bar i {
  width: 10px;
  height: 10px;
  border: 1px solid var(--ink);
}

.url {
  flex: 1;
  margin-left: 10px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  font: 12px var(--mono);
  color: var(--muted);
}

.board-mock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mock-col {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 210px;
  padding: 12px;
  border-right: 1px solid var(--line);
}

.mock-col:last-child {
  border-right: 0;
}

.mock-col h4 {
  margin: 2px 0 6px;
  color: var(--muted);
}

.mock-col h4 b {
  margin-left: 4px;
  font-weight: 400;
  color: var(--ink);
}

.mock-card {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 13px;
  line-height: 1.3;
}

.mock-card span,
.mock-card small {
  color: var(--muted);
}

.mock-card small {
  font-size: 11px;
}

.mock-card.done {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.mock-card.done span,
.mock-card.done small {
  color: rgb(255 255 255 / 0.6);
}

.show-web .mock-card,
.mini-board .mock-card {
  animation: pop 0.4s both;
}

.show-web .mock-col:nth-child(2) .mock-card {
  animation-delay: 0.12s;
}

.show-web .mock-col:nth-child(3) .mock-card {
  animation-delay: 0.24s;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80vh;
  opacity: 0.25;
  transition: opacity 0.4s;
}

.step.active {
  opacity: 1;
}

.cmd {
  margin: 14px 0 22px -0.04em;
  font: 500 clamp(56px, 7vw, 96px) / 1 var(--mono);
  letter-spacing: -0.04em;
}

.step h3 {
  margin-bottom: 12px;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.step p {
  max-width: 28rem;
  margin: 0;
  font-size: 18px;
  color: var(--muted);
}

.mini-chat {
  display: none;
}

/* ---------- 02 Features: grilla con reglas ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: 56px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background-color 0.15s;
}

.feature:hover {
  background: var(--surface-2);
}

.feature h3 {
  margin: 20px 0 10px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- 03 Precios ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block: 56px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 40px 36px;
  border: 1px solid var(--ink);
  background: var(--bg);
}

.plan + .plan {
  border-left: 0;
}

/* La única inversión dominante de la sección. */
.plan-inverted {
  background: var(--ink);
  color: var(--bg);
}

.plan-inverted .plan-desc {
  color: rgb(255 255 255 / 0.65);
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin: 24px 0 0;
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.plan-desc {
  margin: 20px 0 28px;
  color: var(--muted);
}

.plan ul {
  display: grid;
  gap: 12px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.plan li {
  display: grid;
  grid-template-columns: 24px 1fr;
}

.plan li::before {
  content: "—";
  font-family: var(--mono);
}

.plan .btn {
  margin-top: auto;
}

/* ---------- CTA final: el cierre en negro ---------- */

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

.final-grid {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: 32px;
  padding-block: 112px;
}

.final-grid > .label {
  padding-top: 18px;
  color: rgb(255 255 255 / 0.6);
}

.final h2 {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.final h2 + p {
  max-width: 34rem;
  margin: 24px 0 40px;
  font-size: 19px;
  color: rgb(255 255 255 / 0.65);
}

.final code {
  border-color: rgb(255 255 255 / 0.2);
  background: rgb(255 255 255 / 0.08);
  color: var(--bg);
}

/* ---------- Footer ---------- */

.footer-grid {
  display: grid;
  grid-template-columns: 6fr 3fr 3fr;
  gap: 32px;
  padding-block: 64px;
}

.footer-name {
  margin: 24px 0 4px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-grid p {
  margin-block-end: 0;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-col p {
  margin: 0 0 6px;
}

.footer-col a {
  text-underline-offset: 4px;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-strip {
  background: var(--ink);
  color: rgb(255 255 255 / 0.7);
}

.footer-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 16px;
}

.footer-strip p {
  margin: 0;
}

/* ---------- Dialog "agregar a grupo" ---------- */

.sheet {
  width: min(480px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
}

.sheet::backdrop {
  background: rgb(10 10 10 / 0.55);
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--bg);
}

.sheet-close {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--bg);
  cursor: pointer;
}

.sheet-body {
  padding: 28px 24px 24px;
}

.sheet h3 {
  margin-bottom: 22px;
  font-size: 26px;
  letter-spacing: -0.025em;
}

.howto {
  display: grid;
  gap: 16px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.howto li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  color: var(--muted);
  counter-increment: step;
}

.howto li strong {
  color: var(--ink);
  font-weight: 600;
}

.howto li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--ink);
  font: 500 12px var(--mono);
  color: var(--ink);
}

.fineprint {
  margin: 22px 0 0;
}

/* ---------- Términos ---------- */

.legal-hero {
  padding-block: 80px 64px;
}

.legal-hero h1 {
  margin: 20px 0 0 -0.04em;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.legal-hero .lead {
  max-width: 44rem;
  margin: 24px 0 28px;
  line-height: 1.5;
}

.legal-item {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: 32px;
  padding-block: 48px;
  border-bottom: 1px solid var(--line);
}

.legal-item:last-child {
  border-bottom: 0;
}

.legal-item > .label {
  padding-top: 6px;
}

.legal-body {
  max-width: 44rem;
  font-size: 18px;
  line-height: 1.65;
}

.legal-body p {
  margin: 0 0 16px;
}

.legal-body p:last-child {
  margin-bottom: 0;
}

.legal-body ul {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.legal-body ul li {
  display: grid;
  grid-template-columns: 24px 1fr;
}

.legal-body ul li::before {
  content: "—";
  font-family: var(--mono);
}

.legal-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.legal-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  counter-increment: item;
}

.legal-list li::before {
  content: counter(item);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border: 1px solid var(--ink);
  font: 500 12px var(--mono);
}

.legal-body a,
.plan-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Va antes del botón: así los botones de los dos planes quedan a la misma altura. */
.plan-note {
  margin: -12px 0 28px;
  color: rgb(255 255 255 / 0.6);
}

/* ---------- Aparición al scrollear ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s,
    transform 0.6s ease-out;
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hero-grid {
    /* minmax(0, …): sin esto la columna toma el ancho de la ventana de chat y desborda. */
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-block: 48px 72px;
  }

  .story-body {
    display: block;
  }

  .stage {
    display: none;
  }

  .step {
    min-height: 0;
    padding: 48px 0;
    border-bottom: 1px solid var(--line);
    opacity: 1;
  }

  .step:last-child {
    border-bottom: 0;
  }

  /* Un pedazo de pantalla de iPhone: mismo radio que la pantalla del teléfono. */
  .mini-chat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 28px;
    padding: 16px 12px;
    border: 1px solid var(--line);
    border-radius: 28px !important;
    background: var(--bg);
  }

  .mini-board {
    margin-top: 6px;
  }

  .mini-board .mock-col {
    min-height: 0;
    padding: 8px;
  }

  .mini-board .mock-card {
    padding: 7px;
    font-size: 11.5px;
  }

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

  .plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan + .plan {
    border-top: 0;
    border-left: 1px solid var(--ink);
  }

  .final-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 80px;
  }

  .final-grid > .label {
    padding-top: 0;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-block: 36px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .hero .ctas .btn,
  .final .ctas .btn {
    width: 100%;
  }

  .phone,
  .hero-visual .hero-phone {
    width: 300px;
    height: 600px;
  }

  .float-card {
    min-width: 0;
    padding: 10px 12px;
    font-size: 13px;
  }

  .fc-1 {
    top: 4px;
    right: -6px;
  }

  .fc-2 {
    bottom: 4px;
    left: -6px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .plan {
    padding: 32px 22px;
  }
}

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