/* PDHMS — Landing Page Styles */
/* Complete rewrite — clean, clinical, professional */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    color: #111827;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ─── Variables ─── */
:root {
    --navy:   #0f172a;
    --navy-2: #1e293b;
    --blue:   #2563eb;
    --text:   #111827;
    --muted:  #6b7280;
    --border: #e5e7eb;
    --surf:   #f9fafb;
    --white:  #ffffff;
    --r:      6px;
    --maxw:   1152px;
}

/* ─── Layout ─── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ─── Buttons ─── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--r);
    font-weight: 600; font-size: 0.875rem; font-family: inherit;
    border: none; cursor: pointer; transition: opacity 0.15s;
    white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { opacity: 0.82; }
.btn-ghost-l { background: transparent; color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.16); }
.btn-ghost-l:hover { background: rgba(255,255,255,0.07); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--surf); border-color: #9ca3af; }
.btn-lg { padding: 12px 26px; font-size: 0.925rem; }

/* ─── Navbar ─── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; height: 56px;
}
.nav-logo {
    display: flex; align-items: center; gap: 9px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem; font-weight: 700; color: var(--navy); letter-spacing: -0.01em;
}
.nav-mark {
    width: 26px; height: 26px; background: var(--navy); border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.6rem; font-weight: 800; flex-shrink: 0;
    letter-spacing: 0;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 0.85rem; font-weight: 500; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-login { font-size: 0.85rem; font-weight: 500; color: var(--muted); transition: color 0.15s; }
.nav-login:hover { color: var(--text); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 20px; height: 1.5px; background: var(--text); border-radius: 2px; transition: all 0.2s; }

/* ─── Mobile nav ─── */
.nav-mobile {
    display: none; flex-direction: column;
    background: #fff; border-top: 1px solid var(--border); padding: 12px 24px 20px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 0.9rem; font-weight: 500; color: var(--text); padding: 12px 0; border-bottom: 1px solid var(--border); }
.nav-mobile a:last-child { border-bottom: none; }

/* ─── Hero ─── */
.hero {
    background: var(--navy);
    padding: 112px 0 80px;
    min-height: 88vh; display: flex; align-items: center;
}
.hero-inner { max-width: 600px; }
.hero-eyebrow {
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: rgba(255,255,255,0.32); margin-bottom: 20px;
}
.hero-h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800; line-height: 1.08; letter-spacing: -0.025em;
    color: #fff; margin-bottom: 20px;
}
.hero-h1 em { font-style: normal; color: #93c5fd; }
.hero-p { font-size: 1rem; color: rgba(255,255,255,0.48); max-width: 480px; line-height: 1.75; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-rule { border: none; border-top: 1px solid rgba(255,255,255,0.06); margin-bottom: 32px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-n { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; color: #fff; line-height: 1; }
.hero-stat-l { font-size: 0.75rem; color: rgba(255,255,255,0.32); margin-top: 5px; }

/* ─── Hero Slider ─── */
.hero-slider { min-height: 240px; }
.hero-slide { display: none; }
.hero-slide.active { display: block; animation: heroIn 0.45s ease; }
@keyframes heroIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-dots { display: flex; gap: 8px; align-items: center; margin-bottom: 40px; }
.hero-dot {
    height: 3px; width: 20px; border-radius: 2px;
    border: none; cursor: pointer; padding: 0;
    background: rgba(255,255,255,0.2); transition: background 0.2s, width 0.25s ease;
}
.hero-dot.active { background: #fff; width: 34px; }

/* ─── Section commons ─── */
.sec { padding: 88px 0; }
.sec-alt { background: var(--surf); }
.sec-dark { background: var(--navy); }
.sec-hd { margin-bottom: 48px; }
.sec-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.sec-h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; color: var(--navy); line-height: 1.2; margin-bottom: 8px; }
.sec-dark .sec-h2 { color: #fff; }
.sec-p { font-size: 0.925rem; color: var(--muted); max-width: 500px; }
.sec-dark .sec-p { color: rgba(255,255,255,0.4); }

/* ─── Products ─── */
.products-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
    background: var(--border); gap: 1px;
}
.p-card { background: #fff; padding: 32px; transition: background 0.12s; }
.p-card:hover { background: var(--surf); }
.p-num { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.p-name { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.p-desc { font-size: 0.845rem; color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
.p-link { font-size: 0.8rem; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; }

/* ─── How it works ─── */
.steps-wrap {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
    background: var(--border); gap: 1px; margin-top: 48px;
}
.step { background: #fff; padding: 28px 24px; }
.step-n { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 12px; }
.step-title { font-size: 0.875rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.step-p { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

/* ─── Features ─── */
.feats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 20px; }
.feat-ico { width: 30px; height: 30px; background: #eff6ff; border-radius: 5px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.feat-ico svg { width: 15px; height: 15px; stroke: var(--blue); fill: none; }
.feat-title { font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.feat-p { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

/* ─── Stats band ─── */
.stats-band { padding: 60px 0; background: var(--navy-2); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.st-cell { text-align: center; padding: 0 20px; border-right: 1px solid rgba(255,255,255,0.06); }
.st-cell:last-child { border-right: none; }
.st-n { font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; font-weight: 700; color: #fff; display: block; line-height: 1; }
.st-l { font-size: 0.75rem; color: rgba(255,255,255,0.32); margin-top: 6px; display: block; }

/* ─── Testimonials ─── */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testi { border: 1px solid var(--border); border-radius: var(--r); padding: 22px; }
.testi-q { font-size: 0.875rem; color: var(--text); line-height: 1.7; margin-bottom: 18px; }
.testi-who { display: flex; align-items: center; gap: 9px; }
.testi-av { width: 28px; height: 28px; border-radius: 50%; background: var(--surf); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; color: var(--muted); flex-shrink: 0; }
.testi-name { font-size: 0.78rem; font-weight: 600; color: var(--navy); display: block; }
.testi-role { font-size: 0.72rem; color: var(--muted); display: block; }

/* ─── CTA ─── */
.cta-sec { padding: 88px 0; background: var(--surf); border-top: 1px solid var(--border); }
.cta-inner { max-width: 500px; margin: 0 auto; text-align: center; }
.cta-inner h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.85rem; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; margin-bottom: 10px; }
.cta-inner p { font-size: 0.9rem; color: var(--muted); margin-bottom: 26px; }
.cta-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ─── Footer ─── */
.footer { padding: 28px 0; border-top: 1px solid var(--border); }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: 'Space Grotesk', sans-serif; font-size: 0.875rem; font-weight: 700; color: var(--navy); }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 0.78rem; color: var(--muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.75rem; color: var(--muted); }

/* ─── PWA install bar ─── */
#pwa-install-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
    background: var(--navy); color: #fff;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px; transform: translateY(100%);
    transition: transform 0.3s ease; display: none;
}
#pwa-install-bar.show { display: flex; transform: translateY(0); }
#pwa-install-bar p { font-size: 0.85rem; color: rgba(255,255,255,0.65); }
#pwa-install-bar strong { color: #fff; }
.pwa-bar-btns { display: flex; gap: 8px; align-items: center; }
.pwa-bar-btns button { background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.5); font-size: 0.8rem; font-family: inherit; padding: 4px 8px; }

/* ─── Reveal animation ─── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .products-grid { grid-template-columns: 1fr; }
    .steps-wrap { grid-template-columns: 1fr 1fr; }
    .feats-grid { grid-template-columns: 1fr 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; gap: 28px; }
    .st-cell { border-right: none; }
    .testi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
    .hero { padding: 88px 0 60px; }
    .feats-grid { grid-template-columns: 1fr; }
    .steps-wrap { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; }
    .sec { padding: 60px 0; }
    .nav-right .btn { display: none; }
    .cta-btns { flex-direction: column; align-items: center; }
}
