/* =====================================================================
   A1Topup inner pages - extends a1-home.css (load it AFTER a1-home.css).
   Every page reuses the home page's own classes (hm-hero, hm-sec, hm-card,
   hm-plan, hm-faq, hm-btn ...), so colours, fonts and spacing come from the
   home theme. This file only adds the pieces the home page did not need:
   breadcrumb, content layouts, tables, code, tabs, review slider,
   screenshot gallery and the pricing switch.
   Colours here are derived from currentColor so they follow the theme
   on both light and dark sections.
   ===================================================================== */

.pg { overflow-x: clip; }
.pg img { max-width: 100%; height: auto; }
.pg :where(h1, h2, h3, h4) { overflow-wrap: anywhere; }
.pg :where(p, li, td, th, dd, summary) { overflow-wrap: break-word; }

/* ---------- page hero (shorter than the home hero) ---------- */
.hm-hero.pg-hero { min-height: 0; }
.pg-hero .hm-hero__inner { align-items: center; }
.pg-hero--solo .hm-hero__inner { grid-template-columns: minmax(0, 1fr); max-width: 60rem; }
.pg-hero .hm-hero__lead { max-width: 62ch; }
.pg-hero h1 { text-wrap: balance; }

.pg-crumbs { margin: 0 0 1.1rem; font-size: .84rem; }
.pg-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .1rem; }
.pg-crumbs li { display: inline-flex; align-items: center; opacity: .82; }
.pg-crumbs li + li::before { content: "/"; margin: 0 .5rem; opacity: .55; }
.pg-crumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.pg-crumbs a:hover { border-bottom-color: currentColor; }
.pg-crumbs [aria-current] { opacity: 1; font-weight: 600; }

/* hero side panel: original hero illustration or a "at a glance" list */
.pg-hero__media { display: grid; place-items: center; }
.pg-hero__media img { max-height: 360px; width: auto; object-fit: contain; }
.pg-glance { width: 100%; max-width: 26rem; margin-inline: auto; padding: 1.5rem; border-radius: 20px;
  background: color-mix(in srgb, currentColor 7%, transparent); border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pg-glance h2 { font-size: 1rem; margin: 0 0 .9rem; font-weight: 700; letter-spacing: 0; }
.pg-glance ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.pg-glance li { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.45; font-size: .95rem; }
.pg-glance li .hm-ico { flex: none; margin-top: .15rem; }
.pg-glance__foot { margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); font-size: .9rem; opacity: .9; }
.pg-glance__foot a { color: inherit; font-weight: 700; }

/* ---------- generic content ---------- */
.pg-block + .pg-block { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.pg-prose { max-width: 72ch; margin-inline: auto; line-height: 1.7; }
.pg-prose > :first-child { margin-top: 0; }
.pg-prose :where(h3) { margin: 1.8rem 0 .6rem; font-size: 1.2rem; }
.pg-prose :where(h4) { margin: 1.4rem 0 .5rem; font-size: 1.05rem; }
.pg-prose :where(p) { margin: 0 0 1rem; }
.pg-prose :where(ul, ol) { margin: 0 0 1.1rem; padding-left: 1.25rem; }
.pg-prose :where(li) { margin: .35rem 0; }
.pg-prose a { text-decoration: underline; text-underline-offset: 2px; }
.pg-center { text-align: center; }
.pg-center.pg-prose :where(ul, ol) { text-align: left; display: inline-block; }

/* checklist */
.pg-list { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: .65rem 1.5rem; max-width: 62rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.pg-list > li { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.5; }
.pg-list > li > .hm-ico { flex: none; margin-top: .2rem; }
.pg-list--steps { counter-reset: pgstep; }

/* card grids (cards themselves use .hm-card from the home theme) */
.pg-grid { display: grid; gap: clamp(1rem, 2vw, 1.4rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); }
.pg-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.pg-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.pg-grid > .hm-card { height: 100%; }
div.hm-card, article.hm-card { cursor: default; }
.hm-card :where(p, ul, ol) { margin: 0 0 .6rem; }
.hm-card :where(p:last-child, ul:last-child) { margin-bottom: 0; }
.hm-card ul { padding-left: 1.1rem; }
.hm-card .pg-card__img { display: block; height: 44px; width: auto; max-width: 140px; object-fit: contain; margin-bottom: .9rem; }
.hm-card .pg-card__photo { display: block; width: calc(100% + 0px); border-radius: 12px; margin-bottom: 1rem; aspect-ratio: 16 / 10; object-fit: cover; }
.hm-card .pg-card__meta { display: block; font-size: .88rem; opacity: .75; margin-top: .4rem; }
.hm-card .pg-card__big { display: block; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.1; margin: .2rem 0 .35rem; letter-spacing: -.01em; }
.pg-card--stat { text-align: center; }

/* two-column: text + visual */
.pg-split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.pg-split__media img { border-radius: 16px; display: block; margin-inline: auto; }
.pg-split .pg-prose { margin-inline: 0; }

/* figures */
.pg-figure { margin: 0 auto; text-align: center; max-width: 60rem; }
.pg-figure img { border-radius: 16px; display: inline-block; }
.pg-figure figcaption { font-size: .9rem; opacity: .75; margin-top: .6rem; }
.pg-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; justify-content: center; align-items: center; }
.pg-logos img { height: 40px; width: auto; object-fit: contain; }

/* buttons row inside content */
.pg .hm-cta.pg-cta { justify-content: center; flex-wrap: wrap; }

/* ---------- tables ---------- */
.pg-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent); max-width: 100%; }
.pg-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 32rem; }
.pg-table--narrow { min-width: 0; }
.pg-table :where(th, td) { padding: .8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
.pg-table thead th { font-weight: 700; background: color-mix(in srgb, currentColor 6%, transparent); white-space: nowrap; }
.pg-table tbody tr:last-child :where(th, td) { border-bottom: 0; }
.pg-table tbody tr:nth-child(even) { background: color-mix(in srgb, currentColor 2.5%, transparent); }
.pg-table td img, .pg-op img { height: 28px; width: 28px; object-fit: contain; vertical-align: middle; margin-right: .55rem; border-radius: 6px; }
.pg-table .pg-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pg-table .pg-hot { background: color-mix(in srgb, currentColor 5%, transparent); }
.pg-table .pg-yes { font-weight: 700; }
.pg-table .pg-no { opacity: .45; }
.pg-table-note { font-size: .88rem; opacity: .75; margin: .8rem 0 0; text-align: center; }

/* ---------- code / API docs ---------- */
.pg-code { position: relative; margin: 0 0 1rem; }
.pg-code pre { margin: 0; padding: 1.1rem 1.2rem; border-radius: 14px; overflow-x: auto; background: #0f172a; color: #e2e8f0;
  font: 500 .86rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; }
.pg-code__copy { position: absolute; top: .55rem; right: .55rem; font: 600 .75rem/1 inherit; padding: .45rem .7rem; border-radius: 8px; cursor: pointer;
  color: #e2e8f0; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.pg-code__copy:hover { background: rgba(255,255,255,.18); }
.pg code:not(pre code) { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; padding: .12em .4em; border-radius: 6px;
  background: color-mix(in srgb, currentColor 8%, transparent); overflow-wrap: anywhere; }
.pg-endpoint { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .8rem 1rem; border-radius: 12px; margin: 0 0 1rem;
  border: 1px dashed color-mix(in srgb, currentColor 25%, transparent); }

/* ---------- tabs + segmented switch ---------- */
.pg-seg { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; width: fit-content; max-width: 100%; margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
  padding: .35rem; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 16%, transparent); background: color-mix(in srgb, currentColor 4%, transparent); }
.pg-seg :where(button) { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  font-size: .95rem; padding: .65rem 1.2rem; border-radius: 999px; margin: 0; box-shadow: none; transition: background-color .2s, color .2s, opacity .2s; }
.pg-seg :where(button:not(.hm-btn--solid)) { background: transparent; color: inherit; opacity: .8; }
.pg-seg :where(button:not(.hm-btn--solid)):hover { opacity: 1; background: color-mix(in srgb, currentColor 6%, transparent); }
/* JS gives the selected button the home theme's solid button style (hm-btn hm-btn--solid); without JS this tint is used */
.pg-seg :where(button[aria-selected="true"]:not(.hm-btn--solid)) { opacity: 1; background: color-mix(in srgb, currentColor 14%, transparent); }
.pg-seg button:focus-visible, .pg-tabs__list button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.pg-tabs__list { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1rem; scrollbar-width: thin; }
.pg-tabs__list button { flex: none; cursor: pointer; font: inherit; font-weight: 600; font-size: .92rem; padding: .6rem 1rem; border-radius: 10px;
  color: inherit; background: transparent; border: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.pg-tabs__list button[aria-selected="true"] { background: color-mix(in srgb, currentColor 10%, transparent); border-color: color-mix(in srgb, currentColor 35%, transparent); }
.pg-tabs__panel { padding: clamp(1rem, 2.5vw, 1.5rem); border-radius: 16px; border: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
.pg-tabs__panel[hidden], .pg-price[hidden], .pg-shots__set[hidden] { display: none !important; }

/* plan extras (cards use .hm-plan from the home theme) */
.pg-plan__note { margin: -.25rem 0 1rem; font-size: .88rem; opacity: .75; }
.pg-feats { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .55rem; text-align: left; }
.pg-feats li { display: flex; gap: .55rem; align-items: flex-start; line-height: 1.45; font-size: .95rem; }
.pg-feats li .hm-ico { flex: none; margin-top: .15rem; }
.pg-feats li.pg-feats--off { opacity: .5; text-decoration: line-through; }
.hm-plan .pg-feats + .hm-btn, .hm-plan .hm-plan__rates + .hm-btn { margin-top: auto; }
.pg-price__foot { text-align: center; margin: 1.5rem 0 0; font-size: .92rem; opacity: .85; }

/* ---------- review slider ---------- */
.pg-rating-sum { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; margin-top: .75rem !important; font-size: .95rem; }
.pg-rating-sum a { color: inherit; }
.pg-stars { display: inline-flex; gap: 2px; line-height: 0; }
.pg-stars svg { width: 18px; height: 18px; fill: #f5a524; }
.pg-stars i svg { fill: color-mix(in srgb, currentColor 18%, transparent); }
.pg-stars i.on svg { fill: #f5a524; }
.pg-slider { position: relative; }
.pg-slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: min(100%, 23rem); gap: clamp(1rem, 2vw, 1.4rem);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 2px; padding: .35rem 2px 1.1rem; scrollbar-width: none; overscroll-behavior-x: contain; }
.pg-slider__track::-webkit-scrollbar { display: none; }
.pg-slider__track:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 12px; }
.pg-review { scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border-radius: 20px;
  background: var(--pg-card-bg, #fff); color: var(--pg-card-fg, #1e293b); border: 1px solid rgba(15, 23, 42, .08); box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .35); }
.pg-review blockquote { margin: 0; flex: 1; }
.pg-review blockquote p { margin: 0; line-height: 1.65; font-size: .98rem; }
.pg-review figcaption { display: flex; gap: .75rem; align-items: center; padding-top: 1rem; border-top: 1px solid rgba(15, 23, 42, .08); }
.pg-review figcaption img, .pg-review__av { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; }
.pg-review__av { display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: rgba(15, 23, 42, .06); }
.pg-review figcaption b { display: block; font-size: .98rem; }
.pg-review figcaption small { display: block; opacity: .7; font-size: .84rem; }
.pg-slider__nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .5rem; }
.pg-slider__btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: inherit; background: transparent;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.pg-slider__btn:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.pg-slider__btn:disabled { opacity: .35; cursor: default; }
.pg-slider__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pg-slider__dots { display: flex; gap: .4rem; }
.pg-slider__dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .22; transition: opacity .2s, width .2s; }
.pg-slider__dots i.on { opacity: .8; width: 20px; border-radius: 4px; }
.pg-review--static { max-width: 44rem; margin: 0 auto; }

/* ---------- software screenshots ---------- */
.pg-shots__track { display: flex; gap: clamp(1rem, 2vw, 1.5rem); overflow-x: auto; scroll-snap-type: x mandatory; padding: .4rem 2px 1.2rem; scrollbar-width: thin; }
.pg-shot { margin: 0; flex: none; scroll-snap-align: start; text-align: center; }
.pg-shots__set--app .pg-shot { width: clamp(11rem, 44vw, 15rem); }
.pg-shots__set--admin .pg-shot { width: min(88vw, 40rem); }
.pg-shot__frame { display: block; overflow: hidden; background: #0f172a; box-shadow: 0 18px 40px -22px rgba(15, 23, 42, .6); transition: transform .25s; }
.pg-shot__frame:hover { transform: translateY(-3px); }
.pg-shots__set--app .pg-shot__frame { border-radius: 28px; padding: 8px; }
.pg-shots__set--app .pg-shot__frame img { border-radius: 21px; aspect-ratio: 9 / 19; object-fit: cover; object-position: top; width: 100%; }
.pg-shots__set--admin .pg-shot__frame { border-radius: 14px; padding: 26px 0 0; position: relative; }
.pg-shots__set--admin .pg-shot__frame::before { content: ""; position: absolute; top: 10px; left: 12px; width: 8px; height: 8px; border-radius: 50%;
  background: #f87171; box-shadow: 14px 0 0 #fbbf24, 28px 0 0 #34d399; }
.pg-shots__set--admin .pg-shot__frame img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.pg-shot figcaption { margin-top: .7rem; font-size: .9rem; font-weight: 600; }
.pg-shots__cta { justify-content: center; margin-top: 1rem; }
.pg-zoom { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); max-height: 94vh; }
.pg-zoom::backdrop { background: rgba(2, 6, 23, .82); }
.pg-zoom img { display: block; max-width: 100%; max-height: 90vh; width: auto; height: auto; border-radius: 12px; margin: auto; }
.pg-zoom button { position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.6rem; line-height: 1; background: #fff; color: #0f172a; }

/* ---------- legal / long-read pages ---------- */
.pg-doc { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { .pg-doc { grid-template-columns: 16rem minmax(0, 1fr); align-items: start; } }
.pg-toc { font-size: .92rem; }
@media (min-width: 992px) { .pg-toc { position: sticky; top: 6rem; } }
.pg-toc details { border-radius: 14px; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); padding: .9rem 1rem; }
.pg-toc summary { font-weight: 700; cursor: pointer; }
.pg-toc ol { margin: .8rem 0 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.pg-toc a { color: inherit; text-decoration: none; opacity: .82; }
.pg-toc a:hover { opacity: 1; text-decoration: underline; }
.pg-doc .pg-prose { max-width: 75ch; margin: 0; }
.pg-doc .pg-prose h2 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin: 2.2rem 0 .8rem; scroll-margin-top: 6rem; }
.pg-doc .pg-prose h2:first-child { margin-top: 0; }
.pg-updated { font-size: .9rem; opacity: .75; margin: 0 0 1.5rem; }

/* ---------- misc ---------- */
.pg-note { max-width: 62rem; margin: 0 auto; padding: 1rem 1.25rem; border-radius: 14px; line-height: 1.6; font-size: .95rem;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent); background: color-mix(in srgb, currentColor 3%, transparent); }
.pg-note a { font-weight: 700; }
.pg-formwrap { max-width: 44rem; margin: 0 auto; }

@media (max-width: 575.98px) {
  .pg-hero .hm-cta { flex-direction: column; align-items: stretch; }
  .pg-hero .hm-cta .hm-btn { justify-content: center; }
  .pg-table :where(th, td) { padding: .65rem .75rem; }
  .pg-seg { width: 100%; border-radius: 16px; }
  .pg-seg button { flex: 1 1 auto; justify-content: center; border-radius: 12px; padding: .6rem .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-shot__frame, .pg-seg button, .pg-slider__dots i { transition: none; }
  .pg-slider__track, .pg-shots__track { scroll-behavior: auto; }
}

/* grid column counts that divide evenly (6 cards -> 3 + 3, 8 -> 4 + 4) */
@media (min-width: 992px) {
  .pg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pg-steps--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 600px) and (max-width: 991.98px) {
  .pg-grid--3, .pg-grid--4, .pg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pg-grid--solo { grid-template-columns: minmax(0, 46rem); justify-content: center; }
.hm-card .hm-cta { margin-top: 1rem; }
.pg .hm-steps { margin: 0; }

/* =====================================================================
   Software overview mockup (laptop admin panel + phone app).
   The stage is a size container: every size inside is in cqw, so the
   whole drawing scales like an image but stays razor sharp.
   Colours here are the product's own UI colours (purple app, light panel).
   ===================================================================== */
.pg-show__stage { position: relative; container-type: inline-size; width: 100%; max-width: 68rem; margin: 0 auto clamp(2rem, 4vw, 3rem);
  aspect-ratio: 16 / 8.6; color: #1e1b4b; font-family: inherit; }
.pg-show__glow { position: absolute; inset: 8% 6% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 58, 237, .22), rgba(14, 165, 233, .12) 60%, transparent);
  filter: blur(2cqw); }
.pg-mi { width: 1em; height: 1em; display: block; }
.pg-c-g { --c: #16a34a; } .pg-c-r { --c: #dc2626; } .pg-c-o { --c: #f97316; } .pg-c-b { --c: #2563eb; } .pg-c-v { --c: #7c3aed; } .pg-c-y { --c: #eab308; } .pg-c-p { --c: #a855f7; }

/* laptop */
.pg-lap { position: absolute; left: 0; top: 5%; width: 69%; }
.pg-lap__screen { position: relative; aspect-ratio: 16 / 10; background: #f5f3ff; border: 1.1cqw solid #1f2937; border-bottom-width: 1.6cqw; border-radius: 1.6cqw 1.6cqw .4cqw .4cqw;
  overflow: hidden; box-shadow: 0 2cqw 4cqw -2cqw rgba(15, 23, 42, .45); display: flex; flex-direction: column; }
.pg-lap__base { height: 1.4cqw; margin: 0 -5%; background: linear-gradient(#d1d5db, #9ca3af); border-radius: 0 0 1.4cqw 1.4cqw; position: relative; }
.pg-lap__base::before { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: .5cqw; background: #6b7280; border-radius: 0 0 .6cqw .6cqw; }
.pg-lap__nav { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; padding: 1.3cqw 2cqw; background: #fff; border-bottom: .1cqw solid #ede9fe; }
.pg-lap__logo { display: flex; align-items: center; gap: .6cqw; font-weight: 800; font-size: 1.35cqw; color: #312e81; white-space: nowrap; }
.pg-lap__logo i { width: 1.7cqw; height: 1.7cqw; border-radius: .4cqw; background: linear-gradient(135deg, #2563eb, #7c3aed); display: block; }
.pg-lap__menu { display: flex; gap: 1.3cqw; font-size: .82cqw; color: #475569; font-style: normal; white-space: nowrap; overflow: hidden; }
.pg-lap__menu em { font-style: normal; } .pg-lap__menu b { color: #312e81; }
.pg-lap__body { flex: 1; padding: 2cqw; display: flex; flex-direction: column; gap: 1.6cqw; }
.pg-lap__tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9cqw; padding: 1.3cqw; background: #fff; border-radius: 1cqw; border-top: .35cqw solid #7c3aed;
  box-shadow: 0 .6cqw 1.6cqw -.8cqw rgba(76, 29, 149, .35); }
.pg-lap__tiles span { display: flex; flex-direction: column; align-items: center; gap: .5cqw; padding: 1cqw .3cqw; border: .1cqw solid #e5e7eb; border-radius: .7cqw; font-size: 1.5cqw; color: #1e1b4b; }
.pg-lap__tiles small { font-size: .72cqw; font-weight: 600; text-align: center; line-height: 1.2; }
.pg-lap__filter { display: flex; align-items: center; gap: .8cqw; font-size: .8cqw; }
.pg-lap__filter small { font-weight: 700; font-size: .8cqw; }
.pg-lap__date { padding: .6cqw 1cqw; background: #fff; border: .1cqw solid #e5e7eb; border-radius: .5cqw; width: 14cqw; color: #94a3b8; }
.pg-lap__btn { padding: .6cqw 1.1cqw; border-radius: .5cqw; background: #6d28d9; color: #fff; font-weight: 700; }
.pg-lap__btn--2 { background: #2563eb; }
.pg-lap__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1cqw; }
.pg-lap__stats span { position: relative; background: #fff; border-radius: 1cqw; padding: 1.2cqw; border-top: .3cqw solid var(--c); box-shadow: 0 .6cqw 1.4cqw -.8cqw rgba(15, 23, 42, .3);
  display: grid; grid-template-columns: auto 1fr; column-gap: .8cqw; align-items: center; }
.pg-lap__stats i { grid-row: span 2; width: 2.6cqw; height: 2.6cqw; border-radius: .6cqw; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 1.4cqw; }
.pg-lap__stats small { font-size: .62cqw; text-transform: uppercase; letter-spacing: .03em; color: #64748b; }
.pg-lap__stats b { font-size: 1.45cqw; line-height: 1.1; }
.pg-lap__stats em { grid-column: 1 / -1; justify-self: end; font-style: normal; font-size: .6cqw; color: #6d28d9; margin-top: .9cqw; }

/* phone */
.pg-phone { position: absolute; right: 2%; top: 0; width: 25%; aspect-ratio: 9 / 18.6; background: #111827; border-radius: 3.6cqw; padding: .7cqw;
  box-shadow: 0 3cqw 5cqw -2.5cqw rgba(15, 23, 42, .6), inset 0 0 0 .25cqw #374151; }
.pg-phone::before { content: ""; position: absolute; top: 1.3cqw; left: 50%; transform: translateX(-50%); width: 6cqw; height: 1.5cqw; background: #111827; border-radius: 1cqw; z-index: 2; }
.pg-phone__screen { height: 100%; border-radius: 3cqw; overflow: hidden; background: #f8fafc; display: flex; flex-direction: column; font-size: .8cqw; }
.pg-phone__top { background: linear-gradient(150deg, #4c1d95, #7c3aed); color: #fff; padding: 3.4cqw 1.3cqw 1.2cqw; }
.pg-phone__top > small { display: block; font-size: .65cqw; opacity: .85; } .pg-phone__top > b { font-size: 1.05cqw; }
.pg-phone__bal { margin-top: 1cqw; background: #fff; color: #1e1b4b; border-radius: .9cqw; padding: .9cqw 1cqw; display: flex; justify-content: space-between; align-items: center; }
.pg-phone__bal small { display: block; font-size: .6cqw; color: #64748b; } .pg-phone__bal b { font-size: 1.45cqw; color: #15803d; }
.pg-phone__bal em { font-style: normal; font-size: .62cqw; font-weight: 700; color: #6d28d9; border: .1cqw solid #ddd6fe; border-radius: 99px; padding: .4cqw .7cqw; }
.pg-phone__note { margin: .8cqw 1.1cqw 0; padding: .6cqw .8cqw; font-size: .58cqw; line-height: 1.35; background: #fef3c7; color: #92400e; border-radius: .6cqw; }
.pg-phone__mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6cqw; margin: .8cqw 1.1cqw 0; }
.pg-phone__mini span { background: #fff; border: .1cqw solid #e5e7eb; border-radius: .6cqw; padding: .5cqw .6cqw; }
.pg-phone__mini small { display: block; font-size: .52cqw; color: #64748b; } .pg-phone__mini b { font-size: .75cqw; color: #6d28d9; }
.pg-phone__h { margin: 1cqw 1.1cqw .5cqw; font-weight: 800; font-size: .85cqw; }
.pg-phone__svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9cqw .4cqw; padding: 0 .9cqw; flex: 1; align-content: start; }
.pg-phone__svc span { display: flex; flex-direction: column; align-items: center; gap: .35cqw; }
.pg-phone__svc i { width: 2.7cqw; height: 2.7cqw; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 1.2cqw; box-shadow: 0 .4cqw .8cqw -.4cqw var(--c); }
.pg-phone__svc small { font-size: .5cqw; font-weight: 600; text-align: center; line-height: 1.15; }
.pg-phone__tab { display: flex; justify-content: space-around; align-items: center; padding: .8cqw .4cqw 1.2cqw; background: #fff; border-top: .1cqw solid #e5e7eb; font-size: .55cqw; color: #94a3b8; position: relative; }
.pg-phone__tab .on { color: #6d28d9; font-weight: 700; }
.pg-phone__fab { width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: #16a34a; margin-top: -2cqw; box-shadow: 0 .5cqw 1cqw -.3cqw rgba(22, 163, 74, .8); }

/* floating badges */
.pg-float { position: absolute; display: inline-flex; align-items: center; gap: .6cqw; padding: .9cqw 1.4cqw; border-radius: 99px; background: #fff; color: #1e1b4b; font-weight: 800; font-size: 1.15cqw;
  box-shadow: 0 1.2cqw 2.4cqw -1cqw rgba(30, 27, 75, .45); border: .1cqw solid rgba(124, 58, 237, .18); white-space: nowrap; }
.pg-float .pg-mi { font-size: 1.4cqw; color: #7c3aed; }
.pg-float--api { left: 66%; top: 36%; }
.pg-float--sec { left: 2%; bottom: 3%; } .pg-float--sec .pg-mi { color: #16a34a; }
.pg-float--com { right: 0; bottom: 6%; } .pg-float--com .pg-mi { color: #f97316; }
@media (prefers-reduced-motion: no-preference) {
  .pg-float { animation: pgFloat 6s ease-in-out infinite; }
  .pg-float--sec { animation-delay: -2s; } .pg-float--com { animation-delay: -4s; }
  @keyframes pgFloat { 50% { transform: translateY(-.8cqw); } }
}
.pg-show__points { margin-top: .5rem; }
.pg-show__sub { text-align: center; margin: clamp(2rem, 4vw, 3rem) 0 1.2rem; font-size: 1.2rem; }

/* small screens: phone gets relatively bigger so it stays readable */
@container (max-width: 560px) {
  .pg-lap { width: 76%; top: 12%; }
  .pg-phone { width: 32%; right: 0; }
  .pg-float--api { display: none; }
}
@media (max-width: 575.98px) { .pg-show__stage { aspect-ratio: 16 / 10.4; } }

/* inline video (retailer commission page) */
.pg-video-el { width: 100%; border-radius: 16px; background: #0f172a; aspect-ratio: 16 / 9; display: block; }
.pg-list--1 { grid-template-columns: minmax(0, 1fr); }
.pg-toprates { gap: .55rem !important; }
.pg-toprates li { justify-content: space-between; align-items: center !important; }
.pg-toprates b { font-size: 1.05rem; }
.pg-op { display: inline-flex; align-items: center; font-weight: 600; }
.pg-rates tbody th { font-weight: 600; white-space: nowrap; }
.pg-th-sub { display: block; font-weight: 500; opacity: .7; font-size: .8em; }
.pg-lap__table { background: #fff; border-radius: 1cqw; padding: 1cqw 1.3cqw; box-shadow: 0 .6cqw 1.4cqw -.8cqw rgba(15, 23, 42, .3); font-size: .78cqw; }
.pg-lap__table > b { display: block; font-size: .9cqw; margin-bottom: .5cqw; }
.pg-lap__table span { display: grid; grid-template-columns: 2fr 1.4fr 1fr auto; gap: 1cqw; padding: .55cqw 0; border-top: .1cqw solid #f1f5f9; align-items: center; }
.pg-lap__table i { font-style: normal; color: #334155; }
.pg-lap__table em { font-style: normal; font-weight: 700; font-size: .66cqw; padding: .2cqw .7cqw; border-radius: 99px; }
.pg-lap__table .ok { background: #dcfce7; color: #15803d; } .pg-lap__table .pe { background: #ffedd5; color: #c2410c; }
.pg-lap__body { gap: 1.3cqw; }
.pg-float--com { right: auto; left: 60%; bottom: 2%; }
.pg button.hm-btn { font-family: inherit; }
.pg-logos--named { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); gap: 1rem; }
.pg-logos--named li { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.1rem .8rem; border-radius: 16px; text-align: center; font-size: .9rem; font-weight: 600;
  background: var(--pg-card-bg, #fff); color: var(--pg-card-fg, #1e293b); border: 1px solid rgba(15, 23, 42, .08); }
.pg-logos--named img { height: 44px; width: auto; max-width: 100%; object-fit: contain; }
.pg-hero__shot { width: 100%; max-height: none !important; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(2, 6, 23, .7); }
.pg-roi { text-align: center; }
.pg-roi__out { margin: 0 0 .5rem; display: grid; gap: .2rem; }
.pg-roi__out b { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pg-roi__out span { opacity: .75; }
.pg-linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.pg-toprates small { font-weight: 400; opacity: .75; }
.pg .sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.pg-table-wrap { position: relative; }
.pg-glance > .pg-glance__foot { margin-top: 1.1rem; }
.pg-glance > h2 + ul { margin-top: 0; }

/* =====================================================================
   v3 additions: stat cards, chips, mini cards, key/value lists,
   consistent vertical rhythm, hero visuals (software mockup / API code window)
   ===================================================================== */

/* one spacing rule for everything stacked inside a section (fixes buttons touching / overlapping cards) */
.pg .hm-sec .hm-wrap > * + *:not(.hm-head) { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.pg .hm-sec .hm-wrap > .hm-head + * { margin-top: 0; }
.pg .hm-cta.pg-cta { margin-top: clamp(1.5rem, 3vw, 2rem); }
.pg-block + .hm-cta, .pg-grid + .hm-cta, .hm-plans + .hm-cta { margin-top: clamp(1.5rem, 3vw, 2rem) !important; }

/* stat cards: "10,000+ Active Businesses" */
.pg-stats { display: grid; gap: clamp(.8rem, 2vw, 1.25rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); max-width: 64rem; margin-inline: auto; }
.pg-stat { text-align: center; padding: clamp(1.1rem, 2.5vw, 1.6rem) 1rem; border-radius: 18px; background: var(--pg-card-bg, #fff); color: var(--pg-card-fg, #1e1b4b);
  border: 1px solid rgba(124, 58, 237, .14); box-shadow: 0 14px 30px -24px rgba(76, 29, 149, .45); }
.pg-stat b { display: block; font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.05; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(135deg, #6d28d9, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pg-stat span { display: block; margin-top: .4rem; font-size: .92rem; opacity: .75; }
.pg-stats__lead { text-align: center; font-weight: 700; margin: 0 0 1rem; }
.hm-sec--dark .pg-stat, .hm-final .pg-stat { background: rgba(255, 255, 255, .06); color: inherit; border-color: rgba(255, 255, 255, .14); }
.hm-sec--dark .pg-stat b { background: none; color: #fff; }

/* chips: "Recharge Stores · Distributors · ..." and short labels */
.pg-chips { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; max-width: 60rem; }
.pg-chips li { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  background: var(--pg-card-bg, #fff); color: var(--pg-card-fg, #1e1b4b); border: 1px solid rgba(124, 58, 237, .16); box-shadow: 0 6px 16px -12px rgba(76, 29, 149, .5); }
.pg-chips__e { font-size: 1.15rem; line-height: 1; }

/* mini cards with an emoji icon (role cards: Admin, Distributor, Retailer ...) */
.pg-mini { text-align: left; }
.pg-mini__e { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font-size: 1.4rem; margin-bottom: .8rem;
  background: rgba(124, 58, 237, .08); }
.pg-mini h3 { margin: 0 0 .3rem; }

/* key: value lines inside a card (demo logins) */
.pg-kv { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .45rem; }
.pg-kv li { padding: .55rem .8rem; border-radius: 10px; background: rgba(124, 58, 237, .06); font-size: .95rem; overflow-wrap: anywhere; }

/* ---------- hero visual: software (laptop + phone) ---------- */
.pg-hero__media .pg-show__stage { margin: 0; max-width: 100%; aspect-ratio: 16 / 10.5; }
.pg-hero__media .pg-show__glow { display: none; }
.pg-hero__media .pg-lap { width: 76%; top: 6%; }
.pg-hero__media .pg-phone { width: 29%; right: 0; top: 0; }
.pg-hero__media .pg-float--api { left: 62%; top: 40%; }

/* ---------- hero visual: API code window ---------- */
.pg-code-win { width: 100%; max-width: 34rem; margin-inline: auto; border-radius: 18px; overflow: hidden; background: #0f172a; color: #e2e8f0; text-align: left;
  box-shadow: 0 30px 60px -28px rgba(2, 6, 23, .8); border: 1px solid rgba(255, 255, 255, .08); }
.pg-code-win__bar { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; background: #111c33; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: .8rem; }
.pg-code-win__bar i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pg-code-win__bar i:nth-child(1) { background: #f87171; } .pg-code-win__bar i:nth-child(2) { background: #fbbf24; } .pg-code-win__bar i:nth-child(3) { background: #34d399; }
.pg-code-win__bar span { margin-left: .5rem; opacity: .7; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.pg-code-win pre { margin: 0; padding: 1.1rem 1.2rem; font: 500 clamp(.72rem, 1.6vw, .84rem)/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; white-space: pre; }
.pg-code-win .k { color: #c4b5fd; } .pg-code-win .s { color: #86efac; } .pg-code-win .n { color: #fcd34d; } .pg-code-win .c { color: #64748b; }
.pg-code-win__foot { display: flex; flex-wrap: wrap; gap: .5rem; padding: .8rem 1rem 1rem; border-top: 1px solid rgba(255, 255, 255, .06); }
.pg-code-win__foot span { font-size: .78rem; font-weight: 700; padding: .3rem .65rem; border-radius: 999px; background: rgba(52, 211, 153, .12); color: #6ee7b7; }
.pg-split__text > .pg-block + .pg-block { margin-top: 1rem; }
.pg-split__text .pg-list { grid-template-columns: minmax(0, 1fr); margin: 0; }
.pg-split__text .pg-prose { margin: 0; }
.pg-tail { text-align: center; }
.pg-tail .pg-prose { margin-inline: auto; }
/* numbered steps: keep every count on even rows (5 -> one row of 5, 6 -> 3 + 3, 8 -> 4 + 4) */
@media (min-width: 992px) {
  .pg-steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pg-steps--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pg-steps--7, .pg-steps--8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 600px) and (max-width: 991.98px) { .pg-steps--5, .pg-steps--6, .pg-steps--7, .pg-steps--8 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
