/*
  BhagyaClinicOS landing page
  TODO: Update brand colours here if the confirmed product identity changes.
  TODO: Replace text-based logos in index.html, privacy.html and terms.html with approved logo assets.
*/

:root {
  --primary-navy: #0b2545;
  --navy-light: #163f68;
  --primary-teal: #00a896;
  --dark-teal: #00897b;
  --soft-mint: #eafaf6;
  --accent-coral: #ff7a59;
  --accent-coral-dark: #e85d3a;
  --page-background: #f8fbfd;
  --text-dark: #14213d;
  --text-muted: #65758b;
  --border: #dfe9ee;
  --white: #ffffff;
  --shadow-sm: 0 10px 30px rgba(11, 37, 69, .08);
  --shadow-lg: 0 28px 70px rgba(11, 37, 69, .14);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
}

html { scroll-behavior: smooth; scroll-padding-top: 95px; }

body {
  margin: 0;
  background: var(--page-background);
  color: var(--text-dark);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

:focus-visible {
  outline: 3px solid rgba(0, 168, 150, .45);
  outline-offset: 3px;
  border-radius: 5px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: .7rem 1rem;
  border-radius: 8px;
  background: var(--white);
  color: var(--primary-navy);
  box-shadow: var(--shadow-sm);
  transform: translateY(-150%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.section-padding { padding: 112px 0; }
.section-heading { max-width: 740px; margin-bottom: 58px; }
.section-title { margin: 0; color: var(--primary-navy); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.08; }
.section-copy { color: var(--text-muted); font-size: 1.05rem; line-height: 1.75; }
.eyebrow { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.2rem; color: var(--dark-teal); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow > span { width: 28px; height: 2px; border-radius: 99px; background: var(--primary-teal); }
.eyebrow.light { color: #9df3e8; }
.eyebrow.light > span { background: #62dfcf; }

.btn { border-radius: 12px; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: .9rem 1.35rem; font-size: .98rem; }
.btn-coral { border: 1px solid var(--accent-coral); background: var(--accent-coral); color: #28150f; box-shadow: 0 10px 22px rgba(255, 122, 89, .24); }
.btn-coral:hover, .btn-coral:focus { border-color: var(--accent-coral-dark); background: var(--accent-coral-dark); color: #fff; box-shadow: 0 14px 26px rgba(232, 93, 58, .28); }
.btn-outline-navy { border: 1px solid rgba(11, 37, 69, .22); background: rgba(255, 255, 255, .62); color: var(--primary-navy); }
.btn-outline-navy:hover, .btn-outline-navy:focus { border-color: var(--primary-navy); background: var(--primary-navy); color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 750; }
.light-link { color: #a5f4ea; }

/* Navigation */
.site-header { position: sticky; z-index: 1030; top: 0; border-bottom: 1px solid rgba(223, 233, 238, .8); background: rgba(248, 251, 253, .9); backdrop-filter: blur(18px); }
.navbar { min-height: 84px; padding: .7rem 0; }
.brand-lockup { display: flex; align-items: center; gap: .7rem; min-width: 215px; margin: 0; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px 13px 13px 4px; background: linear-gradient(145deg, var(--primary-teal), var(--dark-teal)); color: #fff; font-size: 1.2rem; box-shadow: 0 8px 18px rgba(0, 168, 150, .22); }
.brand-name { display: block; color: var(--primary-navy); font-size: 1.18rem; font-weight: 850; letter-spacing: -.04em; line-height: 1; }
.brand-name span { color: var(--primary-teal); }
.brand-lockup small { display: block; margin-top: .28rem; color: var(--text-muted); font-size: .62rem; font-weight: 650; letter-spacing: .03em; }
.navbar-nav { gap: .12rem; }
.navbar .nav-link { position: relative; padding: .7rem .72rem !important; color: #35455d; font-size: .88rem; font-weight: 650; }
.navbar .nav-link::after { position: absolute; right: .72rem; bottom: .42rem; left: .72rem; height: 2px; border-radius: 3px; background: var(--primary-teal); content: ""; transform: scaleX(0); transition: transform .2s ease; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--primary-navy); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.nav-cta { padding: .68rem 1rem; font-size: .87rem; }
.navbar-toggler { border-color: var(--border); padding: .45rem .55rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(0, 168, 150, .2); }

/* Hero */
.hero-section { min-height: calc(100vh - 84px); padding: 80px 0 100px; background: radial-gradient(circle at 8% 14%, rgba(0, 168, 150, .11), transparent 31%), linear-gradient(135deg, #f8fbfd 0%, #f1fbf8 55%, #f9fcfd 100%); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-orb-one { top: 8%; right: 3%; width: 390px; height: 390px; border: 1px solid rgba(0, 168, 150, .13); }
.hero-orb-one::after { position: absolute; inset: 55px; border: 1px solid rgba(0, 168, 150, .12); border-radius: inherit; content: ""; }
.hero-orb-two { bottom: -100px; left: 32%; width: 280px; height: 280px; background: rgba(255, 122, 89, .07); filter: blur(50px); }
.hero-section h1 { max-width: 660px; margin: 0 0 1.5rem; color: var(--primary-navy); font-size: clamp(2.8rem, 4.65vw, 4.45rem); font-weight: 850; letter-spacing: -.06em; line-height: .99; }
.hero-section h1 span { color: var(--primary-teal); }
.hero-copy { max-width: 650px; margin-bottom: 2rem; color: #52657c; font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.hero-actions { margin-bottom: 2.1rem; }
.hero-assurances { display: flex; flex-wrap: wrap; gap: .75rem 1.2rem; color: #52657c; font-size: .82rem; font-weight: 650; }
.hero-assurances i { margin-right: .3rem; color: var(--primary-teal); }

/* CSS dashboard mock-up */
.dashboard-shell { position: relative; z-index: 2; width: 104%; overflow: hidden; border: 1px solid rgba(255, 255, 255, .9); border-radius: 22px; background: #eef4f7; box-shadow: 0 40px 90px rgba(11, 37, 69, .2), 0 0 0 8px rgba(255, 255, 255, .5); transform: perspective(1200px) rotateY(-3deg) rotateX(1deg); transform-origin: left center; }
.dashboard-shell::before { position: absolute; z-index: -1; inset: -25px; border-radius: 32px; background: rgba(0, 168, 150, .09); content: ""; }
.dashboard-topbar { display: flex; height: 62px; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid #e5ecef; background: #fff; }
.dashboard-topbar strong, .dashboard-topbar small { display: block; }
.dashboard-topbar strong { color: var(--primary-navy); font-size: .74rem; line-height: 1.2; }
.dashboard-topbar small { color: #91a0ae; font-size: .54rem; }
.mini-brand { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 8px; background: var(--primary-teal); color: #fff; font-size: .65rem; }
.dashboard-user { display: flex; align-items: center; gap: .8rem; color: #718195; font-size: .75rem; }
.dashboard-user span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--primary-navy); color: #fff; font-size: .56rem; font-weight: 800; }
.dashboard-body { display: flex; min-height: 500px; }
.dashboard-sidebar { display: flex; width: 52px; flex: 0 0 52px; flex-direction: column; align-items: center; gap: .8rem; padding-top: 19px; background: var(--primary-navy); color: #96a8ba; }
.dashboard-sidebar i { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; font-size: .72rem; }
.dashboard-sidebar i.active { background: var(--primary-teal); color: #fff; }
.dashboard-main { min-width: 0; flex: 1; padding: 20px; }
.dashboard-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.dashboard-heading small { color: #8494a5; font-size: .55rem; }
.dashboard-heading h2 { margin: .08rem 0 0; color: var(--primary-navy); font-size: .95rem; font-weight: 800; }
.dashboard-heading button { padding: .52rem .7rem; border: 0; border-radius: 8px; background: var(--primary-teal); color: #fff; font-size: .57rem; font-weight: 750; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.metric-card { display: flex; min-width: 0; align-items: center; gap: 8px; padding: 12px 10px; border: 1px solid #e6edf0; border-radius: 12px; background: #fff; box-shadow: 0 5px 12px rgba(11, 37, 69, .035); }
.metric-card > span { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 8px; font-size: .72rem; }
.metric-card small, .metric-card strong, .metric-card em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-card small { color: #7c8c9c; font-size: .48rem; }
.metric-card strong { color: var(--primary-navy); font-size: .9rem; line-height: 1.5; }
.metric-card em { color: #8d9aa8; font-size: .43rem; font-style: normal; }
.metric-card.teal > span { background: #e2f8f4; color: var(--dark-teal); }
.metric-card.navy > span { background: #e9eff7; color: var(--primary-navy); }
.metric-card.coral > span { background: #fff0ec; color: #e56445; }
.metric-card.mint > span { background: #eff8e9; color: #57963f; }
.dashboard-lower { display: grid; grid-template-columns: 1.5fr .8fr; gap: 10px; margin-top: 10px; }
.schedule-card, .branch-card { border: 1px solid #e6edf0; border-radius: 12px; background: #fff; }
.schedule-card { padding: 12px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; }
.card-title-row strong { color: var(--primary-navy); font-size: .62rem; }
.card-title-row span { color: var(--primary-teal); font-size: .48rem; font-weight: 700; }
.patient-row { display: grid; grid-template-columns: 30px 27px 1fr auto; align-items: center; gap: 7px; padding: 12px 0; border-bottom: 1px solid #edf1f3; }
.patient-row:last-child { border: 0; }
.patient-row time { color: #77889a; font-size: .48rem; }
.patient-row .avatar { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; font-size: .43rem; font-weight: 800; }
.avatar.a1 { background: #e4f6f3; color: #00897b; }.avatar.a2 { background: #e7edf7; color: #244f78; }.avatar.a3 { background: #ffefea; color: #da674b; }
.patient-row strong, .patient-row small { display: block; }
.patient-row strong { color: #2a3a51; font-size: .52rem; }
.patient-row small { color: #929fac; font-size: .42rem; }
.patient-row em { padding: .18rem .3rem; border-radius: 12px; font-size: .4rem; font-style: normal; font-weight: 700; }
.patient-row em.waiting { background: #fff1dd; color: #ba7114; }.patient-row em.confirmed { background: #e6f7f3; color: #00897b; }
.insight-stack { display: flex; flex-direction: column; gap: 8px; }
.alert-card { display: flex; align-items: center; gap: 8px; padding: 11px; border-radius: 10px; }
.alert-card > i { font-size: .75rem; }.alert-card strong, .alert-card small { display: block; }.alert-card strong { font-size: .52rem; }.alert-card small { font-size: .42rem; }
.alert-card.stock { background: #fff4e7; color: #a45e0d; }.alert-card.whatsapp { background: #e3f8ef; color: #087b55; }
.branch-card { flex: 1; padding: 11px; }
.branch-bars { display: flex; height: 52px; align-items: end; gap: 6px; margin: 8px 0 4px; }
.branch-bars i { width: 12%; height: var(--bar); border-radius: 4px 4px 0 0; background: linear-gradient(var(--primary-teal), #7edfd4); }
.branch-card > small { color: #93a0ad; font-size: .4rem; }

/* Product relationship */
.intro-section { background: #fff; }
.relationship-wrap { display: grid; grid-template-columns: 1fr 160px 1fr; align-items: center; gap: 22px; }
.identity-card { min-height: 260px; padding: 34px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.identity-card.product-card { border-color: rgba(0, 168, 150, .25); background: linear-gradient(145deg, #f5fffc, #fff); }
.identity-icon { display: grid; width: 58px; height: 58px; margin-bottom: 28px; place-items: center; border-radius: 16px; background: #eaf0f7; color: var(--primary-navy); font-size: 1.45rem; }
.product-card .identity-icon { background: var(--primary-teal); color: #fff; }
.identity-card > span { color: var(--dark-teal); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.identity-card h3 { margin: .4rem 0 .6rem; color: var(--primary-navy); font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; }
.identity-card p { margin: 0; color: var(--text-muted); }
.relationship-link { display: flex; align-items: center; justify-content: center; gap: .7rem; color: var(--text-muted); font-size: .7rem; font-weight: 750; text-transform: uppercase; }
.relationship-link i { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--primary-teal); }

/* Features */
.features-section { background: linear-gradient(180deg, var(--page-background), #f0f8f7); }
.feature-grid > div { display: flex; }
.feature-card { position: relative; width: 100%; min-height: 255px; overflow: hidden; padding: 30px; border: 1px solid #e2ebef; border-radius: var(--radius-md); background: rgba(255, 255, 255, .9); box-shadow: 0 12px 32px rgba(11, 37, 69, .055); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.feature-card:hover { border-color: rgba(0, 168, 150, .35); box-shadow: 0 22px 45px rgba(11, 37, 69, .1); transform: translateY(-6px); }
.feature-card::after { position: absolute; right: -40px; bottom: -50px; width: 120px; height: 120px; border-radius: 50%; background: var(--soft-mint); content: ""; transition: transform .25s ease; }
.feature-card:hover::after { transform: scale(1.3); }
.feature-icon { display: grid; width: 52px; height: 52px; margin-bottom: 25px; place-items: center; border-radius: 15px 15px 15px 5px; background: var(--soft-mint); color: var(--dark-teal); font-size: 1.25rem; }
.feature-card h3 { color: var(--primary-navy); font-size: 1.15rem; font-weight: 800; }
.feature-card p { position: relative; z-index: 1; margin: 0; color: var(--text-muted); font-size: .92rem; }
.feature-index { position: absolute; z-index: 1; right: 20px; top: 18px; color: #d9e5e8; font-size: .72rem; font-weight: 850; letter-spacing: .08em; }

/* Journey */
.journey-section { background: var(--primary-navy); color: #b7c5d4; }
.journey-flow { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; margin: 0; padding: 0; list-style: none; }
.journey-flow::before { position: absolute; top: 55px; right: 11%; left: 11%; height: 1px; background: linear-gradient(90deg, transparent, rgba(103, 226, 212, .4), transparent); content: ""; }
.journey-flow li { position: relative; z-index: 1; text-align: center; }
.step-number { display: block; margin-bottom: .55rem; color: #5e7a98; font-size: .6rem; font-weight: 800; letter-spacing: .1em; }
.step-icon { display: grid; width: 72px; height: 72px; margin: 0 auto 1rem; place-items: center; border: 1px solid rgba(147, 241, 230, .28); border-radius: 22px 22px 22px 7px; background: #12375c; color: #72eadc; font-size: 1.45rem; box-shadow: 0 10px 25px rgba(0, 0, 0, .13); }
.journey-flow li:last-child .step-icon { border-color: var(--primary-teal); background: var(--primary-teal); color: #fff; }
.journey-flow strong { color: #fff; font-size: .78rem; line-height: 1.35; }

/* Clinic types */
.clinic-types-section { background: #fff; }
.clinic-type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.clinic-type-grid article { min-height: 190px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.clinic-type-grid article:hover { border-color: var(--primary-teal); background: var(--soft-mint); transform: translateY(-4px); }
.clinic-type-grid i { display: block; margin-bottom: 28px; color: var(--primary-teal); font-size: 1.5rem; }
.clinic-type-grid h3 { margin-bottom: .35rem; color: var(--primary-navy); font-size: 1.02rem; font-weight: 800; }
.clinic-type-grid span { color: var(--text-muted); font-size: .8rem; }
.clinic-type-grid article:last-child { grid-column: span 2; background: linear-gradient(110deg, var(--primary-navy), #174b71); }
.clinic-type-grid article:last-child h3, .clinic-type-grid article:last-child i { color: #fff; }.clinic-type-grid article:last-child span { color: #b9cada; }

/* Physiotherapy */
.physio-section { padding-top: 20px; background: #fff; }
.physio-panel { overflow: hidden; padding: 70px; border-radius: var(--radius-lg); background: linear-gradient(125deg, #e8faf6, #f6fbff); }
.physio-visual { position: relative; min-height: 360px; }
.physio-visual::before { position: absolute; top: 15%; left: 5%; width: 270px; height: 270px; border: 35px solid rgba(0, 168, 150, .1); border-radius: 50%; content: ""; }
.physio-card { position: absolute; border: 1px solid rgba(213, 229, 232, .9); border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); }
.main-card { z-index: 2; top: 10px; left: 45px; width: 270px; padding: 26px; }
.main-card > div:first-child { color: var(--text-muted); font-size: .68rem; font-weight: 700; }
.main-card h3 { margin: .65rem 0 1.3rem; color: var(--primary-navy); font-size: 1.15rem; font-weight: 800; }
.progress-ring { display: grid; width: 108px; height: 108px; margin: auto; place-items: center; border: 12px solid #dff5f1; border-top-color: var(--primary-teal); border-right-color: var(--primary-teal); border-radius: 50%; transform: rotate(18deg); }
.progress-ring span { color: var(--primary-navy); font-size: 1.6rem; font-weight: 850; transform: rotate(-18deg); }.progress-ring small { color: var(--text-muted); font-size: .72rem; }
.main-card p { margin: .8rem 0 .6rem; color: var(--text-muted); font-size: .68rem; text-align: center; }
.mini-progress { height: 6px; overflow: hidden; border-radius: 10px; background: #edf3f3; }.mini-progress span { display: block; height: 100%; border-radius: inherit; background: var(--primary-teal); }
.floating-card, .exercise-card { z-index: 3; display: flex; align-items: center; gap: 10px; padding: 14px 17px; }
.floating-card { top: 58px; right: 2px; }.exercise-card { bottom: 35px; left: 0; }
.floating-card > i, .exercise-card > i { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--soft-mint); color: var(--primary-teal); }
.floating-card strong, .floating-card small, .exercise-card strong, .exercise-card small { display: block; }.floating-card strong, .exercise-card strong { color: var(--primary-navy); font-size: .67rem; }.floating-card small, .exercise-card small { color: var(--text-muted); font-size: .55rem; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 20px; margin-top: 2rem; }
.check-grid span { display: flex; align-items: center; gap: .65rem; color: #34465d; font-size: .9rem; font-weight: 650; }
.check-grid i { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 50%; background: #d4f3ed; color: var(--dark-teal); font-weight: 900; }

/* WhatsApp */
.whatsapp-section { background: linear-gradient(135deg, #f1faf7, #fff); }
.phone-wrap { position: relative; min-height: 600px; }
.phone-glow { position: absolute; top: 100px; left: 50%; width: 390px; height: 390px; border-radius: 50%; background: rgba(0, 168, 150, .12); filter: blur(8px); transform: translateX(-50%); }
.phone { position: absolute; z-index: 2; top: 0; left: 50%; width: 310px; min-height: 565px; overflow: hidden; border: 10px solid #143550; border-radius: 45px; background: #efeae2; box-shadow: 0 35px 70px rgba(11, 37, 69, .24); transform: translateX(-50%) rotate(-2deg); }
.phone-notch { position: absolute; z-index: 4; top: 7px; left: 50%; width: 98px; height: 22px; border-radius: 20px; background: #143550; transform: translateX(-50%); }
.phone-header { display: flex; height: 74px; align-items: center; gap: 9px; padding: 20px 12px 9px; background: #075e54; color: #fff; }
.phone-header > i { font-size: .8rem; }.chat-avatar { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 50%; background: #fff; color: var(--primary-teal); }.phone-header strong, .phone-header small { display: block; }.phone-header strong { font-size: .7rem; }.phone-header small { color: #c5e1dc; font-size: .5rem; }
.chat-body { min-height: 421px; padding: 18px 13px; background-color: #efeae2; background-image: radial-gradient(rgba(11,37,69,.04) 1px, transparent 1px); background-size: 15px 15px; }
.chat-date { width: max-content; margin: 0 auto 14px; padding: .25rem .55rem; border-radius: 6px; background: #e2f0f4; color: #617580; font-size: .48rem; }
.message { position: relative; max-width: 88%; margin: 0 0 12px auto; padding: 10px 10px 17px; border-radius: 9px 2px 9px 9px; background: #d9fdd3; color: #36454f; font-size: .59rem; line-height: 1.45; box-shadow: 0 2px 3px rgba(0,0,0,.05); }
.message.compact { max-width: 74%; }.message time { position: absolute; right: 6px; bottom: 4px; color: #718178; font-size: .42rem; }
.chat-input { display: flex; height: 50px; align-items: center; gap: 10px; padding: 7px; color: #7d898b; font-size: .75rem; }.chat-input span { flex: 1; padding: .45rem .7rem; border-radius: 20px; background: #fff; color: #9aa4a4; font-size: .58rem; }.chat-input .send { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #128c7e; color: #fff; }
.message-tags span { position: absolute; z-index: 3; display: flex; align-items: center; gap: .4rem; padding: .6rem .8rem; border: 1px solid #dfeae8; border-radius: 12px; background: #fff; color: var(--primary-navy); font-size: .65rem; font-weight: 750; box-shadow: var(--shadow-sm); }
.message-tags span i { color: var(--primary-teal); }.message-tags span:nth-child(1) { top: 85px; left: 0; }.message-tags span:nth-child(2) { top: 190px; right: 0; }.message-tags span:nth-child(3) { bottom: 140px; left: 5px; }.message-tags span:nth-child(4) { right: 0; bottom: 60px; }
.communication-list { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem; margin: 2rem 0; padding: 0; list-style: none; }.communication-list li { color: #3c4d63; font-size: .9rem; font-weight: 650; }.communication-list i { margin-right: .4rem; color: var(--primary-teal); }
.caveat { display: inline-flex; align-items: flex-start; gap: .5rem; padding: .7rem .85rem; border-radius: 10px; background: #edf4f6; color: var(--text-muted); font-size: .75rem; }

/* Tenant workspace */
.tenant-section { background: #fff; }
.tenant-browser { position: relative; overflow: hidden; border: 1px solid #dce8eb; border-radius: 22px; background: #f5f9fa; box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; align-items: center; gap: 18px; padding: 12px 15px; border-bottom: 1px solid #e4edef; background: #edf3f5; }.browser-bar > div { display: flex; gap: 5px; }.browser-bar > div i { width: 8px; height: 8px; border-radius: 50%; background: #ff9c88; }.browser-bar > div i:nth-child(2) { background: #f7ca63; }.browser-bar > div i:nth-child(3) { background: #64cbbb; }.browser-bar > span { flex: 1; padding: .35rem .7rem; border-radius: 7px; background: #fff; color: #6e7f8d; font-size: .58rem; text-align: center; }.browser-bar > span i { color: var(--primary-teal); }
.tenant-content { padding: 46px 70px 48px; text-align: center; }.tenant-logo { display: grid; width: 62px; height: 62px; margin: 0 auto 14px; place-items: center; border-radius: 18px; background: linear-gradient(145deg, var(--primary-teal), var(--dark-teal)); color: #fff; font-size: 1.15rem; font-weight: 850; }.tenant-content > span { color: var(--text-muted); font-size: .65rem; }.tenant-content h3 { margin: .2rem 0; color: var(--primary-navy); font-size: 1.4rem; font-weight: 850; }.tenant-content p { margin-bottom: 1.2rem; color: var(--text-muted); font-size: .7rem; }.fake-field, .fake-button { max-width: 290px; margin: 8px auto; padding: .65rem .8rem; border-radius: 8px; text-align: left; font-size: .6rem; }.fake-field { border: 1px solid #dde7ea; background: #fff; color: #9aa6ae; }.fake-button { background: var(--primary-navy); color: #fff; font-weight: 750; text-align: center; }
.example-label { display: block; padding: .7rem; background: #fff8e8; color: #8d6a19; font-size: .57rem; text-align: center; }
.capability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }.capability-grid span { display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: 11px; color: #3c4b60; font-size: .82rem; font-weight: 650; }.capability-grid i { color: var(--primary-teal); font-size: 1rem; }
.url-examples { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }.url-examples strong { width: 100%; color: var(--primary-navy); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }.url-examples code { padding: .25rem .5rem; border-radius: 6px; background: var(--soft-mint); color: var(--dark-teal); font-size: .62rem; }

/* Comparison */
.comparison-section { background: linear-gradient(180deg, #f4f9fb, #f8fbfd); }
.comparison-wrap { display: grid; grid-template-columns: 1fr 70px 1fr; align-items: center; max-width: 1000px; margin: auto; }
.comparison-card { min-height: 480px; padding: 38px; border-radius: var(--radius-md); }.before-card { border: 1px solid #e0e8eb; background: #fff; }.after-card { background: linear-gradient(145deg, var(--primary-navy), #174669); color: #fff; box-shadow: var(--shadow-lg); }
.comparison-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 25px; }.comparison-heading > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: #fff0ec; color: var(--accent-coral-dark); }.after-card .comparison-heading > span { background: var(--primary-teal); color: #fff; }.comparison-heading small { color: var(--text-muted); font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.after-card .comparison-heading small { color: #91b7c7; }.comparison-heading h3 { margin: .1rem 0 0; color: var(--primary-navy); font-size: 1.15rem; font-weight: 800; }.after-card .comparison-heading h3 { color: #fff; }
.comparison-card ul { margin: 0; padding: 0; list-style: none; }.comparison-card li { position: relative; padding: .75rem 0 .75rem 1.9rem; border-bottom: 1px solid #e9eff1; color: #536378; }.comparison-card li::before { position: absolute; left: .2rem; color: #b2bec6; font-family: bootstrap-icons; content: "\f62a"; }.after-card li { border-color: rgba(255,255,255,.09); color: #d3e0e8; }.after-card li::before { color: #6ee2d4; content: "\f26e"; }.comparison-arrow { display: grid; position: relative; z-index: 3; width: 52px; height: 52px; margin: auto; place-items: center; border: 6px solid var(--page-background); border-radius: 50%; background: var(--accent-coral); color: #fff; }

/* Demo form */
.demo-section { background: #fff; }
.demo-shell { overflow: hidden; border: 1px solid #dce8eb; border-radius: var(--radius-lg); box-shadow: 0 35px 75px rgba(11, 37, 69, .12); }
.demo-aside { position: relative; overflow: hidden; padding: 55px 40px; background: linear-gradient(150deg, var(--primary-navy), #0d4565); color: #bdced9; }.demo-aside::after { position: absolute; right: -110px; bottom: -120px; width: 330px; height: 330px; border: 45px solid rgba(0,168,150,.14); border-radius: 50%; content: ""; }.demo-aside h2 { margin-bottom: 1.2rem; color: #fff; font-size: clamp(2rem, 3vw, 2.65rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.08; }.demo-aside p { font-size: .92rem; }.demo-aside ul { position: relative; z-index: 1; margin: 2rem 0; padding: 0; list-style: none; }.demo-aside li { display: flex; gap: .6rem; margin: .9rem 0; color: #fff; font-size: .86rem; font-weight: 650; }.demo-aside li i { color: #66dfd1; }.privacy-callout { position: relative; z-index: 1; display: flex; gap: .8rem; margin-top: 3rem; padding: 1rem; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.07); font-size: .73rem; }.privacy-callout i { color: #7ee7da; font-size: 1rem; }
.demo-form-wrap { padding: 55px; background: #fff; }.form-heading { margin-bottom: 2.2rem; }.form-heading > span { color: var(--primary-teal); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.form-heading h2 { margin: .3rem 0; color: var(--primary-navy); font-size: 2rem; font-weight: 850; letter-spacing: -.035em; }.form-heading p { margin: 0; color: var(--text-muted); font-size: .78rem; }.form-heading p span, .form-label > span, .form-check-label > span { color: #cf4c2d; }.form-label { margin-bottom: .42rem; color: #34455b; font-size: .78rem; font-weight: 750; }.form-label .optional { margin-left: .3rem; color: var(--text-muted); font-size: .63rem; font-weight: 500; }.form-control, .form-select, .input-group-text { min-height: 48px; border-color: #d9e4e8; border-radius: 9px; background-color: #fbfdfe; color: var(--text-dark); font-size: .86rem; }.form-control:focus, .form-select:focus { border-color: var(--primary-teal); background: #fff; box-shadow: 0 0 0 .2rem rgba(0,168,150,.12); }.input-group .form-control { border-radius: 0 9px 9px 0; }.input-group-text { border-radius: 9px 0 0 9px; color: var(--text-muted); }.form-text { color: #8896a5; font-size: .65rem; }.form-check-input:checked { border-color: var(--primary-teal); background-color: var(--primary-teal); }.form-check-label { color: #536378; font-size: .76rem; }.invalid-feedback { font-size: .68rem; }.submit-btn { width: 100%; padding: 1rem 1.3rem; }.form-privacy { display: flex; gap: .5rem; margin: 1.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid #e8eef0; color: #788898; font-size: .68rem; }.form-privacy i { color: var(--primary-teal); }

/* Enhanced compact demo form */
.demo-section { position: relative; background: radial-gradient(circle at 12% 20%, rgba(0, 168, 150, .1), transparent 26%), radial-gradient(circle at 88% 80%, rgba(255, 122, 89, .1), transparent 24%), #f7fbfc; }
.demo-shell { border-color: rgba(0, 168, 150, .16); box-shadow: 0 40px 90px rgba(11, 37, 69, .16); }
.demo-aside { isolation: isolate; padding: 64px 46px; background: radial-gradient(circle at 20% 8%, rgba(34, 205, 184, .22), transparent 26%), linear-gradient(150deg, #071f3a 0%, #0b3555 58%, #075f66 125%); }
.demo-aside::before { position: absolute; z-index: -1; top: 50%; left: -130px; width: 310px; height: 310px; border: 1px solid rgba(115, 232, 218, .18); border-radius: 50%; content: ""; }
.demo-aside > * { position: relative; z-index: 1; }
.demo-product-card { display: flex; align-items: center; gap: 12px; margin: 2rem 0 1.7rem; padding: 15px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 16px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 1px rgba(255, 255, 255, .08); backdrop-filter: blur(8px); }
.demo-product-icon { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 13px 13px 13px 4px; background: linear-gradient(145deg, #25cdb9, var(--primary-teal)); color: #fff; }
.demo-product-card > span:nth-child(2) { min-width: 0; flex: 1; }
.demo-product-card small, .demo-product-card strong { display: block; }
.demo-product-card small { color: #a9c6d2; font-size: .62rem; }
.demo-product-card strong { color: #fff; font-size: .95rem; letter-spacing: -.02em; }
.demo-product-card > i { color: #73e8da; }
.demo-aside ul { margin-top: 1.5rem; }
.demo-form-wrap { position: relative; isolation: isolate; padding: 60px; background: linear-gradient(145deg, #fff 0%, #fbfefd 54%, #f2fbf9 100%); }
.demo-form-orb { position: absolute; z-index: -1; top: -110px; right: -90px; width: 260px; height: 260px; border: 42px solid rgba(0, 168, 150, .055); border-radius: 50%; }
.form-heading { position: relative; margin-bottom: 1.2rem; }
.form-kicker { display: flex; align-items: center; gap: .6rem; color: var(--dark-teal); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.form-kicker span { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: var(--primary-teal); color: #fff; font-size: .62rem; box-shadow: 0 7px 16px rgba(0, 168, 150, .2); }
.form-heading h2 { margin: .8rem 0 .35rem; font-size: clamp(1.9rem, 3vw, 2.45rem); }
.form-heading p { font-size: .85rem; }
.form-trust-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }
.form-trust-row span { display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .68rem; border: 1px solid #dbeae7; border-radius: 999px; background: rgba(255, 255, 255, .85); color: #56706f; font-size: .65rem; font-weight: 700; }
.form-trust-row i { color: var(--primary-teal); }
.compact-demo-grid { position: relative; }
.compact-demo-grid .form-label { margin-bottom: .5rem; color: #2a4055; font-size: .75rem; letter-spacing: .01em; }
.field-shell { position: relative; display: flex; min-height: 56px; align-items: center; overflow: hidden; border: 1px solid #d9e6e8; border-radius: 14px; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 18px rgba(11, 37, 69, .035); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.field-shell:focus-within { border-color: var(--primary-teal); box-shadow: 0 0 0 4px rgba(0, 168, 150, .1), 0 10px 24px rgba(11, 37, 69, .07); transform: translateY(-1px); }
.field-shell > i { position: absolute; z-index: 2; left: 16px; color: var(--primary-teal); font-size: 1rem; pointer-events: none; }
.field-shell .form-control { min-height: 54px; padding: .8rem 1rem .8rem 3rem; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.field-shell .form-control::placeholder { color: #9aa8b4; }
.field-shell .form-control:focus { background: transparent; box-shadow: none; }
.mobile-field .country-code { margin-left: 46px; padding-right: .8rem; border-right: 1px solid #e1e9eb; color: #42556a; font-size: .78rem; font-weight: 800; }
.mobile-field .form-control { padding-left: .8rem; }
.message-field { align-items: flex-start; }
.message-field > i { top: 17px; }
.message-field textarea.form-control { min-height: 132px; padding-top: 15px; resize: vertical; }
.compact-demo-grid .invalid-feedback { margin-top: .35rem; }
.was-validated .field-shell:has(.form-control:invalid) { border-color: #dc3545; }
.was-validated .field-shell:has(.form-control:invalid) ~ .invalid-feedback { display: block; }
.was-validated .field-shell:has(.form-control:valid) { border-color: rgba(0, 168, 150, .62); }
.submit-btn { display: flex; min-height: 60px; align-items: center; justify-content: space-between; padding: .9rem 1rem .9rem 1.35rem; border: 0; border-radius: 14px; background: linear-gradient(110deg, #ff7958, #ff8c68); box-shadow: 0 14px 28px rgba(255, 122, 89, .27); }
.submit-btn i { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: rgba(255, 255, 255, .25); transition: transform .2s ease; }
.submit-btn:hover i { transform: translateX(3px); }
.form-privacy { margin-top: 1.3rem; border-top-style: dashed; }

/* Contact and footer */
.contact-section { background: var(--soft-mint); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.contact-grid > a, .contact-grid > div { display: flex; align-items: center; gap: 14px; padding: 19px; border: 1px solid rgba(0,137,123,.14); border-radius: 15px; background: rgba(255,255,255,.8); }.contact-grid > a:hover { border-color: var(--primary-teal); transform: translateY(-2px); }.contact-grid > a, .contact-grid > div { transition: transform .2s ease, border-color .2s ease; }.contact-grid i { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 11px; background: var(--soft-mint); color: var(--dark-teal); }.contact-grid span { color: var(--primary-navy); font-size: .72rem; font-weight: 800; }.contact-grid small { display: block; color: var(--text-muted); font-size: .72rem; font-weight: 500; overflow-wrap: anywhere; }
.site-footer { padding-top: 75px; background: #071b32; color: #93a7b8; }.footer-main { padding-bottom: 55px; }.footer-brand { color: #fff; font-size: 1.65rem; font-weight: 850; letter-spacing: -.05em; }.footer-brand span { color: #55d7c8; }.site-footer p { max-width: 420px; margin: 1rem 0 .6rem; }.site-footer strong { color: #dce6ec; font-size: .88rem; }.site-footer h2 { margin-bottom: 1.1rem; color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }.site-footer ul { margin: 0; padding: 0; list-style: none; }.site-footer li { margin: .65rem 0; }.site-footer li a { font-size: .84rem; transition: color .2s ease; }.site-footer li a:hover { color: #62dfcf; }.social-links { display: flex; gap: .5rem; margin-top: 1rem; }.social-links a { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #284057; border-radius: 9px; }.social-links a:hover { border-color: var(--primary-teal); color: #fff; }.footer-bottom { display: flex; justify-content: space-between; padding: 22px 0; border-top: 1px solid #1c344a; font-size: .72rem; }.footer-bottom strong { color: #62dfcf; font-size: inherit; }
.floating-demo { position: fixed; z-index: 1020; right: 22px; bottom: 22px; display: none; align-items: center; gap: .5rem; padding: .75rem 1rem; border-radius: 30px; background: var(--accent-coral); color: #271611; font-size: .78rem; font-weight: 800; box-shadow: 0 10px 25px rgba(11,37,69,.22); }

/* Legal pages */
.legal-hero { padding: 80px 0 60px; background: linear-gradient(145deg, var(--primary-navy), #114b6f); color: #c8d6e0; }.legal-hero h1 { margin: .3rem 0 1rem; color: #fff; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 850; letter-spacing: -.05em; }.legal-hero p { max-width: 680px; margin: 0; }.legal-content { max-width: 850px; padding-top: 70px; padding-bottom: 90px; }.legal-notice { margin-bottom: 2rem; padding: 1.2rem; border-left: 4px solid var(--accent-coral); border-radius: 0 10px 10px 0; background: #fff2ed; color: #784331; }.legal-content h2 { margin: 2.3rem 0 .8rem; color: var(--primary-navy); font-size: 1.45rem; font-weight: 800; }.legal-content p, .legal-content li { color: #526378; }.legal-content a { color: var(--dark-teal); text-decoration: underline; }.legal-content .placeholder { padding: .1rem .35rem; border-radius: 4px; background: #fff1c9; color: #775710; font-weight: 700; }

@media (max-width: 1199.98px) {
  .navbar .nav-link { padding-right: .55rem !important; padding-left: .55rem !important; font-size: .8rem; }
  .dashboard-shell { width: 100%; }
  .clinic-type-grid { grid-template-columns: repeat(3, 1fr); }
  .clinic-type-grid article:last-child { grid-column: auto; }
  .physio-panel { padding: 55px 45px; }
}

@media (max-width: 991.98px) {
  .section-padding { padding: 85px 0; }
  .navbar-collapse { margin-top: .8rem; padding: 1rem; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
  .navbar .nav-link { padding: .7rem .5rem !important; }
  .navbar .nav-link::after { display: none; }
  .nav-cta { display: block; margin: .65rem 0 0 !important; text-align: center; }
  .hero-section { min-height: auto; padding-top: 65px; }
  .dashboard-shell { width: 100%; max-width: 760px; margin: 15px auto 0; transform: none; }
  .relationship-wrap { grid-template-columns: 1fr 90px 1fr; }
  .relationship-link { flex-direction: column; text-align: center; }.relationship-link i { transform: rotate(0deg); }
  .journey-flow { margin-top: 1rem; }
  .clinic-type-grid { grid-template-columns: repeat(2, 1fr); }
  .physio-panel { padding: 50px 35px; }.physio-visual { max-width: 450px; margin: auto; }
  .phone-wrap { max-width: 540px; margin: auto; }
  .demo-aside, .demo-form-wrap { padding: 45px; }
}

@media (max-width: 767.98px) {
  .section-padding { padding: 70px 0; }
  .section-heading { margin-bottom: 42px; }
  .hero-section h1 { font-size: 2.75rem; overflow-wrap: anywhere; }
  .dashboard-body { min-height: 460px; }
  .dashboard-sidebar { display: none; }
  .dashboard-main { padding: 14px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-lower { grid-template-columns: 1fr; }.insight-stack { display: grid; grid-template-columns: 1fr 1fr; }.branch-card { display: none; }
  .relationship-wrap { grid-template-columns: 1fr; }.relationship-link { flex-direction: row; }.relationship-link i { transform: rotate(90deg); }.identity-card { min-height: auto; }
  .journey-flow { grid-template-columns: repeat(2, 1fr); }.journey-flow::before { display: none; }
  .clinic-type-grid { grid-template-columns: 1fr 1fr; }.clinic-type-grid article { min-height: 170px; padding: 22px; }
  .physio-panel { padding: 42px 25px; }.check-grid { grid-template-columns: 1fr; }
  .communication-list { grid-template-columns: 1fr; }
  .comparison-wrap { grid-template-columns: 1fr; gap: 0; }.comparison-arrow { margin: -8px auto; transform: rotate(90deg); }.comparison-card { min-height: auto; }
  .demo-form-wrap { padding: 40px 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .3rem; }
  .floating-demo { display: flex; }
}

@media (max-width: 575.98px) {
  .container { padding-right: 20px; padding-left: 20px; }
  .navbar { min-height: 76px; }.brand-mark { width: 38px; height: 38px; }.brand-name { font-size: 1.05rem; }.brand-lockup small { font-size: .55rem; }
  .hero-section { padding: 52px 0 75px; }.hero-section h1 { font-size: clamp(2.3rem, 11.2vw, 2.75rem); }.hero-actions .btn { width: 100%; }.hero-assurances { flex-direction: column; gap: .55rem; }
  .dashboard-shell { border-radius: 16px; box-shadow: 0 25px 55px rgba(11,37,69,.17); }.dashboard-topbar { height: 54px; padding: 0 11px; }.dashboard-main { padding: 10px; }.dashboard-heading button { padding: .45rem; font-size: 0; }.dashboard-heading button i { font-size: .7rem; }.metric-card { padding: 9px 7px; }.metric-card > span { display: none; }.dashboard-lower { margin-top: 8px; }.patient-row { grid-template-columns: 27px 24px 1fr; }.patient-row em { display: none; }.insight-stack { grid-template-columns: 1fr; }
  .identity-card { padding: 28px; }
  .feature-card { min-height: 230px; padding: 26px; }
  .journey-flow { gap: 32px 14px; }.step-icon { width: 62px; height: 62px; }
  .clinic-type-grid { grid-template-columns: 1fr; }.clinic-type-grid article { min-height: 150px; }
  .physio-panel { padding: 38px 20px; border-radius: 22px; }.physio-visual { min-height: 330px; }.main-card { left: 50%; width: 245px; transform: translateX(-50%); }.floating-card { top: 55px; right: -10px; }.exercise-card { left: -8px; bottom: 22px; }
  .phone-wrap { min-height: 590px; }.phone { width: 280px; }.message-tags span:nth-child(1), .message-tags span:nth-child(3) { left: -8px; }.message-tags span:nth-child(2), .message-tags span:nth-child(4) { right: -8px; }
  .tenant-content { padding: 38px 24px; }.browser-bar > div { display: none; }.capability-grid { grid-template-columns: 1fr; }
  .comparison-card { padding: 28px 24px; }
  .demo-aside { padding: 42px 26px; }.demo-form-wrap { padding: 38px 22px; }.form-heading h2 { font-size: 1.65rem; }
  .floating-demo { right: 14px; bottom: 14px; }.floating-demo span { display: none; }.floating-demo { width: 48px; height: 48px; justify-content: center; padding: 0; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .floating-demo, .hero-actions, .site-footer { display: none !important; }
  body { background: #fff; color: #000; }
  .section-padding { padding: 30px 0; }
}
