/* ==========================================================================
   Tempo - Training That Actually Learns You
   Brand: deep teal, warm off-white, charcoal
   ========================================================================== */

:root {
    --teal: #1A5F5E;
    --teal-soft: #2D8A87;
    --teal-light: #3ba5a2;
    --off-white: #FAF8F5;
    --charcoal: #2C2825;
    --charcoal-muted: #6B635A;
    --white: #ffffff;
    --border: #e5e2dd;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--charcoal);
    background: var(--off-white);
}

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

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    padding: 1.25rem 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--teal);
    border-radius: 8px;
    text-decoration: none;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

/* ==========================================================================
   CTA Button
   ========================================================================== */

.cta-btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background: var(--teal);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    text-align: center;
}

.cta-btn:hover {
    background: var(--teal-soft);
}

.cta-btn:focus {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    padding: 4rem 0 5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-headline {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.hero-subhead {
    font-size: 1.125rem;
    color: var(--charcoal-muted);
    margin-bottom: 1.5rem;
    max-width: 480px;
}

.hero-note {
    font-size: 0.9375rem;
    color: var(--charcoal-muted);
    margin-top: 1rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    max-width: 100%;
    height: auto;
    max-height: 360px;
}

.hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    width: 100%;
    max-width: 400px;
    background: rgba(26, 95, 94, 0.08);
    border-radius: 12px;
    color: var(--charcoal-muted);
    font-size: 0.9375rem;
}

/* App Store badge CTAs */
.app-store-cta {
    margin-top: 1.25rem;
}

.app-store-cta--hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.app-store-label {
    font-size: 12px;
    line-height: 1;
    color: var(--charcoal-muted);
    letter-spacing: 0.02em;
}

.app-store-badge--hero {
    width: 120px;
    height: 40px;
}

.app-store-cta--footer {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.app-store-badge {
    display: block;
    height: auto;
    object-fit: contain;
}

.app-store-badge--footer {
    width: 104px;
    height: 35px;
}

.app-store-cta a {
    display: inline-block;
    line-height: 0;
}

.app-store-cta a:hover {
    opacity: 0.85;
}

.app-store-cta a:focus {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .app-store-cta--hero {
        align-items: flex-start;
    }
}

/* ==========================================================================
   How It Works
   ========================================================================== */

.how-it-works {
    padding: 5rem 0;
    background: var(--white);
}

.how-it-works h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--charcoal);
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.step-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--teal);
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.step-block h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

.step-block p {
    font-size: 0.9375rem;
    color: var(--charcoal-muted);
}

/* ==========================================================================
   See It In Action
   ========================================================================== */

.see-it {
    padding: 5rem 0;
}

.see-it h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--charcoal);
    text-align: center;
}

.phones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: end;
}

.phone-frame {
    background: #1a1a1a;
    border-radius: 28px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.phone-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
    background: var(--white);
}

.phone-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: var(--off-white);
    border-radius: 22px;
    color: var(--charcoal-muted);
    font-size: 0.875rem;
}

/* ==========================================================================
   No Matter Where You're Starting
   ========================================================================== */

.starting {
    padding: 5rem 0;
    background: var(--white);
}

.starting h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--charcoal);
    text-align: center;
}

.starting-text {
    font-size: 1.0625rem;
    color: var(--charcoal-muted);
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.7;
}

/* ==========================================================================
   What Makes Tempo Different
   ========================================================================== */

.different {
    padding: 5rem 0;
}

.different h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--charcoal);
    text-align: center;
}

.diff-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.diff-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.diff-block .step-num {
    margin-bottom: 1rem;
}

.diff-block h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

.diff-block p {
    font-size: 0.9375rem;
    color: var(--charcoal-muted);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
    padding: 5rem 0;
    background: var(--white);
}

.faq h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--charcoal);
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 640px;
    margin: 0 auto;
}

.faq-item dt {
    font-size: 1rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.375rem;
}

.faq-item dd {
    font-size: 0.9375rem;
    color: var(--charcoal-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    padding: 4rem 0 3rem;
    background: var(--teal);
    color: var(--white);
}

.footer-headline {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-block h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-block p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    text-decoration: none;
}

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

/* ==========================================================================
   Desktop
   ========================================================================== */

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .hero-headline {
        font-size: 2.75rem;
    }

    .steps-grid,
    .diff-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .phones-grid {
        gap: 2.5rem;
    }

    .phone-frame {
        max-width: 220px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .phones-grid {
        grid-template-columns: 1fr;
    }

    .phone-frame {
        max-width: 200px;
        margin: 0 auto;
    }
}
