/* Caladrim marketing site — brand palette matches the rest of the
   product (admin portal's #667eea->#764ba2 gradient, the daily-report
   email's #2b1f45 dark purple / #8b6fc7 accent) so caladrim.com,
   the tenant portal, and system emails all read as one product. */

:root {
    --purple-dark: #2b1f45;
    --purple-mid: #4a3470;
    --purple-accent: #8b6fc7;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-body: #4a4460;
    --text-muted: #8a7fa8;
    --bg-soft: #f7f5fb;
    --border-soft: #eae6f2;
}

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

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
section { padding: 5rem 1.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.eyebrow {
    display: inline-block;
    color: var(--purple-accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

h1, h2, h3 { color: var(--purple-dark); }
.section-title { font-size: 2rem; margin-bottom: 0.75rem; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 640px; margin-bottom: 3rem; }
.section-header { text-align: center; }
.section-header .section-subtitle { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
}

.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover { opacity: 0.92; }
.btn-secondary { background: #fff; color: var(--purple-dark); border: 2px solid var(--border-soft); }
.btn-secondary:hover { border-color: var(--purple-accent); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* --- Header --- */

.site-header { position: sticky; top: 0; background: rgba(255,255,255,0.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border-soft); z-index: 10; }
.site-header-inner { max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.back-link { font-weight: 600; font-size: 0.92rem; color: var(--purple-dark); }
.back-link:hover { color: var(--purple-accent); }

/* --- Hero --- */

.hero { background: var(--purple-dark); color: #fff; padding: 6rem 1.5rem 5rem; text-align: center; }
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: 2.75rem; line-height: 1.15; margin-bottom: 1.25rem; }
.hero p { color: #c9bfe0; font-size: 1.15rem; margin-bottom: 2rem; }
.hero .btn-row { justify-content: center; margin-bottom: 3.5rem; }
.hero .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }

.hero-stats { display: flex; justify-content: center; gap: 3.5rem; flex-wrap: wrap; }
.hero-stat-value { font-size: 2rem; font-weight: 700; color: #fff; }
.hero-stat-label { color: #c9bfe0; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* --- Problem cards --- */

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

.problem-card { background: var(--bg-soft); border-radius: 12px; padding: 1.75rem; }
.problem-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.problem-card p { font-size: 0.92rem; color: var(--text-muted); }

/* --- Feature (protection layer) cards --- */

.features-section { background: var(--bg-soft); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

.feature-card { background: #fff; border-radius: 14px; padding: 1.75rem; box-shadow: 0 1px 3px rgba(43,31,69,0.08); position: relative; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.feature-card p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 1rem; }
.feature-card ul { list-style: none; font-size: 0.88rem; }
.feature-card li { padding: 0.3rem 0; padding-left: 1.3rem; position: relative; }
.feature-card li::before { content: "✓"; position: absolute; left: 0; color: var(--purple-accent); font-weight: 700; }

.feature-tag {
    position: absolute; top: 1.5rem; right: 1.5rem;
    background: var(--gradient); color: #fff;
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    padding: 0.2rem 0.6rem; border-radius: 10px;
}

/* --- Screenshots --- */

.screenshot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.screenshot-card { border-radius: 14px; overflow: hidden; border: 1px solid var(--border-soft); }
.screenshot-placeholder {
    aspect-ratio: 16/10; background: var(--gradient);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.85rem; font-weight: 600; text-align: center; padding: 1rem;
}
.screenshot-caption { padding: 1.1rem 1.25rem; }
.screenshot-caption h4 { font-size: 1rem; color: var(--purple-dark); margin-bottom: 0.3rem; }
.screenshot-caption p { font-size: 0.88rem; color: var(--text-muted); }

/* --- How it works --- */

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.step-number {
    width: 44px; height: 44px; border-radius: 50%; background: var(--gradient); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 1rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.92rem; color: var(--text-muted); }

/* --- Pricing --- */

.pricing-section { background: var(--bg-soft); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; align-items: stretch; }
.pricing-card { background: #fff; border-radius: 16px; padding: 2rem; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(43,31,69,0.08); }
.pricing-card.featured { border: 2px solid var(--purple-accent); box-shadow: 0 10px 30px rgba(139,111,199,0.2); }
.pricing-card h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.pricing-card .plan-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.pricing-card ul { list-style: none; margin-bottom: 1.75rem; flex: 1; }
.pricing-card li { padding: 0.4rem 0; padding-left: 1.4rem; position: relative; font-size: 0.92rem; }
.pricing-card li::before { content: "✓"; position: absolute; left: 0; color: var(--purple-accent); font-weight: 700; }
.pricing-card .btn { width: 100%; text-align: center; }

/* --- Final CTA --- */

.cta-section { background: var(--purple-dark); color: #fff; text-align: center; }
.cta-section h2 { color: #fff; }
.cta-section p { color: #c9bfe0; max-width: 560px; margin: 0 auto 2rem; }
.cta-section .btn-row { justify-content: center; }
.cta-section .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }

/* --- Footer --- */

.site-footer { background: var(--purple-dark); color: #c9bfe0; padding: 3rem 1.5rem 1.5rem; text-align: center; }
.site-footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.site-footer-inner a { font-size: 0.9rem; font-weight: 600; color: #c9bfe0; }
.site-footer-inner a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 1.5rem; font-size: 0.8rem; text-align: center; color: #8a7fa8; }

/* --- Blog --- */

.blog-hero { background: var(--purple-dark); color: #fff; padding: 4rem 1.5rem 3rem; text-align: center; }
.blog-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.blog-hero p { color: #c9bfe0; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.blog-card { border: 1px solid var(--border-soft); border-radius: 14px; overflow: hidden; transition: box-shadow 0.15s; }
.blog-card:hover { box-shadow: 0 8px 24px rgba(43,31,69,0.12); }
.blog-card-image { aspect-ratio: 16/9; background: var(--gradient); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.blog-card-date { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.blog-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.blog-card p { font-size: 0.9rem; color: var(--text-muted); }
.blog-card .read-more { display: inline-block; margin-top: 0.9rem; color: var(--purple-accent); font-weight: 600; font-size: 0.88rem; }

.blog-empty { text-align: center; color: var(--text-muted); padding: 4rem 1rem; }

.blog-post { max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.blog-post-image { border-radius: 14px; overflow: hidden; margin-bottom: 2rem; }
.blog-post-image img { width: 100%; }
.blog-post h1 { font-size: 2.1rem; margin-bottom: 0.75rem; }
.blog-post-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.blog-post-body p { margin-bottom: 1.25rem; font-size: 1.02rem; }
.blog-post-back { display: inline-block; margin-top: 2.5rem; color: var(--purple-accent); font-weight: 600; }

/* --- 404 --- */

.error-page { text-align: center; padding: 6rem 1.5rem; }
.error-page h1 { font-size: 3rem; margin-bottom: 1rem; }

@media (max-width: 720px) {
    .site-nav { display: none; }
    .site-footer-inner { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 2.1rem; }
}
