:root {
  --teal: #0F6E5C;
  --teal-dark: #0A4A3E;
  --teal-soft: #E3F0EC;
  --saffron: #F2A33C;
  --saffron-soft: #FDF1DD;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-tint: #F2F7F5;
  --ink: #000000;
  --muted: #56655F;
  --line: #E1EAE6;
  --radius: 18px;
  --shadow: 0 18px 50px -22px rgba(15, 60, 50, .35);
}

* { box-sizing: border-box; }

body.landing {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFDFC 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.landing h1, .landing h2, .landing h3, .landing .brand {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin: 0;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  display: block;  /* override Bootstrap's .nav { display:flex } on app pages */
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 247, 245, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-size: 1.45rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand .dot { color: var(--teal); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: .98rem;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px -12px rgba(15,110,92,.7); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--teal); }
.btn-outline { background: #fff; color: var(--teal); border-color: var(--line); }
.btn-outline:hover { border-color: var(--teal); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero { padding: 60px 0 36px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--saffron-soft); color: #9a5a00;
  font-size: .82rem; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.4rem); font-weight: 700; }
.hero h1 .accent { color: var(--teal); }
.lead { font-size: 1.12rem; color: var(--muted); margin: 16px 0 22px; max-width: 44ch; }
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.assurance { display: flex; gap: 28px; margin-top: 22px; flex-wrap: wrap; }
.assurance div { font-size: .9rem; color: var(--muted); }
.assurance b { display: block; font-family: 'Bricolage Grotesque', sans-serif; color: var(--ink); font-size: 1.5rem; }

/* ---------- phone / whatsapp mock ---------- */
.phone {
  background: #fff; border-radius: 34px; padding: 12px;
  border: 1px solid var(--line);
  max-width: 416px; margin: 0 0 0 auto; position: relative;
  box-shadow:
    0 2px 6px rgba(15,60,50,.06),
    0 40px 80px -28px rgba(10,74,62,.55);
}
/* soft contact-shadow on the ground so the phone is anchored, not floating */
.phone::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -34px; height: 46px;
  z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10,74,62,.30), transparent 75%);
  filter: blur(4px);
}
.chat { background: #ECE5DD; border-radius: 24px; overflow: hidden; }
.chat-head {
  background: #075E54; color: #fff; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
}
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: #25D366;
  display: grid; place-items: center; font-size: 1.1rem;
}
.chat-head .name { font-weight: 600; font-size: .98rem; }
.chat-head .status { font-size: .74rem; opacity: .8; }
.chat-body { padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; min-height: 320px; }
.bubble {
  max-width: 82%; padding: 9px 13px; border-radius: 12px; font-size: .9rem;
  box-shadow: 0 1px 1px rgba(0,0,0,.08); position: relative;
  opacity: 0; transform: translateY(8px); animation: pop .5s ease forwards;
}
.bubble .time { display: block; font-size: .65rem; color: #667; text-align: right; margin-top: 3px; }
.bubble.them { background: #fff; align-self: flex-start; border-top-left-radius: 3px; }
.bubble.me { background: #DCF8C6; align-self: flex-end; border-top-right-radius: 3px; }
.bubble.alert { background: #FDECEC; align-self: flex-start; border-top-left-radius: 3px; color: #8a1f1f; }
.bubble:nth-child(1) { animation-delay: .25s; }
.bubble:nth-child(2) { animation-delay: .7s; }
.bubble:nth-child(3) { animation-delay: 1.15s; }
.tick { color: #34B7F1; font-weight: 700; }
@keyframes pop { to { opacity: 1; transform: translateY(0); } }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head .label {
  text-transform: uppercase; letter-spacing: .12em; font-size: .76rem;
  font-weight: 700; color: var(--teal);
}
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); font-weight: 700; margin-top: 12px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 12px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
  color: var(--teal); background: var(--teal-soft);
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font-size: 1.1rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

.who {
  background: var(--teal-dark); color: #fff; border-radius: 28px; padding: 56px 52px;
  display: grid; grid-template-columns: .82fr 1.18fr; gap: 36px 56px; align-items: start;
}
.who h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); position: sticky; top: 96px; }
.who-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 0; }
.who-item { display: flex; gap: 14px; align-items: flex-start; }
.who-item .ic { color: var(--saffron); font-size: 1.3rem; flex-shrink: 0; }
.who-item p { margin: 0; color: rgba(255,255,255,.82); }
.who-item b { color: #fff; }

/* ---------- pricing ---------- */
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 44px; max-width: 460px; margin: 0 auto; text-align: center;
  box-shadow: var(--shadow);
}
.price-card .tag {
  display: inline-block; background: var(--saffron-soft); color: #9a5a00;
  font-weight: 600; font-size: .82rem; padding: 6px 14px; border-radius: 999px;
}
.price { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 3.4rem; margin: 18px 0 4px; color: var(--ink); }
.price span { font-size: 1.1rem; color: var(--muted); font-family: 'Inter'; font-weight: 500; }
/* the rupee amount must stay big like the price; only the /month suffix is small */
.price span.amt { font-size: inherit; color: inherit; font-family: inherit; font-weight: inherit; }
.price-list { list-style: none; padding: 0; margin: 24px 0 28px; text-align: left; }
.price-list li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; color: var(--muted); }
.price-list li::before { content: '✓'; color: var(--teal); font-weight: 700; }

.billing-toggle {
  display: inline-flex; gap: 4px; margin: 0 auto 36px; padding: 5px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  position: relative; left: 50%; transform: translateX(-50%);
}
.bt-opt {
  border: 0; background: transparent; cursor: pointer; font: inherit; font-weight: 600;
  color: var(--muted); padding: 9px 20px; border-radius: 999px; transition: all .15s ease;
}
.bt-opt.is-active { background: var(--teal); color: #fff; }
.bt-save { font-size: .72rem; font-weight: 700; opacity: .9; margin-left: 4px; }

.price-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  max-width: 1080px; margin: 0 auto; align-items: stretch;
}
.price-grid .price-card { display: flex; flex-direction: column; }
.price-grid .price-list { flex: 1 1 auto; }
.price-card .plan-feature {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); margin-top: 4px;
}
.price-grid .price-card { max-width: none; margin: 0; }
.price-card.is-featured { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), var(--shadow); }
.tag-featured { background: var(--teal) !important; color: #fff !important; }
.plan-name {
  margin-top: 16px; font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
  text-transform: uppercase; color: var(--teal);
}
.price-card .price { margin: 6px 0 2px; }
.price-sub { color: var(--muted); font-size: .92rem; margin-bottom: 4px; }

@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; max-width: 460px; }
}

.packs-link {
  color: #9a5a00; font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
  transition: color .15s ease;
}
.packs-link:hover { color: var(--teal); }

/* one-time packs page */
.pack-group { margin-bottom: 48px; }
.pack-group-head { text-align: center; max-width: 620px; margin: 0 auto 24px; }
.pack-group-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; }
.pack-group-head p { color: var(--muted); margin-top: 6px; }
.pack-cards {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 32px;
  max-width: 820px; margin: 0 auto; align-items: stretch;
}
.pack-card { display: flex; flex-direction: column; padding: 34px; flex: 0 1 360px; }
.pack-card .price-list { flex: 1 1 auto; }
@media (max-width: 720px) { .pack-card { flex-basis: 100%; max-width: 380px; } }

.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px;
  max-width: 860px; margin: 32px auto 0;
}
.trust-item { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; font-weight: 500; }
.trust-item span { font-size: 1.05rem; }
.trust-note { text-align: center; color: var(--muted); margin: 16px auto 0; max-width: 560px; font-size: .92rem; }

/* ---------- medicine autocomplete ---------- */
.med-ac {
  position: absolute; z-index: 1080; max-height: 280px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 4px;
}
.med-ac-item { padding: 8px 12px; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; }
.med-ac-item:hover { background: var(--saffron-soft); }
.med-ac-name { font-weight: 600; font-size: .9rem; }
.med-ac-sub { font-size: .76rem; color: var(--muted); }
/* "Can't find it — use what you typed" fallback row */
.med-ac-custom { border-top: 1px dashed var(--line); margin-top: 2px; }
.med-ac-custom .med-ac-name { color: var(--saffron, #c2691a); }

/* ---------- dashboard ---------- */
.dash-head { margin-bottom: 24px; }
.dash-head h1 { font-size: 1.9rem; font-weight: 700; }
.dash-head p { color: var(--muted); margin-top: 4px; }
.dash-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.dash-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dash-card-head h2 { font-size: 1.15rem; margin: 0; }
.sub-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-radius: 18px; padding: 22px 24px; margin-bottom: 20px; }
.sub-banner.active { background: var(--teal-soft); border: 1px solid #bfe0d5; }
.sub-banner.inactive { background: var(--saffron-soft); border: 1px solid #f1ddb8; }
.sub-banner h2 { font-size: 1.1rem; margin: 0 0 2px; }
.sub-banner p { margin: 0; color: var(--muted); font-size: .92rem; }
.pill { display: inline-block; font-size: .76rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.pill-active { background: var(--teal); color: #fff; }
.pill-inactive { background: #b07a16; color: #fff; }

.patient-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.patient-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.patient-card .pname { font-weight: 700; font-size: 1.05rem; }
.patient-card .pmeta { color: var(--muted); font-size: .88rem; }
.patient-card .ptag { display: inline-block; font-size: .72rem; font-weight: 600; background: var(--surface-tint); color: var(--muted); padding: 3px 10px; border-radius: 999px; }
.patient-card .pactions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.dash-empty { text-align: center; padding: 36px 20px; }
.dash-empty .demoji { font-size: 2.6rem; }
.dash-empty p { color: var(--muted); margin: 10px 0 18px; }

/* ---------- admin (standalone shell) ---------- */
.admin-body { margin: 0; display: flex; min-height: 100vh; background: #F4F7F6;
  font-family: 'Inter', system-ui, sans-serif; color: var(--ink); }
.admin-sidebar { width: 240px; flex-shrink: 0; background: var(--teal-dark); color: #fff;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.admin-logo { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.4rem;
  color: #fff; text-decoration: none; padding: 22px 22px 18px; display: flex; align-items: baseline; gap: 2px;
  border-bottom: 1px solid rgba(255,255,255,.12); }
.admin-logo span { color: #7fd1bd; }
.admin-logo small { font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-left: 6px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; padding: 14px 12px; flex: 1; overflow-y: auto; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px;
  color: rgba(255,255,255,.72); text-decoration: none; font-weight: 500; font-size: .92rem; }
.admin-nav a i { font-size: 1.05rem; width: 20px; text-align: center; opacity: .9; }
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav a.active { background: rgba(255,255,255,.16); color: #fff; font-weight: 600; }
.admin-nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.4); padding: 16px 14px 6px; font-weight: 700; }
.admin-side-foot { padding: 14px 12px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 2px; }
.admin-side-foot a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .88rem; padding: 8px 14px; border-radius: 8px; }
.admin-side-foot a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-logout { width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  color: rgba(255,255,255,.7); font: inherit; font-size: .88rem; padding: 8px 14px; border-radius: 8px; }
.admin-logout:hover { background: rgba(255,255,255,.08); color: #fff; }

.admin-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { height: 64px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px; position: sticky; top: 0; z-index: 10; }
.admin-search { position: relative; flex: 1; max-width: 420px; }
.admin-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.admin-search input { width: 100%; padding: 9px 14px 9px 38px; border: 1px solid var(--line);
  border-radius: 10px; background: #F6F8F8; font-size: .92rem; }
.admin-search input:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(15,110,92,.1); }
.admin-profile { display: flex; align-items: center; gap: 10px; }
.admin-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-weight: 700; }
.admin-profile-meta { display: flex; flex-direction: column; line-height: 1.2; }
.admin-profile-meta b { font-size: .9rem; }
.admin-profile-meta span { font-size: .75rem; color: var(--muted); }
.admin-page { padding: 28px; max-width: 1320px; width: 100%; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-page > .dash-head h1 { font-size: 1.6rem; }

@media (max-width: 820px) {
  .admin-body { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; flex: none; }
  .admin-nav a span { display: none; }
}

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 600; }
.chip.on, .chip:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

.invoice-toolbar { display: flex; justify-content: space-between; margin-bottom: 16px; }
.invoice-sheet { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 40px; max-width: 760px; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--line); padding-bottom: 22px; }
.inv-brand { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.5rem; }
.inv-brand span { color: var(--teal); }
.inv-title { text-align: right; }
.inv-title h1 { font-size: 1.1rem; letter-spacing: .1em; color: var(--muted); margin: 0 0 6px; }
.inv-muted { color: var(--muted); font-size: .88rem; line-height: 1.7; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
.inv-label { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.inv-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.inv-table th, .inv-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); }
.inv-table th.r, .inv-table td.r { text-align: right; }
.inv-table thead th { background: var(--surface-tint); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.inv-totals { margin-left: auto; max-width: 320px; margin-top: 18px; }
.inv-totals div { display: flex; justify-content: space-between; padding: 7px 0; }
.inv-totals .inv-grand { border-top: 2px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 1.15rem; }
.inv-foot { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 16px; }

@media (max-width: 820px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; }
  .admin-side nav { flex-direction: row; flex-wrap: wrap; }
  .admin-cols, .inv-parties { grid-template-columns: 1fr; }
}
@media print {
  .admin-sidebar, .admin-topbar, .invoice-toolbar { display: none !important; }
  .admin-body, .admin-content { display: block; }
  .admin-page { padding: 0; }
  .invoice-sheet { border: 0; padding: 0; max-width: none; }
  body { background: #fff; }
}

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.astat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(16,40,34,.04); display: flex; flex-direction: column; gap: 2px; position: relative; }
.astat .aic { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; font-size: 1.1rem; background: var(--teal-soft); color: var(--teal); }
.astat .alabel { color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.astat .anum { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.9rem; color: var(--ink); line-height: 1.1; margin-top: 4px; }
.astat.is-warn .aic { background: #FDECEC; color: #c0392b; }
.astat.is-warn .anum { color: #c0392b; }
@media (max-width: 1000px) { .admin-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .admin-stats { grid-template-columns: 1fr; } }

/* admin tables + status badges (Tabler/Stripe style) */
.admin-page .dash-card { box-shadow: 0 1px 2px rgba(16,40,34,.04); border-radius: 14px; }
.admin-page .table { font-size: .92rem; }
.admin-page .table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); }
.admin-page .table tbody tr:hover { background: #F7FAF9; }
.admin-page .table td, .admin-page .table th { padding: 12px 14px; vertical-align: middle; }
.admin-page code { background: #F1F4F3; padding: 2px 7px; border-radius: 6px; font-size: .82rem; color: #44524d; }
.s-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; text-transform: capitalize; }
.s-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-responded, .s-active, .s-captured, .s-sent-ok { background: #E6F4EE; color: #197a55; }
.s-missed, .s-failed, .s-cancelled { background: #FDECEC; color: #c0392b; }
.s-pending, .s-sent, .s-inactive, .s-authorized { background: #FBF1DC; color: #9a6700; }
.s-expired, .s-refunded { background: #EEF0F2; color: #5b6770; }

/* ---------- onboarding wizard ---------- */
.wiz { max-width: 620px; margin: 0 auto; }
.wiz-progress { margin-bottom: 28px; }
.wiz-bar { height: 8px; background: var(--surface-tint); border-radius: 999px; overflow: hidden; }
.wiz-bar span { display: block; height: 100%; background: var(--teal); border-radius: 999px; transition: width .3s ease; }
.wiz-stepno { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.wiz-step { display: none; }
.wiz-step.is-active { display: block; animation: wizFade .25s ease; }
@keyframes wizFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wiz-step h2 { font-size: 1.7rem; font-weight: 700; }
.wiz-sub { color: var(--muted); margin: 8px 0 24px; }
.wiz-field { margin-bottom: 18px; }
.wiz-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.wiz-field .form-control { border-radius: 12px; padding: 12px 14px; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice-grid-sm .choice-btn { flex-direction: row; padding: 14px; }
.choice-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 20px; border: 2px solid var(--line); border-radius: 16px; background: #fff;
  cursor: pointer; text-align: left; transition: border-color .15s, background .15s;
}
.choice-btn:hover { border-color: #bcd6cd; }
.choice-btn.is-selected { border-color: var(--teal); background: var(--teal-soft, #e9f3ef); }
.choice-emoji { font-size: 1.6rem; }
.choice-note { font-size: .82rem; color: var(--muted); font-weight: 400; }

.wiz-link { background: none; border: 0; color: var(--teal); font-weight: 600; cursor: pointer; padding: 4px 0; }
.wiz-add {
  width: 100%; padding: 14px; border: 2px dashed var(--line); border-radius: 14px;
  background: #fff; color: var(--teal); font-weight: 600; cursor: pointer; margin-top: 6px;
}
.wiz-add:hover { border-color: var(--teal); }

.med-card { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 16px; background: var(--surface); }
.med-remove { position: absolute; top: 12px; right: 12px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; }
.med-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.time-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px; border: 2px solid var(--line); border-radius: 12px; background: #fff;
  cursor: pointer; font-weight: 600; font-size: .85rem; transition: border-color .15s, background .15s;
}
.time-btn span { font-size: 1.3rem; }
.time-btn.is-on { border-color: var(--teal); background: var(--teal-soft, #e9f3ef); color: var(--teal); }

.wiz-review { border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.rev-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rev-row span { color: var(--muted); }
.rev-meds { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.rev-med { background: var(--surface-tint); border-radius: 12px; padding: 12px 14px; }
.rev-med .muted, .muted { color: var(--muted); font-weight: 400; font-size: .9rem; }
.wiz-error { background: #FDECEC; color: #8a1f1f; border-radius: 12px; padding: 12px 14px; margin-top: 16px; font-size: .92rem; }
.wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.wiz-nav .btn { min-width: 120px; }
.wiz-nav #wizNext, .wiz-nav #wizFinish { margin-left: auto; }

@media (max-width: 520px) {
  .choice-grid, .med-row { grid-template-columns: 1fr; }
  .time-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- animations & interactive home ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.nav { transition: padding .2s ease, box-shadow .2s ease, background .2s ease; }
.nav.nav-scrolled { box-shadow: 0 6px 24px -16px rgba(15,60,50,.4); background: rgba(255,255,255,.92); }
.nav.nav-scrolled .nav-inner { height: 60px; }

.lang-toggle { display: inline-flex; border: 1px solid var(--teal); border-radius: 999px; overflow: hidden; margin: 0 4px; }
.lang-toggle a { padding: 6px 12px; font-size: .85rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.lang-toggle a.on { background: var(--teal); color: #fff; }

/* find your medicine */
.med-find { margin: 18px 0 6px; max-width: 440px; }
.med-find label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.med-find-box { position: relative; }
.med-find-box input { width: 100%; padding: 13px 18px; border: 1px solid var(--line); border-radius: 14px; font-size: 1rem; }
.med-find-box input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,110,92,.12); }
.med-find-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: none; z-index: 30; }
.med-find-results.show { display: block; }
.mf-row { padding: 9px 12px; border-radius: 9px; display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink); cursor: pointer; }
.mf-row:hover { background: var(--surface-tint); }
.mf-row b { font-size: .92rem; }
.mf-row span { font-size: .78rem; color: var(--muted); }
.mf-none { padding: 12px; color: var(--muted); font-size: .9rem; }
.mf-cta { display: block; margin-top: 6px; padding: 11px 12px; background: var(--teal-soft); color: var(--teal);
  border-radius: 9px; text-align: center; font-weight: 600; text-decoration: none; font-size: .9rem; }
.med-find-note { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }

/* typing indicator */
.typing-ind { display: inline-flex !important; gap: 4px; align-items: center; }
.typing-ind span { width: 7px; height: 7px; border-radius: 50%; background: #9aa6a0; display: inline-block; animation: tdot 1s infinite; }
.typing-ind span:nth-child(2) { animation-delay: .2s; }
.typing-ind span:nth-child(3) { animation-delay: .4s; }
@keyframes tdot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-body .bubble { animation: bubbleIn .3s ease forwards; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* testimonials grid */
.tgrid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  max-width: 1080px; margin: 0 auto;
}
.tcard {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 24px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 1px 2px rgba(16,40,34,.04);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
  /* entrance state — revealed via .reveal.is-visible below */
  opacity: 0; transform: translateY(28px) scale(.97);
}
.reveal.is-visible .tcard {
  animation: tcardIn .6s cubic-bezier(.22,1,.36,1) forwards;
}
.reveal.is-visible .tcard:nth-child(1) { animation-delay: .05s; }
.reveal.is-visible .tcard:nth-child(2) { animation-delay: .13s; }
.reveal.is-visible .tcard:nth-child(3) { animation-delay: .21s; }
.reveal.is-visible .tcard:nth-child(4) { animation-delay: .29s; }
.reveal.is-visible .tcard:nth-child(5) { animation-delay: .37s; }
.reveal.is-visible .tcard:nth-child(6) { animation-delay: .45s; }
@keyframes tcardIn { to { opacity: 1; transform: translateY(0) scale(1); } }
.tcard:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(16,40,34,.13); }
.tcard:hover .tavatar { transform: scale(1.06); }
.tstars { color: #f0a84e; font-size: 1.05rem; letter-spacing: 2px; }
.tcard blockquote { margin: 0; }
.tcard blockquote p { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--ink); }
.tcard blockquote p::before { content: "“"; }
.tcard blockquote p::after { content: "”"; }
.tperson { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 8px; }
.tavatar {
  width: 68px; height: 68px; border-radius: 50%; object-fit: cover; object-position: top center;
  flex: 0 0 68px; background: var(--teal-soft);
  border: 2px solid #fff; box-shadow: 0 0 0 2px var(--teal-soft), 0 4px 12px rgba(16,40,34,.12);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.tavatar.is-fallback {
  position: relative; display: grid; place-items: center;
  color: var(--teal); font-weight: 700; font-size: 1.25rem;
  font-family: 'Bricolage Grotesque', sans-serif;
}
.tavatar.is-fallback::after { content: attr(data-initials); }
.tperson span { display: flex; flex-direction: column; line-height: 1.35; }
.tperson b { font-size: 1.02rem; color: var(--ink); }
.tperson em { font-style: normal; font-size: .85rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .tcard { opacity: 1; transform: none; }
  .reveal.is-visible .tcard { animation: none; }
}
@media (max-width: 900px) { .tgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tgrid { grid-template-columns: 1fr; } }

/* FAQ accordion */
.acc { display: flex; flex-direction: column; gap: 10px; }
.acc-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.acc-q { width: 100%; text-align: left; background: none; border: 0; padding: 24px 26px; font-size: 1.04rem;
  font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: background .18s ease, color .18s ease; }
.acc-q:hover { background: var(--surface-tint); color: var(--teal); }
.acc-item.open .acc-q { background: var(--surface-tint); }
.acc-q span {
  color: var(--teal); font-size: 1.55rem; line-height: 1; flex-shrink: 0;
  transition: transform .3s cubic-bezier(.34,1.4,.5,1);
}
.acc-item.open .acc-q span { transform: rotate(135deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-item.open .acc-a { max-height: 240px; }
.acc-a p { margin: 0; padding: 2px 26px 22px; color: var(--muted); }

/* ---------- colored section bands ---------- */
.band { padding: 72px 0; }
.band-tint { background: linear-gradient(180deg, #F2F7F5 0%, #E8F1ED 100%); }
.band-saffron { background: linear-gradient(180deg, #FDF1DD 0%, #FBE7C5 100%); }
.band-dark {
  background: radial-gradient(130% 120% at 50% -25%, #14826d 0%, var(--teal-dark) 58%);
  color: rgba(255,255,255,.85);
}
.band-dark h2, .band-dark h3, .band-dark .band-eyebrow { color: #fff; }
.band-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 700; color: var(--teal); margin-bottom: 12px; }
.band h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
.band-lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; margin-top: 14px; }
.band-dark .band-lead { color: rgba(255,255,255,.82); }
.band-center { text-align: center; }
.band-center .band-lead { margin-left: auto; margin-right: auto; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 8px; }
.stat { padding: 8px 28px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.16); }
.band-dark .stat + .stat { border-left-color: rgba(255,255,255,.16); }
.stat .num { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 2.8rem; color: var(--teal); line-height: 1; }
.band-dark .stat .num { color: #F7E2B2; }
.stat p { margin-top: 8px; color: var(--muted); }
.band-dark .stat p { color: rgba(255,255,255,.8); }

.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.fcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.band-tint .fcard { box-shadow: var(--shadow); }
.fcard .fic { font-size: 1.8rem; }
.fcard h3 { font-size: 1.1rem; margin: 14px 0 6px; }
.fcard p { color: var(--muted); margin: 0; font-size: .95rem; }

.value-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 32px; }
.value-item { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px; padding: 20px; }
.value-item b { display: block; margin-bottom: 4px; }
.value-item p { color: var(--muted); margin: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.contact-form .form-field { margin-bottom: 18px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 1rem; font-family: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,110,92,.12); }
.contact-method { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.contact-method .cic { font-size: 1.5rem; }
.contact-method h4 { margin: 0 0 2px; font-size: 1rem; }
.contact-method p, .contact-method a { margin: 0; color: var(--muted); text-decoration: none; }
.contact-method a:hover { color: var(--teal); }

@media (max-width: 820px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stat { padding: 8px 18px; }
  .stat + .stat { border-left: none; }
  .stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,.16); }
  .feature-cards { grid-template-columns: 1fr; }
  .value-list, .contact-grid { grid-template-columns: 1fr; }
}

.list-search { margin-bottom: 28px; }
.list-search input { width: 100%; max-width: 460px; padding: 13px 18px; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.list-search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,110,92,.12); }

/* ---------- content / article pages ---------- */
.page-hero { padding: 64px 0 12px; }
.page-hero .label { text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 700; color: var(--teal); }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 700; margin-top: 12px; }
.page-hero p { color: var(--muted); font-size: 1.12rem; margin-top: 14px; max-width: 60ch; }

.doc { max-width: 760px; margin: 0 auto; padding: 40px 0 72px; }
.doc h2 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.4rem; margin: 38px 0 12px; }
.doc h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.1rem; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc .muted-note { font-size: .9rem; color: var(--muted); font-style: italic; }
.card-soft { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--teal); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .2s ease; display: block; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-thumb { height: 140px; background: linear-gradient(135deg, var(--teal-soft), var(--saffron-soft)); display: grid; place-items: center; font-size: 2.4rem; }
.post-card .pc-body { padding: 22px; }
.post-card .pc-cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--teal); }
.post-card h3 { font-size: 1.15rem; margin: 8px 0; }
.post-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.article { max-width: 720px; margin: 0 auto; padding: 20px 0 72px; }
.article p, .article li { color: #2c3a34; font-size: 1.06rem; }
.article h2 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.5rem; margin: 34px 0 12px; }

/* 404 */
.err { text-align: center; padding: 110px 0; }
.err .code { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 7rem; color: var(--teal); line-height: 1; }
.err h1 { font-size: 1.8rem; margin: 14px 0 10px; }
.err p { color: var(--muted); margin-bottom: 26px; }

@media (max-width: 880px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 150% at 82% -30%, #14826d 0%, var(--teal-dark) 56%);
  color: rgba(255,255,255,.70); padding: 66px 0 30px; font-size: .9rem;
}
/* brand accent strip across the top edge */
.foot::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--saffron) 0%, #7fd1bd 100%);
}
.foot .wrap { position: relative; z-index: 1; }
.foot .brand { color: #fff; }
.foot .brand .dot { color: #7fd1bd; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.foot-grid {
  display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 44px 32px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.14);
}
.foot-about { max-width: 320px; color: rgba(255,255,255,.66); }
.foot-about .foot-trust { display: flex; flex-direction: column; gap: 7px; margin-top: 18px; font-size: .82rem; color: rgba(255,255,255,.82); }
.foot-col { display: flex; flex-direction: column; gap: 11px; }
.foot-col h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .11em; color: #fff; margin: 0 0 6px; }
.foot-col a { color: rgba(255,255,255,.70); text-decoration: none; transition: color .15s ease; }
.foot-col a:hover { color: #fff; }
.foot-col .foot-hours { color: rgba(255,255,255,.5); }
.foot-legal {
  margin-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 8px; font-size: .82rem; color: rgba(255,255,255,.52);
}
@media (max-width: 880px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-about { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 20px; }
  .lead { max-width: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .who-grid { grid-template-columns: 1fr; }
  .who { display: block; padding: 40px 28px; }
  .who h2 { position: static; }
  .who-grid { margin-top: 28px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .nav-actions .btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bubble { animation: none; opacity: 1; transform: none; }
}

/* =====================================================================
   2026 app shell — glassmorphism + soft motion.
   Scoped to .app-main so only login-walled app pages are affected;
   the marketing site (marketing_base.html) is untouched.
   ===================================================================== */
.app-main {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(42rem 42rem at 12% -8%, rgba(15,110,92,.10), transparent 60%),
    radial-gradient(34rem 34rem at 105% 4%, rgba(242,163,60,.12), transparent 58%),
    radial-gradient(40rem 40rem at 80% 110%, rgba(15,110,92,.08), transparent 60%),
    var(--surface-tint);
}
/* A slow-drifting aurora blob adds life without distracting. */
.app-main::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 60%;
  z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 30% 30%, rgba(15,110,92,.14), transparent 70%),
              radial-gradient(45% 55% at 75% 40%, rgba(242,163,60,.12), transparent 70%);
  filter: blur(40px);
  animation: auroraDrift 22s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(4%, 3%, 0) scale(1.08); }
}

/* Frosted glass surfaces. Translucent fill + blur + crisp top edge. */
.app-main .dash-card,
.app-main .sub-banner,
.app-main .patient-card,
.app-main .card {
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 20px 45px -28px rgba(15,60,50,.45);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease;
}
/* Keep the tinted banners legible over their colour, just glassier. */
.app-main .sub-banner.active   { background: rgba(227,240,236,.78); border-color: rgba(191,224,213,.8); }
.app-main .sub-banner.inactive { background: rgba(253,241,221,.80); border-color: rgba(241,221,184,.8); }

/* Lift on hover — the interaction that reads as "alive". */
.app-main .patient-card:hover,
.app-main .dash-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.8) inset,
    0 28px 60px -26px rgba(15,60,50,.55);
}

/* Staggered entrance for the dashboard stack and patient tiles. */
@keyframes glassRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.app-main .sub-banner,
.app-main .dash-card,
.app-main .card { animation: glassRise .5s cubic-bezier(.2,.7,.2,1) both; }
.app-main .dash-card:nth-of-type(2) { animation-delay: .06s; }
.app-main .dash-card:nth-of-type(3) { animation-delay: .12s; }
.app-main .dash-card:nth-of-type(4) { animation-delay: .18s; }
.app-main .patient-card { animation: glassRise .5s cubic-bezier(.2,.7,.2,1) both; }
.app-main .patient-grid > .patient-card:nth-child(2) { animation-delay: .05s; }
.app-main .patient-grid > .patient-card:nth-child(3) { animation-delay: .10s; }
.app-main .patient-grid > .patient-card:nth-child(4) { animation-delay: .15s; }
.app-main .patient-grid > .patient-card:nth-child(n+5) { animation-delay: .20s; }

/* Buttons: a quick sheen sweep on hover for the primary action. */
.app-main .btn-primary { position: relative; overflow: hidden; }
.app-main .btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.app-main .btn-primary:hover::after { transform: translateX(120%); }

@media (prefers-reduced-motion: reduce) {
  .app-main::before { animation: none; }
  .app-main .sub-banner,
  .app-main .dash-card,
  .app-main .patient-card,
  .app-main .card { animation: none; }
  .app-main .patient-card:hover,
  .app-main .dash-card:hover { transform: none; }
  .app-main .btn-primary::after { display: none; }
}

/* ============================================================
   Visual richness layer — ambient washes, depth & texture.
   Keeps the structure intact but stops sections reading as
   bare white slabs. Applies across every marketing page.
   ============================================================ */

/* Ambient brand wash + faint dot grid behind the hero and the
   interior page heroes, so the top of every page has atmosphere. */
.hero, .page-hero { position: relative; isolation: isolate; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: -15% -25% 0 -25%; z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(55% 65% at 10% 6%, rgba(15,110,92,.11), transparent 60%),
    radial-gradient(50% 60% at 94% -5%, rgba(242,163,60,.16), transparent 55%);
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(rgba(15,60,50,.055) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
}

/* Soft seam between a hero and the tinted band right below it. */
.page-hero + .band-tint,
.page-hero + section.band-tint { box-shadow: inset 0 1px 0 rgba(15,60,50,.05); }

/* Texture inside the dark bands so they aren't a flat block of teal. */
.band-dark { position: relative; overflow: hidden; }
.band-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(40% 80% at 85% 120%, rgba(242,163,60,.18), transparent 60%),
    radial-gradient(40% 80% at 0% -20%, rgba(127,209,189,.16), transparent 60%);
}
.band-dark .wrap { position: relative; z-index: 1; }

/* The dark "who is it for" card gets the same warm glow + a hairline
   highlight so it feels like a crafted panel, not a plain rectangle. */
.who { position: relative; overflow: hidden; box-shadow: var(--shadow); }
.who::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(45% 90% at 100% 0%, rgba(242,163,60,.20), transparent 55%),
    radial-gradient(40% 80% at -5% 100%, rgba(127,209,189,.14), transparent 60%);
}
.who > * { position: relative; z-index: 1; }

/* Depth on the interactive cards — a calm lift on hover. */
.step { transition: transform .18s ease, box-shadow .22s ease, border-color .18s ease; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe3dc; }

.price-grid .price-card,
.pack-card { transition: transform .18s ease, box-shadow .22s ease; }
.price-grid .price-card:hover,
.pack-card:hover { transform: translateY(-5px); box-shadow: 0 26px 60px -28px rgba(15,60,50,.45); }
.price-grid .price-card.is-featured { transform: translateY(-6px); }
.price-grid .price-card.is-featured:hover { transform: translateY(-10px); }

/* FAQ rows lift gently and warm up when open. */
.acc-item { transition: box-shadow .2s ease, border-color .2s ease; }
.acc-item:hover { border-color: #cfe3dc; }
.acc-item.open { border-color: var(--teal); box-shadow: 0 14px 36px -22px rgba(15,60,50,.4); }

/* A little accent rule under section eyebrows ties the type system
   together and gives the eye a place to start. */
.section-head .label::after,
.page-hero .label::after,
.pack-group-head::before {
  content: ""; display: block; width: 34px; height: 3px; border-radius: 3px;
  background: var(--saffron); margin-top: 10px;
}
.section-head[style*="center"] .label::after { margin-left: auto; margin-right: auto; }
.pack-group-head::before { margin-left: auto; margin-right: auto; margin-bottom: 14px; }

@media (prefers-reduced-motion: reduce) {
  .step:hover,
  .price-grid .price-card:hover,
  .pack-card:hover { transform: none; }
}

/* "How it works" reads as a flow: a line + arrow links each numbered
   step to the next. Aligned to the centre of the 38px number badge
   (26px card pad + 19px half-badge ≈ 45px from the card's top). */
.steps .step { position: relative; }
.steps .step:not(:last-child)::after {
  content: ""; position: absolute; top: 45px; right: -22px; width: 22px; height: 10px;
  z-index: 2; pointer-events: none;
  background: center / 22px 10px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='10' viewBox='0 0 22 10' fill='none' stroke='%230F6E5C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 5H17M13.5 1.5 17.5 5 13.5 8.5'/%3E%3C/svg%3E");
}
/* Connectors only make sense in the single 4-across row. */
@media (max-width: 880px) {
  .steps .step:not(:last-child)::after { display: none; }
}

/* A signal travels through the flow: each number badge lights up in
   turn (1→2→3→4) and the arrow between them pulses as it passes,
   looping to echo the daily reminder cycle. Starts once the section
   has scrolled into view (via .reveal.is-visible). */
.reveal.is-visible .steps .step::before {
  animation: stepGlow 4.4s ease-in-out infinite;
}
.reveal.is-visible .steps .step:nth-child(1)::before { animation-delay: 0s; }
.reveal.is-visible .steps .step:nth-child(2)::before { animation-delay: .55s; }
.reveal.is-visible .steps .step:nth-child(3)::before { animation-delay: 1.1s; }
.reveal.is-visible .steps .step:nth-child(4)::before { animation-delay: 1.65s; }
@keyframes stepGlow {
  0%, 100% { transform: scale(1); background: var(--teal-soft); color: var(--teal); box-shadow: none; }
  6%       { transform: scale(1.14); background: var(--teal); color: #fff;
             box-shadow: 0 10px 22px -8px rgba(15,110,92,.65); }
  18%      { transform: scale(1); background: var(--teal-soft); color: var(--teal); box-shadow: none; }
}
.reveal.is-visible .steps .step:not(:last-child)::after {
  animation: arrowFlow 4.4s ease-in-out infinite;
}
.reveal.is-visible .steps .step:nth-child(1)::after { animation-delay: .28s; }
.reveal.is-visible .steps .step:nth-child(2)::after { animation-delay: .83s; }
.reveal.is-visible .steps .step:nth-child(3)::after { animation-delay: 1.38s; }
@keyframes arrowFlow {
  0%, 100% { opacity: .55; transform: translateX(0); }
  8%       { opacity: 1;   transform: translateX(3px); }
  22%      { opacity: .55; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal.is-visible .steps .step::before,
  .reveal.is-visible .steps .step:not(:last-child)::after { animation: none; }
}

/* Tie the stats band and "How it works" together — they're one beat,
   not two unrelated sections. */
section.band-dark { padding-bottom: 52px; }
.band-dark + #how,
.band-dark + section.band-tint { padding-top: 44px; }

/* ---------- public medicine info page ---------- */
.med-info { display: grid; grid-template-columns: 1.4fr .9fr; gap: 28px; align-items: start; }
.med-info-card { padding: 32px; }
.med-facts { margin: 0; display: grid; gap: 0; }
.med-facts > div {
  display: grid; grid-template-columns: 160px 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.med-facts > div:last-child { border-bottom: 0; }
.med-facts dt { margin: 0; font-weight: 600; color: var(--teal); font-size: .9rem;
  text-transform: uppercase; letter-spacing: .04em; }
.med-facts dd { margin: 0; color: var(--ink); }
.med-disclaimer { margin: 20px 0 0; font-size: .86rem; color: var(--muted); font-style: italic; }
.med-cta { padding: 28px; position: sticky; top: 96px; }
.med-cta h3 { font-size: 1.2rem; margin: 0 0 8px; }
.med-cta p { color: var(--muted); font-size: .95rem; margin: 0 0 18px; }
@media (max-width: 820px) {
  .med-info { grid-template-columns: 1fr; }
  .med-cta { position: static; }
}

/* =====================================================================
   FAQ page — two columns: animated "always-on reminder" aside (left)
   + searchable, category-tabbed questions (right).
   ===================================================================== */
.faq-layout {
  display: grid; grid-template-columns: .82fr 1.18fr; gap: 48px; align-items: start;
}
.faq-layout .faq { max-width: none; margin: 0; }

.faq-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 26px; }

/* the looping pulse + chat bubbles */
.faq-anim {
  position: relative; height: 280px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(130% 120% at 50% -20%, #14826d, var(--teal-dark) 60%);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.faq-core {
  position: relative; z-index: 2; width: 92px; height: 92px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; font-size: 2.6rem;
  box-shadow: 0 14px 32px -10px rgba(0,0,0,.45);
}
.faq-ring {
  position: absolute; top: 50%; left: 50%; width: 92px; height: 92px;
  border: 2px solid rgba(127,209,189,.6); border-radius: 50%;
  transform: translate(-50%, -50%) scale(1); opacity: 0;
  animation: faqPulse 3.2s ease-out infinite;
}
.faq-ring:nth-child(2) { animation-delay: 1.05s; }
.faq-ring:nth-child(3) { animation-delay: 2.1s; }
@keyframes faqPulse {
  0%   { transform: translate(-50%,-50%) scale(1);   opacity: .55; }
  70%  { opacity: .12; }
  100% { transform: translate(-50%,-50%) scale(2.9); opacity: 0; }
}
.faq-bubble {
  position: absolute; z-index: 3; font-size: .82rem; font-weight: 600;
  padding: 8px 12px; border-radius: 12px; white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.35); opacity: 0;
}
.faq-bubble.b1 {
  top: 30px; left: 22px; background: #fff; color: #16241f; border-top-left-radius: 3px;
  animation: faqFloat 6s ease-in-out infinite;
}
.faq-bubble.b2 {
  bottom: 34px; right: 24px; background: #DCF8C6; color: #16241f; border-top-right-radius: 3px;
  animation: faqFloat 6s ease-in-out infinite; animation-delay: 1.6s;
}
@keyframes faqFloat {
  0%, 100% { opacity: 0; transform: translateY(8px); }
  18%, 62% { opacity: 1; transform: translateY(0); }
  80%      { opacity: 0; transform: translateY(-6px); }
}

.faq-aside-foot h3 { font-size: 1.2rem; margin: 0 0 6px; }
.faq-aside-foot p  { color: var(--muted); font-size: .94rem; margin: 0 0 16px; }

/* category tabs (reuses the .chip pill from the admin filter row) */
.faq-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.faq-tabs .chip { font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .faq-ring { animation: none; opacity: .3; }
  .faq-bubble { animation: none; opacity: 1; }
}
@media (max-width: 880px) {
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-aside { position: static; }
}
