html { scroll-behavior: smooth; }

[x-cloak], .cloak, .hidden { display: none !important; }

body {
  letter-spacing: 0;
}

button, a, input {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  height: clamp(48px, 5vw, 72px);
}

.brand-mark {
  position: absolute;
  left: 3.4%;
  top: 1.7%;
  display: block;
  width: clamp(36px, 4.25vw, 54px);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.primary-nav {
  position: absolute;
  top: clamp(18px, 2.45vw, 31px);
  left: 32.9%;
  display: flex;
  align-items: center;
  gap: clamp(21px, 2.6vw, 34px);
  font-size: clamp(12px, 1.18vw, 15px);
  font-weight: 700;
  color: #171923;
}

.primary-nav a,
.signin-link {
  transition: color .16s ease, opacity .16s ease;
}

.primary-nav a:hover,
.signin-link:hover {
  color: #527b9a;
}

.header-actions {
  position: absolute;
  top: clamp(18px, 2.45vw, 31px);
  right: 13.2%;
  display: flex;
  align-items: center;
  font-size: clamp(12px, 1.18vw, 15px);
  font-weight: 700;
}

.signin-link {
  color: #171923;
}

.hero-cta,
.login-submit,
.hero-cover-cta {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #6b93af, #4f7898);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(37, 64, 83, .28);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.hero-cta:hover,
.login-submit:hover,
.hero-cover-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37, 64, 83, .32);
  filter: saturate(1.04);
}

.hero-cover {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #eef5ff;
}

.hero-cta {
  margin-top: 30px;
  min-width: 224px;
  min-height: 57px;
  padding: 0 34px;
  font-size: 22px;
}

.store-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 224px;
  margin-top: 19px;
  color: #5b5f62;
}

.store-icon {
  width: 34px;
  height: 34px;
}

.hero-cover-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-copy-html {
  position: absolute;
  inset: 0;
}

.hero-copy-html h1 {
  position: absolute;
  left: 10.45%;
  top: 28.1%;
  width: 43%;
  color: #111722;
  font-size: clamp(24px, 3.1vw, 42px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy-html h1 span {
  display: block;
  white-space: nowrap;
}

.hero-copy-html p {
  position: absolute;
  left: 10.45%;
  top: 57.1%;
  width: 49%;
  color: #20232c;
  font-size: clamp(13px, 1.72vw, 24px);
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}

.hero-cover-cta {
  position: absolute;
  left: 10.25%;
  top: 70.2%;
  width: 17.9%;
  min-width: 150px;
  height: 13%;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  font-size: clamp(14px, 1.82vw, 25px);
}

.hero-store-icons {
  position: absolute;
  left: 17.6%;
  top: 86%;
  color: #5b5f62;
}

.hero-apple-icon {
  display: block;
  width: clamp(21px, 2.7vw, 34px);
  height: clamp(21px, 2.7vw, 34px);
}

.content-band,
.split-band,
.care-band,
.pricing-band {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 92px) 0;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-heading p,
.eyebrow {
  margin-bottom: 10px;
  color: #5f86a4;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-heading h2,
.split-band h2,
.care-band h2,
.pricing-band h2 {
  color: #122137;
  font-size: clamp(28px, 3.1vw, 44px);
  font-weight: 950;
  line-height: 1.08;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article,
.next-dose-card,
.empty-state,
.events-list,
.login-panel {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(83, 118, 144, .12);
  box-shadow: 0 13px 34px rgba(24, 49, 75, .12);
}

.feature-grid article {
  min-height: 230px;
  border-radius: 8px;
  padding: 27px;
}

.feature-grid h3 {
  margin-top: 18px;
  color: #142235;
  font-size: 21px;
  font-weight: 950;
}

.feature-grid p,
.split-band li,
.care-band p,
.pricing-band p {
  color: rgba(20, 34, 53, .72);
  font-size: 16px;
  line-height: 1.65;
}

.feature-icon {
  display: block;
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.pill-icon,
.check-icon,
.pill-drawing {
  position: relative;
}

.pill-icon::before,
.pill-drawing::before {
  content: "";
  position: absolute;
  width: 34px;
  height: 17px;
  border: 2px solid #285a81;
  border-radius: 999px;
  background: linear-gradient(90deg, #84c9ef 0 50%, #ffb45e 51%);
  transform: rotate(-42deg);
}

.check-icon::before {
  content: "";
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #69bea9;
}

.check-icon::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 8px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.split-band {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 54px;
  align-items: start;
  border-top: 1px solid rgba(83, 118, 144, .15);
}

.steps-list {
  display: grid;
  gap: 14px;
}

.steps-list li {
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 74px;
  border-radius: 8px;
  background: #fff;
  padding: 16px 19px;
  box-shadow: 0 10px 26px rgba(24, 49, 75, .08);
  font-weight: 800;
}

.steps-list span {
  display: inline-flex;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8f5ff;
  color: #527b9a;
  font-weight: 950;
}

.care-band {
  display: grid;
  grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
  gap: 58px;
  align-items: center;
  border-top: 1px solid rgba(83, 118, 144, .15);
}

.phone-frame {
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  box-shadow: 0 24px 42px rgba(15, 34, 52, .22);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.pricing-band {
  max-width: 760px;
  text-align: center;
  border-top: 1px solid rgba(83, 118, 144, .15);
}

.pricing-band .hero-cta {
  margin-top: 24px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 30px clamp(22px, 4vw, 72px);
  color: rgba(18, 33, 55, .58);
  font-size: 14px;
}

#login-modal:not(.hidden) > div { animation: pop .18s ease-out; }

@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-panel {
  width: min(100%, 390px);
  border-radius: 8px;
  padding: 25px;
}

.login-input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(16, 32, 51, .16);
  padding: 11px 13px;
  outline: none;
}

.login-input:focus {
  border-color: #5f88a8;
  box-shadow: 0 0 0 3px rgba(95, 136, 168, .16);
}

.login-submit {
  width: 100%;
  min-height: 45px;
  margin-top: 8px;
}

.dashboard-page {
  min-height: 100vh;
  color: #16304b;
  background:
    linear-gradient(180deg, #bde9ff 0, #eef8ff 275px, #fff 276px),
    #fff;
  padding-bottom: 86px;
}

.dashboard-hero {
  min-height: 264px;
  padding: 33px min(8vw, 36px) 28px;
  background:
    radial-gradient(circle at 76% 34%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 132px),
    linear-gradient(142deg, #b9ebff 0%, #eaf8ff 62%, #fff 100%);
}

.dashboard-topbar,
.dashboard-greeting,
.dashboard-shell,
.bottom-tabs {
  width: min(100%, 640px);
  margin: 0 auto;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-link {
  color: #17334f;
  font-size: 50px;
  font-weight: 300;
  line-height: .7;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.tiny-icon,
.logout-icon,
.bottom-tabs span {
  position: relative;
  display: inline-flex;
  width: 29px;
  height: 29px;
  align-items: center;
  justify-content: center;
  color: #17334f;
}

.sync-icon::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 3px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
}

.bell-icon::before {
  content: "";
  width: 19px;
  height: 20px;
  border: 3px solid currentColor;
  border-top-left-radius: 13px;
  border-top-right-radius: 13px;
  border-bottom: 0;
}

.bell-icon span {
  position: absolute;
  right: 1px;
  top: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #df8376;
}

.logout-icon::before,
.logout-icon::after {
  content: "";
  position: absolute;
}

.logout-icon::before {
  width: 20px;
  height: 20px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.logout-icon::after {
  width: 13px;
  height: 3px;
  background: currentColor;
  transform: rotate(45deg);
  right: -2px;
  bottom: 4px;
}

.dashboard-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
}

.dashboard-greeting h1 {
  color: #1f3a5f;
  font-size: clamp(34px, 9vw, 54px);
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: 0;
}

.dashboard-context {
  color: rgba(78, 145, 183, .96);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-subtitle {
  margin-top: 8px;
  max-width: 360px;
  color: rgba(31, 58, 95, .68);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.dashboard-greeting img {
  width: clamp(96px, 22vw, 132px);
  height: clamp(96px, 22vw, 132px);
  object-fit: cover;
  object-position: 58% 13%;
  border: 6px solid rgba(255, 255, 255, .95);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(26, 54, 83, .14);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  margin-top: -28px;
  padding: 0 min(4vw, 18px);
}

.dashboard-main {
  min-width: 0;
}

.dashboard-side-menu {
  position: sticky;
  top: 18px;
  display: grid;
  align-self: start;
  gap: 10px;
}

.side-menu-item {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(83, 118, 144, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .84);
  padding: 10px 12px;
  color: rgba(24, 49, 77, .68);
  font-size: 14px;
  font-weight: 950;
  text-align: left;
  box-shadow: 0 8px 22px rgba(24, 49, 75, .08);
}

.side-menu-item.active {
  background: #e6f4fb;
  color: #224965;
  box-shadow: 0 10px 26px rgba(24, 49, 75, .12);
}

.side-icon {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  color: currentColor;
}

.history-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.history-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(3px, -2px);
}

.medications-icon::before {
  content: "";
  width: 25px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 999px;
  transform: rotate(-42deg);
}

.medications-icon::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 12px;
  background: currentColor;
  transform: rotate(-42deg);
}

.schedule-icon::before {
  content: "";
  width: 24px;
  height: 23px;
  border: 2px solid currentColor;
  border-radius: 7px;
}

.schedule-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 15px;
  height: 2px;
  background: currentColor;
}

.dashboard-panel {
  display: none;
}

.dashboard-panel.active {
  display: block;
}

.next-dose-card {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 8px;
  padding: 18px 22px;
}

.next-dose-card #next-dose-when {
  color: #10253d;
  font-size: clamp(21px, 5vw, 28px);
  font-weight: 950;
  line-height: 1.12;
}

.next-dose-card h2 {
  color: rgba(25, 38, 52, .9);
  font-size: clamp(25px, 6vw, 35px);
  font-weight: 500;
  line-height: 1.1;
}

.next-dose-card p {
  margin-top: 4px;
  color: rgba(22, 48, 75, .6);
  font-weight: 700;
}

.dose-ring {
  position: relative;
  display: grid;
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#e0a24b 0 27%, #9cd1ee 27% 57%, #f1f6fa 57% 100%);
}

.dose-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
}

.dose-ring span {
  position: relative;
  z-index: 1;
  color: #16304b;
  font-size: 22px;
  font-weight: 950;
}

.dashboard-section {
  margin-top: 14px;
}

.dashboard-list {
  display: grid;
  gap: 14px;
}

.med-card {
  display: flex;
  min-height: 94px;
  align-items: center;
  gap: 17px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  padding: 13px 18px 13px 13px;
  box-shadow: 0 10px 26px rgba(24, 49, 75, .12);
}

.med-art {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  background: #c9f0ff;
}

.med-art::before {
  content: "";
  width: 41px;
  height: 22px;
  border: 3px solid #2a5a7b;
  border-radius: 999px;
  background: linear-gradient(90deg, #7ec6ed 0 50%, #ffb45e 51%);
  transform: rotate(-42deg);
}

.med-card h3 {
  color: #18314d;
  font-size: clamp(21px, 5vw, 27px);
  font-weight: 950;
  line-height: 1.05;
}

.med-card p {
  color: rgba(24, 49, 77, .74);
  font-size: 18px;
  line-height: 1.35;
}

.med-card .chevron {
  margin-left: auto;
  color: rgba(24, 49, 77, .55);
  font-size: 37px;
  font-weight: 300;
}

.med-chips {
  display: flex;
  gap: 5px;
  margin-top: 7px;
}

.med-chips span {
  display: inline-flex;
  min-width: 23px;
  height: 17px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #d9f3ef;
  color: #4d9988;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-loading,
.empty-state,
.dashboard-error {
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.empty-state h2,
.section-heading h2 {
  color: #18314d;
  font-size: 22px;
  font-weight: 950;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0 10px;
}

.section-heading p {
  margin-bottom: 2px;
  color: rgba(78, 145, 183, .92);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.empty-state p {
  margin-top: 6px;
  color: rgba(24, 49, 77, .62);
}

.pill-drawing {
  display: inline-flex;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #c9f0ff;
}

.dashboard-error {
  background: #fff2ef;
  color: #b95843;
  text-align: left;
}

.recent-section,
.schedule-section {
  margin-bottom: 28px;
}

.adherence-card {
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(228, 244, 253, .96));
  padding: 18px;
  box-shadow: 0 10px 26px rgba(24, 49, 75, .12);
}

.adherence-card .section-heading {
  margin: 0 0 16px;
}

.adherence-percent {
  display: grid;
  min-width: 72px;
  min-height: 52px;
  place-items: center;
  border-radius: 18px;
  background: #dff5ef;
  color: #377c70;
  font-size: 24px;
  font-weight: 950;
}

.adherence-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  height: 142px;
  align-items: end;
  padding: 4px 2px 0;
}

.adherence-day {
  display: grid;
  min-width: 0;
  gap: 8px;
  justify-items: center;
}

.adherence-bar-track {
  position: relative;
  width: 100%;
  max-width: 34px;
  height: 108px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(156, 209, 238, .28);
}

.adherence-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 8px;
  border-radius: inherit;
  background: linear-gradient(180deg, #9cd1ee, #4e91b7);
}

.adherence-day span:last-child,
.adherence-summary {
  color: rgba(24, 49, 77, .62);
  font-size: 12px;
  font-weight: 900;
}

.adherence-summary {
  margin-top: 12px;
  font-size: 13px;
}

.events-list {
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 26px rgba(24, 49, 75, .12);
}

.event-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 18px;
  border-top: 1px solid rgba(24, 49, 77, .07);
}

.event-row:first-child {
  border-top: 0;
}

.event-dot {
  display: grid;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #dff5ef;
  color: #4d9988;
  font-weight: 950;
}

.event-row.status-missed .event-dot {
  background: #fff0e7;
  color: #bf6b3d;
}

.event-row.status-skipped .event-dot {
  background: #eef2f5;
  color: #728294;
}

.event-row.status-pending .event-dot {
  background: #eaf4fb;
  color: #4e91b7;
}

.event-row h3 {
  color: #18314d;
  font-weight: 900;
}

.event-row p {
  color: rgba(24, 49, 77, .62);
  font-size: 13px;
}

.schedule-list {
  display: grid;
  gap: 12px;
}

.schedule-row {
  display: grid;
  grid-template-columns: minmax(74px, auto) minmax(0, 1fr) 36px;
  align-items: center;
  gap: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  padding: 14px;
  box-shadow: 0 10px 26px rgba(24, 49, 75, .12);
}

.schedule-time {
  display: grid;
  min-height: 54px;
  place-items: center;
  border-radius: 16px;
  background: #e6f4fb;
  color: #224965;
  font-size: 14px;
  font-weight: 950;
  text-align: center;
}

.schedule-body {
  min-width: 0;
}

.schedule-body h3 {
  color: #18314d;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.1;
}

.schedule-body p {
  margin-top: 4px;
  color: rgba(24, 49, 77, .62);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.schedule-count {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #dff5ef;
  color: #377c70;
  font-weight: 950;
}

.clock-drawing {
  position: relative;
  display: inline-flex;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  align-items: center;
  justify-content: center;
  border: 4px solid #4e91b7;
  border-radius: 50%;
  background: #f8fbff;
}

.clock-drawing::before {
  content: "";
  width: 17px;
  height: 20px;
  border-left: 4px solid #224965;
  border-bottom: 4px solid #224965;
  transform: translate(4px, -3px);
}

.guardian-empty {
  margin-top: 0;
}

.guardian-drawing {
  position: relative;
  display: inline-flex;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: #e6f4fb;
}

.guardian-drawing::before {
  content: "";
  position: absolute;
  top: 14px;
  width: 19px;
  height: 19px;
  border: 3px solid #4e91b7;
  border-radius: 50%;
}

.guardian-drawing::after {
  content: "";
  position: absolute;
  bottom: 12px;
  width: 38px;
  height: 21px;
  border: 3px solid #4e91b7;
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
}

.bottom-tabs {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  display: flex;
  height: 74px;
  align-items: center;
  justify-content: space-around;
  transform: translateX(-50%);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -10px 25px rgba(24, 49, 75, .12);
}

.bottom-tabs span {
  color: rgba(24, 49, 77, .58);
}

.bottom-tabs .active {
  color: #4e91b7;
}

.tab-pill::before,
.tab-capsule::before {
  content: "";
  position: absolute;
  width: 25px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 999px;
  transform: rotate(-42deg);
}

.tab-capsule::before {
  background: transparent;
  transform: rotate(-34deg);
}

.tab-clock::before {
  content: "";
  width: 25px;
  height: 25px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.tab-clock::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(3px, -2px);
}

.tab-user::before {
  content: "";
  position: absolute;
  top: 4px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.tab-user::after {
  content: "";
  position: absolute;
  bottom: 3px;
  width: 23px;
  height: 12px;
  border: 2px solid currentColor;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border-bottom: 0;
}

.tab-gear::before {
  content: "";
  width: 25px;
  height: 25px;
  border: 3px dotted currentColor;
  border-radius: 50%;
}

@media (max-width: 900px) {
  .primary-nav {
    display: none;
  }

  .header-actions {
    right: 6%;
  }

  .hero-copy-html h1 {
    font-size: clamp(22px, 3.7vw, 32px);
  }

  .hero-copy-html p {
    font-size: clamp(12px, 2.15vw, 18px);
  }

  .hero-cover-cta {
    min-width: 92px;
    font-size: clamp(12px, 2.05vw, 17px);
  }

  .feature-grid,
  .split-band,
  .care-band {
    grid-template-columns: 1fr;
  }

  .care-band {
    gap: 30px;
  }

  .side-menu-item {
    min-height: 54px;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 5.4vw;
  }

  .header-actions {
    top: 2.45vw;
    right: 13.2%;
    font-size: 1.18vw;
  }

  .hero-copy-html h1 {
    font-size: 3.1vw;
  }

  .hero-copy-html p {
    font-size: 1.72vw;
  }

  .hero-cover-cta {
    min-width: 0;
    min-height: 0;
    font-size: 1.82vw;
  }

  .hero-apple-icon {
    width: 2.7vw;
    height: 2.7vw;
  }

  .hero-cta {
    width: 100%;
    min-width: 0;
  }

  .content-band,
  .split-band,
  .care-band,
  .pricing-band {
    width: min(100% - 34px, 1120px);
  }

  .dashboard-hero {
    min-height: 254px;
    padding-top: 29px;
  }

  .dashboard-shell {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
    padding: 0 18px;
  }

  .dashboard-main {
    padding: 0;
  }

  .side-menu-item {
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 9px 5px;
    font-size: 12px;
    text-align: center;
  }

  .next-dose-card,
  .med-card {
    border-radius: 16px;
  }
}

/* ─────────────────────────────────────────────────────────────────
   Dashboard v2 (2026-05-12 user redesign)
   - Persistent left sidebar (History / Medications / Schedule)
   - Top navbar with face logo on the LEFT
   - Removed: back arrow, sync icon, bell icon, search ornament
   - History panel gets a month-grid calendar mirroring the iOS
     HistoryCalendarView with adherence dots + day-filter
   - Responsive: sidebar collapses to a hamburger drawer < 880px

   New class names live under `.dash-*` and `.sidebar-*` so they
   don't collide with the legacy `.dashboard-*` rules above (the
   v1 layout's CSS is now dead but kept temporarily to avoid a
   massive surgical-delete diff in the same PR).
   ───────────────────────────────────────────────────────────── */

/* Override the v1 .dashboard-page background which had a
   240px-tall blue gradient at the top. v2 is full-bleed white
   under a flat navbar, since the gradient was tied to the v1
   "dashboard-hero" block that no longer renders. */
.dashboard-page {
  min-height: 100vh;
  background: #fff;
  padding-bottom: 0;
  color: #16304b;
}

/* ── Top navbar ────────────────────────────────────────────── */
.dash-navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px clamp(14px, 3vw, 28px);
  background: #fff;
  border-bottom: 1px solid rgba(24, 49, 75, .08);
  box-shadow: 0 2px 6px rgba(24, 49, 75, .04);
}

.sidebar-toggle {
  display: none;       /* shown only at < 880px */
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.sidebar-toggle span {
  width: 22px;
  height: 2px;
  background: #16304b;
  border-radius: 2px;
}

.dash-brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}
.dash-brand img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  object-position: 58% 13%;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(24, 49, 75, .12);
}
.dash-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-user-name {
  color: rgba(24, 49, 75, .7);
  font-size: 14px;
  font-weight: 600;
}
.dash-signout {
  background: transparent;
  border: 1px solid rgba(24, 49, 75, .18);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #1f3a5f;
  cursor: pointer;
}
.dash-signout:hover {
  background: rgba(24, 49, 75, .04);
}

/* ── Shell: sidebar + main ──────────────────────────────────── */
.dash-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 60px);
}

.dash-sidebar {
  position: sticky;
  top: 60px;
  align-self: start;
  height: calc(100vh - 60px);
  padding: 18px 14px;
  background: #f7f9fc;
  border-right: 1px solid rgba(24, 49, 75, .06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  color: rgba(24, 49, 75, .68);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: background .12s ease, color .12s ease;
}
.sidebar-link:hover {
  background: rgba(24, 49, 75, .05);
  color: #1f3a5f;
}
.sidebar-link.active {
  background: #e6f4fb;
  color: #1f3a5f;
}
.sidebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 50, .35);
  z-index: 25;
  border: 0;
  padding: 0;
}

/* ── Main content ──────────────────────────────────────────── */
.dash-main {
  padding: clamp(20px, 3vw, 36px) clamp(18px, 4vw, 44px) 60px;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}

.dash-page-head {
  margin-bottom: 22px;
}
.dash-context {
  color: #4e91b7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dash-page-head h1 {
  color: #1f3a5f;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  margin-top: 6px;
}
.dash-subtitle {
  margin-top: 6px;
  color: rgba(31, 58, 95, .68);
  font-size: 14px;
  font-weight: 500;
}

.patient-switcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid rgba(24, 49, 75, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  padding: 7px 10px 7px 13px;
  box-shadow: 0 6px 18px rgba(24, 49, 75, .05);
}

.patient-switcher label {
  color: rgba(31, 58, 95, .62);
  font-size: 12px;
  font-weight: 800;
}

.patient-switcher select {
  min-width: 150px;
  border: 0;
  background: transparent;
  color: #1f3a5f;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  outline: 0;
}

.relationship-summary {
  display: grid;
  max-width: 680px;
  gap: 4px;
  margin-top: 12px;
  border: 1px solid rgba(78, 145, 183, .18);
  border-radius: 14px;
  background: rgba(230, 244, 251, .72);
  padding: 12px 14px;
  color: rgba(31, 58, 95, .72);
  font-size: 13px;
  line-height: 1.4;
}

.relationship-summary strong {
  color: #1f3a5f;
  font-weight: 850;
}

.relationship-summary span {
  color: rgba(31, 58, 95, .66);
}

/* ── Comparisons panel ─────────────────────────────────────── */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.comparison-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  border: 1px solid rgba(24, 49, 75, .08);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  text-align: left;
  color: #1f3a5f;
  box-shadow: 0 6px 18px rgba(24, 49, 75, .05);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.comparison-card:hover {
  transform: translateY(-1px);
  border-color: rgba(78, 145, 183, .28);
  box-shadow: 0 10px 24px rgba(24, 49, 75, .09);
}

.comparison-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  overflow: hidden;
  border-radius: 8px;
  background: #eef6fb;
  border: 1px solid rgba(24, 49, 75, .08);
}

.comparison-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-thumb-empty {
  padding: 8px;
  color: rgba(31, 58, 95, .52);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.comparison-card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.comparison-card-body strong {
  overflow: hidden;
  color: #1f3a5f;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-card-body > span:not(.comparison-chips) {
  color: rgba(31, 58, 95, .6);
  font-size: 12px;
  font-weight: 650;
}

.comparison-chips,
.comparison-modal-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.comparison-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(24, 49, 75, .07);
  color: rgba(31, 58, 95, .74);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}

.comparison-chip.good {
  background: rgba(56, 161, 105, .12);
  color: #24704a;
}

.comparison-chip.bad {
  background: rgba(197, 48, 48, .12);
  color: #9b2c2c;
}

.comparison-chip.setting {
  background: rgba(78, 145, 183, .14);
  color: #2b6587;
}

.comparison-modal-open {
  overflow: hidden;
}

.comparison-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 27, 43, .55);
}

.comparison-modal.hidden {
  display: none;
}

.comparison-modal-panel {
  width: min(920px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(12, 27, 43, .32);
  padding: clamp(16px, 3vw, 24px);
}

.comparison-modal-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 81;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #1f3a5f;
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(12, 27, 43, .22);
  cursor: pointer;
}

.comparison-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.comparison-modal-head p {
  color: #4e91b7;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.comparison-modal-head h2 {
  color: #1f3a5f;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 850;
  line-height: 1.1;
  margin-top: 4px;
}

.comparison-modal-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.comparison-modal-image {
  overflow: hidden;
  border: 1px solid rgba(24, 49, 75, .08);
  border-radius: 8px;
  background: #f7f9fc;
}

.comparison-pan-frame,
.comparison-modal-missing {
  display: flex;
  width: 100%;
  aspect-ratio: 4 / 3;
  align-items: center;
  justify-content: center;
  background: #eef6fb;
  color: rgba(31, 58, 95, .55);
  font-weight: 800;
}

.comparison-pan-frame {
  position: relative;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.comparison-pan-frame:active {
  cursor: grabbing;
}

.comparison-pan-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 0 0;
  user-select: none;
  will-change: transform;
}

.comparison-image-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 0;
}

.comparison-image-toolbar button {
  min-width: 34px;
  height: 30px;
  border: 1px solid rgba(24, 49, 75, .12);
  border-radius: 8px;
  background: #fff;
  color: #1f3a5f;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.comparison-image-toolbar button:hover:not(:disabled) {
  background: rgba(78, 145, 183, .1);
}

.comparison-image-toolbar button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.comparison-image-toolbar span {
  min-width: 72px;
  color: rgba(31, 58, 95, .62);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.comparison-modal-image figcaption {
  padding: 10px 12px;
  color: rgba(31, 58, 95, .68);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.comparison-modal-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.comparison-modal-meta div {
  border: 1px solid rgba(24, 49, 75, .08);
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
}

.comparison-modal-meta span {
  display: block;
  color: rgba(31, 58, 95, .52);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.comparison-modal-meta strong {
  display: block;
  margin-top: 3px;
  color: #1f3a5f;
  font-size: 14px;
  font-weight: 850;
}

@media (max-width: 640px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .comparison-modal {
    align-items: flex-end;
    padding: 10px;
  }
  .comparison-modal-panel {
    max-height: calc(100vh - 20px);
  }
  .comparison-modal-head,
  .comparison-modal-images,
  .comparison-modal-meta {
    grid-template-columns: 1fr;
  }
  .comparison-modal-head {
    display: grid;
  }
  .comparison-modal-close {
    top: 12px;
    right: 12px;
  }
}

/* ── Calendar (History panel) ──────────────────────────────── */
.calendar-card {
  max-width: 680px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(24, 49, 75, .08);
  box-shadow: 0 6px 18px rgba(24, 49, 75, .06);
  margin-bottom: 18px;
}
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.calendar-head h2 {
  color: #1f3a5f;
  font-size: 16px;
  font-weight: 700;
}
.cal-nav {
  background: transparent;
  border: 0;
  font-size: 21px;
  color: #1f3a5f;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
}
.cal-nav:hover {
  background: rgba(24, 49, 75, .06);
}
.cal-weekday-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(24, 49, 75, .45);
  text-align: center;
  padding: 2px 0;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-cell {
  position: relative;
  min-height: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: #1f3a5f;
  cursor: pointer;
  padding: 0;
}
.cal-cell:hover:not(.cal-cell-empty) {
  background: rgba(24, 49, 75, .05);
}
.cal-cell-empty {
  cursor: default;
  visibility: hidden;
}
.cal-cell.today {
  font-weight: 800;
  outline: 1px solid rgba(78, 145, 183, .5);
  outline-offset: -1px;
}
.cal-cell.selected {
  background: #4e91b7;
  color: #fff;
}
.cal-cell.selected:hover {
  background: #437d9f;
}
.cal-cell .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
}
.cal-day-number {
  line-height: 1;
}

.cal-day-summary {
  display: block;
  max-width: 100%;
  min-height: 18px;
  color: rgba(24, 49, 77, .62);
  font-size: 8.5px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
}

.cal-cell.selected .cal-day-summary {
  color: rgba(255, 255, 255, .9);
}
.cal-cell.selected .dot {
  outline: 1px solid rgba(255,255,255,.7);
  outline-offset: 1px;
}
.dot-green  { background: #38a169; }
.dot-orange { background: #d69e2e; }
.dot-red,
.event-row.status-mismatch .event-dot,
.event-row.status-mismatched .event-dot {
  background: #c53030;
}
.event-row.status-mismatch .event-dot,
.event-row.status-mismatched .event-dot {
  color: #fff;
}

.cal-legend {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: rgba(24, 49, 75, .65);
}
.cal-legend i.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.cal-clear {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(24, 49, 75, .18);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #1f3a5f;
  cursor: pointer;
}
.cal-clear:hover { background: rgba(24, 49, 75, .04); }

/* ── Responsive: collapse sidebar to a slide-out drawer ─── */
@media (max-width: 880px) {
  .dash-shell {
    grid-template-columns: 1fr;
  }
  .sidebar-toggle {
    display: inline-flex;
  }
  .dash-user-name {
    display: none;       /* save room for the sign-out button */
  }
  .dash-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 260px;
    transform: translateX(-100%);
    transition: transform .22s ease;
    z-index: 26;
    border-right: 1px solid rgba(24, 49, 75, .12);
    box-shadow: 0 8px 24px rgba(24, 49, 75, .12);
  }
  .dash-sidebar.open {
    transform: translateX(0);
  }
  .sidebar-backdrop.open {
    display: block;
  }
  .dash-main {
    padding: 18px 14px 50px;
  }
  .dash-page-head h1 {
    font-size: clamp(22px, 6vw, 30px);
  }
  .calendar-card {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .dash-navbar {
    padding: 8px 10px;
  }
  .dash-brand img {
    width: 32px;
    height: 32px;
  }
}
