/* ============================================
   Stifle Web - Styles
   Dark, elegant theme matching the Android app
   ============================================ */

:root {
    --bg-primary: #1a1614;
    --bg-secondary: #252220;
    --text-primary: #f5f0eb;
    --text-secondary: #a39e99;
    --text-muted: #6b6662;
    --accent: #c9a89a;
    --accent-hover: #d4b8ac;
    --border: #3a3633;
    --success: #7ab38a;
    --error: #c97a7a;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: #f5f0eb;
        --bg-secondary: #ffffff;
        --text-primary: #1a1614;
        --text-secondary: #3a3633;
        --text-muted: #a39e99;
        --accent: #8b6b5d;
        --accent-hover: #72584c;
        --border: #d4cdc7;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
}

body {
    font-family: var(--font-sans);
    background-color: transparent;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Background canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.container {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ============================================
   Typography
   ============================================ */

h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 400;
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ============================================
   Landing Page - Hero
   ============================================ */

.hero {
    text-align: center;
    padding: 4rem 0 3rem;
}

.logo {
    font-size: 4rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ============================================
   Pitch Section
   ============================================ */

.pitch {
    text-align: center;
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--border);
}

.pitch h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pitch p {
    max-width: 420px;
    margin: 0 auto;
}

/* ============================================
   Features
   ============================================ */

.features {
    display: grid;
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.feature {
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.feature h3 {
    font-family: var(--font-serif);
    color: var(--text-primary);
}

.feature p {
    font-size: 0.9rem;
    max-width: 280px;
    margin: 0 auto;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ============================================
   Waitlist Section
   ============================================ */

.waitlist {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 360px;
    margin: 1.5rem auto 0;
}

.waitlist-form input[type="email"] {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: border-color 0.2s;
}

.waitlist-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

.waitlist-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
}

.form-message {
    font-size: 0.9rem;
    min-height: 1.5rem;
    margin-top: 0.5rem;
}

.form-message.success {
    color: var(--success);
}

.form-message.error {
    color: var(--error);
}

/* ============================================
   Beta Link Section
   ============================================ */

.beta-link {
    text-align: center;
    padding: 2rem 0;
}

.beta-link p {
    font-size: 0.9rem;
}

.beta-link a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.beta-link a:hover {
    color: var(--accent-hover);
}

.note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* ============================================
   Beta Page - Header
   ============================================ */

.page-header {
    padding: 1rem 0 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text-primary);
}

.page-title {
    font-size: 1.5rem;
}

/* ============================================
   Download Section
   ============================================ */

.download-section {
    text-align: center;
    padding: 2rem 0 3rem;
    border-bottom: 1px solid var(--border);
}

.version-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ============================================
   Installation Guide
   ============================================ */

.install-guide,
.accessibility-section,
.troubleshooting {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
}

.intro {
    margin-bottom: 2rem;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--accent);
}

.step-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.step-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.step-content strong {
    color: var(--text-primary);
}

/* ============================================
   Info Box
   ============================================ */

.info-box {
    background-color: var(--bg-secondary);
    border-left: 3px solid var(--accent);
    padding: 1.25rem 1.5rem;
    margin-top: 2rem;
}

.info-box p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box strong {
    color: var(--text-primary);
}

/* ============================================
   Troubleshooting
   ============================================ */

.troubleshooting ul {
    list-style: none;
    padding-left: 0;
}

.troubleshooting li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.troubleshooting li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ============================================
   Footer
   ============================================ */

footer {
    padding: 3rem 0 1rem;
    text-align: center;
}

footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent);
}

/* ============================================
   Responsive
   ============================================ */

@media (min-width: 640px) {
    .container {
        padding: 3rem 2rem;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .logo {
        font-size: 5rem;
    }

    .tagline {
        font-size: 1.75rem;
    }

    .features {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .feature p {
        max-width: none;
    }
}