/* Finbees mobile-first system
   Shared across every page to keep navigation, tap targets and floating actions consistent. */

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
video,
canvas {
  max-width: 100%;
  height: auto;
}

.container,
main,
main > section,
.nav__inner,
.footer__grid {
  min-width: 0;
}

.container {
  width: 100%;
}

.btn {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 48px;
  white-space: normal;
  text-align: center;
  justify-content: center;
}

.wa-float {
  box-sizing: border-box !important;
  right: max(20px, env(safe-area-inset-right)) !important;
  bottom: max(20px, env(safe-area-inset-bottom)) !important;
  max-width: calc(100vw - 40px) !important;
  min-height: 52px !important;
}

.wa-float svg {
  flex: 0 0 auto;
}

.footer__tagline,
.footer__copy,
.footer__legal-link {
  color: rgba(247, 246, 242, 0.72) !important;
}

.footer__col-title {
  color: rgba(247, 246, 242, 0.76) !important;
}

.itr-deadline-strip {
  position: relative;
  z-index: 998;
  margin-top: 72px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.34);
  background: #0A0A0A;
  color: #C9A84C;
}

.itr-deadline-strip[hidden] {
  display: none;
}

.itr-deadline-strip__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 64px;
  text-align: center;
}

.itr-deadline-strip__link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  min-height: 30px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
}

.itr-deadline-strip__count,
.itr-deadline-strip__price {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

.itr-deadline-strip__close {
  position: absolute;
  top: 50%;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: rgba(247, 246, 242, 0.8);
  font-size: 1.35rem;
  cursor: pointer;
  transform: translateY(-50%);
}

.itr-pricing-section {
  margin-top: var(--space-16, 8rem);
  padding-top: var(--space-12, 6rem);
  border-top: 1px solid var(--fc-mist, #E8E6E1);
}

.itr-price-table-wrap {
  width: 100%;
  margin-top: var(--space-6, 3rem);
  overflow-x: auto;
  border: 1px solid #E8E6E1;
  background: #fff;
}

.itr-price-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.itr-price-table th,
.itr-price-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #E8E6E1;
  text-align: left;
  vertical-align: top;
}

.itr-price-table th {
  background: #1C1C1E;
  color: #F7F6F2;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.itr-price-table tr:last-child td {
  border-bottom: 0;
}

.itr-price-table__price {
  color: #C9A84C;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.itr-pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  :root {
    --mobile-gutter: clamp(1rem, 4.6vw, 1.5rem);
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .itr-deadline-strip {
    margin-top: 64px;
  }

  .itr-deadline-strip__inner {
    min-height: 58px;
    padding: 8px 54px 8px var(--mobile-gutter);
    text-align: left;
  }

  .itr-deadline-strip__link {
    justify-content: flex-start;
    font-size: 0.79rem;
    line-height: 1.35;
  }

  .itr-pricing-actions {
    flex-direction: column;
  }

  .itr-pricing-actions .btn {
    width: 100%;
  }

  .container {
    padding-left: var(--mobile-gutter) !important;
    padding-right: var(--mobile-gutter) !important;
  }

  .nav {
    z-index: 1003 !important;
    min-height: 64px;
  }

  .nav__inner {
    min-height: 64px;
    padding: 8px var(--mobile-gutter) !important;
  }

  .nav__logo {
    min-width: 0;
  }

  .nav__links,
  .nav__cta {
    display: none !important;
  }

  .nav__hamburger {
    position: relative;
    z-index: 1002;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px !important;
    height: 48px;
    min-height: 48px !important;
    padding: 0 !important;
    margin: 0;
    border: 0;
    border-radius: 4px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .nav__hamburger span {
    width: 24px !important;
    height: 2px !important;
  }

  .nav__mobile {
    display: flex !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 1001 !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding: calc(80px + env(safe-area-inset-top)) var(--mobile-gutter) calc(28px + env(safe-area-inset-bottom)) !important;
    overflow-y: auto;
    background: rgba(28, 28, 30, 0.98) !important;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .nav__mobile.open {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav__mobile .nav__link {
    display: flex;
    align-items: center;
    width: min(100%, 380px);
    min-height: 56px;
    padding: 12px 4px !important;
    border-bottom: 1px solid rgba(247, 246, 242, 0.1);
    color: #F7F6F2 !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: clamp(1.2rem, 6vw, 1.55rem) !important;
    font-weight: 600;
    opacity: 1 !important;
    text-align: left;
  }

  .nav__mobile .btn {
    width: min(100%, 380px) !important;
    min-height: 54px;
    margin-top: 22px;
  }

  /* Keep the first screen immediately readable and avoid delaying mobile LCP
     behind decorative scroll-reveal animations. */
  main > section:first-child .reveal,
  main > section:first-child .reveal.js-ready {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  main [style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hero,
  .hero__inner,
  .hero__grid,
  .two-col,
  .gst-grid,
  .gstr-grid,
  .gst-tier-grid,
  .plan-grid,
  .one-time-grid,
  .services-grid,
  .services__grid,
  .problem__grid,
  .featured__inner,
  .featured__checklist,
  .pricing__grid,
  .how__timeline,
  .calendar-section__inner,
  .trust__inner,
  .trust__cards,
  .values-grid,
  .office-grid,
  .trust-row,
  .classes-grid,
  .timeline-steps,
  .calculator__groups,
  .tm-fee-table,
  .related-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  main :is(
    .hero__inner,
    .hero__grid,
    .two-col,
    .gst-grid,
    .gstr-grid,
    .gst-tier-grid,
    .plan-grid,
    .one-time-grid,
    .services-grid,
    .services__grid,
    .problem__grid,
    .featured__inner,
    .pricing__grid,
    .calendar-section__inner,
    .trust__inner,
    .values-grid,
    .office-grid,
    .classes-grid,
    .timeline-steps,
    .calculator__groups
  ) > * {
    min-width: 0;
  }

  .hero__left,
  .hero__right {
    width: 100%;
    min-width: 0;
  }

  .compliance-widget,
  .hero-right-box,
  .price-breakdown,
  .calculator,
  .calculator__result,
  .gst-offer {
    width: 100%;
    max-width: 100%;
  }

  .eligibility-row {
    flex-direction: column;
    gap: 0.35rem;
  }

  .eligibility-label {
    width: auto !important;
  }

  .eligibility-val {
    min-width: 0;
    width: 100%;
  }

  h1,
  h2,
  h3,
  p,
  li,
  a,
  span {
    overflow-wrap: anywhere;
  }

  table {
    max-width: 100%;
  }

  .compare-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .final-cta__btns,
  .final-cta__buttons,
  .hero__ctas,
  .hero__cta,
  .hero__cta-row {
    width: 100%;
    flex-direction: column;
    align-items: stretch !important;
  }

  .final-cta__btns .btn,
  .final-cta__buttons .btn,
  .hero__ctas .btn,
  .hero__cta .btn,
  .hero__cta-row .btn {
    width: 100%;
  }

  .wa-mobile-bar {
    display: none !important;
  }

  .wa-float {
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: max(14px, env(safe-area-inset-bottom)) !important;
    left: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    animation: none !important;
    transform: none !important;
    overflow: hidden;
  }

  .wa-float span,
  .wa-float .wa-float__text {
    display: none !important;
  }

  .wa-float svg,
  .wa-float .wa-float__icon {
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
  }
}

@media (max-width: 390px) {
  .section,
  section[style*="padding:4rem"] {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  .nav__logo-name {
    font-size: 0.95rem !important;
  }

  .price-breakdown__row {
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav__mobile,
  .wa-float {
    transition: none !important;
    animation: none !important;
  }
}
