/* Medical website design — "the calm clinic" */

/* Patient monitor (hero) */
.cx-hero--monitor .cx-hero__visual { width: min(100%, 520px); }
.medmon { position: relative; padding-bottom: 70px; }
.js .medmon { opacity: 0; transform: translateY(26px); }
.is-ready .medmon { opacity: 1; transform: none; transition: opacity 1.2s var(--ease-out) .2s, transform 1.6s var(--ease-out) .2s; }
.medmon__screen { position: relative; overflow: hidden; padding: 16px 18px 18px; border-radius: 20px; border: 10px solid #191512; background: radial-gradient(120% 90% at 50% 0%, rgba(90, 167, 178, .14), transparent 60%), #070b0c; box-shadow: 0 0 0 1px rgba(255, 236, 214, .1), 0 70px 120px -50px rgba(90, 167, 178, .45), inset 0 0 40px rgba(0, 0, 0, .8); }
.medmon__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); }
.medmon__top { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .18em; color: #8fd6de; direction: ltr; }
.medmon__top span { display: inline-flex; align-items: center; gap: 8px; }
.medmon__dot { width: 7px; height: 7px; border-radius: 50%; background: #8fcf9a; box-shadow: 0 0 10px #8fcf9a; animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); opacity: .7; } 10% { transform: scale(1.5); opacity: 1; } }
.medmon__ecg { display: block; width: 100%; height: clamp(110px, 16vw, 150px); margin: 12px 0 14px; overflow: visible; }
.medmon__grid { fill: none; stroke: rgba(143, 214, 222, .1); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.medmon__base, .ecgp__base { fill: none; stroke: rgba(143, 214, 222, .16); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.medmon__line, .ecgp__trace { fill: none; stroke: #9ee6ee; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26 74; stroke-dashoffset: 100; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(126, 220, 230, .85)); animation: trace 4.2s linear infinite; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.medmon__chans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.medmon__chans span { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(143, 214, 222, .16); background: rgba(90, 167, 178, .06); }
.medmon__chans small { font-size: 9.5px; letter-spacing: .16em; color: #8fd6de; direction: ltr; text-align: left; }
.medmon__chans b { font-size: 13px; font-weight: 800; color: #eaf6f6; }
.medmon__chans span:nth-child(2) small { color: var(--gold-l); }
.medmon__chans span:nth-child(3) small { color: #8fcf9a; }
.medmon__stand { width: 22%; height: 26px; margin: 0 auto; background: linear-gradient(90deg, #120f0d, #2a231d 50%, #120f0d); clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); }
.medmon__card { position: absolute; right: -6%; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 14px; border-radius: 16px; background: #f5f1ea; color: #14201f; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .9); animation: cardFloat 7s ease-in-out infinite; }
@keyframes cardFloat { 50% { transform: translateY(-8px); } }
.medmon__cal { display: grid; place-items: center; width: 50px; padding: 6px 0 5px; border-radius: 10px; background: #1f6f78; color: #fff; line-height: 1.1; }
.medmon__cal b { font-size: 21px; font-weight: 900; }
.medmon__cal small { font-size: 11px; opacity: .85; }
.medmon__card > span:not(.medmon__cal) { display: grid; gap: 2px; }
.medmon__card > span small { font-size: 12px; font-weight: 800; color: #1f6f78; }
.medmon__card > span b { font-size: 14px; font-weight: 900; }
.medmon__card > i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #8fcf9a; color: #0d2a17; font-style: normal; }

/* ECG patient path */
.ecgp { position: relative; padding-top: 10px; }
.ecgp__line { display: block; width: 100%; height: 92px; overflow: visible; }
.ecgp__line .ecgp__trace { animation-duration: 6s; }
.ecgp__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: 6px; }
.ecgp__step { position: relative; padding: 26px clamp(18px, 2vw, 26px) 24px; border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(90, 167, 178, .07), transparent 55%), var(--panel); }
.ecgp__step::before { content: ""; position: absolute; top: -22px; right: 50%; width: 1px; height: 22px; background: linear-gradient(transparent, rgba(143, 214, 222, .6)); }
.ecgp__no { display: inline-grid; place-items: center; min-width: 44px; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(143, 214, 222, .35); background: rgba(90, 167, 178, .1); font-size: 14px; font-weight: 900; color: #9ee6ee; }
.ecgp__step h3 { margin-top: 14px; font-size: 19px; font-weight: 900; line-height: 1.5; }
.ecgp__step p { margin-top: 8px; color: var(--text-2); font-size: 15px; line-height: 2; }

/* Booking widget */
.bk { width: min(100%, 420px); margin-inline: auto; padding: 20px; border-radius: 24px; border: 1px solid rgba(143, 214, 222, .22); background: linear-gradient(180deg, #101718, #0b0f10); box-shadow: 0 60px 100px -50px rgba(0, 0, 0, .95), 0 0 0 6px rgba(143, 214, 222, .03); }
.bk__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(143, 214, 222, .14); }
.bk__avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(90, 167, 178, .14); color: #9ee6ee; }
.bk__avatar .ico { animation: beat 1.4s ease-in-out infinite; }
.bk__head > span:last-child { display: grid; gap: 2px; }
.bk__head b { font-size: 16px; font-weight: 900; }
.bk__head small { font-size: 12px; color: var(--muted); }
.bk__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 16px; }
.bk__day { display: grid; place-items: center; gap: 2px; padding: 8px 0; border-radius: 12px; border: 1px solid rgba(255, 236, 214, .08); background: rgba(255, 255, 255, .02); }
.bk__day small { font-size: 10.5px; color: var(--muted); }
.bk__day b { font-size: 16px; font-weight: 900; }
.bk__day.is-on { border-color: transparent; background: #1f6f78; box-shadow: 0 10px 24px -10px rgba(90, 167, 178, .8); }
.bk__day.is-on small { color: #d8f3f5; }
.bk__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.bk__slot { padding: 8px 0; border-radius: 10px; border: 1px solid rgba(143, 214, 222, .2); font-size: 13px; font-weight: 800; text-align: center; color: #cfeef0; }
.bk__slot.is-off { opacity: .3; text-decoration: line-through; }
.bk__slot.is-on { border-color: #8fcf9a; background: rgba(143, 207, 154, .14); color: #c9f0d1; animation: slotPick 5s ease-in-out infinite; }
@keyframes slotPick { 0%, 100% { box-shadow: 0 0 0 0 rgba(143, 207, 154, 0); } 40% { box-shadow: 0 0 0 4px rgba(143, 207, 154, .18); } }
.bk__fields { display: grid; gap: 8px; margin-top: 14px; }
.bk__fields i { display: block; height: 38px; border-radius: 10px; border: 1px solid rgba(255, 236, 214, .1); background: rgba(255, 255, 255, .025); }
.bk__fields i:first-child { width: 100%; }
.bk__fields i:last-child { width: 70%; }
.bk__btn { display: block; margin-top: 14px; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, #2c8c96, #1f6f78); color: #fff; font-weight: 900; text-align: center; box-shadow: 0 16px 30px -16px rgba(90, 167, 178, .9); }
.bk__privacy { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.bk__privacy .ico { flex: none; color: #8fcf9a; }

/* Trust seal */
.seal { position: relative; display: grid; justify-items: center; gap: 18px; width: min(100%, 440px); margin-inline: auto; padding: 30px 22px 22px; border-radius: 26px; border: 1px solid var(--line-2); background: radial-gradient(70% 50% at 50% 0%, rgba(90, 167, 178, .16), transparent 70%), var(--panel); }
.seal__shield { position: relative; display: grid; place-items: center; gap: 4px; width: 132px; height: 132px; border-radius: 50%; color: #9ee6ee; background: radial-gradient(circle, rgba(90, 167, 178, .2), rgba(90, 167, 178, .04) 70%); }
.seal__shield::before, .seal__shield::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed rgba(143, 214, 222, .4); animation: spin 26s linear infinite; }
.seal__shield::after { inset: -20px; border-style: solid; border-color: rgba(224, 169, 95, .25) transparent rgba(224, 169, 95, .25) transparent; animation-duration: 14s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.seal__shield > .ico { width: 46px; height: 46px; stroke-width: 1.4; filter: drop-shadow(0 0 12px rgba(126, 220, 230, .6)); }
.seal__shield .mono { font-size: 9px; letter-spacing: .18em; color: var(--gold-l); direction: ltr; }
.seal__badges { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.seal__badges li { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; border: 1px solid rgba(143, 214, 222, .16); background: rgba(90, 167, 178, .05); font-size: 13.5px; font-weight: 800; animation: badgeOk 8s ease-in-out calc(var(--i) * 2s) infinite; }
.seal__badges .ico { color: #9ee6ee; }
@keyframes badgeOk { 0%, 100% { border-color: rgba(143, 214, 222, .16); } 6%, 22% { border-color: rgba(143, 207, 154, .7); background: rgba(143, 207, 154, .1); } }
.seal__pin { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; background: #f5f1ea; color: #14201f; }
.seal__pin > .ico { width: 26px; height: 26px; color: #c9563f; animation: pinDrop 3.4s var(--ease-out) infinite; }
@keyframes pinDrop { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-6px); } }
.seal__pin span { display: grid; gap: 2px; }
.seal__pin b { font-size: 14.5px; font-weight: 900; }
.seal__pin small { font-size: 12px; color: #5a6b69; }

/* Prescription pads (governance) */
.rx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.rx__pad { position: relative; height: 100%; padding: 24px clamp(20px, 2.4vw, 30px) 22px; border-radius: 6px 6px 18px 18px; background: linear-gradient(180deg, transparent 0 62px, rgba(31, 111, 120, .07) 62px 63px, transparent 63px) 0 0 / 100% 36px, #f4efe6; color: #182322; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .2); }
.rx__pad::before { content: ""; position: absolute; top: -7px; left: 14px; right: 14px; height: 7px; background: radial-gradient(circle at 6px 7px, transparent 4px, #f4efe6 4.5px) 0 0 / 12px 7px repeat-x; }
.rx__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid #1f6f78; }
.rx__sym { font: italic 900 30px/1 Georgia, serif; color: #1f6f78; }
.rx__tag { padding: 3px 10px; border-radius: 999px; background: rgba(31, 111, 120, .12); font-size: 12.5px; font-weight: 900; color: #1f6f78; }
.rx__no { margin-inline-start: auto; font-size: 10px; letter-spacing: .16em; color: #7d8b89; direction: ltr; }
.rx__pad h3 { margin-top: 16px; font-size: 19px; font-weight: 900; line-height: 1.5; }
.rx__pad p { margin-top: 8px; color: #3e4d4b; font-size: 15px; line-height: 2; }
.rx__sign { display: flex; align-items: flex-end; gap: 12px; margin-top: 18px; font-size: 12px; font-weight: 800; color: #7d8b89; }
.rx__sign i { flex: 1; height: 24px; border-bottom: 1px dashed rgba(24, 35, 34, .35); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cpath d='M4 18c10-14 16 4 24-6s10-8 14 2 12-12 20-2 10 6 18-4 14 2 22 0' fill='none' stroke='%231f6f78' stroke-width='1.6' stroke-linecap='round' pathLength='1' stroke-dasharray='1' stroke-dashoffset='0'/%3E%3C/svg%3E") 100% 70% / 110px 22px no-repeat; clip-path: inset(0 0 0 100%); transition: clip-path 1.4s var(--ease-out) calc(var(--d, 0) * 120ms + .5s); }
[data-reveal].is-in .rx__sign i, .reveal-all .rx__sign i, html:not(.js) .rx__sign i { clip-path: inset(0); }

/* Floor routes (related links as wayfinding lines) */
.froutes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.froute { position: relative; display: flex; align-items: center; gap: 14px; overflow: hidden; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--panel); isolation: isolate; transition: border-color .4s, transform .4s var(--ease-out); }
.froute__line { position: absolute; right: 0; left: 0; bottom: 0; height: 4px; background: var(--c); opacity: .75; }
.froute__line::after { content: ""; position: absolute; inset: 0; z-index: -1; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); width: 30%; animation: walk 3.6s linear infinite; }
@keyframes walk { from { transform: translateX(380%); } to { transform: translateX(-120%); } }
.froute::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); opacity: 0; transition: opacity .4s; }
.froute__dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent); }
.froute__name { flex: 1; font-size: 16px; font-weight: 900; }
.froute__go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--c); transition: transform .4s var(--ease-out), background .4s; }
.froute__go .ico { transform: scaleX(-1); }
.froute:hover, .froute:focus-visible { border-color: var(--c); transform: translateY(-2px); }
.froute:hover::before, .froute:focus-visible::before { opacity: 1; }
.froute:hover .froute__go, .froute:focus-visible .froute__go { transform: translateX(-4px); background: color-mix(in srgb, var(--c) 18%, transparent); }

/* Appointment card (CTA visual) */
.cta__visual--appt { justify-items: center; }
.appt { position: relative; display: flex; width: min(100%, 380px); overflow: hidden; border-radius: 22px; background: #f5f1ea; color: #14201f; box-shadow: 0 60px 100px -40px rgba(0, 0, 0, .95); rotate: -3deg; animation: cardFloat 7s ease-in-out infinite; }
.appt__cal { position: relative; display: grid; place-content: center; justify-items: center; flex: none; width: 108px; background: linear-gradient(180deg, #2c8c96, #1f6f78); color: #fff; }
.appt__ring { position: absolute; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: #f5f1ea; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .35); }
.appt__ring:first-child { right: 26px; }
.appt__ring:nth-child(2) { left: 26px; }
.appt__cal b { font-size: 46px; font-weight: 900; line-height: 1; }
.appt__cal small { margin-top: 6px; font-size: 14px; font-weight: 800; opacity: .9; }
.appt__body { flex: 1; padding: 20px 20px 18px; }
.appt__kicker { font-size: 10px; letter-spacing: .2em; color: #1f6f78; direction: ltr; text-align: left; }
.appt__title { margin-top: 6px; font-size: 16.5px; font-weight: 900; line-height: 1.6; }
.appt__rows { display: grid; gap: 9px; margin-top: 12px; }
.appt__rows li { display: grid; gap: 4px; }
.appt__rows small { font-size: 12px; color: #5a6b69; }
.appt__rows i { display: block; border-bottom: 1px dashed rgba(20, 32, 31, .3); }
.appt__ok { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(143, 207, 154, .3); color: #1d5a2c; font-size: 12.5px; font-weight: 900; }

@media (max-width: 1100px) {
	.cx-hero--monitor .cx-hero__visual { position: relative; top: auto; left: auto; z-index: 1; width: min(100%, 480px); margin: 34px auto 0; opacity: 1; pointer-events: auto; }
	.medmon__card { right: 0; }
	.ecgp__steps { grid-template-columns: 1fr; }
	.ecgp__step::before { display: none; }
}
@media (max-width: 640px) {
	.cx-hero--monitor .cx-hero__visual { left: auto; top: auto; width: 100%; opacity: 1; }
	.medmon__screen { padding: 12px; border-width: 7px; }
	.medmon__chans { gap: 5px; }
	.medmon__chans span { padding: 8px; }
	.medmon__chans b { font-size: 11.5px; }
	.medmon__card { left: 8%; right: 8%; }
	.ecgp__line { height: 64px; }
	.rx, .froutes, .seal__badges { grid-template-columns: 1fr; }
	.appt { rotate: 0deg; }
	.appt__cal { width: 88px; }
}
@media (prefers-reduced-motion: reduce) {
	.medmon__dot, .medmon__line, .ecgp__trace, .medmon__card, .bk__avatar .ico, .bk__slot.is-on, .seal__shield::before, .seal__shield::after, .seal__badges li, .seal__pin > .ico, .froute__line::after, .appt { animation: none; }
	.medmon__line, .ecgp__trace { stroke-dasharray: none; }
}
