:root {
  --bg: #ffffff;
  --text: #0d0d0d;
  --muted: #6f6f6f;
  --muted-2: #8f8f8f;
  --border: #e5e5e5;
  --surface: #f4f4f4;
  --surface-2: #f9f9f9;
  --dark: #0d0d0d;
  --blue: #4b6bff;
  --blue-soft: #cfdcff;
  --pink-soft: #f3d6e8;
  --mint-soft: #d6efe6;
  --green: #22c55e;
  --radius: 24px;
  --font: "Plus Jakarta Sans", ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  --app-font: ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background .2s, opacity .2s, transform .2s;
}
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-xs { height: 28px; padding: 0 12px; font-size: 12px; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { opacity: .82; }
.btn-outline { border: 1px solid #d4d4d4; background: #fff; }
.btn-outline:hover { background: var(--surface); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; padding: 0 12px; height: 44px; }
.link-arrow:hover { opacity: .65; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); }
.nav-inner { max-width: 1440px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 4px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a { font-size: 14px; color: #3f3f3f; padding: 8px 12px; border-radius: 10px; transition: background .2s; }
.nav-links a:hover { background: var(--surface); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; width: 36px; height: 36px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.menu-btn span { width: 18px; height: 1.5px; background: var(--text); transition: transform .25s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-menu { display: none; }

/* ---------- hero ---------- */
.hero { padding: 72px 16px 0; text-align: center; }
.hero-title {
  font-size: clamp(48px, 7.2vw, 104px);
  line-height: 1; font-weight: 700; letter-spacing: -.047em;
  max-width: 1100px; margin: 0 auto;
}
.hw {
  position: relative; display: inline-block;
  background: linear-gradient(90deg, #4b6bff 0%, #8a6bff 30%, #ff6b9d 55%, #ffaa47 78%, #22c58e 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: var(--text); transition: -webkit-text-fill-color .45s;
}
.hw::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.04em; height: .05em; border-radius: 4px;
  background: linear-gradient(90deg, #4b6bff, #b86bff, #ff6b9d, #ffb347, #22c58e);
  transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.hw.active { -webkit-text-fill-color: transparent; }
.hw.active::after { transform: scaleX(1); }
.hero-ctas { display: flex; justify-content: center; gap: 12px; margin-top: 40px; }

/* ---------- journey (hero window -> sticky tour) ---------- */
.journey { position: relative; height: 560vh; margin-top: 56px; }
.j-stage {
  position: sticky; top: 64px; height: calc(100vh - 64px);
  max-width: 1440px; margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: center;
}
.j-list { opacity: 0; will-change: opacity, transform; }
.j-viewport { position: relative; aspect-ratio: 1.55; transform-origin: 0 0; will-change: transform; z-index: 2; }
.j-track { position: absolute; inset: 0; will-change: transform; }
.j-track .panel { position: absolute; left: 0; right: 0; top: 0; height: 100%; will-change: transform, opacity; }


.mode { border-top: 1px solid var(--border); padding: 22px 0; cursor: pointer; }
.mode:first-child { border-top-color: #cfcfcf; }
.mode:last-child { border-bottom: 1px solid var(--border); }
.mode h2 { font-size: 22px; font-weight: 500; color: #a8a8a8; transition: color .3s, font-size .3s; letter-spacing: -.01em; }
.mode.on h2 { color: var(--text); font-size: 26px; }
.mode-body { max-height: 0; overflow: hidden; opacity: 0; line-height: 1.6; font-size: 16px; color: #444; transition: max-height .5s cubic-bezier(.2,.8,.2,1), opacity .35s; }
.mode.on .mode-body { max-height: 280px; opacity: 1; }
.mode-body .lead { color: var(--text); font-weight: 600; margin-top: 14px; }
.mode-body p:last-child { margin-top: 14px; }

/* ---------- product window (matches Health OS) ---------- */
.panel {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 14px; text-align: left;
  font-family: var(--app-font); font-size: 12.5px; color: #0d0d0d;
  box-shadow: 0 0 0 1px rgba(0,0,0,.07), 0 30px 80px -24px rgba(0,0,0,.2), 0 8px 24px -8px rgba(0,0,0,.08);
}
.panel svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.panel svg.tiny { width: 12px; height: 12px; }
.panel svg.ic16 { width: 14px; height: 14px; vertical-align: -2px; }
.panel svg.chart { width: 100%; height: 96px; stroke: none; }
.panel .chart path[fill="none"] { stroke-width: 2.5; }
.panel .chart g path { stroke: #eceef2; stroke-width: 1; }
.ghost { color: #8a8a8a; }

.window-bar { height: 34px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 12px; background: #f3f3f4; border-bottom: 1px solid #e8e8ea; font-size: 11px; color: var(--muted); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; }
.dots i:nth-child(1) { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.tab { background: #fff; padding: 5px 40px 5px 12px; border-radius: 7px 7px 0 0; align-self: flex-end; color: var(--text); }
.url { flex: 1; max-width: 380px; margin: 0 auto; background: #fff; border-radius: 7px; padding: 4px 12px; text-align: center; }

.shell {
  flex: 1; min-height: 0; display: flex;
  background:
    radial-gradient(120% 40% at 0% 0%, rgba(207,220,255,.9), transparent 70%),
    radial-gradient(120% 45% at 0% 100%, rgba(214,239,230,.95), transparent 70%),
    #f1f3f8;
}
.rail { width: 46px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; color: #4a4a4a; }
.rail .r { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.rail .r.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); color: #0d0d0d; }
.avatar-r { margin-top: auto; width: 26px; height: 26px; border-radius: 50%; background: #1a1a1a; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 600; box-shadow: -3px 3px 0 #f3a6c8; }
.sidebar { width: 190px; flex: none; padding: 12px 10px; }
.sb-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 10px; }
.sb-head b { font-size: 15px; display: flex; align-items: center; gap: 4px; letter-spacing: -.01em; }
.sb-icons { display: flex; gap: 8px; color: #333; }
.bell { position: relative; display: grid; }
.bell::after { content: ""; position: absolute; right: 0; top: 0; width: 5px; height: 5px; border-radius: 50%; background: #3b82f6; }
.sb-item { display: flex; align-items: center; gap: 9px; padding: 6px; border-radius: 8px; font-size: 13px; }
.orb-sm { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #a9c4ff 55%, #6f95ff); flex: none; }
.sb-label { color: #8a8a8a; font-size: 11.5px; padding: 14px 6px 4px; }
.sb-recent { padding: 6px; border-radius: 8px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .3s; }
.sb-recent.on { background: rgba(255,255,255,.7); }

.main { flex: 1; min-width: 0; position: relative; background: #fff; border-radius: 12px 0 0 0; margin-top: 6px; box-shadow: 0 0 0 1px rgba(0,0,0,.04); display: flex; flex-direction: column; overflow: hidden; }
.main.pad { padding: 16px 20px; gap: 14px; }
.main-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 12px 0; }
.seg { display: flex; background: #f1f1f2; border-radius: 999px; padding: 3px; font-size: 12px; }
.seg span { padding: 5px 16px; border-radius: 999px; color: #6f6f6f; }
.seg .on { background: #fff; color: #0d0d0d; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.home { position: absolute; inset: 44px 0 0; display: flex; flex-direction: column; align-items: center; padding: 0 9%; transition: opacity .45s, transform .45s; }
.home-h { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin: 6% 0 14px; }
.composer2 { width: 100%; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px #e6e6e6, 0 4px 16px rgba(0,0,0,.05); padding: 12px 12px 10px 14px; position: relative; z-index: 1; }
.cmp-text { display: block; min-height: 18px; font-size: 13px; }
.ph { color: #8f8f8f; }
.cmp-text .caret, .caret { display: inline-block; width: 1.5px; height: 1.05em; background: #0d0d0d; vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cmp-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.mic { width: 26px; height: 26px; border-radius: 50%; background: #0d0d0d; color: #fff; display: grid; place-items: center; transition: background .2s; }
.mic svg { width: 13px; height: 13px; }
.mic.send { background: #0d0d0d; }
.tray { width: 96%; display: flex; align-items: center; gap: 16px; background: #f6f6f7; border-radius: 0 0 14px 14px; padding: 8px 14px; font-size: 12px; }
.tray span { display: flex; align-items: center; gap: 6px; }
.tray svg { width: 13px; height: 13px; }
.tray .end { margin-left: auto; }
.hcards { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.hcard { display: flex; gap: 10px; align-items: center; border: 1px solid #ececec; border-radius: 12px; padding: 10px; }
.hcard b { display: block; font-size: 12.5px; font-weight: 600; }
.hcard span:not(.hic):not(.pill):not(.va) { color: #6f6f6f; font-size: 11.5px; }
.hcard.wide { grid-column: 1 / -1; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 10px; }
.hic { width: 28px; height: 28px; border-radius: 8px; border: 1px solid #ececec; display: grid; place-items: center; flex: none; }
.hic svg { width: 14px; height: 14px; }
.hc-head { display: flex; align-items: center; gap: 10px; padding-bottom: 4px; }
.va { margin-left: auto; color: #6f6f6f; font-size: 11.5px; display: flex; align-items: center; gap: 2px; }
.uv { display: grid; grid-template-columns: 56px 110px 1fr auto; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #f2f2f2; }
.uv-t, .uv-m { color: #6f6f6f; }
.uv b { font-weight: 500; }

.pill { font-size: 10.5px; padding: 3px 8px; border-radius: 999px; background: #f1f1f2; color: #555; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.pill.green { background: #e3f7ec; color: #12804a; }
.pill.blue { background: #e8ecff; color: #3346c9; }
.pill.amber { background: #fff3dc; color: #a2620a; }
.pill.red { background: #fde8e8; color: #c22; }
.pill.dark { background: #0d0d0d; color: #fff; }

.convo { position: absolute; inset: 52px 0 70px; display: flex; flex-direction: column; gap: 12px; padding: 0 12%; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .4s; }
.convo-composer { position: absolute; left: 12%; right: 12%; bottom: 18px; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 22px; padding: 8px 8px 8px 14px; box-shadow: 0 0 0 1px #e6e6e6, 0 4px 16px rgba(0,0,0,.05); opacity: 0; transition: opacity .4s; }
.convo-composer .ph { flex: 1; }
.chatting .home { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.chatting .convo, .chatting .convo-composer { opacity: 1; }
.m { opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s; line-height: 1.5; }
.m.show { opacity: 1; transform: none; }
.m.user { align-self: flex-end; background: #f3f3f4; border-radius: 16px; padding: 8px 14px; max-width: 70%; }
.m.bot { align-self: stretch; }
.m.bot p { margin: 4px 0 8px; }
.worked { color: #8a8a8a; font-size: 11.5px; }
.tbl { border: 1px solid #ececec; border-radius: 12px; overflow: hidden; }
.tbl div { display: grid; grid-template-columns: 44px 110px 1fr auto; gap: 8px; align-items: center; padding: 7px 12px; }
.tbl div + div { border-top: 1px solid #f2f2f2; }
.tbl span:first-child, .tbl em { color: #6f6f6f; font-style: normal; }
.tbl b { font-weight: 500; }
.action-card { display: flex; align-items: center; gap: 12px; border: 1px solid #ececec; border-radius: 12px; padding: 10px 12px; }
.action-card b { display: block; }
.action-card span:not(.check):not(.pill) { color: #6f6f6f; }
.action-card .pill { margin-left: auto; }
.check { width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }
.check svg { width: 13px; height: 13px; stroke-width: 2.6; }
.orb { position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #b9d0ff 45%, #6f95ff 85%); box-shadow: 0 0 0 4px #fff, 0 4px 14px rgba(0,0,0,.12); animation: orb 4s ease-in-out infinite; }
@keyframes orb { 50% { filter: hue-rotate(25deg) brightness(1.06); } }

.page-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.page-h b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.crumb { display: block; color: #8a8a8a; font-size: 11px; margin-bottom: 2px; }
.sub { font-weight: 400; color: #6f6f6f; font-size: 12px; margin-left: 6px; }
.ph-actions { display: flex; gap: 6px; align-items: center; flex: none; }
.btn-o, .btn-d { font-size: 11.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid #ddd; white-space: nowrap; }
.btn-d { background: #0d0d0d; color: #fff; border-color: #0d0d0d; }
.rec-dot { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.box-h { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.box-h > span:first-child { display: flex; align-items: center; gap: 6px; }

.visit { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px; }
.v-left { background: #fafafa; border: 1px solid #efefef; border-radius: 12px; padding: 14px; overflow: hidden; }
.v-right { border: 1px solid #efefef; border-radius: 12px; padding: 14px; overflow: hidden; }
.wave { display: flex; align-items: center; gap: 3px; height: 40px; margin: 4px 0 8px; }
.wave i { flex: 1; background: #0d0d0d; border-radius: 3px; height: 30%; animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(3n+1) { animation-delay: -.6s; } .wave i:nth-child(4n) { animation-delay: -.9s; }
@keyframes wave { 50% { height: 95%; } }
.transcript p { padding: 7px 0; line-height: 1.45; color: #333; border-top: 1px solid #ededed; }
.transcript b { display: inline-block; width: 28px; color: #8a8a8a; font-weight: 500; }
.soap { display: grid; grid-template-columns: 24px 1fr; gap: 8px; padding: 7px 0; border-top: 1px solid #f2f2f2; line-height: 1.45; }
.soap b { width: 20px; height: 20px; border-radius: 6px; background: #f1f1f2; display: grid; place-items: center; font-size: 11px; }
.sugg-h { font-weight: 600; margin: 10px 0 6px; font-size: 12px; }
.sugg { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; background: #fafafa; border: 1px solid #f0f0f0; }
.sugg + .sugg { margin-top: 6px; }
.sugg .add { margin-left: auto; color: #6f6f6f; }
.tag { font-size: 10.5px; padding: 2px 7px; border-radius: 6px; background: #fbe4f0; color: #9b2c66; min-width: 42px; text-align: center; }

.pt { display: flex; gap: 12px; align-items: center; }
.av { width: 38px; height: 38px; border-radius: 50%; background: #e5ecff; display: grid; place-items: center; font-weight: 600; flex: none; }
.chips { display: flex; gap: 4px; margin-top: 4px; }
.care, .bill { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; }
.c-col { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.c-card { border: 1px solid #efefef; border-radius: 12px; padding: 12px 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 10px; }
.kpis div { background: #fafafa; border-radius: 10px; padding: 8px 10px; }
.kpis span { color: #6f6f6f; font-size: 11px; display: block; }
.kpis b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; display: block; margin: 2px 0; }
.kpis em { font-style: normal; font-size: 10.5px; color: #6f6f6f; }
.kpis em.up { color: #c2410c; } .kpis em.down { color: #12804a; }
.alert { display: flex; align-items: center; gap: 8px; background: #fff8eb; border-radius: 8px; padding: 7px 10px; margin-top: 8px; font-size: 11.5px; }
.alert u { margin-left: auto; color: #a2620a; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #c8c8c8; flex: none; display: inline-block; }
.dot.ok { background: var(--green); }
.dot.amber { background: #f59e0b; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid #f3f3f3; }
.c-card .box-h + .row { border-top: 0; }
.row span:first-child { color: #6f6f6f; }
.row b { font-weight: 500; text-align: right; }
.row.total { border-top: 1.5px solid #0d0d0d; } .row.total b, .row.total span { font-weight: 700; color: #0d0d0d; }
.bar { height: 5px; background: #f0f0f0; border-radius: 4px; overflow: hidden; margin: 2px 0 6px; }
.bar i { display: block; height: 100%; background: #0d0d0d; }
.muted { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; padding: 3px 7px; border-radius: 6px; background: #e8ecff; color: #3346c9; height: fit-content; }
.code-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: start; padding: 9px 0; border-top: 1px solid #f2f2f2; }
.code-row p { color: #6f6f6f; margin-top: 2px; line-height: 1.4; font-size: 11.5px; }
.acc { font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid #ddd; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.acc.on { background: #e3f7ec; border-color: #e3f7ec; color: #12804a; }
.acc svg { width: 11px; height: 11px; stroke-width: 2.6; }
/* ---------- features carousel ---------- */
.features { max-width: 1440px; margin: 120px auto 0; padding: 0 48px; }
.section-title { font-size: clamp(32px, 3.4vw, 48px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-title.center { margin-bottom: 16px; }
.section-sub { text-align: center; color: #444; font-size: 17px; line-height: 1.55; max-width: 560px; margin: 0 auto 48px; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.carousel::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; background: var(--surface); border-radius: var(--radius); padding: 28px 28px 0; display: flex; flex-direction: column; min-height: 520px; overflow: hidden; }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 15px; line-height: 1.55; color: #444; }
.card-visual { flex: 1; margin: 28px -28px 0; display: flex; align-items: flex-end; justify-content: center; padding: 28px 28px 0; }
.v-blue { background: linear-gradient(180deg, transparent, rgba(207,220,255,.7)); }
.v-pink { background: linear-gradient(180deg, transparent, rgba(243,214,232,.75)); }
.v-mint { background: linear-gradient(180deg, transparent, rgba(214,239,230,.85)); }
.card-visual > div { width: 100%; max-width: 320px; background: #fff; border-radius: 16px 16px 0 0; padding: 16px; box-shadow: 0 -4px 30px -10px rgba(0,0,0,.15); font-family: var(--app-font); font-size: 13px; }
.carousel-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.circle { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); font-size: 22px; line-height: 1; transition: background .2s; }
.circle:hover { background: #e8e8e8; }

.mini-cal .mc-h { display: flex; justify-content: space-between; margin-bottom: 10px; }
.mini-cal .mc-h span { color: var(--muted); }
.mc-slot { display: flex; gap: 10px; padding: 9px 10px; border-radius: 8px; margin-top: 4px; border: 1px dashed #ddd; color: var(--muted); }
.mc-slot.busy { border: 0; background: #eef2ff; color: #1f2a6b; }
.mc-slot span { width: 40px; font-variant-numeric: tabular-nums; color: var(--muted); }
.mc-slot i { margin-left: auto; font-style: normal; font-size: 11px; color: #138a48; }
.mp-top { display: flex; gap: 10px; align-items: center; }
.mp-top span:not(.avatar) { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: #f3d6e8; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.avatar.s { width: 26px; height: 26px; font-size: 10px; background: #e5ecff; }
.mp-tags { display: flex; gap: 6px; margin: 12px 0 6px; flex-wrap: wrap; }
.mp-tags span { font-size: 11.5px; background: var(--surface); padding: 4px 8px; border-radius: 999px; }
.mp-row { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid #f0f0f0; }
.mp-row span { color: var(--muted); }
.mp-row b { font-weight: 500; }
.mini-form label { display: block; color: var(--muted); font-size: 12px; margin-top: 12px; }
.mini-form label span { display: block; color: var(--text); font-size: 13px; border: 1px solid #e5e5e5; border-radius: 8px; padding: 8px 10px; margin-top: 4px; }
.mini-form .up { color: #138a48 !important; }
.mf-actions { display: flex; gap: 8px; margin-top: 14px; }
.mf-actions span { flex: 1; text-align: center; padding: 8px; border-radius: 999px; border: 1px solid #ddd; }
.mf-actions .ok { background: #0d0d0d; color: #fff; border-color: #0d0d0d; }
.ccm-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f2f2f2; }
.st { margin-left: auto; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: #f4f4f4; color: var(--muted); }
.st.on { background: #e3f7ec; color: #138a48; }
.ccm-bar { height: 6px; background: #f0f0f0; border-radius: 4px; margin: 14px 0 8px; overflow: hidden; }
.ccm-bar i { display: block; height: 100%; background: #0d0d0d; border-radius: 4px; }
.ccm-cap { font-size: 12px; color: var(--muted); }
.sg { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid #f0f0f0; }
.sg + .sg { margin-top: 8px; }
.tag { font-size: 11px; padding: 3px 8px; border-radius: 6px; background: #fbe4f0; color: #9b2c66; width: 46px; text-align: center; }
.mini-log div { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f2f2f2; }
.mini-log em { margin-left: auto; font-style: normal; color: var(--muted-2); font-size: 12px; }

/* ---------- integrations ---------- */
.integrations { max-width: 1440px; margin: 120px auto 0; padding: 0 48px; }
.integ-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 56px 0; }
.integ-inner h2 { font-size: 30px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; max-width: 460px; }
.integ-inner p { margin-top: 14px; color: #444; line-height: 1.55; max-width: 480px; }
.logos { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.logos span { padding: 12px 18px; border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }

/* ---------- banners ---------- */
.banner { max-width: 1344px; margin: 120px auto 0; padding: 56px 64px; background: var(--surface); border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.banner h2 { font-size: 30px; font-weight: 500; letter-spacing: -.02em; }
.banner p { margin-top: 10px; color: #444; line-height: 1.55; max-width: 600px; }
.banner.cta { margin-top: 64px; margin-bottom: 120px; }

/* ---------- safety ---------- */
.safety { max-width: 1040px; margin: 140px auto 0; padding: 0 24px; }
.safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.safe-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.safe-card h3 { font-size: 18px; font-weight: 600; }
.safe-card p { color: #444; line-height: 1.55; font-size: 15px; margin-bottom: 12px; }

/* ---------- stories ---------- */
.stories { max-width: 1344px; margin: 140px auto 0; padding: 0 24px; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.story-img { aspect-ratio: 4 / 3.4; border-radius: 18px; overflow: hidden; position: relative; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.story:hover .story-img { transform: scale(.985); }
.s1 { background: radial-gradient(80% 70% at 20% 20%, #cfdcff, transparent), radial-gradient(70% 70% at 90% 90%, #9fb4ff, transparent), #e6ecff; }
.s2 { background: radial-gradient(80% 70% at 80% 20%, #f3d6e8, transparent), radial-gradient(70% 70% at 10% 90%, #f0b7d4, transparent), #fbeaf3; }
.s3 { background: radial-gradient(80% 70% at 30% 10%, #d6efe6, transparent), radial-gradient(70% 70% at 90% 90%, #9fdcc4, transparent), #e8f6f0; }
.s-chip { align-self: flex-start; font-size: 13px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.75); backdrop-filter: blur(8px); font-family: var(--app-font); }
.s-big { font-size: clamp(24px, 2.3vw, 34px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.story p { margin-top: 14px; font-size: 15px; line-height: 1.45; }
.story p span { color: var(--muted); }
.footnote { text-align: center; font-size: 12px; color: var(--muted); margin-top: 72px; }

/* ---------- footer ---------- */
.footer { max-width: 1440px; margin: 0 auto; padding: 0 48px 32px; }
.foot-top { display: flex; justify-content: space-between; padding-top: 24px; gap: 40px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 160px); gap: 32px; }
.foot-cols h4 { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 14px; }
.foot-cols a { display: block; font-size: 14px; padding: 5px 0; }
.foot-cols a:hover { opacity: .6; }
.foot-bottom { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 72px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* extra feature-card visuals */
.mini-mon .mm-h { display: flex; justify-content: space-between; margin-bottom: 8px; }
.mini-mon .mm-h span { color: var(--muted); }
.mini-mon svg { width: 100%; height: 70px; display: block; }
.mm-alert { display: flex; align-items: center; gap: 8px; margin-top: 10px; background: #fff8eb; border-radius: 8px; padding: 8px 10px; font-size: 12px; }
.mini-log .code { margin-right: 4px; }
.mini-log .tot { border-bottom: 0; }
.integ-btn { margin-top: 22px; }
.logos .custom { background: #fff; border: 1.5px dashed #c9c9c9; display: inline-flex; align-items: center; gap: 6px; }
.logos .custom svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .mobile-menu { display: flex; flex-direction: column; gap: 4px; padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .35s, padding .35s; }
  .mobile-menu.open { max-height: 420px; padding: 8px 24px 20px; }
  .mobile-menu a:not(.btn) { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--border); }
  .mobile-menu .btn { margin-top: 12px; justify-content: center; }
  .carousel { grid-auto-columns: calc((100% - 24px) / 2); }
  .j-stage { grid-template-columns: 250px 1fr; padding: 0 24px; gap: 32px; }
  .sidebar { display: none; }
}
@media (max-width: 820px) {
  .hide-sm { display: none; }
  .hero { padding-top: 48px; }
  .hero-title { font-size: clamp(36px, 10.4vw, 64px); letter-spacing: -.045em; }

  /* tour becomes a simple stacked list */
  .journey { height: auto; margin-top: 40px; }
  .j-stage { position: relative; top: 0; height: auto; display: flex; flex-direction: column; align-items: stretch; padding: 0 16px; gap: 0; }
  .j-list { display: contents; opacity: 1 !important; }
  .j-viewport, .j-track { display: contents; }
  .j-track .panel { position: relative; height: auto; transform: none !important; opacity: 1 !important; margin-top: 20px; }
  .mode { cursor: default; border: 0 !important; padding: 0; margin-top: 48px; }
  .mode h2, .mode.on h2 { color: var(--text); font-size: 28px; }
  .mode-body { max-height: none !important; opacity: 1; }
  .panel[data-panel="0"] { order: 0; margin-top: 0 !important; }
  .mode[data-mode="0"] { order: 1; }
  .mode[data-mode="1"] { order: 2; } .panel[data-panel="1"] { order: 3; }
  .mode[data-mode="2"] { order: 4; } .panel[data-panel="2"] { order: 5; }
  .mode[data-mode="3"] { order: 6; } .panel[data-panel="3"] { order: 7; }

  .rail, .url, .tab { display: none; }
  .main { border-radius: 0; margin-top: 0; }
  .panel[data-panel="0"] .main { min-height: 660px; }
  .home { padding: 0 14px; }
  .home-h { font-size: 19px; margin-top: 18px; }
  .tray span:nth-child(3) { display: none; }
  .uv { grid-template-columns: 54px 1fr auto; }
  .uv-m { display: none; }
  .convo { padding: 0 14px; }
  .convo-composer { left: 14px; right: 14px; }
  .tbl div { grid-template-columns: 38px 1fr auto; }
  .tbl em { display: none; }
  .action-card { flex-wrap: wrap; }
  .action-card .pill { margin-left: 36px; }
  .page-h { flex-direction: column; align-items: flex-start; }
  .sub { display: block; margin: 2px 0 0; }
  .visit, .care, .bill { grid-template-columns: 1fr; }
  .kpis b { font-size: 15px; }

  .features, .integrations, .footer { padding-left: 16px; padding-right: 16px; }
  .features { margin-top: 96px; }
  .carousel { grid-auto-columns: 86%; gap: 16px; }
  .card { min-height: 480px; }
  .integ-inner { grid-template-columns: 1fr; gap: 28px; }
  .logos { justify-content: flex-start; }
  .banner { margin-left: 16px; margin-right: 16px; padding: 36px 24px; flex-direction: column; align-items: flex-start; }
  .safety, .stories { padding: 0 16px; margin-top: 96px; }
  .safety-grid, .story-grid { grid-template-columns: 1fr; }
  .foot-top { flex-direction: column; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-direction: column; gap: 8px; margin-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
