/* ============================================================
   RPS — Hospital Management SaaS
   styles.css
   ============================================================ */

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  color: #0d1b2a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: #1e6cf0; color: #fff; }
a { color: inherit; }
img { display: block; }

/* ---------- Layout helpers ---------- */
.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 84px; padding-bottom: 84px; }
.heading-font { font-family: 'Space Grotesk', sans-serif; }

.eyebrow {
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: #1e6cf0; font-weight: 700; margin-bottom: 14px;
}
.section-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.section-head h2 {
  font-family: 'Space Grotesk', sans-serif; font-size: 40px; line-height: 1.1;
  letter-spacing: -.02em; font-weight: 700; margin: 0 0 16px;
}
.section-head p { font-size: 18px; line-height: 1.55; color: #51606f; margin: 0; }

/* ---------- Buttons ---------- */
.btn { text-decoration: none; font-weight: 600; border-radius: 12px; display: inline-block; transition: all .18s; cursor: pointer; }
.btn-primary { color: #fff; background: #1e6cf0; }
.btn-primary:hover { background: #1456d6; }
.btn-dark { color: #fff; background: #0d1b2a; }
.btn-dark:hover { background: #1e6cf0; }
.btn-ghost { color: #0d1b2a; background: #fff; border: 1px solid #d9e2ec; }
.btn-ghost:hover { border-color: #1e6cf0; color: #1e6cf0; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px); background: rgba(255,255,255,0.82);
  border-bottom: 1px solid #e9eef4;
}
.nav { display: flex; align-items: center; gap: 32px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #0d1b2a; }
.brand img { width: 32px; height: 32px; box-shadow: 0 4px 12px rgba(30,108,240,.32); border-radius: 9px; }
.brand-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: 8px; font-size: 15px; font-weight: 500; color: #475569; }
.nav-links a { text-decoration: none; color: inherit; transition: color .15s; }
.nav-links a:hover { color: #1e6cf0; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-actions .btn-dark { font-size: 15px; padding: 10px 18px; border-radius: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 40px;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #eef4ff; color: #1456d6; font-size: 13px; font-weight: 600;
  padding: 7px 13px; border-radius: 100px; margin-bottom: 22px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #0ea5a5; display: inline-block; animation: pulseDot 1.8s infinite; }
.hero h1 {
  font-family: 'Space Grotesk', sans-serif; font-size: 56px; line-height: 1.04;
  letter-spacing: -.03em; font-weight: 700; margin: 0 0 20px;
}
.hero .lead { font-size: 19px; line-height: 1.55; color: #51606f; margin: 0 0 30px; max-width: 30em; }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-cta .btn-primary { font-size: 16px; padding: 15px 26px; box-shadow: 0 8px 24px rgba(30,108,240,.32); }
.hero-cta .btn-ghost { font-size: 16px; padding: 15px 24px; }
.hero-ticks { display: flex; gap: 24px; margin-top: 34px; font-size: 14px; color: #64748b; flex-wrap: wrap; }
.hero-ticks span { display: flex; align-items: center; gap: 7px; }

/* ---------- Hero mockup ---------- */
.mockup-wrap { position: relative; }
.mockup-glow { position: absolute; inset: -40px -30px -30px; background: radial-gradient(60% 60% at 70% 30%, rgba(30,108,240,.14), transparent 70%); z-index: 0; }
.mockup {
  position: relative; z-index: 1; background: #fff; border: 1px solid #e9eef4;
  border-radius: 18px; box-shadow: 0 30px 60px -24px rgba(13,27,42,.28); overflow: hidden;
}
.mockup-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid #eef2f7; background: #fbfcfe; }
.mockup-bar .tl { width: 11px; height: 11px; border-radius: 50%; }
.mockup-bar .url { margin-left: 10px; font-size: 12px; color: #94a3b8; }
.mockup-body { display: grid; grid-template-columns: 64px 1fr; min-height: 360px; }
.mockup-side { background: #0d1b2a; padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.mockup-side .ic { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; }
.mockup-side .ic.logo { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg,#1e6cf0,#0b3a82); }
.mockup-side .ic.active { border-radius: 9px; background: rgba(30,108,240,.22); }
.mockup-main { padding: 18px 20px; }
.mockup-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mockup-head .title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16px; }
.mockup-head .sub { font-size: 12px; color: #94a3b8; }
.live-chip { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #0ea5a5; background: #e6faf7; padding: 5px 10px; border-radius: 8px; }
.live-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: #0ea5a5; display: inline-block; animation: pulseDot 1.6s infinite; }
.queue { display: flex; flex-direction: column; gap: 9px; }
.queue-row { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid #eef2f7; border-radius: 11px; background: #fff; }
.queue-row.hl { border-color: #dbe7fb; background: #f5f9ff; }
.queue-row .avatar { width: 34px; height: 34px; border-radius: 9px; background: #eef4ff; color: #1456d6; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.queue-row .avatar.blue { background: #1e6cf0; color: #fff; }
.queue-row .meta { flex: 1; }
.queue-row .meta .nm { font-weight: 600; font-size: 13px; }
.queue-row .meta .dt { font-size: 11px; color: #94a3b8; }
.tag { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 7px; }
.tag.green { color: #0ea5a5; background: #e6faf7; }
.tag.amber { color: #b45309; background: #fef3e2; }
.mockup-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; margin-top: 14px; }
.mockup-stat { border: 1px solid #eef2f7; border-radius: 10px; padding: 10px; }
.mockup-stat .k { font-size: 11px; color: #94a3b8; }
.mockup-stat .v { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px; }
.float-chip {
  position: absolute; z-index: 2; right: -18px; bottom: 40px; background: #fff;
  border: 1px solid #e9eef4; border-radius: 14px; box-shadow: 0 16px 32px -12px rgba(13,27,42,.28);
  padding: 13px 16px; display: flex; align-items: center; gap: 11px; animation: floaty 4s ease-in-out infinite;
}
.float-chip .ic { width: 36px; height: 36px; border-radius: 10px; background: #e6faf7; display: flex; align-items: center; justify-content: center; }
.float-chip .k { font-size: 12px; color: #94a3b8; }
.float-chip .v { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; }

/* ---------- Stats band ---------- */
.stats-band { background: #0d1b2a; color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 54px; padding-bottom: 54px; }
.stat .num {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 44px; letter-spacing: -.02em;
  background: linear-gradient(180deg,#fff,#9cc1ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .lbl { color: #94a8c0; font-size: 15px; margin-top: 4px; }

/* ---------- Feature cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border: 1px solid #e9eef4; border-radius: 16px; padding: 26px; background: #fff; transition: all .2s; }
.card:hover { border-color: #bcd3fb; box-shadow: 0 16px 32px -20px rgba(13,27,42,.25); transform: translateY(-3px); }
.card .icon-box { width: 46px; height: 46px; border-radius: 12px; background: #eef4ff; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 600; margin: 0 0 9px; }
.card p { font-size: 14.5px; line-height: 1.55; color: #64748b; margin: 0; }

/* ---------- Workflow ---------- */
.band-light { background: #f6f9fc; border-top: 1px solid #eef2f7; border-bottom: 1px solid #eef2f7; }
.steps-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid #e9eef4; border-radius: 16px; padding: 26px; }
.step .num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; color: #1e6cf0; background: #eef4ff; width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.step h3 { font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.step p { font-size: 14px; line-height: 1.55; color: #64748b; margin: 0; }

/* ---------- Beds deep-dive ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-family: 'Space Grotesk', sans-serif; font-size: 36px; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; margin: 0 0 16px; }
.split .lead { font-size: 17px; line-height: 1.6; color: #51606f; margin: 0 0 24px; }
.bullets { display: flex; flex-direction: column; gap: 14px; }
.bullet { display: flex; gap: 12px; align-items: flex-start; }
.bullet svg { margin-top: 2px; flex-shrink: 0; }
.bullet span { font-size: 15px; color: #344657; }
.bullet strong { color: #0d1b2a; }
.bed-panel { background: #fff; border: 1px solid #e9eef4; border-radius: 18px; box-shadow: 0 24px 48px -28px rgba(13,27,42,.3); padding: 24px; }
.bed-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.bed-panel-head .title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16px; }
.bed-legend { display: flex; gap: 14px; font-size: 12px; color: #64748b; }
.bed-legend span { display: flex; align-items: center; gap: 5px; }
.bed-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.bed-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.bed { aspect-ratio: 1; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.bed.occupied { background: #1e6cf0; color: #fff; }
.bed.free { background: #e6faf7; color: #0e8a8a; border: 1px solid #b8ebe5; }
.bed.cleaning { background: #fef6e0; color: #a87708; border: 1px solid #f5e2ad; }
.bed-foot { display: flex; gap: 10px; margin-top: 18px; }
.bed-kpi { flex: 1; border: 1px solid #eef2f7; border-radius: 10px; padding: 12px; }
.bed-kpi .k { font-size: 11px; color: #94a3b8; }
.bed-kpi .v { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; }
.bed-kpi .v.green { color: #0e8a8a; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: #fff; border: 1px solid #e9eef4; border-radius: 18px; padding: 32px; display: flex; flex-direction: column; position: relative; }
.plan.featured { background: #0d1b2a; border-color: #0d1b2a; box-shadow: 0 28px 56px -28px rgba(13,27,42,.5); }
.plan .plan-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 18px; }
.plan .plan-desc { font-size: 14px; color: #64748b; margin: 6px 0 20px; }
.plan .price-row { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.plan .price { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 40px; letter-spacing: -.02em; }
.plan .per { color: #94a3b8; font-size: 15px; }
.plan .beds { font-size: 13px; color: #94a3b8; margin: 0 0 24px; }
.plan .btn { text-align: center; font-size: 15px; padding: 12px; border-radius: 11px; margin-bottom: 24px; }
.plan .feats { display: flex; flex-direction: column; gap: 11px; }
.plan .feats div { display: flex; gap: 9px; align-items: center; font-size: 14px; color: #344657; }
.plan.featured .plan-name, .plan.featured .price { color: #fff; }
.plan.featured .plan-desc, .plan.featured .per, .plan.featured .beds { color: #94a8c0; }
.plan.featured .feats div { color: #cdd9e6; }
.plan-badge { position: absolute; top: 20px; right: 20px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #0d1b2a; background: #7eecdf; padding: 5px 10px; border-radius: 7px; }

/* ---------- Mission ---------- */
.mission { max-width: 860px; margin: 0 auto; text-align: center; }
.mission p { font-family: 'Space Grotesk', sans-serif; font-size: 27px; line-height: 1.45; letter-spacing: -.01em; font-weight: 500; color: #0d1b2a; margin: 0; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq-wrap h2 { font-family: 'Space Grotesk', sans-serif; font-size: 36px; line-height: 1.1; letter-spacing: -.02em; font-weight: 700; margin: 0 0 40px; text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid #e9eef4; border-radius: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-family: 'IBM Plex Sans', sans-serif; }
.faq-q span { font-size: 16px; font-weight: 600; color: #0d1b2a; }
.faq-sign { flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px; background: #eef4ff; color: #1e6cf0; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; font-size: 15px; line-height: 1.6; color: #51606f; transition: max-height .28s ease, padding .28s ease; }
.faq-item.open .faq-a { padding: 0 22px 20px; max-height: 320px; }

/* ---------- Demo CTA ---------- */
.demo-card { background: linear-gradient(135deg,#0d1b2a,#10336e); border-radius: 24px; padding: 60px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; position: relative; overflow: hidden; }
.demo-card .glow { position: absolute; top: -60px; right: -40px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(30,108,240,.4), transparent 70%); }
.demo-copy { position: relative; }
.demo-copy h2 { font-family: 'Space Grotesk', sans-serif; font-size: 38px; line-height: 1.1; letter-spacing: -.02em; font-weight: 700; color: #fff; margin: 0 0 16px; }
.demo-copy .lead { font-size: 17px; line-height: 1.6; color: #b9c7d8; margin: 0 0 28px; max-width: 26em; }
.demo-ticks { display: flex; flex-direction: column; gap: 12px; }
.demo-ticks div { display: flex; gap: 10px; align-items: center; font-size: 15px; color: #cdd9e6; }
.form-card { position: relative; background: #fff; border-radius: 16px; padding: 28px; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: #344657; margin-bottom: 6px; }
.field input { width: 100%; padding: 12px 14px; border: 1px solid #d9e2ec; border-radius: 10px; font-size: 15px; font-family: 'IBM Plex Sans', sans-serif; outline: none; transition: border-color .15s; }
.field input:focus { border-color: #1e6cf0; }
.form-card .submit { width: 100%; margin-top: 5px; background: #1e6cf0; color: #fff; border: none; padding: 14px; border-radius: 11px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: 'IBM Plex Sans', sans-serif; transition: background .15s; }
.form-card .submit:hover { background: #1456d6; }
.form-note { font-size: 12px; color: #94a3b8; text-align: center; margin: 12px 0 0; }
.form-success { text-align: center; padding: 30px 10px; }
.form-success .check { width: 56px; height: 56px; border-radius: 50%; background: #e6faf7; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.form-success h3 { font-family: 'Space Grotesk', sans-serif; font-size: 21px; font-weight: 600; margin: 0 0 8px; }
.form-success p { font-size: 15px; color: #64748b; margin: 0; }
.hidden { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid #eef2f7; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: #64748b; max-width: 26em; margin: 0; }
.footer-col .h { font-size: 13px; font-weight: 700; color: #0d1b2a; margin-bottom: 14px; }
.footer-col .links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col .links a { text-decoration: none; color: #64748b; transition: color .15s; }
.footer-col .links a:hover { color: #1e6cf0; }
.footer-bottom { border-top: 1px solid #eef2f7; }
.footer-bottom .row { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; font-size: 13px; color: #94a3b8; }

/* ---------- Keyframes ---------- */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .demo-card { grid-template-columns: 1fr; padding: 40px; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .steps-4 { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hero h1 { font-size: 44px; }
}
@media (max-width: 560px) {
  .cards-3, .steps-4, .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 36px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .demo-card { padding: 28px; }
  .footer-bottom .row { flex-direction: column; gap: 8px; text-align: center; }
}
