/* Jivan Medico — one stylesheet for the app, the landing page and the share page. */
:root {
  --brand: #0b7a68;
  --brand-2: #0e9f86;
  --brand-ink: #064e43;
  --brand-soft: #e3f4f0;
  --accent: #f59e0b;
  --bg: #f5f8f7;
  --card: #ffffff;
  --ink: #12211e;
  --ink-2: #4a5e59;
  --ink-3: #7b8d88;
  --line: #dfe8e5;
  --red: #c62828;
  --red-soft: #fdecec;
  --orange: #c25e00;
  --orange-soft: #fff1e0;
  --yellow: #8a6d00;
  --yellow-soft: #fff8db;
  --green: #1b7a3a;
  --green-soft: #e6f6eb;
  --blue: #1d5fbf;
  --blue-soft: #e8f0fd;
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(10, 40, 34, .06), 0 4px 16px rgba(10, 40, 34, .06);
  --on-brand: #ffffff;
  --font: "Inter", "Noto Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #2bc3a6; --brand-2: #39d6b8; --brand-ink: #bff3e7; --brand-soft: #123a34; --on-brand: #06231e;
    --bg: #0d1513; --card: #15201d; --ink: #e8f1ee; --ink-2: #a9bcb6; --ink-3: #7d918b; --line: #26352f;
    --red: #ff7a7a; --red-soft: #3a1717; --orange: #ffb067; --orange-soft: #3a2611; --yellow: #f5d061; --yellow-soft: #33290b;
    --green: #6fdc91; --green-soft: #12301c; --blue: #8db6ff; --blue-soft: #14233d;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #2bc3a6; --brand-2: #39d6b8; --brand-ink: #bff3e7; --brand-soft: #123a34; --on-brand: #06231e;
  --bg: #0d1513; --card: #15201d; --ink: #e8f1ee; --ink-2: #a9bcb6; --ink-3: #7d918b; --line: #26352f;
  --red: #ff7a7a; --red-soft: #3a1717; --orange: #ffb067; --orange-soft: #3a2611; --yellow: #f5d061; --yellow-soft: #33290b;
  --green: #6fdc91; --green-soft: #12301c; --blue: #8db6ff; --blue-soft: #14233d;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); }
a { color: var(--brand); }
img, svg { max-width: 100%; }
svg[aria-hidden] { flex: none; vertical-align: -0.2em; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .75em; }
small, .muted { color: var(--ink-2); }
.tiny { font-size: .82rem; color: var(--ink-3); }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- app shell ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .3px; color: var(--brand-ink); text-decoration: none; font-size: 1.05rem; }
.brand img { width: 30px; height: 30px; }
.brand span b { color: var(--brand); }
.topbar .grow { flex: 1; }
.chip-btn { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .9rem; cursor: pointer; }
.chip-btn:hover { border-color: var(--brand); }
main#app { max-width: 760px; margin: 0 auto; padding: 16px 16px 110px; }
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-around; background: var(--card);
  border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--ink-3); font-size: .74rem; padding: 4px 2px; border-radius: 10px; }
.bottomnav a svg { width: 24px; height: 24px; }
.bottomnav a.on { color: var(--brand); font-weight: 700; }
.bottomnav a.check { color: #fff; }
.bottomnav a.check .bubble { color: var(--on-brand); background: var(--brand); border-radius: 999px; width: 46px; height: 46px; display: grid; place-items: center; margin-top: -20px; box-shadow: var(--shadow); }
.bottomnav a.check span:not(.bubble) { color: var(--brand); font-weight: 700; }
@media (min-width: 900px) {
  .bottomnav { top: 60px; bottom: auto; left: max(16px, calc(50% - 600px)); right: auto; width: 170px; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; gap: 2px; }
  .bottomnav a { flex-direction: row; justify-content: flex-start; gap: 10px; font-size: .95rem; padding: 10px 12px; }
  .bottomnav a.check .bubble { margin: 0; width: 30px; height: 30px; }
  .bottomnav a.check .bubble svg { width: 18px; height: 18px; }
}

/* ---------- building blocks ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 480px) { .grid3 { grid-template-columns: 1fr 1fr; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 18px; font: inherit; font-weight: 700;
  background: var(--brand); color: var(--on-brand); cursor: pointer; text-decoration: none; min-height: 46px; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.soft { background: var(--brand-soft); color: var(--brand-ink); }
.btn.red { background: #c62828; color: #fff; }
.btn.small { padding: 7px 12px; min-height: 36px; font-size: .9rem; border-radius: 10px; }
.btn.link { background: none; color: var(--brand); padding: 4px; min-height: 0; font-weight: 600; }
.btn svg { width: 20px; height: 20px; }
label { display: block; font-weight: 600; font-size: .92rem; margin: 10px 0 4px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 11px 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; }
textarea { min-height: 110px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--brand); vertical-align: middle; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 8px 0; cursor: pointer; }
.check-line input { flex: none; margin-top: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .92rem; cursor: pointer; }
.pill.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.tag { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 700; background: var(--brand-soft); color: var(--brand-ink); }
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.orange { background: var(--orange-soft); color: var(--orange); }
.tag.yellow { background: var(--yellow-soft); color: var(--yellow); }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.blue { background: var(--blue-soft); color: var(--blue); }
.notice { border-radius: var(--radius-s); padding: 12px 14px; margin: 10px 0; background: var(--blue-soft); color: var(--ink); border-left: 4px solid var(--blue); }
.notice.red { background: var(--red-soft); border-color: var(--red); }
.notice.orange { background: var(--orange-soft); border-color: var(--orange); }
.notice.green { background: var(--green-soft); border-color: var(--green); }
.notice.yellow { background: var(--yellow-soft); border-color: var(--yellow); }
ul.clean { list-style: none; padding: 0; margin: 0; }
ul.ticks { padding-left: 1.2em; margin: .3em 0 .8em; }
ul.ticks li { margin: 3px 0; }
.empty { text-align: center; color: var(--ink-3); padding: 26px 10px; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 60; max-width: 92vw; box-shadow: var(--shadow); }
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--card); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .modal-back { align-items: center; } .modal { border-radius: 18px; } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: .95rem; }
.kv dt { color: var(--ink-2); } .kv dd { margin: 0; font-weight: 600; }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.t th, table.t td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { color: var(--ink-2); font-weight: 600; }
.scroll-x { overflow-x: auto; }

/* ---------- home ---------- */
.hello { margin: 4px 0 14px; }
.hello h1 { margin: 0; }
.people { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; }
.person { flex: none; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 12px 5px 5px; cursor: pointer; font: inherit; color: var(--ink); }
.person.on { border-color: var(--brand); background: var(--brand-soft); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: .85rem; flex: none; }
.hero-check { display: block; text-decoration: none; color: #fff; background: linear-gradient(135deg, #0b7a68, #0e9f86); border-radius: 20px; padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.hero-check h2 { color: #fff; font-size: 1.35rem; margin-bottom: 4px; }
.hero-check p { margin: 0; opacity: .92; }
.hero-check .go { margin-top: 12px; display: inline-flex; background: #fff; color: #064e43; border-radius: 999px; padding: 8px 16px; font-weight: 800; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 420px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 10px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; box-shadow: var(--shadow); min-height: 96px; }
.tile .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.tile .ic svg { width: 22px; height: 22px; }
.tile b { font-size: .93rem; line-height: 1.25; }
.tile small { font-size: .76rem; line-height: 1.3; }
.sos { display: flex; align-items: center; gap: 10px; background: var(--red-soft); color: var(--red); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; font-weight: 700; margin-bottom: 14px; }
.sos .btn { margin-left: auto; }

/* doses */
.dose { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dose:last-child { border-bottom: 0; }
.dose .time { font-weight: 800; min-width: 52px; color: var(--brand-ink); }
.dose .what { flex: 1; min-width: 0; }
.dose .what b { display: block; overflow: hidden; text-overflow: ellipsis; }
.dose.taken .what b { text-decoration: line-through; color: var(--ink-3); }

/* ---------- symptom check ---------- */
.steps { display: flex; gap: 6px; margin: 4px 0 14px; }
.steps i { flex: 1; height: 5px; border-radius: 4px; background: var(--line); }
.steps i.on { background: var(--brand); }
.signs .check-line { border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; margin: 8px 0; background: var(--card); }
.signs .check-line:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.mic { position: relative; }
.mic .btn { position: absolute; right: 8px; bottom: 8px; }
.mic.listening .btn { background: var(--red); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--red) 25%, transparent); } }
.sev { display: flex; gap: 4px; }
.sev button { flex: 1; border: 1.5px solid var(--line); background: var(--card); border-radius: 8px; padding: 8px 0; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.sev button.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.thinking { text-align: center; padding: 34px 10px; }
.thinking ol { text-align: left; display: inline-block; margin: 14px auto 0; padding-left: 1.2em; color: var(--ink-2); }
.thinking ol li.on { color: var(--ink); font-weight: 700; }
.thinking ol li.done { color: var(--green); }
.pulse-heart { width: 64px; height: 64px; color: var(--brand); animation: beat 1.1s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.15); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }
.urgency { border-radius: var(--radius); padding: 16px; margin-bottom: 14px; color: #fff; }
.urgency h2 { color: #fff; margin-bottom: 6px; }
.urgency p { margin: 0; }
.urgency.emergency { background: #c62828; }
.urgency.doctor_today { background: #d35400; }
.urgency.doctor_48h { background: #b7791f; }
.urgency.self_care { background: #1b7a3a; }
:root[data-theme="dark"] .urgency, .urgency { color: #fff; }
.urgency .btn { background: #fff; color: #111; margin-top: 12px; }
.med { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 10px 0; background: var(--card); }
.med h3 { margin: 0 0 2px; }
.med .dose-box { background: var(--brand-soft); border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-weight: 600; color: var(--brand-ink); }
.code-box { text-align: center; border: 2px dashed var(--brand); border-radius: var(--radius); padding: 14px; margin: 14px 0; }
.code-box .code { font-size: 2.1rem; font-weight: 900; letter-spacing: .3em; color: var(--brand-ink); font-family: ui-monospace, Menlo, monospace; }
.removed li { margin: 4px 0; }
.models { font-size: .8rem; color: var(--ink-3); text-align: center; margin-top: 10px; }

/* timeline */
.tl-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tl-item:last-child { border-bottom: 0; }
.tl-ic { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.tl-ic svg { width: 20px; height: 20px; }
.tl-ic.check { background: var(--blue-soft); color: var(--blue); }
.tl-ic.document { background: var(--yellow-soft); color: var(--yellow); }
.tl-ic.prescription { background: var(--green-soft); color: var(--green); }
.tl-ic.dispense { background: var(--orange-soft); color: var(--orange); }
.tl-body { flex: 1; min-width: 0; }
.tl-body .when { font-size: .8rem; color: var(--ink-3); }

/* chat */
.chat { display: flex; flex-direction: column; gap: 10px; }
.bubble-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; word-wrap: break-word; }
.bubble-msg.user { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 4px; }
.bubble-msg.assistant { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-input { position: sticky; bottom: 76px; display: flex; gap: 8px; background: var(--bg); padding: 10px 0; }
.chat-input textarea { min-height: 48px; height: 48px; }
@media (min-width: 900px) { .chat-input { bottom: 0; } }

/* charts */
.spark { width: 100%; height: 120px; }
.spark path.line { fill: none; stroke: var(--brand); stroke-width: 2.5; }
.spark path.line2 { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.spark circle { fill: var(--brand); }
.spark text { fill: var(--ink-3); font-size: 10px; }
.spark line.grid { stroke: var(--line); }

/* print a health summary */
@media print {
  .topbar, .bottomnav, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
}

/* ==========================================================================
   Landing page (index.html) — classes prefixed lp-
   ========================================================================== */
body.lp { overflow-x: hidden; }
html[lang="hi"] body.lp, html[lang="hi"] body.sh { line-height: 1.7; }
.lp .btn:not(.ghost):not(.lp-btn-white), .sh .btn:not(.ghost) { color: var(--card); }
.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.lp h1, .lp h2, .lp h3, .sh h1, .sh h2 { text-wrap: balance; }
.lp-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--card); color: var(--brand-ink); padding: 8px 12px; border-radius: 8px; font-weight: 700; }
.lp-skip:focus { left: 8px; }
.lp-sosbar { background: var(--red-soft); color: var(--red); font-size: .86rem; font-weight: 600; }
.lp-sosbar .lp-wrap { display: flex; align-items: center; gap: 8px; padding-top: 7px; padding-bottom: 7px; }
.lp-sosbar svg { width: 16px; height: 16px; flex: none; }
.lp-sosbar a { color: inherit; font-weight: 800; }
.lp-nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.lp-nav-in { display: flex; align-items: center; gap: 10px; min-height: 60px; }
.lp-nav .grow { flex: 1; }
.lp-links { display: none; gap: 2px; margin-left: 18px; }
.lp-links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .94rem; padding: 6px 10px; border-radius: 8px; }
.lp-links a:hover { color: var(--brand); background: var(--brand-soft); }
@media (min-width: 880px) { .lp-links { display: flex; } }
.lp-lang { display: inline-flex; flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--card); }
.lp-lang button { border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: .82rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; cursor: pointer; min-height: 32px; }
.lp-lang button[aria-pressed="true"] { background: var(--brand); color: var(--card); }
.lp-signin { flex: none; font-weight: 700; color: var(--brand); text-decoration: none; padding: 6px 2px; font-size: .94rem; white-space: nowrap; }
.lp-signin:hover { text-decoration: underline; }
@media (max-width: 400px) {
  .lp-nav .brand { font-size: .98rem; gap: 6px; }
  .lp-nav .brand img { width: 26px; height: 26px; }
  .lp-nav-in { gap: 8px; }
  .lp-lang button { padding: 4px 8px; }
}

/* hero */
.lp-hero { position: relative; padding: 36px 0 52px;
  background: radial-gradient(760px 420px at 88% 8%, color-mix(in srgb, var(--brand) 15%, transparent), transparent 70%),
              radial-gradient(560px 360px at 0% 100%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%); }
.lp-hero-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 920px) { .lp-hero { padding: 64px 0 84px; } .lp-hero-in { grid-template-columns: 1.12fr .88fr; gap: 56px; } }
.lp-eyebrow { display: inline-block; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: .82rem; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.lp-hero h1 { font-size: clamp(2.15rem, 8.4vw, 3.7rem); line-height: 1.06; letter-spacing: -.028em; font-weight: 800; margin: 0 0 18px; }
.lp-hero h1 span { display: block; color: var(--brand); }
html[lang="hi"] .lp-hero h1 { line-height: 1.3; letter-spacing: 0; font-size: clamp(2rem, 7.6vw, 3.3rem); }
.lp-lead { font-size: 1.08rem; color: var(--ink-2); max-width: 35em; margin-bottom: 24px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-cta .btn { flex: 1 1 140px; }
@media (min-width: 600px) { .lp-cta .btn { flex: 0 0 auto; } }
.lp-btn-lg { min-height: 52px; padding: 14px 28px; font-size: 1.04rem; border-radius: 14px; }
.lp-trust { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.lp-trust li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 6px; }
.lp-note { margin: 14px 0 0; font-size: .86rem; color: var(--ink-3); }

/* phone mock (drawn, not an image) */
.lp-phone-wrap { position: relative; display: flex; justify-content: center; }
.lp-phone-wrap::before { content: ""; position: absolute; inset: 10% 8%; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent)); filter: blur(64px); opacity: .22; }
.lp-phone { position: relative; width: min(100%, 312px); background: #17231f; border-radius: 42px; padding: 11px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 0 0 1px rgba(0,0,0,.08), 0 34px 60px -24px rgba(6, 40, 34, .5); transform: rotate(1.5deg); }
.lp-notch { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 96px; height: 24px; background: #17231f; border-radius: 0 0 16px 16px; z-index: 2; }
.lp-screen { background: var(--bg); border-radius: 32px; padding: 38px 13px 16px; display: flex; flex-direction: column; gap: 9px; font-size: .86rem; line-height: 1.4; overflow: hidden; }
.lp-m-top { display: flex; align-items: center; gap: 8px; font-size: .9rem; padding: 0 2px 2px; }
.lp-m-urg { display: flex; gap: 10px; background: var(--green-soft); border: 1px solid color-mix(in srgb, var(--green) 30%, transparent); border-radius: 15px; padding: 11px 12px; }
.lp-m-urg b { display: block; color: var(--green); font-size: 1rem; }
.lp-m-urg small { display: block; color: var(--ink-2); font-size: .8rem; }
.lp-m-dot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 22%, transparent); }
.lp-m-med { background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: 10px 11px; }
.lp-m-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.lp-m-row .tag { font-size: .68rem; white-space: nowrap; }
.lp-m-dose { margin-top: 7px; background: var(--brand-soft); color: var(--brand-ink); border-radius: 9px; padding: 6px 9px; font-weight: 600; font-size: .78rem; }
.lp-m-checks { margin-top: 6px; color: var(--green); font-size: .72rem; font-weight: 700; }
.lp-m-code { text-align: center; border: 2px dashed var(--brand); border-radius: 15px; padding: 7px 8px 6px; }
.lp-m-code small { font-size: .72rem; }
.lp-m-codeval { font: 900 1.55rem/1.25 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .26em; padding-left: .26em; color: var(--brand-ink); }
.lp-m-ai { color: var(--ink-3); font-size: .7rem; text-align: center; text-wrap: balance; }
.lp-m-ai-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; vertical-align: 1px; border-radius: 50%; background: var(--brand); }

/* sections */
.lp-sec { padding: 56px 0; scroll-margin-top: 60px; }
.lp-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 920px) { .lp-sec { padding: 84px 0; } }
.lp-h2 { font-size: clamp(1.6rem, 5.2vw, 2.35rem); letter-spacing: -.02em; font-weight: 800; margin-bottom: 8px; }
html[lang="hi"] .lp-h2 { letter-spacing: 0; line-height: 1.35; }
.lp-sub { color: var(--ink-2); font-size: 1.04rem; max-width: 40em; margin-bottom: 28px; }
.lp-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); }
.lp-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lp-ic-red { background: var(--red-soft); color: var(--red); }
.lp-ic-lg { width: 52px; height: 52px; border-radius: 15px; }
.lp-ic-lg svg { width: 28px; height: 28px; }

.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .lp-steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .lp-steps { grid-template-columns: repeat(4, 1fr); } }
.lp-steps li { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.lp-num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: var(--card); font-weight: 800; margin-bottom: 14px; }
.lp-num-red { background: var(--red); }
.lp-steps h3 { font-size: 1.08rem; margin-bottom: 6px; }
.lp-steps p { color: var(--ink-2); margin: 0; font-size: .96rem; }

.lp-safe { display: grid; gap: 14px; }
@media (min-width: 640px) { .lp-safe { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .lp-safe { grid-template-columns: repeat(3, 1fr); } }
.lp-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.lp-card h3 { margin: 14px 0 6px; font-size: 1.08rem; }
@media (max-width: 639px) {
  .lp-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px 16px; }
  .lp-card > * { grid-column: 2; }
  .lp-card > .lp-ic { grid-column: 1; grid-row: 1 / span 2; }
  .lp-card h3 { margin: 0 0 4px; }
}
.lp-card p { color: var(--ink-2); margin: 0; font-size: .96rem; }
.lp-medlist { margin-top: 12px; }
.lp-medlist summary { cursor: pointer; color: var(--brand); font-weight: 700; font-size: .92rem; }
.lp-chips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lp-chips li { font-size: .8rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--ink-2); }
.lp-notdoc { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; background: var(--orange-soft); border: 1px solid color-mix(in srgb, var(--orange) 35%, transparent); border-radius: 16px; padding: 16px 18px; }
.lp-notdoc svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; margin-top: 1px; }
.lp-notdoc p { margin: 0; }
.lp-notdoc b { color: var(--orange); }

.lp-feat { display: grid; gap: 12px; }
@media (min-width: 560px) { .lp-feat { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .lp-feat { grid-template-columns: repeat(4, 1fr); } }
.lp-tile { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.lp-tile h3 { margin: 14px 0 4px; font-size: 1.02rem; }
.lp-tile p { color: var(--ink-2); margin: 0; font-size: .93rem; }
@media (max-width: 559px) {
  .lp-tile { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 16px; }
  .lp-tile .lp-ic { grid-row: span 2; }
  .lp-tile h3 { margin: 0 0 2px; }
}

.lp-roles { display: grid; gap: 16px; }
@media (min-width: 760px) { .lp-roles { grid-template-columns: 1fr 1fr; } }
.lp-role { display: flex; flex-direction: column; background: linear-gradient(180deg, var(--brand-soft), var(--card) 55%); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.lp-role h3 { font-size: 1.3rem; margin: 16px 0 6px; }
.lp-role .lp-ic { background: var(--card); box-shadow: var(--shadow); }
.lp-role p { color: var(--ink-2); }
.lp-role .btn { margin-top: auto; align-self: flex-start; }
.lp-ticks { list-style: none; padding: 0; margin: 2px 0 22px; }
.lp-ticks li { position: relative; padding-left: 28px; margin: 9px 0; font-weight: 600; }
.lp-ticks li::before { content: "✓"; position: absolute; left: 0; top: .2em; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-size: .72rem; font-weight: 800; }

.lp-priv { display: grid; gap: 22px; margin-top: 24px; }
@media (min-width: 760px) { .lp-priv { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.lp-priv h3 { margin: 14px 0 4px; font-size: 1.05rem; }
.lp-priv p { color: var(--ink-2); margin: 0; }
@media (max-width: 759px) {
  .lp-priv > div { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
  .lp-priv .lp-ic { grid-row: 1 / span 2; }
  .lp-priv h3 { margin: 0 0 4px; }
}
.lp-faq { max-width: 800px; }

.lp-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.lp-faq details[open] { box-shadow: var(--shadow); }
.lp-faq summary { position: relative; cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 500; color: var(--brand); }
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq details p { padding: 0 18px 16px; margin: 0; color: var(--ink-2); }

.lp-final { padding: 60px 0; text-align: center; color: #fff; background: linear-gradient(135deg, #075e50, #0b7a68 55%, #0e9f86); }
.lp-final h2 { color: #fff; font-size: clamp(1.6rem, 5.4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; }
html[lang="hi"] .lp-final h2 { letter-spacing: 0; line-height: 1.35; }
.lp-final p { opacity: .92; margin-bottom: 24px; }
.lp-cta-center { justify-content: center; }
.lp .lp-btn-white { background: #fff; color: #064e43; }
.lp .lp-btn-outline { color: #fff; border-color: rgba(255, 255, 255, .75); }
.lp .lp-btn-outline:hover { background: rgba(255, 255, 255, .1); }

.lp-foot { background: var(--card); border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: .92rem; }
.lp-foot-sos { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 14px 16px; border-radius: 14px; background: var(--red-soft); color: var(--red); font-weight: 800; font-size: 1.1rem; }
.lp-foot-sos svg { flex: none; width: 22px; height: 22px; }
.lp-foot-sos a { color: inherit; }
.lp-foot-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .lp-foot-grid { grid-template-columns: 1fr auto; align-items: start; } }
.lp-foot-tag { color: var(--ink-2); margin: 8px 0 0; }
.lp-foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.lp-foot-links a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.lp-foot-links a:hover { color: var(--brand); }
.lp-disclaimer { margin: 24px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .84rem; max-width: 70em; }
.lp-copy { margin: 0; color: var(--ink-3); font-size: .82rem; }

/* ==========================================================================
   Share page (shared.html, /s/{token}) — classes prefixed sh-
   ========================================================================== */
.sh-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--card) 92%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.sh-top-in { max-width: 860px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sh-top-in .grow { flex: 1; }
.sh-top-label { color: var(--ink-2); font-size: .88rem; font-weight: 600; padding-left: 10px; border-left: 1px solid var(--line); }
@media (max-width: 480px) { .sh-top-label { display: none; } }
.sh-main { max-width: 860px; margin: 0 auto; padding: 16px 16px 32px; }
.sh-banner { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; padding: 10px 14px; border-radius: var(--radius-s); background: var(--blue-soft); color: var(--ink); font-size: .92rem; }
.sh-banner svg { flex: none; width: 18px; height: 18px; color: var(--blue); margin-top: 3px; }
.sh-person-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.sh-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--card); font-weight: 800; font-size: 1.3rem; }
.sh-name { margin: 0; font-size: 1.55rem; line-height: 1.2; overflow-wrap: anywhere; }
.sh-sub { color: var(--ink-2); }
.sh-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sh-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 0; }
.sh-fact { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 12px; min-width: 0; }
.sh-fact dt { color: var(--ink-3); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.sh-fact dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.sh-fact-wide { grid-column: 1 / -1; }
.sh-allergy { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--red-soft); border: 2px solid var(--red); }
.sh-allergy h2 { margin: 0 0 6px; color: var(--red); font-size: 1.1rem; }
.sh-allergy p { margin: 0; }
.sh-allergy-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--red); color: var(--card); }
.sh-allergy-ic svg { width: 20px; height: 20px; }
.sh-allergy-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sh-allergy-list li { background: var(--card); color: var(--red); border: 1.5px solid var(--red); border-radius: 999px; padding: 2px 12px; font-weight: 800; }
.sh-allergy-none { background: var(--card); border: 1px solid var(--line); }
.sh-allergy-none h2 { color: var(--ink); }
.sh-allergy-none .sh-allergy-ic { background: var(--bg); color: var(--ink-3); }
.sh-h2 { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; margin-bottom: 12px; }
.sh-h2-ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.sh-h2-ic svg { width: 18px; height: 18px; }
.sh-hi { color: var(--ink-3); font-weight: 500; font-size: .9em; }
.sh-pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sh-pills li { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-weight: 600; }
.sh-label { margin: 12px 0 6px; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.sh-table td, .sh-table th { padding: 8px 8px 8px 0; }
.sh-table td .tiny { margin-top: 2px; }
.sh-mini { margin: 8px 0; font-size: .88rem; }
.sh-flag td { background: color-mix(in srgb, var(--red-soft) 60%, transparent); }
.sh-tl .tl-item { break-inside: avoid; }
.sh-item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 1px 0 4px; }
.sh-item-head h3 { margin: 0; font-size: 1rem; }
.sh-item p { margin: 4px 0; }
.sh-line .sh-k { color: var(--ink-2); font-weight: 600; }
.sh-list { margin: 4px 0; padding-left: 1.2em; }
.sh-list li { margin: 2px 0; }
.sh-vital { font-size: 1.05rem; }
.sh-pre { white-space: pre-wrap; }
.sh-center { text-align: center; }
.sh-state { text-align: center; padding: 56px 16px; }
.sh-state h1 { font-size: 1.35rem; margin: 14px 0 8px; }
.sh-state p { color: var(--ink-2); max-width: 30em; margin: 0 auto 16px; }
.sh-state-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--orange-soft); color: var(--orange); }
.sh-state-ic svg { width: 32px; height: 32px; }
.sh-state-error .sh-state-ic { background: var(--red-soft); color: var(--red); }
.sh-foot { max-width: 860px; margin: 0 auto; padding: 0 16px 40px; color: var(--ink-3); font-size: .85rem; }
.sh-foot p { margin: 0 0 6px; }

/* Printing: always light colours, whatever the screen theme (app and share page) */
@media print {
  :root, :root:not([data-theme="light"]), :root[data-theme="dark"] {
    --brand: #0b7a68; --brand-2: #0e9f86; --brand-ink: #064e43; --brand-soft: #e3f4f0;
    --bg: #fff; --card: #fff; --ink: #000; --ink-2: #333; --ink-3: #555; --line: #ccc;
    --red: #b71c1c; --red-soft: #fdecec; --orange: #a14e00; --orange-soft: #fff1e0; --yellow: #6d5600; --yellow-soft: #fff8db;
    --green: #1b6e35; --green-soft: #e6f6eb; --blue: #1d5fbf; --blue-soft: #e8f0fd; --shadow: none;
    color-scheme: light;
  }
  .sh-top { position: static; background: #fff; backdrop-filter: none; }
  .sh-main { padding-top: 8px; }
  .sh-sec, .sh-person, .sh-allergy { break-inside: auto; }
  .sh-allergy, .tag, .sh-avatar, .sh-allergy-ic, .lp-num { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .scroll-x { overflow: visible; }
  a[href^="http"]::after { content: ""; }
}
.sh-failed .sh-foot { display: none; }
@media (max-width: 600px) {
  .sh-stack thead { display: none; }
  .sh-stack, .sh-stack tbody, .sh-stack tr, .sh-stack td { display: block; width: 100%; }
  .sh-stack tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .sh-stack tr:last-child { border-bottom: 0; }
  .sh-stack td { padding: 1px 0; border: 0; }
  .sh-stack td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-2); font-weight: 600; }
}
.dose .what small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
