/* ====================================================================
   Dossier – Website Styles
   Slate gray + warm cream aesthetic — distinct from Curated's green palette
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    --background: #F5F3EF;
    --surface: #FFFFFF;
    --paper: #FAF9F7;
    --stone: #E8E4DC;
    --warm: #D4CFC4;
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #7A7A7A;
    --accent: #4A5568;
    --accent-hover: #2D3748;
    --accent-light: #718096;
    --accent-subtle: rgba(74, 85, 104, 0.08);
    --accent-gold: #C4A962;
    --dossier-green: #2D5A3D;
    --border: #E2DFD8;
    --border-radius: 10px;
    --border-radius-large: 16px;
    --error: #C53030;
    --error-bg: #FFF5F5;
    --success: #2F855A;
    --success-bg: #F0FFF4;
}

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

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

/* Navigation */
.nav { padding: 1.25rem 2rem; background-color: var(--background); position: sticky; top: 0; z-index: 100; }
.nav-content { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }

.brand-switcher { display: flex; align-items: baseline; gap: 0.75rem; }
.brand-link-curated { font-size: 1.25rem; font-weight: 500; color: #B0B0B0; text-decoration: none; transition: color 0.2s; }
.brand-link-curated:hover { color: var(--text-secondary); }
.brand-divider { color: var(--warm); font-size: 1.25rem; font-weight: 300; user-select: none; }

.logo { text-decoration: none; display: flex; align-items: baseline; gap: 0.25rem; }
.logo-text { font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }

/* Green dot logo mark */
.logo-dot-green {
    display: inline-block;
    width: 9px;
    height: 9px;
    background-color: var(--dossier-green);
    border-radius: 50%;
    margin-left: 2px;
    flex-shrink: 0;
    position: relative;
    top: -1px;
}



/* Dossier logo as image (active state — on dossier pages) */
.brand-logo-img {
    height: 24px;
    width: auto;
    display: inline-block;
    vertical-align: baseline;
    position: relative;
    top: 3px;
}

.brand-logo-img.dossier-active {
    height: 26px;
    opacity: 1;
}

/* Footer logo */
.footer-logo-img {
    height: 18px;
    width: auto;
    display: inline-block;
    vertical-align: baseline;
    position: relative;
    top: 2px;
}

/* Keep old gold dot for backward compat */
.logo-dot { color: var(--accent-gold); font-size: 2rem; font-weight: 700; line-height: 1; }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }

/* Hero */
.hero { flex: 1; max-width: 900px; margin: 0 auto; padding: 5rem 2rem 3rem; text-align: center; }
.hero h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 3.25rem; font-weight: 700; line-height: 1.15; margin-bottom: 1.5rem; color: var(--text-primary); letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero .subtitle { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 3rem; max-width: 580px; margin-left: auto; margin-right: auto; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 720px; margin: 0 auto 4rem; }
.feature-card { background: var(--surface); padding: 1.75rem 1.5rem; border-radius: var(--border-radius); border: 1px solid var(--border); text-align: left; transition: transform 0.2s, box-shadow 0.2s; }
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05); }
.feature-card .feature-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.feature-card h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--text-primary); }
.feature-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* =============================================
   Screenshot Gallery
   ============================================= */
.screenshots-section {
    margin: 1rem auto 3rem;
    max-width: 800px;
}

.section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

.screenshot-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.screenshot-row-single {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.screenshot-card {
    text-align: center;
}

.screenshot-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.screenshot-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

.phone-frame {
    background: var(--surface);
    border-radius: 24px;
    padding: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 1rem;
    display: inline-block;
    border: 1px solid var(--border);
}

.phone-frame img {
    display: block;
    width: 260px;
    height: auto;
    border-radius: 18px;
}

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2rem; margin-top: auto; }
.footer-content { max-width: 1100px; margin: 0 auto; text-align: center; }
.footer-brand { display: flex; justify-content: center; align-items: baseline; gap: 0.25rem; margin-bottom: 0.75rem; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.copyright { color: var(--text-muted); font-size: 0.8rem; }
.company-attribution { color: var(--text-muted); font-size: 0.72rem; margin-top: 0.35rem; opacity: 0.6; }

/* Forms */
.form-group { margin-bottom: 1.25rem; text-align: left; }
.form-group label { display: block; font-weight: 500; font-size: 0.875rem; margin-bottom: 0.4rem; color: var(--text-primary); }
.form-group input { width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--border); border-radius: var(--border-radius); font-size: 0.95rem; font-family: inherit; background: var(--paper); color: var(--text-primary); transition: border-color 0.2s, box-shadow 0.2s; }
.form-group input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-subtle); }
.form-group input::placeholder { color: var(--text-muted); opacity: 0.7; }

.submit-btn { width: 100%; padding: 0.8rem; background: var(--accent); color: white; border: none; border-radius: var(--border-radius); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: background-color 0.2s; font-family: inherit; }
.submit-btn:hover { background: var(--accent-hover); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Messages */
.message { padding: 0.75rem 1rem; border-radius: var(--border-radius); font-size: 0.875rem; margin-bottom: 1rem; }
.message.error { background: var(--error-bg); color: var(--error); border: 1px solid rgba(197, 48, 48, 0.15); }
.message.success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(47, 133, 90, 0.15); }

/* Utility */
.back-link { display: inline-block; margin-top: 1.25rem; color: var(--text-muted); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.back-link:hover { color: var(--accent); }
.tagline { font-size: 0.85rem; color: var(--text-muted); margin-top: 1rem; opacity: 0.7; }

/* Auth pages */
.confirmed-container, .reset-container { max-width: 440px; margin: 4rem auto; padding: 2rem; text-align: center; }
.confirmed-card, .reset-card { background: var(--surface); border-radius: var(--border-radius-large); padding: 2.5rem; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); border: 1px solid var(--border); }
.confirmed-card h1, .reset-card h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; margin-bottom: 0.6rem; color: var(--text-primary); }
.confirmed-card .description, .reset-card > p, #form-state > p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 0.95rem; line-height: 1.6; }

.success-icon { width: 72px; height: 72px; background-color: var(--accent-subtle); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.success-icon svg { width: 36px; height: 36px; color: var(--accent); }

.open-app-btn { display: inline-block; padding: 0.8rem 2rem; background-color: var(--accent); color: white; border: none; border-radius: var(--border-radius); font-size: 0.95rem; font-weight: 600; text-decoration: none; transition: background-color 0.2s; }
.open-app-btn:hover { background-color: var(--accent-hover); }

.app-note { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.app-note p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }

.error-state { display: none; }
.error-icon { width: 72px; height: 72px; background-color: var(--error-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.error-icon svg { width: 36px; height: 36px; color: var(--error); }

.password-requirements { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; }
#success-state { text-align: center; }
#success-state h1 { color: var(--accent); }
#success-state p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.6; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.25rem; }
    .hero .subtitle { font-size: 1.05rem; }
    .features { grid-template-columns: 1fr; max-width: 320px; }
    .nav { padding: 1rem; }
    .brand-switcher { gap: 0.5rem; }
    .screenshot-row { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
    .phone-frame img { width: 240px; }
    .section-heading { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .hero { padding: 3rem 1.25rem 2rem; }
    .features { margin-bottom: 2rem; }
    .confirmed-container, .reset-container { padding: 1rem; margin: 2rem auto; }
    .confirmed-card, .reset-card { padding: 1.75rem; }
    .phone-frame img { width: 220px; }
}