/* ===============================================
   APP PAGE STYLES - Individual App Display
   =============================================== */

/* Hero Section */
.app-hero-section {
    background: linear-gradient(135deg, #24305e 0%, #374785 100%);
    color: white;
    margin-top: 4em; /* Account for fixed navbar */
    padding: 2.5rem 0 2rem;
    overflow-x: hidden; /* Prevent minor horizontal overflow on mobile */
    margin-bottom: 3em;
}

.app-not-found-msg {
    height: 300px;
    margin-top: 3em;
}

.pro-signup-cta {
    text-align: left;
  }
.app-icon-container {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.app-icon-fallback {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.app-icon-fallback i {
    font-size: clamp(2.1rem, 4vw, 2.9rem);
    line-height: 1;
}

.app-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    overflow-wrap: anywhere; /* allow long names to break gracefully */
}

@media (min-width: 768px) {
    .app-title {
        justify-content: flex-start;
    }
}

.hero-tagline {
    font-size: 1.05rem;
    font-weight: 400;
    color: #d0d8f0;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    max-width: 620px;
    overflow-wrap: anywhere; /* Prevent horizontal overflow for long, unbroken text */
}

.verified-badge {
    display: inline-block;
    background-color: #f8e9a1;
    color: #24305e;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.verified-badge i {
    margin-right: 0.5rem;
}

/* Verified badge next to title (match card style) */
.certificate-badge {
    position: relative;
    display: inline-block;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.certificate-badge .fa-certificate {
    color: #0d6efd;
    font-size: 1.25rem;
}
.certificate-badge .certificate-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 900;
    z-index: 2;
}

/* Match card spacing (Bootstrap ms-2 = 0.5rem) and align vertically with title */
.app-title .app-verified-icon {
    margin-left: 0.35rem; /* slightly tighter than card spacing */
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
}

.app-title .editorial-pick-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    vertical-align: middle;
}

.app-title .editorial-pick-star {
    font-size: 1.25rem;
    color: #d4a017;
    text-shadow: 0 0 0.5px rgba(0, 0, 0, 0.35);
}

.app-title .editorial-pick-icon:hover {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.app-hero-section .verified-label {
    color: #d0d8f0;
    font-size: 0.95rem;
}

/* Mobile-only status badges (below the name, centered) */
.app-mobile-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    color: #d0d8f0;
    font-size: 0.95rem;
}

.app-mobile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.app-mobile-badge .certificate-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    line-height: 1;
}

.app-mobile-badge .certificate-badge .fa-certificate {
    color: #0d6efd;
    font-size: 1.1rem;
}

.app-mobile-badge .certificate-badge .certificate-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 0.5rem;
    font-weight: 900;
    z-index: 2;
}

.app-mobile-badge .editorial-pick-star {
    font-size: 1.1rem;
    color: #d4a017;
}

/* Info callout (verified + featured info) */
.info-callout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #eef1f6;
    color: #374785;
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.info-callout i {
    color: #374785;
}

.helper-pricing {
    font-size: 1rem;
  }

.helper-pricing a {
    color: #374785;
    text-decoration-line: underline;
    text-decoration-style: dashed;
    text-decoration-color:  #a8d0e6;
    text-underline-offset: 2px;
}

.helper-pricing a i {
    font-size: 0.8rem;
}

.app-hero-claim {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 0.85rem;
    line-height: 1.45;
}

@media (min-width: 768px) {
    .app-hero-claim {
        justify-content: flex-start;
        text-align: left;
    }
}

.app-hero-claim__text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    color: #e0e0e0;
    line-height: 1.45;
}

.app-hero-claim__text i {
    color: #f8e9a1;
    font-size: 1rem;
    flex-shrink: 0;
}

.app-hero-claim__text strong {
    color: #ffffff;
    font-weight: 600;
}

.app-btn-claim {
    flex-shrink: 0;
    background: rgba(248, 233, 161, 0.12);
    border: 1px solid rgba(248, 233, 161, 0.35);
    color: #f8e9a1;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.app-btn-claim:hover,
.app-btn-claim:focus {
    background: rgba(248, 233, 161, 0.22);
    color: #ffffff;
    border-color: rgba(248, 233, 161, 0.55);
}

.app-developer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    color: #d0d8f0;
}

@media (min-width: 768px) {
    .app-developer-meta {
        justify-content: flex-start;
    }
}

.app-developer {
    color: #d0d8f0;
}

.app-developer strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.app-developer-sep {
    color: rgba(255, 255, 255, 0.35);
}

.app-social-link {
    color: #a8d0e6;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.app-social-link:hover {
    color: #ffffff;
}

.availability-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .availability-badges {
        justify-content: flex-start;
    }
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.88rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    color: #e0e0e0;
    font-weight: 500;
}

.app-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .app-actions {
        justify-content: flex-start;
    }
}

.store-badge {
    display: inline-flex;
    align-items: center;
}

.store-badge img {
    height: 42px;
    width: auto;
}

/* Primary action button (Visit Website) — match profile-btn-primary */
.app-btn-primary {
    background: #f76c6c;
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.4;
}

.app-btn-primary:hover {
    background: #e55b5b;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(247, 108, 108, 0.4);
}

/* Outline/secondary action button — match profile-btn-secondary */
.app-btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.4;
}

.app-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
    transform: translateY(-1px);
}

/* Content Sections */
.app-section:last-child {
    border-bottom: none;
}

/* Bordered blocks (match find-a-pro .profile-section); headings left-aligned inside */
.app-profile-section {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.app-profile-section--note,
.app-profile-section.info-callout {
    background: #eef1f6;
    border-color: #dde3ee;
    padding: 1rem 1.35rem;
}

.app-profile-section .section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #374785;
    text-align: left;
    display: block;
    left: auto;
    transform: none;
    width: 100%;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #f8e9a1;
}

.app-profile-section .section-title::after {
    display: none;
}

.app-profile-section .section-title i {
    color: #f76c6c;
    font-size: 1.1rem;
}

.app-profile-section .categories-list {
    justify-content: flex-start;
}

.app-profile-section .feature-tags {
    justify-content: flex-start;
    padding-left: 0;
}

.app-profile-section .feature-group:last-child {
    margin-bottom: 0;
}

.app-claim-footer.text-center .section-title {
    text-align: center;
    font-size: 1.2rem !important;
}

.section-title {
    color: #374785;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3.2px;
    width: 100%;
    background-color: #f76c6c;
    top: 1.2em;
  }

  .section-title-ini {
    color: #374785;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
    /* left: 50%;
    transform: translateX(-50%); */
  }

  .section-title-ini::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3.2px;
    width: 100%;
    background-color: #f76c6c;
    top: 1.2em;
  }

/* Categories */
.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.category-badge {
    background-color: #a8d0e6;
    color: #24305e;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: capitalize;
    margin-top: 0.5rem;
}

/* Features & Technology Section */
.feature-group {
    margin-bottom: 2rem;
}

.feature-group-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #374785;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.feature-group-title i {
    margin-right: 0.75rem;
    color: #f76c6c;
    font-size: 1.1rem;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    /* justify-content: center; */
    padding-left: 1.7rem;
}

.user-type-badge {
    background: linear-gradient(135deg, #f8e9a1 0%, #f76c6c 100%);
    color: #24305e;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    box-shadow: 0 2px 8px rgba(247, 108, 108, 0.2);
}

.tech-tag-badge {
    background: linear-gradient(135deg, #374785 0%, #24305e 100%);
    color: #f8e9a1;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    box-shadow: 0 2px 8px rgba(55, 71, 133, 0.3);
}

/* Overview (AI overview column: hook / core / optional closing) */
.overview-body {
    color: #334155;
}

.overview-body .overview-hook {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.overview-body .overview-core {
    font-size: 1.1rem;
    line-height: 1.72;
    margin-bottom: 0.75rem;
}

.overview-body .overview-closing {
    font-size: 1.1rem;
    line-height: 1.72;
    margin-bottom: 0;
    color: #475569;
}

/* Editorial insight: distinct from the overview, framed as a platform note */
.app-editorial-insight {
    position: relative;
    background: #f8fafc;
    border-color: #dbe3ef;
    border-left: 5px solid #d4a017;
    box-shadow: 0 4px 16px rgba(55, 71, 133, 0.08);
}

.app-editorial-insight .section-title {
    border-bottom-color: rgba(212, 160, 23, 0.28);
}

.app-editorial-insight .section-title i {
    color: #d4a017;
}

.editorial-insight-body {
    color: #334155;
    font-size: 1.08rem;
    line-height: 1.72;
}

.editorial-insight-body p {
    margin-bottom: 0.85rem;
}

.editorial-insight-body p:last-child {
    margin-bottom: 0;
}

/* Best for (snapshot_best_for) — multiple compact chips */
.app-best-for .best-for-chips-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0;
    max-width: 100%;
}

.app-best-for .best-for-chips-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8e9a1 0%, #a8d0e6 100%);
    color: #24305e;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.app-best-for .best-for-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.app-best-for .bestfor-badge {
    background: linear-gradient(135deg, #f8e9a1 0%, #a8d0e6 100%);
    color: #24305e;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (max-width: 767.98px) {
    .app-best-for .best-for-chips {
        justify-content: center;
    }
}

/* Target Users */
.target-users {
    margin-top: 1rem;
}

.target-users-content {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8e9a1 0%, #a8d0e6 100%);
    color: #24305e;
    padding: 1.5rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.target-users-content i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #374785;
}

/* Release Information */
.release-info {
    margin-top: 1rem;
}

.release-info-content {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 2px solid #a8d0e6;
    color: #374785;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.release-info-content i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #f76c6c;
}

.release-details {
    display: flex;
    flex-direction: column;
}

.release-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.release-date {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374785;
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
}

.feature-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item i {
    color: #f8e9a1;
    background-color: #374785;
    padding: 0.5rem;
    border-radius: 50%;
    margin-right: 1rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Pricing Cards */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.pricing-card {
    background: linear-gradient(135deg, #f8e9a1 0%, #a8d0e6 100%);
    color: #24305e;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Screenshots Gallery */
.screenshots-gallery {
    margin-top: 0.25rem; /* very tight spacing between heading and images */
}

.screenshot-thumbnail {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 340px;
    padding: 1rem;
    overflow: hidden;
    background: #f8f9fc;
    border: 1px solid rgba(36, 48, 94, 0.08);
    border-radius: 0.85rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.screenshot-thumbnail:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 78, 145, 0.22);
    box-shadow: 0 0.65rem 1.5rem rgba(36, 48, 94, 0.12);
}

.screenshot-thumbnail .screenshot-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-top: 1rem;
}

.demo-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Modal Customization */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background-color: #374785;
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-title {
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}

/* ── Screenshot Modal: viewport-constrained lightbox ── */
#screenshotModal .modal-dialog {
    width: min(1100px, calc(100vw - 2rem));
    max-width: none;
    height: min(900px, calc(100dvh - 2rem));
    margin: 1rem auto;
}

#screenshotModal .modal-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-height: calc(100dvh - 2rem);
    overflow: hidden;
    border-radius: 1rem;
}

/* Header and footer never shrink */
#screenshotModal .modal-header,
#screenshotModal .modal-footer {
    flex: 0 0 auto;
}

/* Body fills remaining space */
#screenshotModal .modal-body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 0;
    padding: 1rem;
    overflow: hidden;
}

/* Stage constrains image + arrows to the visible area */
.screenshot-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 0.75rem;
}

/* Image always fits inside the available area */
#modalScreenshot {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ── Navigation arrows ── */
.screenshot-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    background-color: rgba(55, 71, 133, 0.8);
    border: 0;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.screenshot-nav:hover {
    background-color: rgba(55, 71, 133, 1);
    transform: translateY(-50%) scale(1.1);
}

.screenshot-prev {
    left: 0.75rem;
}

.screenshot-next {
    right: 0.75rem;
}

.screenshot-indicators {
    display: flex;
    gap: 8px;
    align-items: center;
}

.screenshot-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(55, 71, 133, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.screenshot-indicator.active {
    background-color: #374785;
    transform: scale(1.2);
}

.screenshot-indicator:hover {
    background-color: rgba(55, 71, 133, 0.6);
}

/* FAQ Section */
.faq-container {
    margin-top: 1rem;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background-color: #f8f9fa;
    cursor: pointer;
    font-weight: 600;
    color: #374785;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
}

.faq-question:hover {
    background-color: #a8d0e6;
    color: #24305e;
}

.faq-icon {
    margin-right: 1rem;
    transition: transform 0.3s ease;
    color: #f76c6c;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(90deg);
}

.faq-answer {
    border-top: 1px solid #e9ecef;
}

.faq-answer-content {
    padding: 1.5rem;
    background-color: white;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

/* Back Button */
.btn-outline-secondary {
    border-color: #374785;
    color: #374785;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #374785;
    border-color: #374785;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(55, 71, 133, 0.3);
}

/* Responsive Design */
/* Removed unnecessary 992px overrides; base styles already wrap and space buttons */

@media (max-width: 768px) {
    .app-title {
        font-size: 1.75rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .app-icon-container {
        width: 140px;
        height: 140px;
    }

    .app-icon {
        width: 120px;
        height: 120px;
    }

    .app-icon-fallback {
        width: 120px;
        height: 120px;
    }

    .pricing-cards {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

}

@media (max-width: 576px) {
    .app-hero-section {
        padding: 2rem 0 1.5rem;
        margin-top: 3em; /* Smaller margin on mobile */
    }

    .availability-badges {
        justify-content: center;
    }

    .app-title {
        font-size: 1.75rem;
    }

    .app-icon-container {
        width: 120px;
        height: 120px;
    }

    .app-icon {
        width: 104px;
        height: 104px;
    }

    .app-icon-fallback {
        width: 104px;
        height: 104px;
    }

    .app-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0.75rem;
    }

    .app-actions .btn {
        width: auto;
        align-self: center;
        text-align: center;
    }

    .app-hero-claim {
        flex-direction: column;
        align-items: stretch;
        margin: 1rem auto 0;
        text-align: left;
    }

    .app-hero-claim__text {
        align-items: flex-start;
    }

    .app-btn-claim {
        width: 100%;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.5rem;
    }

    .app-profile-section {
        padding: 1.35rem 1.25rem;
    }

    .app-profile-section .section-title {
        font-size: 1.2rem;
    }
    
    .feature-item {
        font-size: 1rem;
    }
    
    .pricing-card {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .target-users-content {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .target-users-content i {
        font-size: 1.25rem;
        margin-right: 0.75rem;
    }

    .best-for-chip.target-users-content {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .faq-answer-content {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
        text-align: center;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .release-info-content {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .release-info-content i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .feature-group-title {
        font-size: 1.1rem;
    }
    
    .feature-group-title i {
        margin-right: 0.5rem;
    }
    
    .user-type-badge,
    .tech-tag-badge {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Stacked/fanned screenshot preview on mobile */
    .screenshots-gallery {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 400px;
        position: relative;
    }

    #screenshots .section-title {
        margin-bottom: 0 !important;
    }

     #screenshots:has(.screenshots-more-indicator) {
        margin-bottom: 5em !important;
    }

    .screenshots-gallery .row {
        position: relative;
        width: 275px;
        height: 350px;
        margin: 0 auto;
    }

    .screenshots-gallery .col-12 {
        position: absolute;
        width: 275px;
        height: 350px;
        top: 0;
        left: 0;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .screenshots-gallery .screenshot-thumbnail {
        width: 100%;
        height: 100%;
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

    .screenshots-gallery .screenshot-thumbnail:hover {
        transform: none;
        border-color: transparent;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

    /* Stack the screenshots directly behind each other with edges visible at the top */
    .screenshots-gallery .col-12:nth-child(1) {
        z-index: 5;
        transform: translateX(0px) translateY(0px);
    }
    .screenshots-gallery .col-12:nth-child(2) {
        z-index: 4;
        transform: translateX(0px) translateY(-8px);
    }
    .screenshots-gallery .col-12:nth-child(3) {
        z-index: 3;
        transform: translateX(0px) translateY(-16px);
    }
    .screenshots-gallery .col-12:nth-child(4) {
        z-index: 2;
        transform: translateX(0px) translateY(-24px);
    }
    .screenshots-gallery .col-12:nth-child(n+5) {
        z-index: 1;
        transform: translateX(0px) translateY(-32px);
        opacity: 0.8;
    }

    .screenshots-gallery .screenshot-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 12px;
        transition: all 0.3s ease;
        border: 3px solid rgba(255, 255, 255, 0.9);
    }

    .screenshots-gallery .screenshot-img:hover {
        transform: scale(1.02);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    }

    /* Smaller navigation arrows on mobile */
    .screenshot-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .screenshot-prev {
        left: 0.35rem;
    }

    .screenshot-next {
        right: 0.35rem;
    }

    /* More indicator for multiple screenshots */
    .screenshots-more-indicator {
        position: absolute;
        bottom: -35px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(55, 71, 133, 0.9);
        color: white;
        padding: 6px 12px;
        border-radius: 15px;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
    }

    .screenshots-more-indicator:hover {
        background: rgba(55, 71, 133, 1);
    }

}

/* ── Screenshot Modal: mobile adjustments ── */
@media (max-width: 575.98px) {
    #screenshotModal .modal-dialog {
        width: calc(100vw - 1rem);
        height: calc(100dvh - 1rem);
        margin: 0.5rem auto;
    }

    #screenshotModal .modal-content {
        max-height: calc(100dvh - 1rem);
    }

    #screenshotModal .modal-header {
        padding: 0.85rem 1rem;
    }

    #screenshotModal .modal-body {
        padding: 0.5rem;
    }
}

/* Use cases, editorial, pros/cons, alternatives, claim footer */
.app-use-cases .use-cases-lead {
    color: #374785;
    font-size: 1.25rem;
}

.use-cases-list {
    padding-left: 1.25rem;
    margin: 0;
}

.use-cases-list li {
    margin-bottom: 0.35rem;
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.7;
}

.pros-cons-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: #374785;
    margin-bottom: 0.75rem;
}

.pros-cons-list {
    padding-left: 1.25rem;
    color: #334155;
}

.pros-cons-list li {
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.alternatives-lead {
    color: #64748b;
    font-size: 1rem;
}

.alternatives-app-link {
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(55, 71, 133, 0.12);
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.alternatives-app-link:hover {
    border-color: rgba(55, 71, 133, 0.35);
    box-shadow: 0 4px 14px rgba(55, 71, 133, 0.08);
}

.alternatives-app-logo {
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.alternatives-app-logo-fallback {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.alternatives-app-logo-fallback i {
    font-size: 1.05rem;
    line-height: 1;
}

.alternatives-app-name {
    font-weight: 600;
    color: #374785;
}

.claim-footer-title {
    color: #374785;
}

.app-claim-footer {
    border-color: rgba(55, 71, 133, 0.14);
}

.app-claim-footer--regular {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.app-claim-footer--editorial {
    background: #f8fafc;
    border-color: #dbe3ef;
    width: min(100%, 32rem);
    padding: 1.1rem 1.35rem;
    margin-left: auto;
    margin-right: auto;
}

.app-claim-footer--editorial .claim-footer-title {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 1.05rem;
}

.app-claim-footer--editorial .btn {
    font-size: 0.88rem;
    line-height: 1.2;
    padding: 0.5rem 1rem;
    border-radius: 18px;
}

.app-claim-footer--editorial .claim-footer-note {
    font-size: 0.82rem;
    line-height: 1.4;
    max-width: 24rem;
}

.claim-footer-text {
    color: #475569;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem !important;
}

.claim-footer-note {
    color: #64748b;
    font-size: 0.92rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* ── Desktop typography: larger editorial text ── */
@media (min-width: 768px) {
    .overview-body .overview-hook {
        font-size: 1.25rem;
        line-height: 1.6;
    }

    .overview-body .overview-core,
    .overview-body .overview-closing {
        font-size: 1.125rem;
        line-height: 1.75;
    }

    .overview-body p {
        max-width: 70ch;
    }

    .app-use-cases .use-cases-lead {
        font-size: 1.3rem;
    }

    .use-cases-list li {
        font-size: 1.12rem;
        line-height: 1.72;
    }

    .pros-cons-subtitle {
        font-size: 1.15rem;
    }

    .pros-cons-list li {
        font-size: 1.1rem;
        line-height: 1.72;
    }

    .app-profile-section .helper-pricing {
        font-size: 1rem;
    }

    .target-users-content {
        font-size: 1.05rem;
    }
}
