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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f7;
    padding: 20px;
    padding-top: 0;
}

/* Navigation */
nav {
    background: white;
    margin: 0 -20px;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    gap: 24px;
}

nav .site-name {
    font-weight: 600;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 1.05em;
}

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

nav .nav-links a {
    color: #007aff;
    text-decoration: none;
    font-size: 0.95em;
}

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

nav .nav-links a.active {
    color: #1d1d1f;
    font-weight: 500;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Typography */
h1 {
    color: #1d1d1f;
    font-size: 2.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

h2 {
    color: #1d1d1f;
    font-size: 1.8em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    padding-top: 0.5em;
    border-top: 1px solid #eee;
    font-weight: 600;
}

h3 {
    color: #333;
    font-size: 1.3em;
    margin-top: 1em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

p {
    margin-bottom: 1em;
}

ul, ol {
    margin-left: 2em;
    margin-bottom: 1em;
}

li {
    margin-bottom: 0.5em;
}

a {
    color: #007aff;
}

/* Utility classes */
.meta {
    color: #86868b;
    font-size: 0.9em;
    margin-bottom: 2em;
}

.highlight {
    background: #f0f8ff;
    padding: 15px;
    border-left: 4px solid #007aff;
    margin: 1em 0;
    border-radius: 0 8px 8px 0;
}

.warning {
    background: #fff8f0;
    padding: 15px;
    border-left: 4px solid #ff9500;
    margin: 1em 0;
    border-radius: 0 8px 8px 0;
}

.lang-toggle {
    text-align: center;
    margin-bottom: 2em;
}

.lang-toggle a {
    color: #007aff;
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid #007aff;
    border-radius: 20px;
    margin: 3px 4px;
    display: inline-block;
    font-size: 0.9em;
    transition: background 0.15s, color 0.15s;
}

.lang-toggle a:hover {
    background: #007aff;
    color: white;
}

.lang-toggle a.active {
    background: #007aff;
    color: white;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background: #f5f5f7;
    font-weight: 600;
}

/* Code blocks */
pre {
    background: #1d1d1f;
    color: #f5f5f7;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
    font-size: 0.9em;
    line-height: 1.5;
}

code {
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
}

p code, li code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Marks */
.check-mark {
    color: #34c759;
    font-weight: bold;
}

.cross-mark {
    color: #ff3b30;
    font-weight: bold;
}

/* Steps */
.step {
    background: #f9f9fb;
    padding: 20px;
    border-radius: 12px;
    margin: 1em 0;
    border: 1px solid #e5e5e7;
}

.step-number {
    display: inline-block;
    background: #007aff;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-weight: 600;
    font-size: 0.9em;
    margin-right: 8px;
}

/* Landing page */
.hero {
    text-align: center;
    padding: 40px 0 20px;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 0.3em;
}

.hero .subtitle {
    color: #86868b;
    font-size: 1.2em;
    margin-bottom: 1.2em;
}

.appstore-btn {
    display: inline-block;
    background: #007aff;
    color: white !important;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: background 0.15s, transform 0.15s;
    margin-bottom: 1em;
}

.appstore-btn:hover {
    background: #0063d1;
    transform: translateY(-1px);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 2em 0;
}

.card {
    background: #f9f9fb;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e5e7;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
    display: block;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card h3 {
    margin-top: 0;
    border: none;
    color: #007aff;
}

.card p {
    color: #86868b;
    font-size: 0.95em;
    margin-bottom: 0;
}

/* Highlight hero */
.highlight-hero {
    text-align: center;
    margin-bottom: 2.5em;
    padding: 32px 24px;
    background: linear-gradient(135deg, #f0f8ff 0%, #f5f0ff 100%);
    border-radius: 16px;
}

.highlight-hero-main {
    font-size: 1.6em;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 0.3em;
}

.highlight-hero-sub {
    font-size: 1.05em;
    color: #86868b;
    margin-bottom: 0;
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 1.5em 0 2em;
}

.feature-card {
    background: #f9f9fb;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e5e7;
}

.feature-card.feature-primary {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f0f8ff 0%, #f5f0ff 100%);
    border-color: #c5d5e8;
}

.feature-icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.feature-card h3 {
    margin-top: 0;
    color: #1d1d1f;
}

.feature-card p {
    color: #555;
    font-size: 0.95em;
}

.feature-comparison {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.feature-comparison p {
    margin-bottom: 0.4em;
    font-size: 0.9em;
}

/* Table wrapper for horizontal scroll on mobile */
.table-wrapper {
    overflow-x: auto;
    margin: 1em 0 2em;
    -webkit-overflow-scrolling: touch;
}

.table-wrapper table {
    min-width: 600px;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    .hero h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.5em;
    }

    nav {
        flex-wrap: wrap;
        gap: 8px;
    }

    .highlight-hero-main {
        font-size: 1.3em;
    }

    .lang-toggle a {
        padding: 5px 10px;
        font-size: 0.82em;
        margin: 2px 2px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}
