/* pide.now merchant landing — La comanda. */
:root {
  --p-ink: #0f1216;
  --p-magenta: #e4118c;
  --p-magenta-hover: #b60e70;
  --p-cream: #f4e8d0;
  --font-display: "Outfit", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --font-ticket: "IBM Plex Mono", ui-monospace, monospace;
  --font-poster: "Archivo Black", "Outfit", sans-serif;
  --font-serif: "Newsreader", "Times New Roman", serif;
  --font-counter: "Fraunces", "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

.pide-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--p-ink);
  background: #ece6da;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.pide-body a {
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .a-ticket,
  .a-ticket__scan,
  .a-ticket__stamp,
  .a-ticket__items li,
  .a-ticket__pay,
  .a-ticket__total,
  .a-ticket__foot {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .a-clip__pin {
    transform: translateX(-50%);
  }

  .a-clip__well::before,
  .a-clip__well::after {
    transform: none;
  }
}

.hidden {
  display: none !important;
}

.pide-page {
  --a-bg: #e0d1a4;
  --a-paper: #fbf6e6;
  --a-ink: #1a140c;
  --a-rule: rgb(26 20 12 / 16%);
  --a-accent: #9a0c5e;
  --a-shadow: 0 22px 48px -16px rgb(26 20 12 / 38%);

  min-height: 100vh;
  padding-bottom: 2.5rem;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 27px,
      var(--a-rule) 27px 28px
    ),
    var(--a-bg);
  color: var(--a-ink);
}

.a-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
}

.a-wordmark {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.a-wordmark b {
  color: var(--p-magenta);
  font-weight: 900;
}

.a-top__join {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--a-accent);
  text-decoration: none;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.a-main {
  max-width: 72rem;
  margin: 0 auto;
}

.a-stage {
  padding: 0.5rem 1.25rem 3.25rem;
  display: grid;
  gap: 2rem;
}

.a-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--a-accent, var(--p-magenta));
}

.a-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.a-lede {
  margin: 1rem 0 0;
  font-size: 1.125rem;
  line-height: 1.75rem;
  max-width: 38ch;
}

.a-lede-stamp {
  display: block;
  width: fit-content;
  margin: 1.15rem 0 0;
  padding: 0.28rem 0.55rem;
  border: 2.5px solid var(--a-accent);
  color: var(--a-accent);
  font-family: var(--font-ticket);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(-1.4deg);
}


.a-ticket {
  position: relative;
  background: var(--a-paper);
  color: var(--a-ink);
  padding: 1.6rem 1.3rem 1.35rem;
  font-family: var(--font-ticket);
  box-shadow: var(--a-shadow);
  transform: rotate(-1.6deg);
}

.a-ticket::before,
.a-ticket::after,
.a-blank::before,
.a-blank::after,
.a-feat::before,
.a-feat::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  background: radial-gradient(circle, var(--a-bg) 6px, transparent 6.5px);
  background-size: 16px 12px;
  background-repeat: repeat-x;
}

.a-ticket::before,
.a-blank::before,
.a-feat::before {
  top: -6px;
}

.a-ticket::after,
.a-blank::after,
.a-feat::after {
  bottom: -6px;
}

.a-ticket__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--p-magenta);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.is-printing .a-ticket__scan {
  animation: a-scan 1.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

@keyframes a-scan {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  85% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(22rem);
  }
}

.a-ticket__brand {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0.55;
}

.a-ticket__resto {
  margin: 0.45rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
}

.a-ticket__meta {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  text-align: center;
  opacity: 0.65;
}

.a-ticket__stamp {
  position: absolute;
  top: 3.4rem;
  right: 0.6rem;
  margin: 0;
  padding: 0.2rem 0.45rem;
  border: 3px solid var(--a-accent);
  color: var(--a-accent);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  background: rgb(251 246 230 / 80%);
  transform: rotate(12deg);
  z-index: 3;
}

.is-printing .a-ticket__stamp {
  animation: a-stamp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 1.45s both;
}

@keyframes a-stamp {
  0% {
    opacity: 0;
    transform: rotate(-18deg) scale(1.7);
  }

  70% {
    opacity: 1;
    transform: rotate(14deg) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: rotate(12deg) scale(1);
  }
}

.a-ticket__items {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0.9rem 0 0;
  border-top: 1px dashed rgb(26 20 12 / 35%);
}

.a-ticket__items li {
  display: flex;
  gap: 0.75rem;
  padding: 0.28rem 0;
  font-size: 0.9375rem;
}

.is-printing .a-ticket__items li {
  animation: a-print-line 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.is-printing .a-ticket__items li:nth-child(1) { animation-delay: 0.35s; }
.is-printing .a-ticket__items li:nth-child(2) { animation-delay: 0.55s; }
.is-printing .a-ticket__items li:nth-child(3) { animation-delay: 0.75s; }

.is-printing .a-ticket__pay,
.is-printing .a-ticket__total,
.is-printing .a-ticket__foot {
  animation: a-print-line 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.is-printing .a-ticket__pay { animation-delay: 0.95s; }
.is-printing .a-ticket__total { animation-delay: 1.1s; }
.is-printing .a-ticket__foot { animation-delay: 1.25s; }

@keyframes a-print-line {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(0.35rem);
  }

  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

.a-ticket__items span {
  font-weight: 700;
  min-width: 1.25rem;
}

.a-ticket__pay {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed rgb(26 20 12 / 35%);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}

.a-ticket__total {
  display: flex;
  justify-content: space-between;
  margin: 0.4rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.a-ticket__foot {
  margin: 1rem 0 0;
  font-size: 0.7rem;
  text-align: center;
  opacity: 0.5;
}

.a-signup {
  display: flex;
  justify-content: center;
  padding: 3.25rem 1.25rem 2.75rem;
  scroll-margin-top: 1.25rem;
}

.a-field__row:has(.a-eye) input {
  padding-right: 2.75rem;
}

.a-blank {
  position: relative;
  width: min(100%, 34rem);
  background: var(--a-paper);
  padding: 1.6rem 1.25rem 1.5rem;
  font-family: var(--font-ticket);
  box-shadow: var(--a-shadow);
}

.a-blank__brand {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0.5;
}

.a-blank h2 {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-align: center;
}

.a-blank__note {
  margin: 0.3rem 0 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgb(26 20 12 / 78%);
}

.a-form {
  display: grid;
  gap: 0.9rem;
}

.a-form__rule {
  margin: 0.4rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px dashed rgb(26 20 12 / 35%);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--a-accent);
}

.a-field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.a-field em {
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.6;
}

.a-field input[type="text"],
.a-field input[type="email"],
.a-field input[type="password"] {
  min-height: 2.85rem;
  width: 100%;
  border: 0;
  border-bottom: 2px dashed rgb(26 20 12 / 55%);
  background: transparent;
  font-family: var(--font-ticket);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--a-ink);
  padding: 0.35rem 0;
}

.a-field input:focus {
  outline: none;
  border-bottom-color: var(--p-magenta);
}

.a-clip__well {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 8.5rem;
  margin-top: 0.55rem;
  overflow: visible;
  background: rgb(255 252 244 / 70%);
  border: 1.5px dashed rgb(26 20 12 / 42%);
  cursor: pointer;
}

.a-clip__well::before,
.a-clip__well::after {
  content: "";
  position: absolute;
  top: -0.45rem;
  z-index: 3;
  width: 2.35rem;
  height: 0.62rem;
  pointer-events: none;
}

.a-clip__well::before {
  left: 0.7rem;
  background: rgb(228 17 140 / 38%);
  transform: rotate(-11deg);
}

.a-clip__well::after {
  right: 0.7rem;
  background: rgb(26 20 12 / 16%);
  transform: rotate(8deg);
}

.a-clip__well.is-dragging {
  border-color: var(--a-accent);
  background: rgb(228 17 140 / 10%);
}

.a-clip__well.is-bad {
  border-color: #b42318;
}

.a-clip__well:focus-within {
  outline: 3px solid rgb(228 17 140 / 35%);
  outline-offset: 3px;
}

.a-clip.is-clipped .a-clip__well {
  border-style: solid;
  border-color: rgb(26 20 12 / 22%);
}

.a-clip__input {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.a-clip__pin {
  position: absolute;
  top: -0.15rem;
  left: 50%;
  z-index: 2;
  font-size: 1.25rem;
  color: var(--a-accent);
  transform: translateX(-50%) rotate(-30deg);
  pointer-events: none;
}

.a-clip__empty {
  display: grid;
  gap: 0.28rem;
  padding: 1.85rem 1.1rem 1.15rem;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.a-clip__cta {
  font-size: 0.9375rem;
  font-weight: 600;
}

.a-clip__hint {
  font-size: 0.75rem;
  color: rgb(26 20 12 / 68%);
}

.a-clip__well.is-bad .a-clip__hint {
  color: #b42318;
}

.a-clip__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.a-clip__doc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1.7rem 1.1rem 1.1rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  word-break: break-word;
}

.a-clip__doc i {
  font-size: 1.55rem;
  color: var(--a-accent);
}

.a-clip__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.a-clip__caption {
  margin: 0;
  min-width: 0;
  font-size: 0.8125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.a-clip__clear {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--a-accent);
  font-family: var(--font-ticket);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 2.75rem;
  padding: 0;
}

.a-clip__clear:hover {
  text-decoration: underline;
}

.a-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.45;
  min-height: 2.75rem;
}

.a-check input {
  margin-top: 0.35rem;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  accent-color: var(--p-magenta);
}

.a-field__row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}

.a-field__row input {
  flex: 1;
  min-width: 0;
}

.a-field__suffix {
  font-size: 0.8125rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  opacity: 0.55;
  white-space: nowrap;
}

.a-eye {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--a-ink);
  min-width: 2.75rem;
  min-height: 2.75rem;
  cursor: pointer;
}

.a-form__hint {
  list-style: none;
  margin: 0;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.a-form__hint li {
  font-size: 0.75rem;
}

.a-form .text-green-600 { color: #15803d; }
.a-form .text-red-600 { color: #b42318; }
.a-form .text-xs { font-size: 0.75rem; }

.a-form__url {
  font-size: 0.8125rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  color: var(--a-accent);
}

.a-check a {
  color: var(--a-accent);
}

.a-submit {
  min-height: 3.25rem;
  width: 100%;
  border: 0;
  background: var(--p-magenta);
  color: #fff8f4;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  cursor: pointer;
}

.a-submit:hover {
  background: var(--p-magenta-hover);
}

.a-blank__fine {
  margin: 0.7rem 0 0;
  font-size: 0.75rem;
  text-align: center;
  opacity: 0.65;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}

.a-blank__fine a {
  color: var(--a-accent);
}

.a-feat__lead a {
  color: var(--a-accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.a-feats {
  position: relative;
  padding: 1.5rem 1.25rem 3rem;
}

.a-feats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, var(--a-bg) 4.5rem);
  pointer-events: none;
}

.a-feats > * {
  position: relative;
}

.a-feats__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.a-feats__lede {
  margin: 0.45rem 0 1.65rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  max-width: 44ch;
}

.a-tape {
  display: grid;
  gap: 1.35rem;
}

.a-feat {
  position: relative;
  background: var(--a-paper);
  padding: 1.3rem 1.15rem 1.2rem;
  font-family: var(--font-ticket);
  box-shadow: var(--a-shadow);
}

.a-feat__head {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--a-accent);
}

.a-feat__lead {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  line-height: 1.45;
}

.a-feat ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.a-feat li {
  padding: 0.42rem 0;
  border-top: 1px dashed rgb(26 20 12 / 28%);
  font-size: 1rem;
  line-height: 1.45;
}

.a-feat li:first-child {
  border-top: 0;
  padding-top: 0;
}

@supports (animation-timeline: view()) {
  .a-feat {
    animation: a-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

@keyframes a-rise {
  from {
    transform: translateY(1.25rem);
  }

  to {
    transform: translateY(0);
  }
}

.a-foot {
  margin-top: 1.5rem;
  padding: 1.75rem 1.25rem 0.5rem;
  border-top: 1.5px dashed rgb(26 20 12 / 32%);
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgb(26 20 12 / 82%);
}

@media (width >= 860px) {
  .a-stage {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
    gap: 3rem;
    padding-top: 1.5rem;
    padding-bottom: 4.5rem;
  }

  .a-ticket {
    position: sticky;
    top: 1.25rem;
    transform: rotate(-2.4deg);
  }

  .a-signup {
    padding: 5.5rem 1.25rem 3.25rem;
  }

  .a-blank {
    padding: 1.85rem 1.6rem 1.7rem;
  }

  .a-tape {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}


.a-flash,
.a-errors {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border: 1.5px dashed rgb(26 20 12 / 35%);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.45;
}

.a-flash {
  color: #15803d;
  background: rgb(21 128 61 / 8%);
}

.a-errors {
  color: #b42318;
  background: rgb(180 35 24 / 6%);
}

.a-errors ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.a-errors li + li {
  margin-top: 0.35rem;
}

.a-foot nav {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.a-foot p {
  margin: 0;
}

.a-foot a {
  color: var(--a-accent);
  font-weight: 700;
  text-decoration: none;
}

.a-foot a:hover {
  text-decoration: underline;
}
