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

:root {
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-tertiary: #6e6e73;
    --bg-primary: #ffffff;
    --bg-secondary: #fcfced;
    --sand: #fcedd0;
    --water: #4a8a90;
    --water-dark: #3a6d72;
    --link-color: #4a8a90;
    --link-hover: #3a6d72;
    --border-color: #e8e0d0;
    --accent-sand: rgba(252, 237, 208, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

.tagline {
    position: fixed;
    top: 20px;
    left: 22px;
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.004em;
    line-height: 1.14286;
    display: inline-block;
    z-index: 10;
    max-width: calc(100vw - 44px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

header {
    text-align: center;
    padding: 80px 0 60px;
    margin-bottom: 60px;
}

.logo {
    font-size: 56px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.005em;
    line-height: 1.07143;
}


#tagline-text {
    position: relative;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.cursor-inline {
    animation: blink 1s infinite;
    color: var(--text-secondary);
    display: inline;
}

main {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

section {
    scroll-margin-top: 2rem;
}

section h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.003em;
    line-height: 1.08349;
}

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

.hero-content h2 {
    font-size: 56px;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.005em;
    line-height: 1.07143;
}

.hero-description {
    font-size: 21px;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: 0.011em;
}

.download {
    text-align: center;
}

.platform-info {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
}

.app-store-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.app-store-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    background: var(--water);
    border-radius: 980px;
    text-decoration: none;
    color: #ffffff;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.022em;
    line-height: 1.17647;
    transition: background-color 0.2s ease, transform 0.1s ease;
    min-width: 200px;
}

.app-store-link:hover {
    background: var(--water-dark);
    transform: scale(1.02);
}

.app-store-link:active {
    transform: scale(0.98);
}

.app-icon-small {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
}

.app-store-link svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.contact {
    text-align: center;
    padding: 40px 0;
}

.contact p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 21px;
    line-height: 1.381;
    letter-spacing: 0.011em;
}

.email-link {
    display: inline-block;
    font-size: 21px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.011em;
    line-height: 1.381;
    transition: opacity 0.2s ease;
}

.email-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.legal {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal-section {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.legal-section summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 28px;
    position: relative;
}

.legal-section summary::-webkit-details-marker {
    display: none;
}

.legal-section summary::after {
    content: '+';
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 300;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.legal-section[open] summary::after {
    content: '−';
    transform: translateY(-50%);
}

.legal-section summary h2 {
    margin: 0;
    padding: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.004em;
    line-height: 1.125;
}

.legal-section summary:hover h2 {
    opacity: 0.7;
}

.privacy-content {
    padding: 0 28px 28px;
    max-width: 680px;
    margin: 0 auto;
}

.privacy-content p {
    margin-bottom: 14px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
}

.privacy-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: 0.004em;
    line-height: 1.125;
}

.privacy-content h3:first-of-type {
    margin-top: 0;
}

.privacy-content ul {
    margin-left: 20px;
    margin-bottom: 14px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
}

.privacy-content li {
    margin-bottom: 6px;
}

.privacy-content a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

.privacy-content a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.privacy-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

footer {
    text-align: center;
    padding: 60px 0 40px;
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.42859;
    letter-spacing: -0.016em;
}

/* Responsive Design */
@media (min-width: 734px) {
    .container {
        padding: 0 44px;
    }

    .tagline {
        top: 40px;
        left: 44px;
        font-size: 28px;
        max-width: none;
    }

    header {
        padding: 120px 0 80px;
    }

    .logo {
        font-size: 80px;
        margin-bottom: 10px;
    }

    .hero-content h2 {
        font-size: 80px;
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 24px;
        max-width: 730px;
    }

    section h2 {
        font-size: 64px;
        margin-bottom: 24px;
    }

    .legal-section summary {
        padding: 20px 40px;
    }

    .legal-section summary::after {
        right: 40px;
    }

    .privacy-content {
        padding: 0 40px 40px;
    }
}

@media (min-width: 1068px) {
    .container {
        max-width: 1020px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.app-store-link:focus {
    outline: 2px solid var(--water);
    outline-offset: 2px;
}

.email-link:focus,
.privacy-content a:focus {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

