/* AgentPOS landing: self-contained stylesheet, no external assets.
   Temperament: invitación (docs/DISENO.md). Dark and light bands alternate;
   the brand accent stays the same in both, the three destinations bring their
   own colour so the page teaches the code before the visitor travels. */

:root {
  /* brand, shared by both bands */
  --brand: #7aa2ff;
  --brand-ink: #2a4fb8; /* the same blue, readable on light */
  --money: #26d0a0;
  --money-ink: #0a6b4a;
  --radius: 14px;
  --maxw: 68rem;

  /* dark band (default) */
  --bg: #0b1020;
  --surface: #0d1428;
  --surface-2: #101a33;
  --line: rgba(120, 150, 220, 0.18);
  --grid-line: rgba(120, 150, 220, 0.06);
  --heading: #f4f7ff;
  --text: #9fb0d0;
  --muted: #8494b8;
  --accent: var(--brand);
  --card: var(--surface);
  --chip: var(--surface-2);
}

/* the three destinations: bright value for dark bands, ink value for light */
.tone-amber {
  --tone-bright: #f2a33c;
  --tone-ink: #8a5a06;
  --tone-soft: rgba(242, 163, 60, 0.14);
}
.tone-teal {
  --tone-bright: #2bb3a3;
  --tone-ink: #0d6357;
  --tone-soft: rgba(43, 179, 163, 0.14);
}
.tone-violet {
  --tone-bright: #9a7cf5;
  --tone-ink: #5a3fbd;
  --tone-soft: rgba(154, 124, 245, 0.14);
}
.band-dark.tone,
.band-dark .tone {
  --tone-text: var(--tone-bright);
  --tone-edge: var(--tone-bright);
}
.band-light.tone,
.band-light .tone {
  --tone-text: var(--tone-ink);
  /* the edge is decorative, so it can carry the colour at full strength */
  --tone-edge: var(--tone-bright);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 "Segoe UI",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  color: var(--heading);
}

code,
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- bands: the alternating rhythm ---------- */

.band {
  padding: 4rem 0;
}
.band-dark {
  background: var(--bg);
}
.band-light {
  --bg: #f6f8fd;
  --surface: #ffffff;
  --surface-2: #eaeffb;
  --line: rgba(11, 16, 32, 0.12);
  --heading: #0b1020;
  --text: #414e70;
  --muted: #4a5878;
  --accent: var(--brand-ink);
  --card: #ffffff;
  --chip: #eef2fc;
  background: #f6f8fd;
  color: var(--text);
}
.band-light + .band-dark,
.band-dark + .band-light {
  border-top: 0;
}

/* ---------- header ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 16, 32, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(120, 150, 220, 0.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.75rem;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #f4f7ff;
}
.brand span {
  color: var(--brand);
}
.brand:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.95rem;
}
.nav-links a {
  color: #9fb0d0;
}
.nav-links a:hover {
  color: #f4f7ff;
  text-decoration: none;
}

.lang-toggle {
  border: 1px solid rgba(120, 150, 220, 0.3);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  color: #f4f7ff !important;
  font-weight: 600;
}
.lang-toggle:hover {
  border-color: var(--brand);
}

/* The menu button: three bars that become a cross. Hidden on wide screens. */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  border: 1px solid rgba(120, 150, 220, 0.3);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #f4f7ff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }
  /* On a phone the links fold under the bar and open as a list: nothing gets cut off. */
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 0.9rem;
    background: rgba(11, 16, 32, 0.98);
    border-bottom: 1px solid rgba(120, 150, 220, 0.18);
    font-size: 1.05rem;
  }
  .nav.is-open .nav-links {
    display: flex;
  }
  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(120, 150, 220, 0.12);
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .nav-links a:last-child {
    border-bottom: 0;
  }
  .nav-links .lang-toggle {
    align-self: flex-start;
    margin-top: 0.6rem;
    padding: 0.35rem 0.9rem;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 3.25rem 0 3rem;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(77, 132, 255, 0.18), transparent 60%),
    radial-gradient(50rem 26rem at 0% 110%, rgba(38, 208, 160, 0.09), transparent 60%),
    linear-gradient(150deg, var(--surface) 0%, var(--bg) 55%, var(--surface-2) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero .container {
  position: relative;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.9rem;
  max-width: 22ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero .lede {
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  color: var(--heading);
  max-width: 44rem;
  margin: 0 0 1.4rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.btn {
  display: inline-block;
  border-radius: 10px;
  padding: 0.7rem 1.25rem;
  min-height: 44px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.08s ease,
    filter 0.12s ease;
}
.btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  color: #0b1020;
}
.band-light .btn-primary {
  color: #ffffff;
}
.btn-ghost {
  border-color: var(--line);
  color: var(--heading);
  background: var(--chip);
}
.btn-tone {
  background: var(--tone-text);
  color: #0b1020;
}
.band-light .btn-tone {
  color: #ffffff;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.85rem;
}
.badges li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  color: var(--text);
  background: var(--chip);
}

/* ---------- hero diagram: drawn once on entry ---------- */

.flow {
  margin: 2.25rem 0 0;
  overflow-x: auto;
}
.flow svg {
  display: block;
  width: 100%;
  max-width: 46rem;
  height: auto;
}
.flow .box {
  fill: var(--surface-2);
  stroke: var(--line);
  stroke-width: 1.5;
}
.flow .box-accent {
  stroke: var(--brand);
}
.flow .label {
  fill: var(--heading);
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
}
.flow .sub {
  fill: var(--muted);
  font-size: 11.5px;
  font-family: inherit;
}
.flow .wire {
  stroke: var(--brand);
  stroke-width: 1.6;
  fill: none;
  stroke-dasharray: 120;
  stroke-dashoffset: 0;
}
.flow .tip {
  fill: var(--brand);
}
.flow .wire-note {
  fill: var(--brand);
  font-size: 11.5px;
  font-family: inherit;
}

@keyframes flow-node-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes flow-wire-draw {
  from {
    stroke-dashoffset: 120;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes flow-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.flow .node {
  transform-box: fill-box;
  transform-origin: center;
  animation: flow-node-in 0.35s ease-out both;
}
.flow .n2 {
  animation-delay: 0.45s;
}
.flow .n3 {
  animation-delay: 0.85s;
}
.flow .w1 {
  animation: flow-wire-draw 0.4s ease-out 0.2s both;
}
.flow .w2 {
  animation: flow-wire-draw 0.4s ease-out 0.65s both;
}
.flow .t1,
.flow .note-1 {
  animation: flow-fade-in 0.2s ease-out 0.55s both;
}
.flow .t2,
.flow .note-2 {
  animation: flow-fade-in 0.2s ease-out 1s both;
}
.flow .caption {
  animation: flow-fade-in 0.25s ease-out 1.1s both;
}

/* ---------- sections ---------- */

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
.tone .eyebrow,
.eyebrow.tone {
  color: var(--tone-text);
}

.band h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-lede {
  color: var(--text);
  max-width: 46rem;
  margin: 0 0 2rem;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.25rem;
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--text);
  font-size: 0.97rem;
}
.card p + p {
  margin-top: 0.6rem;
}

/* ---------- the three destinations ---------- */

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

.door {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  border-top: 5px solid var(--tone-edge);
  padding-top: 1.2rem;
}
.door h3 {
  margin: 0;
  font-size: 1.12rem;
}
.door p {
  flex: 1 1 auto;
}
/* The destination's colour at full strength, with dark text over it: the page
   shows the real accent of each surface and still clears AA. */
.door .door-where {
  display: inline-block;
  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;
}
.door .door-link {
  font-weight: 600;
  color: var(--tone-text);
  align-self: flex-start;
}
.door .door-note {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}

.icon-tile {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--tone-soft, var(--chip));
  color: var(--tone-text, var(--accent));
  margin-top: 0.35rem;
}
.icon-tile svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* ---------- offer heads ---------- */

.offer-head {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 2rem;
}
.offer-head h2 {
  margin-bottom: 0.4rem;
}
.offer-head .section-lede {
  margin-bottom: 0;
}
.band .cta-row.after {
  margin: 2rem 0 0;
}

@media (max-width: 640px) {
  .offer-head {
    flex-direction: column;
    gap: 0.75rem;
  }
  .icon-tile {
    margin-top: 0;
  }
}

/* ---------- plan cards (open source vs cloud) ---------- */

.plan-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--text);
  font-size: 0.96rem;
}
.plan-card li {
  margin-bottom: 0.35rem;
}
.plan-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.75rem;
}
.plan-tag.free {
  background: rgba(10, 107, 74, 0.1);
  color: var(--money-ink);
}
.plan-tag.waitlist {
  background: rgba(42, 79, 184, 0.1);
  color: var(--accent);
}
.band-dark .plan-tag.free {
  background: rgba(38, 208, 160, 0.12);
  color: var(--money);
}
.band-dark .plan-tag.waitlist {
  background: rgba(122, 162, 255, 0.12);
  color: var(--brand);
}

/* ---------- proof ---------- */

.proof {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--money-ink);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin-bottom: 1rem;
}
.band-dark .proof {
  border-left-color: var(--money);
}
.proof h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}
.proof p {
  margin: 0 0 0.9rem;
  color: var(--text);
}
.proof .tx-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.35rem;
}
.tx-hash {
  display: block;
  word-break: break-all;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--money-ink);
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
}
.band-dark .tx-hash {
  color: var(--money);
}
.proof .tx-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 0.8rem 0 0;
  font-weight: 600;
}
.proof .tx-means {
  margin: 1rem 0 0;
  font-size: 0.97rem;
}

/* ---------- buyer quickstart ---------- */

.quickstart {
  margin-top: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.quickstart h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.quickstart p {
  margin: 0 0 0.8rem;
  color: var(--text);
  font-size: 0.97rem;
}
.quickstart p:last-child {
  margin-bottom: 0;
}
.cmd {
  display: block;
  overflow-x: auto;
  white-space: pre;
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  color: var(--heading);
  font-size: 0.9rem;
  margin: 0 0 0.8rem;
}

/* ---------- waitlist form ---------- */

.waitlist-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  max-width: 34rem;
}

.field {
  display: block;
  margin-bottom: 0.9rem;
}
.field span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.field input {
  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 input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

/* Honeypot: hidden from humans, present for bots. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.form-status {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  min-height: 1.4rem;
}
.form-status.ok {
  color: var(--money);
}
.form-status.err {
  color: var(--brand);
}

/* ---------- footer ---------- */

footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}
footer strong {
  color: var(--text);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-links a {
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--heading);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
  /* The diagram appears already drawn: the base state is the final state. */
  .flow .node,
  .flow .wire,
  .flow .tip,
  .flow .wire-note,
  .flow .caption {
    animation: none !important;
  }
}
