/* Spotted microsite — gold/yellow theme (matches Spotted app), on top of ../styles.css */

body.spotted-theme {
    --spotted-accent: #d4ab20;
    --spotted-accent-dark: #b89218;
    --spotted-accent-surface: #f7f0d8;
    --spotted-black: #000000;
    --spotted-border: #e5e5ea;
    color: #000;
    background-color: #fafafa;
}

body.spotted-theme .navbar {
    box-shadow: 0 2px 8px rgba(212, 171, 32, 0.18);
    border-bottom: 2px solid var(--spotted-accent-surface);
}

body.spotted-theme .nav-brand,
body.spotted-theme .nav-brand:hover {
    color: var(--spotted-black);
}

body.spotted-theme .nav-links a:hover,
body.spotted-theme .nav-links a.active {
    color: var(--spotted-accent-dark);
}

body.spotted-theme .nav-menu-btn {
    border: 1px solid rgba(212, 171, 32, 0.45);
    background: linear-gradient(180deg, #fffef8 0%, #fff 100%);
    box-shadow: 0 2px 8px rgba(212, 171, 32, 0.14);
}

body.spotted-theme .nav-menu-btn:hover {
    border-color: var(--spotted-accent);
    box-shadow: 0 4px 14px rgba(212, 171, 32, 0.28);
}

body.spotted-theme .nav-menu-btn:focus-visible {
    outline: 2px solid var(--spotted-accent);
}

body.spotted-theme .nav-menu-icon span {
    background: linear-gradient(90deg, var(--spotted-accent), var(--spotted-accent-dark));
}

body.spotted-theme .nav-menu-panel {
    border: 1px solid rgba(212, 171, 32, 0.28);
    box-shadow:
        0 16px 48px rgba(184, 146, 24, 0.16),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

body.spotted-theme .nav-menu-panel a:hover,
body.spotted-theme .nav-menu-panel a:focus-visible,
body.spotted-theme .nav-menu-panel .lang-option:hover,
body.spotted-theme .nav-menu-panel .lang-option:focus-visible {
    background: var(--spotted-accent-surface);
    color: var(--spotted-black);
}

body.spotted-theme .nav-menu-panel a.active,
body.spotted-theme .nav-menu-panel .lang-option.active {
    color: var(--spotted-accent-dark);
    background: var(--spotted-accent-surface);
}

body.spotted-theme .lang-menu-svg {
    color: var(--spotted-accent-dark);
}

body.spotted-theme .hero {
    background: linear-gradient(135deg, #fffef8 0%, #f7f0d8 55%, #fff 100%);
    color: var(--spotted-black);
}

body.spotted-theme .hero h1 {
    color: var(--spotted-black);
}

body.spotted-theme .hero-subtitle {
    color: #333;
    opacity: 1;
}

body.spotted-theme .spotted-kicker {
    color: var(--spotted-accent-dark);
    font-weight: 700;
}

body.spotted-theme .feature-card,
body.spotted-theme .content-section,
body.spotted-theme .contact-card,
body.spotted-theme .faq-item {
    border-top-color: var(--spotted-accent);
}

body.spotted-theme .feature-card {
    border-top: 3px solid var(--spotted-accent);
}

body.spotted-theme .feature-card:hover {
    box-shadow: 0 8px 20px rgba(212, 171, 32, 0.28);
    border-color: var(--spotted-accent);
}

body.spotted-theme .feature-card::before {
    background: linear-gradient(90deg, var(--spotted-accent), var(--spotted-accent-dark));
}

body.spotted-theme .feature-card h3,
body.spotted-theme .content-section h2,
body.spotted-theme .faq-item h3,
body.spotted-theme .contact-card h3,
body.spotted-theme .faq-section h2,
body.spotted-theme .use-case-item strong {
    color: var(--spotted-accent-dark);
}

body.spotted-theme a:not(.nav-brand):not(.nav-links a):not([role="menuitem"]):not(.footer-apps a):not(.spotted-wechat-button):not(.cn-btn):not(.cn-beian a) {
    color: var(--spotted-accent-dark);
}

body.spotted-theme footer {
    background: linear-gradient(135deg, #d4ab20 0%, #b89218 100%);
    border-top-color: #e0c04a;
    color: #fff;
}

body.spotted-theme .footer-apps a {
    color: #fff;
}

body.spotted-theme .footer-apps a:hover {
    color: #fffef8;
    opacity: 1;
}

body.spotted-theme .content-section a:hover,
body.spotted-theme .contact-info a:hover {
    color: var(--spotted-accent);
}

body.spotted-theme .features h2::after,
body.spotted-theme .content-page h1::after,
body.spotted-theme .privacy-section h2::after {
    background: linear-gradient(90deg, var(--spotted-accent), var(--spotted-accent-dark));
}

/* Subpage section rules (styles.css uses purple borders / ::before accents) */
body.spotted-theme .content-section h2 {
    border-bottom-color: var(--spotted-accent);
}

body.spotted-theme .content-section h2::before {
    background: var(--spotted-accent-dark);
}

body.spotted-theme .content-section a::after,
body.spotted-theme .contact-info a::after {
    background: var(--spotted-accent);
}

body.spotted-theme .content-page h1,
body.spotted-theme .last-updated {
    border-color: var(--spotted-accent);
}

body.spotted-theme .content-section,
body.spotted-theme .contact-card,
body.spotted-theme .faq-item,
body.spotted-theme .use-case-item,
body.spotted-theme .highlight-box,
body.spotted-theme .info-box {
    border-left-color: var(--spotted-accent);
}

body.spotted-theme .contact-card,
body.spotted-theme .faq-item {
    box-shadow: 0 2px 4px rgba(212, 171, 32, 0.12);
}

body.spotted-theme .contact-card:hover,
body.spotted-theme .faq-item:hover {
    box-shadow: 0 4px 12px rgba(212, 171, 32, 0.22);
}

body.spotted-theme .faq-item:hover {
    background: var(--spotted-accent-surface);
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon {
    border-radius: 10px;
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

body.spotted-theme .nav-brand {
    gap: 0.75rem;
    font-size: 1.65rem;
}

body.spotted-theme .nav-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(212, 171, 32, 0.25);
}

.spotted-kicker {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.9;
    margin: 0 0 0.75rem;
}

.screenshots-gallery .screenshot-img {
    background: #111;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    width: 240px;
    height: auto;
    aspect-ratio: 1290 / 2796;
    object-fit: cover;
    flex: 0 0 auto;
}

/* Wizz-style alternating how-it-works steps */
.how-it-works {
    padding: 3rem 0 4rem;
    background: #fff;
}

.how-header {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 3rem;
}

.how-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    margin: 0.35rem 0 0.75rem;
    color: var(--spotted-black);
    line-height: 1.2;
}

.how-header h2::after {
    display: none;
}

.how-lead {
    margin: 0;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.55;
}

.how-step {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.55fr);
    gap: 2rem 1.75rem;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
    padding: 2.75rem 0;
}

.how-step--media-left {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.9fr);
}

/*
 * Triple (step 1): stack copy above a full-width phone row so each phone
 * can match the pair size (~280px) instead of shrinking to fit beside text.
 */
.how-step--triple,
.how-step:has(.how-media--triple) {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: center;
}

.how-step--triple .how-copy,
.how-step:has(.how-media--triple) .how-copy {
    max-width: 40rem;
    justify-self: center;
    text-align: center;
}

.how-step--triple .how-media,
.how-step:has(.how-media--triple) .how-media {
    order: 2;
    width: 100%;
    justify-content: center;
    gap: 0.85rem;
}

.how-step--triple .how-copy,
.how-step:has(.how-media--triple) .how-copy {
    order: 1;
}

.how-step + .how-step {
    border-top: 1px solid rgba(212, 171, 32, 0.22);
}

.how-step--media-left .how-media {
    order: 1;
}

.how-step--media-left .how-copy {
    order: 2;
}

.how-step--media-right .how-copy {
    order: 1;
}

.how-step--media-right .how-media {
    order: 2;
}

.how-copy {
    max-width: 28rem;
}

.how-step--media-right .how-copy {
    justify-self: start;
}

.how-step--media-left .how-copy {
    justify-self: end;
}

.how-perspective {
    display: inline-flex;
    align-items: center;
    margin: 0 0 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.how-perspective--maya {
    background: #111;
    color: #fff;
}

.how-perspective--alex {
    background: var(--spotted-accent-surface);
    color: var(--spotted-accent-dark);
    border: 1px solid rgba(212, 171, 32, 0.45);
}

.how-copy h2 {
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    margin: 0 0 0.85rem;
    color: var(--spotted-black);
    line-height: 1.25;
}

.how-copy p:not(.how-perspective) {
    margin: 0;
    color: #444;
    font-size: 1.05rem;
    line-height: 1.6;
}

.how-media {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
}

/* Match pre-multi-image size (single phone was 280px); pairs + triples share it */
.how-media--pair .how-phone,
.how-media--triple .how-phone {
    width: min(100%, 280px);
}

.how-phone {
    display: block;
    width: min(100%, 280px);
    height: auto;
    aspect-ratio: 1290 / 2796;
    object-fit: cover;
    border-radius: 28px;
    background: #f9f9f9;
    border: 1px solid rgba(212, 171, 32, 0.35);
    border-top: 3px solid var(--spotted-accent);
    box-shadow: 0 4px 14px rgba(184, 146, 24, 0.14);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    flex: 0 0 auto;
}

.how-phone:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(212, 171, 32, 0.28);
    border-color: var(--spotted-accent);
}

@media (max-width: 860px) {
    .how-step,
    .how-step--media-left,
    .how-step--media-right {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0;
        text-align: center;
    }

    .how-step--media-left .how-media,
    .how-step--media-left .how-copy,
    .how-step--media-right .how-copy,
    .how-step--media-right .how-media {
        order: unset;
        justify-self: center;
    }

    /* Phone first on mobile for every step */
    .how-media {
        order: 1;
    }

    .how-copy {
        order: 2;
        max-width: 36rem;
        margin: 0 auto;
    }

    .how-phone,
    .how-media--pair .how-phone,
    .how-media--triple .how-phone {
        width: min(100%, 280px);
    }

    .how-step--triple,
    .how-step:has(.how-media--triple) {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .how-step--triple .how-copy,
    .how-step:has(.how-media--triple) .how-copy {
        text-align: center;
    }
}

.privacy-section {
    padding: 3rem 0 4rem;
}

.privacy-section a {
    text-decoration: underline;
}

/* App Store / Google Play badges + QR (above site footer) */
.spotted-download-section {
    padding: 2.5rem 0 2rem;
    background: linear-gradient(180deg, #fffef8 0%, #f7f0d8 100%);
    border-top: 1px solid rgba(212, 171, 32, 0.28);
}

.spotted-download {
    padding: 0;
}

.spotted-download-title {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    color: var(--spotted-accent-dark);
    text-align: center;
}

.spotted-download-lead {
    text-align: center;
    color: #444;
    max-width: 36rem;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.spotted-download-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.75rem 2.5rem;
    margin: 0;
}

.spotted-download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    min-width: 10rem;
}

.spotted-download-card .store-badge-link {
    display: inline-flex;
    line-height: 0;
}

.spotted-download-card .store-badge {
    width: 155px;
    height: auto;
    max-height: 52px;
    object-fit: contain;
}

.spotted-download-card .store-qr-link {
    display: block;
    line-height: 0;
    border-radius: 12px;
    padding: 0.35rem;
    background: #fff;
    border: 1px solid rgba(212, 171, 32, 0.35);
    box-shadow: 0 4px 14px rgba(184, 146, 24, 0.12);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.spotted-download-card .store-qr-link:hover {
    border-color: var(--spotted-accent);
    box-shadow: 0 6px 18px rgba(184, 146, 24, 0.22);
}

.spotted-download-card .store-qr {
    width: 132px;
    height: 132px;
    display: block;
    object-fit: contain;
}

.spotted-download-card .store-qr-caption {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

@media (max-width: 480px) {
    .spotted-download-card .store-qr {
        width: 120px;
        height: 120px;
    }
}

/* WeChat mini game cross-link (home page only) */
.spotted-wechat-section {
    padding: 2.5rem 0 2rem;
    background: #fff;
    border-top: 1px solid rgba(212, 171, 32, 0.2);
}

.spotted-wechat-title {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    color: var(--spotted-accent-dark);
    text-align: center;
}

.spotted-wechat-lead {
    text-align: center;
    color: #444;
    max-width: 36rem;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.spotted-wechat-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem 2.5rem;
}

.spotted-wechat-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    border: 2px solid var(--spotted-accent);
    background: #000;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.spotted-wechat-button:hover,
.spotted-wechat-button:focus-visible {
    transform: translateY(-1px);
    background: var(--spotted-accent);
    border-color: var(--spotted-accent-dark);
    color: #000 !important;
    box-shadow: 0 6px 18px rgba(184, 146, 24, 0.3);
}

.spotted-wechat-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.spotted-wechat-qr-link {
    display: block;
    line-height: 0;
    border-radius: 12px;
    padding: 0.35rem;
    background: #fff;
    border: 1px solid rgba(212, 171, 32, 0.35);
    box-shadow: 0 4px 14px rgba(184, 146, 24, 0.12);
}

.spotted-wechat-qr-link:hover {
    border-color: var(--spotted-accent);
}

.spotted-wechat-qr {
    width: 132px;
    height: 132px;
    object-fit: contain;
    border-radius: 8px;
}

.spotted-wechat-qr-caption {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}
