/* =========================================================
   RemindersOS – Marketing website styles
   ========================================================= */

:root {
    --brand-primary: #1e3a5f;
    --brand-accent: #3b82f6;
    --brand-light: #eff6ff;
    --text-primary: #1a202c;
    --text-muted: #64748b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: #ffffff;
}

/* ── Navbar ─────────────────────────────────────────────── */
.site-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #ffffff;
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}

.site-navbar.scrolled {
    border-color: #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.site-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--brand-primary) !important;
    text-decoration: none;
}

.site-navbar .nav-link {
    color: #475569 !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: .5rem .85rem !important;
    border-radius: 6px;
    transition: color .15s, background .15s;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--brand-primary) !important;
    background: var(--brand-light);
}

.site-navbar .btn-login {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    font-weight: 500;
    font-size: .9rem;
}

.site-navbar .btn-login:hover {
    background: var(--brand-primary);
    color: #fff;
}

.site-navbar .btn-cta {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
}

.site-navbar .btn-cta:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* ── Hero ─────────────────────────────────────────────────*/
.hero-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 40%, #f8fafc 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(30,58,95,.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-badge {
    display: inline-block;
    background: var(--brand-light);
    color: var(--brand-accent);
    border: 1px solid #bfdbfe;
    border-radius: 50px;
    padding: .35rem .9rem;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: .02em;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.18;
    margin-bottom: 1.2rem;
}

.hero-section .hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* ── Stats bar ───────────────────────────────────────────*/
.stats-bar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 16px rgba(0,0,0,.04);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-item .stat-icon {
    font-size: 2rem;
    margin-bottom: .5rem;
    display: block;
}

.stat-item .stat-title {
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 1rem;
    margin-bottom: .2rem;
}

.stat-item .stat-sub {
    font-size: .85rem;
    color: var(--text-muted);
}

/* ── Feature cards ───────────────────────────────────────*/
.feature-card {
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 14px;
    padding: 2rem 1.75rem;
    height: 100%;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(30,58,95,.1);
    border-color: #bfdbfe;
}

.feature-card .feature-icon {
    width: 52px;
    height: 52px;
    background: var(--brand-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.feature-card h5 {
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: .5rem;
    font-size: 1.05rem;
}

.feature-card p {
    font-size: .9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.65;
}

/* ── How it works / steps ────────────────────────────────*/
.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--brand-accent);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    box-shadow: 0 4px 16px rgba(59,130,246,.35);
}

.step-card h5 {
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: .45rem;
}

.step-card p {
    font-size: .9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── Pricing section ─────────────────────────────────────*/
.pricing-section {
    background: #f8fafc;
}

.pricing-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.25rem 1.75rem;
    height: 100%;
    position: relative;
    transition: border-color .2s, box-shadow .2s;
}

.pricing-card.featured {
    border-color: var(--brand-accent);
    box-shadow: 0 8px 40px rgba(59,130,246,.15);
}

.popular-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-accent);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .2rem .85rem;
    border-radius: 50px;
    white-space: nowrap;
    letter-spacing: .04em;
}

.pricing-card .price-amount {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1;
}

.pricing-card .price-currency {
    font-size: 1.4rem;
    font-weight: 700;
    vertical-align: top;
    margin-top: .5rem;
    display: inline-block;
    color: var(--brand-primary);
}

.pricing-card .credits-label {
    font-size: .88rem;
    color: var(--text-muted);
    margin-top: .4rem;
}

/* ── CTA section ─────────────────────────────────────────*/
.cta-section {
    background: var(--brand-primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(59,130,246,.15);
    border-radius: 50%;
}

.cta-section h2 {
    color: #fff;
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.cta-section p {
    color: rgba(255,255,255,.75);
    font-size: 1.1rem;
}

.cta-section .btn-white {
    background: #fff;
    color: var(--brand-primary);
    border-color: #fff;
    font-weight: 700;
    padding: .75rem 2rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: transform .2s, box-shadow .2s;
}

.cta-section .btn-white:hover {
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

/* ── FAQ ─────────────────────────────────────────────────*/
.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: .75rem;
    background: #fff;
    transition: border-color .2s;
}

.faq-item:hover {
    border-color: #bfdbfe;
}

.faq-item .faq-q {
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: .5rem;
    font-size: .97rem;
}

.faq-item .faq-a {
    font-size: .9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.65;
}

/* ── Footer ──────────────────────────────────────────────*/
.site-footer {
    background: var(--brand-primary);
    color: rgba(255,255,255,.8);
    padding: 56px 0 24px;
}

.site-footer .footer-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.site-footer .footer-tagline {
    font-size: .88rem;
    color: rgba(255,255,255,.6);
    margin-top: .3rem;
}

.site-footer .footer-link {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: .9rem;
    transition: color .15s;
    display: block;
    margin-bottom: .45rem;
}

.site-footer .footer-link:hover {
    color: #fff;
}

.site-footer .footer-divider {
    border-color: rgba(255,255,255,.12);
    margin: 32px 0 20px;
}

.site-footer .footer-copy {
    font-size: .82rem;
    color: rgba(255,255,255,.45);
}

/* ── Section helpers ─────────────────────────────────────*/
.section-label {
    font-size: .82rem;
    font-weight: 700;
    color: var(--brand-accent);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .6rem;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Utility ─────────────────────────────────────────────*/
.btn-primary-brand {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    padding: .7rem 1.75rem;
    transition: background .2s, transform .2s;
}

.btn-primary-brand:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-brand {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    font-weight: 600;
    border-radius: 8px;
    padding: .7rem 1.75rem;
    transition: background .2s, color .2s;
}

.btn-outline-brand:hover {
    background: var(--brand-primary);
    color: #fff;
}

/* ── Connector line between steps ────────────────────────*/
@media (min-width: 768px) {
    .steps-row {
        position: relative;
    }
    .steps-row::before {
        content: '';
        position: absolute;
        top: 50px;
        left: calc(16.666% + 26px);
        right: calc(16.666% + 26px);
        height: 2px;
        background: linear-gradient(90deg, var(--brand-accent), #93c5fd);
        z-index: 0;
    }
    .step-card {
        position: relative;
        z-index: 1;
    }
}

/* ── Page hero (inner pages) ─────────────────────────────*/
.page-hero {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #2d5282 100%);
    padding: 64px 0 56px;
    color: #fff;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: .7rem;
}

.page-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,.8);
    max-width: 560px;
    margin: 0 auto;
}

/* ── Contact card ────────────────────────────────────────*/
.contact-info-card {
    background: var(--brand-light);
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 2rem;
    height: 100%;
}

.contact-info-card .info-icon {
    width: 44px;
    height: 44px;
    background: var(--brand-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: .75rem;
}

/* ── Form styles ─────────────────────────────────────────*/
.website-form .form-control {
    border-radius: 8px;
    border-color: #cbd5e1;
    padding: .65rem 1rem;
    font-size: .94rem;
    transition: border-color .2s, box-shadow .2s;
}

.website-form .form-control:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.website-form label {
    font-weight: 600;
    font-size: .88rem;
    color: var(--text-primary);
    margin-bottom: .35rem;
}

/* ── Alert flash wrapper ─────────────────────────────────*/
.flash-container {
    position: fixed;
    top: 72px;
    right: 1.5rem;
    z-index: 1050;
    min-width: 300px;
    max-width: 420px;
}
