/* TennisLedger — tennisledger.com
   Color palette drawn from the iOS app:
   - Green gradient  (#34C759 → #30B350)  — brand / LiveBall
   - Orange (#FF9500) — Matches
   - Red    (#FF3B30) — Games
   - Mint   (#00C7BE) — Personal Scoring
   - Purple (#AF52DE) — Sessions
   - Blue   (#007AFF) — Players / links
   - Warm light bg    (#F0F0ED)
   - Tan accent       (#F5EDD9)
*/

:root {
    --green:       #34C759;
    --green-dark:  #2DA44E;
    --orange:      #FF9500;
    --red:         #FF3B30;
    --mint:        #00C7BE;
    --purple:      #AF52DE;
    --blue:        #007AFF;
    --bg:          #F0F0ED;
    --bg-card:     #FFFFFF;
    --tan:         #F5EDD9;
    --text:        #1C1C1E;
    --text-secondary: #6E6E73;
    --radius:      16px;
    --shadow:      0 2px 12px rgba(0,0,0,0.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
                 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---- Layout ---- */

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Navigation ---- */

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

nav .logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    text-decoration: none;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav .nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

nav .nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

nav .nav-links a:hover,
nav .nav-links a.active {
    color: var(--green-dark);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
}

/* ---- Hero ---- */

.hero {
    text-align: center;
    padding: 80px 0 60px;
}

.hero .ball {
    width: 110px;
    height: 110px;
    margin: 0 auto 16px;
    background: radial-gradient(circle at 35% 35%, #D4E157, #C0CA33, #9E9D24);
    border-radius: 50%;
    box-shadow: 0 6px 24px rgba(156,204,40,0.3);
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.hero .tagline {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 32px;
}

.hero .badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow);
}

.badge-icon {
    font-size: 16px;
}

/* App Store button */
.app-store-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 32px;
    background: var(--text);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.app-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* ---- Features Grid ---- */

.features {
    padding: 60px 0;
}

.features h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Feature icon colors */
.icon-green  { background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.icon-orange { background: linear-gradient(135deg, var(--orange), #E88600); }
.icon-red    { background: linear-gradient(135deg, var(--red), #D63028); }
.icon-mint   { background: linear-gradient(135deg, var(--mint), #00A89E); }
.icon-purple { background: linear-gradient(135deg, var(--purple), #9640C1); }
.icon-blue   { background: linear-gradient(135deg, var(--blue), #006ADB); }

/* ---- Highlight Section (Watch / Health) ---- */

.highlight {
    background: var(--tan);
    border-radius: var(--radius);
    padding: 48px 40px;
    margin: 20px 0 60px;
    display: flex;
    gap: 40px;
    align-items: center;
}

.highlight-text {
    flex: 1;
}

.highlight-text h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.highlight-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.highlight-visual {
    flex: 0 0 200px;
    text-align: center;
    font-size: 72px;
}

/* ---- Pro Section ---- */

.pro-section {
    text-align: center;
    padding: 60px 0;
}

.pro-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pro-section .subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
}

.pro-features {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.pro-pill {
    background: var(--bg-card);
    border: 2px solid var(--green);
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--green-dark);
}

/* ---- Footer ---- */

footer {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 32px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

footer .footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 12px;
    list-style: none;
}

footer .footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* ---- Legal / Policy Pages ---- */

.page-content {
    padding: 60px 0;
}

.page-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-content .last-updated {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

.page-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
}

.page-content p,
.page-content li {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.page-content ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.page-content a {
    color: var(--blue);
    text-decoration: none;
}

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

/* ---- Contact Card (Support Page) ---- */

.contact-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    margin: 24px 0;
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-card p {
    margin-bottom: 8px;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.faq-item h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.faq-item p {
    font-size: 15px;
    margin-bottom: 0;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    .hero { padding: 48px 0 40px; }
    .hero h1 { font-size: 36px; }
    .hero .tagline { font-size: 17px; }

    .highlight {
        flex-direction: column;
        padding: 32px 24px;
        text-align: center;
    }

    .highlight-visual {
        order: -1;
        flex: none;
    }

    nav .nav-links { display: none; }
    nav .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(16px);
        padding: 16px 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    .mobile-toggle { display: block; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 28px; }
    .feature-grid { grid-template-columns: 1fr; }
}
