/* Road to Emmaus: Micro-habits Website Styles */
/* Glassmorphic dark theme matching the iOS app */

:root {
    /* Colors from the app */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a2236;
    --warm-glow: #d4a056;
    --accent-green: #22c55e;
    --accent-orange: #f97316;
    --accent-gold: #eab308;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.45);
    --text-verse: #d4a574;
    --card-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(30, 41, 59, 0.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-card) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    text-decoration: none;
    transform: translateY(-140%);
    transition: transform 0.2s ease;
    z-index: 5;
}

.skip-link:focus {
    transform: translateY(0);
    outline: 2px solid rgba(212, 160, 86, 0.6);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(212, 160, 86, 0.6);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* Home page */
.home-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.home-main {
    flex: 1;
}

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section-subtitle {
    margin-top: 0.75rem;
    color: var(--text-secondary);
    max-width: 60ch;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(22px);
    border: 1px solid var(--card-border);
    border-radius: 18px;
}

.card-pad {
    padding: 1.25rem;
}

.muted {
    color: var(--text-secondary);
}

/* Ambient glow effects */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.ambient-glow-1 {
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    max-width: 500px;
    max-height: 500px;
    background: radial-gradient(circle, rgba(212, 160, 86, 0.3) 0%, transparent 70%);
}

.ambient-glow-2 {
    bottom: 10%;
    left: -15%;
    width: 40vw;
    height: 40vw;
    max-width: 400px;
    max-height: 400px;
    background: radial-gradient(circle, rgba(212, 160, 86, 0.15) 0%, transparent 70%);
}

main {
    position: relative;
    z-index: 1;
}

/* Top Nav (Cal AI-like) */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 1rem 0;
    background: rgba(10, 14, 26, 0.65);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: radial-gradient(circle at 40% 30%, rgba(212, 160, 86, 0.35), transparent 60%),
                linear-gradient(135deg, rgba(17, 24, 39, 1), rgba(26, 34, 54, 1));
    display: grid;
    place-items: center;
    font-size: 16px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    text-decoration: none;
    color: #0a0e1a;
    background: linear-gradient(135deg, rgba(34, 197, 94, 1), rgba(212, 160, 86, 0.9));
    font-weight: 700;
    box-shadow: 0 12px 30px -18px rgba(34, 197, 94, 0.8);
}

.nav-cta:hover {
    filter: brightness(1.03);
}

/* Hero Section */
.hero {
    padding: 4.5rem 0 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.25rem;
    align-items: center;
}

.hero-tagline {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero-tagline span {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(212, 160, 86, 0.85) 70%, rgba(34, 197, 94, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    margin-top: 1rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 55ch;
}

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    align-items: center;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.05rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    color: #0a0e1a;
    background: linear-gradient(135deg, rgba(34, 197, 94, 1), rgba(212, 160, 86, 0.9));
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.05rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
}

.badge-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Screenshot column */
.hero-visual {
    padding: 1rem;
}

.screenshots-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    justify-items: center;
}

.app-store-badge {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.app-store-badge:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

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

/* Real screenshots */
.screenshot {
    margin: 0;
    width: 100%;
    max-width: 240px;
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 18px 40px -24px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

@media (min-width: 768px) {
    .screenshot {
        max-width: 260px;
    }
}

@media (min-width: 1100px) {
    .screenshot {
        max-width: 290px;
    }
}

/* Sections */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.75rem;
}

.feature-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.feature-desc {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.how-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.75rem;
}

.testimonials {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.quote {
    padding: 1.25rem;
}

.quote p {
    color: var(--text-primary);
    opacity: 0.95;
}

.quote .who {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cta {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
}

.cta h3 {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

/* Home Footer */
.home-footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Regular Footer for legal pages */
footer:not(.home-footer) {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--card-border);
    margin-top: 3rem;
}

footer:not(.home-footer) .footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

footer:not(.home-footer) .footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

footer:not(.home-footer) .footer-links a:hover {
    color: var(--text-primary);
}

footer:not(.home-footer) .copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .hero-visual {
        order: 2;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 3rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .how-grid {
        grid-template-columns: 1fr;
    }

    .testimonials {
        grid-template-columns: 1fr;
    }

    .cta {
        flex-direction: column;
        text-align: left;
        align-items: stretch;
    }

    .screenshots-inline {
        grid-template-columns: 1fr 1fr;
    }
/* (phone-frame-small removed; using real screenshot images instead) */

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}

/* Tablet and larger: screenshot sizes handled by .screenshot rules */

/* Legal Pages */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.legal-page h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.legal-page .last-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.legal-page h3 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.legal-page p, .legal-page li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.legal-page ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-page a {
    color: var(--warm-glow);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
}

.back-link:hover {
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .legal-page {
        padding: 2rem 1rem;
    }

    .legal-page h1 {
        font-size: 1.5rem;
    }

    .legal-page h2 {
        font-size: 1rem;
    }

    .legal-page p, .legal-page li {
        font-size: 0.9rem;
    }
}
