/* Landing page: calm, editorial health-tech look (deep teal ink on warm paper) */
body:not([class*="role-patient"]):not([class*="role-doctor"]):not([class*="role-admin"]):not([class*="role-secretary"]) { background: #f7f5f0; }
.hm-bar { background: #0d3b48; color: #e7f3f6; font-size: .88rem; }
.hm-bar .wrap { display: flex; align-items: center; justify-content: center; gap: 8px; padding-block: 8px; }
.hm-bar .ico { width: 16px; height: 16px; }
.hm-hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 20px; overflow: clip; }
.hm-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
    none; }
.hm-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hm-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 14px 6px 12px; border-radius: 12px; background: #e3f1ee; color: #0b5d52; font-size: .82rem; font-weight: 700; }
.hm-eyebrow .ico { width: 15px; height: 15px; }
.hm-eyebrow--plain { background: none; padding: 0; color: #0f7a6c; letter-spacing: .02em; }
.hm-hero h1 { margin: 0 0 16px; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.25; letter-spacing: -.02em; color: #0c2f3a; text-wrap: balance; }
.hm-hero h1 em { font-style: normal; color: #0f8a7a; background: none; }
.hm-lead { margin: 0 0 24px; max-width: 58ch; color: #46606a; font-size: 1.05rem; line-height: 2; }
.hm-ask__box { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1.5px #d9e3e2, 0 24px 44px -26px rgba(12, 47, 58, .45); transition: box-shadow .2s; }
.hm-ask__box:focus-within { box-shadow: 0 0 0 2px #0f8a7a, 0 24px 44px -24px rgba(15, 138, 122, .55); }
.hm-ask__ai { display: grid; place-items: center; gap: 1px; width: 46px; height: 46px; border-radius: 12px; background: #0d3b48; color: #bff0e6; }
.hm-ask__ai .ico { width: 17px; height: 17px; } .hm-ask__ai b { font-size: .62rem; letter-spacing: .08em; line-height: 1; }
.hm-ask textarea { width: 100%; min-height: 48px; border: 0; outline: 0; resize: none; background: transparent; font: inherit; font-size: 1.02rem; color: #0c2f3a; line-height: 1.7; padding: 6px 4px; }
.hm-ask__go { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 14px 22px; border-radius: 12px; background: #0f8a7a; color: #fff; font: inherit; font-weight: 700; transition: background .2s, transform .15s; white-space: nowrap; }
.hm-ask__go:hover { background: #0b6f63; } .hm-ask__go:active { transform: scale(.97); }
.hm-ask__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hm-ask__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 4px 0; font-size: .84rem; color: #6b7f86; }
.hm-ask__chips button { border: 1px solid #d5dfdf; background: #fff; border-radius: 12px; padding: 5px 13px; font: inherit; font-size: .84rem; color: #35545d; cursor: pointer; transition: border-color .2s, background .2s; }
.hm-ask__chips button:hover { border-color: #0f8a7a; background: #eef8f6; }
.hm-quick { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 20px; }
.hm-quick a { display: inline-flex; align-items: center; gap: 8px; color: #0c2f3a; font-weight: 600; font-size: .92rem; text-decoration: none; border-bottom: 1.5px solid transparent; padding-bottom: 2px; transition: border-color .2s, color .2s; }
.hm-quick a:hover { color: #0f8a7a; border-bottom-color: currentColor; } .hm-quick .ico { width: 18px; height: 18px; color: #0f8a7a; }
.hm-note { margin: 18px 0 0; font-size: .8rem; color: #7a8d93; max-width: 60ch; }

.hm-hero__art { position: relative; min-height: 460px; }
.hm-photo { position: absolute; overflow: hidden; background: #dfeae8; box-shadow: 0 30px 50px -30px rgba(12, 47, 58, .55); }
.hm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-photo--a { inset-block-start: 0; inset-inline-start: 4%; width: 58%; aspect-ratio: 4 / 5; border-radius: 12px; }
.hm-photo--b { inset-block-end: 0; inset-inline-end: 0; width: 46%; aspect-ratio: 1; border-radius: 12px; }
.hm-float { position: absolute; z-index: 2; padding: 12px 14px; background: rgba(255, 255, 255, .96); border-radius: 12px; box-shadow: 0 18px 36px -18px rgba(12, 47, 58, .5), 0 0 0 1px rgba(12, 47, 58, .06); animation: hm-bob 7s ease-in-out infinite; }
.hm-float--ai { inset-block-end: 14%; inset-inline-start: -4%; width: min(250px, 62%); }
.hm-float--ok { inset-block-start: 46%; inset-inline-end: -2%; display: flex; gap: 10px; align-items: center; animation-delay: -3s; }
.hm-float__h { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: #0b5d52; font-size: .85rem; } .hm-float__h .ico { width: 15px; height: 15px; }
.hm-float p { margin: 0 0 8px; font-size: .8rem; line-height: 1.8; color: #46606a; }
.hm-float small { display: block; color: #7a8d93; font-size: .75rem; }
.hm-float__tick { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #0f8a7a; color: #fff; } .hm-float__tick .ico { width: 18px; height: 18px; }
.hm-tags { display: flex; gap: 6px; flex-wrap: wrap; } .hm-tags span { padding: 2px 9px; border-radius: 12px; background: #eef2f4; color: #46606a; font-size: .72rem; } .hm-tags .ok { background: #e3f4ee; color: #0b6f52; }
@keyframes hm-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.hm-trust { border-block: 1px solid #e5e2d9; background: #fbfaf6; }
.hm-trust__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding-block: 20px; }
.hm-trust dl { display: flex; gap: clamp(18px, 4vw, 48px); margin: 0; }
.hm-trust dl div { display: grid; gap: 2px; }
.hm-trust dt { order: 2; font-size: .8rem; color: #6b7f86; } .hm-trust dd { margin: 0; font-size: 1.6rem; font-weight: 800; color: #0c2f3a; letter-spacing: -.02em; }
.hm-ins { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hm-ins li { padding: 5px 12px; border-radius: 12px; border: 1px solid #e0ddd2; background: #fff; color: #5b7077; font-size: .8rem; }

.hm-sec { padding-block: clamp(36px, 6vw, 72px) 0; }
.hm-sec__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.hm-sec__head h2, .hm-ai h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.015em; color: #0c2f3a; text-wrap: balance; }
.hm-link { color: #0f7a6c; font-weight: 700; text-decoration: none; white-space: nowrap; } .hm-link:hover { text-decoration: underline; }
.hm-spec { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.hm-spec__a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #e8e5db; text-decoration: none; color: #0c2f3a; transition: transform .2s, box-shadow .2s; }
.hm-spec__a:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px #0f8a7a, 0 14px 24px -18px rgba(15, 138, 122, .6); }
.hm-spec__a b { font-size: .95rem; }

.hm-ai { margin-top: clamp(36px, 6vw, 72px); padding-block: clamp(36px, 6vw, 72px); background: #eef4f1; }
.hm-ai__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hm-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; }
.hm-steps li { display: flex; gap: 14px; }
.hm-steps li > span { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #0d3b48; color: #bff0e6; font-weight: 800; }
.hm-steps h3 { margin: 0 0 4px; font-size: 1.05rem; color: #0c2f3a; } .hm-steps p { margin: 0; color: #5b7077; line-height: 1.9; max-width: 52ch; }
.hm-demo { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 56px -34px rgba(12, 47, 58, .55), 0 0 0 1px rgba(12, 47, 58, .06); }
.hm-demo__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #f3f1ea; font-size: .8rem; color: #6b7f86; }
.hm-demo__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d7d3c6; } .hm-demo__bar span { margin-inline-start: 10px; }
.hm-demo__body { display: grid; gap: 12px; padding: 18px; }
.hm-msg { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: .9rem; line-height: 1.9; max-width: 88%; }
.hm-msg--me { justify-self: start; background: #0f8a7a; color: #fff; border-end-start-radius: 12px; }
.hm-msg--ai { justify-self: end; display: flex; gap: 8px; background: #f1f5f4; color: #34505a; border-end-end-radius: 12px; } .hm-msg--ai .ico { flex: none; width: 17px; height: 17px; margin-top: 5px; color: #0f8a7a; }
.hm-demo__doc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px #e6e9e8; }
.hm-demo__doc img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; } .hm-demo__doc div { flex: 1; display: grid; } .hm-demo__doc small { color: #7a8d93; } .hm-demo__doc em { font-style: normal; font-size: .82rem; color: #b86e00; font-weight: 700; }

.hm-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hm-panel { display: grid; gap: 12px; align-content: start; padding: 26px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #e8e5db; }
.hm-panel--dr { background: #0d3b48; color: #dcebee; box-shadow: none; } .hm-panel--dr h3 { color: #fff; } .hm-panel--dr li::marker { color: #6fd0bf; }
.hm-panel h3 { margin: 4px 0 0; font-size: 1.3rem; color: #0c2f3a; }
.hm-panel ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 8px; line-height: 1.9; color: inherit; }
.hm-btn { justify-self: start; display: inline-flex; padding: 12px 22px; border-radius: 12px; background: #0f8a7a; color: #fff; font-weight: 700; text-decoration: none; transition: background .2s, transform .15s; }
.hm-btn:hover { background: #0b6f63; } .hm-btn:active { transform: scale(.97); }
.hm-btn--line { background: transparent; box-shadow: inset 0 0 0 1.5px #6fd0bf; color: #bff0e6; } .hm-btn--line:hover { background: rgba(111, 208, 191, .14); }
.hm-sec:last-of-type { padding-bottom: clamp(40px, 6vw, 80px); }

@media (max-width: 900px) {
    .hm-hero__grid, .hm-ai__grid { grid-template-columns: 1fr; }
    .hm-hero__art { min-height: 340px; max-width: 460px; width: 100%; margin-inline: auto; }
    .hm-ask__box { grid-template-columns: 1fr auto; } .hm-ask__ai { display: none; }
    .hm-two { grid-template-columns: 1fr; }
    .hm-sec__head { flex-direction: column; align-items: start; }
}
@media (max-width: 560px) { .hm-ask__go span, .hm-ask__go { padding-inline: 16px; } .hm-ask__go svg { display: none; } .hm-float--ai { inset-inline-start: 0; } }
@media (prefers-reduced-motion: reduce) { .hm-float { animation: none; } }

/* home: slogan banner + sign-in card */
.hm2 { min-height: calc(100dvh - 70px); display: grid; align-content: center; justify-items: center; gap: 16px; padding: 24px 12px; }
.hm2__banner { width: min(100%, 560px); display: grid; justify-items: center; gap: 12px; padding: 28px 16px; border-radius: 12px; background: #0e9f93; color: #fff; text-align: center; }
.hm2__mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: #0e9f93; } .hm2__mark .ico { width: 28px; height: 28px; }
.hm2__banner h1 { margin: 0; font-size: clamp(1.4rem, 4.5vw, 2.1rem); line-height: 1.5; color: #fff; }
.hm2__card { width: min(100%, 560px); padding: 16px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #d3e1ec, 0 10px 24px -16px rgba(16, 36, 79, .3); }
.lgc { display: grid; gap: 10px; }
.lgc__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: #e8eff6; border-radius: 12px; }
.lgc__tabs button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border: 0; border-radius: 12px; background: none; font: inherit; font-weight: 700; font-size: .88rem; color: #51606b; cursor: pointer; } .lgc__tabs button .ico { width: 17px; height: 17px; }
.lgc__tabs button.is-on { background: #2563eb; color: #fff; }
.lgc .form { display: grid; gap: 10px; } .lgc__sub { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .lgc__sub[hidden] { display: none; }
.lgc__sub label { cursor: pointer; } .lgc__sub input { position: absolute; opacity: 0; }
.lgc__sub span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border-radius: 12px; background: #eef3f8; font-weight: 600; font-size: .86rem; } .lgc__sub span .ico { width: 16px; height: 16px; }
.lgc__sub input:checked + span { background: #d3f2ee; color: #0b8479; box-shadow: inset 0 0 0 1.5px #0e9f93; }
.lgc__go { width: 100%; justify-content: center; background: #2563eb; border-color: #2563eb; } .lgc .auth__alt { margin: 0; text-align: center; } .lgc .auth__alt[hidden] { display: none; }
.hm2__banner--admin { background: #12306e; } .hm2__banner--admin .hm2__mark { color: #12306e; }
