/* ===== Base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; max-width: 900px; margin: 0 auto; padding: 20px; color: #333; line-height: 1.6; }
h1 { text-align: center; color: #333; font-size: 2em; }

/* ===== Skip link ===== */
.skip-link { position: absolute; left: -9999px; top: 0; background: #764ba2; color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0; font-weight: 600; z-index: 1000; text-decoration: none; }
.skip-link:focus { left: 0; }

/* ===== Keyboard focus indicator (WCAG 2.4.7, 1.4.11) ===== */
/* Blue ring: 5.8:1 against white page background. */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #0062CC;
    outline-offset: 2px;
}
/* White ring where the panel behind is the purple gradient: 6.4:1. */
.hero a:focus-visible,
.intro a:focus-visible,
.download-box a:focus-visible,
.thankyou-box a:focus-visible,
.final-cta a:focus-visible,
.submit-btn:focus-visible {
    outline-color: #ffffff;
}

/* ===== Banner ===== */
.banner { background-color: #FF8C00; color: #1a1a1a; text-align: center; padding: 12px 16px; font-size: 16px; font-weight: bold; letter-spacing: 0.5px; width: 100%; }

/* ===== Nav ===== */
.nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; margin: 20px 0; gap: 0; }
.nav a { margin: 0 4px; padding: 10px 8px; text-decoration: none; color: #0062CC; font-weight: 500; }
.nav a:hover { text-decoration: underline; }
.nav a.active { font-weight: 700; color: #0062CC; border-bottom: 2px solid #0062CC; }
.nav .sep { color: #bbb; margin: 0 2px; user-select: none; }

/* ===== Footer ===== */
.footer { text-align: center; margin-top: 50px; padding-top: 30px; border-top: 1px solid #ddd; color: #666; font-size: 0.9em; }
.footer a { color: #0062CC; }

/* ===== Scroll-to-top button ===== */
#scrollTop { text-decoration: none; position: fixed; bottom: 28px; right: 28px; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; border: none; border-radius: 50%; width: 46px; height: 46px; font-size: 22px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; z-index: 999; }

/* ===== App Store badge ===== */
.app-badge { display: inline-block; position: relative; transition: transform 0.3s ease; }
.app-badge:hover { transform: scale(1.05); }
.app-badge img { width: 132px; height: 44px; display: block; margin: 0 auto; }
.coming-soon-tag { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #FF8C00; color: #1a1a1a; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,0.25); pointer-events: none; }

/* ===== Closing CTA ===== */
.final-cta { text-align: center; padding: 3rem 20px 1rem; margin-top: 20px; }
.final-cta h2 { font-size: 1.6em; margin: 0 0 8px 0; color: #000; }
.final-cta p { color: #666; margin: 0 0 20px 0; }

/* ===== Feature cards (shared) ===== */
.feature-card { background: #f8f9fa; padding: 25px; border-radius: 12px; border-left: 4px solid #0062CC; }
.feature-card h2 { margin: 0 0 12px 0; color: #000; font-size: 1.2em; }
.feature-card ul { margin: 0; padding-left: 20px; }
.feature-card li { margin-bottom: 8px; }

/* ===== Requirements box ===== */
.requirements { background: #e3f2fd; padding: 20px; border-radius: 12px; border-left: 4px solid #2196F3; margin: 30px 0; }
.requirements h2 { margin: 0 0 10px 0; color: #1976D2; }
.requirements ul { margin: 0; padding-left: 20px; }

/* ===== Utility ===== */
.last-updated { text-align: center; color: #666; }
.honeypot { position: absolute; left: -9999px; }
.text-center { text-align: center; }

/* ===== Why-track section (shared keyword-content block) ===== */
.why-track { background: #f8f9fa; padding: 25px; border-radius: 12px; border-left: 4px solid #764ba2; margin: 30px 0; }
.why-track h2 { margin: 0 0 12px 0; color: #000; font-size: 1.3em; }
.why-track p { margin: 10px 0; }

/* ===== Page: Home ===== */
.page-home .header { text-align: center; margin-bottom: 30px; }
.page-home .logo { width: 80px; height: 80px; border-radius: 16px; margin: 0 auto; display: block; }
.page-home .hero { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 40px 20px; border-radius: 16px; margin-bottom: 40px; text-align: center; }
.page-home .hero h1 { font-size: 2.5em; margin: 0 0 10px 0; font-weight: 700; color: #fff; }
.page-home .hero .tagline { font-size: 1.3em; margin: 0 0 8px 0; opacity: 0.9; }
.page-home .hero .subtitle { font-size: 1.1em; margin: 0 0 20px 0; opacity: 0.8; }
.page-home .hero-buttons { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.page-home .learn-more-btn { display: flex; align-items: center; justify-content: center; padding: 0 8px; height: 44px; background: transparent; border: none; color: rgba(255,255,255,0.85); text-decoration: underline; font-weight: 500; font-size: 14px; transition: color 0.2s ease; }
.page-home .learn-more-btn:hover { color: #fff; }
.page-home .screenshots { margin: 40px 0; }
.page-home .screenshots-title { text-align: center; color: #333; margin: 0 0 24px 0; }
.page-home .screenshot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: 800px; margin: 0 auto; }
.page-home .screenshot-card { margin: 0; text-align: center; }
.page-home .screenshot-card img { width: 100%; max-width: 260px; height: auto; border-radius: 18px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); border: 1px solid #e5e5ea; }
.page-home .screenshot-card figcaption { margin-top: 10px; color: #666; font-size: 0.95em; font-weight: 500; }
.page-home .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 40px 0; }

/* ===== Page: About ===== */
.page-about h2 { color: #000; border-bottom: 2px solid #764ba2; padding-bottom: 6px; margin-top: 30px; }
.page-about .intro { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 30px; border-radius: 16px; text-align: center; margin: 20px 0 30px 0; }
.page-about .intro p { margin: 0; font-size: 1.1em; opacity: 0.95; }
.page-about .features { background: #f8f9fa; padding: 20px 25px; border-radius: 12px; border-left: 4px solid #0062CC; }
.page-about .features ul { list-style: none; padding: 0; margin: 0; }
.page-about .features li { margin: 10px 0; padding-left: 10px; }
.page-about .features li::before { content: "\2713 "; color: #0062CC; font-weight: bold; }
.page-about .final-cta h2 { border-bottom: none; }

/* ===== Page: Features ===== */
.page-features h2 { color: #764ba2; margin-top: 30px; }
.page-features .feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 30px 0; }

/* ===== Page: FAQ ===== */
.page-faq .faq-item { background: #f8f9fa; border-radius: 12px; border-left: 4px solid #764ba2; padding: 20px 25px; margin: 16px 0; }
.page-faq .faq-item h2 { margin: 0 0 8px 0; color: #764ba2; font-size: 1.15em; }
.page-faq .faq-item p { margin: 0; }
.page-faq .more-help { background: #e3f2fd; border-left: 4px solid #2196F3; border-radius: 12px; padding: 20px 25px; margin: 30px 0; }
.page-faq .more-help h2 { margin: 0 0 8px 0; color: #1976D2; font-size: 1.15em; }
.page-faq .more-help p { margin: 0; }

/* ===== Page: Terms ===== */
.page-terms h2 { color: #764ba2; border-bottom: 1px solid #eee; padding-bottom: 6px; margin-top: 30px; }

/* ===== Page: Privacy ===== */
.page-privacy h2 { color: #764ba2; border-bottom: 1px solid #eee; padding-bottom: 6px; margin-top: 30px; }
.page-privacy .highlight { background: #e3f2fd; padding: 16px 20px; border-radius: 10px; border-left: 4px solid #0062CC; margin: 20px 0; }

/* ===== Page: Download ===== */
.page-download .download-box { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 40px 20px; border-radius: 16px; text-align: center; margin: 30px 0; }
.page-download .download-box h2 { margin: 0 0 10px 0; font-size: 1.8em; }
.page-download .download-box p { margin: 0 0 20px 0; opacity: 0.9; font-size: 1.1em; }
.page-download .download-box .price-note { margin: -12px 0 20px 0; opacity: 0.75; font-size: 0.85em; }
.page-download .requirements h2 { font-size: 1.17em; }

/* ===== Page: Contact ===== */
.page-contact .contact-box { background: #f8f9fa; border-radius: 12px; padding: 30px; margin: 30px 0; border-left: 4px solid #764ba2; }
.page-contact .contact-box h2 { margin-top: 0; color: #764ba2; }
.page-contact label { display: block; font-weight: 600; margin: 16px 0 6px 0; }
.page-contact input, .page-contact textarea, .page-contact select { width: 100%; padding: 10px 14px; border: 1px solid #ccc; border-radius: 8px; font-size: 1em; font-family: inherit; }
.page-contact input:focus, .page-contact textarea:focus, .page-contact select:focus { outline: none; border-color: #764ba2; box-shadow: 0 0 0 2px #764ba2; }
.page-contact textarea { resize: vertical; min-height: 130px; }
.page-contact .submit-btn { display: inline-block; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 14px 32px; border: none; border-radius: 8px; font-size: 1.1em; font-weight: 600; cursor: pointer; margin-top: 20px; transition: opacity 0.2s; }
.page-contact .submit-btn:hover { opacity: 0.88; }
.page-contact .submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.page-contact .form-msg { display: none; margin-top: 14px; padding: 12px 16px; border-radius: 8px; font-size: 0.95em; font-weight: 500; }
.page-contact .form-msg.sending { display: block; background: #eef4ff; border: 1px solid #667eea; color: #3730a3; }
.page-contact .form-msg.error { display: block; background: #fff0f0; border: 1px solid #c0392b; color: #c0392b; }
.page-contact .g-recaptcha { max-width: 100%; overflow: hidden; margin-top: 20px; }
.page-contact .email-fallback { display: none; margin-top: 18px; color: #666; font-size: 0.95em; }
.page-contact .email-fallback a { color: #764ba2; font-weight: 600; }

/* ===== Page: Error (403) ===== */
.page-error .error-box { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 50px 30px; border-radius: 16px; text-align: center; margin: 60px 0; }
.page-error .error-box .code { font-size: 4em; font-weight: 800; margin: 0; opacity: 0.9; }
.page-error .error-box h1 { margin: 8px 0 12px 0; font-size: 1.8em; color: inherit; }
.page-error .error-box p { margin: 0 0 12px 0; font-size: 1.1em; opacity: 0.92; }
.page-error .home-btn { display: inline-block; background: #fff; color: #764ba2; padding: 14px 32px; border-radius: 8px; text-decoration: none; font-weight: 700; margin-top: 16px; }
.page-error .home-btn:hover { opacity: 0.88; }

/* ===== Page: Thank You ===== */
.page-thankyou { min-height: 100vh; }
.page-thankyou .thankyou-wrap { display: flex; flex-direction: column; min-height: 80vh; justify-content: center; }
.page-thankyou .thankyou-box { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 50px 30px; border-radius: 16px; text-align: center; margin: 40px 0; }
.page-thankyou .thankyou-box h1 { margin: 0 0 16px 0; font-size: 2.2em; color: #bbf7d0; }
.page-thankyou .thankyou-box p { margin: 0 0 12px 0; font-size: 1.1em; opacity: 0.92; }
.page-thankyou .home-btn { display: inline-block; background: #fff; color: #764ba2; padding: 14px 32px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 1em; margin-top: 20px; transition: opacity 0.2s; }
.page-thankyou .home-btn:hover { opacity: 0.88; }
.page-thankyou .checkmark-icon { vertical-align: -3px; margin-right: 4px; }
.page-thankyou .banner { margin: -20px -20px 0 -20px; width: calc(100% + 40px); }

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .nav a { display: inline-block; margin: 4px 8px; }
    .page-home .hero h1 { font-size: 2em; }
    .page-home .features { grid-template-columns: 1fr; }
    .page-about h1 { font-size: 1.6em; }
    .page-features .feature-grid { grid-template-columns: 1fr; }
    .page-error .error-box { padding: 30px 16px; }
    .page-error .error-box .code { font-size: 3em; }
    .page-thankyou .thankyou-box { padding: 30px 16px; margin: 20px 0; }
    .page-thankyou .thankyou-box h1 { font-size: 1.6em; }
    .page-thankyou .home-btn { display: block; text-align: center; padding: 14px 16px; }
    .page-thankyou { padding: 12px; }
    .page-thankyou .banner { margin: -12px -12px 0 -12px; width: calc(100% + 24px); }
}
@media (max-width: 360px) {
    .page-contact .g-recaptcha { transform: scale(0.85); transform-origin: 0 0; }
}
