/* SpeakTheWeb Website Styles - iOS Native Look */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f2f2f7;
    --bg-tertiary: #e5e5ea;
    --text-primary: #000000;
    --text-secondary: #8e8e93;
    --accent: #007aff;
    --accent-hover: #0056b3;
    --border-color: #c6c6c8;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --max-width: 960px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #000000;
        --bg-secondary: #1c1c1e;
        --bg-tertiary: #2c2c2e;
        --text-primary: #ffffff;
        --text-secondary: #8e8e93;
        --accent: #0a84ff;
        --accent-hover: #409cff;
        --border-color: #38383a;
        --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }
}

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

html {
    scroll-behavior: smooth;
}

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

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 17px;
    color: var(--text-primary);
    text-decoration: none;
}

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

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

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

.nav-links a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: var(--bg-secondary);
}

.hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 26px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero h1 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.hero .tagline {
    font-size: 21px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

.app-store-badge:hover {
    transform: scale(1.05);
}

.app-store-badge img {
    height: 54px;
}

/* Hero Screenshot */
.hero-screenshot {
    margin-top: 40px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.hero-screenshot img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features {
    padding: 60px 0;
}

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

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

.feature-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

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

.feature-image {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    display: block;
}

/* CTA Section */
.cta {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-secondary);
}

.cta h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 17px;
}

/* Footer */
footer {
    padding: 40px 20px;
    border-top: 1px solid var(--border-color);
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 15px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Help Page Styles */
.help-content {
    padding: 32px 0;
}

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

.help-content .subtitle {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 32px;
}

.help-section {
    margin-bottom: 40px;
}

.help-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.help-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

.help-section p {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.help-section ul,
.help-section ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.help-section li {
    margin-bottom: 8px;
}

.help-tip {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    padding: 16px;
    border-radius: 0 12px 12px 0;
    margin: 16px 0;
}

.help-tip strong {
    color: var(--accent);
}

.step-list {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}

.step-list li {
    counter-increment: step;
    position: relative;
    padding-left: 48px;
    margin-bottom: 20px;
}

.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
}

/* Privacy Page */
.legal-content {
    padding: 32px 0;
}

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

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

.legal-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
}

.legal-content p {
    margin-bottom: 16px;
}

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

.legal-content li {
    margin-bottom: 8px;
}

/* In-App Help Adjustments */
body.in-app {
    padding-top: 0;
}

body.in-app nav {
    display: none;
}

body.in-app footer {
    display: none;
}

body.in-app .help-content {
    padding-top: 16px;
}

/* Responsive */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero .tagline {
        font-size: 18px;
    }

    .features h2 {
        font-size: 26px;
    }

    nav .container {
        flex-direction: column;
        height: auto;
        padding: 12px 20px;
        gap: 8px;
    }

    .nav-links {
        gap: 16px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 16px;
}

.mb-2 {
    margin-bottom: 16px;
}
