@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;900&display=swap');

/* Worship Meets Tech - shared site styles (look and feel taken from chordproeditor.com) */
:root {
    --primary-color: #1d6fa5;
    --primary-dark: #155580;
    --secondary-color: #1a4f7a;
    --accent-color: #f97316;
    --success-color: #34C759;
    --background-color: #F2F2F7;
    --surface-color: #FFFFFF;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --text-body: #4a4a50;
    --border-color: #D2D2D7;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
}

img { max-width: 100%; }
a { color: var(--primary-color); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
header.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
header.site-header nav { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 0; }

.logo {
    display: flex; align-items: center; gap: 12px;
    font-size: 1.25rem; font-weight: 600;
    color: var(--text-primary); text-decoration: none;
}
.logo-mark {
    width: 34px; height: 34px; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 700;
}

.nav-links { display: flex; list-style: none; gap: 0.5rem; align-items: center; }
.nav-links a {
    text-decoration: none; color: var(--text-primary); font-weight: 500;
    padding: 8px 16px; border-radius: 8px; transition: all 0.3s ease; display: block;
}
.nav-links a:hover, .nav-links a.active { background-color: var(--primary-color); color: white; }

.mobile-menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 4px; padding: 8px; background: none; border: none; }
.mobile-menu-toggle span { width: 24px; height: 2px; background: var(--text-primary); transition: 0.3s; display: block; }
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* App sub-bar (shown on app pages) */
.app-bar { background: var(--surface-color); border-bottom: 1px solid var(--border-color); }
.app-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.6rem; padding-bottom: 0.6rem; flex-wrap: wrap; }
.app-bar-title { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-primary); text-decoration: none; }
.app-bar-title img, .app-bar-title .app-tile { width: 28px; height: 28px; border-radius: 6px; }
.app-tile {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.95rem;
}
.app-bar ul { list-style: none; display: flex; gap: 0.25rem; }
.app-bar ul a { text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; padding: 6px 14px; border-radius: 8px; }
.app-bar ul a:hover { color: var(--primary-color); }
.app-bar ul a.active { color: var(--primary-color); background: rgba(29, 111, 165, 0.1); }

/* Announcement strip */
.announce { background: #f8f8f8; border-bottom: 1px solid #e5e5e5; text-align: center; padding: 14px 20px; }
.announce-strong { font-size: 1.15rem; font-weight: 700; color: var(--accent-color); letter-spacing: 0.08em; text-transform: uppercase; }
.announce-dash { color: var(--text-secondary); margin: 0 8px; }
.announce-text { font-size: 1.15rem; font-weight: 500; color: #444; }

/* ---------- Hero ---------- */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white; overflow: hidden;
}
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-content.centered { grid-template-columns: 1fr; text-align: center; max-width: 860px; margin: 0 auto; }
.hero h1 { font-size: 3.5rem; font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; }
.hero p { font-size: 1.25rem; opacity: 0.92; margin-bottom: 2rem; }
.hero .eyebrow { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; margin-bottom: 1rem; }
.hero-features { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.hero-content.centered .hero-features, .hero-content.centered .cta-buttons { justify-content: center; }
.hero-feature { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.12); padding: 8px 16px; border-radius: 20px; font-weight: 500; }
.feature-icon { font-size: 1.2rem; }
.cta-buttons { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.app-store-btn img { height: 60px; transition: transform 0.3s ease; display: block; }
.app-store-btn:hover img { transform: scale(1.05); }
.app-store-btn.large img { height: 80px; margin: 0 auto; }
.secondary-btn {
    padding: 12px 24px; background: rgba(255,255,255,0.2); color: white; text-decoration: none;
    border-radius: var(--border-radius); font-weight: 600; transition: all 0.3s ease; display: inline-block;
}
.secondary-btn:hover { background: rgba(255,255,255,0.3); }
.primary-btn {
    padding: 12px 24px; background: var(--primary-color); color: white; text-decoration: none;
    border-radius: var(--border-radius); font-weight: 600; transition: all 0.3s ease; display: inline-block;
}
.primary-btn:hover { background: var(--primary-dark); }
.hero-screenshot { width: 100%; max-width: 500px; border-radius: var(--border-radius); box-shadow: var(--shadow-medium); }
.badge-soon {
    display: inline-block; background: var(--accent-color); color: #fff; font-weight: 600;
    padding: 10px 22px; border-radius: 30px; font-size: 1rem; letter-spacing: 0.02em;
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
section.alt { background: var(--surface-color); }
h2 { font-size: 2.5rem; font-weight: 700; text-align: center; margin-bottom: 3rem; color: var(--text-primary); }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-primary); }
.section-intro { text-align: center; max-width: 720px; margin: -1.5rem auto 3rem; color: var(--text-body); font-size: 1.15rem; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
section > .container > h2 + .features-grid { margin-top: 0; }
.feature-card {
    background: var(--surface-color); padding: 2rem; border-radius: var(--border-radius);
    box-shadow: var(--shadow-light); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
section.alt .feature-card { background: var(--background-color); box-shadow: none; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-medium); }
.feature-card .feature-icon { font-size: 3rem; margin-bottom: 1rem; }
.feature-card p { color: var(--text-body); }
.pill-new { font-size: 0.65em; background: var(--primary-color); color: white; padding: 2px 8px; border-radius: 10px; vertical-align: middle; white-space: nowrap; display: inline-block; }

/* App cards (company home page) */
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem; }
.app-card {
    background: var(--surface-color); border-radius: var(--border-radius); box-shadow: var(--shadow-light);
    padding: 2.5rem 2rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease; border-top: 5px solid var(--primary-color);
}
.app-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-medium); }
.app-card.soon { border-top-color: var(--accent-color); }
.app-card-head { display: flex; align-items: center; gap: 16px; }
.app-card-head img, .app-card-head .app-tile { width: 64px; height: 64px; border-radius: 14px; font-size: 1.9rem; }
.app-card h3 { margin: 0; font-size: 1.6rem; }
.app-card .status { font-size: 0.85rem; font-weight: 600; color: var(--success-color); text-transform: uppercase; letter-spacing: 0.06em; }
.app-card.soon .status { color: var(--accent-color); }
.app-card p { color: var(--text-body); flex-grow: 1; }
.app-card .card-links { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: 0.5rem; }
.app-card .card-links img { height: 44px; display: block; }

/* Steps */
.workflow-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.step { display: flex; align-items: flex-start; gap: 1rem; padding: 1.5rem; background: var(--background-color); border-radius: var(--border-radius); box-shadow: var(--shadow-light); }
.step-number {
    flex-shrink: 0; width: 40px; height: 40px; background: var(--primary-color); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem;
}
.step-content h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.step-content p { color: var(--text-secondary); margin: 0; }
.step-content code, .content-wrapper code { background: rgba(29,111,165,0.1); padding: 2px 6px; border-radius: 4px; font-family: 'SF Mono', Monaco, monospace; font-size: 0.9em; color: var(--primary-color); }

/* Screenshots / media */
.screenshot-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; }
.screenshot-item { text-align: center; }
.screenshot-item img { width: 100%; border-radius: var(--border-radius); box-shadow: var(--shadow-medium); margin-bottom: 1rem; }
.screenshot-item h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.screenshot-item p { color: var(--text-secondary); }
.demo-video-section { margin-top: 3rem; text-align: center; }
.demo-video-container { max-width: 600px; margin: 0 auto; }
.demo-video { width: 100%; height: auto; max-height: 400px; border-radius: var(--border-radius); box-shadow: var(--shadow-medium); margin-bottom: 1rem; background: #000; object-fit: contain; }
.demo-video-container p { color: var(--text-secondary); font-size: 1.05rem; }

/* Before / after */
.comparison-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; margin-bottom: 4rem; }
.comparison-item { text-align: center; }
.comparison-item h3 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.screen-mockup { background: #1a1a1a; color: white; padding: 2rem; border-radius: var(--border-radius); font-size: 1.1rem; line-height: 1.6; margin-bottom: 1rem; min-height: 120px; display: flex; align-items: center; justify-content: center; }
.audience-old { border: 2px solid #ff6b6b; }
.audience-clean { border: 2px solid var(--success-color); }
.comparison-note { font-weight: 600; }

.use-case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.use-case { background: var(--surface-color); padding: 2rem; border-radius: var(--border-radius); box-shadow: var(--shadow-light); text-align: center; }
.use-case-icon { font-size: 3rem; margin-bottom: 1rem; }
.use-case p { color: var(--text-body); }

.final-cta { text-align: center; }
.final-cta h2 { margin-bottom: 1rem; }
.final-cta p { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 2rem; }
.final-cta .cta-subtext { margin-top: 1rem; font-size: 0.9rem; }

/* ---------- Text pages (support / terms / privacy) ---------- */
.page-header { background: var(--surface-color); padding: 50px 0; text-align: center; border-bottom: 1px solid var(--border-color); }
.page-header h1 { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; }
.page-header p { font-size: 1.25rem; color: var(--text-secondary); max-width: 800px; margin: 0 auto; }
.page-content { background: var(--surface-color); padding: 60px 0 80px; }
.content-wrapper { max-width: 800px; margin: 0 auto; }
.content-wrapper h2 { font-size: 2rem; margin-top: 3rem; margin-bottom: 1rem; text-align: left; }
.content-wrapper h2:first-child { margin-top: 0; }
.content-wrapper h3 { font-size: 1.35rem; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--primary-color); }
.content-wrapper p { margin-bottom: 1.25rem; font-size: 1.05rem; line-height: 1.8; color: var(--text-body); }
.content-wrapper ul, .content-wrapper ol { margin-bottom: 1.5rem; padding-left: 2rem; }
.content-wrapper li { margin-bottom: 0.5rem; font-size: 1.05rem; line-height: 1.7; color: var(--text-body); }
.content-wrapper hr { margin: 2.5rem 0; border: none; border-top: 1px solid #e0e0e0; }
.code-example { background: #f8f9fa; padding: 20px; border-radius: var(--border-radius); font-family: 'SF Mono', Monaco, Consolas, monospace; font-size: 0.9rem; margin: 1.5rem 0; border-left: 4px solid var(--primary-color); overflow-x: auto; position: relative; }
.highlight-box { background: rgba(29,111,165,0.1); border: 1px solid var(--primary-color); padding: 20px; border-radius: var(--border-radius); margin: 2rem 0; }
.highlight-box p:last-child, .highlight-box ul:last-child { margin-bottom: 0; }
.eula-box { background: #f8f9fa; border: 2px solid var(--primary-color); border-radius: 8px; padding: 24px; margin: 2rem 0; }
.eula-box h2 { color: var(--primary-color); margin-top: 0; font-size: 1.6rem; }
.doc-toc { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.doc-toc a { text-decoration: none; background: rgba(29,111,165,0.1); color: var(--primary-color); font-weight: 600; padding: 8px 18px; border-radius: 20px; font-size: 0.95rem; }
.doc-toc a:hover { background: var(--primary-color); color: #fff; }
.app-section { scroll-margin-top: 140px; }
.copy-btn { position: absolute; top: 10px; right: 10px; background: var(--primary-color); color: white; border: none; padding: 5px 10px; border-radius: 4px; font-size: 12px; cursor: pointer; opacity: 0; transition: opacity 0.3s ease; font-family: inherit; }
.code-example:hover .copy-btn { opacity: 1; }

/* Contact block */
.contact-box { max-width: 640px; margin: 0 auto; text-align: center; background: var(--surface-color); border-radius: var(--border-radius); box-shadow: var(--shadow-light); padding: 2.5rem 2rem; }
.contact-box p { color: var(--text-body); margin-bottom: 1rem; }
.contact-box a.mail { font-weight: 600; font-size: 1.15rem; }
#contact { scroll-margin-top: 80px; }

/* ---------- Footer ---------- */
footer { background: var(--text-primary); color: white; padding: 3rem 0 2rem; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 80px; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; }
.footer-section p { opacity: 0.8; }
.footer-section h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; color: #7fc0ea; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section a { color: rgba(255,255,255,0.8); text-decoration: none; transition: color 0.3s ease; }
.footer-section a:hover { color: white; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid #333; opacity: 0.6; }
.social-links { display: flex; flex-direction: column; gap: 0.8rem; align-items: flex-start; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; overflow: hidden; }
.social-icon { width: 32px; height: 32px; display: block; flex-shrink: 0; }

/* Scroll animation (added by scripts.js) */
.js .feature-card, .js .use-case, .js .screenshot-item, .js .app-card { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease; }
.js .feature-card.animate-in, .js .use-case.animate-in, .js .screenshot-item.animate-in, .js .app-card.animate-in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0; background: white;
        flex-direction: column; padding: 16px 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links.show { display: flex; }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { padding: 14px 20px; font-size: 1.1rem; }
    .mobile-menu-toggle { display: flex; }
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero-features, .cta-buttons { justify-content: center; }
    .screenshot-gallery { grid-template-columns: 1fr; gap: 2rem; }
    .features-grid, .use-case-grid { grid-template-columns: 1fr; }
    .app-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-logo, .social-links { justify-content: center; align-items: center; }
    .page-header h1 { font-size: 2rem; }
    h2 { font-size: 2rem; }
    .announce-strong, .announce-text { font-size: 1rem; }
}
@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .hero { padding: 60px 0; }
    section { padding: 60px 0; }
    .cta-buttons { flex-direction: column; align-items: stretch; text-align: center; }
    .app-store-btn { align-self: center; }
}
