/* klinikflow.in — what this site adds to the AshuLabs stylesheet (style.css,
   copied unchanged from ashulabs.com so KlinikFlow looks the same in both). */

html, body { max-width: 100%; overflow-x: hidden; }
code { word-break: break-word; }

/* The product's name beside its icon, in place of the AshuLabs wordmark. */
.logo-text { letter-spacing: -0.01em; }
.nav-links a.nav-cta {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 14px;
    border-radius: var(--radius-md);
}
.nav-links a[aria-current="page"] { color: #5eead4; }

/* A compact hero for every page but the home page. */
.hms-hero.page-hero { min-height: auto; padding: 120px 0 56px; }
.hms-hero.page-hero .hero-title { font-size: clamp(2rem, 6vw, 3.2rem); }

.section-tight { padding: 64px 0; }
.section-alt { background: var(--gray-100); }
.lead-note {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    color: var(--gray-500);
    font-size: 15px;
    line-height: 1.7;
}
.lead-note + .lead-note { margin-top: 0.75rem; }
.lead-note a:not(.btn), .prose a, .faq-item a, .module-card a:not(.btn) { color: var(--healthcare-dark); text-decoration: underline; }

/* "Coming in 3.0" beside a feature not in the current download. */
.tag-next {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #9a3412;
    background: #ffedd5;
    border-radius: var(--radius-full);
    padding: 1px 8px;
    margin-left: 4px;
    vertical-align: 1px;
    white-space: nowrap;
}
.tag-cloud {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #1e40af;
    background: #dbeafe;
    border-radius: var(--radius-full);
    padding: 1px 8px;
    margin-left: 4px;
    vertical-align: 1px;
    white-space: nowrap;
}

/* Features page: groups of plain lists. */
.feature-groups {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 24px;
}
.feature-group {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 28px;
}
.feature-group h3 { font-size: 18px; color: var(--dark); margin-bottom: 12px; }
.feature-group ul li {
    position: relative;
    padding: 6px 0 6px 18px;
    font-size: 15px;
    line-height: 1.55;
    border-bottom: 1px solid var(--gray-100);
}
.feature-group ul li:last-child { border-bottom: 0; }
.feature-group ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--healthcare);
}

/* Pricing. */
.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 20px;
    align-items: stretch;
}
.plan {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 24px;
    display: flex;
    flex-direction: column;
}
.plan.featured { border: 2px solid var(--healthcare); box-shadow: var(--shadow-lg); }
.plan h3 { font-size: 20px; color: var(--dark); }
.plan .plan-for { color: var(--gray-500); font-size: 14px; min-height: 2.6em; margin: 4px 0 14px; }
.plan .price { font-size: 26px; font-weight: 800; color: var(--dark); line-height: 1.2; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--gray-500); }
.plan .price.pending { font-size: 16px; font-weight: 700; color: var(--healthcare-dark); }
.plan .price-sub { font-size: 13px; color: var(--gray-500); min-height: 1.4em; margin: 4px 0 16px; }
.plan ul { margin-bottom: 20px; flex: 1; }
.plan ul li { position: relative; padding: 5px 0 5px 22px; font-size: 14px; line-height: 1.5; }
.plan ul li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 9px;
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--healthcare);
    border-bottom: 2px solid var(--healthcare);
    transform: rotate(-45deg);
}
.plan .btn { width: 100%; }
.plan-badge {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    color: var(--healthcare-dark);
    background: rgba(13, 148, 136, 0.1);
    border-radius: var(--radius-full);
    padding: 2px 10px;
    margin-bottom: 8px;
}

.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 40px; }
.compare {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--white);
}
.compare th, .compare td { padding: 10px 12px; border-bottom: 1px solid var(--gray-200); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { color: var(--dark); background: var(--gray-100); }
.compare .yes { color: var(--healthcare-dark); font-weight: 700; }
.compare .no { color: var(--gray-400); }

/* Download. */
.dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 440px));
    justify-content: center;
    gap: 24px;
}
.dl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.dl-actions .btn { padding: 12px 18px; }
.kf-terms {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    max-width: 640px;
    margin: 0 auto 1.5rem;
    font-size: 0.95rem;
    cursor: pointer;
}
.kf-terms input { margin-top: 0.25rem; width: 1.1rem; height: 1.1rem; flex: none; }
.kf-terms a { color: var(--healthcare-dark); text-decoration: underline; }
a.is-locked { opacity: 0.45; pointer-events: none; }

.step-num {
    color: #fff;
    font-weight: 700;
    font-size: 20px;
}

/* Two editions side by side on the home page. */
.editions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 24px;
}

/* Long text: licence, privacy, terms. */
.prose {
    max-width: 800px;
    margin: 0 auto;
    padding: 56px 20px 80px;
    line-height: 1.8;
    color: var(--gray-600);
}
.prose h2 { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin: 2.5rem 0 0.75rem; }
.prose h3 { font-size: 1.15rem; font-weight: 600; color: var(--dark); margin: 1.5rem 0 0.5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4rem; }
.prose .highlight-box, .prose blockquote {
    background: rgba(13, 148, 136, 0.07);
    border-left: 4px solid var(--healthcare);
    padding: 1.1rem 1.4rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
    color: var(--dark-light);
}
.prose blockquote p:last-child, .prose .highlight-box p:last-child { margin-bottom: 0; }
.prose .meta { color: var(--gray-500); font-size: 0.95rem; }
.toc {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 1.25rem 1.75rem;
    margin-bottom: 2rem;
}
.toc h2 { margin: 0 0 0.5rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-500); }
.toc ol { margin-bottom: 0; }
.toc a { text-decoration: none; font-weight: 500; }

.contact-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 32px;
    margin-top: 24px;
}
.contact-strip a { color: var(--healthcare-dark); font-weight: 600; }

.footer .footer-brand p a { text-decoration: underline; }

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hms-hero.page-hero { padding: 100px 0 40px; }
    .plan .plan-for { min-height: 0; }
    .prose { padding: 40px 16px 64px; }
    .feature-group, .plan { padding: 20px; }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
