/* ============================================================
   TAP TO PAY — feature page styles
   ============================================================ */

/* ---------- HERO ----------
   Grid inherited from .ip-hero-inner / .ip-hero-left / .ip-hero-right
   in inner-page.css so this page lines up with every other feature page. */
.tp-hero {
  background: #fff;
  padding: 8rem 0 5rem;
  overflow: hidden;
}
.tp-hero-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.tp-new-badge {
  background: #062743;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}
.tp-hero-pill {
  background: rgba(26,111,204,0.10);
  color: #1a6fcc;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}
.tp-hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  color: #062743;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1.1rem;
}
.tp-hero-sub {
  font-size: 1.02rem;
  line-height: 1.6;
  color: #64748b;
  max-width: 460px;
  margin: 0;
}
.ip-hero-inner1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
/* Stack to 1 column at tablet width — since responsive.css hides the phone
   column (.ip-hero-right) on mobile, we must collapse the grid so the copy
   column gets the full width instead of just half. */
@media (max-width: 1024px) {
  .ip-hero-inner1 { grid-template-columns: 1fr; gap: 2.5rem; }
}
.tp-hero-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.tp-hero-checks li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: #334155;
  font-weight: 500;
}
.tp-check-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #062743;
  color: #fff;
  flex-shrink: 0;
}
.tp-check-ico svg { width: 12px; height: 12px; }

/* Static hero image (replaces the animated phone mockup)
   Overrides the older .tp-hero .ip-hero-right img rule below which
   forces a portrait phone aspect-ratio + object-fit: cover (crops photos) */
.tp-hero .ip-hero-right img.tp-hero-img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 20px;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(6,39,67,0.18));
}

.tp-hero-btns {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.tp-btn-p {
  background: #1a6fcc;
  color: #fff;
  padding: 0.95rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(26,111,204,0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tp-btn-p:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(26,111,204,0.34);
}
.tp-btn-o {
  color: #1a6fcc;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  transition: gap 0.15s ease;
}
.tp-btn-o:hover { text-decoration: underline; }

/* Reuse .ip-hero-right (position: relative from inner-page.css) — just add flex centering and the soft glow */
.tp-hero .ip-hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
/* Soft radial glow behind the phone image */
.tp-hero .ip-hero-right::before {
  content: "";
  position: absolute;
  inset: 8% 12%;
  background: radial-gradient(circle at 50% 40%, rgba(26,111,204,0.16), rgba(26,111,204,0) 65%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}
/* Hero image */
.tp-hero .ip-hero-right img,
.tp-phone {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 2.5 / 5;             /* Portrait phone ratio — lets object-fit: cover actually crop cleanly */
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 32px;
  filter:
    drop-shadow(0 26px 48px rgba(6,39,67,0.22))
    drop-shadow(0 6px 14px rgba(6,39,67,0.10));
  transition: transform 0.35s ease;
}
.tp-hero .ip-hero-right img:hover { transform: translateY(-4px); }
.tp-phone-rings {
  opacity: 0.55;
  animation: tpRingPulse 4s ease-in-out infinite;
}
@keyframes tpRingPulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.75; }
}

/* ---------- Shared section titles ---------- */
.tp-sec-h2 {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 700;
  color: #062743;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 0.75rem;
}
.tp-sec-sub {
  text-align: center;
  color: #64748b;
  font-size: 0.98rem;
  margin: 0 auto 2.5rem;
  max-width: 520px;
}

/* ---------- HOW IT WORKS ---------- */
.tp-hiw {
  padding: 2.5rem 0;
  background: #ffffff;
}
.tp-hiw .tp-sec-h2 { margin-bottom: 3rem; }
.tp-hiw-grid {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}
.tp-hiw-nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 2;
}
.tp-hiw-num {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #062743;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 8px 18px rgba(26,111,204,0.28);
}
.tp-hiw-line {
  position: absolute;
  top: 21px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: #cfe0f4;
  z-index: 1;
}
.tp-hiw-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.tp-hiw-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.4rem 1.2rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tp-hiw-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(6,39,67,0.08);
  border-color: rgba(26,111,204,0.30);
}
.tp-hiw-ico {
  color: #1a6fcc;
  margin: 0 auto 0.9rem;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.tp-hiw-ico svg { width: 40px; height: 40px; }
.tp-hiw-card h4 {
  font-size: 1rem;
  color: #062743;
  font-weight: 700;
  margin: 0 0 0.4rem;
}
.tp-hiw-card p {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* ---------- WHY LOVE ---------- */
.tp-why {
  padding: 2.5rem 0;
  background: #ffffff;
}
.tp-why .tp-sec-h2 { margin-bottom: 2.5rem; }
.tp-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.tp-why-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.6rem 1.3rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tp-why-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(6,39,67,0.08);
  border-color: rgba(26,111,204,0.30);
}
.tp-why-ico {
  color: #1a6fcc;
  margin: 0 auto 1rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.tp-why-ico svg { width: 42px; height: 42px; }
.tp-why-card h4 {
  font-size: 1rem;
  color: #062743;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.tp-why-card p {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* ---------- PERFECT FOR ---------- */
.tp-perfect {
  padding: 2.5rem 0;
  background: #ffffff;
}
.tp-perfect-pills {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1rem;
}
.tp-pill {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.2rem 0.75rem 1.1rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tp-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(26,111,204,0.35);
  box-shadow: 0 10px 22px rgba(6,39,67,0.08);
}
.tp-pill-ico {
  display: block;
  margin: 0 auto 0.5rem;
  color: #1a6fcc;
  width: 26px; height: 26px;
}
.tp-pill-ico svg { width: 26px; height: 26px; }
.tp-pill span:last-child {
  font-size: 0.82rem;
  color: #062743;
  font-weight: 600;
}

/* ---------- SECURITY ---------- */
.tp-security {
  padding: 4rem 0 2.5rem;
  background: #f8fafc;
}
.tp-security .tp-sec-h2 { margin-bottom: 2rem; }
.tp-sec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.tp-sec-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 1rem 1.2rem;
  border-radius: 12px;
}
.tp-sec-ico {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a6fcc;
  flex-shrink: 0;
}
.tp-sec-ico svg { width: 30px; height: 30px; }
.tp-sec-ico-pci {
  background: #22c55e;
  color: #fff;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
/* iOS + Android combined icon — two SVGs side by side */
.tp-sec-ico-platforms {
  width: auto;
  gap: 6px;
  padding: 0 2px;
}
.tp-sec-ico-platforms svg { width: 22px; height: 22px; }
.tp-sec-name {
  font-weight: 700;
  color: #062743;
  font-size: 0.92rem;
}
.tp-sec-desc {
  color: #64748b;
  font-size: 0.78rem;
  margin-top: 2px;
}

/* ---------- CTA ---------- */
.tp-cta {
  padding: 3.5rem 0 5rem;
  background: #ffffff;
}
.tp-cta-card {
  background: linear-gradient(135deg, #eef4fb 0%, #f8fbfe 100%);
  border: 1px solid #d9e6f5;
  border-radius: 22px;
  padding: 2.5rem 3rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 2.5rem;
}
.tp-cta-left h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: #062743;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
  line-height: 1.25;
}
.tp-cta-left p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}
.tp-cta-right {
  text-align: center;
}
.tp-cta-btn {
  display: inline-block;
  background: #1a6fcc;
  color: #fff;
  padding: 1rem 1.9rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(26,111,204,0.30);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tp-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(26,111,204,0.38);
}
.tp-cta-trust {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0.75rem 0 0;
}

/* ---------- RESPONSIVE ----------
   The hero grid stack (2 cols → 1 col) is inherited from .ip-hero-inner in
   inner-page.css at ≤1024px. On mobile (≤768px) the phone image is hidden
   globally by responsive.css (`.ip-hero-right { display: none !important; }`)
   so all mobile tuning here targets the copy column and lower sections. */

/* ── Tablet ── */
@media (max-width: 1024px) {
  .tp-hero .ip-hero-left {
    text-align: center;
    align-items: center;
  }
  .tp-hero-sub { margin-left: auto; margin-right: auto; }
  .tp-hero-badges { justify-content: center; }
  .tp-hero-checks { align-items: flex-start; margin: 0 auto; }
  .tp-hero-btns { justify-content: center; }
  .tp-why-grid { grid-template-columns: repeat(2, 1fr); }
  .tp-perfect-pills { grid-template-columns: repeat(4, 1fr); }
  .tp-sec-grid { grid-template-columns: repeat(2, 1fr); }
  .tp-cta-card { grid-template-columns: 1fr; text-align: center; padding: 2rem 1.75rem; gap: 1.5rem; }
}

/* ── Mobile landscape (≤768px) ── */
@media (max-width: 768px) {
  .tp-hero { padding: 5rem 0 2.5rem; }
  .tp-hero .ip-hero-inner1 { gap: 0; }

  .tp-hero .ip-title { font-size: clamp(1.4rem, 6vw, 2rem); line-height: 1.2; }
  .tp-hero-sub { font-size: 0.95rem; }
  .tp-hero-checks li { font-size: 0.9rem; }
  .tp-hero-btns {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    width: 100%;
    max-width: 205px;
    margin: 0 auto;
  }
  .tp-btn-p, .tp-btn-o { text-align: center; justify-content: center; }

  .tp-hiw, .tp-why, .tp-perfect, .tp-security { padding: 3rem 0; }
  .tp-cta { padding: 2.5rem 0 3.5rem; }

  .tp-sec-h2 { font-size: clamp(1.35rem, 4.5vw, 1.65rem); }
  .tp-sec-sub { font-size: 0.9rem; }

  /* How It Works — stack cards vertically, drop the connector line */
  .tp-hiw .tp-sec-h2 { margin-bottom: 2rem; }
  .tp-hiw-cards { grid-template-columns: 1fr; gap: 1rem; }
  .tp-hiw-nums {  gap: 0.5rem; margin-bottom: 1rem; }
  .tp-hiw-line { display: none; }

  /* Why grid — 2 cols on phones */
  .tp-why-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .tp-why-card { padding: 1.2rem 0.9rem; }
  .tp-why-ico svg { width: 34px; height: 34px; }
  .tp-why-card h4 { font-size: 0.95rem; }
  .tp-why-card p { font-size: 0.8rem; }

  /* Perfect for pills — 2 cols */
  .tp-perfect-pills { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .tp-pill { padding: 1rem 0.6rem; }

  /* Security badges — 2 cols */
  .tp-sec-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .tp-sec-item { padding: 0.85rem 1rem; gap: 0.7rem; }
  .tp-sec-ico svg { width: 24px; height: 24px; }
.ip-hero-left{
    gap: 1rem;
}
  /* CTA */
  .tp-cta-card { padding: 1.75rem 1.25rem; border-radius: 18px; }
  .tp-cta-left h3 { font-size: 1.25rem; }
  .tp-cta-btn { width: 100%; }
  .tp-hero .ip-title br { display: none; }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
  .tp-hero { padding: 6rem 0 2rem; }
  .tp-hero .ip-title { font-size: 1.4rem; line-height: 1.2; }

  .tp-hiw, .tp-why, .tp-perfect, .tp-security { padding: 2.5rem 0; }
  .tp-cta { padding: 2rem 0 3rem; }

  /* Collapse to single column where 2 columns get cramped */
  .tp-why-grid { grid-template-columns: 1fr; }
  .tp-sec-grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════
   HERO PHONE MOCKUP — Tap-to-Pay screen (HTML/CSS, not an image)
   ═══════════════════════════════════════════════════════════════ */
.tp-phone-mockup {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 19;
  filter:
    drop-shadow(0 26px 48px rgba(6,39,67,0.22))
    drop-shadow(0 6px 14px rgba(6,39,67,0.10));
  transition: transform 0.35s ease;
}
.tp-phone-mockup:hover { transform: translateY(-4px); }

.tp-phone-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0d0d10;
  border-radius: 42px;
  padding: 12px;
  box-shadow:
    inset 0 0 0 1.5px #2a2a2f,
    inset 0 0 0 3px #0d0d10;
}
.tp-phone-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 22px;
  background: #0d0d10;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.tp-phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 32px;
  background:
    radial-gradient(120% 60% at 50% 20%, rgba(60,80,140,0.28), transparent 60%),
    radial-gradient(80% 50% at 50% 55%, rgba(30,60,140,0.22), transparent 60%),
    #05060a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 46px 20px 28px;
  color: #fff;
}

/* Status bar */
.tp-status-bar {
  position: absolute;
  top: 18px; left: 24px; right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  z-index: 3;
}
.tp-time { letter-spacing: 0.02em; }
.tp-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
}
.tp-status-icons svg { height: 11px; width: auto; fill: currentColor; }

/* NFC tap area */
.tp-nfc-area {
  margin-top: 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.tp-nfc-ico {
  width: 62px; height: 62px;
  color: rgba(200,215,255,0.85);
  animation: tpNfcPulse 2.4s ease-in-out infinite;
}
.tp-nfc-ico svg { width: 100%; height: 100%; }
.tp-nfc-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(230,235,250,0.85);
  letter-spacing: 0.01em;
}
@keyframes tpNfcPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}

/* Invoice card */
.tp-inv-card {
  margin-top: auto;
  margin-bottom: 18px;
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 18px 16px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(6px);
}
.tp-inv-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4a7bff 0%, #2b57d9 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(58,105,236,0.35);
}
.tp-inv-ico svg { width: 22px; height: 22px; }
.tp-inv-id {
  font-size: 12px;
  color: rgba(230,235,250,0.75);
  letter-spacing: 0.02em;
}
.tp-inv-amount {
  font-size: 34px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  margin-top: 2px;
}

/* Close button */
.tp-close-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}
.tp-close-btn svg { width: 16px; height: 16px; }

/* Neutralize the old .tp-hero img rules for the new mockup — no aspect-ratio/cover cropping */
.tp-hero .ip-hero-right .tp-phone-mockup { object-fit: initial; aspect-ratio: 12 / 19; border-radius: 42px; }

@media (max-width: 560px) {
  .tp-phone-mockup { max-width: 260px; }
  .tp-inv-amount { font-size: 30px; }
}
