/* ============================================================
   RealTalkPharma — Mobile Web Prototype Design System
   Bold look matched to the RealTalk_Pharma_HTML_App reference:
   vivid cyan→blue gradients, navy ink text, heavyweight headings.
   Brand:    blue #0757f2 · gradient #08cbef → #0555f3 · navy #0c2aa3
   Ink:      navy #101d63 · muted #4a63b8 · borders #d8e6f6
   Semantics: green #16a34a · amber #d97706 · red #dc2626
   See STYLE_GUIDE.md for the full token list.
   ============================================================ */

:root {
  --brand: #0757f2;
  --brand-dark: #0c2aa3;
  --brand-light: #e8f1fe;
  --accent: #d97706;
  --bg: #eef5fd;
  --surface: #ffffff;
  --surface-alt: #eef5fd;
  --text: #101d63;
  --text-muted: #4a63b8;
  --text-faint: #8fa3cf;
  --border: #d8e6f6;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --success: #16a34a;
  --success-bg: #dcfce7;
  --warning-bg: #fef3c7;
  --info-bg: #eef5fd;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 2px 10px rgba(16, 29, 99, .06);
  --grad-brand: linear-gradient(135deg, #08cbef, #0555f3);
  --grad-hero: radial-gradient(circle at 88% 10%, rgba(0,219,255,.38), transparent 34%),
               radial-gradient(circle at 12% 96%, rgba(0,191,255,.22), transparent 30%),
               linear-gradient(135deg, #094be5 0%, #087bfa 57%, #02c3e9 120%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; }

html { font-size: 17.5px; overflow-x: clip; }

body {
  font-family: var(--font);
  font-weight: 500;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: clip;
}

/* ---- App column (centered, full height) ---- */
.phone {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* App-shell mode (pages with tab bar / FAB): bounded to the viewport,
   .content scrolls internally, and the floaters anchor to .phone via
   absolute positioning — never depending on position:fixed, which iOS
   Safari can mis-anchor to the document. */
.phone.shell {
  height: 100vh;
  height: 100dvh;
  /* live-trued visible height from the Visual Viewport API (app.js):
     subtracts iOS Safari's bottom toolbar and the on-screen keyboard */
  height: var(--app-height, 100dvh);
  overflow: hidden;
}

/* ---- App bar ---- */
.appbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  padding: 8px 18px 12px;
  display: flex; align-items: center; gap: 10px;
}
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand), #64748b);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px; letter-spacing: -.5px;
  box-shadow: 0 4px 10px rgba(71,85,105,.28);
}
.appbar .logo { font-weight: 800; font-size: 1rem; color: var(--brand); letter-spacing: -.02em; text-decoration: none; display: inline-flex; align-items: center; }
.appbar .logo .logo-mark { margin-right: 8px; }
.appbar .logo span:not(.logo-mark) { color: var(--text); }
.logo-img { height: 38px; width: auto; display: block; }
.logo-hero-img { height: 108px; width: auto; display: block; margin: 0 auto; }
.appbar .back {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); text-decoration: none; font-size: 1.15rem;
  background: var(--surface-alt); flex: none;
}
.appbar .title { font-weight: 800; font-size: .98rem; letter-spacing: -.2px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appbar .actions { margin-left: auto; display: flex; gap: 8px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-alt); color: var(--text);
  font-size: 1rem; cursor: pointer; text-decoration: none;
}

/* ---- Content ---- */
.content { flex: 1; padding: 14px 18px; padding-bottom: 16px; overflow-y: auto; }
.content.no-tab { padding-bottom: 40px; }
.section-label {
  font-size: 1rem; font-weight: 800; letter-spacing: -.01em; color: var(--text);
  margin: 18px 4px 8px; display: flex; justify-content: space-between; align-items: center;
  text-transform: none;
}
.section-label:first-child { margin-top: 2px; }
h1.page-title { font-size: 1.85rem; font-weight: 800; letter-spacing: -.04em; margin-bottom: 4px; }
p.page-sub { color: var(--text-muted); font-size: .98rem; font-weight: 600; margin-bottom: 14px; }

/* ---- Cards ---- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px;
}
.card.tappable { display: block; text-decoration: none; color: inherit; }
.card.tappable:active { transform: scale(.99); }
.card h3 { font-size: 1.05rem; font-weight: 800; letter-spacing: -.1px; margin-bottom: 4px; }
.card p { font-size: .92rem; font-weight: 600; color: var(--text-muted); }

.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }

/* ---- Chips (mockup pill style) ---- */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px; border-radius: 100px;
  background: var(--surface-alt); color: var(--text-muted);
  font-size: .8rem; font-weight: 800; text-decoration: none; border: 1px solid transparent;
  white-space: nowrap;
}
.chip.active { background: var(--brand); color: #fff; }
.chip.brand { background: var(--brand-light); color: var(--brand-dark); border-color: var(--border); }
.chip.warn { background: var(--warning-bg); color: #92400e; }
.chip.danger { background: var(--danger-bg); color: var(--danger); }
.chip.success { background: var(--success-bg); color: #166534; }
.chip.info { background: var(--info-bg); color: var(--brand-dark); border-color: var(--border); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px; margin-bottom: 10px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.badge {
  min-width: 20px; height: 20px; border-radius: 999px; padding: 0 6px;
  background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---- Avatar (circular, mockup style) ---- */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: .85rem;
}
.handle { font-weight: 700; font-size: .95rem; }
.meta { font-size: .8rem; color: var(--text-faint); font-weight: 600; }

/* ---- Buttons ---- */
.btn {
  display: block; width: 100%; padding: 14px; border: none; border-radius: 14px;
  background: var(--grad-brand); color: #fff; font-weight: 800; font-size: 1.02rem; letter-spacing: .01em;
  text-align: center; text-decoration: none; cursor: pointer; font-family: var(--font);
  box-shadow: 0 10px 24px rgba(5, 85, 243, .32);
}
.btn:active { opacity: .9; }
.btn.secondary { background: var(--surface-alt); color: var(--text); box-shadow: none; border: 1px solid var(--border); }
.btn.danger { background: var(--danger); }
.btn.outline { background: transparent; border: 1.5px solid var(--brand); color: var(--brand); box-shadow: none; }
.btn.sm { width: auto; display: inline-block; padding: 8px 16px; font-size: .8rem; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---- Forms ---- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .9rem; background: var(--surface); color: var(--text);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: .72rem; color: var(--text-faint); margin-top: 4px; }
.radio-card {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 8px; background: var(--surface); cursor: pointer;
}
.radio-card.selected { border-color: var(--brand); background: var(--brand-light); }
.radio-card input { margin-top: 3px; accent-color: var(--brand); }

/* ---- Search ---- */
.searchbar {
  display: flex; align-items: center; gap: 8px; background: var(--surface-alt);
  border: 1px solid var(--border); border-radius: 100px; padding: 11px 16px; margin-bottom: 14px;
}
.searchbar input { border: none; outline: none; flex: 1; font-size: .9rem; background: transparent; font-family: var(--font); }

/* ---- Forum ---- */
.thread-stat { display: flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--text-faint); }

/* ---- Colored content icons (4-color system from brand reference) ---- */
.ic-blue   { color: #0877ed; }
.ic-purple { color: #9629e8; }
.ic-green  { color: #0aa37f; }
.ic-orange { color: #f15a13; }
.cicon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 11px; flex: none;
}
.cicon svg { width: 18px; height: 18px; }
.cicon.blue   { color: #0877ed; background: #e3f3ff; }
.cicon.purple { color: #9629e8; background: #f0e4ff; }
.cicon.green  { color: #0aa37f; background: #dcf5ec; }
.cicon.orange { color: #f15a13; background: #fdeee4; }
.post { padding: 14px 0; border-bottom: 1px solid var(--border); }
.post:last-child { border-bottom: none; }
.post .body { font-size: .98rem; margin: 6px 0; }
.post .body .mention { color: var(--brand); font-weight: 700; }
.post-img {
  border-radius: var(--radius-sm); margin-top: 8px; width: 100%; height: 150px;
  background: linear-gradient(120deg, #1440b0, #1b79f2);
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-size: 2rem;
}
.post-img .meta { color: rgba(255,255,255,.75); }

/* ---- Data viz (pure CSS, mockup gradients) ---- */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .78rem; }
.bar-row .lbl { width: 92px; flex: none; color: var(--text-muted); font-weight: 600; }
.bar-track { flex: 1; height: 8px; background: var(--surface-alt); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #08cbef, var(--brand)); }
.bar-fill.neg { background: var(--danger); }
.bar-fill.warn { background: var(--accent); }
.bar-val { width: 48px; text-align: right; font-weight: 700; flex: none; }

.stage-track { display: flex; gap: 4px; margin: 10px 0; }
.stage { flex: 1; text-align: center; font-size: .62rem; font-weight: 700; color: var(--text-faint); }
.stage .dot { height: 8px; border-radius: 99px; background: var(--surface-alt); margin-bottom: 5px; }
.stage.done .dot { background: var(--brand); }
.stage.done { color: var(--brand-dark); }
.stage.current .dot { background: var(--accent); }
.stage.current { color: var(--accent); }

.spark { display: flex; align-items: flex-end; gap: 3px; height: 44px; }
.spark i { flex: 1; background: linear-gradient(180deg, #08cbef, var(--brand)); border-radius: 3px 3px 0 0; opacity: .9; }
.spark i.neg { background: var(--danger); }

/* ---- Lists ---- */
.list-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
}
.list-item:last-child { border-bottom: none; }
.list-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px; }
.chevron { color: var(--text-faint); margin-left: auto; }

/* ---- Tab bar (docked footer — a real layout row, content never slides behind it) ---- */
.tabbar {
  flex: none;
  width: 100%; z-index: 30;
  background: rgba(30, 41, 59, .97); border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; align-items: center; justify-content: space-around;
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
  min-height: 62px;
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none; color: #94a3b8; font-size: .68rem; font-weight: 700;
  padding: 2px 0; position: relative;
}
.tabbar a .ic { display: flex; }
.tabbar a.active { color: #ffffff; }
.tabbar a.active::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #ffffff; }

/* ---- FAB ---- */
.fab {
  position: fixed; bottom: 96px; right: max(16px, calc(50% - 199px)); z-index: 25;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad-brand);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; text-decoration: none; box-shadow: 0 10px 22px rgba(5, 85, 243, .38);
}

/* Shell overrides: the FAB stays anchored to .phone (position:relative,
   exactly viewport height) instead of the viewport. The tab bar is a
   docked in-flow footer, so it needs no anchoring at all. */
.shell .fab { position: absolute; right: 16px; }
/* Safari/WebKit bug: a position:sticky appbar inside the non-scrolling,
   overflow:hidden shell collapses to zero height and never paints.
   The shell itself never scrolls (.content does), so static is equivalent. */
.shell .appbar { position: relative; }

/* ---- Admin ---- */
.admin-bar { background: #1e293b; color: #fff; }
.admin-bar .title, .admin-bar .back { color: #fff; }
.admin-bar .back { background: rgba(255,255,255,.12); }
.admin-bar .icon-btn { background: rgba(255,255,255,.14); color: #fff; }
.kpi { text-align: center; padding: 14px 6px; }
.kpi .v { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.kpi .l { font-size: .66rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---- Audio player ---- */
.player { text-align: center; padding: 26px 16px; }
.player .art {
  width: 150px; height: 150px; border-radius: 24px; margin: 0 auto 18px;
  background: linear-gradient(135deg, #1440b0, #1b79f2);
  display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #fff;
  box-shadow: 0 12px 26px -10px rgba(51,65,85,.5);
}
.player .controls { display: flex; justify-content: center; align-items: center; gap: 22px; margin: 16px 0; }
.player .play {
  width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #64748b); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; border: none; cursor: pointer;
}
.player .skip { background: none; border: none; font-size: 1.4rem; color: var(--text-muted); cursor: pointer; }
.progress { height: 6px; background: var(--surface-alt); border-radius: 3px; overflow: hidden; margin: 8px 24px 4px; }
.progress i { display: block; height: 100%; width: 38%; background: linear-gradient(90deg, #1b79f2, var(--brand)); border-radius: 3px; }
.time-row { display: flex; justify-content: space-between; padding: 0 26px; font-size: .72rem; color: var(--text-faint); }
.speed-row { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }

/* ---- Banners / states ---- */
.banner {
  padding: 11px 14px; border-radius: var(--radius-sm); font-size: .88rem; font-weight: 600; margin-bottom: 12px;
  display: flex; gap: 8px; align-items: flex-start; border: 1px solid transparent;
}
.banner.info { background: var(--info-bg); color: var(--brand-dark); border-color: var(--border); }
.banner.warn { background: var(--warning-bg); color: #92400e; }
.banner.success { background: var(--success-bg); color: #166534; }
.banner.danger { background: var(--danger-bg); color: var(--danger); }
.stale { font-size: .7rem; color: var(--accent); font-weight: 700; }

/* ---- Table (mobile scroll) ---- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .8rem; }
table.data th { text-align: left; padding: 8px 10px; color: var(--text-faint); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1.5px solid var(--border); white-space: nowrap; }
table.data td { padding: 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data tr:last-child td { border-bottom: none; }

/* ---- Info modal ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(15, 23, 34, .45);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  width: 100%; max-width: 320px; background: #fff; border-radius: 20px;
  border: 1px solid var(--border); box-shadow: 0 24px 60px -12px rgba(30,41,59,.4);
  padding: 20px;
}
.modal h3 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.modal p { font-size: .85rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.55; }

/* ---- Landing & trust pages (stakeholder reference look) ---- */
.eyebrow {
  display: inline-block; padding: 7px 13px; border-radius: 100px;
  background: var(--brand-light); color: var(--brand-dark);
  font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.landing-title { font-size: 2.6rem; font-weight: 800; letter-spacing: -.045em; line-height: 1.04; margin: 10px 0 8px; }
.hero-landing {
  margin: 8px 0 14px; padding: 40px 22px 34px;
  background: var(--grad-hero); color: #fff;
  border-radius: 22px;
  box-shadow: inset 0 -2px 0 rgba(0, 218, 255, .65), 0 14px 30px -12px rgba(9, 75, 229, .45);
}
.hero-landing .landing-title { color: #fff; font-size: 2.9rem; letter-spacing: -.05em; line-height: 1; margin: 12px 0 10px; }
.hero-landing .page-sub { color: rgba(255,255,255,.94); font-size: 1.05rem; font-weight: 600; margin-bottom: 0; }
.hero-landing .eyebrow { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.42); }
.hero-landing .btn { margin-top: 12px; }
.section-label a { color: var(--text-faint); font-weight: 700; font-size: .8rem; text-decoration: none; white-space: nowrap; }

.see-all-link { display: block; text-align: center; font-size: .8rem; font-weight: 700; color: var(--text-muted); text-decoration: none; margin: 2px 0 4px; }

/* Explore grid (landing) — 2×2 proportionate channel boxes, icon left */
.explore-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
.explore-cell {
  display: flex; flex-direction: row; align-items: flex-start; gap: 10px;
  padding: 14px 12px; background: linear-gradient(145deg, #fff 0%, #f2f9ff 100%);
  border: 1.5px solid #cfe4f7; border-radius: 16px; text-decoration: none; color: var(--text);
  font-size: .95rem; font-weight: 800; letter-spacing: -.01em; box-shadow: var(--shadow);
}
.explore-cell .cicon { width: 40px; height: 40px; border-radius: 12px; }
.explore-cell .cicon svg { width: 20px; height: 20px; }
.cell-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.25; }
.cell-copy small { color: var(--text-muted); font-weight: 600; font-size: .74rem; line-height: 1.3; }
/* Landing channel tiles are informational only — deliberately NOT links, so the
   T&C interstitial can't be bypassed from the marketing page. */

/* Eyebrow bar above the hero (look-1 verified strip) */
.eyebrow-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: -14px -18px 10px; padding: 10px 18px;
  background: #fff; border-bottom: 1px solid var(--border);
  color: var(--brand-dark); font-size: .72rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
}

/* Hero CTA — white pill button inside the gradient card */
.hero-cta {
  width: auto; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--brand-dark);
  padding: 12px 18px; border-radius: 100px;
  box-shadow: 0 10px 20px rgba(4, 40, 140, .28);
}
.hero-cta .cta-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--brand-dark);
  font-size: .8rem; line-height: 1;
}

/* Coming soon strip */
.coming-soon {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; margin: -2px 0 14px;
  background: linear-gradient(145deg, #fff 0%, #f2f9ff 100%);
  border: 1.5px solid #cfe4f7; border-radius: 16px; box-shadow: var(--shadow);
}
.coming-soon .cicon { width: 40px; height: 40px; border-radius: 12px; }
.cs-copy { font-size: .88rem; font-weight: 600; color: var(--text-muted); }
.cs-copy b { color: var(--text); font-weight: 800; margin-right: 4px; }

/* Join the conversation */
.join-row { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.join-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); margin-bottom: 4px; }
.join-cta { width: auto; display: inline-block; padding: 12px 22px; }
.join-logo { height: 64px; width: auto; max-width: 120px; object-fit: contain; flex: none; }

.tc-scroll {
  max-height: 240px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; background: var(--surface-alt);
}

/* How we're different — mini cards */
.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.diff-cell { background: linear-gradient(145deg, #fff 0%, #f2f9ff 100%); border: 1.5px solid #cfe4f7; border-radius: var(--radius-sm); padding: 12px; box-shadow: var(--shadow); }
.diff-cell b { display: block; font-size: .95rem; font-weight: 800; letter-spacing: -.01em; margin: 8px 0 2px; }
.diff-cell p { font-size: .8rem; font-weight: 600; color: var(--text-muted); }

/* Why professionals trust us — full-width rows (reference look) */
.trust-list { display: grid; gap: 10px; margin-bottom: 14px; }
.trust-card {
  display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center;
  padding: 14px 16px; border: 1.5px solid #cfe4f7; border-radius: 14px;
  background: linear-gradient(90deg, #fff, #f4fbff);
  box-shadow: var(--shadow);
}
.check {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #08cbef, #0555f3); color: #fff;
  font-size: 1.35rem; font-weight: 800; line-height: 1;
}
.trust-copy b { display: block; font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; }
.trust-copy p { font-size: .88rem; font-weight: 600; color: var(--text-muted); margin-top: 1px; }

/* Trust feature rows */
.list-item .grow b { font-size: 1rem; }
.list-item .grow p { font-size: .86rem; font-weight: 600; color: var(--text-muted); margin-top: 2px; }

.landing-footer { text-align: center; margin-top: 16px; line-height: 1.7; }

/* ---- Prototype index ---- */
.proto-group { margin-bottom: 6px; }
.proto-group .list-item { font-size: .88rem; }

/* ---- Tab bar: AI tab — same styling as siblings, just slightly larger ---- */
.tabbar a.tab-ai { cursor: pointer; }
.tabbar a.tab-ai .ic svg { width: 24px; height: 24px; }
.tabbar a.tab-ai .tab-ai-label { font-size: .74rem; }

.tabbar .tab-more {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; cursor: pointer; padding: 2px 0;
  color: #94a3b8; font-family: var(--font); font-size: .68rem; font-weight: 700;
}
.tabbar .tab-more.open, .tabbar .tab-more:active { color: #fff; }

.tabbar-menu { position: absolute; inset: 0; z-index: 50; }
.tabbar-menu[hidden] { display: none; }
.tabbar-menu-dim { position: absolute; inset: 0; background: rgba(15, 23, 34, .45); }
.tabbar-menu-sheet {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 92px;
  width: min(360px, calc(100% - 48px));
  background: #fff; border-radius: 20px; border: 1px solid var(--border);
  box-shadow: 0 24px 60px -12px rgba(30, 41, 59, .4); overflow: hidden;
  animation: tabbar-sheet-in .18s ease-out;
}
@keyframes tabbar-sheet-in {
  from { transform: translateX(-50%) translateY(10px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}
.tabbar-menu-title {
  padding: 14px 16px 8px; font-size: .72rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; color: var(--text-faint);
}
.tabbar-menu-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  text-decoration: none; color: var(--text); font-weight: 700; font-size: .95rem;
  border-top: 1px solid var(--border);
}
.tabbar-menu-item:active { background: var(--surface-alt); }

/* ---- Profile menu (under the top-right profile icon) ---- */
.profile-menu {
  position: absolute; top: calc(100% - 6px); right: 14px; z-index: 60;
  min-width: 216px; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 16px 40px -8px rgba(30, 41, 59, .35);
  overflow: hidden; animation: profile-menu-in .16s ease-out;
}
.profile-menu[hidden] { display: none; }
@keyframes profile-menu-in {
  from { transform: translateY(-6px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.profile-menu-item {
  display: flex; align-items: center; padding: 13px 16px;
  text-decoration: none; color: var(--text); font-weight: 700; font-size: .92rem;
  border-top: 1px solid var(--border);
}
.profile-menu-item:first-child { border-top: none; }
.profile-menu-item:active { background: var(--surface-alt); }

/* ---- Pipeline / M&A segmented toggle (top right of both pages) ---- */
.seg-toggle {
  display: flex; background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: 12px; padding: 3px; gap: 3px; flex: none;
}
.seg-toggle a {
  padding: 6px 14px; border-radius: 9px; font-size: .8rem; font-weight: 800;
  text-decoration: none; color: var(--text-faint); letter-spacing: -.01em;
}
.seg-toggle a.active { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(15,23,34,.18); }

/* iOS Safari in-browser: pad the docked bar so its tabs clear the bottom
   toolbar that overlays the page (class set in app.js; ~52px toolbar +
   home-indicator area). Background extends behind the translucent toolbar. */
.ios-browser .tabbar { padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px)); }
.ios-browser .shell .fab { bottom: 140px; }

/* ---- Pharma AI chat ---- */
.content.chat { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px 8px; }
.msg { display: flex; gap: 8px; margin-bottom: 14px; }
.msg.user { justify-content: flex-end; }
.msg .bubble {
  max-width: 82%; padding: 11px 14px; border-radius: 18px;
  font-size: .92rem; font-weight: 600; line-height: 1.5; white-space: pre-wrap;
}
.msg.ai .bubble { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 6px; color: var(--text); box-shadow: var(--shadow); }
.msg.user .bubble { background: var(--grad-brand); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 8px 18px rgba(5, 85, 243, .28); }
.msg .bubble b { font-weight: 800; }
.msg.ai .m-av {
  width: 30px; height: 30px; border-radius: 50%; flex: none; margin-top: 2px;
  background: var(--grad-brand); color: #fff; display: flex; align-items: center; justify-content: center;
}
.msg.ai .m-av svg { width: 15px; height: 15px; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); animation: chat-tp .9s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-tp { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-suggest { display: flex; gap: 8px; overflow-x: auto; padding: 8px 18px 4px; scrollbar-width: none; }
.chat-suggest::-webkit-scrollbar { display: none; }
.chat-suggest .chip { flex: none; cursor: pointer; }
.chat-composer { display: flex; gap: 8px; padding: 8px 18px 12px; border-top: 1px solid var(--border); background: #fff; }
.chat-composer input {
  flex: 1; border: 1.5px solid var(--border); border-radius: 100px; outline: none;
  padding: 12px 16px; font-family: var(--font); font-size: .92rem; background: var(--surface-alt); color: var(--text);
}
.chat-composer input:focus { border-color: var(--brand); background: #fff; }
.chat-send {
  width: 46px; height: 46px; border-radius: 50%; border: none; flex: none; cursor: pointer;
  background: var(--grad-brand); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(5, 85, 243, .32);
}
.chat-send:active { opacity: .9; }

/* ---- Pharma AI promo tile (Home) ---- */
.ai-promo {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px; margin-bottom: 14px; border-radius: var(--radius);
  background: var(--grad-brand); color: #fff; text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(5, 85, 243, .5), inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.ai-promo:active { transform: scale(.99); }
.ai-promo .ap-top { display: flex; align-items: center; gap: 12px; }
.ai-promo .ap-orb {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .45);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.ai-promo .ap-orb svg { width: 22px; height: 22px; }
.ai-promo .ap-title { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.ai-promo .ap-sub { font-size: .84rem; font-weight: 600; color: rgba(255, 255, 255, .92); line-height: 1.45; }
.ai-promo .ap-new {
  flex: none; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .5);
  color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px;
}
.ai-promo .ap-cta {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: #fff; color: var(--brand-dark); font-weight: 800; font-size: .85rem;
  padding: 9px 16px; border-radius: 100px; box-shadow: 0 6px 14px rgba(4, 40, 140, .25);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
