/* Utilities and cross-component overrides (must load last; kept in original source order) */

tr:last-child td {
  border-bottom: 0;
}

td:nth-child(2),
th:nth-child(2) {
  color: var(--ink);
  font-weight: 600;
  background: transparent;
}

.urdu {
  font-family: var(--font-urdu);
  line-height: 2;
  color: #f3d996;
}

.recommended-posts {
  background: var(--surface-lowest);
}

@media (max-width: 760px) {
  .comparison-table thead th {
    font-size: 1rem;
  }

  .mobile-whatsapp.is-muted {
    opacity: 0.25;
  }

}

@media (max-width: 1120px) {
  .menu-toggle {
    border-radius: 12px;
  }

}

@media (max-width: 760px) {
  .mobile-menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

}

@media (max-width: 1120px) {
  .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);
  }

}

.hero-section {
  background: #f1f7f3;
}

.rails-section {
  background: #f1f7f3;
}

.faq-section {
  background: #f1f7f3;
}

.testimonial-editorial-body {
  background: #ffffff;
  border-color: var(--hairline);
}

.testimonial-editorial-more > * {
  background: #ffffff;
  border-color: var(--hairline);
}

.tier-card {
  background: #ffffff;
}

.blog-card-media.has-fallback {
  background: #e6f2ec;
}

.onboarding-section {
  background: #ffffff;
}

.comparison-section {
  background: #ffffff;
}

.final-cta {
  background: #ffffff;
}

.play-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
}

.play-badge:active,
.floating-apk:active {
  transform: scale(0.97);
}

@media (max-width: 760px) {
  .eyebrow {
    margin: 0 0 12px;
    padding: 6px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.6;
  }

  .testimonial-editorial-more > *,
  .testimonial-editorial-body {
    border-radius: var(--radius-md);
  }

  .testimonial-feature-quote,
  .testimonial-editorial-more p {
    font-size: 1.15rem;
    line-height: 2;
    font-weight: 500;
  }

  .comparison-table tbody td {
    padding: 12px;
    font-size: 0.9375rem;
    line-height: 1.45;
  }

}

.tier-card,
.steps-grid article,
.rail-card,
.comparison-table,
.blog-card,
.faq-list details,
.testimonial-editorial-more > *,
.testimonial-editorial-body,
.lede,
.hero-payments,
.account-visual img {
  border: 1px solid var(--edge);
}

.eyebrow {
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(15, 54, 45, 0.3);
}

.eyebrow.urdu {
  color: #000;
  font-weight: 600;
}

.testimonial-feature-quote,
.testimonial-editorial-more p {
  color: #000;
}

.comparison-table thead th {
  background: #e6f2ec;
  color: var(--primary);
  border-bottom: 1px solid var(--hairline);
}

.comparison-table tbody td {
  border-color: var(--hairline);
  color: var(--ink);
}

.mobile-ticker,
.desktop-ticker {
  color: #fff;
  font-weight: 600;
}

.button-primary {
  color: #fff;
  background: var(--primary);
}

.button-secondary {
  color: var(--primary);
  border: 2px solid var(--primary);
  background: #fff;
}

/* Homepage section rhythm: white and one mint tint alternate; deep green is the single accent.
   hero(mint) > account(white) > steps(green) > payments(white) > comparison(mint)
   > testimonials(white) > faq(mint) > blog(white) > cta(mint) > footer(green) */
:root {
  --band-white: #ffffff;
  --band-mint: #d6ebdf;
  --band-green-1: #0f362d;
  --band-green-2: #1a5b4b;
}
.front-main > section { border-bottom: 0; }
.front-main > .hero-section { background: var(--band-mint); }
.front-main > .account-section,
.front-main > .rails-section,
.front-main > .payouts-section,
.front-main > .blog-section { background: var(--band-white); }
.front-main > .comparison-section,
.front-main > .faq-section,
.front-main > .final-cta { background: var(--band-mint); }
.front-main > .onboarding-section { background: var(--band-green-1); }

/* Light heading on the deep green steps section */
.front-main > .onboarding-section > .shell > h2 { color: #ffffff; }

/* White cards and pills so they pop on mint / green bands */
.front-main > .onboarding-section .steps-grid article,
.front-main > .comparison-section .comparison-table,
.front-main > .faq-section .faq-list details,
.front-main > .hero-section .eyebrow,
.front-main > .comparison-section .eyebrow,
.front-main > .faq-section .eyebrow,
.front-main > .final-cta .eyebrow,
.front-main > .onboarding-section .eyebrow { background: #ffffff; }

/* =====================================================================
   Desktop / tablet consistency (>=761px): one scale for spacing, type,
   weight and cards across all homepage sections (mirrors the mobile scale).
   ===================================================================== */
@media (min-width: 761px) {
  :root {
    --d-section: 80px;
    --d-head-gap: 40px;
    --d-card-pad: 24px;
    --d-h2: clamp(1.9rem, 3vw, 2.5rem);
    --d-h3: 1.25rem;
  }

  /* Section rhythm */
  .front-main .section,
  .front-main .final-cta { padding-block: var(--d-section); }
  .front-main .section-head,
  .front-main .testimonial-editorial-head {
    margin-bottom: var(--d-head-gap);
    padding-bottom: 20px;
  }
  .front-main .section > .shell > h2 { margin-bottom: var(--d-head-gap); }
  .front-main .testimonial-editorial-head h2 { margin-bottom: 0; }

  /* Eyebrows */
  .front-main .eyebrow {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.6;
  }
  .front-main .eyebrow.urdu { font-size: 1.0625rem; line-height: 1.7; }

  /* Section headings: one style */
  .front-main .section-head h2,
  .front-main .section > .shell > h2,
  .front-main .faq-intro h2,
  .front-main .final-cta h2,
  .front-main .testimonial-editorial-head h2,
  .front-main .feature-split .tier-card h3 {
    font-family: var(--font-head);
    font-size: var(--d-h2);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }
  .front-main .final-cta h2 { margin-bottom: 12px; }
  .front-main .feature-split .tier-card h3 { margin-bottom: 16px; }

  /* Card / item titles: one style */
  .front-main .steps-grid h3,
  .front-main .blog-card h3,
  .front-main .testimonial-feature cite {
    font-family: var(--font-body);
    font-size: var(--d-h3);
    font-weight: 600;
    line-height: 1.3;
  }
  .front-main .rail-card strong {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
  }

  /* Body copy */
  .front-main .section p,
  .front-main .faq-list details p,
  .front-main .final-cta-copy,
  .front-main .tier-card p,
  .front-main .steps-grid p,
  .front-main .section-head p {
    font-size: 1rem;
    line-height: 1.65;
  }
  .front-main .section-head p { margin-top: 12px; }
  .front-main .rails-section .section-head > p { font-size: 1.35rem; line-height: 1.9; }

  /* Cards: same radius and inner padding */
  .front-main .tier-card,
  .front-main .steps-grid article,
  .front-main .rail-card,
  .front-main .blog-card,
  .front-main .faq-list details,
  .front-main .testimonial-editorial-more > *,
  .front-main .testimonial-editorial-body,
  .front-main .comparison-table,
  .front-main .account-visual img { border-radius: var(--radius-md); }
  .front-main .tier-card,
  .front-main .steps-grid article,
  .front-main .blog-card-body,
  .front-main .testimonial-editorial-more > * { padding: var(--d-card-pad); }
  .front-main .tier-card p { margin: 0 0 12px; }
  .front-main .tier-card p:last-of-type { margin-bottom: var(--d-card-pad); }

  /* Buttons */
  .front-main .button,
  .front-main .button-large {
    min-height: 52px;
    font-size: 1rem;
    font-weight: 600;
  }
  .front-main .button.button-large { height: 52px; padding-block: 0; }
  .front-main .tier-card .button { min-height: 52px; }
  .front-main .blog-card .button { min-height: 44px; height: auto; }
  .front-main .eyebrow:not(.urdu) { font-size: 0.8125rem; }
  .front-main .eyebrow.urdu { font-size: 1.0625rem; }
}

/* Testimonial quotes: Nastaliq needs a larger size than Latin text to read
   comfortably, and must beat the generic .front-main .section p size. */
.front-main .testimonial-feature-quote.urdu {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 2.1;
  letter-spacing: 0;
}

.front-main .testimonial-editorial-more blockquote p.urdu {
  font-size: 1.25rem;
  line-height: 2;
  letter-spacing: 0;
}
