/* ==========================================================================
   Base: tokens, reset and layout primitives shared by every section.
   Section styles live in their own file and are scoped by a section prefix.
   ========================================================================== */

:root {
  --brand: #b61f35;
  --brand-light: #d4415e;
  --brand-gradient: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  --ink: #13213b;
  --muted: #64718a;
  --white: #fff;

  --font: "Inter", Arial, sans-serif;
  --container: 1160px;
  --gutter: 15px;
  /* Height of the fixed header bar once scrolled, so anchor jumps land below it. */
  --header-height: 94px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--brand-light);
  outline-offset: 3px;
}

@media (max-width: 1099.98px) {
  :root {
    --header-height: 62px;
  }
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--brand);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Header
   .hdr is the red band that reserves the header's space in the page flow.
   .hdr-bar is fixed on top of it: transparent over the band on desktop,
   on a solid surface once the page is scrolled (.is-sticky), and always
   solid on mobile. The surface is white in light mode and navy in dark mode.
   ========================================================================== */

.hdr {
  --hdr-band: 80px;
  --hdr-ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Solid surface: sticky bar, mobile bar and menu, language dropdown. */
  --hdr-surface: var(--white);
  --hdr-ink: #0f172a;
  --hdr-text: #334155;
  --hdr-menu-text: #1e293b;
  --hdr-border: rgb(148 163 184 / 18%);
  --hdr-option-hover: #f0f4ff;
  --hdr-accent: var(--brand);
  --hdr-accent-soft: rgb(182 31 53 / 6%);
  --hdr-accent-hover: rgb(182 31 53 / 13%);
  --hdr-accent-line: rgb(182 31 53 / 28%);
  --hdr-pill-bg: rgb(0 0 0 / 6%);
  --hdr-pill-border: rgb(0 0 0 / 9%);
  --hdr-merchant-text: #0c0c0c;
  --hdr-sticky-shadow: 0 11px 95px 6px rgb(196 196 196 / 21%);
  --hdr-mobile-shadow: 0 6px 20px rgb(15 23 42 / 8%);
  --hdr-menu-shadow: 0 12px 25px rgb(15 23 42 / 15%);

  position: relative;
  z-index: 100;
  height: var(--hdr-band);
  background: var(--brand);
}

.hdr-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  padding: 15px 30px;
  transition: background-color 0.5s, box-shadow 0.5s;
}

.hdr-inner {
  display: flex;
  align-items: center;
  height: 64px;
}

/* --- Brand --------------------------------------------------------------- */

.hdr-brand {
  display: block;
  flex: 0 1 200px;
  min-width: 100px;
  margin-right: 16px;
  padding: 5px 0;
}

.hdr-logo {
  width: 100%;
  height: auto;
}

.hdr-logo--dark {
  display: none;
}

/* --- Desktop navigation --------------------------------------------------- */

.hdr-nav {
  margin-left: auto;
}

/* Items hang from the same top line, like the reference (links sit 1px higher than if centred). */
.hdr-nav-list {
  display: flex;
  align-items: flex-start;
  padding-block: 15px;
}

.hdr-link {
  position: relative;
  display: block;
  margin: 0 15px;
  padding-bottom: 6px;
  color: var(--white);
  font-size: 16px;
  line-height: 1.65;
  white-space: nowrap;
  transition: color 0.2s linear;
}

.hdr-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: rgb(255 255 255 / 75%);
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.25s var(--hdr-ease);
}

.hdr-link:hover::after,
.hdr-link:focus-visible::after {
  transform: translateX(-50%) scaleX(1);
}

.hdr-cta {
  display: inline-flex;
  align-items: center;
  margin: 0 15px;
  padding: 7px 20px;
  border: 1.5px solid rgb(255 255 255 / 50%);
  border-radius: 24px;
  color: var(--brand);
  background: rgb(255 255 255 / 95%);
  box-shadow: 0 2px 12px rgb(0 0 0 / 12%);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition:
    background-color 0.22s var(--hdr-ease),
    color 0.22s var(--hdr-ease),
    border-color 0.22s var(--hdr-ease),
    box-shadow 0.22s var(--hdr-ease);
}

.hdr-cta:hover {
  color: var(--brand);
  background: var(--white);
  border-color: var(--white);
  box-shadow: 0 4px 18px rgb(0 0 0 / 20%);
}

/* --- Desktop language switcher (disclosure) ------------------------------- */

.hdr-lang {
  position: relative;
  flex: none;
  margin-left: 8px;
}

.hdr-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border: 1.5px solid rgb(255 255 255 / 30%);
  border-radius: 24px;
  color: var(--white);
  background: rgb(255 255 255 / 13%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition:
    background-color 0.22s var(--hdr-ease),
    border-color 0.22s var(--hdr-ease),
    box-shadow 0.22s var(--hdr-ease);
}

.hdr-lang-btn::-webkit-details-marker {
  display: none;
}

.hdr-lang-btn:hover {
  background: rgb(255 255 255 / 24%);
  border-color: rgb(255 255 255 / 55%);
}

.hdr-lang[open] .hdr-lang-btn {
  background: rgb(255 255 255 / 28%);
  border-color: rgb(255 255 255 / 60%);
  box-shadow: 0 4px 16px rgb(0 0 0 / 12%);
}

.hdr-lang-flag {
  flex-shrink: 0;
  width: 19.5px;
  height: 13px;
  margin-block: 1px;
  border-radius: 2px;
}

.hdr-lang-chevron {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  opacity: 0.8;
  transition: transform 0.22s var(--hdr-ease);
}

.hdr-lang[open] .hdr-lang-chevron {
  transform: rotate(180deg);
}

.hdr-lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 168px;
  overflow: hidden;
  border: 1px solid var(--hdr-border);
  border-radius: 14px;
  background: var(--hdr-surface);
  box-shadow:
    0 16px 48px rgb(15 23 42 / 16%),
    0 2px 8px rgb(0 0 0 / 6%);
  transform-origin: top right;
  animation: hdr-pop 0.22s var(--hdr-ease);
}

@keyframes hdr-pop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
}

.hdr-lang-menu li + li {
  border-top: 1px solid var(--hdr-border);
}

.hdr-lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--hdr-text);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  transition: background-color 0.15s, color 0.15s;
}

.hdr-lang-option:hover {
  color: var(--hdr-ink);
  background: var(--hdr-option-hover);
}

.hdr-lang-option[aria-current] {
  color: var(--hdr-accent);
  background: rgb(182 31 53 / 4%);
  font-weight: 600;
}

.hdr-lang-option[aria-current]:hover {
  background: rgb(182 31 53 / 8%);
}

.hdr-lang-option-flag {
  flex-shrink: 0;
  width: 21px;
  height: 14px;
  border-radius: 2px;
}

.hdr-lang-option-name {
  flex: 1;
}

.hdr-lang-check {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  opacity: 0.9;
}

/* --- Sticky (scrolled) desktop state -------------------------------------- */

.hdr.is-sticky .hdr-bar {
  background: var(--hdr-surface);
  box-shadow: var(--hdr-sticky-shadow);
  animation: hdr-drop 0.5s;
}

@keyframes hdr-drop {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
}

.hdr.is-sticky .hdr-logo--light {
  display: none;
}

.hdr.is-sticky .hdr-logo--dark {
  display: block;
}

/* In dark mode the reference turned these links near-white on its white bar. */
.hdr.is-sticky .hdr-link {
  color: var(--hdr-ink);
}

.hdr.is-sticky .hdr-link:hover {
  color: var(--hdr-accent);
}

.hdr.is-sticky .hdr-link::after {
  background: var(--hdr-accent);
}

.hdr.is-sticky .hdr-cta {
  color: var(--white);
  background: var(--brand);
  border-color: var(--brand);
}

.hdr.is-sticky .hdr-cta:hover {
  background: #8b1020;
  border-color: #8b1020;
  box-shadow: 0 4px 18px rgb(182 31 53 / 35%);
}

.hdr.is-sticky .hdr-lang-btn {
  color: var(--hdr-accent);
  background: var(--hdr-accent-soft);
  border-color: var(--hdr-accent-line);
}

.hdr.is-sticky .hdr-lang-btn:hover {
  background: var(--hdr-accent-hover);
  border-color: rgb(182 31 53 / 50%);
}

.hdr.is-sticky .hdr-lang[open] .hdr-lang-btn {
  background: rgb(182 31 53 / 16%);
  border-color: var(--hdr-accent);
}

/* --- Narrower desktops: tighter spacing so everything fits on one line ----- */

@media (max-width: 1290px) {
  .hdr-bar {
    padding-inline: 15px;
  }
}

@media (max-width: 1199.98px) {
  .hdr-brand {
    flex-basis: 110px;
  }

  .hdr-link,
  .hdr-cta {
    margin-inline: 10px;
  }
}

/* --- Mobile-only parts (hidden on desktop) -------------------------------- */

.hdr-pills,
.hdr-toggle,
.hdr-menu {
  display: none;
}

/* ==========================================================================
   Mobile and tablet header (< 1100px)
   ========================================================================== */

@media (max-width: 1099.98px) {
  .hdr-bar,
  .hdr.is-sticky .hdr-bar {
    padding: 0;
    background: var(--hdr-surface);
    animation: none;
  }

  .hdr.is-sticky .hdr-bar {
    box-shadow: var(--hdr-mobile-shadow);
  }

  .hdr-inner {
    gap: 12px;
    height: 62px;
    padding: 0 8px 0 16px;
  }

  .hdr-brand {
    flex: none;
    min-width: 0;
    margin-right: auto;
    padding: 0;
  }

  .hdr-logo {
    width: auto;
    height: clamp(24px, 6vw, 34px);
  }

  .hdr-logo--light,
  .hdr-nav,
  .hdr-lang {
    display: none;
  }

  .hdr-logo--dark {
    display: block;
  }

  /* Language pills */

  .hdr-pills {
    display: flex;
    gap: 4px;
  }

  .hdr-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    padding: 8px 12px;
    border: 1.5px solid var(--hdr-pill-border);
    border-radius: 20px;
    color: var(--hdr-ink);
    background: var(--hdr-pill-bg);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  }

  .hdr-pill:hover {
    color: var(--hdr-accent);
    background: rgb(182 31 53 / 9%);
    border-color: rgb(182 31 53 / 22%);
  }

  .hdr-pill[aria-current] {
    color: var(--white);
    background: var(--brand);
    border-color: var(--brand);
  }

  .hdr-pill-flag {
    flex-shrink: 0;
    width: 16px;
    height: 11px;
    border-radius: 2px;
  }

  /* Menu toggle: three bars that turn into a cross */

  .hdr-toggle {
    display: grid;
    flex: none;
    place-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
  }

  .hdr-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--hdr-accent);
    transition: transform 0.25s var(--hdr-ease), opacity 0.2s;
  }

  .hdr-toggle[aria-expanded="true"] .hdr-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hdr-toggle[aria-expanded="true"] .hdr-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .hdr-toggle[aria-expanded="true"] .hdr-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Menu panel */

  .hdr-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: block;
    max-height: calc(100vh - 62px);
    max-height: calc(100dvh - 62px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 20px 20px;
    background: var(--hdr-surface);
    box-shadow: var(--hdr-menu-shadow);
  }

  .hdr-menu-list {
    display: grid;
  }

  .hdr-menu-link {
    display: block;
    padding: 11px 4px;
    color: var(--hdr-menu-text);
    font-size: 15px;
    transition: color 0.2s;
  }

  .hdr-menu-link:hover {
    color: var(--hdr-accent);
  }

  .hdr-menu-cta {
    display: block;
    margin-top: 4px;
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 15px;
    text-align: center;
    transition: background-color 0.2s, color 0.2s;
  }

  .hdr-menu-cta--merchant {
    color: var(--hdr-merchant-text);
    background: rgb(182 31 53 / 6%);
  }

  .hdr-menu-cta--merchant:hover {
    background: rgb(182 31 53 / 12%);
  }
}

@media (max-width: 400px) {
  .hdr-logo {
    height: 22px;
  }

  .hdr-pill {
    gap: 3px;
    padding: 8px 9px;
  }
}

/* ==========================================================================
   Dark mode: a navy surface instead of white, with light text and a lighter
   brand accent that stays readable on navy. The logo swaps to its light version.
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  .hdr {
    --hdr-surface: #0f172a;
    --hdr-ink: #f1f5f9;
    --hdr-text: #cbd5e1;
    --hdr-menu-text: #e2e8f0;
    --hdr-border: rgb(255 255 255 / 8%);
    --hdr-option-hover: rgb(255 255 255 / 6%);
    --hdr-accent: #f0627a;
    --hdr-accent-soft: rgb(240 98 122 / 10%);
    --hdr-accent-hover: rgb(240 98 122 / 18%);
    --hdr-accent-line: rgb(240 98 122 / 35%);
    --hdr-pill-bg: rgb(255 255 255 / 8%);
    --hdr-pill-border: rgb(255 255 255 / 12%);
    --hdr-merchant-text: #f1f5f9;
    --hdr-sticky-shadow: 0 10px 40px rgb(0 0 0 / 45%);
    --hdr-mobile-shadow: 0 6px 20px rgb(0 0 0 / 40%);
    --hdr-menu-shadow: 0 16px 32px rgb(0 0 0 / 45%);
  }

  .hdr.is-sticky .hdr-logo--light {
    display: block;
  }

  .hdr.is-sticky .hdr-logo--dark {
    display: none;
  }

  .hdr-lang-menu {
    box-shadow: 0 16px 48px rgb(0 0 0 / 50%);
  }

  .hdr-lang-option[aria-current] {
    background: rgb(240 98 122 / 10%);
  }

  .hdr-menu-cta--merchant {
    background: rgb(240 98 122 / 12%);
  }
}

@media (prefers-color-scheme: dark) and (max-width: 1099.98px) {
  .hdr-logo--light {
    display: block;
  }

  .hdr-logo--dark {
    display: none;
  }
}

/* ==========================================================================
   Hero slider
   Slides are stacked in one grid cell, so the section always fits the
   tallest slide. The content box is offset downwards (--hero-offset) like
   the reference, which centred it below a navbar that overlapped the hero.
   ========================================================================== */

.hero {
  --hero-height: 680px;
  --hero-offset: 152px;
  --hero-ease: cubic-bezier(0.4, 0, 0.2, 1);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #3a0710;
}

.hero-slides {
  display: grid;
}

.hero-slide {
  position: relative;
  display: flex;
  grid-area: 1 / 1;
  align-items: center;
  min-height: var(--hero-height);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transform: scale(1.02);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgb(7 1 4 / 91%) 0%,
    rgb(56 6 15 / 82%) 42%,
    rgb(182 31 53 / 24%) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding: var(--hero-offset) 15px 0;
}

/* --- Text ---------------------------------------------------------------- */

.hero-text {
  width: calc(50% - 15px);
  max-width: 560px;
  padding-right: 24px;
  color: var(--white);
}

.hero-slide.is-active .hero-text {
  animation: hero-fade-up 0.72s var(--hero-ease) both;
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 5px 12px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 100px;
  color: rgb(255 255 255 / 88%);
  background: rgb(255 255 255 / 10%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.65;
  text-transform: uppercase;
}

.hero-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: hero-pulse 2s infinite;
}

.hero-dot--blue {
  background: #60a5fa;
}

.hero-dot--teal {
  background: #2dd4bf;
}

@keyframes hero-pulse {
  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

.hero-title {
  margin: 32px 0 0.72rem;
  color: var(--white);
  font-size: clamp(1.75rem, 3.15vw, 2.65rem);
  font-weight: 800;
  line-height: 1.12;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-title-muted {
  display: block;
  color: rgb(255 255 255 / 52%);
  font-weight: 700;
}

.hero-body {
  max-width: 400px;
  margin-bottom: 1.15rem;
  color: rgb(255 255 255 / 74%);
  font-size: 0.84rem;
  line-height: 1.65;
}

/* --- Buttons --------------------------------------------------------------- */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.15rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition:
    transform 0.3s var(--hero-ease),
    box-shadow 0.3s var(--hero-ease),
    background-color 0.3s var(--hero-ease);
}

.hero-btn:hover {
  transform: translateY(-2px);
}

/* A 2px transparent border keeps both buttons the same height; the padding absorbs it horizontally. */
.hero-btn--primary {
  padding-inline: 18px;
  background: var(--brand-gradient) border-box;
  box-shadow: 0 4px 16px rgb(182 31 53 / 36%);
}

.hero-btn--primary:hover {
  box-shadow: 0 10px 30px rgb(182 31 53 / 52%);
}

.hero-btn:focus-visible {
  outline-color: var(--white);
}

/* --- Controls -------------------------------------------------------------- */

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 50%;
  color: var(--white);
  background: rgb(15 23 42 / 38%);
  transform: translateY(-50%);
  transition: background-color 0.18s ease;
}

.hero-arrow svg {
  width: 22px;
  height: 22px;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  background: var(--brand);
}

.hero-arrow--prev {
  left: 24px;
}

.hero-arrow--next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dot-btn {
  position: relative;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--white);
  border-radius: 999px;
  background: transparent;
  transition:
    width 0.18s ease,
    background-color 0.18s ease;
}

/* A larger hit area than the visible dot. */
.hero-dot-btn::before {
  content: "";
  position: absolute;
  inset: -12px -4px;
}

.hero-dot-btn[aria-current] {
  width: 30px;
  background: var(--white);
}

.hero-arrow:focus-visible,
.hero-dot-btn:focus-visible {
  outline-color: var(--white);
}

/* --- Responsive -------------------------------------------------------------- */

@media (max-width: 1199.98px) {
  .hero-inner {
    max-width: 960px;
  }
}

/* Keep left-aligned text clear of the arrows (24px + 44px from each edge). */
@media (min-width: 992px) {
  .hero-inner {
    width: calc(100% - 138px);
  }
}

@media (max-width: 991.98px) {
  .hero {
    --hero-offset: 164px;
  }

  .hero-inner {
    max-width: 720px;
  }

  .hero-text {
    width: calc(58.333% - 12.5px);
    padding-right: 0;
    text-align: center;
  }

  .hero-tag {
    justify-content: center;
  }

  .hero-body {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .hero {
    --hero-height: 620px;
    --hero-offset: 172px;
  }

  .hero-inner {
    max-width: none;
    padding-inline: 30px;
  }

  .hero-text {
    width: auto;
  }

  .hero-bg {
    object-position: 68% center;
  }

  .hero-slide::after {
    background: linear-gradient(
      180deg,
      rgb(7 1 4 / 90%) 0%,
      rgb(56 6 15 / 86%) 50%,
      rgb(182 31 53 / 45%) 100%
    );
  }

  .hero-tag {
    font-size: clamp(11px, 2.8vw, 12px);
  }

  .hero-title {
    font-size: clamp(1.24rem, 5vw, 1.58rem);
  }

  .hero-body {
    font-size: 0.82rem;
    line-height: 1.58;
  }

  .hero-actions {
    flex-direction: column;
    gap: 8px;
  }

  .hero-btn {
    width: 100%;
    max-width: 260px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    bottom: 18px;
  }
}

@media (max-width: 575.98px) {
  .hero-tag {
    max-width: 100%;
    padding: 4px 10px;
  }

  .hero-title {
    font-size: 1.22rem;
  }

  .hero-btn {
    padding: 9px 14px;
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-dot,
  .hero-slide.is-active .hero-text {
    animation: none;
  }
}

/* ==========================================================================
   Why SerdiPay: header, key figures, feature cards and trust badges.
   Dark navy section; every selector is scoped under .why.
   ========================================================================== */

.why {
  /* Light theme (default). The dark variant at the end only overrides these. */
  --why-bg: linear-gradient(160deg, #eef2ff 0%, #f0f9ff 50%, #ecfdf5 100%);
  --why-glow-1: rgba(37, 99, 235, 0.12);
  --why-glow-2: rgba(16, 185, 129, 0.1);
  --why-heading: #0f172a;
  --why-text: #334155;
  --why-muted: #64748b;
  --why-sub: #5a6a80; /* a touch darker than #64748b to pass 4.5:1 on the tinted background */
  --why-accent: var(--brand);
  --why-surface: rgba(255, 255, 255, 0.82);
  --why-border: rgba(148, 163, 184, 0.18);
  --why-divider: rgba(148, 163, 184, 0.18);
  --why-badge-bg: var(--white);
  --why-card-hover-border: rgba(37, 99, 235, 0.25);

  /* Feature tones: icon tile, icon color, tag text, tag background */
  --why-brand-tile: linear-gradient(135deg, rgba(182, 31, 53, 0.12), rgba(182, 31, 53, 0.06));
  --why-brand-icon: var(--brand);
  --why-brand-tag: var(--brand);
  --why-brand-tag-bg: rgba(37, 99, 235, 0.1);
  --why-emerald-tag: #047857;
  --why-cyan-tag: #0e7490;
  --why-amber-tag: #b45309;
  --why-violet-tag: #7c3aed;
  --why-violet-tag-bg: rgba(124, 58, 237, 0.1);
  --why-rose-tag: #be123c;
  --why-rose-tag-bg: rgba(225, 29, 72, 0.1);

  --why-shadow-sm: 0 2px 12px rgba(30, 58, 138, 0.07);
  --why-ease: 0.32s cubic-bezier(0.4, 0, 0.2, 1);

  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  background: var(--why-bg);
}

/* Soft colored glows in two corners */
.why::before,
.why::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.why::before {
  top: -120px;
  left: -100px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--why-glow-1) 0%, transparent 70%);
}

.why::after {
  right: -80px;
  bottom: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--why-glow-2) 0%, transparent 70%);
}

.why-inner {
  position: relative;
  z-index: 1;
}

/* ---- Header ------------------------------------------------------------ */

.why-header {
  margin-bottom: 64px;
  text-align: center;
}

.why-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 18px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 100px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--why-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.why-eyebrow-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: why-pulse 2s ease-in-out infinite;
}

@keyframes why-pulse {
  50% {
    transform: scale(1.45);
    opacity: 0.6;
  }
}

.why-title {
  margin-bottom: 18px;
  color: var(--why-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.why-gradient-text,
.why-stat-value {
  background: linear-gradient(135deg, var(--brand) 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.why-sub {
  max-width: 560px;
  margin-inline: auto;
  color: var(--why-sub);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ---- Key figures --------------------------------------------------------- */

.why-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 72px;
  padding: 28px 40px;
  border: 1px solid var(--why-border);
  border-radius: 28px;
  background: var(--why-surface);
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.12);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.why-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  text-align: center;
}

.why-stat + .why-stat::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 0;
  width: 1px;
  height: 80%;
  background: var(--why-divider);
}

.why-stat-value {
  order: -1;
  margin: 0;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.why-stat-label {
  margin-top: 4px;
  color: var(--why-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

/* ---- Feature cards ------------------------------------------------------- */

.why-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.why-card {
  position: relative;
  overflow: hidden;
  padding: 36px 28px 32px;
  border: 1px solid var(--why-border);
  border-radius: 14px;
  background: var(--why-surface);
  box-shadow: var(--why-shadow-sm);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: transform var(--why-ease), box-shadow var(--why-ease), border-color var(--why-ease);
}

/* Top accent line and soft glow, revealed on hover */
.why-card::before,
.why-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--why-ease);
}

.why-card::before {
  bottom: auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), #06b6d4);
}

.why-card::after {
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.06) 0%, transparent 65%);
}

.why-card:hover {
  transform: translateY(-7px);
  border-color: var(--why-card-hover-border);
  box-shadow: 0 20px 60px rgba(30, 58, 138, 0.16);
}

.why-card:hover::before,
.why-card:hover::after {
  opacity: 1;
}

/* Color themes shared by the icon tile and the tag pill */
.why-tone--brand   { --tone: var(--why-brand-icon); --tone-tile: var(--why-brand-tile); --tone-text: var(--why-brand-tag); --tone-soft: var(--why-brand-tag-bg); }
.why-tone--emerald { --tone: #059669; --tone-tile: linear-gradient(135deg, #d1fae5, #a7f3d0); --tone-text: var(--why-emerald-tag); --tone-soft: rgba(16, 185, 129, 0.1); }
.why-tone--cyan    { --tone: #0891b2; --tone-tile: linear-gradient(135deg, #cffafe, #a5f3fc); --tone-text: var(--why-cyan-tag); --tone-soft: rgba(6, 182, 212, 0.1); }
.why-tone--amber   { --tone: #d97706; --tone-tile: linear-gradient(135deg, #fef3c7, #fde68a); --tone-text: var(--why-amber-tag); --tone-soft: rgba(217, 119, 6, 0.1); }
.why-tone--violet  { --tone: #7c3aed; --tone-tile: linear-gradient(135deg, #ede9fe, #ddd6fe); --tone-text: var(--why-violet-tag); --tone-soft: var(--why-violet-tag-bg); }
.why-tone--rose    { --tone: #e11d48; --tone-tile: linear-gradient(135deg, #ffe4e6, #fecdd3); --tone-text: var(--why-rose-tag); --tone-soft: var(--why-rose-tag-bg); }

.why-card-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: var(--tone-tile);
  color: var(--tone);
  transition: transform var(--why-ease);
}

.why-card:hover .why-card-icon {
  transform: scale(1.1) rotate(-3deg);
}

.why-card-icon svg {
  width: 28px;
  height: 28px;
}

.why-card-title {
  margin-bottom: 10px;
  color: var(--why-heading);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.why-card-desc {
  color: var(--why-text);
  font-size: 0.88rem;
  line-height: 1.65;
}

.why-card-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--tone-soft);
  color: var(--tone-text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---- Trust badges -------------------------------------------------------- */

.why-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-top: 8px;
}

.why-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--why-border);
  border-radius: 100px;
  background: var(--why-badge-bg);
  box-shadow: var(--why-shadow-sm);
  color: var(--why-text);
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-trust-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.12);
}

.why-trust-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.why-trust-icon--green { color: #10b981; }
.why-trust-icon--brand { color: var(--why-accent); }
.why-trust-icon--gold  { color: #d97706; }

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 1024px) {
  .why-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  /* Four figures no longer fit on one line: switch to a 2 x 2 grid. */
  .why-stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 20px;
  }

  .why-stat:nth-child(odd)::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .why {
    padding: 70px 0 60px;
  }

  .why-header {
    margin-bottom: 44px;
  }

  .why-stats {
    padding: 20px 16px;
  }

  .why-stat {
    padding: 0 14px;
  }

  .why-stat-value {
    font-size: 1.7rem;
  }

  .why-features {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .why-stats {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .why-stat + .why-stat::before {
    display: none;
  }

  .why-stat:not(:last-child) {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--why-divider);
  }
}

/* ---- Dark theme: only variable overrides --------------------------------- */

@media (prefers-color-scheme: dark) {
  .why {
    --why-bg: linear-gradient(160deg, #0f172a 0%, #0c1a35 50%, #0d1f1a 100%);
    --why-glow-1: rgba(59, 130, 246, 0.15);
    --why-glow-2: rgba(16, 185, 129, 0.12);
    --why-heading: #f1f5f9;
    --why-text: #94a3b8;
    --why-muted: #94a3b8;
    --why-sub: #94a3b8;
    --why-accent: #f0627a; /* brand red lightened for legible text on navy */
    --why-surface: rgba(15, 23, 42, 0.85);
    --why-border: rgba(148, 163, 184, 0.12);
    --why-divider: rgba(255, 255, 255, 0.08);
    --why-badge-bg: #1e293b;
    --why-card-hover-border: rgba(240, 98, 122, 0.3);

    /* The pale red tile disappears on navy: use a solid brand tile instead. */
    --why-brand-tile: linear-gradient(135deg, var(--brand-light), var(--brand));
    --why-brand-icon: var(--white);
    --why-brand-tag: #f0627a;
    --why-brand-tag-bg: rgba(182, 31, 53, 0.18);
    --why-emerald-tag: #059669;
    --why-cyan-tag: #0891b2;
    --why-amber-tag: #d97706;
    --why-violet-tag: #a78bfa;
    --why-violet-tag-bg: rgba(124, 58, 237, 0.14);
    --why-rose-tag: #fb7185;
    --why-rose-tag-bg: rgba(225, 29, 72, 0.12);
  }
}

/* ==========================================================================
   Products: filterable bento grid of product cards with a featured card.
   Dark navy section; every selector is scoped under .prod.
   ========================================================================== */

.prod {
  /* Light theme (default). The dark variant at the end only overrides these. */
  --prod-bg: var(--white);
  --prod-dots: rgba(148, 163, 184, 0.22);
  --prod-heading: #0f172a;
  --prod-text: #334155;
  --prod-muted: #64748b;
  --prod-accent: var(--brand);
  --prod-accent-hover: #8b1020;
  --prod-surface: var(--white);
  --prod-border: rgba(148, 163, 184, 0.22);
  --prod-card-hover-border: rgba(182, 31, 53, 0.22);
  --prod-featured-border: transparent;
  --prod-filter-border: rgba(148, 163, 184, 0.3);
  --prod-filter-hover-border: rgba(182, 31, 53, 0.35);
  --prod-filter-hover-bg: rgba(182, 31, 53, 0.05);
  --prod-new-badge: #047857;
  --prod-analytics-tile: linear-gradient(135deg, rgba(182, 31, 53, 0.12), rgba(182, 31, 53, 0.06));
  --prod-analytics-icon: var(--brand);
  --prod-ease: 0.32s cubic-bezier(0.4, 0, 0.2, 1);

  position: relative;
  padding: 100px 0 90px;
  overflow: hidden;
  background: var(--prod-bg);
}

/* Dot-grid texture and a thin shimmer line along the top edge */
.prod::before,
.prod::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.prod::before {
  background-image: radial-gradient(circle, var(--prod-dots) 1px, transparent 1px);
  background-size: 28px 28px;
}

.prod::after {
  bottom: auto;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(182, 31, 53, 0.2) 50%, transparent 100%);
}

.prod-inner {
  position: relative;
  z-index: 1;
}

/* ---- Header ------------------------------------------------------------ */

.prod-header {
  margin-bottom: 64px;
  text-align: center;
}

.prod-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 18px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 100px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--prod-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prod-eyebrow-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: prod-pulse 2s ease-in-out infinite;
}

@keyframes prod-pulse {
  50% {
    transform: scale(1.45);
    opacity: 0.6;
  }
}

.prod-heading {
  margin-bottom: 18px;
  color: var(--prod-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.prod-gradient-text {
  background: linear-gradient(135deg, var(--brand) 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.prod-sub {
  max-width: 560px;
  margin-inline: auto;
  color: var(--prod-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ---- Filter strip (shown by JS) ----------------------------------------- */

.prod-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 52px;
}

.prod-filter {
  padding: 8px 20px;
  border: 1px solid var(--prod-filter-border);
  border-radius: 100px;
  background: var(--prod-surface);
  color: var(--prod-muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.65;
  -webkit-user-select: none;
  user-select: none;
  transition: border-color var(--prod-ease), background-color var(--prod-ease), color var(--prod-ease),
    box-shadow var(--prod-ease), transform 0.18s ease;
}

.prod-filter:hover {
  transform: translateY(-1px);
  border-color: var(--prod-filter-hover-border);
  background: var(--prod-filter-hover-bg);
  color: var(--prod-accent);
}

.prod-filter[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 4px 16px rgba(182, 31, 53, 0.3);
  color: var(--white);
}

/* ---- Grid ----------------------------------------------------------------
   Six tracks on desktop: featured 4 + transfers 2, then merchants 3 + analytics 3,
   so every row is full. A filter that leaves a single regular card centers it
   at the usual one-third width instead of leaving it stranded on the left.  */

.prod-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

.prod-card {
  position: relative;
  display: flex;
  grid-column: span 2;
  overflow: hidden;
  padding: 36px 32px 32px;
  border: 1px solid var(--prod-border);
  border-radius: 14px;
  background: var(--prod-surface);
  box-shadow: 0 2px 12px rgba(30, 58, 138, 0.07);
  transition: transform var(--prod-ease), box-shadow var(--prod-ease), border-color var(--prod-ease);
}

.prod-card--featured {
  grid-column: span 4;
}

.prod-card--merchants,
.prod-card--analytics {
  grid-column: span 3;
}

.prod-grid[data-filter="merchants"] .prod-card,
.prod-grid[data-filter="analytics"] .prod-card {
  grid-column: 3 / span 2;
}

.prod-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

/* Shine sweep on hover */
.prod-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -60%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60%);
  transform: rotate(15deg) translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

/* Top accent bar on hover */
.prod-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), #06b6d4);
  opacity: 0;
  transition: opacity var(--prod-ease);
}

.prod-card:hover {
  transform: translateY(-6px);
  border-color: var(--prod-card-hover-border);
  box-shadow: 0 20px 60px rgba(30, 58, 138, 0.16);
}

.prod-card:hover::before {
  transform: rotate(15deg) translateX(300%);
}

.prod-card:hover::after {
  opacity: 1;
}

/* ---- Featured card ------------------------------------------------------- */

.prod-card--featured {
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(145deg, #8b1020 0%, var(--brand) 55%, #6b0016 100%);
  border-color: var(--prod-featured-border);
  color: var(--white);
}

.prod-card--featured::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.06));
}

.prod-card--featured:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 72px rgba(30, 58, 138, 0.35);
}

.prod-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

/* ---- Badge, icon, text --------------------------------------------------- */

.prod-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 5px;
  margin-bottom: 20px;
  padding: 4px 12px;
  border: 1px solid;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prod-badge svg {
  width: 9px;
  height: 9px;
}

.prod-badge--featured {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
}

.prod-badge--new {
  border-color: rgba(16, 185, 129, 0.22);
  background: rgba(16, 185, 129, 0.12);
  color: var(--prod-new-badge);
}

.prod-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  border-radius: 18px;
  transition: transform var(--prod-ease);
}

.prod-card:hover .prod-icon {
  transform: scale(1.1) rotate(-4deg);
}

.prod-icon svg {
  width: 28px;
  height: 28px;
}

.prod-icon--white {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.prod-icon--cyan    { background: linear-gradient(135deg, #cffafe, #a5f3fc); color: #0891b2; }
.prod-icon--emerald { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.prod-icon--analytics { background: var(--prod-analytics-tile); color: var(--prod-analytics-icon); }

.prod-title {
  margin-bottom: 10px;
  color: var(--prod-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.prod-card--featured .prod-title {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.prod-desc {
  flex-grow: 1;
  margin-bottom: 20px;
  color: var(--prod-text);
  font-size: 0.875rem;
  line-height: 1.7;
}

.prod-card--featured .prod-desc {
  max-width: 480px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

/* ---- Feature list -------------------------------------------------------- */

.prod-features {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 24px;
}

.prod-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--prod-text);
  font-size: 0.82rem;
  font-weight: 500;
}

.prod-features li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--prod-accent);
}

.prod-card--featured .prod-features {
  flex-flow: row wrap;
  gap: 10px;
  margin-bottom: 30px;
}

/* Chips: a 16px radius equals a full pill on one line and still looks right if a long chip wraps. */
.prod-card--featured .prod-features li {
  gap: 6px;
  padding: 4px 12px 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.prod-card--featured .prod-features li::before {
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.7);
}

/* ---- Links --------------------------------------------------------------- */

.prod-link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--prod-accent);
  font-size: 0.85rem;
  font-weight: 700;
  transition: gap var(--prod-ease), color var(--prod-ease), background-color var(--prod-ease);
}

.prod-link svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transition: transform var(--prod-ease);
}

.prod-link:hover {
  gap: 13px;
  color: var(--prod-accent-hover);
}

.prod-link:hover svg {
  transform: translateX(3px);
}

.prod-card--featured .prod-link {
  margin-top: 0;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.prod-card--featured .prod-link:hover {
  background: rgba(255, 255, 255, 0.24);
  color: var(--white);
}

/* ---- Featured footer: CTA + stats ---------------------------------------- */

.prod-featured-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.prod-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin: 0;
}

.prod-stat {
  display: flex;
  flex-direction: column;
}

.prod-stat-value {
  order: -1;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.prod-stat-label {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.74rem;
  font-weight: 500;
}

/* ---- Responsive ----------------------------------------------------------
   Small desktop / large tablet: featured takes the full row and the three
   other cards share the next one. A lone card stays centered at one third.  */

@media (max-width: 1100px) {
  .prod-card--featured {
    grid-column: span 6;
  }

  .prod-card--merchants,
  .prod-card--analytics {
    grid-column: span 2;
  }

  .prod-grid[data-filter="payment"] .prod-card--transfers {
    grid-column: 3 / span 2;
  }

  .prod-filter {
    min-height: 44px;
  }

  .prod-link {
    min-height: 36px;
  }
}

/* Tablet: four tracks. Featured and analytics take a full row, transfers and
   merchants share one; a lone card is centered at half width.               */

@media (max-width: 900px) {
  .prod-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .prod-card--featured,
  .prod-card--analytics {
    grid-column: span 4;
  }

  .prod-grid[data-filter="payment"] .prod-card--transfers,
  .prod-grid[data-filter="merchants"] .prod-card,
  .prod-grid[data-filter="analytics"] .prod-card {
    grid-column: 2 / span 2;
  }
}

@media (max-width: 768px) {
  .prod {
    padding: 70px 0 60px;
  }

  .prod-header {
    margin-bottom: 44px;
  }

  .prod-grid,
  .prod-grid[data-filter] {
    grid-template-columns: minmax(0, 1fr);
  }

  .prod-grid .prod-card,
  .prod-grid[data-filter] .prod-card {
    grid-column: 1;
  }

  .prod-card--featured .prod-title {
    font-size: 1.3rem;
  }

  .prod-featured-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .prod-filters {
    gap: 7px;
  }

  .prod-filter {
    padding: 7px 14px;
    font-size: 0.78rem;
  }

  .prod-card {
    padding: 28px 22px 24px;
  }

  /* Full-width CTA instead of a pill that wraps onto two lines */
  .prod-featured-footer {
    align-items: stretch;
  }

  .prod-card--featured .prod-link {
    align-self: stretch;
    justify-content: center;
    text-align: center;
  }
}

/* ---- Dark theme: only variable overrides --------------------------------- */

@media (prefers-color-scheme: dark) {
  .prod {
    --prod-bg: #0f172a;
    --prod-dots: rgba(148, 163, 184, 0.09);
    --prod-heading: #f1f5f9;
    --prod-text: #94a3b8;
    --prod-muted: #94a3b8;
    --prod-accent: #f0627a; /* brand red lightened for legible text on navy */
    --prod-accent-hover: #f47a8f;
    --prod-surface: #1e293b;
    --prod-border: rgba(148, 163, 184, 0.1);
    --prod-card-hover-border: rgba(240, 98, 122, 0.3);
    --prod-featured-border: rgba(148, 163, 184, 0.1);
    --prod-filter-border: rgba(148, 163, 184, 0.15);
    --prod-filter-hover-border: rgba(240, 98, 122, 0.4);
    --prod-filter-hover-bg: #24314a;
    --prod-new-badge: #10b981;
    /* The pale red tile disappears on navy: use a violet tile instead. */
    --prod-analytics-tile: linear-gradient(135deg, #ede9fe, #ddd6fe);
    --prod-analytics-icon: #7c3aed;
  }
}

/* ==========================================================================
   Solutions (#nos-solutions): API / merchant portal / mobile app tabs.
   Prefix: sol-
   ========================================================================== */

/* Per-theme colours. The dark block below only overrides these variables. */
.sol {
  --sol-bg: var(--white);
  --sol-heading: #0f172a;
  --sol-body: #475569;
  --sol-muted: #64748b;
  --sol-brand-dark: #8b1020;
  /* Brand-coloured text (tag, eyebrow, hovers). */
  --sol-accent: var(--brand);
  --sol-title-accent: linear-gradient(90deg, var(--brand), var(--brand-light));
  --sol-eyebrow-green: #047857;
  --sol-eyebrow-violet: #6d28d9;
  --sol-tab-bg: #f8fafc;
  --sol-tab-border: rgba(148, 163, 184, 0.22);
  --sol-tab-ink: #64748b;
  --sol-tab-hover-bg: #f0f4ff;
  --sol-feature-bg: #f8fafc;
  --sol-feature-border: rgba(148, 163, 184, 0.15);
  --sol-feature-hover-bg: #f0f4ff;
  --sol-ghost-ink: #374151;
  --sol-ghost-border: rgba(148, 163, 184, 0.35);
  --sol-ghost-hover-bg: rgba(182, 31, 53, 0.06);

  position: relative;
  overflow: clip;
  padding: clamp(72px, 9vw, 112px) clamp(20px, 5vw, 48px);
  background: var(--sol-bg);
}

@media (prefers-color-scheme: dark) {
  .sol {
    --sol-bg: #0a0f1e;
    --sol-heading: #f1f5f9;
    --sol-body: #94a3b8;
    --sol-muted: #94a3b8;
    /* Lighter tints than the reference: brand red, #047857 and #6d28d9 are under 3.5:1 on navy. */
    --sol-accent: #f0627a;
    --sol-title-accent: linear-gradient(90deg, var(--brand-light), #f0627a);
    --sol-eyebrow-green: #34d399;
    --sol-eyebrow-violet: #a78bfa;
    --sol-tab-bg: rgba(255, 255, 255, 0.05);
    --sol-tab-border: rgba(255, 255, 255, 0.09);
    --sol-tab-ink: #94a3b8;
    --sol-tab-hover-bg: rgba(182, 31, 53, 0.15);
    --sol-feature-bg: rgba(255, 255, 255, 0.04);
    --sol-feature-border: rgba(255, 255, 255, 0.07);
    --sol-feature-hover-bg: #0a0f1e;
    /* The reference kept #374151 here (1.9:1 on navy). */
    --sol-ghost-ink: #cbd5e1;
    --sol-ghost-hover-bg: rgba(182, 31, 53, 0.12);
  }
}

.sol::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 400px at 0% 50%, rgba(182, 31, 53, 0.04) 0%, transparent 65%),
    radial-gradient(ellipse 600px 350px at 100% 30%, rgba(16, 185, 129, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.sol-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin-inline: auto;
}

.sol svg {
  flex-shrink: 0;
}

/* --- Header ------------------------------------------------------------- */

.sol-header {
  margin-bottom: 64px;
  text-align: center;
}

.sol-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 5px 16px;
  border: 1px solid rgba(182, 31, 53, 0.18);
  border-radius: 50px;
  background: rgba(182, 31, 53, 0.08);
  color: var(--sol-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sol-tag svg {
  width: 13px;
  height: 13px;
}

.sol-title {
  margin-bottom: 14px;
  color: var(--sol-heading);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.sol-title-accent {
  background: var(--sol-title-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sol-sub {
  max-width: 580px;
  margin-inline: auto;
  color: var(--sol-muted);
  font-size: 16px;
  line-height: 1.68;
}

/* --- Tabs ----------------------------------------------------------------- */

.sol-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 52px;
}

.sol-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1.5px solid var(--sol-tab-border);
  border-radius: 50px;
  background: var(--sol-tab-bg);
  color: var(--sol-tab-ink);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.24s, border-color 0.24s, color 0.24s, box-shadow 0.24s;
}

.sol-tab svg {
  width: 16px;
  height: 16px;
}

.sol-tab:hover {
  border-color: rgba(182, 31, 53, 0.24);
  background: var(--sol-tab-hover-bg);
  color: var(--sol-accent);
}

.sol-tab[aria-selected="true"] {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--sol-brand-dark));
  color: var(--white);
  box-shadow: 0 6px 22px rgba(182, 31, 53, 0.28);
}

/* --- Panels ----------------------------------------------------------------- */

.sol-panels {
  display: grid;
  gap: 96px;
}

.sol-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 64px;
}

.sol-panel > * {
  min-width: 0;
}

.sol-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  padding: 4px 14px;
  border: 1px solid;
  border-radius: 50px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sol-eyebrow svg {
  width: 12px;
  height: 12px;
}

.sol-eyebrow.sol-tone--brand {
  border-color: rgba(182, 31, 53, 0.2);
  background: rgba(182, 31, 53, 0.09);
  color: var(--sol-accent);
}

.sol-eyebrow.sol-tone--green {
  border-color: rgba(5, 150, 105, 0.2);
  background: rgba(5, 150, 105, 0.09);
  color: var(--sol-eyebrow-green);
}

.sol-eyebrow.sol-tone--violet {
  border-color: rgba(124, 58, 237, 0.2);
  background: rgba(124, 58, 237, 0.09);
  color: var(--sol-eyebrow-violet);
}

.sol-panel-title {
  margin-bottom: 14px;
  color: var(--sol-heading);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.sol-panel-desc {
  margin-bottom: 28px;
  color: var(--sol-body);
  font-size: 15px;
  line-height: 1.72;
}

/* Feature list */

.sol-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.sol-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--sol-feature-border);
  border-radius: 12px;
  background: var(--sol-feature-bg);
  transition: background 0.22s, border-color 0.22s, transform 0.22s;
}

.sol-feature:hover {
  border-color: rgba(182, 31, 53, 0.18);
  background: var(--sol-feature-hover-bg);
  transform: translateX(4px);
}

.sol-feature-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.sol-feature-icon svg {
  width: 16px;
  height: 16px;
}

.sol-feature-icon.sol-tone--brand { background: rgba(182, 31, 53, 0.1); color: var(--brand); }
.sol-feature-icon.sol-tone--green { background: rgba(5, 150, 105, 0.1); color: #059669; }
.sol-feature-icon.sol-tone--violet { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }
.sol-feature-icon.sol-tone--cyan { background: rgba(6, 182, 212, 0.1); color: #0891b2; }
.sol-feature-icon.sol-tone--amber { background: rgba(245, 158, 11, 0.1); color: #d97706; }

.sol-feature-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sol-feature-label {
  color: var(--sol-heading);
  font-size: 14px;
  font-weight: 600;
}

.sol-feature-desc {
  margin-top: 1px;
  color: var(--sol-muted);
  font-size: 12px;
}

/* Buttons */

.sol-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.sol-note {
  margin: 0;
  color: var(--sol-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.sol-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  font-size: 14.5px;
  transition: background 0.26s, border-color 0.24s, color 0.24s, transform 0.2s, box-shadow 0.26s;
}

.sol-btn:hover {
  transform: translateY(-2px);
}

.sol-btn--primary {
  --sol-btn-from: var(--brand);
  --sol-btn-to: var(--sol-brand-dark);
  --sol-btn-glow: 182, 31, 53;

  padding: 13px 24px;
  background: linear-gradient(135deg, var(--sol-btn-from), var(--sol-btn-to));
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 5px 20px rgba(var(--sol-btn-glow), 0.28);
}

.sol-btn--primary:hover {
  box-shadow: 0 9px 28px rgba(var(--sol-btn-glow), 0.4);
}

.sol-btn--primary:not(.sol-btn--green, .sol-btn--violet):hover {
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
}

.sol-btn--green {
  --sol-btn-from: #047857;
  --sol-btn-to: #059669;
  --sol-btn-glow: 5, 150, 105;
}

.sol-btn--violet {
  --sol-btn-from: #6d28d9;
  --sol-btn-to: #7c3aed;
  --sol-btn-glow: 109, 40, 217;
}

.sol-btn--primary svg {
  width: 16px;
  height: 16px;
}

.sol-btn--ghost {
  padding: 11px 22px;
  border: 1.5px solid var(--sol-ghost-border);
  color: var(--sol-ghost-ink);
  font-weight: 600;
}

.sol-btn--ghost:hover {
  border-color: rgba(182, 31, 53, 0.3);
  background: var(--sol-ghost-hover-bg);
  color: var(--sol-accent);
}

.sol-btn--ghost svg {
  width: 15px;
  height: 15px;
}

/* --- Visuals ---------------------------------------------------------------- */

.sol-visual {
  position: relative;
}

@keyframes sol-float {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* API code window */

.sol-code {
  position: relative;
}

.sol-code-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: linear-gradient(145deg, #0f172a, #1e293b);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
  animation: sol-float 7s ease-in-out infinite;
}

.sol-code-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.65;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.32);
  animation: sol-float 5s ease-in-out 0.8s infinite;
}

.sol-code-badge svg {
  width: 14px;
  height: 14px;
}

.sol-code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
}

.sol-code-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
}

.sol-code-dot:nth-child(2) { background: #f59e0b; }
.sol-code-dot:nth-child(3) { background: #22c55e; }

.sol-code-file {
  margin-left: 6px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* Long lines scroll inside the window instead of wrapping or widening the page. */
.sol-code-body {
  padding: 20px 22px;
  overflow-x: auto;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Courier New", monospace;
  font-size: 12.5px;
  line-height: 1.8;
  counter-reset: sol-line;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  scrollbar-width: thin;
}

.sol-code-line {
  display: block;
  width: max-content;
  white-space: pre;
  counter-increment: sol-line;
}

/* Line numbers are generated so they are never part of the copied code. */
.sol-code-line::before {
  content: counter(sol-line);
  display: inline-block;
  min-width: 16px;
  margin-right: 14px;
  color: rgba(255, 255, 255, 0.2);
  user-select: none;
}

.sol-c-key { color: #7dd3fc; }
.sol-c-str { color: #86efac; }
.sol-c-punc { color: rgba(255, 255, 255, 0.5); }
.sol-c-com { color: rgba(255, 255, 255, 0.3); font-style: italic; }
.sol-c-kw { color: #c4b5fd; }
.sol-c-fn { color: #fde68a; }

/* Merchant portal dashboard */

.sol-dashboard {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: #f8fafc;
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.14),
    0 8px 24px rgba(15, 23, 42, 0.08);
}

.sol-dashboard img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Mobile app phone */

.sol-visual--phone {
  display: flex;
  justify-content: center;
}

.sol-phone-wrap {
  position: relative;
}

.sol-phone {
  position: relative;
  width: 230px;
  overflow: hidden;
  border: 6px solid #1e293b;
  border-radius: 36px;
  background: linear-gradient(145deg, #0f172a, #1e293b);
  box-shadow:
    0 28px 64px rgba(15, 23, 42, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: sol-float 7s ease-in-out infinite;
}

.sol-phone-notch {
  width: 80px;
  height: 16px;
  margin: 0 auto 14px;
  border-radius: 0 0 12px 12px;
  background: #1e293b;
}

.sol-phone-screen {
  padding: 4px 14px 20px;
}

.sol-phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sol-phone-app {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
}

.sol-phone-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
}

.sol-phone-balance {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sol-brand-dark), var(--brand) 55%, var(--brand-light));
  text-align: center;
}

.sol-phone-balance-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sol-phone-balance-amount {
  margin-top: 3px;
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sol-phone-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.sol-phone-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.sol-phone-action svg {
  width: 16px;
  height: 16px;
  color: #60a5fa;
}

.sol-phone-action-label {
  margin-top: 10.75px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 8.5px;
  line-height: 1.65;
}

.sol-phone-tx {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sol-phone-tx-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.sol-phone-tx-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: var(--white);
  font-size: 7px;
  font-weight: 800;
}

.sol-phone-tx-icon--airtel { background: linear-gradient(135deg, #ef4444, #dc2626); }
.sol-phone-tx-icon--orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.sol-phone-tx-icon--afrimoney { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.sol-phone-tx-icon--mpesa { background: linear-gradient(135deg, #16a34a, #15803d); }

.sol-phone-tx-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.sol-phone-tx-name {
  color: rgba(255, 255, 255, 0.8);
  font-size: 9.5px;
  font-weight: 600;
}

.sol-phone-tx-time {
  color: rgba(255, 255, 255, 0.35);
  font-size: 8px;
}

.sol-phone-tx-amount {
  color: #34d399;
  font-size: 10px;
  font-weight: 700;
}

.sol-phone-notif {
  position: absolute;
  right: -24px;
  bottom: -10px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--white);
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.16);
  animation: sol-float 5s ease-in-out 0.6s infinite;
}

.sol-phone-notif svg {
  width: 14px;
  height: 14px;
  color: #10b981;
}

/* --- Enhanced (JS) state: one panel at a time ------------------------------- */

.sol-panel[hidden] {
  display: none;
}

/* --- Responsive ------------------------------------------------------------- */

@media (max-width: 860px) {
  .sol-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .sol-panels {
    gap: 72px;
  }

  .sol-phone {
    width: 200px;
  }
}

@media (max-width: 600px) {
  .sol-tabs {
    gap: 6px;
  }

  .sol-tab {
    padding: 9px 16px;
    font-size: 13px;
  }

  .sol-actions {
    flex-direction: column;
  }

  .sol-btn {
    justify-content: center;
    width: 100%;
  }

  .sol-code-body {
    padding: 16px 18px;
    font-size: 11.5px;
  }

  .sol-code-badge {
    right: -6px;
  }

  .sol-dashboard {
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sol-feature:hover,
  .sol-btn:hover {
    transform: none;
  }
}

/* ==========================================================================
   Payment types (#types-paiement): C2B / B2C cards and the B2C availability note.
   Prefix: pay-
   ========================================================================== */

/* Per-theme colours. The dark block below only overrides these variables. */
.pay {
  --pay-bg: linear-gradient(160deg, #f0f4ff 0%, #fafbff 50%, #f0fdf4 100%);
  --pay-heading: #0f172a;
  --pay-body: #475569;
  --pay-muted: #64748b;
  --pay-brand-dark: #8b1020;
  /* Brand-coloured text (tag, C2B badge, note highlight, channels). */
  --pay-accent: var(--brand);
  --pay-c2b-bg: var(--white);
  --pay-c2b-border: rgba(182, 31, 53, 0.14);
  --pay-c2b-feature-bg: #f8fafc;
  --pay-c2b-feature-ink: #334155;
  --pay-note-bg: rgba(182, 31, 53, 0.06);
  --pay-note-border: rgba(182, 31, 53, 0.18);
  --pay-channel-bg: var(--white);
  --pay-channel-border: rgba(182, 31, 53, 0.18);

  position: relative;
  overflow: clip;
  padding: clamp(72px, 9vw, 112px) clamp(20px, 5vw, 48px);
  background: var(--pay-bg);
}

@media (prefers-color-scheme: dark) {
  .pay {
    --pay-bg: linear-gradient(160deg, #070c1a 0%, #0a0f1e 50%, #051009 100%);
    --pay-heading: #f1f5f9;
    /* Also used by the note text, which the reference left at #475569 (2.5:1 on navy). */
    --pay-body: #94a3b8;
    --pay-muted: #94a3b8;
    /* Brand red is 2.9:1 on navy; this tint is 5.9:1. */
    --pay-accent: #f0627a;
    --pay-c2b-bg: rgba(255, 255, 255, 0.04);
    --pay-c2b-border: rgba(255, 255, 255, 0.1);
    --pay-c2b-feature-bg: rgba(255, 255, 255, 0.04);
    --pay-c2b-feature-ink: #cbd5e1;
    --pay-note-bg: rgba(182, 31, 53, 0.08);
    --pay-note-border: rgba(182, 31, 53, 0.22);
    --pay-channel-bg: rgba(182, 31, 53, 0.15);
    --pay-channel-border: rgba(182, 31, 53, 0.3);
  }
}

.pay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 0% 100%, rgba(182, 31, 53, 0.05) 0%, transparent 65%),
    radial-gradient(ellipse 500px 350px at 100% 0%, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.pay-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin-inline: auto;
}

.pay svg {
  flex-shrink: 0;
}

/* --- Header ------------------------------------------------------------- */

.pay-header {
  margin-bottom: 60px;
  text-align: center;
}

.pay-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 5px 16px;
  border: 1px solid rgba(182, 31, 53, 0.18);
  border-radius: 50px;
  background: rgba(182, 31, 53, 0.08);
  color: var(--pay-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pay-tag svg {
  width: 13px;
  height: 13px;
}

.pay-title {
  margin-bottom: 14px;
  color: var(--pay-heading);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.pay-sub {
  max-width: 560px;
  margin-inline: auto;
  color: var(--pay-muted);
  font-size: 16px;
  line-height: 1.68;
}

/* --- Cards ---------------------------------------------------------------- */

.pay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.pay-card {
  position: relative;
  overflow: hidden;
  padding: 40px 36px;
  border-radius: 24px;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s;
}

.pay-card:hover {
  transform: translateY(-6px);
}

/* Decorative orb in the top-right corner */
.pay-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
}

.pay-card > article {
  position: relative;
  z-index: 1;
}

.pay-card--c2b {
  border: 1.5px solid var(--pay-c2b-border);
  background: var(--pay-c2b-bg);
  box-shadow: 0 8px 36px rgba(182, 31, 53, 0.08);
}

.pay-card--c2b:hover {
  box-shadow: 0 18px 54px rgba(182, 31, 53, 0.14);
}

.pay-card--c2b::before {
  background: radial-gradient(circle, rgba(182, 31, 53, 0.06), transparent 70%);
}

.pay-card--b2c {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, #0c1220 0%, var(--pay-brand-dark) 55%, #1a0810 100%);
  color: var(--white);
  box-shadow: 0 8px 36px rgba(15, 23, 42, 0.22);
}

.pay-card--b2c:hover {
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.32);
}

.pay-card--b2c::before {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12), transparent 70%);
}

.pay-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  padding: 5px 14px;
  border: 1px solid;
  border-radius: 50px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pay-card-badge svg {
  width: 13px;
  height: 13px;
}

.pay-card--c2b .pay-card-badge {
  border-color: rgba(182, 31, 53, 0.22);
  background: rgba(182, 31, 53, 0.1);
  color: var(--pay-accent);
}

.pay-card--b2c .pay-card-badge {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.pay-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 18px;
}

.pay-card-icon svg {
  width: 28px;
  height: 28px;
}

.pay-card--c2b .pay-card-icon {
  background: rgba(182, 31, 53, 0.1);
  color: var(--brand);
}

.pay-card--b2c .pay-card-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #93c5fd;
}

.pay-card-title {
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.pay-card--c2b .pay-card-title { color: var(--pay-heading); }
.pay-card--b2c .pay-card-title { color: #f8fafc; }

.pay-card-desc {
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.68;
}

.pay-card--c2b .pay-card-desc { color: var(--pay-body); }
.pay-card--b2c .pay-card-desc { color: rgba(255, 255, 255, 0.65); }

/* Feature list */

.pay-features {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 32px;
}

.pay-feature {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 14px;
  border: 1px solid;
  border-radius: 12px;
}

.pay-card--c2b .pay-feature {
  border-color: rgba(148, 163, 184, 0.14);
  background: var(--pay-c2b-feature-bg);
}

.pay-card--b2c .pay-feature {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.pay-feature-check {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 6px;
}

.pay-feature-check svg {
  width: 11px;
  height: 11px;
}

.pay-card--c2b .pay-feature-check {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
}

.pay-card--b2c .pay-feature-check {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.pay-feature-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pay-feature-title {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
}

.pay-feature-sub {
  margin-top: 2px;
  font-size: 11.5px;
}

.pay-card--c2b .pay-feature-title { color: var(--pay-c2b-feature-ink); }
.pay-card--b2c .pay-feature-title { color: rgba(255, 255, 255, 0.8); }

/* Slightly stronger than the original (#94a3b8 / 40% white) for readable contrast. */
.pay-card--c2b .pay-feature-sub { color: var(--pay-muted); }
.pay-card--b2c .pay-feature-sub { color: rgba(255, 255, 255, 0.55); }

/* Card CTA */

.pay-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  text-align: center;
  justify-content: center;
  transition: background 0.24s, transform 0.2s, box-shadow 0.24s;
}

.pay-card-cta:hover {
  transform: translateY(-2px);
}

.pay-card-cta svg {
  width: 16px;
  height: 16px;
}

.pay-card--c2b .pay-card-cta {
  background: linear-gradient(135deg, var(--brand), var(--pay-brand-dark));
  color: var(--white);
  box-shadow: 0 5px 20px rgba(182, 31, 53, 0.28);
}

.pay-card--c2b .pay-card-cta:hover {
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  box-shadow: 0 9px 28px rgba(182, 31, 53, 0.4);
}

.pay-card--b2c .pay-card-cta {
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.pay-card--b2c .pay-card-cta:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --- B2C availability note ------------------------------------------------ */

.pay-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  border: 1.5px solid var(--pay-note-border);
  border-radius: 16px;
  background: var(--pay-note-bg);
}

.pay-note-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(182, 31, 53, 0.1);
  color: var(--brand);
}

.pay-note-icon svg {
  width: 20px;
  height: 20px;
}

.pay-note-text {
  min-width: 0;
}

.pay-note-title {
  margin-bottom: 5px;
  color: var(--pay-heading);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.65;
}

.pay-note-desc {
  color: var(--pay-body);
  font-size: 13.5px;
  line-height: 1.6;
}

.pay-note-desc strong {
  color: var(--pay-accent);
}

.pay-channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.pay-channel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--pay-channel-border);
  border-radius: 9px;
  background: var(--pay-channel-bg);
  color: var(--pay-accent);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(182, 31, 53, 0.08);
}

.pay-channel svg {
  width: 14px;
  height: 14px;
}

/* --- Responsive ------------------------------------------------------------- */

@media (max-width: 768px) {
  .pay-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pay-card {
    padding: 32px 24px;
  }
}

@media (max-width: 600px) {
  .pay-channels {
    gap: 8px;
  }

  .pay-note {
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pay-card:hover,
  .pay-card-cta:hover {
    transform: none;
  }
}

/* ==========================================================================
   FAQ (#faq): category filter + accordion built on <details>.
   Ported from casop components/faq + public/assets/css/faq-global.css.
   ========================================================================== */

.fq {
  --fq-bg: var(--white);
  --fq-heading: #0f172a;
  --fq-muted: #64748b;
  --fq-cat-bg: #f8fafc;
  --fq-cat-border: rgba(148, 163, 184, 0.2);
  --fq-cat-hover-bg: #f0f4ff;
  --fq-item-bg: var(--white);
  --fq-item-border: rgba(148, 163, 184, 0.16);
  --fq-divider: rgba(148, 163, 184, 0.14);

  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 112px) clamp(20px, 5vw, 48px);
  background: var(--fq-bg);
}

.fq::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 400px at 100% 0%, rgba(182, 31, 53, 0.04) 0%, transparent 65%),
    radial-gradient(ellipse 500px 350px at 0% 100%, rgba(16, 185, 129, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.fq-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
.fq-header {
  margin-bottom: 48px;
  text-align: center;
}

.fq-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 5px 16px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 50px;
  background: rgba(124, 58, 237, 0.09);
  color: #7c3aed;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.fq-tag svg {
  width: 13px;
  height: 13px;
}

.fq-title {
  margin-bottom: 14px;
  color: var(--fq-heading);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.fq-sub {
  max-width: 520px;
  margin: 0 auto;
  color: var(--fq-muted);
  font-size: 16px;
  line-height: 1.68;
}

.fq-sub a {
  color: var(--brand);
  font-weight: 600;
}

.fq-sub a:hover {
  text-decoration: underline;
}

/* Category filter */
.fq-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 44px;
}

.fq-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border: 1.5px solid var(--fq-cat-border);
  border-radius: 50px;
  background: var(--fq-cat-bg);
  color: var(--fq-muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.22s, border-color 0.22s, color 0.22s, box-shadow 0.22s;
}

.fq-cat:hover {
  border-color: rgba(182, 31, 53, 0.24);
  background: var(--fq-cat-hover-bg);
  color: var(--brand);
}

.fq-cat[aria-pressed="true"] {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), #8b1020);
  color: var(--white);
  box-shadow: 0 5px 18px rgba(182, 31, 53, 0.26);
}

.fq-cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  font-size: 10px;
  font-weight: 700;
}

.fq-cat[aria-pressed="true"] .fq-cat-count {
  background: rgba(255, 255, 255, 0.25);
}

/* Accordion grid */
.fq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fq-item {
  overflow: hidden;
  border: 1.5px solid var(--fq-item-border);
  border-radius: 16px;
  background: var(--fq-item-bg);
  transition: border-color 0.24s, box-shadow 0.24s;
}

.fq-item:hover {
  border-color: rgba(124, 58, 237, 0.22);
  box-shadow: 0 6px 28px rgba(30, 58, 138, 0.07);
}

.fq-item:has(> .fq-details[open]) {
  border-color: rgba(182, 31, 53, 0.28);
  box-shadow: 0 8px 34px rgba(182, 31, 53, 0.09);
}

/* Bottom accent bar, drawn in when the item opens. */
.fq-item::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.fq-item:has(> .fq-details[open])::after {
  transform: scaleX(1);
}

.fq-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  list-style: none;
  cursor: pointer;
  transition: background 0.2s;
}

.fq-summary::-webkit-details-marker {
  display: none;
}

.fq-summary:hover {
  background: rgba(182, 31, 53, 0.025);
}

.fq-summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
  border-radius: 16px;
}

.fq-q-wrap {
  display: flex;
  flex: 1;
  align-items: flex-start;
  gap: 12px;
}

.fq-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
}

.fq-dot--general {
  background: var(--brand);
}

.fq-dot--tech {
  background: #7c3aed;
}

.fq-dot--billing {
  background: #059669;
}

.fq-dot--support {
  background: #0891b2;
}

.fq-q {
  flex: 1;
  color: var(--fq-heading);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.42;
}

.fq-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(182, 31, 53, 0.14);
  border-radius: 8px;
  background: rgba(182, 31, 53, 0.07);
  transition: background 0.24s, border-color 0.24s;
}

.fq-icon svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.fq-details[open] .fq-icon {
  border-color: var(--brand);
  background: var(--brand);
}

.fq-details[open] .fq-icon svg {
  color: var(--white);
  transform: rotate(45deg);
}

.fq-ans {
  padding: 0 22px 20px 42px;
  color: var(--fq-muted);
  font-size: 14px;
  line-height: 1.72;
}

/* Bottom call to action */
.fq-bottom {
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid var(--fq-divider);
  text-align: center;
}

.fq-bottom-text {
  margin-bottom: 20px;
  color: var(--fq-muted);
  font-size: 15px;
}

.fq-bottom-text strong {
  color: var(--fq-heading);
}

.fq-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.fq-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), #8b1020);
  color: var(--white);
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 5px 20px rgba(182, 31, 53, 0.28);
  transition: background 0.26s, transform 0.2s, box-shadow 0.26s;
}

.fq-contact-btn:hover {
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  box-shadow: 0 9px 28px rgba(182, 31, 53, 0.4);
  transform: translateY(-2px);
}

@media (prefers-color-scheme: dark) {
  .fq {
    --fq-bg: #0a0f1e;
    --fq-heading: #f1f5f9;
    --fq-muted: #94a3b8;
    --fq-cat-bg: rgba(255, 255, 255, 0.05);
    --fq-cat-border: rgba(255, 255, 255, 0.09);
    --fq-cat-hover-bg: rgba(182, 31, 53, 0.15);
    --fq-item-bg: rgba(255, 255, 255, 0.03);
    --fq-item-border: rgba(255, 255, 255, 0.08);
    --fq-divider: rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 768px) {
  .fq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .fq-cats {
    gap: 6px;
  }

  .fq-cat {
    padding: 8px 14px;
    font-size: 13px;
  }

  .fq-ans {
    padding-left: 22px;
  }

  .fq-bottom-actions {
    flex-direction: column;
    align-items: center;
  }

  .fq-contact-btn {
    justify-content: center;
    width: 100%;
  }
}

/* ==========================================================================
   Footer: brand and link columns, utility bar and bottom bar.
   Ported from casop components/home-footer + public/assets/css/footer.css.
   ========================================================================== */

.ft {
  --ft-bg: linear-gradient(180deg, #070c1a 0%, #0a0f1e 45%, #0d1629 100%);
  --ft-bottom-bg: rgba(0, 0, 0, 0.28);

  position: relative;
  overflow: hidden;
  padding-top: 72px;
  background: var(--ft-bg);
  color: #94a3b8;
}

.ft::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 15% 0%, rgba(182, 31, 53, 0.09) 0%, transparent 65%),
    radial-gradient(ellipse 700px 400px at 85% 100%, rgba(6, 182, 212, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 500px 300px at 50% 60%, rgba(16, 185, 129, 0.04) 0%, transparent 55%);
  pointer-events: none;
}

.ft-wrap {
  position: relative;
  z-index: 1;
  max-width: 1296px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

@keyframes ft-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.65);
  }
}

/* --------------------------------------------------------------------------
   Main grid: brand column + link columns
   -------------------------------------------------------------------------- */
.ft-main {
  display: grid;
  grid-template-columns: 1.9fr repeat(3, minmax(0, 1fr));
  gap: 48px 36px;
  padding-bottom: 56px;
}

.ft-main > * {
  min-width: 0;
}

.ft-logo {
  display: inline-block;
  vertical-align: top;
}

.ft-logo img {
  width: auto;
  height: 36px;
}

.ft-brand-desc {
  margin: 18px 0 24px;
  color: #4b5e7a;
  font-size: 13.5px;
  line-height: 1.75;
}

.ft-contact-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.ft-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #64748b;
  font-size: 13.5px;
  line-height: 1.5;
}

.ft-contact-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.ft-contact-icon svg {
  width: 13px;
  height: 13px;
  color: var(--brand);
}

.ft-contact-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}

.ft-contact-label {
  color: #475569;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ft-contact-value {
  color: #94a3b8;
  font-size: 13px;
  overflow-wrap: anywhere;
  transition: color 0.24s;
}

a.ft-contact-value:hover {
  color: #f8fafc;
}

/* Social icons */
.ft-social {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
}

.ft-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.28s, border-color 0.28s, transform 0.22s, box-shadow 0.28s;
}

.ft-social-link svg {
  width: 17px;
  height: 17px;
  color: #64748b;
  transition: color 0.25s;
}

.ft-social-link:hover,
.ft-social-link:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-3px);
}

.ft-social-link:hover svg,
.ft-social-link:focus-visible svg {
  color: #f1f5f9;
}

.ft-social-link--facebook:hover {
  border-color: rgba(66, 103, 178, 0.5);
  box-shadow: 0 6px 22px rgba(66, 103, 178, 0.22);
}

.ft-social-link--x:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 22px rgba(255, 255, 255, 0.1);
}

.ft-social-link--linkedin:hover {
  border-color: rgba(0, 119, 181, 0.5);
  box-shadow: 0 6px 22px rgba(0, 119, 181, 0.2);
}

.ft-social-link--instagram:hover {
  border-color: rgba(225, 48, 108, 0.5);
  box-shadow: 0 6px 22px rgba(225, 48, 108, 0.18);
}

/* Link columns */
.ft-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ft-col-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(100, 116, 139, 0.22), transparent);
}

.ft-col-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ft-col-arrow {
  display: none;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #475569;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), color 0.28s;
}

.ft-nav-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ft-nav-list a {
  position: relative;
  /* Inline so a badge follows the last word when a label wraps, instead of floating beside two lines. */
  display: inline-block;
  padding: 6px 0;
  color: #4b5e7a;
  font-size: 14px;
  line-height: 1.65;
  transition: color 0.25s, padding-left 0.25s;
}

.ft-nav-list a::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.ft-nav-list a:hover {
  padding-left: 4px;
  color: #e2e8f0;
}

.ft-nav-list a:hover::after {
  width: calc(100% - 4px);
}

.ft-nav-list a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.ft-badge {
  display: inline-block;
  margin-left: 2px;
  vertical-align: 1px;
  white-space: nowrap;
  padding: 2px 7px;
  border: 1px solid rgba(139, 92, 246, 0.24);
  border-radius: 50px;
  background: rgba(139, 92, 246, 0.14);
  color: #a78bfa;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ft-badge--support {
  border-color: rgba(6, 182, 212, 0.22);
  background: rgba(6, 182, 212, 0.12);
  color: #06b6d4;
}

/* --------------------------------------------------------------------------
   Divider + utility bar (language links, currency, trust chips)
   -------------------------------------------------------------------------- */
.ft-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 10%,
    rgba(182, 31, 53, 0.2) 35%,
    rgba(6, 182, 212, 0.16) 55%,
    rgba(16, 185, 129, 0.1) 75%,
    rgba(255, 255, 255, 0.04) 90%,
    transparent 100%
  );
}

.ft-utility {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
}

.ft-selectors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ft-globe {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  color: #475569;
}

.ft-lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
}

.ft-lang-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
  transition: background 0.25s, color 0.25s;
}

.ft-lang-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #f1f5f9;
}

.ft-lang-link[aria-current] {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}

.ft-currency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.ft-currency strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.ft-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ft-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #475569;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.24s, background 0.24s;
}

.ft-trust-chip:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.ft-trust-chip svg {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
}

.ft-trust-chip--green svg {
  color: #10b981;
}

.ft-trust-chip--brand svg {
  color: var(--brand);
}

.ft-trust-chip--amber svg {
  color: #f59e0b;
}

.ft-trust-chip--cyan svg {
  color: #06b6d4;
}

/* --------------------------------------------------------------------------
   Bottom bar
   -------------------------------------------------------------------------- */
.ft-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  background: var(--ft-bottom-bg);
}

.ft-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1296px;
  margin: 0 auto;
  padding: 20px clamp(20px, 5vw, 48px);
}

.ft-copyright {
  color: #475569;
  font-size: 12.5px;
  line-height: 1.5;
}

.ft-copyright a {
  color: #64748b;
  transition: color 0.22s;
}

.ft-copyright a:hover {
  color: #94a3b8;
}

.ft-pay {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ft-pay-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.24s, border-color 0.24s;
}

.ft-pay-logo:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
}

/* Logos are shown as white silhouettes. */
.ft-pay-logo img {
  width: auto;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.45);
  transition: filter 0.24s;
}

.ft-pay-logo:hover img {
  filter: brightness(0) invert(1) opacity(0.8);
}

/* JPEG logos have an opaque white background, so the silhouette filter above would turn them
   into plain boxes. The SVG filter in footer.njk maps lightness to transparency instead. */
.ft-pay-logo--flat img {
  filter: url("#ft-knockout") opacity(0.45);
}

.ft-pay-logo--flat:hover img {
  filter: url("#ft-knockout") opacity(0.8);
}

.ft-pay-afm {
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  transition: color 0.24s;
}

.ft-pay-logo:hover .ft-pay-afm {
  color: rgba(255, 255, 255, 0.85);
}

.ft-powered {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #475569;
  font-size: 11.5px;
  line-height: 1.65;
}

.ft-powered-glow {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: 0 0 8px rgba(182, 31, 53, 0.5);
  animation: ft-pulse 2.2s ease-in-out infinite;
}

/* The footer is dark in both schemes; dark mode only deepens it. */
@media (prefers-color-scheme: dark) {
  .ft {
    --ft-bg: linear-gradient(180deg, #020509 0%, #050c17 45%, #080f1e 100%);
    --ft-bottom-bg: rgba(0, 0, 0, 0.4);
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .ft-main {
    grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
    gap: 40px 28px;
  }

  .ft-nav-list a {
    min-height: 40px;
  }

  /* A 40px tap target that keeps the value tight under its label, like the address. */
  .ft-contact-text a.ft-contact-value {
    display: inline-block;
    margin: -10px 0;
    padding: 10px 0;
  }
}

@media (max-width: 860px) {
  .ft {
    padding-top: 56px;
  }

  .ft-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 24px;
  }

  .ft-col--brand {
    grid-column: 1 / -1;
  }

  .ft-utility {
    flex-direction: column;
    align-items: flex-start;
  }

  .ft-bottom-inner {
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .ft {
    padding-top: 44px;
  }

  .ft-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-bottom: 36px;
    padding-bottom: 0;
  }

  .ft-col {
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  }

  .ft-col--brand {
    margin-bottom: 4px;
    padding-bottom: 28px;
  }

  .ft-col-title {
    margin-bottom: 0;
    padding: 17px 0;
    font-size: 11.5px;
  }

  .ft-col-title::after {
    display: none;
  }

  /* Collapsible columns only once footer.js can toggle them; without JS every link stays visible. */
  .ft.is-enhanced .ft-col-label {
    flex: 1;
    cursor: pointer;
  }

  .ft.is-enhanced .ft-col-arrow {
    display: block;
  }

  .ft.is-enhanced .ft-col.is-open .ft-col-arrow {
    color: var(--brand);
    transform: rotate(180deg);
  }

  .ft.is-enhanced .ft-collapsible {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.38s;
  }

  .ft.is-enhanced .ft-col.is-open .ft-collapsible {
    grid-template-rows: 1fr;
    visibility: visible;
  }

  .ft.is-enhanced .ft-nav-list {
    overflow: hidden;
  }

  .ft.is-enhanced .ft-col.is-open .ft-nav-list {
    padding-bottom: 20px;
  }

  .ft-bottom-inner {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    padding-bottom: 22px;
    text-align: center;
  }

  .ft-trust {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ft-powered-glow {
    animation: none;
  }

  .ft-social-link:hover,
  .ft-social-link:focus-visible {
    transform: none;
  }

  .ft-nav-list a:hover {
    padding-left: 0;
  }
}

.ft-flag {
  flex: none;
  width: 16px;
  height: 11px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.ft-nowrap {
  white-space: nowrap;
}

/* ==========================================================================
   404 page
   Same language as the home page sections: pastel gradient in light mode,
   navy gradient in dark mode, brand red accents, eyebrow pill, cards.
   ========================================================================== */

.nf {
  --nf-bg: linear-gradient(160deg, #eef2ff 0%, #f0f9ff 50%, #ecfdf5 100%);
  --nf-glow: rgb(182 31 53 / 10%);
  --nf-heading: #0f172a;
  --nf-text: #64748b;
  --nf-line: rgb(148 163 184 / 24%);
  --nf-accent: var(--brand);
  --nf-accent-soft: rgb(182 31 53 / 8%);
  --nf-accent-line: rgb(182 31 53 / 22%);
  --nf-code: rgb(15 23 42 / 6%);
  --nf-card-bg: rgb(255 255 255 / 82%);
  --nf-card-border: rgb(148 163 184 / 18%);
  --nf-card-shadow: 0 2px 12px rgb(30 58 138 / 7%);
  --nf-card-shadow-hover: 0 12px 32px rgb(30 58 138 / 14%);
  --nf-arrow: rgb(100 116 139 / 70%);
  --nf-ghost-text: var(--ink);
  --nf-ghost-bg: rgb(255 255 255 / 70%);
  --nf-ghost-border: rgb(15 23 42 / 14%);
  --nf-ghost-border-hover: rgb(15 23 42 / 28%);
  --nf-ghost-bg-hover: var(--white);
  --nf-ease: cubic-bezier(0.4, 0, 0.2, 1);

  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  padding: clamp(64px, 9vw, 112px) var(--gutter) clamp(72px, 10vw, 120px);
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, var(--nf-glow), transparent 70%),
    var(--nf-bg);
}

/* Giant outlined "404" behind the content. */
.nf-code {
  position: absolute;
  top: clamp(8px, 3vw, 32px);
  left: 50%;
  z-index: -1;
  color: transparent;
  font-size: clamp(150px, 34vw, 400px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--nf-code) 0%, transparent 85%);
  -webkit-background-clip: text;
  background-clip: text;
  transform: translateX(-50%);
  user-select: none;
  pointer-events: none;
}

.nf-inner {
  width: 100%;
  max-width: 980px;
  text-align: center;
}

.nf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--nf-accent-line);
  border-radius: 100px;
  color: var(--nf-accent);
  background: var(--nf-accent-soft);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nf-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentcolor;
  box-shadow: 0 0 0 4px var(--nf-accent-soft);
}

.nf-title {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--nf-heading);
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.nf-text {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--nf-text);
  font-size: clamp(0.95rem, 1.6vw, 1.06rem);
  line-height: 1.7;
  text-wrap: pretty;
}

/* --- Buttons --------------------------------------------------------------- */

.nf-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.nf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: 10px;
  color: var(--white);
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition:
    transform 0.3s var(--nf-ease),
    box-shadow 0.3s var(--nf-ease),
    background-color 0.3s var(--nf-ease),
    border-color 0.3s var(--nf-ease);
}

.nf-btn svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.nf-btn:hover {
  transform: translateY(-2px);
}

.nf-btn--primary {
  background: var(--brand-gradient) border-box;
  box-shadow: 0 4px 16px rgb(182 31 53 / 36%);
}

.nf-btn--primary:hover {
  box-shadow: 0 10px 30px rgb(182 31 53 / 52%);
}

.nf-btn--ghost {
  border-color: var(--nf-ghost-border);
  color: var(--nf-ghost-text);
  background: var(--nf-ghost-bg);
}

.nf-btn--ghost:hover {
  border-color: var(--nf-ghost-border-hover);
  background: var(--nf-ghost-bg-hover);
}

/* --- Help cards ------------------------------------------------------------ */

.nf-links {
  margin-top: clamp(48px, 7vw, 72px);
  padding-top: 32px;
  border-top: 1px solid var(--nf-line);
}

.nf-links-title {
  color: var(--nf-text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nf-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
  text-align: left;
}

.nf-card {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--nf-card-border);
  border-radius: 14px;
  background: var(--nf-card-bg);
  box-shadow: var(--nf-card-shadow);
  transition:
    transform 0.3s var(--nf-ease),
    border-color 0.3s var(--nf-ease),
    box-shadow 0.3s var(--nf-ease);
}

.nf-card:hover {
  border-color: var(--nf-accent-line);
  box-shadow: var(--nf-card-shadow-hover);
  transform: translateY(-3px);
}

.nf-card-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--nf-accent);
  background: var(--nf-accent-soft);
}

.nf-card-icon svg {
  width: 22px;
  height: 22px;
}

.nf-card-text {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.nf-card-title {
  color: var(--nf-heading);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}

.nf-card-sub {
  color: var(--nf-text);
  font-size: 0.82rem;
  line-height: 1.45;
}

.nf-card-arrow {
  flex-shrink: 0;
  color: var(--nf-arrow);
  transition: color 0.3s var(--nf-ease), transform 0.3s var(--nf-ease);
}

.nf-card-arrow svg {
  width: 18px;
  height: 18px;
}

.nf-card:hover .nf-card-arrow {
  color: var(--nf-accent);
  transform: translateX(3px);
}

@media (max-width: 860px) {
  .nf-cards {
    grid-template-columns: minmax(0, 1fr);
    max-width: 440px;
    margin-inline: auto;
  }
}

@media (max-width: 479.98px) {
  .nf-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nf-btn {
    white-space: normal;
  }
}

@media (prefers-color-scheme: dark) {
  .nf {
    --nf-bg: linear-gradient(160deg, #0f172a 0%, #0c1a35 50%, #0d1f1a 100%);
    --nf-glow: rgb(182 31 53 / 22%);
    --nf-heading: #f1f5f9;
    --nf-text: #94a3b8;
    --nf-line: rgb(148 163 184 / 14%);
    --nf-accent: #f0627a;
    --nf-accent-soft: rgb(240 98 122 / 12%);
    --nf-accent-line: rgb(240 98 122 / 35%);
    --nf-code: rgb(255 255 255 / 9%);
    --nf-card-bg: rgb(15 23 42 / 85%);
    --nf-card-border: rgb(148 163 184 / 12%);
    --nf-card-shadow: 0 2px 12px rgb(0 0 0 / 20%);
    --nf-card-shadow-hover: 0 12px 32px rgb(0 0 0 / 35%);
    --nf-arrow: rgb(148 163 184 / 60%);
    --nf-ghost-text: var(--white);
    --nf-ghost-bg: rgb(255 255 255 / 6%);
    --nf-ghost-border: rgb(255 255 255 / 28%);
    --nf-ghost-border-hover: rgb(255 255 255 / 52%);
    --nf-ghost-bg-hover: rgb(255 255 255 / 12%);
  }
}

/* ==========================================================================
   Merchant onboarding form and its thanks page.
   Card layout taken from the former axion form: brand gradient header,
   numbered sections, two-column grid that collapses on small screens.
   ========================================================================== */

.ob {
  --ob-bg:
    radial-gradient(circle at 8% 0%, rgb(182 31 53 / 10%), transparent 32%),
    radial-gradient(circle at 100% 90%, rgb(117 12 30 / 8%), transparent 34%),
    #fff7f7;
  --ob-card: var(--white);
  --ob-card-border: #f1d9dc;
  --ob-card-shadow: 0 24px 70px rgb(88 19 31 / 11%);
  --ob-head: linear-gradient(125deg, #710d1d 0%, var(--brand) 58%, var(--brand-light) 100%);
  --ob-heading: #28191c;
  --ob-label: #38272a;
  --ob-text: #76686b;
  --ob-hint: #87777a;
  --ob-line: #f1e5e7;
  --ob-input-bg: var(--white);
  --ob-input-border: #dcd0d2;
  --ob-input-border-hover: #c2aeb1;
  --ob-input-text: #28191c;
  --ob-accent: var(--brand);
  --ob-accent-soft: #fdebed;
  --ob-error: #bd1230;
  --ob-error-bg: #fffafa;

  padding: clamp(28px, 6vw, 64px) var(--gutter) clamp(48px, 8vw, 96px);
  background: var(--ob-bg);
}

.ob-card {
  width: min(820px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--ob-card-border);
  border-radius: 22px;
  background: var(--ob-card);
  box-shadow: var(--ob-card-shadow);
}

.ob-head {
  padding: 42px 48px 38px;
  color: var(--white);
  background: var(--ob-head);
}

.ob-eyebrow {
  margin: 0;
  color: #ffd8dd;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ob-title {
  max-width: 620px;
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.ob-intro {
  max-width: 640px;
  margin: 0;
  color: #ffecef;
  line-height: 1.65;
}

.ob-form {
  padding: 12px 48px 46px;
}

.ob-required-note {
  margin: 26px 0 0;
  color: var(--ob-text);
  font-size: 0.82rem;
}

.ob-summary {
  margin: 16px 0 6px;
  padding: 14px 16px;
  border: 1px solid #efb9c1;
  border-radius: 12px;
  color: var(--ob-error);
  background: #fff2f4;
  font-size: 0.88rem;
  font-weight: 600;
}

.ob-set {
  min-width: 0;
  margin: 0;
  padding: 30px 0 38px;
  border: 0;
  border-bottom: 1px solid var(--ob-line);
}

.ob-legend {
  /* Floated so the fieldset's padding sits above the legend, not between it and the fields. */
  float: left;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  margin-bottom: 26px;
  padding: 0;
}

.ob-legend strong,
.ob-legend small {
  display: block;
}

.ob-legend strong {
  color: var(--ob-heading);
  font-size: 1.08rem;
}

.ob-legend small {
  margin-top: 4px;
  color: var(--ob-text);
  font-size: 0.87rem;
}

.ob-step {
  display: grid;
  flex: 0 0 37px;
  height: 37px;
  place-items: center;
  border-radius: 11px;
  color: var(--ob-accent);
  background: var(--ob-accent-soft);
  font-size: 0.76rem;
  font-weight: 900;
}

.ob-grid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 23px 20px;
}

.ob-full {
  grid-column: 1 / -1;
}

.ob-field[hidden] {
  display: none;
}

.ob-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ob-label);
  font-size: 0.9rem;
  font-weight: 700;
}

.ob-field label span {
  color: var(--ob-error);
}

.ob-field small {
  display: block;
  margin-top: 7px;
  color: var(--ob-hint);
  font-size: 0.78rem;
  line-height: 1.45;
}

.ob-field input,
.ob-field textarea,
.ob-field select {
  width: 100%;
  border: 1px solid var(--ob-input-border);
  border-radius: 11px;
  outline: none;
  color: var(--ob-input-text);
  background: var(--ob-input-bg);
  font: inherit;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.ob-field input,
.ob-field select {
  height: 48px;
  padding: 0 14px;
}

.ob-field select {
  cursor: pointer;
}

.ob-field textarea {
  min-height: 92px;
  padding: 13px 14px;
  resize: vertical;
}

.ob-field input:hover,
.ob-field textarea:hover,
.ob-field select:hover {
  border-color: var(--ob-input-border-hover);
}

.ob-field input:focus,
.ob-field textarea:focus,
.ob-field select:focus {
  border-color: var(--ob-accent);
  box-shadow: 0 0 0 4px rgb(182 31 53 / 12%);
}

.ob-field [aria-invalid="true"] {
  border-color: var(--ob-error);
  background: var(--ob-error-bg);
}

.ob-error {
  margin: 7px 0 0;
  color: var(--ob-error);
  font-size: 0.8rem;
  font-weight: 600;
}

.ob-footer {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
}

.ob-secure {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 330px;
  margin: 0;
  color: var(--ob-text);
  font-size: 0.8rem;
  line-height: 1.5;
}

.ob-secure svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.ob-submit,
.ob-ghost {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 24px;
  border-radius: 11px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.ob-submit {
  min-width: 220px;
  border: 0;
  color: var(--white);
  background: var(--ob-accent);
  box-shadow: 0 10px 22px rgb(168 15 41 / 20%);
}

.ob-submit svg {
  width: 18px;
  height: 18px;
}

.ob-submit:hover:not(:disabled) {
  background: #8f1528;
  transform: translateY(-1px);
}

.ob-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.ob-ghost {
  border: 2px solid var(--ob-input-border);
  color: var(--ob-heading);
  background: transparent;
}

.ob-ghost:hover {
  border-color: var(--ob-input-border-hover);
}

.ob-submit:focus-visible,
.ob-ghost:focus-visible {
  outline: 3px solid var(--ob-accent);
  outline-offset: 3px;
}

/* --- Thanks page ------------------------------------------------------------ */

.ob-card--thanks {
  width: min(680px, 100%);
}

.ob-thanks {
  padding: clamp(36px, 7vw, 64px) clamp(24px, 6vw, 56px);
  text-align: center;
}

.ob-thanks-icon {
  display: inline-grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  color: #155e3d;
  background: #e3f7ed;
}

.ob-thanks-icon svg {
  width: 30px;
  height: 30px;
}

.ob-eyebrow--dark {
  color: var(--ob-accent);
}

.ob-title--dark {
  margin-right: auto;
  margin-left: auto;
  color: var(--ob-heading);
}

.ob-thanks-text {
  max-width: 520px;
  margin: 0 auto;
  color: var(--ob-text);
  line-height: 1.7;
}

.ob-thanks-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* --- Small screens ---------------------------------------------------------- */

@media (max-width: 680px) {
  .ob {
    padding: 0;
  }

  .ob-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .ob-head,
  .ob-form {
    padding-right: 24px;
    padding-left: 24px;
  }

  .ob-head {
    padding-top: 32px;
  }

  .ob-grid {
    grid-template-columns: 1fr;
  }

  .ob-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .ob-submit {
    width: 100%;
  }
}

/* --- Dark mode -------------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
  .ob {
    --ob-bg:
      radial-gradient(circle at 8% 0%, rgb(212 65 94 / 14%), transparent 32%),
      linear-gradient(160deg, #0b1220 0%, #111a2e 100%);
    --ob-card: #121b2d;
    --ob-card-border: rgb(148 163 184 / 18%);
    --ob-card-shadow: 0 24px 70px rgb(0 0 0 / 35%);
    --ob-heading: #f1f5f9;
    --ob-label: #e2e8f0;
    --ob-text: #94a3b8;
    --ob-hint: #8391a7;
    --ob-line: rgb(148 163 184 / 16%);
    --ob-input-bg: #0f172a;
    --ob-input-border: rgb(148 163 184 / 28%);
    --ob-input-border-hover: rgb(148 163 184 / 48%);
    --ob-input-text: #f1f5f9;
    --ob-accent: #e0566f;
    --ob-accent-soft: rgb(224 86 111 / 14%);
    --ob-error: #f08396;
    --ob-error-bg: rgb(224 86 111 / 8%);
  }

  .ob-summary {
    border-color: rgb(240 131 150 / 40%);
    background: rgb(224 86 111 / 10%);
  }

  .ob-thanks-icon {
    color: #6ee7b7;
    background: rgb(16 185 129 / 14%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ob-submit,
  .ob-ghost,
  .ob-field input,
  .ob-field textarea,
  .ob-field select {
    transition: none;
  }
}