/* ============================================================
   PRIME PAY SOLUTION — Design System
   Clean & bright, Square-inspired. Inter typeface, generous
   white space, bold black headlines, electric-blue accent.
   ============================================================ */

:root {
  --blue: #0055ff;
  --blue-dark: #0041c4;
  --blue-light: #e8efff;
  --ink: #0b0d17;
  --ink-soft: #3d4152;
  --gray: #6b7080;
  --gray-light: #f5f6f8;
  --border: #e4e6eb;
  --white: #ffffff;
  --green: #00b23b;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 8px 30px rgba(11, 13, 23, 0.08);
  --shadow-lg: 0 20px 60px rgba(11, 13, 23, 0.12);
  --max-w: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 640px; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--blue); margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(11,13,23,0.25); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); box-shadow: 0 10px 24px rgba(0,85,255,0.3); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-ghost { color: var(--blue); background: transparent; padding: 14px 12px; }
.btn-ghost:hover { text-decoration: underline; transform: none; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--blue) 0%, #4d8dff 100%);
  display: grid; place-items: center; color: #fff; font-size: 1rem; font-weight: 800;
}
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.95rem;
  white-space: nowrap;
  padding: 8px 14px; border-radius: 8px; transition: background 0.15s, color 0.15s;
}
.nav-links a:hover, .nav-links a.active { background: var(--gray-light); color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 10px 20px; font-size: 0.92rem; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hero .lead { margin: 22px 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.88rem; color: var(--gray); }

/* Decorative hero panel (pure CSS illustration) */
.hero-visual {
  position: relative; border-radius: var(--radius-lg); min-height: 420px;
  background: linear-gradient(160deg, var(--blue-light) 0%, #f0f4ff 60%, #fdfdff 100%);
  overflow: hidden; box-shadow: var(--shadow);
}
.float-card {
  position: absolute; background: var(--white); border-radius: 14px; padding: 18px 22px;
  box-shadow: var(--shadow-lg); font-size: 0.9rem; animation: floaty 5s ease-in-out infinite;
}
.float-card .big { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.float-card .tag { font-size: 0.75rem; font-weight: 700; color: var(--green); }
.fc-1 { top: 12%; left: 8%; animation-delay: 0s; }
.fc-2 { top: 42%; right: 10%; animation-delay: 1.2s; }
.fc-3 { bottom: 10%; left: 16%; animation-delay: 2.4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--gray-light); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .lead { margin: 16px auto 0; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }
.card .card-link { display: inline-block; margin-top: 16px; color: var(--blue); font-weight: 600; text-decoration: none; }
.card .card-link:hover { text-decoration: underline; }

.icon-chip {
  width: 52px; height: 52px; border-radius: 14px; background: var(--blue-light);
  display: grid; place-items: center; color: var(--blue);
}
.icon-chip svg { width: 26px; height: 26px; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--ink); color: var(--white); border-radius: var(--radius-lg); padding: 56px 48px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-num { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.stat-num span { color: #7aa5ff; }
.stat-label { color: #a9adbd; font-size: 0.92rem; margin-top: 6px; }

/* ---------- Pricing ---------- */
.pricing-hero { text-align: center; padding: 88px 0 40px; }
.pricing-hero .lead { margin: 20px auto 0; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; margin-top: 48px; }
.plan {
  position: relative; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 32px; display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan.featured { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); }
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 5px 16px; border-radius: 999px; letter-spacing: 0.04em; white-space: nowrap;
}
.plan-name { font-size: 1.1rem; font-weight: 700; }
.plan-price { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 4px; }
.plan-price small { font-size: 1rem; font-weight: 500; color: var(--gray); }
.plan-desc { color: var(--ink-soft); font-size: 0.94rem; margin: 12px 0 24px; min-height: 66px; }
.plan .btn { justify-content: center; }
.plan-fees { margin: 24px 0 8px; padding-top: 20px; border-top: 1px solid var(--border); }
.plan-fees h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray); margin-bottom: 12px; }
.fee-row { display: flex; justify-content: space-between; font-size: 0.92rem; padding: 6px 0; }
.fee-row b { font-weight: 700; }
.plan-features { list-style: none; margin-top: 16px; }
.plan-features li { display: flex; gap: 10px; padding: 8px 0; font-size: 0.94rem; color: var(--ink-soft); }
.plan-features li::before { content: "✓"; color: var(--green); font-weight: 800; flex: none; }
.plan-features li.inherit { font-weight: 700; color: var(--ink); }
.plan-features li.inherit::before { content: "＋"; color: var(--blue); }

.custom-band {
  margin-top: 32px; background: var(--gray-light); border-radius: var(--radius-lg);
  padding: 40px 48px; display: flex; justify-content: space-between; align-items: center; gap: 32px;
}
.custom-band h3 { font-size: 1.4rem; }
.custom-band p { color: var(--ink-soft); max-width: 640px; margin-top: 8px; }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; background: var(--white); min-width: 760px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; font-size: 0.94rem; border-bottom: 1px solid var(--border); }
.compare thead th { position: sticky; top: 72px; background: var(--white); font-weight: 700; border-bottom: 2px solid var(--ink); }
.compare thead th:not(:first-child), .compare td:not(:first-child) { text-align: center; }
.compare .group td {
  background: var(--gray-light); font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft);
}
.compare .yes { color: var(--green); font-weight: 800; }
.compare .no { color: #c3c7d1; }
.compare td small { color: var(--gray); display: block; font-size: 0.8rem; }

/* ---------- Filter pills ---------- */
.pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.pill {
  padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--white); font-weight: 600; font-size: 0.92rem; cursor: pointer;
  transition: all 0.15s ease; color: var(--ink-soft); font-family: inherit;
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.active { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 6px 0; }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.05rem; padding: 18px 36px 18px 4px;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--blue); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); padding: 0 4px 20px; }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; }
.split.reverse .split-visual { order: 2; }
.split h2 { margin-bottom: 16px; }
.split p { color: var(--ink-soft); margin-bottom: 12px; }
.split ul { list-style: none; margin: 18px 0; }
.split ul li { display: flex; gap: 10px; padding: 7px 0; color: var(--ink-soft); }
.split ul li::before { content: "✓"; color: var(--green); font-weight: 800; flex: none; }
.split-visual {
  border-radius: var(--radius-lg); min-height: 360px;
  background: linear-gradient(150deg, var(--blue-light), #f6f8ff);
  display: grid; place-items: center; box-shadow: var(--shadow); overflow: hidden;
}
.split-visual .device {
  background: var(--ink); border-radius: 20px; padding: 14px; box-shadow: var(--shadow-lg);
  transform: rotate(-3deg);
}
.split-visual .device-screen {
  background: var(--white); border-radius: 12px; width: 240px; height: 300px; padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.skeleton { background: var(--gray-light); border-radius: 6px; height: 14px; }
.skeleton.w60 { width: 60%; } .skeleton.w80 { width: 80%; } .skeleton.w40 { width: 40%; }
.skeleton.tall { height: 80px; background: var(--blue-light); }
.skeleton.btnrow { height: 40px; background: var(--blue); margin-top: auto; }

/* ---------- Hardware cards ---------- */
.hw-card { text-align: center; }
.hw-visual {
  height: 250px; border-radius: var(--radius); margin-bottom: 22px;
  background: linear-gradient(160deg, var(--gray-light), #fff);
  display: grid; place-items: center; border: 1px solid var(--border);
}
.hw-price { font-weight: 800; font-size: 1.15rem; margin-top: 8px; }
.hw-price small { color: var(--gray); font-weight: 500; }

/* ---------- POS partner cards ---------- */
.pos-visual { position: relative; overflow: hidden; }
.pos-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 2px; background: var(--white); border-radius: var(--radius);
  --s: 1.14;
  transform: scale(var(--s));
  animation: product-float 4.5s ease-in-out infinite;
}
.hw-card:hover .pos-visual img { --s: 1.26; }
@keyframes product-float {
  0%, 100% { transform: scale(var(--s)) translateY(0); }
  50% { transform: scale(var(--s)) translateY(-9px); }
}
/* product split rows (image one side, details the other) */
.split-visual.product { position: relative; overflow: hidden; }
.split-visual.product img {
  --s: 1; width: 80%; max-height: 82%; object-fit: contain;
  transform: scale(var(--s));
  animation: product-float 4.5s ease-in-out infinite;
}
.split-visual.product:hover img { --s: 1.08; }
.split.reverse .split-visual.product img { animation-delay: 2.2s; }
.split .badge-row { justify-content: flex-start; margin: 0 0 6px; }

/* stagger the floating so cards don't bob in unison */
.grid-4 .card:nth-child(2) .pos-visual img, .grid-3 .card:nth-child(2) .pos-visual img { animation-delay: 1.1s; }
.grid-4 .card:nth-child(3) .pos-visual img, .grid-3 .card:nth-child(3) .pos-visual img { animation-delay: 2.2s; }
.grid-4 .card:nth-child(4) .pos-visual img { animation-delay: 3.3s; }
@media (prefers-reduced-motion: reduce) {
  .pos-visual img, .float-card { animation: none; }
}
.brand-fallback { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink); }
.brand-fallback span { color: var(--blue); }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 12px 0 4px; }
.mini-badge {
  font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--blue-light); color: var(--blue-dark);
}

/* ---------- Testimonials ---------- */
.quote-card { background: var(--white); border-radius: var(--radius); padding: 32px; border: 1px solid var(--border); }
.quote-card blockquote { font-size: 1.02rem; color: var(--ink-soft); font-style: italic; }
.quote-who { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--blue), #7aa5ff);
  color: #fff; display: grid; place-items: center; font-weight: 700;
}
.quote-who b { display: block; font-size: 0.95rem; }
.quote-who span { font-size: 0.85rem; color: var(--gray); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--ink) 0%, #16204a 60%, var(--blue-dark) 100%);
  border-radius: var(--radius-lg); padding: 72px 48px; text-align: center; color: var(--white);
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: #b8bdd0; margin: 16px auto 32px; max-width: 560px; }
.cta-banner .btn-primary { background: var(--white); color: var(--ink); }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.88rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 0.96rem; font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,85,255,0.12);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #a9adbd; margin-top: 88px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 48px; }
.footer-grid h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a { color: #a9adbd; text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--white); }
.footer-brand p { font-size: 0.9rem; max-width: 280px; margin-top: 14px; }
.footer-bottom a { color: #a9adbd; text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #23273a; padding: 24px 0; display: flex; justify-content: space-between; font-size: 0.85rem; flex-wrap: wrap; gap: 12px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .grid-3, .grid-4, .grid-2, .plans, .form-grid { grid-template-columns: 1fr; }
  .split.reverse .split-visual { order: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-cta .btn-outline { display: none; }
  .nav { flex-wrap: wrap; height: auto; padding: 12px 0 10px; row-gap: 6px; }
  .nav-links {
    order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap;
    white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 6px 10px; font-size: 0.9rem; }
  .custom-band { flex-direction: column; text-align: center; }
  .hero { padding: 56px 0 40px; }
  .section { padding: 56px 0; }
  .hero-visual { min-height: 320px; }
}

/* ---------- Flyer gallery ---------- */
.flyer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.flyer-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column;
}
.flyer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.flyer-thumb { cursor: zoom-in; background: var(--gray-light); position: relative; }
.flyer-thumb img { width: 100%; display: block; }
.flyer-thumb::after {
  content: "Click to enlarge"; position: absolute; bottom: 10px; right: 10px;
  background: rgba(11,13,23,0.75); color: #fff; font-size: 0.72rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; opacity: 0; transition: opacity 0.2s;
}
.flyer-thumb:hover::after { opacity: 1; }
.flyer-info { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.flyer-info h3 { font-size: 1.05rem; }
.flyer-info p { color: var(--ink-soft); font-size: 0.9rem; flex: 1; }
.flyer-actions { display: flex; gap: 10px; margin-top: 12px; }
.flyer-actions .btn { padding: 9px 18px; font-size: 0.85rem; }
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 999; background: rgba(11,13,23,0.92);
  align-items: center; justify-content: center; padding: 32px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute; top: 20px; right: 28px; font-size: 2.2rem; color: #fff;
  background: none; border: none; cursor: pointer; line-height: 1;
}
