/* Sync, sign-up and account pages. Builds on styles.css (same variables and buttons). */

.page-main {
    position: relative;
    z-index: 1;
    padding: 9rem 0 5rem;
    min-height: 70vh;
}

.page-narrow {
    max-width: 560px;
    margin: 0 auto;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.page-lead {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.panel + .panel { margin-top: 1.5rem; }

.panel h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

/* Forms */
.form-row { margin-bottom: 1.1rem; }

.form-row label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="text"] {
    width: 100%;
    padding: 0.8rem 0.9rem;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
}

.form-row input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.check-row {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin: 1rem 0 1.4rem;
}

.check-row input { margin-top: 0.25rem; }

.form-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
}

.message {
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    margin: 1rem 0;
    font-size: 0.95rem;
    display: none;
}

.message.show { display: block; }
.message.error { background: rgba(229, 115, 115, 0.12); border: 1px solid rgba(229, 115, 115, 0.45); color: #e57373; }
.message.info { background: rgba(var(--accent-rgb), 0.1); border: 1px solid rgba(var(--accent-rgb), 0.35); }
.message.warn { background: rgba(255, 183, 77, 0.12); border: 1px solid rgba(255, 183, 77, 0.45); color: #f0a030; }

.light-theme .message.warn { color: #9a5b00; }
.light-theme .message.error { color: #b3261e; }

.small-links {
    margin-top: 1.5rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* Recovery key */
.recovery-key {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    line-height: 1.7;
    padding: 1.1rem;
    border: 2px dashed var(--accent-primary);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    word-break: break-word;
    text-align: center;
    margin: 1rem 0;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 760px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.price-card.featured { border-color: var(--accent-primary); box-shadow: 0 0 0 1px var(--accent-primary), var(--shadow-md); }

.price-card .badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.price-card h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 0.75rem; }
.price-amount { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 700; }
.price-period { color: var(--text-secondary); font-size: 1rem; }
.price-note { color: var(--text-muted); font-size: 0.9rem; margin: 0.5rem 0 1.5rem; min-height: 1.3em; }

.trial-banner {
    text-align: center;
    margin: 2.5rem auto 0;
    color: var(--text-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
}

.step-card .step-num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--accent-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.step-card h3 { font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: 0.5rem; }
.step-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

.faq-simple details {
    border-bottom: 1px solid var(--border-color);
    padding: 1.1rem 0;
}

.faq-simple summary { cursor: pointer; font-weight: 600; }
.faq-simple details p { color: var(--text-secondary); margin-top: 0.7rem; line-height: 1.65; }

/* Account status */
.plan-line { font-size: 1.15rem; margin-bottom: 0.4rem; }
.plan-meta { color: var(--text-secondary); margin-bottom: 1.25rem; }

.legal h2 { font-family: var(--font-heading); font-size: 1.3rem; margin: 2rem 0 0.75rem; }
.legal p, .legal li { color: var(--text-secondary); line-height: 1.7; margin-bottom: 0.75rem; }
.legal ul { padding-left: 1.4rem; }

.draft-note {
    border: 1px dashed #f0a030;
    color: #f0a030;
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* Simple header for these pages */
.page-header-links { display: flex; gap: 1.5rem; align-items: center; list-style: none; }
.page-header-links a { color: var(--text-secondary); font-weight: 500; }
.page-header-links a:hover, .page-header-links a.active { color: var(--text-primary); }

@media (max-width: 640px) {
    .page-main { padding-top: 7rem; }
    .page-title { font-size: 1.9rem; }
    .panel { padding: 1.4rem; }
    .page-header-links { gap: 0.8rem; font-size: 0.85rem; }
    .page-header-links a { white-space: nowrap; }
    .navbar .nav-brand span { display: none; } /* logo only: room for the menu */
    .navbar .container { gap: 0.6rem; }
}

@media print {
    .navbar, .footer, .no-print, .bg-glow { display: none !important; }
    body { background: #fff; color: #000; }
    .page-main { padding: 0; }
    .recovery-key { border-color: #000; color: #000; background: #fff; }
}

/* Pastor's Sermon Pro Online feature (sync.html) */
.web-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 3rem;
    align-items: center;
}

.check-list { list-style: none; padding: 0; }
.check-list li { color: var(--text-secondary); padding: 0.35rem 0 0.35rem 1.8rem; position: relative; line-height: 1.55; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0.32rem; color: var(--accent-primary); font-weight: 700; }

.web-shots { position: relative; padding-bottom: 3rem; }
.web-shots img { border-radius: 12px; border: 1px solid var(--border-color); box-shadow: var(--shadow-lg); display: block; }
.web-shots .shot-wide { width: 100%; }
.web-shots .shot-phone { position: absolute; right: -0.5rem; bottom: 0; width: 26%; border-radius: 18px; border: 3px solid var(--bg-secondary); }

.plan-includes { list-style: none; padding: 0; margin: 0 0 1.4rem; text-align: left; display: inline-block; }
.plan-includes li { color: var(--text-secondary); font-size: 0.92rem; padding: 0.2rem 0 0.2rem 1.5rem; position: relative; }
.plan-includes li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-primary); font-weight: 700; }

@media (max-width: 900px) {
    .web-feature { grid-template-columns: 1fr; gap: 2rem; }
}

/* The main page adds the header background with a scroll script; these pages keep it on. */
.navbar { background: rgba(var(--bg-secondary-rgb), 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); }
