/* AgentPOS hub, pricing and blog: the components the description page never needed.
   Loaded after assets/style.css, which still owns the design system: bands, colours,
   typography, buttons, cards and the reduced-motion rules. Nothing here animates. */

/* ==========================================================================
   Hub: the two big doors plus the discreet developer door.
   Each door carries the accent of the surface it leads to (docs/DISENO.md).
   ========================================================================== */

/* The hub must show a door on the first screen, so its hero stays compact. */
.hero .flow {
  margin-top: 1.5rem;
}
.hero .flow svg {
  max-width: 38rem;
}

.doors-main {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 860px) {
  .doors-main {
    grid-template-columns: 1fr;
  }
}

.door-big {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 6px solid var(--tone-edge);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.door-big h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  letter-spacing: -0.02em;
}
.door-big > p {
  margin: 0;
  color: var(--text);
}

.door-where {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--tone-bright);
  color: #0b1020;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin: 0;
}

.gains {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 0.97rem;
}
.gains li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.35rem;
}
.gains li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 2px;
  background: var(--tone-edge, var(--accent));
}

.paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: auto;
}
.path {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--chip);
  padding: 1rem 1.1rem;
}
.path h4 {
  margin: 0.35rem 0;
  font-size: 1.02rem;
  color: var(--heading);
}
.path p {
  margin: 0 0 0.85rem;
  color: var(--text);
  font-size: 0.93rem;
}
/* Un producto, dos modos: las dos cajas viven dentro de la tarjeta del instalador y se
   apilan cuando no caben lado a lado. */
.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem;
}
.mode {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 0.8rem 0.85rem;
  display: flex;
  flex-direction: column;
}
.mode h5 {
  margin: 0.3rem 0 0.35rem;
  font-size: 0.98rem;
  color: var(--heading);
}
.mode p {
  margin: 0 0 0.8rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.mode .btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.55rem 0.7rem;
}

.path .btn {
  font-size: 0.95rem;
  padding: 0.6rem 1.05rem;
}
.path-price {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 999px;
  padding: 0.16rem 0.6rem;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--card);
}
.path-price.is-free {
  color: var(--money-ink);
  border-color: rgba(10, 107, 74, 0.35);
}
.band-dark .path-price.is-free {
  color: var(--money);
  border-color: rgba(38, 208, 160, 0.4);
}

.door-follow {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.door-follow a {
  color: var(--tone-text);
  font-weight: 600;
}

/* The third door: smaller, brand blue, never competing with the other two. */
.door-dev {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.5rem;
  border: 1px solid var(--line);
  border-left: 6px solid var(--brand);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.1rem 1.3rem;
}
.door-dev h3 {
  margin: 0;
  font-size: 1.05rem;
}
.door-dev p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  flex: 1 1 14rem;
}
.dev-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.rule-note {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0 0;
  max-width: 46rem;
}
.rule-note p {
  margin: 0;
  color: var(--heading);
  font-size: 1.02rem;
}
.rule-note p + p {
  margin-top: 0.6rem;
  color: var(--text);
  font-size: 0.95rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
table.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
  min-width: 34rem;
}
.price-table caption {
  text-align: left;
  padding: 1rem 1.1rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.price-table th,
.price-table td {
  text-align: left;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.price-table thead th {
  color: var(--heading);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.price-table tbody th {
  font-weight: 600;
  color: var(--heading);
}
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: 0;
}
.price-table .amount {
  font-weight: 700;
  color: var(--heading);
  white-space: nowrap;
}
.price-table .is-free {
  color: var(--money-ink);
  font-weight: 700;
}
/* Cada fila tiene el mismo ritmo: una linea con el precio y una explicacion debajo. */
.price-table .detail {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--muted);
  max-width: 46ch;
}
.price-table .is-free .detail {
  color: var(--muted);
}
/* Los encabezados de grupo se leen como separadores, no como una fila mas. */
.price-table tr.group th {
  background: var(--chip);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.price-table .c-item {
  width: 30%;
}
.price-table .c-price {
  width: 54%;
}
.price-table .c-lic {
  width: 16%;
}
.price-table tbody th .soon {
  display: inline-block;
  margin-left: 0;
  margin-top: 0.3rem;
  font-weight: 600;
}
.price-table tbody th {
  line-height: 1.35;
}
/* En pantalla angosta la tabla se apila: tres columnas de texto no caben y arrastrarla de
   lado es peor que leerla de corrido. */
@media (max-width: 640px) {
  .table-wrap {
    overflow-x: visible;
  }
  table.price-table {
    min-width: 0;
  }
  /* The column widths of the wide layout would otherwise win over the stacked cells. */
  .price-table .c-item,
  .price-table .c-price,
  .price-table .c-lic {
    width: auto;
  }
  .price-table thead {
    display: none;
  }
  .price-table tbody,
  .price-table tr,
  .price-table th,
  .price-table td {
    display: block;
    width: auto;
  }
  .price-table tbody tr {
    border-bottom: 1px solid var(--line);
    padding: 0.35rem 0 0.7rem;
  }
  .price-table tbody tr.group {
    padding: 0;
    border-bottom: 0;
  }
  .price-table th,
  .price-table td {
    border-bottom: 0;
    padding: 0.15rem 1.1rem;
  }
  .price-table tbody th[scope="row"] {
    padding-top: 0.6rem;
    font-size: 1.02rem;
  }
  .price-table td[data-label] {
    margin-top: 0.45rem;
    font-size: 0.8rem;
    color: var(--muted);
  }
  .price-table td[data-label]::before {
    content: attr(data-label) ": ";
  }
  .price-table .detail {
    max-width: none;
  }
}
.band-dark .price-table .is-free {
  color: var(--money);
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 860px) {
  .services {
    grid-template-columns: 1fr;
  }
}
.service .amount {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--tone-text, var(--heading));
  letter-spacing: -0.02em;
  margin: 0.2rem 0 0.5rem;
}
.service .term {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
/* La promesa va arriba, antes del alcance: es lo que evita que nos malinterpreten. */
.service .promise {
  font-weight: 600;
  color: var(--heading);
  border-left: 3px solid var(--money-ink);
  padding-left: 0.7rem;
  margin: 0 0 0.9rem;
}
.service .note-fine {
  font-size: 0.85rem;
  color: var(--muted);
}
/* Lo que no se cobra: separado del alcance, con el verde del dinero. */
.service .never-charged {
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}
.service .never-charged strong {
  color: var(--money-ink);
}
.service .free-list li::marker {
  color: var(--money-ink);
}
/* El precio de lanzamiento vive dentro del plazo: mismo tamano, con enfasis de tono. */
.service .term .amount {
  display: inline;
  font-size: inherit;
  letter-spacing: normal;
  margin: 0;
  color: var(--tone-text, var(--heading));
}

/* ==========================================================================
   Forms shared by the waitlist and the help request
   ========================================================================== */

.form-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  max-width: 40rem;
}
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--heading);
  padding: 0.65rem 0.8rem;
  font-size: 1rem;
  font-family: inherit;
}
.field textarea {
  min-height: 7rem;
  resize: vertical;
}
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
.field .hint {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.3rem 0 0;
}
fieldset.field {
  border: 0;
  padding: 0;
  margin: 0 0 0.9rem;
}
fieldset.field legend {
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.choice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip);
  color: var(--heading);
  font-size: 0.95rem;
}
.choice input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
}
.band-light .form-status.ok {
  color: var(--money-ink);
}
.band-light .form-status.err {
  color: var(--brand-ink);
}

/* ==========================================================================
   Blog
   ========================================================================== */

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.post-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.post-item h2,
.post-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.post-item h2 a,
.post-item h3 a {
  color: var(--heading);
}
.post-item h2 a:hover,
.post-item h3 a:hover {
  color: var(--accent);
  text-decoration: none;
}
.post-item p {
  margin: 0.4rem 0 0;
  color: var(--text);
  font-size: 0.97rem;
}
.post-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.post-meta .sep {
  opacity: 0.6;
  padding: 0 0.4rem;
}

.post-head h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0.4rem 0 0.7rem;
  max-width: 26ch;
}
.post-head .summary {
  color: var(--heading);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  max-width: 44rem;
  margin: 0;
}

.prose {
  max-width: 44rem;
}
.prose h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.6rem;
  letter-spacing: -0.01em;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p,
.prose li {
  color: var(--text);
  font-size: 1.02rem;
}
.prose p {
  margin: 0 0 1rem;
}
.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}
.prose li {
  margin-bottom: 0.4rem;
}
.prose .mono {
  word-break: break-all;
}
.prose .callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: var(--card);
  padding: 1rem 1.2rem;
  margin: 0 0 1.2rem;
}
.prose .callout p:last-child {
  margin-bottom: 0;
}

.post-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-weight: 600;
}

/* La puerta de las agencias: una linea, no una cuarta puerta. */
.partner-note {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.partner-note a {
  color: var(--tone-text, var(--accent));
  font-weight: 600;
}

/* La lista de lo que aun no se puede abrir: se ve como los enlaces, pero no lo es. */
.dev-links.soon-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  color: var(--muted);
}
.dev-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.9rem;
  max-width: 54ch;
}

/* A paid service that does not open yet. Saying it in the row itself beats a note at the
   bottom that nobody reads before writing to us. */
.soon {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  opacity: 0.85;
}


/* ==========================================================================
   Signup: the page the QR lands on. One screen, one form, nothing to scroll past.
   ========================================================================== */
.signup {
  min-height: calc(100vh - 3.75rem);
  display: flex;
  align-items: center;
  padding: 3rem 0;
}
.signup-inner {
  max-width: 34rem;
}
.signup h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}
.signup .section-lede {
  margin-bottom: 1.5rem;
}
.signup .waitlist-box {
  max-width: none;
}
.signup-facts {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  color: var(--text);
  font-size: 0.95rem;
  display: grid;
  gap: 0.5rem;
}
.signup-facts li {
  padding-left: 1.1rem;
  position: relative;
}
.signup-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
.signup-back {
  margin: 1.4rem 0 0;
  font-size: 0.95rem;
}
