/* Apple look for inner pages — keeps existing markup, remaps the dark theme */
body.page-apple {
    --primary-color: #0071e3;
    --primary-dark: #0077ed;
    --primary-light: #2997ff;
    --bg-dark: #f5f5f7;
    --bg-darker: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #424245;
    --text-muted: #6e6e73;
    --border-color: rgba(0, 0, 0, 0.08);
    --gradient-1: linear-gradient(135deg, #0071e3 0%, #2997ff 100%);
    --gradient-2: linear-gradient(135deg, #0071e3 0%, #0077ed 100%);
    --gradient-3: linear-gradient(135deg, #2997ff 0%, #0071e3 100%);
    background: #f5f5f7;
    color: #1d1d1f;
}

body.page-apple .hero-wrapper,
body.page-apple .hero-index-mac,
body.page-apple .hero-top,
body.page-apple .hero,
body.page-apple section:not(.ap-film),
body.page-apple .agency-feature-row,
body.page-apple .agency-feature-row:nth-child(even),
body.page-apple .knowledge-hero,
body.page-apple .legal-page-header,
body.page-apple .tutorial-hero {
    background: #f5f5f7 !important;
    color: #1d1d1f;
}

body.page-apple h1,
body.page-apple h2,
body.page-apple h3,
body.page-apple .hero-title,
body.page-apple .section-title,
body.page-apple .footer .logo-text {
    color: #1d1d1f !important;
    -webkit-text-fill-color: #1d1d1f !important;
    background: none !important;
}

body.page-apple .ap-cta-inner h2 {
    color: #1d1d1f !important;
    -webkit-text-fill-color: #1d1d1f !important;
    background: none !important;
}
body.page-apple .ap-cta-inner p {
    color: #6e6e73 !important;
}
body.page-apple .ap-cta,
body.page-apple section.ap-cta {
    background: #f5f5f7 !important;
    color: #1d1d1f;
}
body.page-apple .ap-form input {
    background: #f5f5f7 !important;
    color: #1d1d1f !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
}
body.page-apple .ap-form input:focus {
    background: #fff !important;
    border-color: #0071e3 !important;
}
body.page-apple .ap-film,
body.page-apple section.ap-film {
    background: #1c1412 !important;
    color: #fff;
}
body.page-apple .ap-film--loyalty,
body.page-apple section.ap-film--loyalty {
    background: #e8e4de !important;
}
body.page-apple .ap-film--center,
body.page-apple section.ap-film--center {
    background: #07111f !important;
}
body.page-apple .ap-film h1,
body.page-apple .ap-film p,
body.page-apple .ap-film span,
body.page-apple .ap-film a {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
body.page-apple .ap-film-buy {
    background: #0071e3 !important;
}
body.page-apple .ap-film a.ap-film-try {
    background: #fff !important;
    color: #1d1d1f !important;
    -webkit-text-fill-color: #1d1d1f !important;
}
body.page-apple .ap-film-lead {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

body.page-apple .ap-why,
body.page-apple section.ap-why {
    background: #f5f5f7 !important;
}
body.page-apple .ap-why-card {
    background: #fff !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}
body.page-apple .ap-know,
body.page-apple section.ap-know {
    background: #f5f5f7 !important;
}
body.page-apple .ap-know-card h3,
body.page-apple .ap-know-kicker {
    background: none !important;
}

body.page-apple p,
body.page-apple .hero-subtitle,
body.page-apple .section-subtitle,
body.page-apple li {
    color: #424245;
}

body.page-apple .knowledge-card,
body.page-apple .pricing-card,
body.page-apple .start-on-your-own-tier,
body.page-apple .contact-form,
body.page-apple .sme-feature-card,
body.page-apple .fl-story-copy,
body.page-apple .api-endpoint,
body.page-apple .tutorial-step {
    background: #fff !important;
    color: #1d1d1f;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

body.page-apple .cta-button,
body.page-apple .btn-primary,
body.page-apple .nav-signup,
body.page-apple .hero-cta .btn,
body.page-apple a.button,
body.page-apple .start-on-your-own-cta a,
body.page-apple .contact-form button[type="submit"] {
    background: #0071e3 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 980px !important;
    box-shadow: none !important;
}

body.page-apple .cta-button:hover,
body.page-apple .btn-primary:hover,
body.page-apple .nav-signup:hover {
    background: #0077ed !important;
}

body.page-apple .footer,
body.page-apple footer.footer {
    background: #fff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: #6e6e73;
}

body.page-apple .ap-footer-col a,
body.page-apple .ap-footer-legal a,
body.page-apple .footer-link {
    color: #424245 !important;
}

body.page-apple .ap-footer-shop a,
body.page-apple .footer a:hover {
    color: #0071e3 !important;
}

body.page-apple .footer-ask-ai-btn {
    color: #1d1d1f !important;
}

body.page-apple input,
body.page-apple textarea,
body.page-apple select {
    background: #fff !important;
    color: #1d1d1f !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
}
body.page-apple .ap-form input {
    background: #f5f5f7 !important;
    color: #1d1d1f !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 12px;
}
body.page-apple .ap-form input:focus {
    background: #fff !important;
    border-color: #0071e3 !important;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

body.page-apple .api-intro-card,
body.page-apple .api-endpoint,
body.page-apple .api-sidebar-inner {
    background: #fff !important;
    color: #1d1d1f;
    border-radius: 22px;
}

body.page-apple .api-path,
body.page-apple .api-endpoint-title,
body.page-apple .api-intro-card h2,
body.page-apple .api-group-title,
body.page-apple .api-code code {
    color: #1d1d1f !important;
    -webkit-text-fill-color: #1d1d1f !important;
}

body.page-apple .api-intro-card > p,
body.page-apple .api-endpoint-desc,
body.page-apple .api-group-en,
body.page-apple .api-params-table td {
    color: #424245 !important;
}

body.page-apple .api-subsection-title,
body.page-apple .api-meta-label,
body.page-apple .api-code-label {
    color: #6e6e73 !important;
    -webkit-text-fill-color: #6e6e73 !important;
}

body.page-apple .mac-window,
body.page-apple .fl-ui-mac {
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.1);
}

body.page-apple .hero-wrapper .navbar::before,
body.page-apple .hero-wrapper .navbar::after,
body.page-apple .navbar::before,
body.page-apple .navbar::after {
    display: none !important;
}

body.page-apple .ap-header + .hero-wrapper,
body.page-apple .ap-header + header.hero-wrapper {
    padding-top: 0;
}

body.page-apple .hero-top {
    min-height: 0 !important;
}

body.page-apple .language-dropdown {
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body.page-apple .ap-header,
body.page-apple .ap-header .navbar,
body.page-apple header.ap-header,
body.page-apple .navbar {
    background: #fff !important;
}

body.page-apple .nav-burger span {
    background: #1d1d1f;
}

body.page-apple .hero-brand-stars { display: none !important; }
body.page-apple .hero-corporate,
body.page-apple .hero.hero-corporate,
body.page-apple .physical-store-section,
body.page-apple .features-section,
body.page-apple .start-on-your-own-section,
body.page-apple .partners-section,
body.page-apple .agency-cta-section {
    background: #f5f5f7 !important;
    color: #1d1d1f;
}

body.page-apple .hero-title,
body.page-apple .hero-title-block,
body.page-apple .hero-content {
    color: #1d1d1f;
}

body.page-apple .hero-clients,
body.page-apple .clients-strip {
    background: transparent !important;
}

body.page-apple .loyalty-section,
body.page-apple .loyalty-campaigns-section {
    background: #f5f5f7 !important;
}
body.page-apple .ap-shop-grid .ap-why-kicker {
    color: #bf4800 !important;
    -webkit-text-fill-color: #bf4800 !important;
}
body.page-apple .ap-batt-slide {
    background: #fff !important;
    border: 0 !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

body.page-apple .cta-section {
    background: #f5f5f7 !important;
    padding: 28px 0 88px;
}
body.page-apple .cta-section .container {
    width: min(var(--ap-max), calc(100% - 40px));
    max-width: none;
    padding: 0;
    margin: 0 auto;
}
body.page-apple .cta-section .cta-content {
    max-width: none;
    width: 100%;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: clamp(48px, 7vw, 72px) 32px 56px;
}
body.page-apple .cta-section .cta-title {
    color: #1d1d1f !important;
    -webkit-text-fill-color: #1d1d1f !important;
    font-weight: 600;
    letter-spacing: -0.03em;
    font-size: clamp(32px, 5vw, 48px);
}
body.page-apple .cta-section .cta-description {
    color: #6e6e73 !important;
    font-size: 19px;
    margin: 0 auto 32px;
}
body.page-apple .cta-section .cta-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    width: 100%;
    max-width: none;
}
body.page-apple .cta-section .cta-form input {
    height: 48px;
    padding: 0 14px;
    background: #f5f5f7 !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 12px;
    color: #1d1d1f !important;
    font-size: 16px;
    box-shadow: none;
}
body.page-apple .cta-section .cta-form input:focus {
    outline: none;
    background: #fff !important;
    border-color: #0071e3 !important;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}
body.page-apple .cta-section .cta-form .btn-primary,
body.page-apple .cta-section .cta-form .btn-large {
    grid-column: 1 / -1;
    margin-top: 4px;
    width: 100%;
    min-height: 48px;
    background: #0071e3 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 980px !important;
    font-weight: 500;
    box-shadow: none !important;
}
body.page-apple .cta-section .cta-form .btn-primary:hover,
body.page-apple .cta-section .cta-form .btn-large:hover {
    background: #0077ed !important;
    color: #fff !important;
}
@media (max-width: 640px) {
    body.page-apple .cta-section .cta-form {
        grid-template-columns: 1fr;
    }
}

body.page-contact .contact-kb {
    padding-top: 8px;
    padding-bottom: 8px;
}
body.page-contact .contact-kb .ap-cta-inner {
    padding: clamp(40px, 6vw, 56px) 32px;
}
body.page-contact .contact-kb .ap-cta-inner h2 {
    max-width: none;
    font-size: clamp(28px, 4vw, 40px);
}
body.page-contact .contact-kb .ap-kicker {
    color: #0071e3 !important;
    font-size: 14px;
    margin: 0 0 8px;
    max-width: none;
}
body.page-contact .contact-kb .ap-cta-inner p:not(.ap-kicker) {
    margin-bottom: 24px;
}
body.page-contact .contact-kb .ap-btn {
    text-decoration: none;
}

body.page-contact .contact-map-wrap {
    background: #e8e8ed;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 22px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    min-height: 360px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
body.page-contact .contact-map-wrap .leaflet-container {
    width: 100%;
    height: 100%;
    background: #e8e8ed;
    font-family: inherit;
}
body.page-contact .contact-map-wrap .leaflet-tile-pane {
    filter: grayscale(0.55) saturate(0.35) contrast(1.02);
}
body.page-contact .contact-map-pin {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0071e3;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}
body.page-contact .contact-map-wrap .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
body.page-contact .contact-map-wrap .leaflet-popup-content {
    margin: 10px 12px;
    font-size: 13px;
    line-height: 1.4;
    color: #1d1d1f;
}
body.page-contact .contact-map-wrap .leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.72);
    color: #86868b;
    font-size: 10px;
}

body.page-partners .ap-hero--page h1 {
    max-width: 12em;
}
body.page-partners .ap-hero-cta {
    margin-bottom: 28px;
}
body.page-partners button.ap-btn {
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}
body.page-partners .partners-page {
    padding-top: 8px;
}
body.page-partners .partners-payout {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    padding: clamp(36px, 5vw, 56px) 32px;
    margin: 0 auto 40px;
    max-width: 720px;
    text-align: center;
}
body.page-partners .partners-payout .ap-kicker {
    color: #0071e3;
}
body.page-partners .partners-payout-num {
    margin: 4px 0 6px;
    font-size: clamp(56px, 8vw, 80px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1;
    color: #1d1d1f;
}
body.page-partners .partners-payout-per {
    margin: 0 auto 16px;
    max-width: 22em;
    font-size: 19px;
    font-weight: 600;
    color: #1d1d1f;
}
body.page-partners .partners-payout-lead {
    margin: 0 auto;
    max-width: 36em;
    font-size: 17px;
    line-height: 1.45;
    color: #6e6e73 !important;
}
body.page-partners .partners-page .ap-feat-card .ap-kicker {
    margin: 0 0 8px;
    color: #0071e3;
}
body.page-partners .ap-cta-inner .ap-btn {
    margin-top: 4px;
    text-decoration: none;
}
body.page-partners .ap-hero-cta .ap-btn {
    text-decoration: none;
}
