/* ─── CareLogbook Landing Page ─── */
/* Institutional, professional, medical */

:root {
    --primary: #0f766e;
    --primary-light: #14b8a6;
    --primary-lighter: #e6f7f5;
    --primary-bg: #f0fdfa;
    --accent: #1e3a5f;
    --text: #1a1a2e;
    --text-secondary: #4a4a65;
    --text-muted: #7a7a95;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --border: #e5e7eb;
    --border-light: #f0f0f5;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-soft-sm: 0 4px 20px -2px rgba(15,118,110,0.06);
    --shadow-soft-md: 0 10px 40px -10px rgba(15,118,110,0.10);
    --radius: 10px;
    --radius-lg: 16px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
strong { font-weight: 600; }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Nav ─── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
nav.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
}
.nav-brand-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.brand-care { color: var(--text); }
.brand-logbook { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(15,118,110,0.2);
}
.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 4px 16px rgba(15,118,110,0.25);
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ─── Hero ─── */
.hero {
    padding: 130px 24px 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--primary-bg) 0%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(var(--text-muted) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.12;
    pointer-events: none;
}
.hero-content {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-lighter);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.hero h1 {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    color: var(--text);
}
.hero-gradient {
    background: linear-gradient(135deg, var(--primary), #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Pillars ─── */
.hero-pillars {
    max-width: 900px;
    margin: 48px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 24px 32px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft-sm);
    position: relative;
    z-index: 1;
}
.pillar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}
.pillar-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-lighter);
    border-radius: 10px;
    color: var(--primary);
}
.pillar-text strong {
    display: block;
    font-size: 14px;
    font-weight: 650;
    color: var(--text);
}
.pillar-text span {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}
.pillar-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
    flex-shrink: 0;
}

/* ─── Screenshot Mockup ─── */
.section-screenshot {
    padding: 0 24px;
    margin-top: 12px;
    margin-bottom: -40px;
}
.screenshot-wrapper {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}
.mockup-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.mockup-toggle {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--border);
}
.mockup-toggle-btn {
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}
.mockup-toggle-btn.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.screenshot-frame {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px -10px rgba(15,118,110,0.12);
    overflow: hidden;
}
.frame-titlebar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f8f8fa;
    border-bottom: 1px solid var(--border);
}
.frame-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.frame-dot:nth-child(1) { background: #ff5f57; }
.frame-dot:nth-child(2) { background: #ffbd2e; }
.frame-dot:nth-child(3) { background: #28c840; }
.frame-url {
    margin-left: 12px;
    font-size: 12px;
    color: var(--text-muted);
    background: #eeeff2;
    padding: 3px 14px;
    border-radius: 4px;
}
.frame-content {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}
.frame-content img {
    display: block;
    width: 100%;
    height: auto;
}
.mockup-screen {
    display: none;
}
.mockup-screen.active {
    display: block;
}
/* Placeholder for screenshots that haven't been taken yet */
.mockup-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: linear-gradient(135deg, var(--primary-bg), #e0f2fe);
    padding: 48px;
    gap: 16px;
}
.mockup-placeholder-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-lighter);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.mockup-placeholder h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}
.mockup-placeholder p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 400px;
    text-align: center;
}

/* ─── Sections ─── */
.section {
    padding: 80px 0;
}
.section-alt {
    background: var(--bg-alt);
}
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--text);
}
.section-header p {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ─── Features Grid ─── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    padding: 28px 24px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}
.feature-card:hover {
    border-color: var(--primary-lighter);
    box-shadow: var(--shadow-soft-md);
    transform: translateY(-3px);
}
.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-lighter);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
.feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── Audience ─── */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.audience-card {
    padding: 32px 24px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}
.audience-card:hover {
    border-color: var(--primary-lighter);
    box-shadow: var(--shadow-soft-md);
    transform: translateY(-3px);
}
.audience-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin: 0 auto 16px;
}
.audience-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}
.audience-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── Institutions ─── */
.institutions-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 48px;
    align-items: center;
}
.institutions-text h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.institutions-lead {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}
.institutions-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.institutions-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}
.institutions-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
}
.cta-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-soft-sm);
}
.cta-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.cta-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.cta-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
}

/* ─── FAQ ─── */
.faq-grid {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-item {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
}
.faq-item[open] {
    border-color: var(--primary-lighter);
    box-shadow: var(--shadow-soft-sm);
}
.faq-item summary {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 18px;
    color: var(--text-muted);
    transition: transform 0.2s;
}
.faq-item[open] summary::after {
    content: '−';
    color: var(--primary);
}
.faq-item[open] summary { color: var(--primary); }
.faq-item p {
    padding: 0 20px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ─── Footer ─── */
footer {
    background: #111827;
    color: #9ca3af;
    padding: 48px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}
.footer-brand-block .nav-brand {
    margin-bottom: 10px;
}
.footer-brand-block .brand-care { color: #fff; }
.footer-brand-block .brand-logbook { color: var(--primary-light); }
.footer-tagline {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}
.footer-links h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #d1d5db;
    margin-bottom: 14px;
}
.footer-links a {
    display: block;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 8px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
}

/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: #fff;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        gap: 12px;
    }
    .mobile-menu-btn { display: block; }
    .hero { padding: 110px 16px 40px; }
    .hero-pillars {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    .pillar-divider { width: 100%; height: 1px; }
    .features-grid { grid-template-columns: 1fr; }
    .audience-grid { grid-template-columns: 1fr; }
    .institutions-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .mockup-toggle-btn { padding: 6px 14px; font-size: 12px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 28px; }
    .hero-subtitle { font-size: 14px; }
    .hero-actions { flex-direction: column; align-items: center; }
}
