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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #2d2d2d;
    background: #fffaf5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Apple icon in buttons */
.apple-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Nav - liquid glass, fully rounded pill */
body > nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 32px);
    max-width: 760px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.nav-inner {
    padding: 10px 10px 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2d2d2d;
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: #e8622c;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 999px;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.nav-cta:hover {
    background: #d4551f;
    transform: scale(1.03);
}

.nav-cta .apple-icon {
    width: 14px;
    height: 14px;
}

/* Page wrap - locks everything to viewport */
.page-wrap {
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Hero */
.hero {
    flex: 1;
    width: 100%;
    margin: 0 auto;
    padding: 52px 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 0;
    text-align: center;
}

.hero-text {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.tagline {
    font-size: 1rem;
    color: #e8622c;
    font-weight: 600;
    margin-bottom: 8px;
}

.description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 400px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    transition: background 0.2s, transform 0.15s;
}

.hero-cta:hover {
    background: #333;
    transform: scale(1.03);
}

.hero-cta .apple-icon {
    width: 18px;
    height: 18px;
}

/* iPhone device frames */
.hero-screenshots {
    flex: 1;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    min-height: 0;
    max-height: 60vh;
}

.iphone {
    width: 170px;
    flex-shrink: 1;
    min-width: 0;
}

.iphone-center {
    width: 185px;
    z-index: 1;
}

.iphone-bezel {
    position: relative;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 5px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.1);
}

.iphone-notch {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 18px;
    background: #1a1a1a;
    border-radius: 0 0 14px 14px;
    z-index: 2;
}

.iphone-screen {
    border-radius: 35px;
    overflow: hidden;
    background: #fff;
}

.iphone-screen img {
    width: 100%;
    display: block;
}

/* Legal pages */
.legal {
    flex: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 100px 24px 60px;
}

.legal h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.updated {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.legal h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.legal p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal ul {
    color: #555;
    line-height: 1.7;
    padding-left: 24px;
    margin-bottom: 12px;
}

.legal a {
    color: #e8622c;
    text-decoration: none;
}

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

/* Contact page */
.contact {
    flex: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 100px 24px 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.contact > p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #f0e8df;
    border-radius: 999px;
    padding: 20px 36px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.contact-card svg {
    color: #e8622c;
}

.contact-card a {
    font-size: 1.1rem;
    color: #e8622c;
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-note {
    margin-top: 20px;
    color: #999;
    font-size: 0.9rem;
}

/* Footer */
.page-wrap footer {
    flex-shrink: 0;
}

footer {
    margin-top: auto;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #bbb;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #e8622c;
}

/* Responsive */
@media (max-width: 768px) {
    body > nav {
        top: 12px;
        width: calc(100% - 24px);
    }

    .nav-inner {
        padding: 8px 8px 8px 16px;
    }

    .nav-cta {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .hero {
        padding: 56px 16px 0;
        gap: 6px;
    }

    .hero-screenshots {
        max-height: 55vh;
    }

    .tagline {
        font-size: 1.05rem;
    }

    .description {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }

    .hero-cta {
        padding: 13px 26px;
        font-size: 0.95rem;
    }

    .hero-screenshots {
        max-height: 48vh;
    }

    .iphone {
        width: 120px;
    }

    .iphone-center {
        width: 130px;
    }

    .iphone-bezel {
        border-radius: 26px;
        padding: 4px;
    }

    .iphone-notch {
        top: 4px;
        width: 48px;
        height: 14px;
        border-radius: 0 0 10px 10px;
    }

    .iphone-screen {
        border-radius: 22px;
    }

    .hero-screenshots {
        gap: 8px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 52px 12px 0;
        gap: 4px;
    }

    .hero-screenshots {
        max-height: 42vh;
    }

    .description {
        font-size: 0.9rem;
    }

    .hero-cta {
        padding: 12px 22px;
        font-size: 0.9rem;
    }

    .iphone {
        width: 100px;
    }

    .iphone-center {
        width: 110px;
    }

    .iphone-bezel {
        border-radius: 22px;
        padding: 3px;
    }

    .iphone-notch {
        top: 3px;
        width: 40px;
        height: 11px;
        border-radius: 0 0 8px 8px;
    }

    .iphone-screen {
        border-radius: 19px;
    }

    .nav-brand span {
        font-size: 1rem;
    }

    .nav-icon {
        width: 28px;
        height: 28px;
    }

    .contact-card {
        padding: 16px 24px;
    }
}
