/* Modern UI polish layer — loaded last so it refines base/components/pages. */

:root {
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(15, 54, 45, 0.06), 0 4px 12px rgba(15, 54, 45, 0.05);
  --shadow-md: 0 2px 4px rgba(15, 54, 45, 0.05), 0 14px 32px rgba(15, 54, 45, 0.1);
  --shadow-lg: 0 4px 8px rgba(15, 54, 45, 0.06), 0 28px 56px rgba(15, 54, 45, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

::selection {
  background: var(--primary-2);
  color: #fff;
}

body {
  background:
    radial-gradient(1000px 520px at 85% -8%, rgba(26, 91, 75, 0.1), transparent 60%),
    radial-gradient(800px 420px at 0% 4%, rgba(197, 140, 43, 0.08), transparent 60%),
    linear-gradient(180deg, #f9f6f1 0%, #f3efe8 100%);
  background-attachment: fixed;
}

/* ---------- Header ---------- */
.site-header {
  background: color-mix(in srgb, #ffffff 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(15, 54, 45, 0.08);
  box-shadow: 0 8px 30px rgba(15, 54, 45, 0.05);
}
.main-header {
  background: transparent;
  border-bottom: 0;
}
.primary-nav a {
  position: relative;
  padding: 10px 2px;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-2), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.primary-nav a:hover::after,
.primary-nav .current-menu-item a::after {
  transform: scaleX(1);
}

/* ---------- Buttons ---------- */
.button {
  border-radius: 999px;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    filter 0.2s ease,
    background 0.2s ease;
}
.button:hover {
  transform: translateY(-2px);
  filter: none;
  box-shadow: var(--shadow-md);
}
.button:active {
  transform: translateY(0) scale(0.98);
}
.button-primary {
  background: linear-gradient(135deg, var(--primary-2) 0%, var(--primary) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(15, 54, 45, 0.28);
}
.button-primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 32px rgba(15, 54, 45, 0.34);
}
.button-secondary {
  border-color: rgba(15, 54, 45, 0.2);
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary);
  backdrop-filter: blur(6px);
}
.button-secondary:hover {
  border-color: var(--primary-2);
  background: #fff;
}
.button .material-symbols-outlined {
  font-size: 1.25em;
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  overflow: hidden;
  border-bottom: 0;
  background:
    radial-gradient(60% 70% at 50% -10%, rgba(26, 91, 75, 0.2), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(197, 140, 43, 0.12), transparent 70%),
    linear-gradient(180deg, #f9f6f1 0%, #f4f0e9 100%);
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 54, 45, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at center top, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center top, #000 20%, transparent 72%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  padding-block: clamp(48px, 8vw, 104px);
}
.hero-copy h1 {
  background: linear-gradient(135deg, var(--primary) 20%, var(--primary-2) 70%, #2f8a72 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
  letter-spacing: -0.045em;
  line-height: 1.04;
}
.eyebrow {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(26, 91, 75, 0.2);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}
.eyebrow span {
  box-shadow: 0 0 0 4px rgba(26, 91, 75, 0.18);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(26, 91, 75, 0.2); }
  50% { box-shadow: 0 0 0 7px rgba(26, 91, 75, 0); }
}
.lede {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 54, 45, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}
.hero-actions {
  gap: 12px;
  margin-top: 4px;
}
.hero-payments-logos img {
  border-radius: 12px;
  border-color: rgba(15, 54, 45, 0.08);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.hero-payments-logos img:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ---------- Sections ---------- */
.section {
  border-bottom: 0;
  padding-block: clamp(52px, 7vw, 96px);
}
.section-head {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 40px;
}
.section-head h2,
.section > .shell > h2 {
  letter-spacing: -0.035em;
}

/* ---------- Cards ---------- */
.tier-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 54, 45, 0.08);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.tier-card.is-featured::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-2), var(--gold), var(--primary-2));
}
.account-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.steps-grid article {
  position: relative;
  border: 1px solid rgba(15, 54, 45, 0.1);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fff 0%, #faf8f4 100%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.steps-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 91, 75, 0.35);
}
.steps-grid span {
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  box-shadow: 0 8px 18px rgba(15, 54, 45, 0.28);
}

.rails-section {
  background: linear-gradient(180deg, #f6f2ec 0%, #efe9e0 100%);
}
.rail-card {
  border-radius: var(--radius-md);
  border-color: rgba(15, 54, 45, 0.08);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.rail-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 91, 75, 0.3);
}

.metric-card,
.market-card,
.blog-card,
.testimonial-feature,
.testimonial-rail-item {
  border-radius: var(--radius-md);
}
.blog-card {
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.blog-card-media img {
  transition: transform 0.6s var(--ease);
}
.blog-card:hover .blog-card-media img {
  transform: scale(1.04);
}
.content-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ---------- FAQ ---------- */
.faq-list details {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease);
}
.faq-list details:hover {
  transform: translateY(-1px);
}
.faq-list summary::after {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-soft);
  font-size: 1.25rem;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}
.faq-list details[open] summary::after {
  background: var(--primary-2);
  color: #fff;
}

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(26, 91, 75, 0.14), transparent 70%),
    #fff;
}
.final-cta .button {
  border-radius: 999px;
}
.cta-proof {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid rgba(15, 54, 45, 0.08);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.footer-logo {
  border-radius: 10px;
}
.footer-grid a {
  transition: color 0.2s ease, transform 0.2s var(--ease);
}
.footer-grid a:hover {
  transform: translateX(3px);
}

/* ---------- Floating APK button ---------- */
.floating-apk {
  background: linear-gradient(135deg, var(--primary-2) 0%, var(--primary) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 14px 30px rgba(15, 54, 45, 0.38);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.floating-apk .material-symbols-outlined {
  font-size: 1.3em;
  animation: nudge-down 2.4s ease-in-out infinite;
}
@keyframes nudge-down {
  0%, 100% { transform: translateY(-1px); }
  50% { transform: translateY(2px); }
}
.floating-apk:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 20px 38px rgba(15, 54, 45, 0.45);
}

/* ---------- Mobile bars ---------- */
@media (max-width: 760px) {
  .bottom-nav {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid rgba(15, 54, 45, 0.08);
    box-shadow: 0 -8px 28px rgba(15, 54, 45, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .mobile-whatsapp a {
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-2), var(--primary));
    box-shadow: 0 12px 28px rgba(15, 54, 45, 0.32);
  }
  .tier-card,
  .account-visual img {
    border-radius: var(--radius-md);
  }
  .site-footer {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
}

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================================================
   Responsive refinements
   ===================================================================== */

html,
body {
  overflow-x: clip;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
iframe,
video,
table {
  max-width: 100%;
}
.comparison-table,
.odds-table {
  -webkit-overflow-scrolling: touch;
}
.floating-apk {
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

/* Tablet and below */
@media (max-width: 1120px) {
  .account-visual {
    aspect-ratio: 16 / 10;
  }
  .feature-split {
    gap: 32px;
  }
  .feature-split .tier-card h3 {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .mobile-panel {
    max-height: calc(100vh - 140px);
    max-height: calc(100dvh - 140px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .mobile-panel a {
    min-height: 46px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
  }
  .menu-toggle {
    border-radius: 12px;
  }
}

@media (max-width: 960px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .faq-intro {
    position: static;
    max-width: none;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .testimonial-editorial-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    min-height: 0;
    padding: 32px 20px;
  }
  .testimonial-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
  .testimonial-feature {
    max-width: none;
    text-align: center;
  }
  .testimonial-feature cite {
    justify-items: center;
  }
  .testimonial-editorial-more {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Phones */
@media (max-width: 760px) {
  body {
    padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-header {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
  }
  .mobile-menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .mobile-logo .brand-logo {
    width: min(160px, 46vw);
    height: auto;
    aspect-ratio: 5 / 1;
  }
  .hero-grid {
    padding-block: 28px 36px;
  }
  .hero-copy h1 {
    font-size: clamp(1.7rem, 8vw, 2.1rem);
    line-height: 1.12;
  }
  .lede {
    font-size: 1.15rem;
    line-height: 1.95;
    padding: 12px 14px;
    margin-bottom: 18px;
  }
  .hero-actions {
    width: 100%;
    flex-direction: column;
  }
  .hero-actions .button {
    width: 100%;
    min-height: 52px;
  }
  .hero-payments {
    margin-top: 18px;
  }
  .hero-payments-logos {
    justify-content: center;
  }
  .section {
    padding-block: 36px;
  }
  .section-head {
    margin-bottom: 24px;
  }
  .feature-split .tier-card h3 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
    line-height: 1.05;
  }
  .feature-split .tier-card .button,
  .tier-card .button {
    width: 100%;
    max-width: none;
    min-height: 52px;
  }
  .steps-grid article {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 6px 14px;
  }
  .steps-grid span {
    width: 44px;
    height: 44px;
  }
  .steps-grid .step-urdu {
    font-size: 1.3rem;
  }
  .faq-intro h2 {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }
  .faq-list details p {
    margin-right: 0;
  }
  .final-cta {
    padding-block: 48px;
  }
  .final-cta h2 {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
    line-height: 1.05;
  }
  .final-cta .button {
    width: 100%;
    min-width: 0;
    min-height: 52px;
  }
  .cta-proof {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: var(--radius-md);
  }
  .cta-proof-label {
    white-space: normal;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-legal {
    flex-wrap: wrap;
    gap: 10px 18px;
  }
  .footer-grid a {
    padding-block: 4px;
  }
  .bottom-nav a {
    min-height: 56px;
    font-size: 10px;
  }
  /* Floating APK: compact pill that clears the WhatsApp bar */
  .floating-apk {
    right: 14px;
    bottom: calc(136px + env(safe-area-inset-bottom, 0px));
    min-height: 44px;
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .shell {
    width: calc(100% - 24px);
  }
  .rail-grid {
    gap: 8px;
  }
  .metric-card {
    padding: 12px;
  }
  .floating-apk span {
    display: none;
  }
  .floating-apk {
    width: 48px;
    height: 48px;
    min-height: 0;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .floating-apk .material-symbols-outlined {
    font-size: 1.6rem;
  }
}

/* Touch devices: no sticky hover lifts */
@media (hover: none) {
  .button:hover,
  .steps-grid article:hover,
  .rail-card:hover,
  .blog-card:hover,
  .faq-list details:hover,
  .floating-apk:hover,
  .hero-payments-logos img:hover,
  .footer-grid a:hover {
    transform: none;
  }
}

/* ---------- Fixes from visual review ---------- */
.hero-copy h1 {
  padding-bottom: 0.12em; /* keep gradient-clipped descenders visible */
  margin-bottom: 20px;
}
.feature-split .account-offer {
  overflow: visible;
}
.feature-split .account-offer::before {
  display: none;
}
.feature-split .tier-card h3 {
  padding-block: 0.05em;
  overflow-wrap: anywhere;
}

/* Comparison table: rounded, and fits phones without sideways scroll */
.comparison-table {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.comparison-table table {
  min-width: 0;
}
@media (max-width: 760px) {
  .comparison-table thead th:nth-child(n) {
    padding: 14px 12px;
    font-size: 0.95rem;
  }
  .comparison-table tbody td {
    padding: 12px;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
  }
}

/* =====================================================================
   Hero refinement
   ===================================================================== */
.hero-copy h1 {
  text-wrap: balance;
  max-width: 14ch;
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}
.hero-copy .eyebrow {
  margin-bottom: 18px;
}
.lede {
  position: relative;
  max-width: 720px;
  margin: 6px 0 28px;
  padding: 18px 28px 20px;
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  line-height: 2.05;
  text-align: center;
  text-wrap: balance;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(15, 54, 45, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.lede::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 72px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--primary-2), var(--gold));
}
.hero-actions {
  align-items: stretch;
  gap: 14px;
}
.hero-actions .button-large {
  min-height: 56px;
  padding-inline: 28px;
}
.hero-payments {
  margin-top: 30px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 54, 45, 0.07);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.hero-payments-logos {
  gap: 10px;
  justify-content: center;
}
.hero-payments-logos img {
  height: 38px;
  max-width: 76px;
}

@media (max-width: 760px) {
  .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(2rem, 10vw, 2.5rem);
  }
  .lede {
    padding: 14px 16px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
  }
  .hero-payments {
    width: 100%;
    border-radius: var(--radius-md);
    padding: 12px;
  }
  .hero-payments-logos img {
    height: 34px;
    max-width: 64px;
  }
}

/* =====================================================================
   Mobile bottom area: WhatsApp bar + APK button share one row
   ===================================================================== */
@media (max-width: 760px) {
  .mobile-whatsapp {
    left: 12px;
    right: 164px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-whatsapp a {
    min-height: 52px;
    padding: 8px 14px;
    gap: 10px;
    justify-content: flex-start;
  }
  .mobile-whatsapp small {
    display: none;
  }
  .floating-apk {
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    width: 144px;
    min-height: 52px;
    white-space: nowrap;
    padding: 8px 12px;
    justify-content: center;
    border-radius: 16px;
    font-size: 0.8rem;
    line-height: 1.15;
    text-align: left;
  }
  .floating-apk .material-symbols-outlined {
    font-size: 1.4rem;
  }
}
@media (max-width: 380px) {
  .mobile-whatsapp {
    right: 76px;
  }
  .floating-apk {
    width: 52px;
    min-height: 52px;
    height: 52px;
    padding: 0;
    border-radius: 16px;
  }
  .floating-apk span:not(.material-symbols-outlined) {
    display: none;
  }
}

/* =====================================================================
   Sticky footer: footer sits at the bottom on short pages
   ===================================================================== */
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main {
  flex: 1 0 auto;
}
.site-footer {
  margin-top: auto;
}

/* =====================================================================
   Bottom navigation (mobile)
   ===================================================================== */
@media (max-width: 760px) {
  .bottom-nav {
    min-height: 68px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px 22px 0 0;
    background: rgba(255, 255, 255, 0.88);
    border-top: 1px solid rgba(15, 54, 45, 0.08);
    box-shadow: 0 -10px 30px rgba(15, 54, 45, 0.1);
  }
  .bottom-nav a {
    position: relative;
    gap: 3px;
    padding-top: 2px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav .mobile-urdu {
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
  }
  .bottom-nav .material-symbols-outlined {
    display: grid;
    place-items: center;
    width: 54px;
    height: 30px;
    border-radius: 999px;
    font-size: 23px;
    vertical-align: baseline;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .bottom-nav a:active .material-symbols-outlined {
    transform: scale(0.92);
  }

  /* Active section */
  .bottom-nav a.is-active {
    color: var(--primary);
  }
  .bottom-nav a.is-active .material-symbols-outlined {
    background: var(--primary-soft);
    color: var(--primary-2);
    font-variation-settings: 'FILL' 1;
  }

  /* Highlighted action (WhatsApp payment help) */
  .bottom-nav a:nth-child(3) {
    color: var(--primary);
  }
  .bottom-nav a:nth-child(3) .material-symbols-outlined {
    background: linear-gradient(135deg, var(--primary-2), var(--primary));
    color: #fff;
    box-shadow: 0 6px 14px rgba(15, 54, 45, 0.3);
  }

  /* Keep content and the floating row clear of the taller bar */
  body {
    padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-whatsapp,
  .floating-apk {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}

/* =====================================================================
   Mobile menu panel
   ===================================================================== */
@media (max-width: 1120px) {
  .mobile-panel {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid rgba(15, 54, 45, 0.08);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 24px 48px rgba(15, 54, 45, 0.18);
    animation: panel-in 0.28s var(--ease);
  }
  .mobile-panel nav {
    gap: 6px;
    padding: 12px 0 16px;
  }
  .mobile-panel nav > a:not(.button) {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    padding: 8px 14px 8px 10px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s var(--ease);
  }
  .mobile-panel nav > a:not(.button) > .material-symbols-outlined {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary-2);
    font-size: 21px;
  }
  .mobile-panel nav > a:not(.button)::after {
    content: 'chevron_right';
    margin-left: auto;
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-size: 22px;
    line-height: 1;
    color: var(--contrast);
    transition: transform 0.2s var(--ease), color 0.2s ease;
  }
  .mobile-panel nav > a:not(.button):hover,
  .mobile-panel nav > a:not(.button):focus-visible,
  .mobile-panel nav > a:not(.button):active {
    background: var(--primary-soft);
  }
  .mobile-panel nav > a:not(.button):hover::after {
    transform: translateX(3px);
    color: var(--primary-2);
  }
  .mobile-panel .button.full-width {
    margin-top: 8px;
    min-height: 54px;
    border-radius: 999px;
  }
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero: trim the empty space above the eyebrow */
.hero-grid {
  padding-top: clamp(14px, 2.5vw, 28px);
}
@media (max-width: 760px) {
  .hero-grid {
    padding-top: 16px;
  }
}

/* =====================================================================
   Cleaner palette: replace muddy beige/khaki with fresh white + mint
   ===================================================================== */
:root {
  --surface: #f6faf7;
  --surface-low: #eef5f1;
  --surface-container: #e6efea;
  --surface-high: #dce8e2;
  --canvas: #f6faf7;
  --subtle: #eff6f2;
  --hairline: #d9e5de;
  --contrast: #bccfc5;
  --terracotta: #c58c2b;
}

body {
  background:
    radial-gradient(1000px 520px at 85% -8%, rgba(26, 91, 75, 0.09), transparent 60%),
    radial-gradient(800px 420px at 0% 4%, rgba(197, 140, 43, 0.05), transparent 60%),
    linear-gradient(180deg, #f9fcfa 0%, #f3f8f5 100%);
  background-attachment: fixed;
}

.hero-section {
  background:
    radial-gradient(60% 70% at 50% -10%, rgba(26, 91, 75, 0.16), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(197, 140, 43, 0.07), transparent 70%),
    linear-gradient(180deg, #f9fcfa 0%, #f1f7f3 100%);
}

/* Payment section: fresh mint wash instead of brown */
.rails-section {
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(26, 91, 75, 0.1), transparent 70%),
    linear-gradient(180deg, #f4faf7 0%, #e9f3ee 100%);
}

/* FAQ section */
.faq-section {
  background:
    radial-gradient(45% 50% at 8% 10%, rgba(26, 91, 75, 0.1), transparent 70%),
    linear-gradient(180deg, #f6faf8 0%, #edf5f0 100%);
}

/* Testimonials */
.testimonial-editorial-body {
  background: linear-gradient(135deg, #f1f8f4 0%, #ffffff 60%, #fbf6ea 100%);
  border-color: var(--hairline);
}
.testimonial-visual span {
  color: var(--gold);
  opacity: 0.85;
}
.testimonial-editorial-more > * {
  background: linear-gradient(180deg, #ffffff 0%, #f4f9f6 100%);
  border-color: var(--hairline);
}

/* Cards that used warm cream */
.tier-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6faf8 100%);
}
.steps-grid article {
  background: linear-gradient(180deg, #ffffff 0%, #f6faf8 100%);
}
.metric-card {
  background: linear-gradient(180deg, #ffffff 0%, #f1f7f4 100%);
}

/* Blog card placeholder: clean mint instead of green-to-khaki */
.blog-card-media.has-fallback {
  background:
    radial-gradient(70% 90% at 20% 0%, rgba(26, 91, 75, 0.16), transparent 70%),
    linear-gradient(135deg, #e6f2ec 0%, #f4faf7 100%);
}

/* =====================================================================
   Background detailing — subtle patterns, rings and glows per section
   (decorative only; sits behind content, never intercepts clicks)
   ===================================================================== */
.section,
.final-cta,
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.section::before,
.section::after,
.final-cta::before,
.final-cta::after,
.site-footer::before,
.site-footer::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

/* --- Account (white): dotted grid fading in from the left + gold glow --- */
.account-section::before {
  inset: 0;
  background-image: radial-gradient(rgba(26, 91, 75, 0.14) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(60% 80% at 0% 50%, #000, transparent 70%);
  mask-image: radial-gradient(60% 80% at 0% 50%, #000, transparent 70%);
}
.account-section::after {
  width: 420px;
  height: 420px;
  right: -140px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 140, 43, 0.14), transparent 68%);
}

/* --- Steps (white): soft mint wash + diamond lattice at the top --- */
.onboarding-section {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
}
.onboarding-section::before {
  inset: 0 0 auto 0;
  height: 260px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M32 4 60 32 32 60 4 32Z' fill='none' stroke='%231a5b4b' stroke-opacity='.1'/%3E%3Ccircle cx='32' cy='32' r='2' fill='%23c58c2b' fill-opacity='.28'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
}

/* --- Payments (mint): concentric rings + fine lattice --- */
.rails-section::before {
  width: 760px;
  height: 760px;
  left: 50%;
  top: -420px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0 46px,
    rgba(26, 91, 75, 0.07) 46px 47px
  );
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}
.rails-section::after {
  inset: auto 0 0 0;
  height: 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M16 10v12M10 16h12' stroke='%231a5b4b' stroke-opacity='.12' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(0deg, #000, transparent);
  mask-image: linear-gradient(0deg, #000, transparent);
}

/* --- Comparison (white): corner glows --- */
.comparison-section {
  background:
    radial-gradient(40% 50% at 0% 100%, rgba(26, 91, 75, 0.08), transparent 70%),
    radial-gradient(35% 45% at 100% 0%, rgba(197, 140, 43, 0.08), transparent 70%),
    #ffffff;
}
.comparison-section::before {
  inset: 0;
  background-image: radial-gradient(rgba(26, 91, 75, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, transparent 35%, #000 100%);
  mask-image: radial-gradient(ellipse at 50% 50%, transparent 35%, #000 100%);
}

/* --- Testimonials (white): big soft rings top-right + gold dot grid --- */
.payouts-section::before {
  width: 520px;
  height: 520px;
  right: -180px;
  top: -200px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0 38px,
    rgba(197, 140, 43, 0.14) 38px 39px
  );
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 72%);
  mask-image: radial-gradient(circle, #000 35%, transparent 72%);
}
.payouts-section::after {
  width: 360px;
  height: 240px;
  left: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(197, 140, 43, 0.3) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 0% 100%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at 0% 100%, #000, transparent 70%);
}

/* --- FAQ (mint): faint graph-paper grid --- */
.faq-section::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 91, 75, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 91, 75, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 15% 20%, #000, transparent 65%);
  mask-image: radial-gradient(ellipse at 15% 20%, #000, transparent 65%);
}
.faq-section::after {
  width: 380px;
  height: 380px;
  right: -120px;
  bottom: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 91, 75, 0.14), transparent 68%);
}

/* --- Blog (white): dotted corner --- */
.homepage-blog::before {
  width: 420px;
  height: 260px;
  right: 0;
  top: 0;
  background-image: radial-gradient(rgba(26, 91, 75, 0.16) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at 100% 0%, #000, transparent 70%);
}

/* --- Final CTA: rings radiating behind the headline + dots --- */
.final-cta::before {
  width: 820px;
  height: 820px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0 58px,
    rgba(26, 91, 75, 0.07) 58px 59px
  );
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 68%);
  mask-image: radial-gradient(circle, #000 25%, transparent 68%);
}
.final-cta::after {
  inset: 0;
  background-image: radial-gradient(rgba(197, 140, 43, 0.28) 1.2px, transparent 1.2px);
  background-size: 30px 30px;
  -webkit-mask-image:
    radial-gradient(35% 60% at 0% 50%, #000, transparent),
    radial-gradient(35% 60% at 100% 50%, #000, transparent);
  mask-image:
    radial-gradient(35% 60% at 0% 50%, #000, transparent),
    radial-gradient(35% 60% at 100% 50%, #000, transparent);
}

/* --- Footer: gold glow + faint lattice --- */
.site-footer::before {
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M32 4 60 32 32 60 4 32Z' fill='none' stroke='white' stroke-opacity='.05'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.site-footer::after {
  width: 460px;
  height: 460px;
  right: -140px;
  bottom: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 211, 137, 0.14), transparent 68%);
}

/* Mobile: lighter, smaller decoration */
@media (max-width: 760px) {
  .rails-section::before,
  .final-cta::before {
    width: 520px;
    height: 520px;
  }
  .payouts-section::before {
    width: 340px;
    height: 340px;
    right: -140px;
    top: -140px;
  }
  .account-section::after,
  .faq-section::after,
  .site-footer::after {
    width: 260px;
    height: 260px;
  }
}

/* Final CTA: glow fades in from white (no hard top edge) */
.final-cta {
  background:
    radial-gradient(55% 70% at 50% 55%, rgba(26, 91, 75, 0.1), transparent 72%),
    #ffffff;
}
