@media (max-width: 1180px) {
  .nesab-hero-grid,
  .nesab-split,
  .nesab-vision-grid,
  .nesab-privacy-grid {
    grid-template-columns: 1fr;
  }

  .nesab-hero-grid {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column-reverse;
    -ms-flex-direction: column-reverse;
    flex-direction: column-reverse;
  }

  .nesab-hero-copy,
  .nesab-copy,
  .nesab-feature-video-copy {
    max-width: 100%;
  }

  .nesab-hero-visual,
  .nesab-showcase,
  .nesab-privacy-visual {
    min-height: auto;
  }

  .nesab-hero-banner-card,
  .nesab-showcase-main,
  .nesab-privacy-figure {
    margin: 0 auto;
  }

  .nesab-phone-stack {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-top: -44px;
  }

  .nesab-floating-badge {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 420px;
    margin: 20px auto 0;
  }

  .nesab-showcase-phone {
    position: static;
    margin: 0;
  }

  .nesab-vision-figure,
  .nesab-vision-cards {
    grid-column: auto;
    grid-row: auto;
  }

  .nesab-showcase-phone--secondary {
    margin: 0;
  }
}

@media (max-width: 980px) {
  .nesab-nav-toggle {
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
  }

  .nesab-nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: var(--panel-strong);
    opacity: 0;
    visibility: hidden;
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
    pointer-events: none;
    -webkit-transition: opacity 0.22s ease, -webkit-transform 0.22s ease, visibility 0.22s ease;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .nesab-nav-links.is-open {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateY(0);
    transform: translateY(0);
    pointer-events: auto;
  }

  .nesab-link {
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
  }

  .nesab-feature-grid,
  .nesab-review-grid,
  .nesab-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Product grid on tablet */
  .nesab-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Tools grid: 1 column on tablet for better readability */
  .nesab-tools-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Fees tabs: wrap nicely on tablet */
  .nesab-tab-row {
    gap: 8px;
  }

  .nesab-tab {
    font-size: 0.82rem;
    padding: 0 14px;
    min-height: 42px;
  }

  /* Video: adjust sizing */
  .nesab-feature-video-media {
    width: 96vw;
    max-width: 1380px;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: calc(100% - 20px);
  }

  @supports (width: min(1px, 2px)) {
    :root {
      --shell: min(100% - 20px, 1180px);
    }
  }

  .nesab-main {
    padding-top: 84px;
  }

  .nesab-nav-inner {
    min-height: 68px;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .nesab-theme-toggle,
  .nesab-nav-toggle {
    width: 42px;
    height: 42px;
  }

  .nesab-brand-logo {
    height: 38px;
  }

  .nesab-hero {
    padding-top: 48px;
  }

  .nesab-hero-title {
    font-size: 2rem;
  }

  @supports (font-size: clamp(1px, 2vw, 3px)) {
    .nesab-hero-title {
      font-size: clamp(2rem, 8vw, 2.4rem);
    }
  }

  .nesab-hero-actions,
  .nesab-store-actions,
  .nesab-hero-metrics,
  .nesab-feature-grid,
  .nesab-review-grid,
  .nesab-footer-grid,
  .nesab-inline-fields {
    grid-template-columns: 1fr;
  }

  .nesab-hero-actions {
    display: grid;
  }

  .nesab-button {
    width: 100%;
  }

  .nesab-metric,
  .nesab-feature-card,
  .nesab-review-card,
  .nesab-tool-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nesab-panel,
  .nesab-section {
    border-radius: 26px;
    padding: 22px 14px;
  }

  .nesab-phone-stack {
    gap: 12px;
    margin-top: -18px;
  }

  .nesab-floating-badge {
    width: 100%;
    border-radius: 22px;
  }

  /* ===== FEES SECTION (الرسوم البنكية) ===== */
  .nesab-tab-row {
    gap: 6px;
  }

  .nesab-tab {
    width: 100%;
    min-height: 44px;
    font-size: 0.84rem;
    padding: 0 12px;
    border-radius: 14px;
  }

  .nesab-table-shell {
    border-radius: 16px;
  }

  .fees-table {
    min-width: 560px;
  }

  .fees-table th,
  .fees-table td {
    padding: 10px 10px;
    font-size: 0.82rem;
  }

  /* ===== TOOLS SECTION (الأدوات السريعة) ===== */
  .nesab-tools-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .nesab-tool-card {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .nesab-tool-title {
    font-size: 1.1rem;
  }

  .nesab-input,
  .nesab-select {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 0.95rem;
  }

  .nesab-tool-card .nesab-button {
    min-height: 48px;
    font-size: 0.9rem;
    border-radius: 14px;
  }

  /* ===== VIDEO SECTION (جولة سريعة) ===== */
  .nesab-feature-video {
    padding: 28px 0 28px;
  }

  .nesab-feature-video-shell {
    margin-bottom: 16px;
  }

  .nesab-feature-video-media {
    width: 100%;
    max-width: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .nesab-heading {
    font-size: 1.5rem;
  }

  .nesab-copy-lead {
    font-size: 0.92rem;
  }

  /* ===== FOOTER ===== */
  .nesab-footer-col {
    text-align: center;
    -webkit-justify-items: center;
    justify-items: center;
  }

  .ftr-icons {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  .ftr-dev-card {
    text-align: center;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    height: auto;
  }

  .nesab-store-actions--footer {
    max-width: 100%;
  }

  /* Section titles smaller on mobile */
  .nesab-section-title {
    font-size: 1.5rem;
    margin: 20px 0 10px;
  }

  /* Product grid on mobile */
  .nesab-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .nesab-product-card {
    padding: 14px 12px;
    gap: 6px;
  }

  .nesab-product-name {
    font-size: 0.85rem;
  }

  .nesab-product-desc {
    font-size: 0.78rem;
  }

  /* Showcase phones side by side on mobile */
  .nesab-showcase {
    gap: 12px;
  }

  .nesab-section-subtitle {
    font-size: 0.9rem;
    line-height: 1.8;
  }
}

@media (max-width: 560px) {
  .nesab-main {
    padding-top: 76px;
  }

  .nesab-nav {
    padding-top: 8px;
  }

  .nesab-nav-inner {
    padding: 10px 12px;
  }

  .nesab-hero-lead,
  .nesab-panel-subtitle,
  .nesab-section-subtitle,
  .nesab-copy-lead,
  .nesab-feature-card p,
  .nesab-review-card p,
  .nesab-point-card p,
  .nesab-privacy-card p,
  .nesab-vision-card p,
  .nesab-footer-copy {
    font-size: 1rem;
  }

  .nesab-showcase-phone--secondary {
    margin: 0;
  }

  .nesab-privacy-note {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    margin-top: 16px;
  }

  /* Fees: even tighter on small phones */
  .nesab-panel,
  .nesab-section {
    padding: 18px 12px;
  }

  .nesab-table-shell {
    border-radius: 12px;
  }

  .fees-table {
    min-width: 500px;
  }

  .fees-table th,
  .fees-table td {
    padding: 9px 8px;
    font-size: 0.78rem;
  }

  /* Tools: compact inputs */
  .nesab-tool-card {
    padding: 18px 14px;
  }

  .nesab-input,
  .nesab-select {
    min-height: 44px;
    font-size: 0.9rem;
  }

  /* Video: full bleed */
  .nesab-feature-video {
    padding: 22px 0 22px;
  }

  .nesab-heading {
    font-size: 1.3rem;
  }

  .nesab-section-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 400px) {
  .fees-table {
    min-width: 460px;
  }

  .fees-table th,
  .fees-table td {
    padding: 8px 6px;
    font-size: 0.75rem;
  }

  .nesab-tab {
    font-size: 0.78rem;
    min-height: 40px;
  }
}
