/* Decision Guide Web Styles */

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

:root {
    --bg-primary: #1C1917;
    --bg-secondary: #2A2623;
    --accent: #E8B259;
    --accent-hover: #F2C578;
    --accent-sage: #7FAA8A;
    --accent-copper: #C9732E;
    --text-primary: #F5F1EB;
    --text-secondary: #B8AFA3;
    --text-muted: #7A7166;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.logo-container {
    margin-bottom: 32px;
}

.logo {
    width: 160px;
    height: 160px;
    border-radius: 28px;
    box-shadow: 0 8px 32px rgba(232, 178, 89, 0.25);
}

.app-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 16px;
    background: linear-gradient(135deg, #E8B259, #C9732E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Landing page content */
.landing-content {
    display: none;
}

.landing-content.active {
    display: block;
}

.features {
    margin: 40px 0;
    text-align: left;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(232, 178, 89, 0.12);
}

.feature:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(232, 178, 89, 0.2), rgba(127, 170, 138, 0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Deep link content */
.deeplink-content {
    display: none;
}

.deeplink-content.active {
    display: block;
}

.deeplink-message {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 32px 24px;
    margin: 32px 0;
    border: 1px solid rgba(232, 178, 89, 0.2);
}

.deeplink-message h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.deeplink-message p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.path-display {
    background: rgba(232, 178, 89, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--accent);
    word-break: break-all;
}

.loading-indicator {
    display: none;
    margin: 20px 0;
}

.loading-indicator.active {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(232, 178, 89, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Buttons */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #E8B259, #C9732E);
    color: #1C1917;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #F2C578, #E8B259);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 178, 89, 0.35);
}

.btn-store {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid rgba(245, 241, 235, 0.1);
}

.btn-store:hover {
    background: rgba(245, 241, 235, 0.08);
    border-color: rgba(245, 241, 235, 0.2);
}

/* Footer */
footer {
    padding: 24px;
    text-align: center;
    border-top: 1px solid rgba(232, 178, 89, 0.12);
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.copyright {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Mobile detection message */
.desktop-notice {
    display: none;
    background: rgba(232, 178, 89, 0.1);
    border: 1px solid rgba(232, 178, 89, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .deeplink-content .desktop-notice {
        display: block;
    }
}

/* SVG Icons inline */
.icon-svg {
    width: 24px;
    height: 24px;
}

/* Content Pages (Legal) */
.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
    flex: 1;
}

.content-page .page-header {
    text-align: center;
    margin-bottom: 40px;
}

.content-page .page-header .logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(232, 178, 89, 0.3);
}

.content-page .page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 16px;
    background: linear-gradient(135deg, #E8B259, #C9732E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-page .page-header .last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent-hover);
}

.content-body {
    text-align: left;
    color: var(--text-secondary);
    line-height: 1.7;
}

.content-body h2 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(232, 178, 89, 0.18);
}

.content-body h3 {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

.content-body p {
    margin-bottom: 12px;
}

.content-body ul,
.content-body ol {
    margin-bottom: 12px;
    padding-left: 24px;
}

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

.content-body a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.content-body a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.content-body strong {
    color: var(--text-primary);
}

.content-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 16px;
    margin: 16px 0;
    background: rgba(232, 178, 89, 0.06);
    border-radius: 0 8px 8px 0;
    color: var(--text-primary);
    font-style: italic;
}
