/* ============================================================
   ORBIPAY GATEWAYS PRIVATE LIMITED
   Corporate site stylesheet
   ------------------------------------------------------------
   1.  Design tokens
   2.  Reset & base
   3.  Layout primitives
   4.  Buttons
   5.  Header / navigation
   6.  Hero
   7.  Section: About + counters
   8.  Section: Solutions / cards
   9.  Section: Split layouts (acquiring, remittances, developers)
   10. Section: AePS (dark)
   11. Section: Bill pay tiles
   12. Section: USPs & industries
   12b. Section: Image gallery
   13. Section: Security badges
   14. Section: Code window
   15. Section: Testimonials carousel
   16. Section: Insights
   16b. Section: FAQ accordion
   17. Partner band
   18. Contact & form
   19. Footer
   20. Back to top
   21. Scroll reveal animations
   22. Responsive: tablet (768px+) & desktop (1200px+)
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS
   Palette contains no blue, orange, brown or green.
   ------------------------------------------------------------ */
:root {
  --primary-dark: #1C1C1C;    /* Deep charcoal */
  --primary-mid:  #2A2A2A;    /* Slightly lighter dark */
  --brand:        #6B1D38;    /* Deep burgundy/wine - main brand */
  --brand-light:  #8B2B50;    /* Lighter burgundy for hover states */
  --brand-deep:   #551029;    /* Pressed / darker burgundy */
  --accent:       #C5A059;    /* Warm champagne gold - not orange */
  --accent-light: #DAB97A;    /* Lighter gold for hover */
  --bg-pearl:     #F8F5F0;    /* Soft off-white */
  --bg-white:     #FFFFFF;
  --text-dark:    #1A1A1A;
  --text-muted:   #555555;
  --text-light:   #D1CDCD;
  --text-dim:     #8A8A8A;
  --border-soft:  #E6DFD8;
  --border-dark:  #3A3A3A;
  --shadow:       0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-sm:    0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-lg:    0 14px 38px rgba(0, 0, 0, 0.14);
  --muted-accent: #B58C9E;    /* Soft dusty rose - safe secondary accent */

  --font-head: "Montserrat", "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --radius:    5px;
  --radius-sm: 4px;
  --radius-lg: 6px;

  --header-h: 74px;
  --max-w: 1240px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.22;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
a:hover { color: var(--brand-light); }

img, svg { max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--brand); color: var(--accent-light); }

/* ------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 60px 0; }
.section-pearl { background: var(--bg-pearl); }
.section-dark  { background: var(--primary-dark); color: var(--text-light); }
.section-dark p { color: var(--text-light); }

.section-head {
  max-width: 780px;
  margin: 0 auto 40px;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.6rem;
}
.eyebrow-light { color: var(--accent); }

.section-title {
  font-size: 1.75rem;
  color: var(--brand);
  margin-bottom: 0.7rem;
}
.section-title-light { color: var(--bg-white); }
.section-title-left  { text-align: left; }

/* Gold rule beneath centred section titles */
.section-head .section-title::after {
  content: "";
  display: block;
  width: 62px;
  height: 3px;
  background: var(--accent);
  margin: 16px auto 0;
}
.section-title-left::after { margin-left: 0 !important; }

.section-lead {
  color: var(--text-muted);
  font-size: 1.02rem;
}
.section-lead-light { color: var(--text-light); }

.accent-text { color: var(--accent); }
.center-cta { text-align: center; margin-top: 36px; }

/* Card grids */
.card-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }

/* Check lists */
.check-list { margin: 20px 0; display: grid; gap: 10px; }
.check-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.check-list i { color: var(--accent); margin-top: 5px; flex-shrink: 0; }
.check-list strong { color: var(--text-dark); }

/* Icon badge used across cards */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--bg-pearl);
  border: 1px solid var(--border-soft);
  color: var(--brand);
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: background 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease);
}
.icon-badge-dark {
  background: var(--primary-mid);
  border-color: var(--border-dark);
  color: var(--accent);
}

/* Icon sits inline with the heading it belongs to, never above it. */
.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.card-head h3 {
  margin: 0;
  min-width: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--brand);
  margin-top: auto;
  padding-top: 14px;
}
.card-link i { transition: transform 0.25s var(--ease); }
.card-link:hover i { transform: translateX(4px); }

/* ------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-align: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.2s var(--ease),
              box-shadow 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: var(--accent-light);
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
  color: var(--accent-light);
  box-shadow: var(--shadow-sm);
}

.btn-gold {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}
.btn-gold:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.btn-outline-gold {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline-gold:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-lg { min-height: 52px; padding: 15px 32px; font-size: 0.94rem; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------
   5. HEADER / NAVIGATION
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--primary-dark);
  border-bottom: 1px solid var(--border-dark);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
  background: var(--primary-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

/* Wordmark-led identity: the type is the logo, with a gold rule as the
   only device. No pictogram and no container. */
.brand { display: flex; align-items: center; gap: 13px; }
/* Free-standing letterform "O" — the wordmark's own initial, matching the
   favicon. Deliberately no container tile. */
.brand-mark { display: flex; flex-shrink: 0; }
.brand-mark picture { display: block; }
.brand-mark img { display: block; width: auto; height: 40px; }
.brand-text { display: flex; flex-direction: column; align-items: stretch; line-height: 1.15; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: 0.07em;
  color: var(--bg-white);
  white-space: nowrap;
}
.brand-name b { font-weight: 800; }
/* Lighter second word gives the lockup typographic hierarchy. */
.brand-name-sub { font-weight: 500; letter-spacing: 0.13em; }

.brand-rule {
  display: block;
  height: 2px;
  background: var(--accent);
  margin: 6px 0 5px;
}

.brand-tagline {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

/* Mobile drawer */
.main-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  background: var(--primary-mid);
  border-top: 1px solid var(--border-dark);
  border-bottom: 3px solid var(--brand);
  padding: 8px 20px 22px;
  transform: translateY(-125%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.38s var(--ease), opacity 0.3s var(--ease), visibility 0.38s;
}
.main-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }

.nav-list { display: flex; flex-direction: column; }
.nav-link {
  display: block;
  padding: 13px 4px;
  min-height: 44px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 0.22s var(--ease), padding-left 0.22s var(--ease);
}
.nav-link:hover { color: var(--accent); padding-left: 10px; }
.nav-link.active { color: var(--accent); }

.nav-cta { display: none; }
.nav-cta-mobile { margin-top: 20px; width: 100%; }

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle .bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle.is-active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh; /* accounts for mobile browser chrome */
  background-color: var(--primary-dark);
  background-image: url("../assets/images/landing.jpg");
  background-image: image-set(
    url("../assets/images/landing.webp") type("image/webp"),
    url("../assets/images/landing.jpg") type("image/jpeg"));
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: var(--bg-white);
  padding: calc(var(--header-h) + 36px) 0 104px;
  overflow: hidden;
  border-bottom: 3px solid var(--brand);
}
/* Flat scrim (a solid colour at opacity, not a gradient) keeps the
   headline legible over the artwork at every crop. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(28, 28, 28, 0.58);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; width: 100%; text-align: center; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 40px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--bg-white);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 720px;
  margin: 0 auto 30px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 44px;
}

.hero-trust {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--border-dark);
  text-align: left;
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
}
.hero-trust i { color: var(--accent); width: 18px; text-align: center; }

/* Rails strip pinned to the foot of the hero. */
.hero-rails {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  border-top: 1px solid rgba(197, 160, 89, 0.28);
  background-color: rgba(20, 20, 20, 0.55);
  padding: 14px 0;
}
.hero-rails-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-rails-label {
  margin: 0;
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  flex-shrink: 0;
}
.hero-rails-list {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  /* One scrollable row on narrow screens rather than three wrapped ones. */
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.hero-rails-list::-webkit-scrollbar { display: none; }
.hero-rails-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
}
.hero-rails-list i { color: var(--accent); font-size: 0.85rem; }

/* ------------------------------------------------------------
   7. ABOUT + STAT COUNTERS
   ------------------------------------------------------------ */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
.about-copy p { color: var(--text-muted); }
.about-copy strong { color: var(--brand); }

.stats-panel {
  background: var(--primary-dark);
  border: 1px solid var(--border-dark);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.stats-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border-dark);
}
.stats-panel-head h3 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--bg-white);
  letter-spacing: 0.01em;
}
.stats-period {
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* Hairline rules come from the gap showing the panel border colour. */
.stats-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-dark);
}
.stat {
  background: var(--primary-dark);
  padding: 22px 20px;
  transition: background 0.28s var(--ease);
}
.stat:hover { background: var(--primary-mid); }
.stat-icon {
  display: block;
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 14px;
}
.stat-label {
  margin: 0 0 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.stat-value {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--bg-white);
}
.stat:first-child .stat-value,
.stat:last-child .stat-value { color: var(--accent); }

.stats-panel-foot {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding: 15px 22px;
  border-top: 1px solid var(--border-dark);
  font-size: 0.78rem;
  color: var(--text-light);
}
.stats-panel-foot i { color: var(--accent); margin-top: 3px; }

/* ------------------------------------------------------------
   8. SOLUTION CARDS
   ------------------------------------------------------------ */
.solution-card,
.usp-card,
.insight-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.solution-card:hover,
.usp-card:hover,
.insight-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.solution-card:hover .icon-badge,
.usp-card:hover .icon-badge,
.industry-card:hover .icon-badge {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--accent);
}
.solution-card h3,
.usp-card h3 { color: var(--text-dark); }
.solution-card p,
.usp-card p { color: var(--text-muted); font-size: 0.93rem; }

/* Dark variant (AePS + security sections) */
.dark-card {
  background: var(--primary-mid);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.dark-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.dark-card h3 { color: var(--bg-white); }
.dark-card p { color: var(--text-light); font-size: 0.93rem; }

/* ------------------------------------------------------------
   9. SPLIT LAYOUTS
   ------------------------------------------------------------ */
.split-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: center; }
.split-copy { min-width: 0; }
.split-copy p { color: var(--text-muted); }
.split-copy .btn { margin-top: 22px; }
.split-visual { display: flex; justify-content: center; min-width: 0; max-width: 100%; }
/* Card-acquiring channel shots: one stacked pair, label chip overlaid. */
.acquiring-shots {
  position: relative;
  width: 100%;
  margin-bottom: 26px; /* clears the inset's overhang */
}
.shot {
  position: relative;
  margin: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.shot:hover { transform: translateY(-4px); border-color: var(--accent); }
.shot picture { display: block; }
.shot img {
  display: block;
  width: 100%;
  height: auto; /* overrides the height attribute so aspect-ratio governs */
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.shot-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.shot-label i { font-size: 0.78rem; }

/* The in-store shot carries the section; its label moves to the top-left
   so the inset can occupy the opposite corner. */
.shot-main .shot-label { top: 14px; bottom: auto; }

/* Online-checkout shot sits over the main image's bottom-right corner. */
.shot-inset {
  position: absolute;
  right: -14px;
  bottom: -26px;
  width: 46%;
  border: 5px solid var(--bg-pearl);
  box-shadow: var(--shadow-lg);
}
.shot-inset .shot-label {
  left: 10px;
  bottom: 10px;
  padding: 5px 9px;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  gap: 6px;
}
.shot-inset .shot-label i { font-size: 0.65rem; }

.mini-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 24px 0 4px; }
.mini-item { display: flex; gap: 14px; align-items: flex-start; }
.mini-item > i {
  color: var(--brand);
  font-size: 1.1rem;
  margin-top: 4px;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}
.mini-item h4 { margin: 0 0 2px; font-size: 0.95rem; color: var(--text-dark); }
.mini-item p { font-size: 0.86rem; color: var(--text-muted); margin: 0; }

/* Remittance mock dashboard */
.txn-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--primary-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.txn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--primary-mid);
  border-bottom: 1px solid var(--border-dark);
}
.txn-title {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg-white);
}
.txn-title i { color: var(--accent); margin-right: 8px; }
.txn-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.txn-live .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.75); }
}

.txn-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}
.txn-summary > div { background: var(--primary-dark); padding: 16px 12px; text-align: center; }
.txn-num {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 2px;
}
.txn-cap {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin: 0;
}

.txn-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.txn-table { width: 100%; border-collapse: collapse; min-width: 420px; }
.txn-table th {
  text-align: left;
  padding: 11px 16px;
  font-family: var(--font-head);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-dark);
}
.txn-table td {
  padding: 12px 16px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.txn-table tr:last-child td { border-bottom: 0; }

.pill {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.pill-ok   { background: rgba(197, 160, 89, 0.16); color: var(--accent); border: 1px solid var(--accent); }
.pill-wait { background: rgba(181, 140, 158, 0.14); color: var(--muted-accent); border: 1px solid var(--muted-accent); }

/* ------------------------------------------------------------
   10. AePS STEP STRIP
   ------------------------------------------------------------ */
.aeps-strip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 34px;
  padding: 24px 20px;
  background: var(--primary-mid);
  border: 1px solid var(--border-dark);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.aeps-step { display: flex; align-items: center; gap: 14px; flex: 1; }
.step-num {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}
.aeps-step p { margin: 0; font-size: 0.88rem; color: var(--text-light); }
.step-arrow { color: var(--brand-light); text-align: center; font-size: 0.85rem; transform: rotate(90deg); }

/* ------------------------------------------------------------
   11. BILL PAY TILES
   ------------------------------------------------------------ */
.tile {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px 18px;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), background 0.28s var(--ease);
}
.tile:hover { transform: translateY(-5px); border-color: var(--accent); background: var(--bg-pearl); }
.tile-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.tile-head i { font-size: 1.3rem; color: var(--brand); flex-shrink: 0; transition: color 0.28s var(--ease); }
.tile:hover .tile-head i { color: var(--accent); }
.tile h3 { font-size: 0.95rem; margin: 0; color: var(--text-dark); }
.tile p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* ------------------------------------------------------------
   12. INDUSTRY CARDS
   ------------------------------------------------------------ */
.industry-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-left-color 0.3s var(--ease);
}
.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-left-color: var(--accent);
}
.industry-card h3 { font-size: 1.02rem; margin-bottom: 6px; color: var(--text-dark); }
.industry-card p { font-size: 0.89rem; color: var(--text-muted); margin: 0; }

/* ------------------------------------------------------------
   12b. IMAGE GALLERY — "Orbipay in the Field"
   Artwork lives in assets/gallery-*.svg; swapping in photography
   only means replacing the src, the 4:3 frame stays put.
   ------------------------------------------------------------ */
.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.gallery-item {
  margin: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.gallery-item:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.gallery-media {
  aspect-ratio: 4 / 3;
  background: var(--primary-dark);
  overflow: hidden;
  border-bottom: 3px solid var(--brand);
}
.gallery-media picture { display: block; height: 100%; }
.gallery-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.gallery-item:hover .gallery-media img { transform: scale(1.045); }
.gallery-item:hover .gallery-media { border-bottom-color: var(--accent); }

.gallery-item figcaption { padding: 20px 22px 24px; }
.gallery-item h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--text-dark);
}
.gallery-item h3 i { color: var(--brand); font-size: 1.05rem; flex-shrink: 0; }
.gallery-item p { font-size: 0.89rem; color: var(--text-muted); margin: 0; }

/* ------------------------------------------------------------
   13. SECURITY / CERTIFICATE BADGES
   ------------------------------------------------------------ */
.badge-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}
.cert-badge {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--primary-mid);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 20px 18px;
  transition: border-color 0.28s var(--ease), transform 0.28s var(--ease);
}
.cert-badge:hover { border-color: var(--accent); transform: translateY(-4px); }
.cert-badge svg { display: block; flex-shrink: 0; }
.cert-text { min-width: 0; }
.cert-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--bg-white);
  margin: 0 0 3px;
}
.cert-meta {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin: 0;
}

/* ------------------------------------------------------------
   14. CODE WINDOW
   ------------------------------------------------------------ */
.code-window {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--primary-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--primary-mid);
  border-bottom: 1px solid var(--border-dark);
}
.code-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.code-dot:nth-child(2) { background: var(--muted-accent); }
.code-dot:nth-child(3) { background: var(--accent); }
.code-file {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
}
.code-body {
  margin: 0;
  padding: 18px 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.75;
  color: var(--text-light);
  -webkit-overflow-scrolling: touch;
}
.code-body code { white-space: pre; }
.c-com { color: var(--text-dim); }
.c-key { color: var(--accent); }
.c-str { color: var(--muted-accent); }

/* ------------------------------------------------------------
   15. TESTIMONIALS CAROUSEL
   ------------------------------------------------------------ */
.carousel {
  max-width: 820px;
  margin: 0 auto;
}
.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex;
  transition: transform 0.55s var(--ease);
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 100%;
  min-width: 100%;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm);
}
/* Quote mark and rating sit on one line, so the quote starts right
   below them instead of after three stacked blocks. */
.testimonial-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.quote-mark { font-size: 1.5rem; color: var(--accent); line-height: 1; }
.stars { color: var(--accent); font-size: 0.85rem; letter-spacing: 2px; line-height: 1; }
.testimonial-card blockquote {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-dark);
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.t-name { margin: 0; font-weight: 700; font-size: 0.94rem; color: var(--brand); }
.t-org  { margin: 0; font-size: 0.82rem; color: var(--text-muted); }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
}
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: var(--bg-white);
  color: var(--brand);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.carousel-btn:hover { background: var(--brand); border-color: var(--brand); color: var(--accent); }

.carousel-dots { display: flex; gap: 10px; align-items: center; }
.dot-btn {
  width: 26px; height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dot-btn::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-soft);
  border: 1px solid var(--muted-accent);
  transition: background 0.25s var(--ease), width 0.25s var(--ease), border-radius 0.25s var(--ease);
}
.dot-btn.is-active::after { background: var(--brand); border-color: var(--brand); width: 26px; border-radius: 6px; }

/* ------------------------------------------------------------
   16. INSIGHT CARDS
   ------------------------------------------------------------ */
.insight-card .insight-tag { align-self: flex-start; margin-bottom: 16px; }
.insight-card .card-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}
.insight-card .icon-badge { width: 44px; height: 44px; font-size: 1.15rem; }
.insight-tag {
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 30px;
}
.insight-card h3 { font-size: 1.02rem; color: var(--text-dark); }
.insight-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ------------------------------------------------------------
   16b. FAQ ACCORDION
   Panels stay in the DOM so their height can animate; collapsed
   panels are hidden from the accessibility tree with visibility.
   ------------------------------------------------------------ */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.faq-item:hover { border-color: var(--muted-accent); }
.faq-item.is-open {
  border-color: var(--border-soft);
  border-left-color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.faq-question { margin: 0; font-size: 1rem; }

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 16px 18px;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-dark);
  transition: color 0.25s var(--ease);
}
.faq-trigger:hover { color: var(--brand); }
.faq-item.is-open .faq-trigger { color: var(--brand); }

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-pearl);
  border: 1px solid var(--border-soft);
  color: var(--brand);
  font-size: 0.8rem;
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease), color 0.28s var(--ease);
}
/* Rotate the glyph, not its badge, so the square doesn't become a diamond. */
.faq-icon i { display: block; transition: transform 0.32s var(--ease); }
.faq-item.is-open .faq-icon {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--accent);
}
.faq-item.is-open .faq-icon i { transform: rotate(45deg); } /* plus becomes a close cross */

.faq-panel {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.36s var(--ease), visibility 0.36s;
}
.faq-item.is-open .faq-panel { visibility: visible; }

.faq-answer {
  padding: 0 18px 18px;
  border-top: 1px solid var(--border-soft);
  margin-top: 2px;
  padding-top: 16px;
}
.faq-answer p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.faq-footnote {
  max-width: 900px;
  margin: 26px auto 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.faq-footnote a { font-weight: 600; border-bottom: 1px solid var(--accent); }

/* ------------------------------------------------------------
   17. PARTNER BAND
   ------------------------------------------------------------ */
.partner-band {
  position: relative;
  background: var(--brand);
  background-image: url("../assets/circuit-pattern.svg");
  background-repeat: repeat;
  background-size: 180px 180px;
  color: var(--bg-white);
  padding: 46px 0;
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
}
.partner-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.partner-band h2 { color: var(--bg-white); font-size: 1.5rem; margin-bottom: 10px; }
.partner-band p { color: #F0E4E9; font-size: 0.96rem; max-width: 720px; }

/* ------------------------------------------------------------
   18. CONTACT & FORM
   ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }

.form-panel,
.contact-panel {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 20px;
  box-shadow: var(--shadow-sm);
}
.panel-title {
  font-size: 1.1rem;
  color: var(--brand);
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--accent);
}

.form-row { display: grid; gap: 0; }
.field { margin-bottom: 16px; }
.field label,
.checkbox-field legend {
  display: block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 7px;
  padding: 0;
}
.req { color: var(--brand); }

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--text-dark);
  background: var(--bg-pearl);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: #9A9A9A; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--bg-white);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B1D38' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 38px;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--brand); background: #FBF3F6; }

.error-msg {
  margin: 6px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  min-height: 0;
}

.checkbox-field {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 18px;
}
.checkbox-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.checkbox-field .checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 400;
  margin: 0;
}
.checkbox-field .checkbox input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  accent-color: var(--brand);
  flex-shrink: 0;
  cursor: pointer;
}

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--accent);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--bg-pearl);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}
.form-success i { color: var(--accent); margin-top: 3px; }

/* Contact details panel */
.contact-list { display: grid; gap: 22px; margin-bottom: 24px; }
.contact-list li { display: flex; gap: 15px; align-items: flex-start; }
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-pearl);
  border: 1px solid var(--border-soft);
  color: var(--brand);
  flex-shrink: 0;
}
.contact-list h4 {
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 4px;
}
.contact-list p { margin: 0; font-size: 0.92rem; color: var(--text-dark); line-height: 1.6; }
.contact-list a { color: var(--brand); }
.contact-list a:hover { color: var(--brand-light); text-decoration: underline; }

.map-wrap {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  line-height: 0;
}
.map-wrap iframe { display: block; filter: grayscale(1) contrast(1.04) brightness(1.02); }

/* ------------------------------------------------------------
   19. FOOTER
   ------------------------------------------------------------ */
.site-footer { background: var(--primary-dark); color: var(--text-light); padding-top: 52px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 42px; }
/* Footer lockup mirrors the header: mark beside the type, not above it. */
.footer-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.footer-mark { display: flex; flex-shrink: 0; }
.footer-mark picture { display: block; }
.footer-mark img { display: block; width: auto; height: 46px; }
.footer-wordmark { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.footer-name { display: block; font-size: 1.12rem; color: var(--bg-white); }
.footer-brand .brand-rule { margin: 7px 0 5px; }
.footer-tagline {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}
.footer-desc { font-size: 0.88rem; color: var(--text-light); max-width: 340px; }

.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-dark);
}
.footer-links li a,
.footer-contact li {
  display: block;
  font-size: 0.88rem;
  color: var(--text-light);
  padding: 6px 0;
}
.footer-links-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}
.footer-links li a { transition: color 0.22s var(--ease), padding-left 0.22s var(--ease); }
.footer-links li a:hover { color: var(--accent); padding-left: 6px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.footer-contact i { color: var(--accent); margin-top: 5px; width: 16px; flex-shrink: 0; }
.footer-contact a { color: var(--text-light); }
.footer-contact a:hover { color: var(--accent); }

.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: var(--accent);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.social-link:hover { background: var(--brand); border-color: var(--brand); color: var(--accent-light); }

.footer-bottom { border-top: 1px solid var(--border-dark); padding: 20px 0 80px; }
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}
.footer-bottom p { margin: 0; font-size: 0.82rem; color: var(--text-dim); }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; }
.legal-links a { font-size: 0.82rem; color: var(--text-dim); }
.legal-links a:hover { color: var(--accent); }

/* ------------------------------------------------------------
   20. BACK TO TOP
   ------------------------------------------------------------ */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px; height: 48px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--accent);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background 0.25s var(--ease);
  z-index: 900;
  box-shadow: var(--shadow);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); color: var(--primary-dark); }

/* ------------------------------------------------------------
   21. SCROLL REVEAL
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   22. RESPONSIVE — TABLET (768px+)
   ------------------------------------------------------------ */
@media (min-width: 768px) {
  body { font-size: 16.5px; }
  .section { padding: 84px 0; }
  .container { padding: 0 32px; }

  h1 { font-size: 2.6rem; }
  .section-title { font-size: 2.1rem; }
  .section-head { margin-bottom: 54px; }

  .hero { padding: calc(var(--header-h) + 48px) 0 116px; }
  .hero-title { font-size: 2.9rem; }
  .hero-sub { font-size: 1.1rem; }
  .hero-actions { flex-direction: row; justify-content: center; }
  .hero-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }

  .card-grid { gap: 24px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .stat { padding: 26px 24px; }
  .stat-value { font-size: 1.95rem; }
  .hero-rails-inner { flex-direction: row; justify-content: center; gap: 26px; }
  .hero-rails-list { flex-wrap: wrap; justify-content: center; overflow-x: visible; }

  .form-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; }
  .checkbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-panel, .contact-panel { padding: 34px 30px; }

  .badge-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }

  .aeps-strip { flex-direction: row; align-items: center; gap: 6px; padding: 26px 24px; }
  .step-arrow { transform: none; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; }

  .partner-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 34px; }
  .partner-inner .btn { flex-shrink: 0; }

  .testimonial-card { padding: 32px 36px 28px; }
  .shot-inset { right: -18px; bottom: -30px; width: 44%; border-width: 6px; }
  .acquiring-shots { margin-bottom: 34px; }
  .faq-trigger { padding: 20px 24px; font-size: 1rem; }
  .faq-answer { padding: 18px 24px 22px; }
  .code-body { font-size: 0.8rem; padding: 22px 20px; }
  .back-to-top { right: 26px; bottom: 26px; }
}

/* ------------------------------------------------------------
   22b. RESPONSIVE — DESKTOP (1200px+)
   Navigation expands from the drawer into a horizontal bar.
   ------------------------------------------------------------ */
@media (min-width: 1200px) {
  .section { padding: 100px 0; }
  .hero-title { font-size: 3.3rem; }

  .nav-toggle { display: none; }
  .nav-cta { display: inline-flex; min-height: 42px; padding: 10px 22px; }
  .nav-cta-mobile { display: none; }

  /* Two-row header: identity and CTA above, full navigation bar below. */
  .header-inner {
    flex-wrap: wrap;
    align-content: center;
    min-height: 0;
    padding-top: 14px;
    row-gap: 0;
  }
  .brand { order: 1; }
  .nav-cta { order: 2; }

  .main-nav {
    order: 3;
    flex-basis: 100%;
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--border-dark);
    margin-top: 12px;
    padding: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: flex;
    justify-content: center;
  }
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0 4px;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
  }
  .nav-link {
    position: relative;
    padding: 12px 6px 13px;
    min-height: 0;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    border-bottom: 0;
    white-space: nowrap;
  }
  .nav-link:hover { padding-left: 6px; }
  .nav-link::after {
    content: "";
    position: absolute;
    left: 6px; right: 6px;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--ease);
  }
  .nav-link:hover::after,
  .nav-link.active::after { transform: scaleX(1); }

  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .badge-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery-grid { gap: 30px; }

  .about-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }

  .split-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 62px; }
  .split-reverse .split-copy { order: 2; }
  .split-reverse .split-visual { order: 1; }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 26px; }

  .contact-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 32px; align-items: start; }

  .footer-grid { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1.3fr) minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 40px 26px; }
  .footer-brand { grid-column: auto; }
}

/* Phones: keep the lockup clear of the hamburger */
@media (max-width: 430px) {
  .brand-mark img { height: 34px; }
}

/* Very small phones */
@media (max-width: 360px) {
  .brand { gap: 10px; }
  .brand-mark img { height: 32px; }
  .brand-name { font-size: 0.95rem; letter-spacing: 0.05em; }
  .brand-name-sub { letter-spacing: 0.09em; }
  .brand-tagline { font-size: 0.54rem; letter-spacing: 0.12em; }
  .hero-title { font-size: 1.72rem; }
}
