/* ── Base ── */
* { -webkit-tap-highlight-color: transparent; }

body {
  -webkit-font-smoothing: antialiased;
}

/* ── Spinner border width ── */
.border-3 { border-width: 3px; }

/* ── Benefit items fade-in ── */
.benefit-item {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.4s ease forwards;
}
.benefit-item:nth-child(1) { animation-delay: 0.05s; }
.benefit-item:nth-child(2) { animation-delay: 0.12s; }
.benefit-item:nth-child(3) { animation-delay: 0.19s; }
.benefit-item:nth-child(4) { animation-delay: 0.26s; }
.benefit-item:nth-child(5) { animation-delay: 0.33s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Countdown pulse when < 60s ── */
.countdown-urgent {
  animation: pulse-orange 1s ease-in-out infinite;
}
@keyframes pulse-orange {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── QR scan line animation ── */
@keyframes scanline {
  0%   { top: 10%; }
  50%  { top: 85%; }
  100% { top: 10%; }
}
.qr-scanline {
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #F97316, transparent);
  animation: scanline 2.5s ease-in-out infinite;
  border-radius: 1px;
}

/* ── Spinner ── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-spin { animation: spin 0.8s linear infinite; }

/* ── Code section slide ── */
#code-section {
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.25s ease;
}
#code-section.open {
  max-height: 200px;
  opacity: 1;
}
#code-section.hidden {
  max-height: 0;
  opacity: 0;
}

/* ── Price skeleton loading ── */
.price-skeleton {
  color: transparent !important;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 6px;
  min-width: 90px;
  display: inline-block;
}
@keyframes shimmer {
  0%   { background-position:  200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Input focus ring ── */
input:focus { outline: none; }

/* ── Button ripple ── */
button:active, a:active { transform: scale(0.97); }

/* ── Desktop 2-column layout ── */
@media (min-width: 768px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
  }
  .page-wrapper {
    max-width: 980px;
    width: calc(100% - 4rem);
    border-radius: 20px;
    overflow: hidden;
    margin: 2rem 0;
    min-height: 0;
    box-shadow: 0 8px 60px rgba(0,0,0,0.18);
  }
  .content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    grid-template-rows: auto auto;
    grid-template-areas: "hero form" "benefits form";
    height: auto;
  }
  .hero-section {
    grid-area: hero;
    overflow: hidden;
  }
  .benefits-section {
    grid-area: benefits;
  }
  .form-section {
    grid-area: form;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2.5rem 1.75rem 2rem;
    border-left: 1px solid #e5e7eb;
    background: white;
    overflow-y: auto;
  }
  .form-section .form-outer-padding { padding: 0; }
  .form-section .form-card {
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
  }
  .benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
  }
  .benefits-grid > * { margin-top: 0 !important; }
}

/* ── Desktop (1024px+): fill viewport height ── */
@media (min-width: 1024px) {
  .content-grid {
    grid-template-rows: auto 1fr;
    height: calc(100vh - 4rem);
  }
  .benefits-section { overflow-y: auto; }
  .form-section { overflow-y: auto; }
}
