/* ═══════════════════════════════════════════════════════════════════════
   Hintonn — purchase UI (pricing cards, combo, buy modal, test bar)
   Loaded by ai-qr-system.html and ai-networking.html.
   Colours and type match the existing Hintonn site:
   yellow #F8C537 on warm off-white, Satoshi headings, Inter body.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Pricing section (dark, same as ai-mini.html) ───────────────────── */
.pricing-section { padding: 5rem 0; background: var(--rich-black); color: var(--white); }
.pricing-section .section-label { color: var(--yellow); }
.pricing-section .section-label::before { background: var(--yellow); }
.pricing-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
@media (max-width: 768px) { .pricing-cards { grid-template-columns: 1fr; } }

.pricing-card {
  padding: 2.5rem; border-radius: var(--card-radius);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition); position: relative;
  display: flex; flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--yellow);
  background: rgba(248,197,55,0.04);
}
.pricing-card.featured::before {
  content: 'Best Value'; position: absolute; top: -0.6rem; right: 1.5rem;
  font-family: var(--font-heading); font-size: 0.7rem; font-weight: 700;
  padding: 0.2rem 0.8rem; border-radius: 9999px;
  background: var(--yellow); color: var(--rich-black);
}
.pricing-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.pricing-card .p-desc { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 1.5rem; }
.pricing-card .p-price {
  font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800;
  color: var(--yellow); margin-bottom: 0.2rem; line-height: 1.1;
}
.pricing-card .p-price small { font-size: 0.9rem; font-weight: 400; color: rgba(255,255,255,0.3); }
.pricing-card .p-was {
  font-size: 0.95rem; color: rgba(255,255,255,0.35);
  text-decoration: line-through; margin-bottom: 0.2rem;
}
.pricing-card .p-note { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin-bottom: 1.5rem; }
.pricing-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; }
.pricing-card li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.pricing-card li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--yellow); }
.pricing-card .btn-primary { display: flex; justify-content: center; margin-top: auto; }

/* AMC strip under the price cards */
.amc-strip {
  margin-top: 2rem; padding: 1.4rem 1.6rem;
  border: 1px dashed rgba(248,197,55,0.35); border-radius: var(--card-radius);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem;
  font-size: 0.88rem; color: rgba(255,255,255,0.65);
}
.amc-strip strong { color: var(--yellow); font-family: var(--font-heading); }
.amc-strip .amc-free {
  font-family: var(--font-heading); font-weight: 700; font-size: 0.75rem;
  background: rgba(248,197,55,0.15); color: var(--yellow);
  padding: 0.2rem 0.7rem; border-radius: 9999px;
}

.pricing-footnote { margin-top: 1.5rem; font-size: 0.78rem; color: rgba(255,255,255,0.35); }

/* ─── Buy modal ──────────────────────────────────────────────────────── */
.hp-modal {
  position: fixed; inset: 0; z-index: 1000000;
  display: none; align-items: center; justify-content: center;
  padding: 1.25rem;
  background: rgba(17,17,17,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hp-modal.is-open { display: flex; }

.hp-modal-card {
  position: relative; width: 100%; max-width: 440px;
  background: var(--bg-warm, #fdf9f8);
  border-radius: 20px; padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
  max-height: 92vh; overflow-y: auto;
  animation: hpPop 0.28s cubic-bezier(0.22,1,0.36,1);
}
@keyframes hpPop { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

.hp-close {
  position: absolute; top: 0.9rem; right: 1rem;
  background: none; border: none; font-size: 1.7rem; line-height: 1;
  color: rgba(0,0,0,0.4); cursor: pointer; padding: 0.2rem;
}
.hp-close:hover { color: var(--rich-black); }

.hp-modal-eyebrow {
  font-family: var(--font-heading); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: #b98800;
  display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.5rem;
}
.hp-modal-eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--yellow); }

.hp-modal-card h3 { font-size: 1.45rem; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.hp-modal-sub { font-size: 0.85rem; color: rgba(0,0,0,0.5); margin-bottom: 1.25rem; line-height: 1.55; }

.hp-plan {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid rgba(0,0,0,0.07);
  border-radius: 12px; padding: 0.85rem 1rem; margin-bottom: 1.2rem;
}
.hp-plan-name { font-family: var(--font-heading); font-weight: 600; font-size: 0.92rem; }
.hp-plan-price { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; color: var(--rich-black); }

.hp-field { display: block; margin-bottom: 1rem; }
.hp-field > span {
  display: block; font-family: var(--font-heading); font-size: 0.8rem;
  font-weight: 600; margin-bottom: 0.4rem; color: rgba(0,0,0,0.7);
}
.hp-req { color: #d92d20; }
.hp-field input {
  width: 100%; padding: 0.8rem 0.95rem;
  border: 1px solid rgba(0,0,0,0.14); border-radius: 10px;
  font-family: var(--font-body); font-size: 0.95rem; background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hp-field input:focus {
  outline: none; border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(248,197,55,0.22);
}
.hp-err {
  display: block; min-height: 1em; margin-top: 0.3rem;
  font-size: 0.75rem; color: #d92d20;
}
.hp-err-show { animation: hpShake 0.3s; }
@keyframes hpShake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.hp-submit {
  width: 100%; padding: 0.95rem; border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--yellow), var(--amber), var(--orange));
  color: var(--rich-black); font-family: var(--font-heading);
  font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: var(--transition); margin-top: 0.3rem;
}
.hp-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(248,197,55,0.3); }
.hp-submit:disabled { opacity: 0.7; cursor: progress; }

.hp-secure {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.74rem; color: rgba(0,0,0,0.45);
  margin-top: 0.9rem; line-height: 1.5;
}
.hp-secure svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }

.hp-login-note { font-size: 0.8rem; color: rgba(0,0,0,0.5); margin-top: 1rem; text-align: center; }
.hp-login-note a { color: var(--rich-black); font-weight: 600; text-decoration: underline; }

/* ─── ?test=1 bar ────────────────────────────────────────────────────── */
.hp-testbar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 999999;
  background: #1a1a1a; color: #fff;
  border-bottom: 2px solid var(--yellow);
  padding: 0.6rem 1rem; font-size: 0.83rem;
}
.hp-testbar-inner {
  max-width: var(--container, 1200px); margin: 0 auto;
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}
.hp-testbar-inner > div { flex: 1; min-width: 220px; line-height: 1.4; }
.hp-testbar strong { color: var(--yellow); }
.hp-testdot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(248,197,55,0.6); animation: hpPulse 1.6s infinite;
  flex-shrink: 0;
}
@keyframes hpPulse {
  0% { box-shadow: 0 0 0 0 rgba(248,197,55,0.55); }
  70% { box-shadow: 0 0 0 10px rgba(248,197,55,0); }
  100% { box-shadow: 0 0 0 0 rgba(248,197,55,0); }
}
.hp-testbar button {
  background: var(--yellow); color: var(--rich-black);
  border: none; border-radius: 8px; padding: 0.5rem 1.1rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.82rem;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.hp-testbar button:hover { transform: translateY(-1px); }

/* ── "Razorpay test mode" badge (shown only while the test key is set) ── */
.hp-keybadge {
  position: fixed; left: 16px; bottom: 16px; z-index: 999997;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--rich-black, #111); color: var(--yellow, #F8C537);
  border: 1px solid rgba(248,197,55,0.45);
  padding: 6px 11px; border-radius: 999px;
  font-family: var(--font-heading, 'Satoshi', sans-serif);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  pointer-events: none;
}
.hp-keydot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange, #FF8A00);
  animation: hpPulse 1.6s infinite;
}
@media (max-width: 480px) {
  .hp-keybadge { left: 10px; bottom: 10px; font-size: 0.62rem; padding: 5px 9px; }
}

/* push the floating header down while the test bar is showing */
body:has(#hpTestBar) .site-header { top: 62px; }
@media (max-width: 768px) { body:has(#hpTestBar) .site-header { top: 76px; } }
