/* 4Numbers Website - App-matching styles */

:root {
    /* App colors from AppTheme.swift */
    --berry: #EB8694;
    --aqua: #238EA1;
    --matterhorn: #573944;
    --ice: #E8F4F8;
    --feedback-correct: #4CAF50;
    --feedback-partial: #FF9800;
    --light-blue: #B8D4E3;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--berry) 0%, var(--aqua) 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Rounded', 'SF Pro Text', system-ui, sans-serif;
    color: white;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 16px;
}

.logo-number {
    font-size: 100px;
    font-weight: 800;
    line-height: 1;
    display: block;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logo-text {
    font-size: 32px;
    font-weight: 600;
    opacity: 0.9;
    display: block;
    margin-top: -8px;
}

.logo-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.logo-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.logo-dots .dot.filled {
    background: white;
}

.logo-dots .dot.outline {
    background: transparent;
    border: 2px solid white;
}

/* Tagline */
.tagline {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Features row */
.features {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.85;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

/* Game Center badge */
.gamecenter-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 32px;
}

.gamecenter-badge img {
    width: 40px;
    height: 40px;
}

.gamecenter-badge .gc-icon {
    font-size: 32px;
}

.gamecenter-info {
    text-align: left;
}

.gamecenter-info .gc-title {
    font-weight: 600;
    font-size: 15px;
}

.gamecenter-info .gc-subtitle {
    font-size: 12px;
    opacity: 0.8;
}

/* Section cards (onboarding style) */
.section-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.section-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.25);
    padding: 12px 24px;
    border-radius: 30px;
}

.section-card .title-wrapper {
    text-align: center;
}

.section-card h2 .icon {
    font-size: 22px;
}

.section-card p {
    font-size: 15px;
    opacity: 0.95;
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Code digits display (like onboarding) */
.code-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.digit-box {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--matterhorn);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Highlight pill */
.highlight-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
}

/* Feedback explanation (like onboarding page 3) */
.feedback-explanation {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0;
}

.feedback-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.feedback-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.feedback-dot.correct {
    background: var(--feedback-correct);
}

.feedback-dot.partial {
    background: var(--feedback-partial);
}

.feedback-text {
    font-size: 14px;
    font-weight: 500;
}

/* Feedback examples (like onboarding) */
.feedback-examples {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.example-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.example-row:last-child {
    border-bottom: none;
}

.example-guess {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'SF Mono', monospace;
}

.example-guess .arrow {
    opacity: 0.5;
    font-size: 10px;
}

.example-guess .secret {
    opacity: 0.6;
}

.example-dots {
    display: flex;
    gap: 4px;
}

.example-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.example-dots .dot.correct {
    background: var(--feedback-correct);
}

.example-dots .dot.partial {
    background: var(--feedback-partial);
}

.example-label {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 4px;
}

.example-label.win {
    font-weight: 700;
    opacity: 1;
}

/* Footer buttons */
footer {
    margin-top: auto;
    padding-top: 32px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-btn {
    display: inline-block;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.footer-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
    margin-bottom: 24px;
    transition: opacity 0.2s ease;
}

.back-link:hover {
    opacity: 1;
}

/* Page header */
.page-header {
    text-align: center;
    margin-bottom: 32px;
}

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

.page-header .subtitle {
    font-size: 14px;
    opacity: 0.7;
}

/* Content card (for privacy/support) */
.content-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 32px 24px;
    color: var(--matterhorn);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.content-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--aqua);
}

.content-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--matterhorn);
}

.content-card p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.7;
}

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

.content-card li {
    margin-bottom: 8px;
    font-size: 15px;
}

.content-card a {
    color: var(--aqua);
    text-decoration: none;
    font-weight: 500;
}

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

/* FAQ */
.faq-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(87, 57, 68, 0.1);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    margin-top: 0;
    color: var(--aqua);
}

/* Contact */
.contact-section {
    background: var(--ice);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    text-align: center;
}

.contact-section h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.email-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--aqua);
    color: white !important;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.email-link:hover {
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35, 142, 161, 0.4);
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 24px 16px;
    }

    .logo-number {
        font-size: 80px;
    }

    .logo-text {
        font-size: 26px;
    }

    .features {
        flex-direction: column;
        align-items: center;
    }

    .digit-box {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .content-card {
        padding: 24px 20px;
    }

    footer {
        flex-direction: column;
        align-items: center;
    }

    .footer-btn {
        width: 100%;
        text-align: center;
    }
}
